configure 803 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610
  1. #! /bin/sh
  2. # From configure.ac Revision: 323321 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.67 for asterisk trunk.
  5. #
  6. # Report bugs to <https://issues.asterisk.org>.
  7. #
  8. #
  9. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  10. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  11. # Foundation, Inc.
  12. #
  13. #
  14. # This configure script is free software; the Free Software Foundation
  15. # gives unlimited permission to copy, distribute and modify it.
  16. #
  17. # "Asterisk"
  18. ## -------------------- ##
  19. ## M4sh Initialization. ##
  20. ## -------------------- ##
  21. # Be more Bourne compatible
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  24. emulate sh
  25. NULLCMD=:
  26. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  27. # is contrary to our usage. Disable this feature.
  28. alias -g '${1+"$@"}'='"$@"'
  29. setopt NO_GLOB_SUBST
  30. else
  31. case `(set -o) 2>/dev/null` in #(
  32. *posix*) :
  33. set -o posix ;; #(
  34. *) :
  35. ;;
  36. esac
  37. fi
  38. as_nl='
  39. '
  40. export as_nl
  41. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  42. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  43. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  44. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  45. # Prefer a ksh shell builtin over an external printf program on Solaris,
  46. # but without wasting forks for bash or zsh.
  47. if test -z "$BASH_VERSION$ZSH_VERSION" \
  48. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='print -r --'
  50. as_echo_n='print -rn --'
  51. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  52. as_echo='printf %s\n'
  53. as_echo_n='printf %s'
  54. else
  55. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  56. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  57. as_echo_n='/usr/ucb/echo -n'
  58. else
  59. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  60. as_echo_n_body='eval
  61. arg=$1;
  62. case $arg in #(
  63. *"$as_nl"*)
  64. expr "X$arg" : "X\\(.*\\)$as_nl";
  65. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  66. esac;
  67. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  68. '
  69. export as_echo_n_body
  70. as_echo_n='sh -c $as_echo_n_body as_echo'
  71. fi
  72. export as_echo_body
  73. as_echo='sh -c $as_echo_body as_echo'
  74. fi
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. PATH_SEPARATOR=:
  78. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  79. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  80. PATH_SEPARATOR=';'
  81. }
  82. fi
  83. # IFS
  84. # We need space, tab and new line, in precisely that order. Quoting is
  85. # there to prevent editors from complaining about space-tab.
  86. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  87. # splitting by setting IFS to empty value.)
  88. IFS=" "" $as_nl"
  89. # Find who we are. Look in the path if we contain no directory separator.
  90. case $0 in #((
  91. *[\\/]* ) as_myself=$0 ;;
  92. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  93. for as_dir in $PATH
  94. do
  95. IFS=$as_save_IFS
  96. test -z "$as_dir" && as_dir=.
  97. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  98. done
  99. IFS=$as_save_IFS
  100. ;;
  101. esac
  102. # We did not find ourselves, most probably we were run as `sh COMMAND'
  103. # in which case we are not to be found in the path.
  104. if test "x$as_myself" = x; then
  105. as_myself=$0
  106. fi
  107. if test ! -f "$as_myself"; then
  108. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  109. exit 1
  110. fi
  111. # Unset variables that we do not need and which cause bugs (e.g. in
  112. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  113. # suppresses any "Segmentation fault" message there. '((' could
  114. # trigger a bug in pdksh 5.2.14.
  115. for as_var in BASH_ENV ENV MAIL MAILPATH
  116. do eval test x\${$as_var+set} = xset \
  117. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  118. done
  119. PS1='$ '
  120. PS2='> '
  121. PS4='+ '
  122. # NLS nuisances.
  123. LC_ALL=C
  124. export LC_ALL
  125. LANGUAGE=C
  126. export LANGUAGE
  127. # CDPATH.
  128. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  129. if test "x$CONFIG_SHELL" = x; then
  130. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  157. else
  158. exitcode=1; echo positional parameters were not saved.
  159. fi
  160. test x\$exitcode = x0 || exit 1"
  161. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  162. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  163. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  164. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  219. $0: https://issues.asterisk.org about your system,
  220. $0: including any error possibly output before this
  221. $0: message. Then install a modern shell, or manually run
  222. $0: the script under such a shell if you do have one."
  223. fi
  224. exit 1
  225. fi
  226. fi
  227. fi
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. export SHELL
  230. # Unset more variables known to interfere with behavior of common tools.
  231. CLICOLOR_FORCE= GREP_OPTIONS=
  232. unset CLICOLOR_FORCE GREP_OPTIONS
  233. ## --------------------- ##
  234. ## M4sh Shell Functions. ##
  235. ## --------------------- ##
  236. # as_fn_unset VAR
  237. # ---------------
  238. # Portably unset VAR.
  239. as_fn_unset ()
  240. {
  241. { eval $1=; unset $1;}
  242. }
  243. as_unset=as_fn_unset
  244. # as_fn_set_status STATUS
  245. # -----------------------
  246. # Set $? to STATUS, without forking.
  247. as_fn_set_status ()
  248. {
  249. return $1
  250. } # as_fn_set_status
  251. # as_fn_exit STATUS
  252. # -----------------
  253. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  254. as_fn_exit ()
  255. {
  256. set +e
  257. as_fn_set_status $1
  258. exit $1
  259. } # as_fn_exit
  260. # as_fn_mkdir_p
  261. # -------------
  262. # Create "$as_dir" as a directory, including parents if necessary.
  263. as_fn_mkdir_p ()
  264. {
  265. case $as_dir in #(
  266. -*) as_dir=./$as_dir;;
  267. esac
  268. test -d "$as_dir" || eval $as_mkdir_p || {
  269. as_dirs=
  270. while :; do
  271. case $as_dir in #(
  272. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  273. *) as_qdir=$as_dir;;
  274. esac
  275. as_dirs="'$as_qdir' $as_dirs"
  276. as_dir=`$as_dirname -- "$as_dir" ||
  277. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  278. X"$as_dir" : 'X\(//\)[^/]' \| \
  279. X"$as_dir" : 'X\(//\)$' \| \
  280. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  281. $as_echo X"$as_dir" |
  282. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\/\)[^/].*/{
  287. s//\1/
  288. q
  289. }
  290. /^X\(\/\/\)$/{
  291. s//\1/
  292. q
  293. }
  294. /^X\(\/\).*/{
  295. s//\1/
  296. q
  297. }
  298. s/.*/./; q'`
  299. test -d "$as_dir" && break
  300. done
  301. test -z "$as_dirs" || eval "mkdir $as_dirs"
  302. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  303. } # as_fn_mkdir_p
  304. # as_fn_append VAR VALUE
  305. # ----------------------
  306. # Append the text in VALUE to the end of the definition contained in VAR. Take
  307. # advantage of any shell optimizations that allow amortized linear growth over
  308. # repeated appends, instead of the typical quadratic growth present in naive
  309. # implementations.
  310. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  311. eval 'as_fn_append ()
  312. {
  313. eval $1+=\$2
  314. }'
  315. else
  316. as_fn_append ()
  317. {
  318. eval $1=\$$1\$2
  319. }
  320. fi # as_fn_append
  321. # as_fn_arith ARG...
  322. # ------------------
  323. # Perform arithmetic evaluation on the ARGs, and store the result in the
  324. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  325. # must be portable across $(()) and expr.
  326. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  327. eval 'as_fn_arith ()
  328. {
  329. as_val=$(( $* ))
  330. }'
  331. else
  332. as_fn_arith ()
  333. {
  334. as_val=`expr "$@" || test $? -eq 1`
  335. }
  336. fi # as_fn_arith
  337. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  338. # ----------------------------------------
  339. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  340. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  341. # script with STATUS, using 1 if that was 0.
  342. as_fn_error ()
  343. {
  344. as_status=$1; test $as_status -eq 0 && as_status=1
  345. if test "$4"; then
  346. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  347. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  348. fi
  349. $as_echo "$as_me: error: $2" >&2
  350. as_fn_exit $as_status
  351. } # as_fn_error
  352. if expr a : '\(a\)' >/dev/null 2>&1 &&
  353. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  354. as_expr=expr
  355. else
  356. as_expr=false
  357. fi
  358. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  359. as_basename=basename
  360. else
  361. as_basename=false
  362. fi
  363. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  364. as_dirname=dirname
  365. else
  366. as_dirname=false
  367. fi
  368. as_me=`$as_basename -- "$0" ||
  369. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  370. X"$0" : 'X\(//\)$' \| \
  371. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  372. $as_echo X/"$0" |
  373. sed '/^.*\/\([^/][^/]*\)\/*$/{
  374. s//\1/
  375. q
  376. }
  377. /^X\/\(\/\/\)$/{
  378. s//\1/
  379. q
  380. }
  381. /^X\/\(\/\).*/{
  382. s//\1/
  383. q
  384. }
  385. s/.*/./; q'`
  386. # Avoid depending upon Character Ranges.
  387. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  388. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  389. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  390. as_cr_digits='0123456789'
  391. as_cr_alnum=$as_cr_Letters$as_cr_digits
  392. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  393. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  394. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  395. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  396. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  397. sed -n '
  398. p
  399. /[$]LINENO/=
  400. ' <$as_myself |
  401. sed '
  402. s/[$]LINENO.*/&-/
  403. t lineno
  404. b
  405. :lineno
  406. N
  407. :loop
  408. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  409. t loop
  410. s/-\n.*//
  411. ' >$as_me.lineno &&
  412. chmod +x "$as_me.lineno" ||
  413. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  414. # Don't try to exec as it changes $[0], causing all sort of problems
  415. # (the dirname of $[0] is not the place where we might find the
  416. # original and so on. Autoconf is especially sensitive to this).
  417. . "./$as_me.lineno"
  418. # Exit status is that of the last command.
  419. exit
  420. }
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in #(((((
  423. -n*)
  424. case `echo 'xy\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. xy) ECHO_C='\c';;
  427. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  428. ECHO_T=' ';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. rm -f conf$$ conf$$.exe conf$$.file
  434. if test -d conf$$.dir; then
  435. rm -f conf$$.dir/conf$$.file
  436. else
  437. rm -f conf$$.dir
  438. mkdir conf$$.dir 2>/dev/null
  439. fi
  440. if (echo >conf$$.file) 2>/dev/null; then
  441. if ln -s conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s='ln -s'
  443. # ... but there are two gotchas:
  444. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  445. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  446. # In both cases, we have to default to `cp -p'.
  447. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  448. as_ln_s='cp -p'
  449. elif ln conf$$.file conf$$ 2>/dev/null; then
  450. as_ln_s=ln
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. else
  455. as_ln_s='cp -p'
  456. fi
  457. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  458. rmdir conf$$.dir 2>/dev/null
  459. if mkdir -p . 2>/dev/null; then
  460. as_mkdir_p='mkdir -p "$as_dir"'
  461. else
  462. test -d ./-p && rmdir ./-p
  463. as_mkdir_p=false
  464. fi
  465. if test -x / >/dev/null 2>&1; then
  466. as_test_x='test -x'
  467. else
  468. if ls -dL / >/dev/null 2>&1; then
  469. as_ls_L_option=L
  470. else
  471. as_ls_L_option=
  472. fi
  473. as_test_x='
  474. eval sh -c '\''
  475. if test -d "$1"; then
  476. test -d "$1/.";
  477. else
  478. case $1 in #(
  479. -*)set "./$1";;
  480. esac;
  481. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  482. ???[sx]*):;;*)false;;esac;fi
  483. '\'' sh
  484. '
  485. fi
  486. as_executable_p=$as_test_x
  487. # Sed expression to map a string onto a valid CPP name.
  488. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  489. # Sed expression to map a string onto a valid variable name.
  490. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  491. test -n "$DJDIR" || exec 7<&0 </dev/null
  492. exec 6>&1
  493. # Name of the host.
  494. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  495. # so uname gets run too.
  496. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  497. #
  498. # Initializations.
  499. #
  500. ac_default_prefix=/usr/local
  501. ac_clean_files=
  502. ac_config_libobj_dir=.
  503. LIBOBJS=
  504. cross_compiling=no
  505. subdirs=
  506. MFLAGS=
  507. MAKEFLAGS=
  508. # Identity of this package.
  509. PACKAGE_NAME='asterisk'
  510. PACKAGE_TARNAME='asterisk'
  511. PACKAGE_VERSION='trunk'
  512. PACKAGE_STRING='asterisk trunk'
  513. PACKAGE_BUGREPORT='https://issues.asterisk.org'
  514. PACKAGE_URL=''
  515. ac_unique_file="main/asterisk.c"
  516. # Factoring default headers for most tests.
  517. ac_includes_default="\
  518. #include <stdio.h>
  519. #ifdef HAVE_SYS_TYPES_H
  520. # include <sys/types.h>
  521. #endif
  522. #ifdef HAVE_SYS_STAT_H
  523. # include <sys/stat.h>
  524. #endif
  525. #ifdef STDC_HEADERS
  526. # include <stdlib.h>
  527. # include <stddef.h>
  528. #else
  529. # ifdef HAVE_STDLIB_H
  530. # include <stdlib.h>
  531. # endif
  532. #endif
  533. #ifdef HAVE_STRING_H
  534. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  535. # include <memory.h>
  536. # endif
  537. # include <string.h>
  538. #endif
  539. #ifdef HAVE_STRINGS_H
  540. # include <strings.h>
  541. #endif
  542. #ifdef HAVE_INTTYPES_H
  543. # include <inttypes.h>
  544. #endif
  545. #ifdef HAVE_STDINT_H
  546. # include <stdint.h>
  547. #endif
  548. #ifdef HAVE_UNISTD_H
  549. # include <unistd.h>
  550. #endif"
  551. ac_header_list=
  552. ac_subst_vars='LTLIBOBJS
  553. PBX_SYSLOG
  554. PBX_SYSLOG_FACILITY_LOG_UUCP
  555. PBX_SYSLOG_FACILITY_LOG_SYSLOG
  556. PBX_SYSLOG_FACILITY_LOG_NEWS
  557. PBX_SYSLOG_FACILITY_LOG_MAIL
  558. PBX_SYSLOG_FACILITY_LOG_LPR
  559. PBX_SYSLOG_FACILITY_LOG_KERN
  560. PBX_SYSLOG_FACILITY_LOG_FTP
  561. PBX_SYSLOG_FACILITY_LOG_DAEMON
  562. PBX_SYSLOG_FACILITY_LOG_CRON
  563. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
  564. PBX_SYSLOG_FACILITY_LOG_AUTH
  565. PBX_GENERIC_ODBC
  566. GENERIC_ODBC_INCLUDE
  567. GENERIC_ODBC_LIB
  568. PBX_LAUNCHD
  569. CONFIG_SDL
  570. PBX_SO_NOSIGPIPE
  571. PBX_MSG_NOSIGNAL
  572. PBX_IXJUSER
  573. PBX_H323
  574. EDITLINE_LIB
  575. CONFIG_GMIME
  576. AIS_LIB
  577. AIS_INCLUDE
  578. PBX_AIS
  579. OPENH323_BUILD
  580. OPENH323_SUFFIX
  581. OPENH323_LIBDIR
  582. OPENH323_INCDIR
  583. OPENH323DIR
  584. PWLIB_PLATFORM
  585. PWLIB_LIBDIR
  586. PWLIB_INCDIR
  587. PWLIBDIR
  588. PTLIB_CONFIG
  589. PG_CONFIG
  590. CONFIG_NETSNMP
  591. CONFIG_NEON29
  592. CONFIG_NEON
  593. CONFIG_MYSQLCLIENT
  594. PBX_MISDN_FAC_ERROR
  595. PBX_MISDN_FAC_RESULT
  596. CONFIG_LIBXML2
  597. GSM_INTERNAL
  598. PBX_DAHDI_HALF_FULL
  599. PKGCONFIG
  600. PBX_DLADDR
  601. PBX_IP_MTU_DISCOVER
  602. PBX_GLOB_BRACE
  603. PBX_GLOB_NOMAGIC
  604. AST_MARCH_NATIVE
  605. AST_SHADOW_WARNINGS
  606. AST_NO_STRICT_OVERFLOW
  607. AST_FORTIFY_SOURCE
  608. AST_DECLARATION_AFTER_STATEMENT
  609. GC_LDFLAGS
  610. GC_CFLAGS
  611. PBX_WEAKREF
  612. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  613. PBX_PTHREAD_RWLOCK_INITIALIZER
  614. HAS_POLL
  615. PBX_DYNAMIC_LIST
  616. POW_LIB
  617. PBX_WORKING_FORK
  618. LIBOBJS
  619. ALLOCA
  620. PBX_ZLIB
  621. ZLIB_DIR
  622. ZLIB_INCLUDE
  623. ZLIB_LIB
  624. PBX_X11
  625. X11_DIR
  626. X11_INCLUDE
  627. X11_LIB
  628. PBX_VPB
  629. VPB_DIR
  630. VPB_INCLUDE
  631. VPB_LIB
  632. PBX_VORBIS
  633. VORBIS_DIR
  634. VORBIS_INCLUDE
  635. VORBIS_LIB
  636. PBX_USB
  637. USB_DIR
  638. USB_INCLUDE
  639. USB_LIB
  640. PBX_UNIXODBC
  641. UNIXODBC_DIR
  642. UNIXODBC_INCLUDE
  643. UNIXODBC_LIB
  644. PBX_TONEZONE
  645. TONEZONE_DIR
  646. TONEZONE_INCLUDE
  647. TONEZONE_LIB
  648. PBX_TINFO
  649. TINFO_DIR
  650. TINFO_INCLUDE
  651. TINFO_LIB
  652. PBX_TIMERFD
  653. TIMERFD_DIR
  654. TIMERFD_INCLUDE
  655. TIMERFD_LIB
  656. PBX_TERMCAP
  657. TERMCAP_DIR
  658. TERMCAP_INCLUDE
  659. TERMCAP_LIB
  660. PBX_FREETDS
  661. FREETDS_DIR
  662. FREETDS_INCLUDE
  663. FREETDS_LIB
  664. PBX_SUPPSERV
  665. SUPPSERV_DIR
  666. SUPPSERV_INCLUDE
  667. SUPPSERV_LIB
  668. PBX_OPENSSL
  669. OPENSSL_DIR
  670. OPENSSL_INCLUDE
  671. OPENSSL_LIB
  672. PBX_SRTP
  673. SRTP_DIR
  674. SRTP_INCLUDE
  675. SRTP_LIB
  676. PBX_SQLITE3
  677. SQLITE3_DIR
  678. SQLITE3_INCLUDE
  679. SQLITE3_LIB
  680. PBX_SQLITE
  681. SQLITE_DIR
  682. SQLITE_INCLUDE
  683. SQLITE_LIB
  684. PBX_SPEEXDSP
  685. SPEEXDSP_DIR
  686. SPEEXDSP_INCLUDE
  687. SPEEXDSP_LIB
  688. PBX_SPEEX_PREPROCESS
  689. SPEEX_PREPROCESS_DIR
  690. SPEEX_PREPROCESS_INCLUDE
  691. SPEEX_PREPROCESS_LIB
  692. PBX_SPEEX
  693. SPEEX_DIR
  694. SPEEX_INCLUDE
  695. SPEEX_LIB
  696. PBX_SS7
  697. SS7_DIR
  698. SS7_INCLUDE
  699. SS7_LIB
  700. PBX_SPANDSP
  701. SPANDSP_DIR
  702. SPANDSP_INCLUDE
  703. SPANDSP_LIB
  704. SOUNDS_CACHE_DIR
  705. PBX_SDL_IMAGE
  706. SDL_IMAGE_DIR
  707. SDL_IMAGE_INCLUDE
  708. SDL_IMAGE_LIB
  709. PBX_SDL
  710. SDL_DIR
  711. SDL_INCLUDE
  712. SDL_LIB
  713. PBX_RESAMPLE
  714. RESAMPLE_DIR
  715. RESAMPLE_INCLUDE
  716. RESAMPLE_LIB
  717. PBX_RADIUS
  718. RADIUS_DIR
  719. RADIUS_INCLUDE
  720. RADIUS_LIB
  721. PBX_PWLIB
  722. PWLIB_DIR
  723. PWLIB_INCLUDE
  724. PWLIB_LIB
  725. PBX_PRI_REVERSE_CHARGE
  726. PRI_REVERSE_CHARGE_DIR
  727. PRI_REVERSE_CHARGE_INCLUDE
  728. PRI_REVERSE_CHARGE_LIB
  729. PBX_PRI_SERVICE_MESSAGES
  730. PRI_SERVICE_MESSAGES_DIR
  731. PRI_SERVICE_MESSAGES_INCLUDE
  732. PRI_SERVICE_MESSAGES_LIB
  733. PBX_PRI_PROG_W_CAUSE
  734. PRI_PROG_W_CAUSE_DIR
  735. PRI_PROG_W_CAUSE_INCLUDE
  736. PRI_PROG_W_CAUSE_LIB
  737. PBX_PRI_INBANDDISCONNECT
  738. PRI_INBANDDISCONNECT_DIR
  739. PRI_INBANDDISCONNECT_INCLUDE
  740. PRI_INBANDDISCONNECT_LIB
  741. PBX_PRI_SETUP_KEYPAD
  742. PRI_SETUP_KEYPAD_DIR
  743. PRI_SETUP_KEYPAD_INCLUDE
  744. PRI_SETUP_KEYPAD_LIB
  745. PBX_PRI_CALL_REROUTING
  746. PRI_CALL_REROUTING_DIR
  747. PRI_CALL_REROUTING_INCLUDE
  748. PRI_CALL_REROUTING_LIB
  749. PBX_PRI_CALL_HOLD
  750. PRI_CALL_HOLD_DIR
  751. PRI_CALL_HOLD_INCLUDE
  752. PRI_CALL_HOLD_LIB
  753. PBX_PRI_SUBADDR
  754. PRI_SUBADDR_DIR
  755. PRI_SUBADDR_INCLUDE
  756. PRI_SUBADDR_LIB
  757. PBX_PRI_HANGUP_FIX
  758. PRI_HANGUP_FIX_DIR
  759. PRI_HANGUP_FIX_INCLUDE
  760. PRI_HANGUP_FIX_LIB
  761. PBX_PRI_CCSS
  762. PRI_CCSS_DIR
  763. PRI_CCSS_INCLUDE
  764. PRI_CCSS_LIB
  765. PBX_PRI_TRANSFER
  766. PRI_TRANSFER_DIR
  767. PRI_TRANSFER_INCLUDE
  768. PRI_TRANSFER_LIB
  769. PBX_PRI_AOC_EVENTS
  770. PRI_AOC_EVENTS_DIR
  771. PRI_AOC_EVENTS_INCLUDE
  772. PRI_AOC_EVENTS_LIB
  773. PBX_PRI_CALL_WAITING
  774. PRI_CALL_WAITING_DIR
  775. PRI_CALL_WAITING_INCLUDE
  776. PRI_CALL_WAITING_LIB
  777. PBX_PRI_MCID
  778. PRI_MCID_DIR
  779. PRI_MCID_INCLUDE
  780. PRI_MCID_LIB
  781. PBX_PRI_MWI
  782. PRI_MWI_DIR
  783. PRI_MWI_INCLUDE
  784. PRI_MWI_LIB
  785. PBX_PRI_DISPLAY_TEXT
  786. PRI_DISPLAY_TEXT_DIR
  787. PRI_DISPLAY_TEXT_INCLUDE
  788. PRI_DISPLAY_TEXT_LIB
  789. PBX_PRI_MWI_V2
  790. PRI_MWI_V2_DIR
  791. PRI_MWI_V2_INCLUDE
  792. PRI_MWI_V2_LIB
  793. PBX_PRI_DATETIME_SEND
  794. PRI_DATETIME_SEND_DIR
  795. PRI_DATETIME_SEND_INCLUDE
  796. PRI_DATETIME_SEND_LIB
  797. PBX_PRI
  798. PRI_DIR
  799. PRI_INCLUDE
  800. PRI_LIB
  801. PBX_PORTAUDIO
  802. PORTAUDIO_DIR
  803. PORTAUDIO_INCLUDE
  804. PORTAUDIO_LIB
  805. PBX_POPT
  806. POPT_DIR
  807. POPT_INCLUDE
  808. POPT_LIB
  809. PBX_PGSQL
  810. PGSQL_DIR
  811. PGSQL_INCLUDE
  812. PGSQL_LIB
  813. PBX_OSS
  814. OSS_DIR
  815. OSS_INCLUDE
  816. OSS_LIB
  817. PBX_OSPTK
  818. OSPTK_DIR
  819. OSPTK_INCLUDE
  820. OSPTK_LIB
  821. PBX_OPENR2
  822. OPENR2_DIR
  823. OPENR2_INCLUDE
  824. OPENR2_LIB
  825. PBX_OPENAIS
  826. OPENAIS_DIR
  827. OPENAIS_INCLUDE
  828. OPENAIS_LIB
  829. PBX_OGG
  830. OGG_DIR
  831. OGG_INCLUDE
  832. OGG_LIB
  833. PBX_NEWT
  834. NEWT_DIR
  835. NEWT_INCLUDE
  836. NEWT_LIB
  837. PBX_NETSNMP
  838. NETSNMP_DIR
  839. NETSNMP_INCLUDE
  840. NETSNMP_LIB
  841. PBX_NEON29
  842. NEON29_DIR
  843. NEON29_INCLUDE
  844. NEON29_LIB
  845. PBX_NEON
  846. NEON_DIR
  847. NEON_INCLUDE
  848. NEON_LIB
  849. PBX_NCURSES
  850. NCURSES_DIR
  851. NCURSES_INCLUDE
  852. NCURSES_LIB
  853. PBX_NBS
  854. NBS_DIR
  855. NBS_INCLUDE
  856. NBS_LIB
  857. PBX_MYSQLCLIENT
  858. MYSQLCLIENT_DIR
  859. MYSQLCLIENT_INCLUDE
  860. MYSQLCLIENT_LIB
  861. PBX_MISDN
  862. MISDN_DIR
  863. MISDN_INCLUDE
  864. MISDN_LIB
  865. PBX_LUA
  866. LUA_DIR
  867. LUA_INCLUDE
  868. LUA_LIB
  869. PBX_LTDL
  870. LTDL_DIR
  871. LTDL_INCLUDE
  872. LTDL_LIB
  873. PBX_LIBXML2
  874. LIBXML2_DIR
  875. LIBXML2_INCLUDE
  876. LIBXML2_LIB
  877. CURL_LIB
  878. CURL_INCLUDE
  879. _libcurl_config
  880. PBX_CURL
  881. PBX_LDAP
  882. LDAP_DIR
  883. LDAP_INCLUDE
  884. LDAP_LIB
  885. PBX_KQUEUE
  886. KQUEUE_DIR
  887. KQUEUE_INCLUDE
  888. KQUEUE_LIB
  889. PBX_JACK
  890. JACK_DIR
  891. JACK_INCLUDE
  892. JACK_LIB
  893. PBX_ISDNNET
  894. ISDNNET_DIR
  895. ISDNNET_INCLUDE
  896. ISDNNET_LIB
  897. PBX_IODBC
  898. IODBC_DIR
  899. IODBC_INCLUDE
  900. IODBC_LIB
  901. PBX_INOTIFY
  902. INOTIFY_DIR
  903. INOTIFY_INCLUDE
  904. INOTIFY_LIB
  905. PBX_IMAP_TK
  906. IMAP_TK_DIR
  907. IMAP_TK_INCLUDE
  908. IMAP_TK_LIB
  909. PBX_IKSEMEL
  910. IKSEMEL_DIR
  911. IKSEMEL_INCLUDE
  912. IKSEMEL_LIB
  913. PBX_ICONV
  914. ICONV_DIR
  915. ICONV_INCLUDE
  916. ICONV_LIB
  917. PBX_ICAL
  918. ICAL_DIR
  919. ICAL_INCLUDE
  920. ICAL_LIB
  921. PBX_HOARD
  922. HOARD_DIR
  923. HOARD_INCLUDE
  924. HOARD_LIB
  925. PBX_OPENH323
  926. OPENH323_DIR
  927. OPENH323_INCLUDE
  928. OPENH323_LIB
  929. PBX_GMIME
  930. GMIME_DIR
  931. GMIME_INCLUDE
  932. GMIME_LIB
  933. PBX_GTK2
  934. GTK2_DIR
  935. GTK2_INCLUDE
  936. GTK2_LIB
  937. PBX_GSM
  938. GSM_DIR
  939. GSM_INCLUDE
  940. GSM_LIB
  941. PBX_FFMPEG
  942. FFMPEG_DIR
  943. FFMPEG_INCLUDE
  944. FFMPEG_LIB
  945. PBX_DAHDI
  946. DAHDI_DIR
  947. DAHDI_INCLUDE
  948. DAHDI_LIB
  949. PBX_CRYPTO
  950. CRYPTO_DIR
  951. CRYPTO_INCLUDE
  952. CRYPTO_LIB
  953. PBX_CURSES
  954. CURSES_DIR
  955. CURSES_INCLUDE
  956. CURSES_LIB
  957. PBX_CAP
  958. CAP_DIR
  959. CAP_INCLUDE
  960. CAP_LIB
  961. PBX_BLUETOOTH
  962. BLUETOOTH_DIR
  963. BLUETOOTH_INCLUDE
  964. BLUETOOTH_LIB
  965. PBX_BKTR
  966. BKTR_DIR
  967. BKTR_INCLUDE
  968. BKTR_LIB
  969. PBX_BFD
  970. BFD_DIR
  971. BFD_INCLUDE
  972. BFD_LIB
  973. PBX_ALSA
  974. ALSA_DIR
  975. ALSA_INCLUDE
  976. ALSA_LIB
  977. AST_CODE_COVERAGE
  978. AST_DEVMODE
  979. NOISY_BUILD
  980. PTHREAD_CFLAGS
  981. PTHREAD_LIBS
  982. PTHREAD_CC
  983. acx_pthread_config
  984. MD5
  985. SOXMIX
  986. PBX_FLEX
  987. PBX_BISON
  988. DOWNLOAD
  989. FETCH
  990. XMLSTARLET
  991. XMLLINT
  992. KPATHSEA
  993. CATDVI
  994. RUBBER
  995. CURL
  996. WGET
  997. DOT
  998. LN
  999. DIRNAME
  1000. BASENAME
  1001. COMPRESS
  1002. FIND
  1003. FLEX
  1004. CMP
  1005. BISON
  1006. GNU_LD
  1007. ac_ct_OPENSSL
  1008. OPENSSL
  1009. ac_ct_SHA1SUM
  1010. SHA1SUM
  1011. ac_ct_AR
  1012. AR
  1013. ac_ct_STRIP
  1014. STRIP
  1015. GNU_MAKE
  1016. LN_S
  1017. INSTALL_DATA
  1018. INSTALL_SCRIPT
  1019. INSTALL_PROGRAM
  1020. AWK
  1021. SED
  1022. CXXCPP
  1023. ac_ct_CXX
  1024. CXXFLAGS
  1025. RANLIB
  1026. LD
  1027. CXX
  1028. PBX_OSREV
  1029. UNAME
  1030. PBX_WINARCH
  1031. OSARCH
  1032. HOST_OS
  1033. HOST_VENDOR
  1034. HOST_CPU
  1035. HOST_PLATFORM
  1036. BUILD_OS
  1037. BUILD_VENDOR
  1038. BUILD_CPU
  1039. BUILD_PLATFORM
  1040. astvarrundir
  1041. astlogdir
  1042. astspooldir
  1043. astkeydir
  1044. astdbdir
  1045. astdatadir
  1046. astvarlibdir
  1047. astmandir
  1048. astlibdir
  1049. astheaderdir
  1050. astetcdir
  1051. astsbindir
  1052. EGREP
  1053. GREP
  1054. CPP
  1055. OBJEXT
  1056. EXEEXT
  1057. ac_ct_CC
  1058. CPPFLAGS
  1059. LDFLAGS
  1060. CFLAGS
  1061. CC
  1062. CONFIG_LDFLAGS
  1063. CONFIG_CFLAGS
  1064. host_os
  1065. host_vendor
  1066. host_cpu
  1067. host
  1068. build_os
  1069. build_vendor
  1070. build_cpu
  1071. build
  1072. target_alias
  1073. host_alias
  1074. build_alias
  1075. LIBS
  1076. ECHO_T
  1077. ECHO_N
  1078. ECHO_C
  1079. DEFS
  1080. mandir
  1081. localedir
  1082. libdir
  1083. psdir
  1084. pdfdir
  1085. dvidir
  1086. htmldir
  1087. infodir
  1088. docdir
  1089. oldincludedir
  1090. includedir
  1091. localstatedir
  1092. sharedstatedir
  1093. sysconfdir
  1094. datadir
  1095. datarootdir
  1096. libexecdir
  1097. sbindir
  1098. bindir
  1099. program_transform_name
  1100. prefix
  1101. exec_prefix
  1102. PACKAGE_URL
  1103. PACKAGE_BUGREPORT
  1104. PACKAGE_STRING
  1105. PACKAGE_VERSION
  1106. PACKAGE_TARNAME
  1107. PACKAGE_NAME
  1108. PATH_SEPARATOR
  1109. SHELL'
  1110. ac_subst_files=''
  1111. ac_user_opts='
  1112. enable_option_checking
  1113. with_gnu_ld
  1114. enable_dev_mode
  1115. enable_coverage
  1116. with_asound
  1117. with_bfd
  1118. with_execinfo
  1119. with_bluetooth
  1120. with_cap
  1121. with_curses
  1122. with_crypto
  1123. with_dahdi
  1124. with_avcodec
  1125. with_gsm
  1126. with_gtk2
  1127. with_gmime
  1128. with_h323
  1129. with_hoard
  1130. with_ical
  1131. with_iconv
  1132. with_iksemel
  1133. with_imap
  1134. with_inotify
  1135. with_iodbc
  1136. with_isdnnet
  1137. with_jack
  1138. with_kqueue
  1139. with_ldap
  1140. with_libcurl
  1141. with_libxml2
  1142. with_ltdl
  1143. with_lua
  1144. with_misdn
  1145. with_mysqlclient
  1146. with_nbs
  1147. with_ncurses
  1148. with_neon
  1149. with_neon29
  1150. with_netsnmp
  1151. with_newt
  1152. with_ogg
  1153. with_openais
  1154. with_openr2
  1155. with_osptk
  1156. with_oss
  1157. with_postgres
  1158. with_popt
  1159. with_portaudio
  1160. with_pri
  1161. with_pwlib
  1162. with_radius
  1163. with_resample
  1164. with_sdl
  1165. with_SDL_image
  1166. with_sounds_cache
  1167. with_spandsp
  1168. with_ss7
  1169. with_speex
  1170. with_speexdsp
  1171. with_sqlite
  1172. with_sqlite3
  1173. with_srtp
  1174. with_ssl
  1175. with_suppserv
  1176. with_tds
  1177. with_termcap
  1178. with_timerfd
  1179. with_tinfo
  1180. with_tonezone
  1181. with_unixodbc
  1182. with_usb
  1183. with_vorbis
  1184. with_vpb
  1185. with_x11
  1186. with_z
  1187. enable_largefile
  1188. enable_internal_poll
  1189. enable_xmldoc
  1190. '
  1191. ac_precious_vars='build_alias
  1192. host_alias
  1193. target_alias
  1194. CC
  1195. CFLAGS
  1196. LDFLAGS
  1197. LIBS
  1198. CPPFLAGS
  1199. CPP
  1200. CXX
  1201. CXXFLAGS
  1202. CCC
  1203. CXXCPP'
  1204. # Initialize some variables set by options.
  1205. ac_init_help=
  1206. ac_init_version=false
  1207. ac_unrecognized_opts=
  1208. ac_unrecognized_sep=
  1209. # The variables have the same names as the options, with
  1210. # dashes changed to underlines.
  1211. cache_file=/dev/null
  1212. exec_prefix=NONE
  1213. no_create=
  1214. no_recursion=
  1215. prefix=NONE
  1216. program_prefix=NONE
  1217. program_suffix=NONE
  1218. program_transform_name=s,x,x,
  1219. silent=
  1220. site=
  1221. srcdir=
  1222. verbose=
  1223. x_includes=NONE
  1224. x_libraries=NONE
  1225. # Installation directory options.
  1226. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1227. # and all the variables that are supposed to be based on exec_prefix
  1228. # by default will actually change.
  1229. # Use braces instead of parens because sh, perl, etc. also accept them.
  1230. # (The list follows the same order as the GNU Coding Standards.)
  1231. bindir='${exec_prefix}/bin'
  1232. sbindir='${exec_prefix}/sbin'
  1233. libexecdir='${exec_prefix}/libexec'
  1234. datarootdir='${prefix}/share'
  1235. datadir='${datarootdir}'
  1236. sysconfdir='${prefix}/etc'
  1237. sharedstatedir='${prefix}/com'
  1238. localstatedir='${prefix}/var'
  1239. includedir='${prefix}/include'
  1240. oldincludedir='/usr/include'
  1241. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1242. infodir='${datarootdir}/info'
  1243. htmldir='${docdir}'
  1244. dvidir='${docdir}'
  1245. pdfdir='${docdir}'
  1246. psdir='${docdir}'
  1247. libdir='${exec_prefix}/lib'
  1248. localedir='${datarootdir}/locale'
  1249. mandir='${datarootdir}/man'
  1250. ac_prev=
  1251. ac_dashdash=
  1252. for ac_option
  1253. do
  1254. # If the previous option needs an argument, assign it.
  1255. if test -n "$ac_prev"; then
  1256. eval $ac_prev=\$ac_option
  1257. ac_prev=
  1258. continue
  1259. fi
  1260. case $ac_option in
  1261. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1262. *=) ac_optarg= ;;
  1263. *) ac_optarg=yes ;;
  1264. esac
  1265. # Accept the important Cygnus configure options, so we can diagnose typos.
  1266. case $ac_dashdash$ac_option in
  1267. --)
  1268. ac_dashdash=yes ;;
  1269. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1270. ac_prev=bindir ;;
  1271. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1272. bindir=$ac_optarg ;;
  1273. -build | --build | --buil | --bui | --bu)
  1274. ac_prev=build_alias ;;
  1275. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1276. build_alias=$ac_optarg ;;
  1277. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1278. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1279. ac_prev=cache_file ;;
  1280. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1281. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1282. cache_file=$ac_optarg ;;
  1283. --config-cache | -C)
  1284. cache_file=config.cache ;;
  1285. -datadir | --datadir | --datadi | --datad)
  1286. ac_prev=datadir ;;
  1287. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1288. datadir=$ac_optarg ;;
  1289. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1290. | --dataroo | --dataro | --datar)
  1291. ac_prev=datarootdir ;;
  1292. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1293. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1294. datarootdir=$ac_optarg ;;
  1295. -disable-* | --disable-*)
  1296. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1297. # Reject names that are not valid shell variable names.
  1298. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1299. as_fn_error $? "invalid feature name: $ac_useropt"
  1300. ac_useropt_orig=$ac_useropt
  1301. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1302. case $ac_user_opts in
  1303. *"
  1304. "enable_$ac_useropt"
  1305. "*) ;;
  1306. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1307. ac_unrecognized_sep=', ';;
  1308. esac
  1309. eval enable_$ac_useropt=no ;;
  1310. -docdir | --docdir | --docdi | --doc | --do)
  1311. ac_prev=docdir ;;
  1312. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1313. docdir=$ac_optarg ;;
  1314. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1315. ac_prev=dvidir ;;
  1316. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1317. dvidir=$ac_optarg ;;
  1318. -enable-* | --enable-*)
  1319. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1320. # Reject names that are not valid shell variable names.
  1321. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1322. as_fn_error $? "invalid feature name: $ac_useropt"
  1323. ac_useropt_orig=$ac_useropt
  1324. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1325. case $ac_user_opts in
  1326. *"
  1327. "enable_$ac_useropt"
  1328. "*) ;;
  1329. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1330. ac_unrecognized_sep=', ';;
  1331. esac
  1332. eval enable_$ac_useropt=\$ac_optarg ;;
  1333. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1334. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1335. | --exec | --exe | --ex)
  1336. ac_prev=exec_prefix ;;
  1337. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1338. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1339. | --exec=* | --exe=* | --ex=*)
  1340. exec_prefix=$ac_optarg ;;
  1341. -gas | --gas | --ga | --g)
  1342. # Obsolete; use --with-gas.
  1343. with_gas=yes ;;
  1344. -help | --help | --hel | --he | -h)
  1345. ac_init_help=long ;;
  1346. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1347. ac_init_help=recursive ;;
  1348. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1349. ac_init_help=short ;;
  1350. -host | --host | --hos | --ho)
  1351. ac_prev=host_alias ;;
  1352. -host=* | --host=* | --hos=* | --ho=*)
  1353. host_alias=$ac_optarg ;;
  1354. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1355. ac_prev=htmldir ;;
  1356. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1357. | --ht=*)
  1358. htmldir=$ac_optarg ;;
  1359. -includedir | --includedir | --includedi | --included | --include \
  1360. | --includ | --inclu | --incl | --inc)
  1361. ac_prev=includedir ;;
  1362. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1363. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1364. includedir=$ac_optarg ;;
  1365. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1366. ac_prev=infodir ;;
  1367. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1368. infodir=$ac_optarg ;;
  1369. -libdir | --libdir | --libdi | --libd)
  1370. ac_prev=libdir ;;
  1371. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1372. libdir=$ac_optarg ;;
  1373. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1374. | --libexe | --libex | --libe)
  1375. ac_prev=libexecdir ;;
  1376. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1377. | --libexe=* | --libex=* | --libe=*)
  1378. libexecdir=$ac_optarg ;;
  1379. -localedir | --localedir | --localedi | --localed | --locale)
  1380. ac_prev=localedir ;;
  1381. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1382. localedir=$ac_optarg ;;
  1383. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1384. | --localstate | --localstat | --localsta | --localst | --locals)
  1385. ac_prev=localstatedir ;;
  1386. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1387. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1388. localstatedir=$ac_optarg ;;
  1389. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1390. ac_prev=mandir ;;
  1391. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1392. mandir=$ac_optarg ;;
  1393. -nfp | --nfp | --nf)
  1394. # Obsolete; use --without-fp.
  1395. with_fp=no ;;
  1396. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1397. | --no-cr | --no-c | -n)
  1398. no_create=yes ;;
  1399. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1400. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1401. no_recursion=yes ;;
  1402. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1403. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1404. | --oldin | --oldi | --old | --ol | --o)
  1405. ac_prev=oldincludedir ;;
  1406. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1407. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1408. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1409. oldincludedir=$ac_optarg ;;
  1410. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1411. ac_prev=prefix ;;
  1412. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1413. prefix=$ac_optarg ;;
  1414. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1415. | --program-pre | --program-pr | --program-p)
  1416. ac_prev=program_prefix ;;
  1417. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1418. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1419. program_prefix=$ac_optarg ;;
  1420. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1421. | --program-suf | --program-su | --program-s)
  1422. ac_prev=program_suffix ;;
  1423. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1424. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1425. program_suffix=$ac_optarg ;;
  1426. -program-transform-name | --program-transform-name \
  1427. | --program-transform-nam | --program-transform-na \
  1428. | --program-transform-n | --program-transform- \
  1429. | --program-transform | --program-transfor \
  1430. | --program-transfo | --program-transf \
  1431. | --program-trans | --program-tran \
  1432. | --progr-tra | --program-tr | --program-t)
  1433. ac_prev=program_transform_name ;;
  1434. -program-transform-name=* | --program-transform-name=* \
  1435. | --program-transform-nam=* | --program-transform-na=* \
  1436. | --program-transform-n=* | --program-transform-=* \
  1437. | --program-transform=* | --program-transfor=* \
  1438. | --program-transfo=* | --program-transf=* \
  1439. | --program-trans=* | --program-tran=* \
  1440. | --progr-tra=* | --program-tr=* | --program-t=*)
  1441. program_transform_name=$ac_optarg ;;
  1442. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1443. ac_prev=pdfdir ;;
  1444. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1445. pdfdir=$ac_optarg ;;
  1446. -psdir | --psdir | --psdi | --psd | --ps)
  1447. ac_prev=psdir ;;
  1448. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1449. psdir=$ac_optarg ;;
  1450. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1451. | -silent | --silent | --silen | --sile | --sil)
  1452. silent=yes ;;
  1453. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1454. ac_prev=sbindir ;;
  1455. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1456. | --sbi=* | --sb=*)
  1457. sbindir=$ac_optarg ;;
  1458. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1459. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1460. | --sharedst | --shareds | --shared | --share | --shar \
  1461. | --sha | --sh)
  1462. ac_prev=sharedstatedir ;;
  1463. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1464. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1465. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1466. | --sha=* | --sh=*)
  1467. sharedstatedir=$ac_optarg ;;
  1468. -site | --site | --sit)
  1469. ac_prev=site ;;
  1470. -site=* | --site=* | --sit=*)
  1471. site=$ac_optarg ;;
  1472. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1473. ac_prev=srcdir ;;
  1474. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1475. srcdir=$ac_optarg ;;
  1476. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1477. | --syscon | --sysco | --sysc | --sys | --sy)
  1478. ac_prev=sysconfdir ;;
  1479. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1480. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1481. sysconfdir=$ac_optarg ;;
  1482. -target | --target | --targe | --targ | --tar | --ta | --t)
  1483. ac_prev=target_alias ;;
  1484. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1485. target_alias=$ac_optarg ;;
  1486. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1487. verbose=yes ;;
  1488. -version | --version | --versio | --versi | --vers | -V)
  1489. ac_init_version=: ;;
  1490. -with-* | --with-*)
  1491. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1492. # Reject names that are not valid shell variable names.
  1493. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1494. as_fn_error $? "invalid package name: $ac_useropt"
  1495. ac_useropt_orig=$ac_useropt
  1496. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1497. case $ac_user_opts in
  1498. *"
  1499. "with_$ac_useropt"
  1500. "*) ;;
  1501. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1502. ac_unrecognized_sep=', ';;
  1503. esac
  1504. eval with_$ac_useropt=\$ac_optarg ;;
  1505. -without-* | --without-*)
  1506. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1507. # Reject names that are not valid shell variable names.
  1508. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1509. as_fn_error $? "invalid package name: $ac_useropt"
  1510. ac_useropt_orig=$ac_useropt
  1511. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1512. case $ac_user_opts in
  1513. *"
  1514. "with_$ac_useropt"
  1515. "*) ;;
  1516. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1517. ac_unrecognized_sep=', ';;
  1518. esac
  1519. eval with_$ac_useropt=no ;;
  1520. --x)
  1521. # Obsolete; use --with-x.
  1522. with_x=yes ;;
  1523. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1524. | --x-incl | --x-inc | --x-in | --x-i)
  1525. ac_prev=x_includes ;;
  1526. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1527. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1528. x_includes=$ac_optarg ;;
  1529. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1530. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1531. ac_prev=x_libraries ;;
  1532. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1533. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1534. x_libraries=$ac_optarg ;;
  1535. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1536. Try \`$0 --help' for more information"
  1537. ;;
  1538. *=*)
  1539. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1540. # Reject names that are not valid shell variable names.
  1541. case $ac_envvar in #(
  1542. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1543. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1544. esac
  1545. eval $ac_envvar=\$ac_optarg
  1546. export $ac_envvar ;;
  1547. *)
  1548. # FIXME: should be removed in autoconf 3.0.
  1549. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1550. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1551. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1552. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1553. ;;
  1554. esac
  1555. done
  1556. if test -n "$ac_prev"; then
  1557. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1558. as_fn_error $? "missing argument to $ac_option"
  1559. fi
  1560. if test -n "$ac_unrecognized_opts"; then
  1561. case $enable_option_checking in
  1562. no) ;;
  1563. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1564. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1565. esac
  1566. fi
  1567. # Check all directory arguments for consistency.
  1568. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1569. datadir sysconfdir sharedstatedir localstatedir includedir \
  1570. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1571. libdir localedir mandir
  1572. do
  1573. eval ac_val=\$$ac_var
  1574. # Remove trailing slashes.
  1575. case $ac_val in
  1576. */ )
  1577. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1578. eval $ac_var=\$ac_val;;
  1579. esac
  1580. # Be sure to have absolute directory names.
  1581. case $ac_val in
  1582. [\\/$]* | ?:[\\/]* ) continue;;
  1583. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1584. esac
  1585. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1586. done
  1587. # There might be people who depend on the old broken behavior: `$host'
  1588. # used to hold the argument of --host etc.
  1589. # FIXME: To remove some day.
  1590. build=$build_alias
  1591. host=$host_alias
  1592. target=$target_alias
  1593. # FIXME: To remove some day.
  1594. if test "x$host_alias" != x; then
  1595. if test "x$build_alias" = x; then
  1596. cross_compiling=maybe
  1597. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1598. If a cross compiler is detected then cross compile mode will be used" >&2
  1599. elif test "x$build_alias" != "x$host_alias"; then
  1600. cross_compiling=yes
  1601. fi
  1602. fi
  1603. ac_tool_prefix=
  1604. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1605. test "$silent" = yes && exec 6>/dev/null
  1606. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1607. ac_ls_di=`ls -di .` &&
  1608. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1609. as_fn_error $? "working directory cannot be determined"
  1610. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1611. as_fn_error $? "pwd does not report name of working directory"
  1612. # Find the source files, if location was not specified.
  1613. if test -z "$srcdir"; then
  1614. ac_srcdir_defaulted=yes
  1615. # Try the directory containing this script, then the parent directory.
  1616. ac_confdir=`$as_dirname -- "$as_myself" ||
  1617. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1618. X"$as_myself" : 'X\(//\)[^/]' \| \
  1619. X"$as_myself" : 'X\(//\)$' \| \
  1620. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1621. $as_echo X"$as_myself" |
  1622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1623. s//\1/
  1624. q
  1625. }
  1626. /^X\(\/\/\)[^/].*/{
  1627. s//\1/
  1628. q
  1629. }
  1630. /^X\(\/\/\)$/{
  1631. s//\1/
  1632. q
  1633. }
  1634. /^X\(\/\).*/{
  1635. s//\1/
  1636. q
  1637. }
  1638. s/.*/./; q'`
  1639. srcdir=$ac_confdir
  1640. if test ! -r "$srcdir/$ac_unique_file"; then
  1641. srcdir=..
  1642. fi
  1643. else
  1644. ac_srcdir_defaulted=no
  1645. fi
  1646. if test ! -r "$srcdir/$ac_unique_file"; then
  1647. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1648. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1649. fi
  1650. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1651. ac_abs_confdir=`(
  1652. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1653. pwd)`
  1654. # When building in place, set srcdir=.
  1655. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1656. srcdir=.
  1657. fi
  1658. # Remove unnecessary trailing slashes from srcdir.
  1659. # Double slashes in file names in object file debugging info
  1660. # mess up M-x gdb in Emacs.
  1661. case $srcdir in
  1662. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1663. esac
  1664. for ac_var in $ac_precious_vars; do
  1665. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1666. eval ac_env_${ac_var}_value=\$${ac_var}
  1667. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1668. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1669. done
  1670. #
  1671. # Report the --help message.
  1672. #
  1673. if test "$ac_init_help" = "long"; then
  1674. # Omit some internal or obsolete options to make the list less imposing.
  1675. # This message is too long to be a string in the A/UX 3.1 sh.
  1676. cat <<_ACEOF
  1677. \`configure' configures asterisk trunk to adapt to many kinds of systems.
  1678. Usage: $0 [OPTION]... [VAR=VALUE]...
  1679. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1680. VAR=VALUE. See below for descriptions of some of the useful variables.
  1681. Defaults for the options are specified in brackets.
  1682. Configuration:
  1683. -h, --help display this help and exit
  1684. --help=short display options specific to this package
  1685. --help=recursive display the short help of all the included packages
  1686. -V, --version display version information and exit
  1687. -q, --quiet, --silent do not print \`checking ...' messages
  1688. --cache-file=FILE cache test results in FILE [disabled]
  1689. -C, --config-cache alias for \`--cache-file=config.cache'
  1690. -n, --no-create do not create output files
  1691. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1692. Installation directories:
  1693. --prefix=PREFIX install architecture-independent files in PREFIX
  1694. [$ac_default_prefix]
  1695. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1696. [PREFIX]
  1697. By default, \`make install' will install all the files in
  1698. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1699. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1700. for instance \`--prefix=\$HOME'.
  1701. For better control, use the options below.
  1702. Fine tuning of the installation directories:
  1703. --bindir=DIR user executables [EPREFIX/bin]
  1704. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1705. --libexecdir=DIR program executables [EPREFIX/libexec]
  1706. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1707. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1708. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1709. --libdir=DIR object code libraries [EPREFIX/lib]
  1710. --includedir=DIR C header files [PREFIX/include]
  1711. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1712. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1713. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1714. --infodir=DIR info documentation [DATAROOTDIR/info]
  1715. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1716. --mandir=DIR man documentation [DATAROOTDIR/man]
  1717. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1718. --htmldir=DIR html documentation [DOCDIR]
  1719. --dvidir=DIR dvi documentation [DOCDIR]
  1720. --pdfdir=DIR pdf documentation [DOCDIR]
  1721. --psdir=DIR ps documentation [DOCDIR]
  1722. _ACEOF
  1723. cat <<\_ACEOF
  1724. System types:
  1725. --build=BUILD configure for building on BUILD [guessed]
  1726. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1727. _ACEOF
  1728. fi
  1729. if test -n "$ac_init_help"; then
  1730. case $ac_init_help in
  1731. short | recursive ) echo "Configuration of asterisk trunk:";;
  1732. esac
  1733. cat <<\_ACEOF
  1734. Optional Features:
  1735. --disable-option-checking ignore unrecognized --enable/--with options
  1736. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1737. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1738. --enable-dev-mode Turn on developer mode
  1739. --enable-coverage Turn on code coverage tracking (for gcov)
  1740. --disable-largefile omit support for large files
  1741. --enable-internal-poll Use Asterisk's poll implementation
  1742. --disable-xmldoc Explicity disable XML documentation
  1743. Optional Packages:
  1744. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1745. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1746. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1747. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1748. --with-bfd=PATH use Debug symbol decoding files in PATH
  1749. --with-execinfo=PATH use Stack Backtrace files in PATH
  1750. --with-bluetooth=PATH use Bluetooth files in PATH
  1751. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1752. --with-curses=PATH use curses files in PATH
  1753. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  1754. --with-dahdi=PATH use DAHDI files in PATH
  1755. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  1756. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  1757. otherwise
  1758. --with-gtk2=PATH use gtk2 files in PATH
  1759. --with-gmime=PATH use GMime files in PATH
  1760. --with-h323=PATH use OpenH323 files in PATH
  1761. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  1762. --with-ical=PATH use iCal files in PATH
  1763. --with-iconv=PATH use Iconv files in PATH
  1764. --with-iksemel=PATH use Iksemel Jabber files in PATH
  1765. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1766. --with-inotify=PATH use inotify support files in PATH
  1767. --with-iodbc=PATH use iODBC files in PATH
  1768. --with-isdnnet=PATH use ISDN4Linux files in PATH
  1769. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  1770. --with-kqueue=PATH use kqueue support files in PATH
  1771. --with-ldap=PATH use OpenLDAP files in PATH
  1772. --with-libcurl=DIR look for the curl library in DIR
  1773. --with-libxml2=PATH use LibXML2 files in PATH
  1774. --with-ltdl=PATH use libtool files in PATH
  1775. --with-lua=PATH use Lua files in PATH
  1776. --with-misdn=PATH use mISDN user files in PATH
  1777. --with-mysqlclient=PATH use MySQL client files in PATH
  1778. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1779. --with-ncurses=PATH use ncurses files in PATH
  1780. --with-neon=PATH use neon files in PATH
  1781. --with-neon29=PATH use neon29 files in PATH
  1782. --with-netsnmp=PATH use Net-SNMP files in PATH
  1783. --with-newt=PATH use newt files in PATH
  1784. --with-ogg=PATH use OGG files in PATH
  1785. --with-openais=PATH use OpenAIS files in PATH
  1786. --with-openr2=PATH use MFR2 files in PATH
  1787. --with-osptk=PATH use OSP Toolkit files in PATH
  1788. --with-oss=PATH use Open Sound System files in PATH
  1789. --with-postgres=PATH use PostgreSQL files in PATH
  1790. --with-popt=PATH use popt files in PATH
  1791. --with-portaudio=PATH use PortAudio files in PATH
  1792. --with-pri=PATH use ISDN PRI files in PATH
  1793. --with-pwlib=PATH use PWlib files in PATH
  1794. --with-radius=PATH use Radius Client files in PATH
  1795. --with-resample=PATH use LIBRESAMPLE files in PATH
  1796. --with-sdl=PATH use Sdl files in PATH
  1797. --with-SDL_image=PATH use Sdl Image files in PATH
  1798. --with-sounds-cache=PATH
  1799. use cached sound tarfiles in PATH
  1800. --with-spandsp=PATH use SPANDSP files in PATH
  1801. --with-ss7=PATH use ISDN SS7 files in PATH
  1802. --with-speex=PATH use Speex files in PATH
  1803. --with-speex=PATH use Speex preprocess routines files in PATH
  1804. --with-speexdsp=PATH use SpeexDSP files in PATH
  1805. --with-sqlite=PATH use SQLite files in PATH
  1806. --with-sqlite3=PATH use SQLite files in PATH
  1807. --with-srtp=PATH use Secure RTP files in PATH
  1808. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  1809. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1810. --with-tds=PATH use FreeTDS files in PATH
  1811. --with-termcap=PATH use Termcap files in PATH
  1812. --with-timerfd=PATH use timerfd files in PATH
  1813. --with-tinfo=PATH use Term Info files in PATH
  1814. --with-tonezone=PATH use tonezone files in PATH
  1815. --with-unixodbc=PATH use unixODBC files in PATH
  1816. --with-usb=PATH use usb files in PATH
  1817. --with-vorbis=PATH use Vorbis files in PATH
  1818. --with-vpb=PATH use Voicetronix API files in PATH
  1819. --with-x11=PATH use X11 files in PATH
  1820. --with-z=PATH use zlib compression files in PATH
  1821. Some influential environment variables:
  1822. CC C compiler command
  1823. CFLAGS C compiler flags
  1824. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1825. nonstandard directory <lib dir>
  1826. LIBS libraries to pass to the linker, e.g. -l<library>
  1827. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1828. you have headers in a nonstandard directory <include dir>
  1829. CPP C preprocessor
  1830. CXX C++ compiler command
  1831. CXXFLAGS C++ compiler flags
  1832. CXXCPP C++ preprocessor
  1833. Use these variables to override the choices made by `configure' or to help
  1834. it to find libraries and programs with nonstandard names/locations.
  1835. Report bugs to <https://issues.asterisk.org>.
  1836. _ACEOF
  1837. ac_status=$?
  1838. fi
  1839. if test "$ac_init_help" = "recursive"; then
  1840. # If there are subdirs, report their specific --help.
  1841. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1842. test -d "$ac_dir" ||
  1843. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1844. continue
  1845. ac_builddir=.
  1846. case "$ac_dir" in
  1847. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1848. *)
  1849. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1850. # A ".." for each directory in $ac_dir_suffix.
  1851. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1852. case $ac_top_builddir_sub in
  1853. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1854. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1855. esac ;;
  1856. esac
  1857. ac_abs_top_builddir=$ac_pwd
  1858. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1859. # for backward compatibility:
  1860. ac_top_builddir=$ac_top_build_prefix
  1861. case $srcdir in
  1862. .) # We are building in place.
  1863. ac_srcdir=.
  1864. ac_top_srcdir=$ac_top_builddir_sub
  1865. ac_abs_top_srcdir=$ac_pwd ;;
  1866. [\\/]* | ?:[\\/]* ) # Absolute name.
  1867. ac_srcdir=$srcdir$ac_dir_suffix;
  1868. ac_top_srcdir=$srcdir
  1869. ac_abs_top_srcdir=$srcdir ;;
  1870. *) # Relative name.
  1871. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1872. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1873. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1874. esac
  1875. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1876. cd "$ac_dir" || { ac_status=$?; continue; }
  1877. # Check for guested configure.
  1878. if test -f "$ac_srcdir/configure.gnu"; then
  1879. echo &&
  1880. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1881. elif test -f "$ac_srcdir/configure"; then
  1882. echo &&
  1883. $SHELL "$ac_srcdir/configure" --help=recursive
  1884. else
  1885. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1886. fi || ac_status=$?
  1887. cd "$ac_pwd" || { ac_status=$?; break; }
  1888. done
  1889. fi
  1890. test -n "$ac_init_help" && exit $ac_status
  1891. if $ac_init_version; then
  1892. cat <<\_ACEOF
  1893. asterisk configure trunk
  1894. generated by GNU Autoconf 2.67
  1895. Copyright (C) 2010 Free Software Foundation, Inc.
  1896. This configure script is free software; the Free Software Foundation
  1897. gives unlimited permission to copy, distribute and modify it.
  1898. "Asterisk"
  1899. _ACEOF
  1900. exit
  1901. fi
  1902. ## ------------------------ ##
  1903. ## Autoconf initialization. ##
  1904. ## ------------------------ ##
  1905. # ac_fn_c_try_compile LINENO
  1906. # --------------------------
  1907. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1908. ac_fn_c_try_compile ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. rm -f conftest.$ac_objext
  1912. if { { ac_try="$ac_compile"
  1913. case "(($ac_try" in
  1914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1915. *) ac_try_echo=$ac_try;;
  1916. esac
  1917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1918. $as_echo "$ac_try_echo"; } >&5
  1919. (eval "$ac_compile") 2>conftest.err
  1920. ac_status=$?
  1921. if test -s conftest.err; then
  1922. grep -v '^ *+' conftest.err >conftest.er1
  1923. cat conftest.er1 >&5
  1924. mv -f conftest.er1 conftest.err
  1925. fi
  1926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1927. test $ac_status = 0; } && {
  1928. test -z "$ac_c_werror_flag" ||
  1929. test ! -s conftest.err
  1930. } && test -s conftest.$ac_objext; then :
  1931. ac_retval=0
  1932. else
  1933. $as_echo "$as_me: failed program was:" >&5
  1934. sed 's/^/| /' conftest.$ac_ext >&5
  1935. ac_retval=1
  1936. fi
  1937. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1938. as_fn_set_status $ac_retval
  1939. } # ac_fn_c_try_compile
  1940. # ac_fn_c_try_cpp LINENO
  1941. # ----------------------
  1942. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1943. ac_fn_c_try_cpp ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1947. case "(($ac_try" in
  1948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1949. *) ac_try_echo=$ac_try;;
  1950. esac
  1951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1952. $as_echo "$ac_try_echo"; } >&5
  1953. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1954. ac_status=$?
  1955. if test -s conftest.err; then
  1956. grep -v '^ *+' conftest.err >conftest.er1
  1957. cat conftest.er1 >&5
  1958. mv -f conftest.er1 conftest.err
  1959. fi
  1960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1961. test $ac_status = 0; } > conftest.i && {
  1962. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1963. test ! -s conftest.err
  1964. }; then :
  1965. ac_retval=0
  1966. else
  1967. $as_echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. ac_retval=1
  1970. fi
  1971. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1972. as_fn_set_status $ac_retval
  1973. } # ac_fn_c_try_cpp
  1974. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1975. # -------------------------------------------------------
  1976. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1977. # the include files in INCLUDES and setting the cache variable VAR
  1978. # accordingly.
  1979. ac_fn_c_check_header_mongrel ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. if eval "test \"\${$3+set}\"" = set; then :
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1984. $as_echo_n "checking for $2... " >&6; }
  1985. if eval "test \"\${$3+set}\"" = set; then :
  1986. $as_echo_n "(cached) " >&6
  1987. fi
  1988. eval ac_res=\$$3
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1990. $as_echo "$ac_res" >&6; }
  1991. else
  1992. # Is the header compilable?
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1994. $as_echo_n "checking $2 usability... " >&6; }
  1995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1996. /* end confdefs.h. */
  1997. $4
  1998. #include <$2>
  1999. _ACEOF
  2000. if ac_fn_c_try_compile "$LINENO"; then :
  2001. ac_header_compiler=yes
  2002. else
  2003. ac_header_compiler=no
  2004. fi
  2005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2007. $as_echo "$ac_header_compiler" >&6; }
  2008. # Is the header present?
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2010. $as_echo_n "checking $2 presence... " >&6; }
  2011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2012. /* end confdefs.h. */
  2013. #include <$2>
  2014. _ACEOF
  2015. if ac_fn_c_try_cpp "$LINENO"; then :
  2016. ac_header_preproc=yes
  2017. else
  2018. ac_header_preproc=no
  2019. fi
  2020. rm -f conftest.err conftest.i conftest.$ac_ext
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2022. $as_echo "$ac_header_preproc" >&6; }
  2023. # So? What about this header?
  2024. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2025. yes:no: )
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2027. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2029. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2030. ;;
  2031. no:yes:* )
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2033. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2035. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2037. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2039. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2041. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2042. ( $as_echo "## ------------------------------------------ ##
  2043. ## Report this to https://issues.asterisk.org ##
  2044. ## ------------------------------------------ ##"
  2045. ) | sed "s/^/$as_me: WARNING: /" >&2
  2046. ;;
  2047. esac
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2049. $as_echo_n "checking for $2... " >&6; }
  2050. if eval "test \"\${$3+set}\"" = set; then :
  2051. $as_echo_n "(cached) " >&6
  2052. else
  2053. eval "$3=\$ac_header_compiler"
  2054. fi
  2055. eval ac_res=\$$3
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2057. $as_echo "$ac_res" >&6; }
  2058. fi
  2059. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2060. } # ac_fn_c_check_header_mongrel
  2061. # ac_fn_c_try_run LINENO
  2062. # ----------------------
  2063. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2064. # that executables *can* be run.
  2065. ac_fn_c_try_run ()
  2066. {
  2067. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2068. if { { ac_try="$ac_link"
  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_link") 2>&5
  2076. ac_status=$?
  2077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2078. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2079. { { case "(($ac_try" in
  2080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2081. *) ac_try_echo=$ac_try;;
  2082. esac
  2083. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2084. $as_echo "$ac_try_echo"; } >&5
  2085. (eval "$ac_try") 2>&5
  2086. ac_status=$?
  2087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2088. test $ac_status = 0; }; }; then :
  2089. ac_retval=0
  2090. else
  2091. $as_echo "$as_me: program exited with status $ac_status" >&5
  2092. $as_echo "$as_me: failed program was:" >&5
  2093. sed 's/^/| /' conftest.$ac_ext >&5
  2094. ac_retval=$ac_status
  2095. fi
  2096. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2097. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2098. as_fn_set_status $ac_retval
  2099. } # ac_fn_c_try_run
  2100. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2101. # -------------------------------------------------------
  2102. # Tests whether HEADER exists and can be compiled using the include files in
  2103. # INCLUDES, setting the cache variable VAR accordingly.
  2104. ac_fn_c_check_header_compile ()
  2105. {
  2106. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2108. $as_echo_n "checking for $2... " >&6; }
  2109. if eval "test \"\${$3+set}\"" = set; then :
  2110. $as_echo_n "(cached) " >&6
  2111. else
  2112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2113. /* end confdefs.h. */
  2114. $4
  2115. #include <$2>
  2116. _ACEOF
  2117. if ac_fn_c_try_compile "$LINENO"; then :
  2118. eval "$3=yes"
  2119. else
  2120. eval "$3=no"
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. fi
  2124. eval ac_res=\$$3
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2126. $as_echo "$ac_res" >&6; }
  2127. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2128. } # ac_fn_c_check_header_compile
  2129. # ac_fn_cxx_try_compile LINENO
  2130. # ----------------------------
  2131. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2132. ac_fn_cxx_try_compile ()
  2133. {
  2134. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2135. rm -f conftest.$ac_objext
  2136. if { { ac_try="$ac_compile"
  2137. case "(($ac_try" in
  2138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2139. *) ac_try_echo=$ac_try;;
  2140. esac
  2141. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2142. $as_echo "$ac_try_echo"; } >&5
  2143. (eval "$ac_compile") 2>conftest.err
  2144. ac_status=$?
  2145. if test -s conftest.err; then
  2146. grep -v '^ *+' conftest.err >conftest.er1
  2147. cat conftest.er1 >&5
  2148. mv -f conftest.er1 conftest.err
  2149. fi
  2150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2151. test $ac_status = 0; } && {
  2152. test -z "$ac_cxx_werror_flag" ||
  2153. test ! -s conftest.err
  2154. } && test -s conftest.$ac_objext; then :
  2155. ac_retval=0
  2156. else
  2157. $as_echo "$as_me: failed program was:" >&5
  2158. sed 's/^/| /' conftest.$ac_ext >&5
  2159. ac_retval=1
  2160. fi
  2161. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2162. as_fn_set_status $ac_retval
  2163. } # ac_fn_cxx_try_compile
  2164. # ac_fn_cxx_try_cpp LINENO
  2165. # ------------------------
  2166. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2167. ac_fn_cxx_try_cpp ()
  2168. {
  2169. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2170. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2171. case "(($ac_try" in
  2172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2173. *) ac_try_echo=$ac_try;;
  2174. esac
  2175. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2176. $as_echo "$ac_try_echo"; } >&5
  2177. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2178. ac_status=$?
  2179. if test -s conftest.err; then
  2180. grep -v '^ *+' conftest.err >conftest.er1
  2181. cat conftest.er1 >&5
  2182. mv -f conftest.er1 conftest.err
  2183. fi
  2184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2185. test $ac_status = 0; } > conftest.i && {
  2186. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2187. test ! -s conftest.err
  2188. }; then :
  2189. ac_retval=0
  2190. else
  2191. $as_echo "$as_me: failed program was:" >&5
  2192. sed 's/^/| /' conftest.$ac_ext >&5
  2193. ac_retval=1
  2194. fi
  2195. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2196. as_fn_set_status $ac_retval
  2197. } # ac_fn_cxx_try_cpp
  2198. # ac_fn_c_try_link LINENO
  2199. # -----------------------
  2200. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2201. ac_fn_c_try_link ()
  2202. {
  2203. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2204. rm -f conftest.$ac_objext conftest$ac_exeext
  2205. if { { ac_try="$ac_link"
  2206. case "(($ac_try" in
  2207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2208. *) ac_try_echo=$ac_try;;
  2209. esac
  2210. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2211. $as_echo "$ac_try_echo"; } >&5
  2212. (eval "$ac_link") 2>conftest.err
  2213. ac_status=$?
  2214. if test -s conftest.err; then
  2215. grep -v '^ *+' conftest.err >conftest.er1
  2216. cat conftest.er1 >&5
  2217. mv -f conftest.er1 conftest.err
  2218. fi
  2219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2220. test $ac_status = 0; } && {
  2221. test -z "$ac_c_werror_flag" ||
  2222. test ! -s conftest.err
  2223. } && test -s conftest$ac_exeext && {
  2224. test "$cross_compiling" = yes ||
  2225. $as_test_x conftest$ac_exeext
  2226. }; then :
  2227. ac_retval=0
  2228. else
  2229. $as_echo "$as_me: failed program was:" >&5
  2230. sed 's/^/| /' conftest.$ac_ext >&5
  2231. ac_retval=1
  2232. fi
  2233. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2234. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2235. # interfere with the next link command; also delete a directory that is
  2236. # left behind by Apple's compiler. We do this before executing the actions.
  2237. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2238. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2239. as_fn_set_status $ac_retval
  2240. } # ac_fn_c_try_link
  2241. # ac_fn_c_check_func LINENO FUNC VAR
  2242. # ----------------------------------
  2243. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2244. ac_fn_c_check_func ()
  2245. {
  2246. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2248. $as_echo_n "checking for $2... " >&6; }
  2249. if eval "test \"\${$3+set}\"" = set; then :
  2250. $as_echo_n "(cached) " >&6
  2251. else
  2252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2253. /* end confdefs.h. */
  2254. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2255. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2256. #define $2 innocuous_$2
  2257. /* System header to define __stub macros and hopefully few prototypes,
  2258. which can conflict with char $2 (); below.
  2259. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2260. <limits.h> exists even on freestanding compilers. */
  2261. #ifdef __STDC__
  2262. # include <limits.h>
  2263. #else
  2264. # include <assert.h>
  2265. #endif
  2266. #undef $2
  2267. /* Override any GCC internal prototype to avoid an error.
  2268. Use char because int might match the return type of a GCC
  2269. builtin and then its argument prototype would still apply. */
  2270. #ifdef __cplusplus
  2271. extern "C"
  2272. #endif
  2273. char $2 ();
  2274. /* The GNU C library defines this for functions which it implements
  2275. to always fail with ENOSYS. Some functions are actually named
  2276. something starting with __ and the normal name is an alias. */
  2277. #if defined __stub_$2 || defined __stub___$2
  2278. choke me
  2279. #endif
  2280. int
  2281. main ()
  2282. {
  2283. return $2 ();
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. if ac_fn_c_try_link "$LINENO"; then :
  2289. eval "$3=yes"
  2290. else
  2291. eval "$3=no"
  2292. fi
  2293. rm -f core conftest.err conftest.$ac_objext \
  2294. conftest$ac_exeext conftest.$ac_ext
  2295. fi
  2296. eval ac_res=\$$3
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2298. $as_echo "$ac_res" >&6; }
  2299. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2300. } # ac_fn_c_check_func
  2301. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2302. # -------------------------------------------
  2303. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2304. # variable VAR accordingly.
  2305. ac_fn_c_check_type ()
  2306. {
  2307. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2309. $as_echo_n "checking for $2... " >&6; }
  2310. if eval "test \"\${$3+set}\"" = set; then :
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. eval "$3=no"
  2314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2315. /* end confdefs.h. */
  2316. $4
  2317. int
  2318. main ()
  2319. {
  2320. if (sizeof ($2))
  2321. return 0;
  2322. ;
  2323. return 0;
  2324. }
  2325. _ACEOF
  2326. if ac_fn_c_try_compile "$LINENO"; then :
  2327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2328. /* end confdefs.h. */
  2329. $4
  2330. int
  2331. main ()
  2332. {
  2333. if (sizeof (($2)))
  2334. return 0;
  2335. ;
  2336. return 0;
  2337. }
  2338. _ACEOF
  2339. if ac_fn_c_try_compile "$LINENO"; then :
  2340. else
  2341. eval "$3=yes"
  2342. fi
  2343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2344. fi
  2345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2346. fi
  2347. eval ac_res=\$$3
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2349. $as_echo "$ac_res" >&6; }
  2350. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2351. } # ac_fn_c_check_type
  2352. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2353. # ----------------------------------------------------
  2354. # Tries to find if the field MEMBER exists in type AGGR, after including
  2355. # INCLUDES, setting cache variable VAR accordingly.
  2356. ac_fn_c_check_member ()
  2357. {
  2358. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2360. $as_echo_n "checking for $2.$3... " >&6; }
  2361. if eval "test \"\${$4+set}\"" = set; then :
  2362. $as_echo_n "(cached) " >&6
  2363. else
  2364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2365. /* end confdefs.h. */
  2366. $5
  2367. int
  2368. main ()
  2369. {
  2370. static $2 ac_aggr;
  2371. if (ac_aggr.$3)
  2372. return 0;
  2373. ;
  2374. return 0;
  2375. }
  2376. _ACEOF
  2377. if ac_fn_c_try_compile "$LINENO"; then :
  2378. eval "$4=yes"
  2379. else
  2380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2381. /* end confdefs.h. */
  2382. $5
  2383. int
  2384. main ()
  2385. {
  2386. static $2 ac_aggr;
  2387. if (sizeof ac_aggr.$3)
  2388. return 0;
  2389. ;
  2390. return 0;
  2391. }
  2392. _ACEOF
  2393. if ac_fn_c_try_compile "$LINENO"; then :
  2394. eval "$4=yes"
  2395. else
  2396. eval "$4=no"
  2397. fi
  2398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2399. fi
  2400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2401. fi
  2402. eval ac_res=\$$4
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2404. $as_echo "$ac_res" >&6; }
  2405. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2406. } # ac_fn_c_check_member
  2407. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2408. # --------------------------------------------
  2409. # Tries to find the compile-time value of EXPR in a program that includes
  2410. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2411. # computed
  2412. ac_fn_c_compute_int ()
  2413. {
  2414. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2415. if test "$cross_compiling" = yes; then
  2416. # Depending upon the size, compute the lo and hi bounds.
  2417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2418. /* end confdefs.h. */
  2419. $4
  2420. int
  2421. main ()
  2422. {
  2423. static int test_array [1 - 2 * !(($2) >= 0)];
  2424. test_array [0] = 0
  2425. ;
  2426. return 0;
  2427. }
  2428. _ACEOF
  2429. if ac_fn_c_try_compile "$LINENO"; then :
  2430. ac_lo=0 ac_mid=0
  2431. while :; do
  2432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2433. /* end confdefs.h. */
  2434. $4
  2435. int
  2436. main ()
  2437. {
  2438. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2439. test_array [0] = 0
  2440. ;
  2441. return 0;
  2442. }
  2443. _ACEOF
  2444. if ac_fn_c_try_compile "$LINENO"; then :
  2445. ac_hi=$ac_mid; break
  2446. else
  2447. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2448. if test $ac_lo -le $ac_mid; then
  2449. ac_lo= ac_hi=
  2450. break
  2451. fi
  2452. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2453. fi
  2454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2455. done
  2456. else
  2457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2458. /* end confdefs.h. */
  2459. $4
  2460. int
  2461. main ()
  2462. {
  2463. static int test_array [1 - 2 * !(($2) < 0)];
  2464. test_array [0] = 0
  2465. ;
  2466. return 0;
  2467. }
  2468. _ACEOF
  2469. if ac_fn_c_try_compile "$LINENO"; then :
  2470. ac_hi=-1 ac_mid=-1
  2471. while :; do
  2472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2473. /* end confdefs.h. */
  2474. $4
  2475. int
  2476. main ()
  2477. {
  2478. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2479. test_array [0] = 0
  2480. ;
  2481. return 0;
  2482. }
  2483. _ACEOF
  2484. if ac_fn_c_try_compile "$LINENO"; then :
  2485. ac_lo=$ac_mid; break
  2486. else
  2487. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2488. if test $ac_mid -le $ac_hi; then
  2489. ac_lo= ac_hi=
  2490. break
  2491. fi
  2492. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2493. fi
  2494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2495. done
  2496. else
  2497. ac_lo= ac_hi=
  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. # Binary search between lo and hi bounds.
  2503. while test "x$ac_lo" != "x$ac_hi"; do
  2504. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2506. /* end confdefs.h. */
  2507. $4
  2508. int
  2509. main ()
  2510. {
  2511. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2512. test_array [0] = 0
  2513. ;
  2514. return 0;
  2515. }
  2516. _ACEOF
  2517. if ac_fn_c_try_compile "$LINENO"; then :
  2518. ac_hi=$ac_mid
  2519. else
  2520. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2521. fi
  2522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2523. done
  2524. case $ac_lo in #((
  2525. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2526. '') ac_retval=1 ;;
  2527. esac
  2528. else
  2529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2530. /* end confdefs.h. */
  2531. $4
  2532. static long int longval () { return $2; }
  2533. static unsigned long int ulongval () { return $2; }
  2534. #include <stdio.h>
  2535. #include <stdlib.h>
  2536. int
  2537. main ()
  2538. {
  2539. FILE *f = fopen ("conftest.val", "w");
  2540. if (! f)
  2541. return 1;
  2542. if (($2) < 0)
  2543. {
  2544. long int i = longval ();
  2545. if (i != ($2))
  2546. return 1;
  2547. fprintf (f, "%ld", i);
  2548. }
  2549. else
  2550. {
  2551. unsigned long int i = ulongval ();
  2552. if (i != ($2))
  2553. return 1;
  2554. fprintf (f, "%lu", i);
  2555. }
  2556. /* Do not output a trailing newline, as this causes \r\n confusion
  2557. on some platforms. */
  2558. return ferror (f) || fclose (f) != 0;
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. if ac_fn_c_try_run "$LINENO"; then :
  2564. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2565. else
  2566. ac_retval=1
  2567. fi
  2568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2569. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2570. rm -f conftest.val
  2571. fi
  2572. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2573. as_fn_set_status $ac_retval
  2574. } # ac_fn_c_compute_int
  2575. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2576. # ---------------------------------------------------------
  2577. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2578. # the include files in INCLUDES and setting the cache variable VAR
  2579. # accordingly.
  2580. ac_fn_cxx_check_header_mongrel ()
  2581. {
  2582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2583. if eval "test \"\${$3+set}\"" = set; then :
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2585. $as_echo_n "checking for $2... " >&6; }
  2586. if eval "test \"\${$3+set}\"" = set; then :
  2587. $as_echo_n "(cached) " >&6
  2588. fi
  2589. eval ac_res=\$$3
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2591. $as_echo "$ac_res" >&6; }
  2592. else
  2593. # Is the header compilable?
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2595. $as_echo_n "checking $2 usability... " >&6; }
  2596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2597. /* end confdefs.h. */
  2598. $4
  2599. #include <$2>
  2600. _ACEOF
  2601. if ac_fn_cxx_try_compile "$LINENO"; then :
  2602. ac_header_compiler=yes
  2603. else
  2604. ac_header_compiler=no
  2605. fi
  2606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2608. $as_echo "$ac_header_compiler" >&6; }
  2609. # Is the header present?
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2611. $as_echo_n "checking $2 presence... " >&6; }
  2612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2613. /* end confdefs.h. */
  2614. #include <$2>
  2615. _ACEOF
  2616. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2617. ac_header_preproc=yes
  2618. else
  2619. ac_header_preproc=no
  2620. fi
  2621. rm -f conftest.err conftest.i conftest.$ac_ext
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2623. $as_echo "$ac_header_preproc" >&6; }
  2624. # So? What about this header?
  2625. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2626. yes:no: )
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2628. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2630. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2631. ;;
  2632. no:yes:* )
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2634. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2636. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2638. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2640. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2642. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2643. ( $as_echo "## ------------------------------------------ ##
  2644. ## Report this to https://issues.asterisk.org ##
  2645. ## ------------------------------------------ ##"
  2646. ) | sed "s/^/$as_me: WARNING: /" >&2
  2647. ;;
  2648. esac
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2650. $as_echo_n "checking for $2... " >&6; }
  2651. if eval "test \"\${$3+set}\"" = set; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. eval "$3=\$ac_header_compiler"
  2655. fi
  2656. eval ac_res=\$$3
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2658. $as_echo "$ac_res" >&6; }
  2659. fi
  2660. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2661. } # ac_fn_cxx_check_header_mongrel
  2662. # ac_fn_cxx_try_link LINENO
  2663. # -------------------------
  2664. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2665. ac_fn_cxx_try_link ()
  2666. {
  2667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2668. rm -f conftest.$ac_objext conftest$ac_exeext
  2669. if { { ac_try="$ac_link"
  2670. case "(($ac_try" in
  2671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2672. *) ac_try_echo=$ac_try;;
  2673. esac
  2674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2675. $as_echo "$ac_try_echo"; } >&5
  2676. (eval "$ac_link") 2>conftest.err
  2677. ac_status=$?
  2678. if test -s conftest.err; then
  2679. grep -v '^ *+' conftest.err >conftest.er1
  2680. cat conftest.er1 >&5
  2681. mv -f conftest.er1 conftest.err
  2682. fi
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2684. test $ac_status = 0; } && {
  2685. test -z "$ac_cxx_werror_flag" ||
  2686. test ! -s conftest.err
  2687. } && test -s conftest$ac_exeext && {
  2688. test "$cross_compiling" = yes ||
  2689. $as_test_x conftest$ac_exeext
  2690. }; then :
  2691. ac_retval=0
  2692. else
  2693. $as_echo "$as_me: failed program was:" >&5
  2694. sed 's/^/| /' conftest.$ac_ext >&5
  2695. ac_retval=1
  2696. fi
  2697. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2698. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2699. # interfere with the next link command; also delete a directory that is
  2700. # left behind by Apple's compiler. We do this before executing the actions.
  2701. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2702. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2703. as_fn_set_status $ac_retval
  2704. } # ac_fn_cxx_try_link
  2705. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  2706. # ---------------------------------------------------------
  2707. # Tests whether HEADER exists and can be compiled using the include files in
  2708. # INCLUDES, setting the cache variable VAR accordingly.
  2709. ac_fn_cxx_check_header_compile ()
  2710. {
  2711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2713. $as_echo_n "checking for $2... " >&6; }
  2714. if eval "test \"\${$3+set}\"" = set; then :
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2718. /* end confdefs.h. */
  2719. $4
  2720. #include <$2>
  2721. _ACEOF
  2722. if ac_fn_cxx_try_compile "$LINENO"; then :
  2723. eval "$3=yes"
  2724. else
  2725. eval "$3=no"
  2726. fi
  2727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2728. fi
  2729. eval ac_res=\$$3
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2731. $as_echo "$ac_res" >&6; }
  2732. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2733. } # ac_fn_cxx_check_header_compile
  2734. cat >config.log <<_ACEOF
  2735. This file contains any messages produced by compilers while
  2736. running configure, to aid debugging if configure makes a mistake.
  2737. It was created by asterisk $as_me trunk, which was
  2738. generated by GNU Autoconf 2.67. Invocation command line was
  2739. $ $0 $@
  2740. _ACEOF
  2741. exec 5>>config.log
  2742. {
  2743. cat <<_ASUNAME
  2744. ## --------- ##
  2745. ## Platform. ##
  2746. ## --------- ##
  2747. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2748. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2749. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2750. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2751. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2752. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2753. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2754. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2755. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2756. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2757. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2758. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2759. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2760. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2761. _ASUNAME
  2762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2763. for as_dir in $PATH
  2764. do
  2765. IFS=$as_save_IFS
  2766. test -z "$as_dir" && as_dir=.
  2767. $as_echo "PATH: $as_dir"
  2768. done
  2769. IFS=$as_save_IFS
  2770. } >&5
  2771. cat >&5 <<_ACEOF
  2772. ## ----------- ##
  2773. ## Core tests. ##
  2774. ## ----------- ##
  2775. _ACEOF
  2776. # Keep a trace of the command line.
  2777. # Strip out --no-create and --no-recursion so they do not pile up.
  2778. # Strip out --silent because we don't want to record it for future runs.
  2779. # Also quote any args containing shell meta-characters.
  2780. # Make two passes to allow for proper duplicate-argument suppression.
  2781. ac_configure_args=
  2782. ac_configure_args0=
  2783. ac_configure_args1=
  2784. ac_must_keep_next=false
  2785. for ac_pass in 1 2
  2786. do
  2787. for ac_arg
  2788. do
  2789. case $ac_arg in
  2790. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2791. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2792. | -silent | --silent | --silen | --sile | --sil)
  2793. continue ;;
  2794. *\'*)
  2795. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2796. esac
  2797. case $ac_pass in
  2798. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2799. 2)
  2800. as_fn_append ac_configure_args1 " '$ac_arg'"
  2801. if test $ac_must_keep_next = true; then
  2802. ac_must_keep_next=false # Got value, back to normal.
  2803. else
  2804. case $ac_arg in
  2805. *=* | --config-cache | -C | -disable-* | --disable-* \
  2806. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2807. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2808. | -with-* | --with-* | -without-* | --without-* | --x)
  2809. case "$ac_configure_args0 " in
  2810. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2811. esac
  2812. ;;
  2813. -* ) ac_must_keep_next=true ;;
  2814. esac
  2815. fi
  2816. as_fn_append ac_configure_args " '$ac_arg'"
  2817. ;;
  2818. esac
  2819. done
  2820. done
  2821. { ac_configure_args0=; unset ac_configure_args0;}
  2822. { ac_configure_args1=; unset ac_configure_args1;}
  2823. # When interrupted or exit'd, cleanup temporary files, and complete
  2824. # config.log. We remove comments because anyway the quotes in there
  2825. # would cause problems or look ugly.
  2826. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2827. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2828. trap 'exit_status=$?
  2829. # Save into config.log some information that might help in debugging.
  2830. {
  2831. echo
  2832. $as_echo "## ---------------- ##
  2833. ## Cache variables. ##
  2834. ## ---------------- ##"
  2835. echo
  2836. # The following way of writing the cache mishandles newlines in values,
  2837. (
  2838. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2839. eval ac_val=\$$ac_var
  2840. case $ac_val in #(
  2841. *${as_nl}*)
  2842. case $ac_var in #(
  2843. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2844. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2845. esac
  2846. case $ac_var in #(
  2847. _ | IFS | as_nl) ;; #(
  2848. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2849. *) { eval $ac_var=; unset $ac_var;} ;;
  2850. esac ;;
  2851. esac
  2852. done
  2853. (set) 2>&1 |
  2854. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2855. *${as_nl}ac_space=\ *)
  2856. sed -n \
  2857. "s/'\''/'\''\\\\'\'''\''/g;
  2858. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2859. ;; #(
  2860. *)
  2861. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2862. ;;
  2863. esac |
  2864. sort
  2865. )
  2866. echo
  2867. $as_echo "## ----------------- ##
  2868. ## Output variables. ##
  2869. ## ----------------- ##"
  2870. echo
  2871. for ac_var in $ac_subst_vars
  2872. do
  2873. eval ac_val=\$$ac_var
  2874. case $ac_val in
  2875. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2876. esac
  2877. $as_echo "$ac_var='\''$ac_val'\''"
  2878. done | sort
  2879. echo
  2880. if test -n "$ac_subst_files"; then
  2881. $as_echo "## ------------------- ##
  2882. ## File substitutions. ##
  2883. ## ------------------- ##"
  2884. echo
  2885. for ac_var in $ac_subst_files
  2886. do
  2887. eval ac_val=\$$ac_var
  2888. case $ac_val in
  2889. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2890. esac
  2891. $as_echo "$ac_var='\''$ac_val'\''"
  2892. done | sort
  2893. echo
  2894. fi
  2895. if test -s confdefs.h; then
  2896. $as_echo "## ----------- ##
  2897. ## confdefs.h. ##
  2898. ## ----------- ##"
  2899. echo
  2900. cat confdefs.h
  2901. echo
  2902. fi
  2903. test "$ac_signal" != 0 &&
  2904. $as_echo "$as_me: caught signal $ac_signal"
  2905. $as_echo "$as_me: exit $exit_status"
  2906. } >&5
  2907. rm -f core *.core core.conftest.* &&
  2908. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2909. exit $exit_status
  2910. ' 0
  2911. for ac_signal in 1 2 13 15; do
  2912. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2913. done
  2914. ac_signal=0
  2915. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2916. rm -f -r conftest* confdefs.h
  2917. $as_echo "/* confdefs.h */" > confdefs.h
  2918. # Predefined preprocessor variables.
  2919. cat >>confdefs.h <<_ACEOF
  2920. #define PACKAGE_NAME "$PACKAGE_NAME"
  2921. _ACEOF
  2922. cat >>confdefs.h <<_ACEOF
  2923. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2924. _ACEOF
  2925. cat >>confdefs.h <<_ACEOF
  2926. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2927. _ACEOF
  2928. cat >>confdefs.h <<_ACEOF
  2929. #define PACKAGE_STRING "$PACKAGE_STRING"
  2930. _ACEOF
  2931. cat >>confdefs.h <<_ACEOF
  2932. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2933. _ACEOF
  2934. cat >>confdefs.h <<_ACEOF
  2935. #define PACKAGE_URL "$PACKAGE_URL"
  2936. _ACEOF
  2937. # Let the site file select an alternate cache file if it wants to.
  2938. # Prefer an explicitly selected file to automatically selected ones.
  2939. ac_site_file1=NONE
  2940. ac_site_file2=NONE
  2941. if test -n "$CONFIG_SITE"; then
  2942. # We do not want a PATH search for config.site.
  2943. case $CONFIG_SITE in #((
  2944. -*) ac_site_file1=./$CONFIG_SITE;;
  2945. */*) ac_site_file1=$CONFIG_SITE;;
  2946. *) ac_site_file1=./$CONFIG_SITE;;
  2947. esac
  2948. elif test "x$prefix" != xNONE; then
  2949. ac_site_file1=$prefix/share/config.site
  2950. ac_site_file2=$prefix/etc/config.site
  2951. else
  2952. ac_site_file1=$ac_default_prefix/share/config.site
  2953. ac_site_file2=$ac_default_prefix/etc/config.site
  2954. fi
  2955. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2956. do
  2957. test "x$ac_site_file" = xNONE && continue
  2958. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2960. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2961. sed 's/^/| /' "$ac_site_file" >&5
  2962. . "$ac_site_file" \
  2963. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2964. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2965. as_fn_error $? "failed to load site script $ac_site_file
  2966. See \`config.log' for more details" "$LINENO" 5 ; }
  2967. fi
  2968. done
  2969. if test -r "$cache_file"; then
  2970. # Some versions of bash will fail to source /dev/null (special files
  2971. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2972. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2974. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2975. case $cache_file in
  2976. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2977. *) . "./$cache_file";;
  2978. esac
  2979. fi
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2982. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2983. >$cache_file
  2984. fi
  2985. as_fn_append ac_header_list " stdlib.h"
  2986. as_fn_append ac_header_list " unistd.h"
  2987. as_fn_append ac_header_list " sys/param.h"
  2988. as_fn_append ac_header_list " utime.h"
  2989. # Check that the precious variables saved in the cache have kept the same
  2990. # value.
  2991. ac_cache_corrupted=false
  2992. for ac_var in $ac_precious_vars; do
  2993. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2994. eval ac_new_set=\$ac_env_${ac_var}_set
  2995. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2996. eval ac_new_val=\$ac_env_${ac_var}_value
  2997. case $ac_old_set,$ac_new_set in
  2998. set,)
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3000. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3001. ac_cache_corrupted=: ;;
  3002. ,set)
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3004. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3005. ac_cache_corrupted=: ;;
  3006. ,);;
  3007. *)
  3008. if test "x$ac_old_val" != "x$ac_new_val"; then
  3009. # differences in whitespace do not lead to failure.
  3010. ac_old_val_w=`echo x $ac_old_val`
  3011. ac_new_val_w=`echo x $ac_new_val`
  3012. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3014. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3015. ac_cache_corrupted=:
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3018. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3019. eval $ac_var=\$ac_old_val
  3020. fi
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3022. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3024. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3025. fi;;
  3026. esac
  3027. # Pass precious variables to config.status.
  3028. if test "$ac_new_set" = set; then
  3029. case $ac_new_val in
  3030. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3031. *) ac_arg=$ac_var=$ac_new_val ;;
  3032. esac
  3033. case " $ac_configure_args " in
  3034. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3035. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3036. esac
  3037. fi
  3038. done
  3039. if $ac_cache_corrupted; then
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3043. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3044. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3045. fi
  3046. ## -------------------- ##
  3047. ## Main body of script. ##
  3048. ## -------------------- ##
  3049. ac_ext=c
  3050. ac_cpp='$CPP $CPPFLAGS'
  3051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3054. # cross-compile macros
  3055. ac_aux_dir=
  3056. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3057. if test -f "$ac_dir/install-sh"; then
  3058. ac_aux_dir=$ac_dir
  3059. ac_install_sh="$ac_aux_dir/install-sh -c"
  3060. break
  3061. elif test -f "$ac_dir/install.sh"; then
  3062. ac_aux_dir=$ac_dir
  3063. ac_install_sh="$ac_aux_dir/install.sh -c"
  3064. break
  3065. elif test -f "$ac_dir/shtool"; then
  3066. ac_aux_dir=$ac_dir
  3067. ac_install_sh="$ac_aux_dir/shtool install -c"
  3068. break
  3069. fi
  3070. done
  3071. if test -z "$ac_aux_dir"; then
  3072. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3073. fi
  3074. # These three variables are undocumented and unsupported,
  3075. # and are intended to be withdrawn in a future Autoconf release.
  3076. # They can cause serious problems if a builder's source tree is in a directory
  3077. # whose full name contains unusual characters.
  3078. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3079. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3080. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3081. # Make sure we can run config.sub.
  3082. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3083. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3085. $as_echo_n "checking build system type... " >&6; }
  3086. if test "${ac_cv_build+set}" = set; then :
  3087. $as_echo_n "(cached) " >&6
  3088. else
  3089. ac_build_alias=$build_alias
  3090. test "x$ac_build_alias" = x &&
  3091. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3092. test "x$ac_build_alias" = x &&
  3093. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3094. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3095. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3098. $as_echo "$ac_cv_build" >&6; }
  3099. case $ac_cv_build in
  3100. *-*-*) ;;
  3101. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  3102. esac
  3103. build=$ac_cv_build
  3104. ac_save_IFS=$IFS; IFS='-'
  3105. set x $ac_cv_build
  3106. shift
  3107. build_cpu=$1
  3108. build_vendor=$2
  3109. shift; shift
  3110. # Remember, the first character of IFS is used to create $*,
  3111. # except with old shells:
  3112. build_os=$*
  3113. IFS=$ac_save_IFS
  3114. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3116. $as_echo_n "checking host system type... " >&6; }
  3117. if test "${ac_cv_host+set}" = set; then :
  3118. $as_echo_n "(cached) " >&6
  3119. else
  3120. if test "x$host_alias" = x; then
  3121. ac_cv_host=$ac_cv_build
  3122. else
  3123. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3124. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3125. fi
  3126. fi
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3128. $as_echo "$ac_cv_host" >&6; }
  3129. case $ac_cv_host in
  3130. *-*-*) ;;
  3131. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  3132. esac
  3133. host=$ac_cv_host
  3134. ac_save_IFS=$IFS; IFS='-'
  3135. set x $ac_cv_host
  3136. shift
  3137. host_cpu=$1
  3138. host_vendor=$2
  3139. shift; shift
  3140. # Remember, the first character of IFS is used to create $*,
  3141. # except with old shells:
  3142. host_os=$*
  3143. IFS=$ac_save_IFS
  3144. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3145. # check existence of the package
  3146. ac_aux_dir=
  3147. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  3148. if test -f "$ac_dir/install-sh"; then
  3149. ac_aux_dir=$ac_dir
  3150. ac_install_sh="$ac_aux_dir/install-sh -c"
  3151. break
  3152. elif test -f "$ac_dir/install.sh"; then
  3153. ac_aux_dir=$ac_dir
  3154. ac_install_sh="$ac_aux_dir/install.sh -c"
  3155. break
  3156. elif test -f "$ac_dir/shtool"; then
  3157. ac_aux_dir=$ac_dir
  3158. ac_install_sh="$ac_aux_dir/shtool install -c"
  3159. break
  3160. fi
  3161. done
  3162. if test -z "$ac_aux_dir"; then
  3163. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
  3164. fi
  3165. # These three variables are undocumented and unsupported,
  3166. # and are intended to be withdrawn in a future Autoconf release.
  3167. # They can cause serious problems if a builder's source tree is in a directory
  3168. # whose full name contains unusual characters.
  3169. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3170. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3171. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3172. # preserve any CFLAGS or LDFLAGS that may be set
  3173. # NOTE: This must be done before calling any macros that end up
  3174. # calling AC_PROG_CC or the like, since they will set a default
  3175. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  3176. # we don't want those default flags to be carried over into the
  3177. # rest of the build system since we have other means of controlling
  3178. # debugging symbol generation and optimization.
  3179. CONFIG_CFLAGS="${CFLAGS}"
  3180. CONFIG_LDFLAGS="${LDFLAGS}"
  3181. # specify output header file
  3182. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  3183. # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
  3184. # other macro that uses the C compiler, or the default order will be used.
  3185. ac_ext=c
  3186. ac_cpp='$CPP $CPPFLAGS'
  3187. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3188. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3189. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3190. if test -n "$ac_tool_prefix"; then
  3191. for ac_prog in gcc cc
  3192. do
  3193. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3194. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3196. $as_echo_n "checking for $ac_word... " >&6; }
  3197. if test "${ac_cv_prog_CC+set}" = set; then :
  3198. $as_echo_n "(cached) " >&6
  3199. else
  3200. if test -n "$CC"; then
  3201. ac_cv_prog_CC="$CC" # Let the user override the test.
  3202. else
  3203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3204. for as_dir in $PATH
  3205. do
  3206. IFS=$as_save_IFS
  3207. test -z "$as_dir" && as_dir=.
  3208. for ac_exec_ext in '' $ac_executable_extensions; do
  3209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3210. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3212. break 2
  3213. fi
  3214. done
  3215. done
  3216. IFS=$as_save_IFS
  3217. fi
  3218. fi
  3219. CC=$ac_cv_prog_CC
  3220. if test -n "$CC"; then
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3222. $as_echo "$CC" >&6; }
  3223. else
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3225. $as_echo "no" >&6; }
  3226. fi
  3227. test -n "$CC" && break
  3228. done
  3229. fi
  3230. if test -z "$CC"; then
  3231. ac_ct_CC=$CC
  3232. for ac_prog in gcc cc
  3233. do
  3234. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3235. set dummy $ac_prog; ac_word=$2
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3237. $as_echo_n "checking for $ac_word... " >&6; }
  3238. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3239. $as_echo_n "(cached) " >&6
  3240. else
  3241. if test -n "$ac_ct_CC"; then
  3242. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3243. else
  3244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3245. for as_dir in $PATH
  3246. do
  3247. IFS=$as_save_IFS
  3248. test -z "$as_dir" && as_dir=.
  3249. for ac_exec_ext in '' $ac_executable_extensions; do
  3250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3251. ac_cv_prog_ac_ct_CC="$ac_prog"
  3252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3253. break 2
  3254. fi
  3255. done
  3256. done
  3257. IFS=$as_save_IFS
  3258. fi
  3259. fi
  3260. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3261. if test -n "$ac_ct_CC"; then
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3263. $as_echo "$ac_ct_CC" >&6; }
  3264. else
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3266. $as_echo "no" >&6; }
  3267. fi
  3268. test -n "$ac_ct_CC" && break
  3269. done
  3270. if test "x$ac_ct_CC" = x; then
  3271. CC=""
  3272. else
  3273. case $cross_compiling:$ac_tool_warned in
  3274. yes:)
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3276. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3277. ac_tool_warned=yes ;;
  3278. esac
  3279. CC=$ac_ct_CC
  3280. fi
  3281. fi
  3282. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3284. as_fn_error $? "no acceptable C compiler found in \$PATH
  3285. See \`config.log' for more details" "$LINENO" 5 ; }
  3286. # Provide some information about the compiler.
  3287. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3288. set X $ac_compile
  3289. ac_compiler=$2
  3290. for ac_option in --version -v -V -qversion; do
  3291. { { ac_try="$ac_compiler $ac_option >&5"
  3292. case "(($ac_try" in
  3293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3294. *) ac_try_echo=$ac_try;;
  3295. esac
  3296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3297. $as_echo "$ac_try_echo"; } >&5
  3298. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3299. ac_status=$?
  3300. if test -s conftest.err; then
  3301. sed '10a\
  3302. ... rest of stderr output deleted ...
  3303. 10q' conftest.err >conftest.er1
  3304. cat conftest.er1 >&5
  3305. fi
  3306. rm -f conftest.er1 conftest.err
  3307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3308. test $ac_status = 0; }
  3309. done
  3310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h. */
  3312. int
  3313. main ()
  3314. {
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. ac_clean_files_save=$ac_clean_files
  3320. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3321. # Try to create an executable without -o first, disregard a.out.
  3322. # It will help us diagnose broken compilers, and finding out an intuition
  3323. # of exeext.
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3325. $as_echo_n "checking whether the C compiler works... " >&6; }
  3326. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3327. # The possible output files:
  3328. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3329. ac_rmfiles=
  3330. for ac_file in $ac_files
  3331. do
  3332. case $ac_file in
  3333. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3334. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3335. esac
  3336. done
  3337. rm -f $ac_rmfiles
  3338. if { { ac_try="$ac_link_default"
  3339. case "(($ac_try" in
  3340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3341. *) ac_try_echo=$ac_try;;
  3342. esac
  3343. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3344. $as_echo "$ac_try_echo"; } >&5
  3345. (eval "$ac_link_default") 2>&5
  3346. ac_status=$?
  3347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3348. test $ac_status = 0; }; then :
  3349. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3350. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3351. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3352. # so that the user can short-circuit this test for compilers unknown to
  3353. # Autoconf.
  3354. for ac_file in $ac_files ''
  3355. do
  3356. test -f "$ac_file" || continue
  3357. case $ac_file in
  3358. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3359. ;;
  3360. [ab].out )
  3361. # We found the default executable, but exeext='' is most
  3362. # certainly right.
  3363. break;;
  3364. *.* )
  3365. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3366. then :; else
  3367. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3368. fi
  3369. # We set ac_cv_exeext here because the later test for it is not
  3370. # safe: cross compilers may not add the suffix if given an `-o'
  3371. # argument, so we may need to know it at that point already.
  3372. # Even if this section looks crufty: it has the advantage of
  3373. # actually working.
  3374. break;;
  3375. * )
  3376. break;;
  3377. esac
  3378. done
  3379. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3380. else
  3381. ac_file=''
  3382. fi
  3383. if test -z "$ac_file"; then :
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3385. $as_echo "no" >&6; }
  3386. $as_echo "$as_me: failed program was:" >&5
  3387. sed 's/^/| /' conftest.$ac_ext >&5
  3388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3390. as_fn_error 77 "C compiler cannot create executables
  3391. See \`config.log' for more details" "$LINENO" 5 ; }
  3392. else
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3394. $as_echo "yes" >&6; }
  3395. fi
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3397. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3399. $as_echo "$ac_file" >&6; }
  3400. ac_exeext=$ac_cv_exeext
  3401. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3402. ac_clean_files=$ac_clean_files_save
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3404. $as_echo_n "checking for suffix of executables... " >&6; }
  3405. if { { ac_try="$ac_link"
  3406. case "(($ac_try" in
  3407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3408. *) ac_try_echo=$ac_try;;
  3409. esac
  3410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3411. $as_echo "$ac_try_echo"; } >&5
  3412. (eval "$ac_link") 2>&5
  3413. ac_status=$?
  3414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3415. test $ac_status = 0; }; then :
  3416. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3417. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3418. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3419. # `rm'.
  3420. for ac_file in conftest.exe conftest conftest.*; do
  3421. test -f "$ac_file" || continue
  3422. case $ac_file in
  3423. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3424. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3425. break;;
  3426. * ) break;;
  3427. esac
  3428. done
  3429. else
  3430. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3431. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3432. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3433. See \`config.log' for more details" "$LINENO" 5 ; }
  3434. fi
  3435. rm -f conftest conftest$ac_cv_exeext
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3437. $as_echo "$ac_cv_exeext" >&6; }
  3438. rm -f conftest.$ac_ext
  3439. EXEEXT=$ac_cv_exeext
  3440. ac_exeext=$EXEEXT
  3441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3442. /* end confdefs.h. */
  3443. #include <stdio.h>
  3444. int
  3445. main ()
  3446. {
  3447. FILE *f = fopen ("conftest.out", "w");
  3448. return ferror (f) || fclose (f) != 0;
  3449. ;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. ac_clean_files="$ac_clean_files conftest.out"
  3454. # Check that the compiler produces executables we can run. If not, either
  3455. # the compiler is broken, or we cross compile.
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3457. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3458. if test "$cross_compiling" != yes; then
  3459. { { ac_try="$ac_link"
  3460. case "(($ac_try" in
  3461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3462. *) ac_try_echo=$ac_try;;
  3463. esac
  3464. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3465. $as_echo "$ac_try_echo"; } >&5
  3466. (eval "$ac_link") 2>&5
  3467. ac_status=$?
  3468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3469. test $ac_status = 0; }
  3470. if { ac_try='./conftest$ac_cv_exeext'
  3471. { { case "(($ac_try" in
  3472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3473. *) ac_try_echo=$ac_try;;
  3474. esac
  3475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3476. $as_echo "$ac_try_echo"; } >&5
  3477. (eval "$ac_try") 2>&5
  3478. ac_status=$?
  3479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3480. test $ac_status = 0; }; }; then
  3481. cross_compiling=no
  3482. else
  3483. if test "$cross_compiling" = maybe; then
  3484. cross_compiling=yes
  3485. else
  3486. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3488. as_fn_error $? "cannot run C compiled programs.
  3489. If you meant to cross compile, use \`--host'.
  3490. See \`config.log' for more details" "$LINENO" 5 ; }
  3491. fi
  3492. fi
  3493. fi
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3495. $as_echo "$cross_compiling" >&6; }
  3496. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3497. ac_clean_files=$ac_clean_files_save
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3499. $as_echo_n "checking for suffix of object files... " >&6; }
  3500. if test "${ac_cv_objext+set}" = set; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3504. /* end confdefs.h. */
  3505. int
  3506. main ()
  3507. {
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. rm -f conftest.o conftest.obj
  3513. if { { ac_try="$ac_compile"
  3514. case "(($ac_try" in
  3515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3516. *) ac_try_echo=$ac_try;;
  3517. esac
  3518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3519. $as_echo "$ac_try_echo"; } >&5
  3520. (eval "$ac_compile") 2>&5
  3521. ac_status=$?
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3523. test $ac_status = 0; }; then :
  3524. for ac_file in conftest.o conftest.obj conftest.*; do
  3525. test -f "$ac_file" || continue;
  3526. case $ac_file in
  3527. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3528. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3529. break;;
  3530. esac
  3531. done
  3532. else
  3533. $as_echo "$as_me: failed program was:" >&5
  3534. sed 's/^/| /' conftest.$ac_ext >&5
  3535. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3536. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3537. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3538. See \`config.log' for more details" "$LINENO" 5 ; }
  3539. fi
  3540. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3541. fi
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3543. $as_echo "$ac_cv_objext" >&6; }
  3544. OBJEXT=$ac_cv_objext
  3545. ac_objext=$OBJEXT
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3547. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3548. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3549. $as_echo_n "(cached) " >&6
  3550. else
  3551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end confdefs.h. */
  3553. int
  3554. main ()
  3555. {
  3556. #ifndef __GNUC__
  3557. choke me
  3558. #endif
  3559. ;
  3560. return 0;
  3561. }
  3562. _ACEOF
  3563. if ac_fn_c_try_compile "$LINENO"; then :
  3564. ac_compiler_gnu=yes
  3565. else
  3566. ac_compiler_gnu=no
  3567. fi
  3568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3569. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3570. fi
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3572. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3573. if test $ac_compiler_gnu = yes; then
  3574. GCC=yes
  3575. else
  3576. GCC=
  3577. fi
  3578. ac_test_CFLAGS=${CFLAGS+set}
  3579. ac_save_CFLAGS=$CFLAGS
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3581. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3582. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. ac_save_c_werror_flag=$ac_c_werror_flag
  3586. ac_c_werror_flag=yes
  3587. ac_cv_prog_cc_g=no
  3588. CFLAGS="-g"
  3589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3590. /* end confdefs.h. */
  3591. int
  3592. main ()
  3593. {
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. if ac_fn_c_try_compile "$LINENO"; then :
  3599. ac_cv_prog_cc_g=yes
  3600. else
  3601. CFLAGS=""
  3602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3603. /* end confdefs.h. */
  3604. int
  3605. main ()
  3606. {
  3607. ;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. if ac_fn_c_try_compile "$LINENO"; then :
  3612. else
  3613. ac_c_werror_flag=$ac_save_c_werror_flag
  3614. CFLAGS="-g"
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h. */
  3617. int
  3618. main ()
  3619. {
  3620. ;
  3621. return 0;
  3622. }
  3623. _ACEOF
  3624. if ac_fn_c_try_compile "$LINENO"; then :
  3625. ac_cv_prog_cc_g=yes
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628. fi
  3629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_c_werror_flag=$ac_save_c_werror_flag
  3633. fi
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3635. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3636. if test "$ac_test_CFLAGS" = set; then
  3637. CFLAGS=$ac_save_CFLAGS
  3638. elif test $ac_cv_prog_cc_g = yes; then
  3639. if test "$GCC" = yes; then
  3640. CFLAGS="-g -O2"
  3641. else
  3642. CFLAGS="-g"
  3643. fi
  3644. else
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-O2"
  3647. else
  3648. CFLAGS=
  3649. fi
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3652. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3653. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. ac_cv_prog_cc_c89=no
  3657. ac_save_CC=$CC
  3658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3659. /* end confdefs.h. */
  3660. #include <stdarg.h>
  3661. #include <stdio.h>
  3662. #include <sys/types.h>
  3663. #include <sys/stat.h>
  3664. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3665. struct buf { int x; };
  3666. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3667. static char *e (p, i)
  3668. char **p;
  3669. int i;
  3670. {
  3671. return p[i];
  3672. }
  3673. static char *f (char * (*g) (char **, int), char **p, ...)
  3674. {
  3675. char *s;
  3676. va_list v;
  3677. va_start (v,p);
  3678. s = g (p, va_arg (v,int));
  3679. va_end (v);
  3680. return s;
  3681. }
  3682. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3683. function prototypes and stuff, but not '\xHH' hex character constants.
  3684. These don't provoke an error unfortunately, instead are silently treated
  3685. as 'x'. The following induces an error, until -std is added to get
  3686. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3687. array size at least. It's necessary to write '\x00'==0 to get something
  3688. that's true only with -std. */
  3689. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3690. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3691. inside strings and character constants. */
  3692. #define FOO(x) 'x'
  3693. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3694. int test (int i, double x);
  3695. struct s1 {int (*f) (int a);};
  3696. struct s2 {int (*f) (double a);};
  3697. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3698. int argc;
  3699. char **argv;
  3700. int
  3701. main ()
  3702. {
  3703. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3709. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3710. do
  3711. CC="$ac_save_CC $ac_arg"
  3712. if ac_fn_c_try_compile "$LINENO"; then :
  3713. ac_cv_prog_cc_c89=$ac_arg
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext
  3716. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3717. done
  3718. rm -f conftest.$ac_ext
  3719. CC=$ac_save_CC
  3720. fi
  3721. # AC_CACHE_VAL
  3722. case "x$ac_cv_prog_cc_c89" in
  3723. x)
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3725. $as_echo "none needed" >&6; } ;;
  3726. xno)
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3728. $as_echo "unsupported" >&6; } ;;
  3729. *)
  3730. CC="$CC $ac_cv_prog_cc_c89"
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3732. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3733. esac
  3734. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3735. fi
  3736. ac_ext=c
  3737. ac_cpp='$CPP $CPPFLAGS'
  3738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3741. ac_ext=c
  3742. ac_cpp='$CPP $CPPFLAGS'
  3743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3747. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3748. # On Suns, sometimes $CPP names a directory.
  3749. if test -n "$CPP" && test -d "$CPP"; then
  3750. CPP=
  3751. fi
  3752. if test -z "$CPP"; then
  3753. if test "${ac_cv_prog_CPP+set}" = set; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. # Double quotes because CPP needs to be expanded
  3757. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3758. do
  3759. ac_preproc_ok=false
  3760. for ac_c_preproc_warn_flag in '' yes
  3761. do
  3762. # Use a header file that comes with gcc, so configuring glibc
  3763. # with a fresh cross-compiler works.
  3764. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3765. # <limits.h> exists even on freestanding compilers.
  3766. # On the NeXT, cc -E runs the code through the compiler's parser,
  3767. # not just through cpp. "Syntax error" is here to catch this case.
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. #ifdef __STDC__
  3771. # include <limits.h>
  3772. #else
  3773. # include <assert.h>
  3774. #endif
  3775. Syntax error
  3776. _ACEOF
  3777. if ac_fn_c_try_cpp "$LINENO"; then :
  3778. else
  3779. # Broken: fails on valid input.
  3780. continue
  3781. fi
  3782. rm -f conftest.err conftest.i conftest.$ac_ext
  3783. # OK, works on sane cases. Now check whether nonexistent headers
  3784. # can be detected and how.
  3785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3786. /* end confdefs.h. */
  3787. #include <ac_nonexistent.h>
  3788. _ACEOF
  3789. if ac_fn_c_try_cpp "$LINENO"; then :
  3790. # Broken: success on invalid input.
  3791. continue
  3792. else
  3793. # Passes both tests.
  3794. ac_preproc_ok=:
  3795. break
  3796. fi
  3797. rm -f conftest.err conftest.i conftest.$ac_ext
  3798. done
  3799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3800. rm -f conftest.i conftest.err conftest.$ac_ext
  3801. if $ac_preproc_ok; then :
  3802. break
  3803. fi
  3804. done
  3805. ac_cv_prog_CPP=$CPP
  3806. fi
  3807. CPP=$ac_cv_prog_CPP
  3808. else
  3809. ac_cv_prog_CPP=$CPP
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3812. $as_echo "$CPP" >&6; }
  3813. ac_preproc_ok=false
  3814. for ac_c_preproc_warn_flag in '' yes
  3815. do
  3816. # Use a header file that comes with gcc, so configuring glibc
  3817. # with a fresh cross-compiler works.
  3818. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3819. # <limits.h> exists even on freestanding compilers.
  3820. # On the NeXT, cc -E runs the code through the compiler's parser,
  3821. # not just through cpp. "Syntax error" is here to catch this case.
  3822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3823. /* end confdefs.h. */
  3824. #ifdef __STDC__
  3825. # include <limits.h>
  3826. #else
  3827. # include <assert.h>
  3828. #endif
  3829. Syntax error
  3830. _ACEOF
  3831. if ac_fn_c_try_cpp "$LINENO"; then :
  3832. else
  3833. # Broken: fails on valid input.
  3834. continue
  3835. fi
  3836. rm -f conftest.err conftest.i conftest.$ac_ext
  3837. # OK, works on sane cases. Now check whether nonexistent headers
  3838. # can be detected and how.
  3839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3840. /* end confdefs.h. */
  3841. #include <ac_nonexistent.h>
  3842. _ACEOF
  3843. if ac_fn_c_try_cpp "$LINENO"; then :
  3844. # Broken: success on invalid input.
  3845. continue
  3846. else
  3847. # Passes both tests.
  3848. ac_preproc_ok=:
  3849. break
  3850. fi
  3851. rm -f conftest.err conftest.i conftest.$ac_ext
  3852. done
  3853. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3854. rm -f conftest.i conftest.err conftest.$ac_ext
  3855. if $ac_preproc_ok; then :
  3856. else
  3857. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3858. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3859. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3860. See \`config.log' for more details" "$LINENO" 5 ; }
  3861. fi
  3862. ac_ext=c
  3863. ac_cpp='$CPP $CPPFLAGS'
  3864. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3865. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3866. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3868. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3869. if test "${ac_cv_path_GREP+set}" = set; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. if test -z "$GREP"; then
  3873. ac_path_GREP_found=false
  3874. # Loop through the user's path and test for each of PROGNAME-LIST
  3875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3876. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3877. do
  3878. IFS=$as_save_IFS
  3879. test -z "$as_dir" && as_dir=.
  3880. for ac_prog in grep ggrep; do
  3881. for ac_exec_ext in '' $ac_executable_extensions; do
  3882. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3883. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3884. # Check for GNU ac_path_GREP and select it if it is found.
  3885. # Check for GNU $ac_path_GREP
  3886. case `"$ac_path_GREP" --version 2>&1` in
  3887. *GNU*)
  3888. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3889. *)
  3890. ac_count=0
  3891. $as_echo_n 0123456789 >"conftest.in"
  3892. while :
  3893. do
  3894. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3895. mv "conftest.tmp" "conftest.in"
  3896. cp "conftest.in" "conftest.nl"
  3897. $as_echo 'GREP' >> "conftest.nl"
  3898. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3899. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3900. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3901. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3902. # Best one so far, save it but keep looking for a better one
  3903. ac_cv_path_GREP="$ac_path_GREP"
  3904. ac_path_GREP_max=$ac_count
  3905. fi
  3906. # 10*(2^10) chars as input seems more than enough
  3907. test $ac_count -gt 10 && break
  3908. done
  3909. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3910. esac
  3911. $ac_path_GREP_found && break 3
  3912. done
  3913. done
  3914. done
  3915. IFS=$as_save_IFS
  3916. if test -z "$ac_cv_path_GREP"; then
  3917. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3918. fi
  3919. else
  3920. ac_cv_path_GREP=$GREP
  3921. fi
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3924. $as_echo "$ac_cv_path_GREP" >&6; }
  3925. GREP="$ac_cv_path_GREP"
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3927. $as_echo_n "checking for egrep... " >&6; }
  3928. if test "${ac_cv_path_EGREP+set}" = set; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3932. then ac_cv_path_EGREP="$GREP -E"
  3933. else
  3934. if test -z "$EGREP"; then
  3935. ac_path_EGREP_found=false
  3936. # Loop through the user's path and test for each of PROGNAME-LIST
  3937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3938. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3939. do
  3940. IFS=$as_save_IFS
  3941. test -z "$as_dir" && as_dir=.
  3942. for ac_prog in egrep; do
  3943. for ac_exec_ext in '' $ac_executable_extensions; do
  3944. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3945. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3946. # Check for GNU ac_path_EGREP and select it if it is found.
  3947. # Check for GNU $ac_path_EGREP
  3948. case `"$ac_path_EGREP" --version 2>&1` in
  3949. *GNU*)
  3950. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3951. *)
  3952. ac_count=0
  3953. $as_echo_n 0123456789 >"conftest.in"
  3954. while :
  3955. do
  3956. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3957. mv "conftest.tmp" "conftest.in"
  3958. cp "conftest.in" "conftest.nl"
  3959. $as_echo 'EGREP' >> "conftest.nl"
  3960. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3961. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3962. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3963. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3964. # Best one so far, save it but keep looking for a better one
  3965. ac_cv_path_EGREP="$ac_path_EGREP"
  3966. ac_path_EGREP_max=$ac_count
  3967. fi
  3968. # 10*(2^10) chars as input seems more than enough
  3969. test $ac_count -gt 10 && break
  3970. done
  3971. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3972. esac
  3973. $ac_path_EGREP_found && break 3
  3974. done
  3975. done
  3976. done
  3977. IFS=$as_save_IFS
  3978. if test -z "$ac_cv_path_EGREP"; then
  3979. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3980. fi
  3981. else
  3982. ac_cv_path_EGREP=$EGREP
  3983. fi
  3984. fi
  3985. fi
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3987. $as_echo "$ac_cv_path_EGREP" >&6; }
  3988. EGREP="$ac_cv_path_EGREP"
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3990. $as_echo_n "checking for ANSI C header files... " >&6; }
  3991. if test "${ac_cv_header_stdc+set}" = set; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3995. /* end confdefs.h. */
  3996. #include <stdlib.h>
  3997. #include <stdarg.h>
  3998. #include <string.h>
  3999. #include <float.h>
  4000. int
  4001. main ()
  4002. {
  4003. ;
  4004. return 0;
  4005. }
  4006. _ACEOF
  4007. if ac_fn_c_try_compile "$LINENO"; then :
  4008. ac_cv_header_stdc=yes
  4009. else
  4010. ac_cv_header_stdc=no
  4011. fi
  4012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4013. if test $ac_cv_header_stdc = yes; then
  4014. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. #include <string.h>
  4018. _ACEOF
  4019. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4020. $EGREP "memchr" >/dev/null 2>&1; then :
  4021. else
  4022. ac_cv_header_stdc=no
  4023. fi
  4024. rm -f conftest*
  4025. fi
  4026. if test $ac_cv_header_stdc = yes; then
  4027. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4029. /* end confdefs.h. */
  4030. #include <stdlib.h>
  4031. _ACEOF
  4032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4033. $EGREP "free" >/dev/null 2>&1; then :
  4034. else
  4035. ac_cv_header_stdc=no
  4036. fi
  4037. rm -f conftest*
  4038. fi
  4039. if test $ac_cv_header_stdc = yes; then
  4040. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4041. if test "$cross_compiling" = yes; then :
  4042. :
  4043. else
  4044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4045. /* end confdefs.h. */
  4046. #include <ctype.h>
  4047. #include <stdlib.h>
  4048. #if ((' ' & 0x0FF) == 0x020)
  4049. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4050. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4051. #else
  4052. # define ISLOWER(c) \
  4053. (('a' <= (c) && (c) <= 'i') \
  4054. || ('j' <= (c) && (c) <= 'r') \
  4055. || ('s' <= (c) && (c) <= 'z'))
  4056. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4057. #endif
  4058. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4059. int
  4060. main ()
  4061. {
  4062. int i;
  4063. for (i = 0; i < 256; i++)
  4064. if (XOR (islower (i), ISLOWER (i))
  4065. || toupper (i) != TOUPPER (i))
  4066. return 2;
  4067. return 0;
  4068. }
  4069. _ACEOF
  4070. if ac_fn_c_try_run "$LINENO"; then :
  4071. else
  4072. ac_cv_header_stdc=no
  4073. fi
  4074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4075. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4076. fi
  4077. fi
  4078. fi
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4080. $as_echo "$ac_cv_header_stdc" >&6; }
  4081. if test $ac_cv_header_stdc = yes; then
  4082. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4083. fi
  4084. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4085. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4086. inttypes.h stdint.h unistd.h
  4087. do :
  4088. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4089. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4090. "
  4091. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4092. cat >>confdefs.h <<_ACEOF
  4093. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4094. _ACEOF
  4095. fi
  4096. done
  4097. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4098. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4099. MINIX=yes
  4100. else
  4101. MINIX=
  4102. fi
  4103. if test "$MINIX" = yes; then
  4104. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4105. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4106. $as_echo "#define _MINIX 1" >>confdefs.h
  4107. fi
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4109. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4110. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4111. $as_echo_n "(cached) " >&6
  4112. else
  4113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4114. /* end confdefs.h. */
  4115. # define __EXTENSIONS__ 1
  4116. $ac_includes_default
  4117. int
  4118. main ()
  4119. {
  4120. ;
  4121. return 0;
  4122. }
  4123. _ACEOF
  4124. if ac_fn_c_try_compile "$LINENO"; then :
  4125. ac_cv_safe_to_define___extensions__=yes
  4126. else
  4127. ac_cv_safe_to_define___extensions__=no
  4128. fi
  4129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4132. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4133. test $ac_cv_safe_to_define___extensions__ = yes &&
  4134. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4135. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4136. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4137. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4138. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4139. # System default paths
  4140. astsbindir='${sbindir}'
  4141. astetcdir='${sysconfdir}/asterisk'
  4142. astheaderdir='${includedir}/asterisk'
  4143. astlibdir='${libdir}/asterisk'
  4144. astmandir='${mandir}'
  4145. astvarlibdir='${localstatedir}/lib/asterisk'
  4146. astdatadir='${astvarlibdir}'
  4147. astdbdir='${astvarlibdir}'
  4148. astkeydir='${astvarlibdir}'
  4149. astspooldir='${localstatedir}/spool/asterisk'
  4150. astlogdir='${localstatedir}/log/asterisk'
  4151. astvarrundir='${localstatedir}/run/asterisk'
  4152. case "${host_os}" in
  4153. *bsd*)
  4154. if test ${prefix} = 'NONE'; then
  4155. astvarlibdir='${prefix}/share/asterisk'
  4156. astdbdir='${localstatedir}/db/asterisk'
  4157. fi
  4158. ;;
  4159. darwin*)
  4160. if test ${prefix} = 'NONE'; then
  4161. astvarrundir='/Library/Application Support/Asterisk/Run'
  4162. fi
  4163. ;;
  4164. esac
  4165. case "${host_os}" in
  4166. freebsd*)
  4167. ac_default_prefix=/usr/local
  4168. CPPFLAGS=-I/usr/local/include
  4169. LDFLAGS=-L/usr/local/lib
  4170. ;;
  4171. openbsd*)
  4172. ac_default_prefix=/usr/local
  4173. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  4174. if test ${sysconfdir} = '${prefix}/etc'; then
  4175. astetcdir=/etc/asterisk
  4176. fi
  4177. if test ${mandir} = '${prefix}/man'; then
  4178. astmandir=/usr/share/man
  4179. fi
  4180. fi
  4181. CPPFLAGS=-I/usr/local/include
  4182. LDFLAGS=-L/usr/local/lib
  4183. ;;
  4184. darwin*)
  4185. ac_default_prefix=/usr/local
  4186. if test ${prefix} = 'NONE'; then
  4187. astlibdir='/Library/Application Support/Asterisk/Modules'
  4188. astvarlibdir='/Library/Application Support/Asterisk'
  4189. astlogdir=/Library/Logs/Asterisk
  4190. astvarrundir='/Library/Application Support/Asterisk/Run'
  4191. fi
  4192. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  4193. $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
  4194. ;;
  4195. solaris*)
  4196. if test ${prefix} = 'NONE'; then
  4197. astetcdir=/var/etc/asterisk
  4198. astsbindir=/opt/asterisk/sbin
  4199. astlibdir=/opt/asterisk/lib
  4200. astheaderdir=/opt/asterisk/include
  4201. astmandir=/opt/asterisk/man
  4202. astvarlibdir=/var/opt/asterisk
  4203. astspooldir=/var/spool/asterisk
  4204. astlogdir=/var/log/asterisk
  4205. astvarrundir=/var/run/asterisk
  4206. fi
  4207. ;;
  4208. *)
  4209. ac_default_prefix=/usr
  4210. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4211. if test ${sysconfdir} = '${prefix}/etc'; then
  4212. sysconfdir=/etc
  4213. fi
  4214. if test ${mandir} = '${prefix}/man'; then
  4215. mandir=/usr/share/man
  4216. fi
  4217. fi
  4218. ;;
  4219. esac
  4220. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4221. if test ${localstatedir} = '${prefix}/var'; then
  4222. localstatedir=/var
  4223. fi
  4224. fi
  4225. BUILD_PLATFORM=${build}
  4226. BUILD_CPU=${build_cpu}
  4227. BUILD_VENDOR=${build_vendor}
  4228. BUILD_OS=${build_os}
  4229. HOST_PLATFORM=${host}
  4230. HOST_CPU=${host_cpu}
  4231. HOST_VENDOR=${host_vendor}
  4232. HOST_OS=${host_os}
  4233. PBX_WINARCH=0
  4234. case "${host_os}" in
  4235. freebsd*)
  4236. OSARCH=FreeBSD
  4237. ;;
  4238. netbsd*)
  4239. OSARCH=NetBSD
  4240. ;;
  4241. openbsd*)
  4242. OSARCH=OpenBSD
  4243. ;;
  4244. solaris*)
  4245. OSARCH=SunOS
  4246. ;;
  4247. mingw32)
  4248. OSARCH=mingw32
  4249. PBX_WINARCH=1
  4250. ;;
  4251. cygwin)
  4252. OSARCH=cygwin
  4253. PBX_WINARCH=1
  4254. ;;
  4255. linux-gnueabi)
  4256. OSARCH=linux-gnu
  4257. ;;
  4258. kfreebsd*-gnu)
  4259. OSARCH=kfreebsd-gnu
  4260. ;;
  4261. *)
  4262. OSARCH=${host_os}
  4263. ;;
  4264. esac
  4265. # check for uname
  4266. if test -n "$ac_tool_prefix"; then
  4267. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4268. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4270. $as_echo_n "checking for $ac_word... " >&6; }
  4271. if test "${ac_cv_path_UNAME+set}" = set; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. case $UNAME in
  4275. [\\/]* | ?:[\\/]*)
  4276. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4277. ;;
  4278. *)
  4279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4280. for as_dir in $PATH
  4281. do
  4282. IFS=$as_save_IFS
  4283. test -z "$as_dir" && as_dir=.
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4286. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4288. break 2
  4289. fi
  4290. done
  4291. done
  4292. IFS=$as_save_IFS
  4293. ;;
  4294. esac
  4295. fi
  4296. UNAME=$ac_cv_path_UNAME
  4297. if test -n "$UNAME"; then
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4299. $as_echo "$UNAME" >&6; }
  4300. else
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4302. $as_echo "no" >&6; }
  4303. fi
  4304. fi
  4305. if test -z "$ac_cv_path_UNAME"; then
  4306. ac_pt_UNAME=$UNAME
  4307. # Extract the first word of "uname", so it can be a program name with args.
  4308. set dummy uname; ac_word=$2
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4310. $as_echo_n "checking for $ac_word... " >&6; }
  4311. if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. case $ac_pt_UNAME in
  4315. [\\/]* | ?:[\\/]*)
  4316. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4317. ;;
  4318. *)
  4319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4320. for as_dir in $PATH
  4321. do
  4322. IFS=$as_save_IFS
  4323. test -z "$as_dir" && as_dir=.
  4324. for ac_exec_ext in '' $ac_executable_extensions; do
  4325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4326. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4328. break 2
  4329. fi
  4330. done
  4331. done
  4332. IFS=$as_save_IFS
  4333. ;;
  4334. esac
  4335. fi
  4336. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4337. if test -n "$ac_pt_UNAME"; then
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
  4339. $as_echo "$ac_pt_UNAME" >&6; }
  4340. else
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4342. $as_echo "no" >&6; }
  4343. fi
  4344. if test "x$ac_pt_UNAME" = x; then
  4345. UNAME="No"
  4346. else
  4347. case $cross_compiling:$ac_tool_warned in
  4348. yes:)
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4350. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4351. ac_tool_warned=yes ;;
  4352. esac
  4353. UNAME=$ac_pt_UNAME
  4354. fi
  4355. else
  4356. UNAME="$ac_cv_path_UNAME"
  4357. fi
  4358. if test ! x"${UNAME}" = xNo; then
  4359. PBX_OSREV=$(${UNAME} -r)
  4360. fi
  4361. # cross-compile checks
  4362. if test "${cross_compiling}" = "yes";
  4363. then
  4364. if test -n "$ac_tool_prefix"; then
  4365. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4366. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4368. $as_echo_n "checking for $ac_word... " >&6; }
  4369. if test "${ac_cv_prog_CC+set}" = set; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. if test -n "$CC"; then
  4373. ac_cv_prog_CC="$CC" # Let the user override the test.
  4374. else
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH
  4377. do
  4378. IFS=$as_save_IFS
  4379. test -z "$as_dir" && as_dir=.
  4380. for ac_exec_ext in '' $ac_executable_extensions; do
  4381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4382. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4384. break 2
  4385. fi
  4386. done
  4387. done
  4388. IFS=$as_save_IFS
  4389. fi
  4390. fi
  4391. CC=$ac_cv_prog_CC
  4392. if test -n "$CC"; then
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4394. $as_echo "$CC" >&6; }
  4395. else
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4397. $as_echo "no" >&6; }
  4398. fi
  4399. fi
  4400. if test -z "$ac_cv_prog_CC"; then
  4401. ac_ct_CC=$CC
  4402. # Extract the first word of "gcc", so it can be a program name with args.
  4403. set dummy gcc; ac_word=$2
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4405. $as_echo_n "checking for $ac_word... " >&6; }
  4406. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. if test -n "$ac_ct_CC"; then
  4410. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4411. else
  4412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4413. for as_dir in $PATH
  4414. do
  4415. IFS=$as_save_IFS
  4416. test -z "$as_dir" && as_dir=.
  4417. for ac_exec_ext in '' $ac_executable_extensions; do
  4418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4419. ac_cv_prog_ac_ct_CC="gcc"
  4420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4421. break 2
  4422. fi
  4423. done
  4424. done
  4425. IFS=$as_save_IFS
  4426. fi
  4427. fi
  4428. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4429. if test -n "$ac_ct_CC"; then
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4431. $as_echo "$ac_ct_CC" >&6; }
  4432. else
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4434. $as_echo "no" >&6; }
  4435. fi
  4436. if test "x$ac_ct_CC" = x; then
  4437. CC=":"
  4438. else
  4439. case $cross_compiling:$ac_tool_warned in
  4440. yes:)
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4443. ac_tool_warned=yes ;;
  4444. esac
  4445. CC=$ac_ct_CC
  4446. fi
  4447. else
  4448. CC="$ac_cv_prog_CC"
  4449. fi
  4450. if test -n "$ac_tool_prefix"; then
  4451. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4452. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4454. $as_echo_n "checking for $ac_word... " >&6; }
  4455. if test "${ac_cv_prog_CXX+set}" = set; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. if test -n "$CXX"; then
  4459. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4460. else
  4461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4462. for as_dir in $PATH
  4463. do
  4464. IFS=$as_save_IFS
  4465. test -z "$as_dir" && as_dir=.
  4466. for ac_exec_ext in '' $ac_executable_extensions; do
  4467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4468. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4470. break 2
  4471. fi
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. fi
  4476. fi
  4477. CXX=$ac_cv_prog_CXX
  4478. if test -n "$CXX"; then
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4480. $as_echo "$CXX" >&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_prog_CXX"; then
  4487. ac_ct_CXX=$CXX
  4488. # Extract the first word of "g++", so it can be a program name with args.
  4489. set dummy g++; 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 test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4493. $as_echo_n "(cached) " >&6
  4494. else
  4495. if test -n "$ac_ct_CXX"; then
  4496. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4497. else
  4498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4499. for as_dir in $PATH
  4500. do
  4501. IFS=$as_save_IFS
  4502. test -z "$as_dir" && as_dir=.
  4503. for ac_exec_ext in '' $ac_executable_extensions; do
  4504. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4505. ac_cv_prog_ac_ct_CXX="g++"
  4506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4507. break 2
  4508. fi
  4509. done
  4510. done
  4511. IFS=$as_save_IFS
  4512. fi
  4513. fi
  4514. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4515. if test -n "$ac_ct_CXX"; then
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4517. $as_echo "$ac_ct_CXX" >&6; }
  4518. else
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4520. $as_echo "no" >&6; }
  4521. fi
  4522. if test "x$ac_ct_CXX" = x; then
  4523. CXX=":"
  4524. else
  4525. case $cross_compiling:$ac_tool_warned in
  4526. yes:)
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4528. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4529. ac_tool_warned=yes ;;
  4530. esac
  4531. CXX=$ac_ct_CXX
  4532. fi
  4533. else
  4534. CXX="$ac_cv_prog_CXX"
  4535. fi
  4536. if test -n "$ac_tool_prefix"; then
  4537. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4538. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4540. $as_echo_n "checking for $ac_word... " >&6; }
  4541. if test "${ac_cv_prog_LD+set}" = set; then :
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. if test -n "$LD"; then
  4545. ac_cv_prog_LD="$LD" # Let the user override the test.
  4546. else
  4547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4548. for as_dir in $PATH
  4549. do
  4550. IFS=$as_save_IFS
  4551. test -z "$as_dir" && as_dir=.
  4552. for ac_exec_ext in '' $ac_executable_extensions; do
  4553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4554. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4556. break 2
  4557. fi
  4558. done
  4559. done
  4560. IFS=$as_save_IFS
  4561. fi
  4562. fi
  4563. LD=$ac_cv_prog_LD
  4564. if test -n "$LD"; then
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4566. $as_echo "$LD" >&6; }
  4567. else
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4569. $as_echo "no" >&6; }
  4570. fi
  4571. fi
  4572. if test -z "$ac_cv_prog_LD"; then
  4573. ac_ct_LD=$LD
  4574. # Extract the first word of "ld", so it can be a program name with args.
  4575. set dummy ld; ac_word=$2
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4577. $as_echo_n "checking for $ac_word... " >&6; }
  4578. if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. if test -n "$ac_ct_LD"; then
  4582. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4583. else
  4584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4585. for as_dir in $PATH
  4586. do
  4587. IFS=$as_save_IFS
  4588. test -z "$as_dir" && as_dir=.
  4589. for ac_exec_ext in '' $ac_executable_extensions; do
  4590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4591. ac_cv_prog_ac_ct_LD="ld"
  4592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4593. break 2
  4594. fi
  4595. done
  4596. done
  4597. IFS=$as_save_IFS
  4598. fi
  4599. fi
  4600. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4601. if test -n "$ac_ct_LD"; then
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  4603. $as_echo "$ac_ct_LD" >&6; }
  4604. else
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4606. $as_echo "no" >&6; }
  4607. fi
  4608. if test "x$ac_ct_LD" = x; then
  4609. LD=":"
  4610. else
  4611. case $cross_compiling:$ac_tool_warned in
  4612. yes:)
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4615. ac_tool_warned=yes ;;
  4616. esac
  4617. LD=$ac_ct_LD
  4618. fi
  4619. else
  4620. LD="$ac_cv_prog_LD"
  4621. fi
  4622. if test -n "$ac_tool_prefix"; then
  4623. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4624. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4626. $as_echo_n "checking for $ac_word... " >&6; }
  4627. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. if test -n "$RANLIB"; then
  4631. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4632. else
  4633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4634. for as_dir in $PATH
  4635. do
  4636. IFS=$as_save_IFS
  4637. test -z "$as_dir" && as_dir=.
  4638. for ac_exec_ext in '' $ac_executable_extensions; do
  4639. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4640. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4642. break 2
  4643. fi
  4644. done
  4645. done
  4646. IFS=$as_save_IFS
  4647. fi
  4648. fi
  4649. RANLIB=$ac_cv_prog_RANLIB
  4650. if test -n "$RANLIB"; then
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4652. $as_echo "$RANLIB" >&6; }
  4653. else
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4655. $as_echo "no" >&6; }
  4656. fi
  4657. fi
  4658. if test -z "$ac_cv_prog_RANLIB"; then
  4659. ac_ct_RANLIB=$RANLIB
  4660. # Extract the first word of "ranlib", so it can be a program name with args.
  4661. set dummy ranlib; ac_word=$2
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4663. $as_echo_n "checking for $ac_word... " >&6; }
  4664. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4665. $as_echo_n "(cached) " >&6
  4666. else
  4667. if test -n "$ac_ct_RANLIB"; then
  4668. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4669. else
  4670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4671. for as_dir in $PATH
  4672. do
  4673. IFS=$as_save_IFS
  4674. test -z "$as_dir" && as_dir=.
  4675. for ac_exec_ext in '' $ac_executable_extensions; do
  4676. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4677. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4679. break 2
  4680. fi
  4681. done
  4682. done
  4683. IFS=$as_save_IFS
  4684. fi
  4685. fi
  4686. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4687. if test -n "$ac_ct_RANLIB"; then
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4689. $as_echo "$ac_ct_RANLIB" >&6; }
  4690. else
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4692. $as_echo "no" >&6; }
  4693. fi
  4694. if test "x$ac_ct_RANLIB" = x; then
  4695. RANLIB=":"
  4696. else
  4697. case $cross_compiling:$ac_tool_warned in
  4698. yes:)
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4701. ac_tool_warned=yes ;;
  4702. esac
  4703. RANLIB=$ac_ct_RANLIB
  4704. fi
  4705. else
  4706. RANLIB="$ac_cv_prog_RANLIB"
  4707. fi
  4708. fi
  4709. # Checks for programs.
  4710. ac_ext=cpp
  4711. ac_cpp='$CXXCPP $CPPFLAGS'
  4712. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4713. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4714. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4715. if test -z "$CXX"; then
  4716. if test -n "$CCC"; then
  4717. CXX=$CCC
  4718. else
  4719. if test -n "$ac_tool_prefix"; then
  4720. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4721. do
  4722. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4723. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4725. $as_echo_n "checking for $ac_word... " >&6; }
  4726. if test "${ac_cv_prog_CXX+set}" = set; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. if test -n "$CXX"; then
  4730. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4731. else
  4732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4733. for as_dir in $PATH
  4734. do
  4735. IFS=$as_save_IFS
  4736. test -z "$as_dir" && as_dir=.
  4737. for ac_exec_ext in '' $ac_executable_extensions; do
  4738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4739. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4741. break 2
  4742. fi
  4743. done
  4744. done
  4745. IFS=$as_save_IFS
  4746. fi
  4747. fi
  4748. CXX=$ac_cv_prog_CXX
  4749. if test -n "$CXX"; then
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4751. $as_echo "$CXX" >&6; }
  4752. else
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4754. $as_echo "no" >&6; }
  4755. fi
  4756. test -n "$CXX" && break
  4757. done
  4758. fi
  4759. if test -z "$CXX"; then
  4760. ac_ct_CXX=$CXX
  4761. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4762. do
  4763. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4764. set dummy $ac_prog; ac_word=$2
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4766. $as_echo_n "checking for $ac_word... " >&6; }
  4767. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. if test -n "$ac_ct_CXX"; then
  4771. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4772. else
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH
  4775. do
  4776. IFS=$as_save_IFS
  4777. test -z "$as_dir" && as_dir=.
  4778. for ac_exec_ext in '' $ac_executable_extensions; do
  4779. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4780. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4782. break 2
  4783. fi
  4784. done
  4785. done
  4786. IFS=$as_save_IFS
  4787. fi
  4788. fi
  4789. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4790. if test -n "$ac_ct_CXX"; then
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4792. $as_echo "$ac_ct_CXX" >&6; }
  4793. else
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4795. $as_echo "no" >&6; }
  4796. fi
  4797. test -n "$ac_ct_CXX" && break
  4798. done
  4799. if test "x$ac_ct_CXX" = x; then
  4800. CXX="g++"
  4801. else
  4802. case $cross_compiling:$ac_tool_warned in
  4803. yes:)
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4806. ac_tool_warned=yes ;;
  4807. esac
  4808. CXX=$ac_ct_CXX
  4809. fi
  4810. fi
  4811. fi
  4812. fi
  4813. # Provide some information about the compiler.
  4814. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4815. set X $ac_compile
  4816. ac_compiler=$2
  4817. for ac_option in --version -v -V -qversion; do
  4818. { { ac_try="$ac_compiler $ac_option >&5"
  4819. case "(($ac_try" in
  4820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4821. *) ac_try_echo=$ac_try;;
  4822. esac
  4823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4824. $as_echo "$ac_try_echo"; } >&5
  4825. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4826. ac_status=$?
  4827. if test -s conftest.err; then
  4828. sed '10a\
  4829. ... rest of stderr output deleted ...
  4830. 10q' conftest.err >conftest.er1
  4831. cat conftest.er1 >&5
  4832. fi
  4833. rm -f conftest.er1 conftest.err
  4834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4835. test $ac_status = 0; }
  4836. done
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4838. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4839. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4840. $as_echo_n "(cached) " >&6
  4841. else
  4842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. int
  4845. main ()
  4846. {
  4847. #ifndef __GNUC__
  4848. choke me
  4849. #endif
  4850. ;
  4851. return 0;
  4852. }
  4853. _ACEOF
  4854. if ac_fn_cxx_try_compile "$LINENO"; then :
  4855. ac_compiler_gnu=yes
  4856. else
  4857. ac_compiler_gnu=no
  4858. fi
  4859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4860. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4861. fi
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4863. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4864. if test $ac_compiler_gnu = yes; then
  4865. GXX=yes
  4866. else
  4867. GXX=
  4868. fi
  4869. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4870. ac_save_CXXFLAGS=$CXXFLAGS
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4872. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4873. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4877. ac_cxx_werror_flag=yes
  4878. ac_cv_prog_cxx_g=no
  4879. CXXFLAGS="-g"
  4880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4881. /* end confdefs.h. */
  4882. int
  4883. main ()
  4884. {
  4885. ;
  4886. return 0;
  4887. }
  4888. _ACEOF
  4889. if ac_fn_cxx_try_compile "$LINENO"; then :
  4890. ac_cv_prog_cxx_g=yes
  4891. else
  4892. CXXFLAGS=""
  4893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4894. /* end confdefs.h. */
  4895. int
  4896. main ()
  4897. {
  4898. ;
  4899. return 0;
  4900. }
  4901. _ACEOF
  4902. if ac_fn_cxx_try_compile "$LINENO"; then :
  4903. else
  4904. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4905. CXXFLAGS="-g"
  4906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4907. /* end confdefs.h. */
  4908. int
  4909. main ()
  4910. {
  4911. ;
  4912. return 0;
  4913. }
  4914. _ACEOF
  4915. if ac_fn_cxx_try_compile "$LINENO"; then :
  4916. ac_cv_prog_cxx_g=yes
  4917. fi
  4918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4919. fi
  4920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4921. fi
  4922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4923. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4924. fi
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4926. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4927. if test "$ac_test_CXXFLAGS" = set; then
  4928. CXXFLAGS=$ac_save_CXXFLAGS
  4929. elif test $ac_cv_prog_cxx_g = yes; then
  4930. if test "$GXX" = yes; then
  4931. CXXFLAGS="-g -O2"
  4932. else
  4933. CXXFLAGS="-g"
  4934. fi
  4935. else
  4936. if test "$GXX" = yes; then
  4937. CXXFLAGS="-O2"
  4938. else
  4939. CXXFLAGS=
  4940. fi
  4941. fi
  4942. ac_ext=c
  4943. ac_cpp='$CPP $CPPFLAGS'
  4944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4947. ac_ext=c
  4948. ac_cpp='$CPP $CPPFLAGS'
  4949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4953. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4954. # On Suns, sometimes $CPP names a directory.
  4955. if test -n "$CPP" && test -d "$CPP"; then
  4956. CPP=
  4957. fi
  4958. if test -z "$CPP"; then
  4959. if test "${ac_cv_prog_CPP+set}" = set; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. # Double quotes because CPP needs to be expanded
  4963. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4964. do
  4965. ac_preproc_ok=false
  4966. for ac_c_preproc_warn_flag in '' yes
  4967. do
  4968. # Use a header file that comes with gcc, so configuring glibc
  4969. # with a fresh cross-compiler works.
  4970. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4971. # <limits.h> exists even on freestanding compilers.
  4972. # On the NeXT, cc -E runs the code through the compiler's parser,
  4973. # not just through cpp. "Syntax error" is here to catch this case.
  4974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4975. /* end confdefs.h. */
  4976. #ifdef __STDC__
  4977. # include <limits.h>
  4978. #else
  4979. # include <assert.h>
  4980. #endif
  4981. Syntax error
  4982. _ACEOF
  4983. if ac_fn_c_try_cpp "$LINENO"; then :
  4984. else
  4985. # Broken: fails on valid input.
  4986. continue
  4987. fi
  4988. rm -f conftest.err conftest.i conftest.$ac_ext
  4989. # OK, works on sane cases. Now check whether nonexistent headers
  4990. # can be detected and how.
  4991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4992. /* end confdefs.h. */
  4993. #include <ac_nonexistent.h>
  4994. _ACEOF
  4995. if ac_fn_c_try_cpp "$LINENO"; then :
  4996. # Broken: success on invalid input.
  4997. continue
  4998. else
  4999. # Passes both tests.
  5000. ac_preproc_ok=:
  5001. break
  5002. fi
  5003. rm -f conftest.err conftest.i conftest.$ac_ext
  5004. done
  5005. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5006. rm -f conftest.i conftest.err conftest.$ac_ext
  5007. if $ac_preproc_ok; then :
  5008. break
  5009. fi
  5010. done
  5011. ac_cv_prog_CPP=$CPP
  5012. fi
  5013. CPP=$ac_cv_prog_CPP
  5014. else
  5015. ac_cv_prog_CPP=$CPP
  5016. fi
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5018. $as_echo "$CPP" >&6; }
  5019. ac_preproc_ok=false
  5020. for ac_c_preproc_warn_flag in '' yes
  5021. do
  5022. # Use a header file that comes with gcc, so configuring glibc
  5023. # with a fresh cross-compiler works.
  5024. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5025. # <limits.h> exists even on freestanding compilers.
  5026. # On the NeXT, cc -E runs the code through the compiler's parser,
  5027. # not just through cpp. "Syntax error" is here to catch this case.
  5028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5029. /* end confdefs.h. */
  5030. #ifdef __STDC__
  5031. # include <limits.h>
  5032. #else
  5033. # include <assert.h>
  5034. #endif
  5035. Syntax error
  5036. _ACEOF
  5037. if ac_fn_c_try_cpp "$LINENO"; then :
  5038. else
  5039. # Broken: fails on valid input.
  5040. continue
  5041. fi
  5042. rm -f conftest.err conftest.i conftest.$ac_ext
  5043. # OK, works on sane cases. Now check whether nonexistent headers
  5044. # can be detected and how.
  5045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5046. /* end confdefs.h. */
  5047. #include <ac_nonexistent.h>
  5048. _ACEOF
  5049. if ac_fn_c_try_cpp "$LINENO"; then :
  5050. # Broken: success on invalid input.
  5051. continue
  5052. else
  5053. # Passes both tests.
  5054. ac_preproc_ok=:
  5055. break
  5056. fi
  5057. rm -f conftest.err conftest.i conftest.$ac_ext
  5058. done
  5059. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5060. rm -f conftest.i conftest.err conftest.$ac_ext
  5061. if $ac_preproc_ok; then :
  5062. else
  5063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5065. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5066. See \`config.log' for more details" "$LINENO" 5 ; }
  5067. fi
  5068. ac_ext=c
  5069. ac_cpp='$CPP $CPPFLAGS'
  5070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5073. ac_ext=cpp
  5074. ac_cpp='$CXXCPP $CPPFLAGS'
  5075. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5076. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5077. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5079. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5080. if test -z "$CXXCPP"; then
  5081. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  5082. $as_echo_n "(cached) " >&6
  5083. else
  5084. # Double quotes because CXXCPP needs to be expanded
  5085. for CXXCPP in "$CXX -E" "/lib/cpp"
  5086. do
  5087. ac_preproc_ok=false
  5088. for ac_cxx_preproc_warn_flag in '' yes
  5089. do
  5090. # Use a header file that comes with gcc, so configuring glibc
  5091. # with a fresh cross-compiler works.
  5092. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5093. # <limits.h> exists even on freestanding compilers.
  5094. # On the NeXT, cc -E runs the code through the compiler's parser,
  5095. # not just through cpp. "Syntax error" is here to catch this case.
  5096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5097. /* end confdefs.h. */
  5098. #ifdef __STDC__
  5099. # include <limits.h>
  5100. #else
  5101. # include <assert.h>
  5102. #endif
  5103. Syntax error
  5104. _ACEOF
  5105. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5106. else
  5107. # Broken: fails on valid input.
  5108. continue
  5109. fi
  5110. rm -f conftest.err conftest.i conftest.$ac_ext
  5111. # OK, works on sane cases. Now check whether nonexistent headers
  5112. # can be detected and how.
  5113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5114. /* end confdefs.h. */
  5115. #include <ac_nonexistent.h>
  5116. _ACEOF
  5117. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5118. # Broken: success on invalid input.
  5119. continue
  5120. else
  5121. # Passes both tests.
  5122. ac_preproc_ok=:
  5123. break
  5124. fi
  5125. rm -f conftest.err conftest.i conftest.$ac_ext
  5126. done
  5127. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5128. rm -f conftest.i conftest.err conftest.$ac_ext
  5129. if $ac_preproc_ok; then :
  5130. break
  5131. fi
  5132. done
  5133. ac_cv_prog_CXXCPP=$CXXCPP
  5134. fi
  5135. CXXCPP=$ac_cv_prog_CXXCPP
  5136. else
  5137. ac_cv_prog_CXXCPP=$CXXCPP
  5138. fi
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5140. $as_echo "$CXXCPP" >&6; }
  5141. ac_preproc_ok=false
  5142. for ac_cxx_preproc_warn_flag in '' yes
  5143. do
  5144. # Use a header file that comes with gcc, so configuring glibc
  5145. # with a fresh cross-compiler works.
  5146. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5147. # <limits.h> exists even on freestanding compilers.
  5148. # On the NeXT, cc -E runs the code through the compiler's parser,
  5149. # not just through cpp. "Syntax error" is here to catch this case.
  5150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5151. /* end confdefs.h. */
  5152. #ifdef __STDC__
  5153. # include <limits.h>
  5154. #else
  5155. # include <assert.h>
  5156. #endif
  5157. Syntax error
  5158. _ACEOF
  5159. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5160. else
  5161. # Broken: fails on valid input.
  5162. continue
  5163. fi
  5164. rm -f conftest.err conftest.i conftest.$ac_ext
  5165. # OK, works on sane cases. Now check whether nonexistent headers
  5166. # can be detected and how.
  5167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5168. /* end confdefs.h. */
  5169. #include <ac_nonexistent.h>
  5170. _ACEOF
  5171. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5172. # Broken: success on invalid input.
  5173. continue
  5174. else
  5175. # Passes both tests.
  5176. ac_preproc_ok=:
  5177. break
  5178. fi
  5179. rm -f conftest.err conftest.i conftest.$ac_ext
  5180. done
  5181. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5182. rm -f conftest.i conftest.err conftest.$ac_ext
  5183. if $ac_preproc_ok; then :
  5184. else
  5185. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5186. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5187. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  5188. See \`config.log' for more details" "$LINENO" 5 ; }
  5189. fi
  5190. ac_ext=c
  5191. ac_cpp='$CPP $CPPFLAGS'
  5192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5195. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5196. # the developers regenerating the configure script don't have to install libtool.
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5198. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5199. if test "${ac_cv_path_SED+set}" = set; then :
  5200. $as_echo_n "(cached) " >&6
  5201. else
  5202. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5203. for ac_i in 1 2 3 4 5 6 7; do
  5204. ac_script="$ac_script$as_nl$ac_script"
  5205. done
  5206. echo "$ac_script" | sed 99q >conftest.sed
  5207. $as_unset ac_script || ac_script=
  5208. if test -z "$SED"; then
  5209. ac_path_SED_found=false
  5210. # Loop through the user's path and test for each of PROGNAME-LIST
  5211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5212. for as_dir in $PATH
  5213. do
  5214. IFS=$as_save_IFS
  5215. test -z "$as_dir" && as_dir=.
  5216. for ac_prog in sed gsed; do
  5217. for ac_exec_ext in '' $ac_executable_extensions; do
  5218. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5219. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5220. # Check for GNU ac_path_SED and select it if it is found.
  5221. # Check for GNU $ac_path_SED
  5222. case `"$ac_path_SED" --version 2>&1` in
  5223. *GNU*)
  5224. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5225. *)
  5226. ac_count=0
  5227. $as_echo_n 0123456789 >"conftest.in"
  5228. while :
  5229. do
  5230. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5231. mv "conftest.tmp" "conftest.in"
  5232. cp "conftest.in" "conftest.nl"
  5233. $as_echo '' >> "conftest.nl"
  5234. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5235. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5236. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5237. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5238. # Best one so far, save it but keep looking for a better one
  5239. ac_cv_path_SED="$ac_path_SED"
  5240. ac_path_SED_max=$ac_count
  5241. fi
  5242. # 10*(2^10) chars as input seems more than enough
  5243. test $ac_count -gt 10 && break
  5244. done
  5245. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5246. esac
  5247. $ac_path_SED_found && break 3
  5248. done
  5249. done
  5250. done
  5251. IFS=$as_save_IFS
  5252. if test -z "$ac_cv_path_SED"; then
  5253. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5254. fi
  5255. else
  5256. ac_cv_path_SED=$SED
  5257. fi
  5258. fi
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5260. $as_echo "$ac_cv_path_SED" >&6; }
  5261. SED="$ac_cv_path_SED"
  5262. rm -f conftest.sed
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5264. $as_echo_n "checking for egrep... " >&6; }
  5265. if test "${ac_cv_prog_egrep+set}" = set; then :
  5266. $as_echo_n "(cached) " >&6
  5267. else
  5268. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5269. then ac_cv_prog_egrep='grep -E'
  5270. else ac_cv_prog_egrep='egrep'
  5271. fi
  5272. fi
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
  5274. $as_echo "$ac_cv_prog_egrep" >&6; }
  5275. EGREP=$ac_cv_prog_egrep
  5276. # Check whether --with-gnu-ld was given.
  5277. if test "${with_gnu_ld+set}" = set; then :
  5278. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5279. else
  5280. with_gnu_ld=no
  5281. fi
  5282. ac_prog=ld
  5283. if test "$GCC" = yes; then
  5284. # Check if gcc -print-prog-name=ld gives a path.
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5286. $as_echo_n "checking for ld used by $CC... " >&6; }
  5287. case $host in
  5288. *-*-mingw*)
  5289. # gcc leaves a trailing carriage return which upsets mingw
  5290. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5291. *)
  5292. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5293. esac
  5294. case $ac_prog in
  5295. # Accept absolute paths.
  5296. [\\/]* | ?:[\\/]*)
  5297. re_direlt='/[^/][^/]*/\.\./'
  5298. # Canonicalize the pathname of ld
  5299. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5300. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5301. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5302. done
  5303. test -z "$LD" && LD="$ac_prog"
  5304. ;;
  5305. "")
  5306. # If it fails, then pretend we aren't using GCC.
  5307. ac_prog=ld
  5308. ;;
  5309. *)
  5310. # If it is relative, then search for the first ld in PATH.
  5311. with_gnu_ld=unknown
  5312. ;;
  5313. esac
  5314. elif test "$with_gnu_ld" = yes; then
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5316. $as_echo_n "checking for GNU ld... " >&6; }
  5317. else
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5319. $as_echo_n "checking for non-GNU ld... " >&6; }
  5320. fi
  5321. if test "${lt_cv_path_LD+set}" = set; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. if test -z "$LD"; then
  5325. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5326. for ac_dir in $PATH; do
  5327. IFS="$lt_save_ifs"
  5328. test -z "$ac_dir" && ac_dir=.
  5329. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5330. lt_cv_path_LD="$ac_dir/$ac_prog"
  5331. # Check to see if the program is GNU ld. I'd rather use --version,
  5332. # but apparently some variants of GNU ld only accept -v.
  5333. # Break only if it was the GNU/non-GNU ld that we prefer.
  5334. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5335. *GNU* | *'with BFD'*)
  5336. test "$with_gnu_ld" != no && break
  5337. ;;
  5338. *)
  5339. test "$with_gnu_ld" != yes && break
  5340. ;;
  5341. esac
  5342. fi
  5343. done
  5344. IFS="$lt_save_ifs"
  5345. else
  5346. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5347. fi
  5348. fi
  5349. LD="$lt_cv_path_LD"
  5350. if test -n "$LD"; then
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5352. $as_echo "$LD" >&6; }
  5353. else
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5355. $as_echo "no" >&6; }
  5356. fi
  5357. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5359. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5360. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5361. $as_echo_n "(cached) " >&6
  5362. else
  5363. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5364. case `$LD -v 2>&1 </dev/null` in
  5365. *GNU* | *'with BFD'*)
  5366. lt_cv_prog_gnu_ld=yes
  5367. ;;
  5368. *)
  5369. lt_cv_prog_gnu_ld=no
  5370. ;;
  5371. esac
  5372. fi
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5374. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5375. with_gnu_ld=$lt_cv_prog_gnu_ld
  5376. # note, does not work on FreeBSD
  5377. for ac_prog in gawk mawk nawk awk
  5378. do
  5379. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5380. set dummy $ac_prog; ac_word=$2
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5382. $as_echo_n "checking for $ac_word... " >&6; }
  5383. if test "${ac_cv_prog_AWK+set}" = set; then :
  5384. $as_echo_n "(cached) " >&6
  5385. else
  5386. if test -n "$AWK"; then
  5387. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5388. else
  5389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5390. for as_dir in $PATH
  5391. do
  5392. IFS=$as_save_IFS
  5393. test -z "$as_dir" && as_dir=.
  5394. for ac_exec_ext in '' $ac_executable_extensions; do
  5395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5396. ac_cv_prog_AWK="$ac_prog"
  5397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5398. break 2
  5399. fi
  5400. done
  5401. done
  5402. IFS=$as_save_IFS
  5403. fi
  5404. fi
  5405. AWK=$ac_cv_prog_AWK
  5406. if test -n "$AWK"; then
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5408. $as_echo "$AWK" >&6; }
  5409. else
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5411. $as_echo "no" >&6; }
  5412. fi
  5413. test -n "$AWK" && break
  5414. done
  5415. # Find a good install program. We prefer a C program (faster),
  5416. # so one script is as good as another. But avoid the broken or
  5417. # incompatible versions:
  5418. # SysV /etc/install, /usr/sbin/install
  5419. # SunOS /usr/etc/install
  5420. # IRIX /sbin/install
  5421. # AIX /bin/install
  5422. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5423. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5424. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5425. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5426. # OS/2's system install, which has a completely different semantic
  5427. # ./install, which can be erroneously created by make from ./install.sh.
  5428. # Reject install programs that cannot install multiple files.
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  5430. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5431. if test -z "$INSTALL"; then
  5432. if test "${ac_cv_path_install+set}" = set; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5436. for as_dir in $PATH
  5437. do
  5438. IFS=$as_save_IFS
  5439. test -z "$as_dir" && as_dir=.
  5440. # Account for people who put trailing slashes in PATH elements.
  5441. case $as_dir/ in #((
  5442. ./ | .// | /[cC]/* | \
  5443. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5444. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  5445. /usr/ucb/* ) ;;
  5446. *)
  5447. # OSF1 and SCO ODT 3.0 have their own names for install.
  5448. # Don't use installbsd from OSF since it installs stuff as root
  5449. # by default.
  5450. for ac_prog in ginstall scoinst install; do
  5451. for ac_exec_ext in '' $ac_executable_extensions; do
  5452. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  5453. if test $ac_prog = install &&
  5454. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5455. # AIX install. It has an incompatible calling convention.
  5456. :
  5457. elif test $ac_prog = install &&
  5458. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5459. # program-specific install script used by HP pwplus--don't use.
  5460. :
  5461. else
  5462. rm -rf conftest.one conftest.two conftest.dir
  5463. echo one > conftest.one
  5464. echo two > conftest.two
  5465. mkdir conftest.dir
  5466. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5467. test -s conftest.one && test -s conftest.two &&
  5468. test -s conftest.dir/conftest.one &&
  5469. test -s conftest.dir/conftest.two
  5470. then
  5471. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5472. break 3
  5473. fi
  5474. fi
  5475. fi
  5476. done
  5477. done
  5478. ;;
  5479. esac
  5480. done
  5481. IFS=$as_save_IFS
  5482. rm -rf conftest.one conftest.two conftest.dir
  5483. fi
  5484. if test "${ac_cv_path_install+set}" = set; then
  5485. INSTALL=$ac_cv_path_install
  5486. else
  5487. # As a last resort, use the slow shell script. Don't cache a
  5488. # value for INSTALL within a source directory, because that will
  5489. # break other packages using the cache if that directory is
  5490. # removed, or if the value is a relative name.
  5491. INSTALL=$ac_install_sh
  5492. fi
  5493. fi
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  5495. $as_echo "$INSTALL" >&6; }
  5496. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5497. # It thinks the first close brace ends the variable substitution.
  5498. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5499. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5500. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5502. $as_echo_n "checking whether ln -s works... " >&6; }
  5503. LN_S=$as_ln_s
  5504. if test "$LN_S" = "ln -s"; then
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5506. $as_echo "yes" >&6; }
  5507. else
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5509. $as_echo "no, using $LN_S" >&6; }
  5510. fi
  5511. if test -n "$ac_tool_prefix"; then
  5512. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5513. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5515. $as_echo_n "checking for $ac_word... " >&6; }
  5516. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. if test -n "$RANLIB"; then
  5520. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5521. else
  5522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523. for as_dir in $PATH
  5524. do
  5525. IFS=$as_save_IFS
  5526. test -z "$as_dir" && as_dir=.
  5527. for ac_exec_ext in '' $ac_executable_extensions; do
  5528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5529. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531. break 2
  5532. fi
  5533. done
  5534. done
  5535. IFS=$as_save_IFS
  5536. fi
  5537. fi
  5538. RANLIB=$ac_cv_prog_RANLIB
  5539. if test -n "$RANLIB"; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5541. $as_echo "$RANLIB" >&6; }
  5542. else
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5544. $as_echo "no" >&6; }
  5545. fi
  5546. fi
  5547. if test -z "$ac_cv_prog_RANLIB"; then
  5548. ac_ct_RANLIB=$RANLIB
  5549. # Extract the first word of "ranlib", so it can be a program name with args.
  5550. set dummy ranlib; ac_word=$2
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5552. $as_echo_n "checking for $ac_word... " >&6; }
  5553. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. if test -n "$ac_ct_RANLIB"; then
  5557. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5566. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5576. if test -n "$ac_ct_RANLIB"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5578. $as_echo "$ac_ct_RANLIB" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5581. $as_echo "no" >&6; }
  5582. fi
  5583. if test "x$ac_ct_RANLIB" = x; then
  5584. RANLIB=":"
  5585. else
  5586. case $cross_compiling:$ac_tool_warned in
  5587. yes:)
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5590. ac_tool_warned=yes ;;
  5591. esac
  5592. RANLIB=$ac_ct_RANLIB
  5593. fi
  5594. else
  5595. RANLIB="$ac_cv_prog_RANLIB"
  5596. fi
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  5598. $as_echo_n "checking for GNU make... " >&6; }
  5599. if test "${ac_cv_GNU_MAKE+set}" = set; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. ac_cv_GNU_MAKE='Not Found' ;
  5603. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  5604. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  5605. for a in make gmake gnumake ; do
  5606. if test -z "$a" ; then continue ; fi ;
  5607. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  5608. ac_cv_GNU_MAKE=$a ;
  5609. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  5610. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  5611. break;
  5612. fi
  5613. done ;
  5614. fi
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  5616. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  5617. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  5618. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  5619. exit 1
  5620. fi
  5621. GNU_MAKE=$ac_cv_GNU_MAKE
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5623. $as_echo_n "checking for egrep... " >&6; }
  5624. if test "${ac_cv_path_EGREP+set}" = set; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5628. then ac_cv_path_EGREP="$GREP -E"
  5629. else
  5630. if test -z "$EGREP"; then
  5631. ac_path_EGREP_found=false
  5632. # Loop through the user's path and test for each of PROGNAME-LIST
  5633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5634. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5635. do
  5636. IFS=$as_save_IFS
  5637. test -z "$as_dir" && as_dir=.
  5638. for ac_prog in egrep; do
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5641. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5642. # Check for GNU ac_path_EGREP and select it if it is found.
  5643. # Check for GNU $ac_path_EGREP
  5644. case `"$ac_path_EGREP" --version 2>&1` in
  5645. *GNU*)
  5646. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5647. *)
  5648. ac_count=0
  5649. $as_echo_n 0123456789 >"conftest.in"
  5650. while :
  5651. do
  5652. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5653. mv "conftest.tmp" "conftest.in"
  5654. cp "conftest.in" "conftest.nl"
  5655. $as_echo 'EGREP' >> "conftest.nl"
  5656. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5657. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5658. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5659. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5660. # Best one so far, save it but keep looking for a better one
  5661. ac_cv_path_EGREP="$ac_path_EGREP"
  5662. ac_path_EGREP_max=$ac_count
  5663. fi
  5664. # 10*(2^10) chars as input seems more than enough
  5665. test $ac_count -gt 10 && break
  5666. done
  5667. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5668. esac
  5669. $ac_path_EGREP_found && break 3
  5670. done
  5671. done
  5672. done
  5673. IFS=$as_save_IFS
  5674. if test -z "$ac_cv_path_EGREP"; then
  5675. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5676. fi
  5677. else
  5678. ac_cv_path_EGREP=$EGREP
  5679. fi
  5680. fi
  5681. fi
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5683. $as_echo "$ac_cv_path_EGREP" >&6; }
  5684. EGREP="$ac_cv_path_EGREP"
  5685. if test -n "$ac_tool_prefix"; then
  5686. for ac_prog in strip gstrip
  5687. do
  5688. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5689. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5691. $as_echo_n "checking for $ac_word... " >&6; }
  5692. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. if test -n "$STRIP"; then
  5696. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5705. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. IFS=$as_save_IFS
  5712. fi
  5713. fi
  5714. STRIP=$ac_cv_prog_STRIP
  5715. if test -n "$STRIP"; then
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5717. $as_echo "$STRIP" >&6; }
  5718. else
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5720. $as_echo "no" >&6; }
  5721. fi
  5722. test -n "$STRIP" && break
  5723. done
  5724. fi
  5725. if test -z "$STRIP"; then
  5726. ac_ct_STRIP=$STRIP
  5727. for ac_prog in strip gstrip
  5728. do
  5729. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5730. set dummy $ac_prog; ac_word=$2
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5732. $as_echo_n "checking for $ac_word... " >&6; }
  5733. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. if test -n "$ac_ct_STRIP"; then
  5737. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742. IFS=$as_save_IFS
  5743. test -z "$as_dir" && as_dir=.
  5744. for ac_exec_ext in '' $ac_executable_extensions; do
  5745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5746. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  5747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5748. break 2
  5749. fi
  5750. done
  5751. done
  5752. IFS=$as_save_IFS
  5753. fi
  5754. fi
  5755. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5756. if test -n "$ac_ct_STRIP"; then
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5758. $as_echo "$ac_ct_STRIP" >&6; }
  5759. else
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5761. $as_echo "no" >&6; }
  5762. fi
  5763. test -n "$ac_ct_STRIP" && break
  5764. done
  5765. if test "x$ac_ct_STRIP" = x; then
  5766. STRIP=":"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. STRIP=$ac_ct_STRIP
  5775. fi
  5776. fi
  5777. if test -n "$ac_tool_prefix"; then
  5778. for ac_prog in ar gar
  5779. do
  5780. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5781. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. $as_echo_n "checking for $ac_word... " >&6; }
  5784. if test "${ac_cv_prog_AR+set}" = set; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if test -n "$AR"; then
  5788. ac_cv_prog_AR="$AR" # Let the user override the test.
  5789. else
  5790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5791. for as_dir in $PATH
  5792. do
  5793. IFS=$as_save_IFS
  5794. test -z "$as_dir" && as_dir=.
  5795. for ac_exec_ext in '' $ac_executable_extensions; do
  5796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5797. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5799. break 2
  5800. fi
  5801. done
  5802. done
  5803. IFS=$as_save_IFS
  5804. fi
  5805. fi
  5806. AR=$ac_cv_prog_AR
  5807. if test -n "$AR"; then
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5809. $as_echo "$AR" >&6; }
  5810. else
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5812. $as_echo "no" >&6; }
  5813. fi
  5814. test -n "$AR" && break
  5815. done
  5816. fi
  5817. if test -z "$AR"; then
  5818. ac_ct_AR=$AR
  5819. for ac_prog in ar gar
  5820. do
  5821. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5822. set dummy $ac_prog; ac_word=$2
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. $as_echo_n "checking for $ac_word... " >&6; }
  5825. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. if test -n "$ac_ct_AR"; then
  5829. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5830. else
  5831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5832. for as_dir in $PATH
  5833. do
  5834. IFS=$as_save_IFS
  5835. test -z "$as_dir" && as_dir=.
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5838. ac_cv_prog_ac_ct_AR="$ac_prog"
  5839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5848. if test -n "$ac_ct_AR"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5850. $as_echo "$ac_ct_AR" >&6; }
  5851. else
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. $as_echo "no" >&6; }
  5854. fi
  5855. test -n "$ac_ct_AR" && break
  5856. done
  5857. if test "x$ac_ct_AR" = x; then
  5858. AR=":"
  5859. else
  5860. case $cross_compiling:$ac_tool_warned in
  5861. yes:)
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5864. ac_tool_warned=yes ;;
  5865. esac
  5866. AR=$ac_ct_AR
  5867. fi
  5868. fi
  5869. if test -n "$ac_tool_prefix"; then
  5870. for ac_prog in sha1sum
  5871. do
  5872. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5873. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5875. $as_echo_n "checking for $ac_word... " >&6; }
  5876. if test "${ac_cv_prog_SHA1SUM+set}" = set; then :
  5877. $as_echo_n "(cached) " >&6
  5878. else
  5879. if test -n "$SHA1SUM"; then
  5880. ac_cv_prog_SHA1SUM="$SHA1SUM" # Let the user override the test.
  5881. else
  5882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5883. for as_dir in $PATH
  5884. do
  5885. IFS=$as_save_IFS
  5886. test -z "$as_dir" && as_dir=.
  5887. for ac_exec_ext in '' $ac_executable_extensions; do
  5888. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5889. ac_cv_prog_SHA1SUM="$ac_tool_prefix$ac_prog"
  5890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5891. break 2
  5892. fi
  5893. done
  5894. done
  5895. IFS=$as_save_IFS
  5896. fi
  5897. fi
  5898. SHA1SUM=$ac_cv_prog_SHA1SUM
  5899. if test -n "$SHA1SUM"; then
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
  5901. $as_echo "$SHA1SUM" >&6; }
  5902. else
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5904. $as_echo "no" >&6; }
  5905. fi
  5906. test -n "$SHA1SUM" && break
  5907. done
  5908. fi
  5909. if test -z "$SHA1SUM"; then
  5910. ac_ct_SHA1SUM=$SHA1SUM
  5911. for ac_prog in sha1sum
  5912. do
  5913. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5914. set dummy $ac_prog; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if test "${ac_cv_prog_ac_ct_SHA1SUM+set}" = set; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$ac_ct_SHA1SUM"; then
  5921. ac_cv_prog_ac_ct_SHA1SUM="$ac_ct_SHA1SUM" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5930. ac_cv_prog_ac_ct_SHA1SUM="$ac_prog"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. ac_ct_SHA1SUM=$ac_cv_prog_ac_ct_SHA1SUM
  5940. if test -n "$ac_ct_SHA1SUM"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SHA1SUM" >&5
  5942. $as_echo "$ac_ct_SHA1SUM" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. test -n "$ac_ct_SHA1SUM" && break
  5948. done
  5949. if test "x$ac_ct_SHA1SUM" = x; then
  5950. SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  5951. else
  5952. case $cross_compiling:$ac_tool_warned in
  5953. yes:)
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5956. ac_tool_warned=yes ;;
  5957. esac
  5958. SHA1SUM=$ac_ct_SHA1SUM
  5959. fi
  5960. fi
  5961. if test -n "$ac_tool_prefix"; then
  5962. for ac_prog in openssl
  5963. do
  5964. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5965. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5967. $as_echo_n "checking for $ac_word... " >&6; }
  5968. if test "${ac_cv_prog_OPENSSL+set}" = set; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. if test -n "$OPENSSL"; then
  5972. ac_cv_prog_OPENSSL="$OPENSSL" # Let the user override the test.
  5973. else
  5974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5975. for as_dir in $PATH
  5976. do
  5977. IFS=$as_save_IFS
  5978. test -z "$as_dir" && as_dir=.
  5979. for ac_exec_ext in '' $ac_executable_extensions; do
  5980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5981. ac_cv_prog_OPENSSL="$ac_tool_prefix$ac_prog"
  5982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5983. break 2
  5984. fi
  5985. done
  5986. done
  5987. IFS=$as_save_IFS
  5988. fi
  5989. fi
  5990. OPENSSL=$ac_cv_prog_OPENSSL
  5991. if test -n "$OPENSSL"; then
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  5993. $as_echo "$OPENSSL" >&6; }
  5994. else
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5996. $as_echo "no" >&6; }
  5997. fi
  5998. test -n "$OPENSSL" && break
  5999. done
  6000. fi
  6001. if test -z "$OPENSSL"; then
  6002. ac_ct_OPENSSL=$OPENSSL
  6003. for ac_prog in openssl
  6004. do
  6005. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6006. set dummy $ac_prog; ac_word=$2
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6008. $as_echo_n "checking for $ac_word... " >&6; }
  6009. if test "${ac_cv_prog_ac_ct_OPENSSL+set}" = set; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test -n "$ac_ct_OPENSSL"; then
  6013. ac_cv_prog_ac_ct_OPENSSL="$ac_ct_OPENSSL" # Let the user override the test.
  6014. else
  6015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6016. for as_dir in $PATH
  6017. do
  6018. IFS=$as_save_IFS
  6019. test -z "$as_dir" && as_dir=.
  6020. for ac_exec_ext in '' $ac_executable_extensions; do
  6021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6022. ac_cv_prog_ac_ct_OPENSSL="$ac_prog"
  6023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6024. break 2
  6025. fi
  6026. done
  6027. done
  6028. IFS=$as_save_IFS
  6029. fi
  6030. fi
  6031. ac_ct_OPENSSL=$ac_cv_prog_ac_ct_OPENSSL
  6032. if test -n "$ac_ct_OPENSSL"; then
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OPENSSL" >&5
  6034. $as_echo "$ac_ct_OPENSSL" >&6; }
  6035. else
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6037. $as_echo "no" >&6; }
  6038. fi
  6039. test -n "$ac_ct_OPENSSL" && break
  6040. done
  6041. if test "x$ac_ct_OPENSSL" = x; then
  6042. OPENSSL=":"
  6043. else
  6044. case $cross_compiling:$ac_tool_warned in
  6045. yes:)
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6047. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6048. ac_tool_warned=yes ;;
  6049. esac
  6050. OPENSSL=$ac_ct_OPENSSL
  6051. fi
  6052. fi
  6053. GNU_LD=0
  6054. if test "x$with_gnu_ld" = "xyes" ; then
  6055. GNU_LD=1
  6056. fi
  6057. # Extract the first word of "bison", so it can be a program name with args.
  6058. set dummy bison; ac_word=$2
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6060. $as_echo_n "checking for $ac_word... " >&6; }
  6061. if test "${ac_cv_path_BISON+set}" = set; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. case $BISON in
  6065. [\\/]* | ?:[\\/]*)
  6066. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  6067. ;;
  6068. *)
  6069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6070. for as_dir in $PATH
  6071. do
  6072. IFS=$as_save_IFS
  6073. test -z "$as_dir" && as_dir=.
  6074. for ac_exec_ext in '' $ac_executable_extensions; do
  6075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6076. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6078. break 2
  6079. fi
  6080. done
  6081. done
  6082. IFS=$as_save_IFS
  6083. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6084. ;;
  6085. esac
  6086. fi
  6087. BISON=$ac_cv_path_BISON
  6088. if test -n "$BISON"; then
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6090. $as_echo "$BISON" >&6; }
  6091. else
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6093. $as_echo "no" >&6; }
  6094. fi
  6095. # Extract the first word of "cmp", so it can be a program name with args.
  6096. set dummy cmp; ac_word=$2
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6098. $as_echo_n "checking for $ac_word... " >&6; }
  6099. if test "${ac_cv_path_CMP+set}" = set; then :
  6100. $as_echo_n "(cached) " >&6
  6101. else
  6102. case $CMP in
  6103. [\\/]* | ?:[\\/]*)
  6104. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6105. ;;
  6106. *)
  6107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6108. for as_dir in $PATH
  6109. do
  6110. IFS=$as_save_IFS
  6111. test -z "$as_dir" && as_dir=.
  6112. for ac_exec_ext in '' $ac_executable_extensions; do
  6113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6114. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6116. break 2
  6117. fi
  6118. done
  6119. done
  6120. IFS=$as_save_IFS
  6121. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6122. ;;
  6123. esac
  6124. fi
  6125. CMP=$ac_cv_path_CMP
  6126. if test -n "$CMP"; then
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
  6128. $as_echo "$CMP" >&6; }
  6129. else
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6131. $as_echo "no" >&6; }
  6132. fi
  6133. # Extract the first word of "flex", so it can be a program name with args.
  6134. set dummy flex; ac_word=$2
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6136. $as_echo_n "checking for $ac_word... " >&6; }
  6137. if test "${ac_cv_path_FLEX+set}" = set; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. case $FLEX in
  6141. [\\/]* | ?:[\\/]*)
  6142. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6143. ;;
  6144. *)
  6145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6146. for as_dir in $PATH
  6147. do
  6148. IFS=$as_save_IFS
  6149. test -z "$as_dir" && as_dir=.
  6150. for ac_exec_ext in '' $ac_executable_extensions; do
  6151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6152. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6154. break 2
  6155. fi
  6156. done
  6157. done
  6158. IFS=$as_save_IFS
  6159. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6160. ;;
  6161. esac
  6162. fi
  6163. FLEX=$ac_cv_path_FLEX
  6164. if test -n "$FLEX"; then
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6166. $as_echo "$FLEX" >&6; }
  6167. else
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6169. $as_echo "no" >&6; }
  6170. fi
  6171. # Extract the first word of "grep", so it can be a program name with args.
  6172. set dummy grep; ac_word=$2
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6174. $as_echo_n "checking for $ac_word... " >&6; }
  6175. if test "${ac_cv_path_GREP+set}" = set; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. case $GREP in
  6179. [\\/]* | ?:[\\/]*)
  6180. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6181. ;;
  6182. *)
  6183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6184. for as_dir in $PATH
  6185. do
  6186. IFS=$as_save_IFS
  6187. test -z "$as_dir" && as_dir=.
  6188. for ac_exec_ext in '' $ac_executable_extensions; do
  6189. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6190. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6192. break 2
  6193. fi
  6194. done
  6195. done
  6196. IFS=$as_save_IFS
  6197. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6198. ;;
  6199. esac
  6200. fi
  6201. GREP=$ac_cv_path_GREP
  6202. if test -n "$GREP"; then
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  6204. $as_echo "$GREP" >&6; }
  6205. else
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6207. $as_echo "no" >&6; }
  6208. fi
  6209. # Extract the first word of "find", so it can be a program name with args.
  6210. set dummy find; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if test "${ac_cv_path_FIND+set}" = set; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. case $FIND in
  6217. [\\/]* | ?:[\\/]*)
  6218. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6219. ;;
  6220. *)
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6228. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6236. ;;
  6237. esac
  6238. fi
  6239. FIND=$ac_cv_path_FIND
  6240. if test -n "$FIND"; then
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  6242. $as_echo "$FIND" >&6; }
  6243. else
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6245. $as_echo "no" >&6; }
  6246. fi
  6247. # Extract the first word of "compress", so it can be a program name with args.
  6248. set dummy compress; ac_word=$2
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. $as_echo_n "checking for $ac_word... " >&6; }
  6251. if test "${ac_cv_path_COMPRESS+set}" = set; then :
  6252. $as_echo_n "(cached) " >&6
  6253. else
  6254. case $COMPRESS in
  6255. [\\/]* | ?:[\\/]*)
  6256. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  6257. ;;
  6258. *)
  6259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6260. for as_dir in $PATH
  6261. do
  6262. IFS=$as_save_IFS
  6263. test -z "$as_dir" && as_dir=.
  6264. for ac_exec_ext in '' $ac_executable_extensions; do
  6265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6266. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  6267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6268. break 2
  6269. fi
  6270. done
  6271. done
  6272. IFS=$as_save_IFS
  6273. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  6274. ;;
  6275. esac
  6276. fi
  6277. COMPRESS=$ac_cv_path_COMPRESS
  6278. if test -n "$COMPRESS"; then
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
  6280. $as_echo "$COMPRESS" >&6; }
  6281. else
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6283. $as_echo "no" >&6; }
  6284. fi
  6285. # Extract the first word of "basename", so it can be a program name with args.
  6286. set dummy basename; ac_word=$2
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6288. $as_echo_n "checking for $ac_word... " >&6; }
  6289. if test "${ac_cv_path_BASENAME+set}" = set; then :
  6290. $as_echo_n "(cached) " >&6
  6291. else
  6292. case $BASENAME in
  6293. [\\/]* | ?:[\\/]*)
  6294. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  6295. ;;
  6296. *)
  6297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6298. for as_dir in $PATH
  6299. do
  6300. IFS=$as_save_IFS
  6301. test -z "$as_dir" && as_dir=.
  6302. for ac_exec_ext in '' $ac_executable_extensions; do
  6303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6304. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  6305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6306. break 2
  6307. fi
  6308. done
  6309. done
  6310. IFS=$as_save_IFS
  6311. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  6312. ;;
  6313. esac
  6314. fi
  6315. BASENAME=$ac_cv_path_BASENAME
  6316. if test -n "$BASENAME"; then
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  6318. $as_echo "$BASENAME" >&6; }
  6319. else
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6321. $as_echo "no" >&6; }
  6322. fi
  6323. # Extract the first word of "dirname", so it can be a program name with args.
  6324. set dummy dirname; ac_word=$2
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6326. $as_echo_n "checking for $ac_word... " >&6; }
  6327. if test "${ac_cv_path_DIRNAME+set}" = set; then :
  6328. $as_echo_n "(cached) " >&6
  6329. else
  6330. case $DIRNAME in
  6331. [\\/]* | ?:[\\/]*)
  6332. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  6333. ;;
  6334. *)
  6335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6336. for as_dir in $PATH
  6337. do
  6338. IFS=$as_save_IFS
  6339. test -z "$as_dir" && as_dir=.
  6340. for ac_exec_ext in '' $ac_executable_extensions; do
  6341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6342. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6344. break 2
  6345. fi
  6346. done
  6347. done
  6348. IFS=$as_save_IFS
  6349. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  6350. ;;
  6351. esac
  6352. fi
  6353. DIRNAME=$ac_cv_path_DIRNAME
  6354. if test -n "$DIRNAME"; then
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
  6356. $as_echo "$DIRNAME" >&6; }
  6357. else
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6359. $as_echo "no" >&6; }
  6360. fi
  6361. # Extract the first word of "sh", so it can be a program name with args.
  6362. set dummy sh; ac_word=$2
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6364. $as_echo_n "checking for $ac_word... " >&6; }
  6365. if test "${ac_cv_path_SHELL+set}" = set; then :
  6366. $as_echo_n "(cached) " >&6
  6367. else
  6368. case $SHELL in
  6369. [\\/]* | ?:[\\/]*)
  6370. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  6371. ;;
  6372. *)
  6373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6374. for as_dir in $PATH
  6375. do
  6376. IFS=$as_save_IFS
  6377. test -z "$as_dir" && as_dir=.
  6378. for ac_exec_ext in '' $ac_executable_extensions; do
  6379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6380. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  6381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6382. break 2
  6383. fi
  6384. done
  6385. done
  6386. IFS=$as_save_IFS
  6387. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  6388. ;;
  6389. esac
  6390. fi
  6391. SHELL=$ac_cv_path_SHELL
  6392. if test -n "$SHELL"; then
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
  6394. $as_echo "$SHELL" >&6; }
  6395. else
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6397. $as_echo "no" >&6; }
  6398. fi
  6399. # Extract the first word of "ln", so it can be a program name with args.
  6400. set dummy ln; ac_word=$2
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6402. $as_echo_n "checking for $ac_word... " >&6; }
  6403. if test "${ac_cv_path_LN+set}" = set; then :
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. case $LN in
  6407. [\\/]* | ?:[\\/]*)
  6408. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6409. ;;
  6410. *)
  6411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6412. for as_dir in $PATH
  6413. do
  6414. IFS=$as_save_IFS
  6415. test -z "$as_dir" && as_dir=.
  6416. for ac_exec_ext in '' $ac_executable_extensions; do
  6417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6418. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6420. break 2
  6421. fi
  6422. done
  6423. done
  6424. IFS=$as_save_IFS
  6425. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  6426. ;;
  6427. esac
  6428. fi
  6429. LN=$ac_cv_path_LN
  6430. if test -n "$LN"; then
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  6432. $as_echo "$LN" >&6; }
  6433. else
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6435. $as_echo "no" >&6; }
  6436. fi
  6437. # Extract the first word of "dot", so it can be a program name with args.
  6438. set dummy dot; ac_word=$2
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6440. $as_echo_n "checking for $ac_word... " >&6; }
  6441. if test "${ac_cv_path_DOT+set}" = set; then :
  6442. $as_echo_n "(cached) " >&6
  6443. else
  6444. case $DOT in
  6445. [\\/]* | ?:[\\/]*)
  6446. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6447. ;;
  6448. *)
  6449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6450. for as_dir in $PATH
  6451. do
  6452. IFS=$as_save_IFS
  6453. test -z "$as_dir" && as_dir=.
  6454. for ac_exec_ext in '' $ac_executable_extensions; do
  6455. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6456. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6458. break 2
  6459. fi
  6460. done
  6461. done
  6462. IFS=$as_save_IFS
  6463. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  6464. ;;
  6465. esac
  6466. fi
  6467. DOT=$ac_cv_path_DOT
  6468. if test -n "$DOT"; then
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  6470. $as_echo "$DOT" >&6; }
  6471. else
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6473. $as_echo "no" >&6; }
  6474. fi
  6475. # Extract the first word of "wget", so it can be a program name with args.
  6476. set dummy wget; ac_word=$2
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6478. $as_echo_n "checking for $ac_word... " >&6; }
  6479. if test "${ac_cv_path_WGET+set}" = set; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. case $WGET in
  6483. [\\/]* | ?:[\\/]*)
  6484. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  6485. ;;
  6486. *)
  6487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6488. for as_dir in $PATH
  6489. do
  6490. IFS=$as_save_IFS
  6491. test -z "$as_dir" && as_dir=.
  6492. for ac_exec_ext in '' $ac_executable_extensions; do
  6493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6494. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  6495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6496. break 2
  6497. fi
  6498. done
  6499. done
  6500. IFS=$as_save_IFS
  6501. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  6502. ;;
  6503. esac
  6504. fi
  6505. WGET=$ac_cv_path_WGET
  6506. if test -n "$WGET"; then
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
  6508. $as_echo "$WGET" >&6; }
  6509. else
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6511. $as_echo "no" >&6; }
  6512. fi
  6513. # Extract the first word of "curl", so it can be a program name with args.
  6514. set dummy curl; ac_word=$2
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6516. $as_echo_n "checking for $ac_word... " >&6; }
  6517. if test "${ac_cv_path_CURL+set}" = set; then :
  6518. $as_echo_n "(cached) " >&6
  6519. else
  6520. case $CURL in
  6521. [\\/]* | ?:[\\/]*)
  6522. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  6523. ;;
  6524. *)
  6525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6526. for as_dir in $PATH
  6527. do
  6528. IFS=$as_save_IFS
  6529. test -z "$as_dir" && as_dir=.
  6530. for ac_exec_ext in '' $ac_executable_extensions; do
  6531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6532. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  6533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6534. break 2
  6535. fi
  6536. done
  6537. done
  6538. IFS=$as_save_IFS
  6539. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  6540. ;;
  6541. esac
  6542. fi
  6543. CURL=$ac_cv_path_CURL
  6544. if test -n "$CURL"; then
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
  6546. $as_echo "$CURL" >&6; }
  6547. else
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6549. $as_echo "no" >&6; }
  6550. fi
  6551. # Extract the first word of "rubber", so it can be a program name with args.
  6552. set dummy rubber; ac_word=$2
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6554. $as_echo_n "checking for $ac_word... " >&6; }
  6555. if test "${ac_cv_path_RUBBER+set}" = set; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. case $RUBBER in
  6559. [\\/]* | ?:[\\/]*)
  6560. ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
  6561. ;;
  6562. *)
  6563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6564. for as_dir in $PATH
  6565. do
  6566. IFS=$as_save_IFS
  6567. test -z "$as_dir" && as_dir=.
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6570. ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
  6571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6572. break 2
  6573. fi
  6574. done
  6575. done
  6576. IFS=$as_save_IFS
  6577. test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
  6578. ;;
  6579. esac
  6580. fi
  6581. RUBBER=$ac_cv_path_RUBBER
  6582. if test -n "$RUBBER"; then
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBBER" >&5
  6584. $as_echo "$RUBBER" >&6; }
  6585. else
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6587. $as_echo "no" >&6; }
  6588. fi
  6589. # Extract the first word of "catdvi", so it can be a program name with args.
  6590. set dummy catdvi; ac_word=$2
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6592. $as_echo_n "checking for $ac_word... " >&6; }
  6593. if test "${ac_cv_path_CATDVI+set}" = set; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. case $CATDVI in
  6597. [\\/]* | ?:[\\/]*)
  6598. ac_cv_path_CATDVI="$CATDVI" # Let the user override the test with a path.
  6599. ;;
  6600. *)
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6608. ac_cv_path_CATDVI="$as_dir/$ac_word$ac_exec_ext"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. test -z "$ac_cv_path_CATDVI" && ac_cv_path_CATDVI=":"
  6616. ;;
  6617. esac
  6618. fi
  6619. CATDVI=$ac_cv_path_CATDVI
  6620. if test -n "$CATDVI"; then
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CATDVI" >&5
  6622. $as_echo "$CATDVI" >&6; }
  6623. else
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6625. $as_echo "no" >&6; }
  6626. fi
  6627. # Extract the first word of "kpsewhich", so it can be a program name with args.
  6628. set dummy kpsewhich; ac_word=$2
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6630. $as_echo_n "checking for $ac_word... " >&6; }
  6631. if test "${ac_cv_path_KPATHSEA+set}" = set; then :
  6632. $as_echo_n "(cached) " >&6
  6633. else
  6634. case $KPATHSEA in
  6635. [\\/]* | ?:[\\/]*)
  6636. ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
  6637. ;;
  6638. *)
  6639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6640. for as_dir in $PATH
  6641. do
  6642. IFS=$as_save_IFS
  6643. test -z "$as_dir" && as_dir=.
  6644. for ac_exec_ext in '' $ac_executable_extensions; do
  6645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6646. ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
  6647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6648. break 2
  6649. fi
  6650. done
  6651. done
  6652. IFS=$as_save_IFS
  6653. test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
  6654. ;;
  6655. esac
  6656. fi
  6657. KPATHSEA=$ac_cv_path_KPATHSEA
  6658. if test -n "$KPATHSEA"; then
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPATHSEA" >&5
  6660. $as_echo "$KPATHSEA" >&6; }
  6661. else
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6663. $as_echo "no" >&6; }
  6664. fi
  6665. # Extract the first word of "xmllint", so it can be a program name with args.
  6666. set dummy xmllint; ac_word=$2
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6668. $as_echo_n "checking for $ac_word... " >&6; }
  6669. if test "${ac_cv_path_XMLLINT+set}" = set; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. case $XMLLINT in
  6673. [\\/]* | ?:[\\/]*)
  6674. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  6675. ;;
  6676. *)
  6677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6678. for as_dir in $PATH
  6679. do
  6680. IFS=$as_save_IFS
  6681. test -z "$as_dir" && as_dir=.
  6682. for ac_exec_ext in '' $ac_executable_extensions; do
  6683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6684. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  6685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6686. break 2
  6687. fi
  6688. done
  6689. done
  6690. IFS=$as_save_IFS
  6691. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  6692. ;;
  6693. esac
  6694. fi
  6695. XMLLINT=$ac_cv_path_XMLLINT
  6696. if test -n "$XMLLINT"; then
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  6698. $as_echo "$XMLLINT" >&6; }
  6699. else
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6701. $as_echo "no" >&6; }
  6702. fi
  6703. # Extract the first word of "xmlstarlet", so it can be a program name with args.
  6704. set dummy xmlstarlet; ac_word=$2
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6706. $as_echo_n "checking for $ac_word... " >&6; }
  6707. if test "${ac_cv_path_XMLSTARLET+set}" = set; then :
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. case $XMLSTARLET in
  6711. [\\/]* | ?:[\\/]*)
  6712. ac_cv_path_XMLSTARLET="$XMLSTARLET" # Let the user override the test with a path.
  6713. ;;
  6714. *)
  6715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6716. for as_dir in $PATH
  6717. do
  6718. IFS=$as_save_IFS
  6719. test -z "$as_dir" && as_dir=.
  6720. for ac_exec_ext in '' $ac_executable_extensions; do
  6721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6722. ac_cv_path_XMLSTARLET="$as_dir/$ac_word$ac_exec_ext"
  6723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6724. break 2
  6725. fi
  6726. done
  6727. done
  6728. IFS=$as_save_IFS
  6729. test -z "$ac_cv_path_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
  6730. ;;
  6731. esac
  6732. fi
  6733. XMLSTARLET=$ac_cv_path_XMLSTARLET
  6734. if test -n "$XMLSTARLET"; then
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSTARLET" >&5
  6736. $as_echo "$XMLSTARLET" >&6; }
  6737. else
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6739. $as_echo "no" >&6; }
  6740. fi
  6741. if test "${WGET}" != ":" ; then
  6742. DOWNLOAD=${WGET}
  6743. else if test "${CURL}" != ":" ; then
  6744. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  6745. else
  6746. # Extract the first word of "fetch", so it can be a program name with args.
  6747. set dummy fetch; ac_word=$2
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6749. $as_echo_n "checking for $ac_word... " >&6; }
  6750. if test "${ac_cv_path_FETCH+set}" = set; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. case $FETCH in
  6754. [\\/]* | ?:[\\/]*)
  6755. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  6756. ;;
  6757. *)
  6758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6759. for as_dir in $PATH
  6760. do
  6761. IFS=$as_save_IFS
  6762. test -z "$as_dir" && as_dir=.
  6763. for ac_exec_ext in '' $ac_executable_extensions; do
  6764. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6765. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  6766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6767. break 2
  6768. fi
  6769. done
  6770. done
  6771. IFS=$as_save_IFS
  6772. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  6773. ;;
  6774. esac
  6775. fi
  6776. FETCH=$ac_cv_path_FETCH
  6777. if test -n "$FETCH"; then
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
  6779. $as_echo "$FETCH" >&6; }
  6780. else
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6782. $as_echo "no" >&6; }
  6783. fi
  6784. DOWNLOAD=${FETCH}
  6785. fi
  6786. fi
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
  6788. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  6789. if test "${ac_cv_path_BISON2+set}" = set; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. if test "x$BISON" != "x:" ; then
  6793. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  6794. # Use mktemp if possible; otherwise fall back on mkdir,
  6795. # with $RANDOM to make collisions less likely.
  6796. : ${TMPDIR=/tmp}
  6797. {
  6798. tmp=`
  6799. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  6800. ` &&
  6801. test -n "$tmp" && test -d "$tmp"
  6802. } || {
  6803. tmp=$TMPDIR/foo$$-$RANDOM
  6804. (umask 077 && mkdir "$tmp")
  6805. } || exit $?
  6806. cat >$tmp/test.y <<__EOL__
  6807. %parse-param {struct parse_io *parseio}
  6808. %%
  6809. file : { \$\$ = parseio->pval = 1; }
  6810. ;
  6811. %%
  6812. __EOL__
  6813. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  6814. if test -e "${tmp}/test.tab.c"; then
  6815. ac_cv_path_BISON2=${BISON}
  6816. fi
  6817. rm -rf ${tmp}
  6818. fi
  6819. fi
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
  6821. $as_echo "$ac_cv_path_BISON2" >&6; }
  6822. if test "x${ac_cv_path_BISON2}" = "x" ; then
  6823. BISON=:
  6824. PBX_BISON=0
  6825. else
  6826. PBX_BISON=1
  6827. fi
  6828. if test "x${FLEX}" = "x:" ; then
  6829. PBX_FLEX=0
  6830. else
  6831. PBX_FLEX=1
  6832. fi
  6833. if test -n "$ac_tool_prefix"; then
  6834. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  6835. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6837. $as_echo_n "checking for $ac_word... " >&6; }
  6838. if test "${ac_cv_prog_SOXMIX+set}" = set; then :
  6839. $as_echo_n "(cached) " >&6
  6840. else
  6841. if test -n "$SOXMIX"; then
  6842. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  6843. else
  6844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6845. for as_dir in $PATH
  6846. do
  6847. IFS=$as_save_IFS
  6848. test -z "$as_dir" && as_dir=.
  6849. for ac_exec_ext in '' $ac_executable_extensions; do
  6850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6851. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  6852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6853. break 2
  6854. fi
  6855. done
  6856. done
  6857. IFS=$as_save_IFS
  6858. fi
  6859. fi
  6860. SOXMIX=$ac_cv_prog_SOXMIX
  6861. if test -n "$SOXMIX"; then
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
  6863. $as_echo "$SOXMIX" >&6; }
  6864. else
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6866. $as_echo "no" >&6; }
  6867. fi
  6868. fi
  6869. if test -z "$ac_cv_prog_SOXMIX"; then
  6870. ac_ct_SOXMIX=$SOXMIX
  6871. # Extract the first word of "soxmix", so it can be a program name with args.
  6872. set dummy soxmix; ac_word=$2
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6874. $as_echo_n "checking for $ac_word... " >&6; }
  6875. if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then :
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. if test -n "$ac_ct_SOXMIX"; then
  6879. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  6880. else
  6881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6882. for as_dir in $PATH
  6883. do
  6884. IFS=$as_save_IFS
  6885. test -z "$as_dir" && as_dir=.
  6886. for ac_exec_ext in '' $ac_executable_extensions; do
  6887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6888. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  6889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6890. break 2
  6891. fi
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. fi
  6896. fi
  6897. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  6898. if test -n "$ac_ct_SOXMIX"; then
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
  6900. $as_echo "$ac_ct_SOXMIX" >&6; }
  6901. else
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6903. $as_echo "no" >&6; }
  6904. fi
  6905. if test "x$ac_ct_SOXMIX" = x; then
  6906. SOXMIX=":"
  6907. else
  6908. case $cross_compiling:$ac_tool_warned in
  6909. yes:)
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6911. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6912. ac_tool_warned=yes ;;
  6913. esac
  6914. SOXMIX=$ac_ct_SOXMIX
  6915. fi
  6916. else
  6917. SOXMIX="$ac_cv_prog_SOXMIX"
  6918. fi
  6919. if test "${SOXMIX}" != ":" ; then
  6920. $as_echo "#define HAVE_SOXMIX 1" >>confdefs.h
  6921. fi
  6922. for ac_prog in md5 md5sum gmd5sum digest
  6923. do
  6924. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6925. set dummy $ac_prog; ac_word=$2
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6927. $as_echo_n "checking for $ac_word... " >&6; }
  6928. if test "${ac_cv_prog_MD5+set}" = set; then :
  6929. $as_echo_n "(cached) " >&6
  6930. else
  6931. if test -n "$MD5"; then
  6932. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  6933. else
  6934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6935. for as_dir in $PATH
  6936. do
  6937. IFS=$as_save_IFS
  6938. test -z "$as_dir" && as_dir=.
  6939. for ac_exec_ext in '' $ac_executable_extensions; do
  6940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6941. ac_cv_prog_MD5="$ac_prog"
  6942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6943. break 2
  6944. fi
  6945. done
  6946. done
  6947. IFS=$as_save_IFS
  6948. fi
  6949. fi
  6950. MD5=$ac_cv_prog_MD5
  6951. if test -n "$MD5"; then
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5" >&5
  6953. $as_echo "$MD5" >&6; }
  6954. else
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6956. $as_echo "no" >&6; }
  6957. fi
  6958. test -n "$MD5" && break
  6959. done
  6960. if test "${MD5}" = "digest" ; then
  6961. MD5="${MD5} -a md5"
  6962. fi
  6963. ac_ext=c
  6964. ac_cpp='$CPP $CPPFLAGS'
  6965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6968. acx_pthread_ok=no
  6969. # We used to check for pthread.h first, but this fails if pthread.h
  6970. # requires special compiler flags (e.g. on True64 or Sequent).
  6971. # It gets checked for in the link test anyway.
  6972. # First of all, check if the user has set any of the PTHREAD_LIBS,
  6973. # etcetera environment variables, and if threads linking works using
  6974. # them:
  6975. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  6976. save_CFLAGS="$CFLAGS"
  6977. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6978. save_LIBS="$LIBS"
  6979. LIBS="$PTHREAD_LIBS $LIBS"
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  6981. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  6982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6983. /* end confdefs.h. */
  6984. /* Override any GCC internal prototype to avoid an error.
  6985. Use char because int might match the return type of a GCC
  6986. builtin and then its argument prototype would still apply. */
  6987. #ifdef __cplusplus
  6988. extern "C"
  6989. #endif
  6990. char pthread_join ();
  6991. int
  6992. main ()
  6993. {
  6994. return pthread_join ();
  6995. ;
  6996. return 0;
  6997. }
  6998. _ACEOF
  6999. if ac_fn_c_try_link "$LINENO"; then :
  7000. acx_pthread_ok=yes
  7001. fi
  7002. rm -f core conftest.err conftest.$ac_objext \
  7003. conftest$ac_exeext conftest.$ac_ext
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7005. $as_echo "$acx_pthread_ok" >&6; }
  7006. if test x"$acx_pthread_ok" = xno; then
  7007. PTHREAD_LIBS=""
  7008. PTHREAD_CFLAGS=""
  7009. fi
  7010. LIBS="$save_LIBS"
  7011. CFLAGS="$save_CFLAGS"
  7012. fi
  7013. # We must check for the threads library under a number of different
  7014. # names; the ordering is very important because some systems
  7015. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7016. # libraries is broken (non-POSIX).
  7017. # Create a list of thread flags to try. Items starting with a "-" are
  7018. # C compiler flags, and other items are library names, except for "none"
  7019. # which indicates that we try without any flags at all, and "pthread-config"
  7020. # which is a program returning the flags for the Pth emulation library.
  7021. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7022. # The ordering *is* (sometimes) important. Some notes on the
  7023. # individual items follow:
  7024. # pthreads: AIX (must check this before -lpthread)
  7025. # none: in case threads are in libc; should be tried before -Kthread and
  7026. # other compiler flags to prevent continual compiler warnings
  7027. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7028. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7029. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7030. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7031. # -pthreads: Solaris/gcc
  7032. # -mthreads: Mingw32/gcc, Lynx/gcc
  7033. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7034. # doesn't hurt to check since this sometimes defines pthreads too;
  7035. # also defines -D_REENTRANT)
  7036. # ... -mt is also the pthreads flag for HP/aCC
  7037. # pthread: Linux, etcetera
  7038. # --thread-safe: KAI C++
  7039. # pthread-config: use pthread-config program (for GNU Pth library)
  7040. case "${host_cpu}-${host_os}" in
  7041. *solaris*)
  7042. # On Solaris (at least, for some versions), libc contains stubbed
  7043. # (non-functional) versions of the pthreads routines, so link-based
  7044. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  7045. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  7046. # a function called by this macro, so we could check for that, but
  7047. # who knows whether they'll stub that too in a future libc.) So,
  7048. # we'll just look for -pthreads and -lpthread first:
  7049. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  7050. ;;
  7051. esac
  7052. if test x"$acx_pthread_ok" = xno; then
  7053. for flag in $acx_pthread_flags; do
  7054. case $flag in
  7055. none)
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7057. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7058. ;;
  7059. -*)
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  7061. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7062. PTHREAD_CFLAGS="$flag"
  7063. ;;
  7064. pthread-config)
  7065. # Extract the first word of "pthread-config", so it can be a program name with args.
  7066. set dummy pthread-config; ac_word=$2
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7068. $as_echo_n "checking for $ac_word... " >&6; }
  7069. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. if test -n "$acx_pthread_config"; then
  7073. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7074. else
  7075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7076. for as_dir in $PATH
  7077. do
  7078. IFS=$as_save_IFS
  7079. test -z "$as_dir" && as_dir=.
  7080. for ac_exec_ext in '' $ac_executable_extensions; do
  7081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7082. ac_cv_prog_acx_pthread_config="yes"
  7083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7084. break 2
  7085. fi
  7086. done
  7087. done
  7088. IFS=$as_save_IFS
  7089. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7090. fi
  7091. fi
  7092. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7093. if test -n "$acx_pthread_config"; then
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  7095. $as_echo "$acx_pthread_config" >&6; }
  7096. else
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7098. $as_echo "no" >&6; }
  7099. fi
  7100. if test x"$acx_pthread_config" = xno; then continue; fi
  7101. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7102. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7103. ;;
  7104. *)
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  7106. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7107. PTHREAD_LIBS="-l$flag"
  7108. ;;
  7109. esac
  7110. save_LIBS="$LIBS"
  7111. save_CFLAGS="$CFLAGS"
  7112. LIBS="$PTHREAD_LIBS $LIBS"
  7113. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7114. # Check for various functions. We must include pthread.h,
  7115. # since some functions may be macros. (On the Sequent, we
  7116. # need a special flag -Kthread to make this header compile.)
  7117. # We check for pthread_join because it is in -lpthread on IRIX
  7118. # while pthread_create is in libc. We check for pthread_attr_init
  7119. # due to DEC craziness with -lpthreads. We check for
  7120. # pthread_cleanup_push because it is one of the few pthread
  7121. # functions on Solaris that doesn't have a non-functional libc stub.
  7122. # We try pthread_create on general principles.
  7123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7124. /* end confdefs.h. */
  7125. #include <pthread.h>
  7126. int
  7127. main ()
  7128. {
  7129. pthread_t th; pthread_join(th, 0);
  7130. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7131. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7132. ;
  7133. return 0;
  7134. }
  7135. _ACEOF
  7136. if ac_fn_c_try_link "$LINENO"; then :
  7137. acx_pthread_ok=yes
  7138. fi
  7139. rm -f core conftest.err conftest.$ac_objext \
  7140. conftest$ac_exeext conftest.$ac_ext
  7141. LIBS="$save_LIBS"
  7142. CFLAGS="$save_CFLAGS"
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7144. $as_echo "$acx_pthread_ok" >&6; }
  7145. if test "x$acx_pthread_ok" = xyes; then
  7146. break;
  7147. fi
  7148. PTHREAD_LIBS=""
  7149. PTHREAD_CFLAGS=""
  7150. done
  7151. fi
  7152. # Various other checks:
  7153. if test "x$acx_pthread_ok" = xyes; then
  7154. save_LIBS="$LIBS"
  7155. LIBS="$PTHREAD_LIBS $LIBS"
  7156. save_CFLAGS="$CFLAGS"
  7157. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7158. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7160. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7161. attr_name=unknown
  7162. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7164. /* end confdefs.h. */
  7165. #include <pthread.h>
  7166. int
  7167. main ()
  7168. {
  7169. int attr=$attr; return attr;
  7170. ;
  7171. return 0;
  7172. }
  7173. _ACEOF
  7174. if ac_fn_c_try_link "$LINENO"; then :
  7175. attr_name=$attr; break
  7176. fi
  7177. rm -f core conftest.err conftest.$ac_objext \
  7178. conftest$ac_exeext conftest.$ac_ext
  7179. done
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  7181. $as_echo "$attr_name" >&6; }
  7182. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  7183. cat >>confdefs.h <<_ACEOF
  7184. #define PTHREAD_CREATE_JOINABLE $attr_name
  7185. _ACEOF
  7186. fi
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  7188. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  7189. flag=no
  7190. case "${host_cpu}-${host_os}" in
  7191. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  7192. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  7193. esac
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  7195. $as_echo "${flag}" >&6; }
  7196. if test "x$flag" != xno; then
  7197. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  7198. fi
  7199. LIBS="$save_LIBS"
  7200. CFLAGS="$save_CFLAGS"
  7201. # More AIX lossage: must compile with xlc_r or cc_r
  7202. if test x"$GCC" != xyes; then
  7203. for ac_prog in xlc_r cc_r
  7204. do
  7205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7206. set dummy $ac_prog; ac_word=$2
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7208. $as_echo_n "checking for $ac_word... " >&6; }
  7209. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  7210. $as_echo_n "(cached) " >&6
  7211. else
  7212. if test -n "$PTHREAD_CC"; then
  7213. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7214. else
  7215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7216. for as_dir in $PATH
  7217. do
  7218. IFS=$as_save_IFS
  7219. test -z "$as_dir" && as_dir=.
  7220. for ac_exec_ext in '' $ac_executable_extensions; do
  7221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7222. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7224. break 2
  7225. fi
  7226. done
  7227. done
  7228. IFS=$as_save_IFS
  7229. fi
  7230. fi
  7231. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7232. if test -n "$PTHREAD_CC"; then
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7234. $as_echo "$PTHREAD_CC" >&6; }
  7235. else
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7237. $as_echo "no" >&6; }
  7238. fi
  7239. test -n "$PTHREAD_CC" && break
  7240. done
  7241. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  7242. else
  7243. PTHREAD_CC=$CC
  7244. fi
  7245. else
  7246. PTHREAD_CC="$CC"
  7247. fi
  7248. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7249. if test x"$acx_pthread_ok" = xyes; then
  7250. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  7251. :
  7252. else
  7253. acx_pthread_ok=no
  7254. fi
  7255. ac_ext=c
  7256. ac_cpp='$CPP $CPPFLAGS'
  7257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7260. ac_ext=c
  7261. ac_cpp='$CPP $CPPFLAGS'
  7262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7265. # Check whether --enable-dev-mode was given.
  7266. if test "${enable_dev_mode+set}" = set; then :
  7267. enableval=$enable_dev_mode; case "${enableval}" in
  7268. y|ye|yes) AST_DEVMODE=yes ;;
  7269. n|no) AST_DEVMODE=no ;;
  7270. noisy)
  7271. AST_DEVMODE=yes
  7272. NOISY_BUILD=yes
  7273. ;;
  7274. *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
  7275. esac
  7276. fi
  7277. AST_CODE_COVERAGE=no
  7278. # Check whether --enable-coverage was given.
  7279. if test "${enable_coverage+set}" = set; then :
  7280. enableval=$enable_coverage; case "${enableval}" in
  7281. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  7282. n|no) AST_CODE_COVERAGE=no ;;
  7283. *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;;
  7284. esac
  7285. fi
  7286. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  7287. # various packages.
  7288. # $1 is the prefix for the variables in makeopts and autoconfig.h
  7289. # $2 is the short comment, $4 is the long comment
  7290. # $3 is the name used in --with- or --without- flags for configure.
  7291. #
  7292. # Package option names should be in alphabetical order
  7293. # by the --with option name (the third field),
  7294. # to make things easier for the users.
  7295. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  7296. ALSA_OPTION="asound"
  7297. PBX_ALSA=0
  7298. # Check whether --with-asound was given.
  7299. if test "${with_asound+set}" = set; then :
  7300. withval=$with_asound;
  7301. case ${withval} in
  7302. n|no)
  7303. USE_ALSA=no
  7304. # -1 is a magic value used by menuselect to know that the package
  7305. # was disabled, other than 'not found'
  7306. PBX_ALSA=-1
  7307. ;;
  7308. y|ye|yes)
  7309. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7310. ;;
  7311. *)
  7312. ALSA_DIR="${withval}"
  7313. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7314. ;;
  7315. esac
  7316. fi
  7317. BFD_DESCRIP="Debug symbol decoding"
  7318. BFD_OPTION="bfd"
  7319. PBX_BFD=0
  7320. # Check whether --with-bfd was given.
  7321. if test "${with_bfd+set}" = set; then :
  7322. withval=$with_bfd;
  7323. case ${withval} in
  7324. n|no)
  7325. USE_BFD=no
  7326. # -1 is a magic value used by menuselect to know that the package
  7327. # was disabled, other than 'not found'
  7328. PBX_BFD=-1
  7329. ;;
  7330. y|ye|yes)
  7331. ac_mandatory_list="${ac_mandatory_list} BFD"
  7332. ;;
  7333. *)
  7334. BFD_DIR="${withval}"
  7335. ac_mandatory_list="${ac_mandatory_list} BFD"
  7336. ;;
  7337. esac
  7338. fi
  7339. # BKTR is used for backtrace support on platforms that do not
  7340. # have it natively.
  7341. BKTR_DESCRIP="Stack Backtrace"
  7342. BKTR_OPTION="execinfo"
  7343. PBX_BKTR=0
  7344. # Check whether --with-execinfo was given.
  7345. if test "${with_execinfo+set}" = set; then :
  7346. withval=$with_execinfo;
  7347. case ${withval} in
  7348. n|no)
  7349. USE_BKTR=no
  7350. # -1 is a magic value used by menuselect to know that the package
  7351. # was disabled, other than 'not found'
  7352. PBX_BKTR=-1
  7353. ;;
  7354. y|ye|yes)
  7355. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7356. ;;
  7357. *)
  7358. BKTR_DIR="${withval}"
  7359. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7360. ;;
  7361. esac
  7362. fi
  7363. BLUETOOTH_DESCRIP="Bluetooth"
  7364. BLUETOOTH_OPTION="bluetooth"
  7365. PBX_BLUETOOTH=0
  7366. # Check whether --with-bluetooth was given.
  7367. if test "${with_bluetooth+set}" = set; then :
  7368. withval=$with_bluetooth;
  7369. case ${withval} in
  7370. n|no)
  7371. USE_BLUETOOTH=no
  7372. # -1 is a magic value used by menuselect to know that the package
  7373. # was disabled, other than 'not found'
  7374. PBX_BLUETOOTH=-1
  7375. ;;
  7376. y|ye|yes)
  7377. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7378. ;;
  7379. *)
  7380. BLUETOOTH_DIR="${withval}"
  7381. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7382. ;;
  7383. esac
  7384. fi
  7385. CAP_DESCRIP="POSIX 1.e capabilities"
  7386. CAP_OPTION="cap"
  7387. PBX_CAP=0
  7388. # Check whether --with-cap was given.
  7389. if test "${with_cap+set}" = set; then :
  7390. withval=$with_cap;
  7391. case ${withval} in
  7392. n|no)
  7393. USE_CAP=no
  7394. # -1 is a magic value used by menuselect to know that the package
  7395. # was disabled, other than 'not found'
  7396. PBX_CAP=-1
  7397. ;;
  7398. y|ye|yes)
  7399. ac_mandatory_list="${ac_mandatory_list} CAP"
  7400. ;;
  7401. *)
  7402. CAP_DIR="${withval}"
  7403. ac_mandatory_list="${ac_mandatory_list} CAP"
  7404. ;;
  7405. esac
  7406. fi
  7407. CURSES_DESCRIP="curses"
  7408. CURSES_OPTION="curses"
  7409. PBX_CURSES=0
  7410. # Check whether --with-curses was given.
  7411. if test "${with_curses+set}" = set; then :
  7412. withval=$with_curses;
  7413. case ${withval} in
  7414. n|no)
  7415. USE_CURSES=no
  7416. # -1 is a magic value used by menuselect to know that the package
  7417. # was disabled, other than 'not found'
  7418. PBX_CURSES=-1
  7419. ;;
  7420. y|ye|yes)
  7421. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7422. ;;
  7423. *)
  7424. CURSES_DIR="${withval}"
  7425. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7426. ;;
  7427. esac
  7428. fi
  7429. CRYPTO_DESCRIP="OpenSSL Cryptography"
  7430. CRYPTO_OPTION="crypto"
  7431. PBX_CRYPTO=0
  7432. # Check whether --with-crypto was given.
  7433. if test "${with_crypto+set}" = set; then :
  7434. withval=$with_crypto;
  7435. case ${withval} in
  7436. n|no)
  7437. USE_CRYPTO=no
  7438. # -1 is a magic value used by menuselect to know that the package
  7439. # was disabled, other than 'not found'
  7440. PBX_CRYPTO=-1
  7441. ;;
  7442. y|ye|yes)
  7443. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7444. ;;
  7445. *)
  7446. CRYPTO_DIR="${withval}"
  7447. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7448. ;;
  7449. esac
  7450. fi
  7451. DAHDI_DESCRIP="DAHDI"
  7452. DAHDI_OPTION="dahdi"
  7453. PBX_DAHDI=0
  7454. # Check whether --with-dahdi was given.
  7455. if test "${with_dahdi+set}" = set; then :
  7456. withval=$with_dahdi;
  7457. case ${withval} in
  7458. n|no)
  7459. USE_DAHDI=no
  7460. # -1 is a magic value used by menuselect to know that the package
  7461. # was disabled, other than 'not found'
  7462. PBX_DAHDI=-1
  7463. ;;
  7464. y|ye|yes)
  7465. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7466. ;;
  7467. *)
  7468. DAHDI_DIR="${withval}"
  7469. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7470. ;;
  7471. esac
  7472. fi
  7473. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  7474. FFMPEG_OPTION="avcodec"
  7475. PBX_FFMPEG=0
  7476. # Check whether --with-avcodec was given.
  7477. if test "${with_avcodec+set}" = set; then :
  7478. withval=$with_avcodec;
  7479. case ${withval} in
  7480. n|no)
  7481. USE_FFMPEG=no
  7482. # -1 is a magic value used by menuselect to know that the package
  7483. # was disabled, other than 'not found'
  7484. PBX_FFMPEG=-1
  7485. ;;
  7486. y|ye|yes)
  7487. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7488. ;;
  7489. *)
  7490. FFMPEG_DIR="${withval}"
  7491. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7492. ;;
  7493. esac
  7494. fi
  7495. GSM_DESCRIP="External GSM"
  7496. GSM_OPTION="gsm"
  7497. PBX_GSM=0
  7498. # Check whether --with-gsm was given.
  7499. if test "${with_gsm+set}" = set; then :
  7500. withval=$with_gsm;
  7501. case ${withval} in
  7502. n|no)
  7503. USE_GSM=no
  7504. # -1 is a magic value used by menuselect to know that the package
  7505. # was disabled, other than 'not found'
  7506. PBX_GSM=-1
  7507. ;;
  7508. y|ye|yes)
  7509. ac_mandatory_list="${ac_mandatory_list} GSM"
  7510. ;;
  7511. *)
  7512. GSM_DIR="${withval}"
  7513. ac_mandatory_list="${ac_mandatory_list} GSM"
  7514. ;;
  7515. esac
  7516. fi
  7517. GTK2_DESCRIP="gtk2"
  7518. GTK2_OPTION="gtk2"
  7519. PBX_GTK2=0
  7520. # Check whether --with-gtk2 was given.
  7521. if test "${with_gtk2+set}" = set; then :
  7522. withval=$with_gtk2;
  7523. case ${withval} in
  7524. n|no)
  7525. USE_GTK2=no
  7526. # -1 is a magic value used by menuselect to know that the package
  7527. # was disabled, other than 'not found'
  7528. PBX_GTK2=-1
  7529. ;;
  7530. y|ye|yes)
  7531. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7532. ;;
  7533. *)
  7534. GTK2_DIR="${withval}"
  7535. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7536. ;;
  7537. esac
  7538. fi
  7539. GMIME_DESCRIP="GMime"
  7540. GMIME_OPTION="gmime"
  7541. PBX_GMIME=0
  7542. # Check whether --with-gmime was given.
  7543. if test "${with_gmime+set}" = set; then :
  7544. withval=$with_gmime;
  7545. case ${withval} in
  7546. n|no)
  7547. USE_GMIME=no
  7548. # -1 is a magic value used by menuselect to know that the package
  7549. # was disabled, other than 'not found'
  7550. PBX_GMIME=-1
  7551. ;;
  7552. y|ye|yes)
  7553. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7554. ;;
  7555. *)
  7556. GMIME_DIR="${withval}"
  7557. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7558. ;;
  7559. esac
  7560. fi
  7561. OPENH323_DESCRIP="OpenH323"
  7562. OPENH323_OPTION="h323"
  7563. PBX_OPENH323=0
  7564. # Check whether --with-h323 was given.
  7565. if test "${with_h323+set}" = set; then :
  7566. withval=$with_h323;
  7567. case ${withval} in
  7568. n|no)
  7569. USE_OPENH323=no
  7570. # -1 is a magic value used by menuselect to know that the package
  7571. # was disabled, other than 'not found'
  7572. PBX_OPENH323=-1
  7573. ;;
  7574. y|ye|yes)
  7575. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7576. ;;
  7577. *)
  7578. OPENH323_DIR="${withval}"
  7579. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7580. ;;
  7581. esac
  7582. fi
  7583. HOARD_DESCRIP="Hoard Memory Allocator"
  7584. HOARD_OPTION="hoard"
  7585. PBX_HOARD=0
  7586. # Check whether --with-hoard was given.
  7587. if test "${with_hoard+set}" = set; then :
  7588. withval=$with_hoard;
  7589. case ${withval} in
  7590. n|no)
  7591. USE_HOARD=no
  7592. # -1 is a magic value used by menuselect to know that the package
  7593. # was disabled, other than 'not found'
  7594. PBX_HOARD=-1
  7595. ;;
  7596. y|ye|yes)
  7597. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7598. ;;
  7599. *)
  7600. HOARD_DIR="${withval}"
  7601. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7602. ;;
  7603. esac
  7604. fi
  7605. ICAL_DESCRIP="iCal"
  7606. ICAL_OPTION="ical"
  7607. PBX_ICAL=0
  7608. # Check whether --with-ical was given.
  7609. if test "${with_ical+set}" = set; then :
  7610. withval=$with_ical;
  7611. case ${withval} in
  7612. n|no)
  7613. USE_ICAL=no
  7614. # -1 is a magic value used by menuselect to know that the package
  7615. # was disabled, other than 'not found'
  7616. PBX_ICAL=-1
  7617. ;;
  7618. y|ye|yes)
  7619. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7620. ;;
  7621. *)
  7622. ICAL_DIR="${withval}"
  7623. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7624. ;;
  7625. esac
  7626. fi
  7627. ICONV_DESCRIP="Iconv"
  7628. ICONV_OPTION="iconv"
  7629. PBX_ICONV=0
  7630. # Check whether --with-iconv was given.
  7631. if test "${with_iconv+set}" = set; then :
  7632. withval=$with_iconv;
  7633. case ${withval} in
  7634. n|no)
  7635. USE_ICONV=no
  7636. # -1 is a magic value used by menuselect to know that the package
  7637. # was disabled, other than 'not found'
  7638. PBX_ICONV=-1
  7639. ;;
  7640. y|ye|yes)
  7641. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7642. ;;
  7643. *)
  7644. ICONV_DIR="${withval}"
  7645. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7646. ;;
  7647. esac
  7648. fi
  7649. IKSEMEL_DESCRIP="Iksemel Jabber"
  7650. IKSEMEL_OPTION="iksemel"
  7651. PBX_IKSEMEL=0
  7652. # Check whether --with-iksemel was given.
  7653. if test "${with_iksemel+set}" = set; then :
  7654. withval=$with_iksemel;
  7655. case ${withval} in
  7656. n|no)
  7657. USE_IKSEMEL=no
  7658. # -1 is a magic value used by menuselect to know that the package
  7659. # was disabled, other than 'not found'
  7660. PBX_IKSEMEL=-1
  7661. ;;
  7662. y|ye|yes)
  7663. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7664. ;;
  7665. *)
  7666. IKSEMEL_DIR="${withval}"
  7667. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7668. ;;
  7669. esac
  7670. fi
  7671. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  7672. IMAP_TK_OPTION="imap"
  7673. PBX_IMAP_TK=0
  7674. # Check whether --with-imap was given.
  7675. if test "${with_imap+set}" = set; then :
  7676. withval=$with_imap;
  7677. case ${withval} in
  7678. n|no)
  7679. USE_IMAP_TK=no
  7680. # -1 is a magic value used by menuselect to know that the package
  7681. # was disabled, other than 'not found'
  7682. PBX_IMAP_TK=-1
  7683. ;;
  7684. y|ye|yes)
  7685. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7686. ;;
  7687. *)
  7688. IMAP_TK_DIR="${withval}"
  7689. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7690. ;;
  7691. esac
  7692. fi
  7693. INOTIFY_DESCRIP="inotify support"
  7694. INOTIFY_OPTION="inotify"
  7695. PBX_INOTIFY=0
  7696. # Check whether --with-inotify was given.
  7697. if test "${with_inotify+set}" = set; then :
  7698. withval=$with_inotify;
  7699. case ${withval} in
  7700. n|no)
  7701. USE_INOTIFY=no
  7702. # -1 is a magic value used by menuselect to know that the package
  7703. # was disabled, other than 'not found'
  7704. PBX_INOTIFY=-1
  7705. ;;
  7706. y|ye|yes)
  7707. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7708. ;;
  7709. *)
  7710. INOTIFY_DIR="${withval}"
  7711. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7712. ;;
  7713. esac
  7714. fi
  7715. IODBC_DESCRIP="iODBC"
  7716. IODBC_OPTION="iodbc"
  7717. PBX_IODBC=0
  7718. # Check whether --with-iodbc was given.
  7719. if test "${with_iodbc+set}" = set; then :
  7720. withval=$with_iodbc;
  7721. case ${withval} in
  7722. n|no)
  7723. USE_IODBC=no
  7724. # -1 is a magic value used by menuselect to know that the package
  7725. # was disabled, other than 'not found'
  7726. PBX_IODBC=-1
  7727. ;;
  7728. y|ye|yes)
  7729. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7730. ;;
  7731. *)
  7732. IODBC_DIR="${withval}"
  7733. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7734. ;;
  7735. esac
  7736. fi
  7737. ISDNNET_DESCRIP="ISDN4Linux"
  7738. ISDNNET_OPTION="isdnnet"
  7739. PBX_ISDNNET=0
  7740. # Check whether --with-isdnnet was given.
  7741. if test "${with_isdnnet+set}" = set; then :
  7742. withval=$with_isdnnet;
  7743. case ${withval} in
  7744. n|no)
  7745. USE_ISDNNET=no
  7746. # -1 is a magic value used by menuselect to know that the package
  7747. # was disabled, other than 'not found'
  7748. PBX_ISDNNET=-1
  7749. ;;
  7750. y|ye|yes)
  7751. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7752. ;;
  7753. *)
  7754. ISDNNET_DIR="${withval}"
  7755. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7756. ;;
  7757. esac
  7758. fi
  7759. JACK_DESCRIP="Jack Audio Connection Kit"
  7760. JACK_OPTION="jack"
  7761. PBX_JACK=0
  7762. # Check whether --with-jack was given.
  7763. if test "${with_jack+set}" = set; then :
  7764. withval=$with_jack;
  7765. case ${withval} in
  7766. n|no)
  7767. USE_JACK=no
  7768. # -1 is a magic value used by menuselect to know that the package
  7769. # was disabled, other than 'not found'
  7770. PBX_JACK=-1
  7771. ;;
  7772. y|ye|yes)
  7773. ac_mandatory_list="${ac_mandatory_list} JACK"
  7774. ;;
  7775. *)
  7776. JACK_DIR="${withval}"
  7777. ac_mandatory_list="${ac_mandatory_list} JACK"
  7778. ;;
  7779. esac
  7780. fi
  7781. KQUEUE_DESCRIP="kqueue support"
  7782. KQUEUE_OPTION="kqueue"
  7783. PBX_KQUEUE=0
  7784. # Check whether --with-kqueue was given.
  7785. if test "${with_kqueue+set}" = set; then :
  7786. withval=$with_kqueue;
  7787. case ${withval} in
  7788. n|no)
  7789. USE_KQUEUE=no
  7790. # -1 is a magic value used by menuselect to know that the package
  7791. # was disabled, other than 'not found'
  7792. PBX_KQUEUE=-1
  7793. ;;
  7794. y|ye|yes)
  7795. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7796. ;;
  7797. *)
  7798. KQUEUE_DIR="${withval}"
  7799. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7800. ;;
  7801. esac
  7802. fi
  7803. LDAP_DESCRIP="OpenLDAP"
  7804. LDAP_OPTION="ldap"
  7805. PBX_LDAP=0
  7806. # Check whether --with-ldap was given.
  7807. if test "${with_ldap+set}" = set; then :
  7808. withval=$with_ldap;
  7809. case ${withval} in
  7810. n|no)
  7811. USE_LDAP=no
  7812. # -1 is a magic value used by menuselect to know that the package
  7813. # was disabled, other than 'not found'
  7814. PBX_LDAP=-1
  7815. ;;
  7816. y|ye|yes)
  7817. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7818. ;;
  7819. *)
  7820. LDAP_DIR="${withval}"
  7821. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7822. ;;
  7823. esac
  7824. fi
  7825. # Check whether --with-libcurl was given.
  7826. if test "${with_libcurl+set}" = set; then :
  7827. withval=$with_libcurl; _libcurl_with=$withval
  7828. else
  7829. _libcurl_with=yes
  7830. fi
  7831. if test "$_libcurl_with" != "no" ; then
  7832. for ac_prog in gawk mawk nawk awk
  7833. do
  7834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7835. set dummy $ac_prog; ac_word=$2
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7837. $as_echo_n "checking for $ac_word... " >&6; }
  7838. if test "${ac_cv_prog_AWK+set}" = set; then :
  7839. $as_echo_n "(cached) " >&6
  7840. else
  7841. if test -n "$AWK"; then
  7842. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7843. else
  7844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7845. for as_dir in $PATH
  7846. do
  7847. IFS=$as_save_IFS
  7848. test -z "$as_dir" && as_dir=.
  7849. for ac_exec_ext in '' $ac_executable_extensions; do
  7850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7851. ac_cv_prog_AWK="$ac_prog"
  7852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7853. break 2
  7854. fi
  7855. done
  7856. done
  7857. IFS=$as_save_IFS
  7858. fi
  7859. fi
  7860. AWK=$ac_cv_prog_AWK
  7861. if test -n "$AWK"; then
  7862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7863. $as_echo "$AWK" >&6; }
  7864. else
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7866. $as_echo "no" >&6; }
  7867. fi
  7868. test -n "$AWK" && break
  7869. done
  7870. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  7871. _libcurl_try_link=yes
  7872. if test -d "$_libcurl_with" ; then
  7873. CURL_INCLUDE="-I$withval/include"
  7874. _libcurl_ldflags="-L$withval/lib"
  7875. # Extract the first word of "curl-config", so it can be a program name with args.
  7876. set dummy curl-config; ac_word=$2
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7878. $as_echo_n "checking for $ac_word... " >&6; }
  7879. if test "${ac_cv_path__libcurl_config+set}" = set; then :
  7880. $as_echo_n "(cached) " >&6
  7881. else
  7882. case $_libcurl_config in
  7883. [\\/]* | ?:[\\/]*)
  7884. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  7885. ;;
  7886. *)
  7887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7888. for as_dir in "$withval/bin"
  7889. do
  7890. IFS=$as_save_IFS
  7891. test -z "$as_dir" && as_dir=.
  7892. for ac_exec_ext in '' $ac_executable_extensions; do
  7893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7894. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  7895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7896. break 2
  7897. fi
  7898. done
  7899. done
  7900. IFS=$as_save_IFS
  7901. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  7902. ;;
  7903. esac
  7904. fi
  7905. _libcurl_config=$ac_cv_path__libcurl_config
  7906. if test -n "$_libcurl_config"; then
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  7908. $as_echo "$_libcurl_config" >&6; }
  7909. else
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7911. $as_echo "no" >&6; }
  7912. fi
  7913. else
  7914. # Extract the first word of "curl-config", so it can be a program name with args.
  7915. set dummy curl-config; ac_word=$2
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7917. $as_echo_n "checking for $ac_word... " >&6; }
  7918. if test "${ac_cv_path__libcurl_config+set}" = set; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. case $_libcurl_config in
  7922. [\\/]* | ?:[\\/]*)
  7923. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  7924. ;;
  7925. *)
  7926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7927. for as_dir in $PATH
  7928. do
  7929. IFS=$as_save_IFS
  7930. test -z "$as_dir" && as_dir=.
  7931. for ac_exec_ext in '' $ac_executable_extensions; do
  7932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7933. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  7934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7935. break 2
  7936. fi
  7937. done
  7938. done
  7939. IFS=$as_save_IFS
  7940. ;;
  7941. esac
  7942. fi
  7943. _libcurl_config=$ac_cv_path__libcurl_config
  7944. if test -n "$_libcurl_config"; then
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  7946. $as_echo "$_libcurl_config" >&6; }
  7947. else
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7949. $as_echo "no" >&6; }
  7950. fi
  7951. fi
  7952. if test x$_libcurl_config != "x" ; then
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  7954. $as_echo_n "checking for the version of libcurl... " >&6; }
  7955. if test "${libcurl_cv_lib_curl_version+set}" = set; then :
  7956. $as_echo_n "(cached) " >&6
  7957. else
  7958. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  7959. fi
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  7961. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  7962. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  7963. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  7964. if test $_libcurl_wanted -gt 0 ; then
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
  7966. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  7967. if test "${libcurl_cv_lib_version_ok+set}" = set; then :
  7968. $as_echo_n "(cached) " >&6
  7969. else
  7970. if test $_libcurl_version -ge $_libcurl_wanted ; then
  7971. libcurl_cv_lib_version_ok=yes
  7972. else
  7973. libcurl_cv_lib_version_ok=no
  7974. fi
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  7977. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  7978. fi
  7979. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  7980. if test x"$CURL_INCLUDE" = "x" ; then
  7981. CURL_INCLUDE=`$_libcurl_config --cflags`
  7982. fi
  7983. if test x"$CURL_LIB" = "x" ; then
  7984. CURL_LIB=`$_libcurl_config --libs`
  7985. # This is so silly, but Apple actually has a bug in their
  7986. # curl-config script. Fixed in Tiger, but there are still
  7987. # lots of Panther installs around.
  7988. case "${host}" in
  7989. powerpc-apple-darwin7*)
  7990. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  7991. ;;
  7992. esac
  7993. fi
  7994. # All curl-config scripts support --feature
  7995. _libcurl_features=`$_libcurl_config --feature`
  7996. # Is it modern enough to have --protocols? (7.12.4)
  7997. if test $_libcurl_version -ge 461828 ; then
  7998. _libcurl_protocols=`$_libcurl_config --protocols`
  7999. fi
  8000. else
  8001. _libcurl_try_link=no
  8002. fi
  8003. unset _libcurl_wanted
  8004. fi
  8005. if test $_libcurl_try_link = yes ; then
  8006. # we didn't find curl-config, so let's see if the user-supplied
  8007. # link line (or failing that, "-lcurl") is enough.
  8008. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  8010. $as_echo_n "checking whether libcurl is usable... " >&6; }
  8011. if test "${libcurl_cv_lib_curl_usable+set}" = set; then :
  8012. $as_echo_n "(cached) " >&6
  8013. else
  8014. _libcurl_save_cppflags=$CPPFLAGS
  8015. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  8016. _libcurl_save_libs=$LIBS
  8017. LIBS="$CURL_LIB $LIBS"
  8018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8019. /* end confdefs.h. */
  8020. #include <curl/curl.h>
  8021. int
  8022. main ()
  8023. {
  8024. /* Try and use a few common options to force a failure if we are
  8025. missing symbols or can't link. */
  8026. int x;
  8027. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  8028. x=CURL_ERROR_SIZE;
  8029. x=CURLOPT_WRITEFUNCTION;
  8030. x=CURLOPT_FILE;
  8031. x=CURLOPT_ERRORBUFFER;
  8032. x=CURLOPT_STDERR;
  8033. x=CURLOPT_VERBOSE;
  8034. ;
  8035. return 0;
  8036. }
  8037. _ACEOF
  8038. if ac_fn_c_try_link "$LINENO"; then :
  8039. libcurl_cv_lib_curl_usable=yes
  8040. else
  8041. libcurl_cv_lib_curl_usable=no
  8042. fi
  8043. rm -f core conftest.err conftest.$ac_objext \
  8044. conftest$ac_exeext conftest.$ac_ext
  8045. CPPFLAGS=$_libcurl_save_cppflags
  8046. LIBS=$_libcurl_save_libs
  8047. unset _libcurl_save_cppflags
  8048. unset _libcurl_save_libs
  8049. fi
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  8051. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  8052. if test $libcurl_cv_lib_curl_usable = yes ; then
  8053. # Does curl_free() exist in this version of libcurl?
  8054. # If not, fake it with free()
  8055. _libcurl_save_cppflags=$CPPFLAGS
  8056. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  8057. _libcurl_save_libs=$LIBS
  8058. LIBS="$LIBS $CURL_LIB"
  8059. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  8060. if test "x$ac_cv_func_curl_free" = x""yes; then :
  8061. else
  8062. $as_echo "#define curl_free free" >>confdefs.h
  8063. fi
  8064. CPPFLAGS=$_libcurl_save_cppflags
  8065. LIBS=$_libcurl_save_libs
  8066. unset _libcurl_save_cppflags
  8067. unset _libcurl_save_libs
  8068. $as_echo "#define HAVE_CURL 1" >>confdefs.h
  8069. PBX_CURL=1
  8070. for _libcurl_feature in $_libcurl_features ; do
  8071. cat >>confdefs.h <<_ACEOF
  8072. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  8073. _ACEOF
  8074. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  8075. done
  8076. if test "x$_libcurl_protocols" = "x" ; then
  8077. # We don't have --protocols, so just assume that all
  8078. # protocols are available
  8079. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  8080. if test x$libcurl_feature_SSL = xyes ; then
  8081. _libcurl_protocols="$_libcurl_protocols HTTPS"
  8082. # FTPS wasn't standards-compliant until version
  8083. # 7.11.0
  8084. if test $_libcurl_version -ge 461568; then
  8085. _libcurl_protocols="$_libcurl_protocols FTPS"
  8086. fi
  8087. fi
  8088. fi
  8089. for _libcurl_protocol in $_libcurl_protocols ; do
  8090. cat >>confdefs.h <<_ACEOF
  8091. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  8092. _ACEOF
  8093. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  8094. done
  8095. else
  8096. unset CURL_LIB
  8097. unset CURL_INCLUDE
  8098. PBX_CURL=0
  8099. fi
  8100. fi
  8101. unset _libcurl_try_link
  8102. unset _libcurl_version_parse
  8103. unset _libcurl_config
  8104. unset _libcurl_feature
  8105. unset _libcurl_features
  8106. unset _libcurl_protocol
  8107. unset _libcurl_protocols
  8108. unset _libcurl_version
  8109. unset _libcurl_ldflags
  8110. fi
  8111. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  8112. # This is the IF-NO path
  8113. :
  8114. else
  8115. # This is the IF-YES path
  8116. :
  8117. fi
  8118. unset _libcurl_with
  8119. LIBXML2_DESCRIP="LibXML2"
  8120. LIBXML2_OPTION="libxml2"
  8121. PBX_LIBXML2=0
  8122. # Check whether --with-libxml2 was given.
  8123. if test "${with_libxml2+set}" = set; then :
  8124. withval=$with_libxml2;
  8125. case ${withval} in
  8126. n|no)
  8127. USE_LIBXML2=no
  8128. # -1 is a magic value used by menuselect to know that the package
  8129. # was disabled, other than 'not found'
  8130. PBX_LIBXML2=-1
  8131. ;;
  8132. y|ye|yes)
  8133. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8134. ;;
  8135. *)
  8136. LIBXML2_DIR="${withval}"
  8137. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8138. ;;
  8139. esac
  8140. fi
  8141. LTDL_DESCRIP="libtool"
  8142. LTDL_OPTION="ltdl"
  8143. PBX_LTDL=0
  8144. # Check whether --with-ltdl was given.
  8145. if test "${with_ltdl+set}" = set; then :
  8146. withval=$with_ltdl;
  8147. case ${withval} in
  8148. n|no)
  8149. USE_LTDL=no
  8150. # -1 is a magic value used by menuselect to know that the package
  8151. # was disabled, other than 'not found'
  8152. PBX_LTDL=-1
  8153. ;;
  8154. y|ye|yes)
  8155. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8156. ;;
  8157. *)
  8158. LTDL_DIR="${withval}"
  8159. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8160. ;;
  8161. esac
  8162. fi
  8163. LUA_DESCRIP="Lua"
  8164. LUA_OPTION="lua"
  8165. PBX_LUA=0
  8166. # Check whether --with-lua was given.
  8167. if test "${with_lua+set}" = set; then :
  8168. withval=$with_lua;
  8169. case ${withval} in
  8170. n|no)
  8171. USE_LUA=no
  8172. # -1 is a magic value used by menuselect to know that the package
  8173. # was disabled, other than 'not found'
  8174. PBX_LUA=-1
  8175. ;;
  8176. y|ye|yes)
  8177. ac_mandatory_list="${ac_mandatory_list} LUA"
  8178. ;;
  8179. *)
  8180. LUA_DIR="${withval}"
  8181. ac_mandatory_list="${ac_mandatory_list} LUA"
  8182. ;;
  8183. esac
  8184. fi
  8185. MISDN_DESCRIP="mISDN user"
  8186. MISDN_OPTION="misdn"
  8187. PBX_MISDN=0
  8188. # Check whether --with-misdn was given.
  8189. if test "${with_misdn+set}" = set; then :
  8190. withval=$with_misdn;
  8191. case ${withval} in
  8192. n|no)
  8193. USE_MISDN=no
  8194. # -1 is a magic value used by menuselect to know that the package
  8195. # was disabled, other than 'not found'
  8196. PBX_MISDN=-1
  8197. ;;
  8198. y|ye|yes)
  8199. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8200. ;;
  8201. *)
  8202. MISDN_DIR="${withval}"
  8203. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8204. ;;
  8205. esac
  8206. fi
  8207. MYSQLCLIENT_DESCRIP="MySQL client"
  8208. MYSQLCLIENT_OPTION="mysqlclient"
  8209. PBX_MYSQLCLIENT=0
  8210. # Check whether --with-mysqlclient was given.
  8211. if test "${with_mysqlclient+set}" = set; then :
  8212. withval=$with_mysqlclient;
  8213. case ${withval} in
  8214. n|no)
  8215. USE_MYSQLCLIENT=no
  8216. # -1 is a magic value used by menuselect to know that the package
  8217. # was disabled, other than 'not found'
  8218. PBX_MYSQLCLIENT=-1
  8219. ;;
  8220. y|ye|yes)
  8221. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8222. ;;
  8223. *)
  8224. MYSQLCLIENT_DIR="${withval}"
  8225. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8226. ;;
  8227. esac
  8228. fi
  8229. NBS_DESCRIP="Network Broadcast Sound"
  8230. NBS_OPTION="nbs"
  8231. PBX_NBS=0
  8232. # Check whether --with-nbs was given.
  8233. if test "${with_nbs+set}" = set; then :
  8234. withval=$with_nbs;
  8235. case ${withval} in
  8236. n|no)
  8237. USE_NBS=no
  8238. # -1 is a magic value used by menuselect to know that the package
  8239. # was disabled, other than 'not found'
  8240. PBX_NBS=-1
  8241. ;;
  8242. y|ye|yes)
  8243. ac_mandatory_list="${ac_mandatory_list} NBS"
  8244. ;;
  8245. *)
  8246. NBS_DIR="${withval}"
  8247. ac_mandatory_list="${ac_mandatory_list} NBS"
  8248. ;;
  8249. esac
  8250. fi
  8251. NCURSES_DESCRIP="ncurses"
  8252. NCURSES_OPTION="ncurses"
  8253. PBX_NCURSES=0
  8254. # Check whether --with-ncurses was given.
  8255. if test "${with_ncurses+set}" = set; then :
  8256. withval=$with_ncurses;
  8257. case ${withval} in
  8258. n|no)
  8259. USE_NCURSES=no
  8260. # -1 is a magic value used by menuselect to know that the package
  8261. # was disabled, other than 'not found'
  8262. PBX_NCURSES=-1
  8263. ;;
  8264. y|ye|yes)
  8265. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8266. ;;
  8267. *)
  8268. NCURSES_DIR="${withval}"
  8269. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8270. ;;
  8271. esac
  8272. fi
  8273. NEON_DESCRIP="neon"
  8274. NEON_OPTION="neon"
  8275. PBX_NEON=0
  8276. # Check whether --with-neon was given.
  8277. if test "${with_neon+set}" = set; then :
  8278. withval=$with_neon;
  8279. case ${withval} in
  8280. n|no)
  8281. USE_NEON=no
  8282. # -1 is a magic value used by menuselect to know that the package
  8283. # was disabled, other than 'not found'
  8284. PBX_NEON=-1
  8285. ;;
  8286. y|ye|yes)
  8287. ac_mandatory_list="${ac_mandatory_list} NEON"
  8288. ;;
  8289. *)
  8290. NEON_DIR="${withval}"
  8291. ac_mandatory_list="${ac_mandatory_list} NEON"
  8292. ;;
  8293. esac
  8294. fi
  8295. NEON29_DESCRIP="neon29"
  8296. NEON29_OPTION="neon29"
  8297. PBX_NEON29=0
  8298. # Check whether --with-neon29 was given.
  8299. if test "${with_neon29+set}" = set; then :
  8300. withval=$with_neon29;
  8301. case ${withval} in
  8302. n|no)
  8303. USE_NEON29=no
  8304. # -1 is a magic value used by menuselect to know that the package
  8305. # was disabled, other than 'not found'
  8306. PBX_NEON29=-1
  8307. ;;
  8308. y|ye|yes)
  8309. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8310. ;;
  8311. *)
  8312. NEON29_DIR="${withval}"
  8313. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8314. ;;
  8315. esac
  8316. fi
  8317. NETSNMP_DESCRIP="Net-SNMP"
  8318. NETSNMP_OPTION="netsnmp"
  8319. PBX_NETSNMP=0
  8320. # Check whether --with-netsnmp was given.
  8321. if test "${with_netsnmp+set}" = set; then :
  8322. withval=$with_netsnmp;
  8323. case ${withval} in
  8324. n|no)
  8325. USE_NETSNMP=no
  8326. # -1 is a magic value used by menuselect to know that the package
  8327. # was disabled, other than 'not found'
  8328. PBX_NETSNMP=-1
  8329. ;;
  8330. y|ye|yes)
  8331. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8332. ;;
  8333. *)
  8334. NETSNMP_DIR="${withval}"
  8335. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8336. ;;
  8337. esac
  8338. fi
  8339. NEWT_DESCRIP="newt"
  8340. NEWT_OPTION="newt"
  8341. PBX_NEWT=0
  8342. # Check whether --with-newt was given.
  8343. if test "${with_newt+set}" = set; then :
  8344. withval=$with_newt;
  8345. case ${withval} in
  8346. n|no)
  8347. USE_NEWT=no
  8348. # -1 is a magic value used by menuselect to know that the package
  8349. # was disabled, other than 'not found'
  8350. PBX_NEWT=-1
  8351. ;;
  8352. y|ye|yes)
  8353. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8354. ;;
  8355. *)
  8356. NEWT_DIR="${withval}"
  8357. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8358. ;;
  8359. esac
  8360. fi
  8361. OGG_DESCRIP="OGG"
  8362. OGG_OPTION="ogg"
  8363. PBX_OGG=0
  8364. # Check whether --with-ogg was given.
  8365. if test "${with_ogg+set}" = set; then :
  8366. withval=$with_ogg;
  8367. case ${withval} in
  8368. n|no)
  8369. USE_OGG=no
  8370. # -1 is a magic value used by menuselect to know that the package
  8371. # was disabled, other than 'not found'
  8372. PBX_OGG=-1
  8373. ;;
  8374. y|ye|yes)
  8375. ac_mandatory_list="${ac_mandatory_list} OGG"
  8376. ;;
  8377. *)
  8378. OGG_DIR="${withval}"
  8379. ac_mandatory_list="${ac_mandatory_list} OGG"
  8380. ;;
  8381. esac
  8382. fi
  8383. OPENAIS_DESCRIP="OpenAIS"
  8384. OPENAIS_OPTION="openais"
  8385. PBX_OPENAIS=0
  8386. # Check whether --with-openais was given.
  8387. if test "${with_openais+set}" = set; then :
  8388. withval=$with_openais;
  8389. case ${withval} in
  8390. n|no)
  8391. USE_OPENAIS=no
  8392. # -1 is a magic value used by menuselect to know that the package
  8393. # was disabled, other than 'not found'
  8394. PBX_OPENAIS=-1
  8395. ;;
  8396. y|ye|yes)
  8397. ac_mandatory_list="${ac_mandatory_list} OPENAIS"
  8398. ;;
  8399. *)
  8400. OPENAIS_DIR="${withval}"
  8401. ac_mandatory_list="${ac_mandatory_list} OPENAIS"
  8402. ;;
  8403. esac
  8404. fi
  8405. OPENR2_DESCRIP="MFR2"
  8406. OPENR2_OPTION="openr2"
  8407. PBX_OPENR2=0
  8408. # Check whether --with-openr2 was given.
  8409. if test "${with_openr2+set}" = set; then :
  8410. withval=$with_openr2;
  8411. case ${withval} in
  8412. n|no)
  8413. USE_OPENR2=no
  8414. # -1 is a magic value used by menuselect to know that the package
  8415. # was disabled, other than 'not found'
  8416. PBX_OPENR2=-1
  8417. ;;
  8418. y|ye|yes)
  8419. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8420. ;;
  8421. *)
  8422. OPENR2_DIR="${withval}"
  8423. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8424. ;;
  8425. esac
  8426. fi
  8427. OSPTK_DESCRIP="OSP Toolkit"
  8428. OSPTK_OPTION="osptk"
  8429. PBX_OSPTK=0
  8430. # Check whether --with-osptk was given.
  8431. if test "${with_osptk+set}" = set; then :
  8432. withval=$with_osptk;
  8433. case ${withval} in
  8434. n|no)
  8435. USE_OSPTK=no
  8436. # -1 is a magic value used by menuselect to know that the package
  8437. # was disabled, other than 'not found'
  8438. PBX_OSPTK=-1
  8439. ;;
  8440. y|ye|yes)
  8441. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8442. ;;
  8443. *)
  8444. OSPTK_DIR="${withval}"
  8445. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8446. ;;
  8447. esac
  8448. fi
  8449. OSS_DESCRIP="Open Sound System"
  8450. OSS_OPTION="oss"
  8451. PBX_OSS=0
  8452. # Check whether --with-oss was given.
  8453. if test "${with_oss+set}" = set; then :
  8454. withval=$with_oss;
  8455. case ${withval} in
  8456. n|no)
  8457. USE_OSS=no
  8458. # -1 is a magic value used by menuselect to know that the package
  8459. # was disabled, other than 'not found'
  8460. PBX_OSS=-1
  8461. ;;
  8462. y|ye|yes)
  8463. ac_mandatory_list="${ac_mandatory_list} OSS"
  8464. ;;
  8465. *)
  8466. OSS_DIR="${withval}"
  8467. ac_mandatory_list="${ac_mandatory_list} OSS"
  8468. ;;
  8469. esac
  8470. fi
  8471. PGSQL_DESCRIP="PostgreSQL"
  8472. PGSQL_OPTION="postgres"
  8473. PBX_PGSQL=0
  8474. # Check whether --with-postgres was given.
  8475. if test "${with_postgres+set}" = set; then :
  8476. withval=$with_postgres;
  8477. case ${withval} in
  8478. n|no)
  8479. USE_PGSQL=no
  8480. # -1 is a magic value used by menuselect to know that the package
  8481. # was disabled, other than 'not found'
  8482. PBX_PGSQL=-1
  8483. ;;
  8484. y|ye|yes)
  8485. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8486. ;;
  8487. *)
  8488. PGSQL_DIR="${withval}"
  8489. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8490. ;;
  8491. esac
  8492. fi
  8493. POPT_DESCRIP="popt"
  8494. POPT_OPTION="popt"
  8495. PBX_POPT=0
  8496. # Check whether --with-popt was given.
  8497. if test "${with_popt+set}" = set; then :
  8498. withval=$with_popt;
  8499. case ${withval} in
  8500. n|no)
  8501. USE_POPT=no
  8502. # -1 is a magic value used by menuselect to know that the package
  8503. # was disabled, other than 'not found'
  8504. PBX_POPT=-1
  8505. ;;
  8506. y|ye|yes)
  8507. ac_mandatory_list="${ac_mandatory_list} POPT"
  8508. ;;
  8509. *)
  8510. POPT_DIR="${withval}"
  8511. ac_mandatory_list="${ac_mandatory_list} POPT"
  8512. ;;
  8513. esac
  8514. fi
  8515. PORTAUDIO_DESCRIP="PortAudio"
  8516. PORTAUDIO_OPTION="portaudio"
  8517. PBX_PORTAUDIO=0
  8518. # Check whether --with-portaudio was given.
  8519. if test "${with_portaudio+set}" = set; then :
  8520. withval=$with_portaudio;
  8521. case ${withval} in
  8522. n|no)
  8523. USE_PORTAUDIO=no
  8524. # -1 is a magic value used by menuselect to know that the package
  8525. # was disabled, other than 'not found'
  8526. PBX_PORTAUDIO=-1
  8527. ;;
  8528. y|ye|yes)
  8529. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8530. ;;
  8531. *)
  8532. PORTAUDIO_DIR="${withval}"
  8533. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8534. ;;
  8535. esac
  8536. fi
  8537. PRI_DESCRIP="ISDN PRI"
  8538. PRI_OPTION="pri"
  8539. PBX_PRI=0
  8540. # Check whether --with-pri was given.
  8541. if test "${with_pri+set}" = set; then :
  8542. withval=$with_pri;
  8543. case ${withval} in
  8544. n|no)
  8545. USE_PRI=no
  8546. # -1 is a magic value used by menuselect to know that the package
  8547. # was disabled, other than 'not found'
  8548. PBX_PRI=-1
  8549. ;;
  8550. y|ye|yes)
  8551. ac_mandatory_list="${ac_mandatory_list} PRI"
  8552. ;;
  8553. *)
  8554. PRI_DIR="${withval}"
  8555. ac_mandatory_list="${ac_mandatory_list} PRI"
  8556. ;;
  8557. esac
  8558. fi
  8559. PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
  8560. PRI_DATETIME_SEND_OPTION=pri
  8561. for i in ${ac_mandatory_list}; do
  8562. if test "xPRI" = "x$i"; then
  8563. ac_mandatory_list="${ac_mandatory_list} PRI_DATETIME_SEND"
  8564. break
  8565. fi
  8566. done
  8567. PRI_DATETIME_SEND_DIR=${PRI_DIR}
  8568. PBX_PRI_DATETIME_SEND=0
  8569. PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
  8570. PRI_MWI_V2_OPTION=pri
  8571. for i in ${ac_mandatory_list}; do
  8572. if test "xPRI" = "x$i"; then
  8573. ac_mandatory_list="${ac_mandatory_list} PRI_MWI_V2"
  8574. break
  8575. fi
  8576. done
  8577. PRI_MWI_V2_DIR=${PRI_DIR}
  8578. PBX_PRI_MWI_V2=0
  8579. PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
  8580. PRI_DISPLAY_TEXT_OPTION=pri
  8581. for i in ${ac_mandatory_list}; do
  8582. if test "xPRI" = "x$i"; then
  8583. ac_mandatory_list="${ac_mandatory_list} PRI_DISPLAY_TEXT"
  8584. break
  8585. fi
  8586. done
  8587. PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
  8588. PBX_PRI_DISPLAY_TEXT=0
  8589. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  8590. PRI_MWI_OPTION=pri
  8591. for i in ${ac_mandatory_list}; do
  8592. if test "xPRI" = "x$i"; then
  8593. ac_mandatory_list="${ac_mandatory_list} PRI_MWI"
  8594. break
  8595. fi
  8596. done
  8597. PRI_MWI_DIR=${PRI_DIR}
  8598. PBX_PRI_MWI=0
  8599. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  8600. PRI_MCID_OPTION=pri
  8601. for i in ${ac_mandatory_list}; do
  8602. if test "xPRI" = "x$i"; then
  8603. ac_mandatory_list="${ac_mandatory_list} PRI_MCID"
  8604. break
  8605. fi
  8606. done
  8607. PRI_MCID_DIR=${PRI_DIR}
  8608. PBX_PRI_MCID=0
  8609. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  8610. PRI_CALL_WAITING_OPTION=pri
  8611. for i in ${ac_mandatory_list}; do
  8612. if test "xPRI" = "x$i"; then
  8613. ac_mandatory_list="${ac_mandatory_list} PRI_CALL_WAITING"
  8614. break
  8615. fi
  8616. done
  8617. PRI_CALL_WAITING_DIR=${PRI_DIR}
  8618. PBX_PRI_CALL_WAITING=0
  8619. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  8620. PRI_AOC_EVENTS_OPTION=pri
  8621. for i in ${ac_mandatory_list}; do
  8622. if test "xPRI" = "x$i"; then
  8623. ac_mandatory_list="${ac_mandatory_list} PRI_AOC_EVENTS"
  8624. break
  8625. fi
  8626. done
  8627. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  8628. PBX_PRI_AOC_EVENTS=0
  8629. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  8630. PRI_TRANSFER_OPTION=pri
  8631. for i in ${ac_mandatory_list}; do
  8632. if test "xPRI" = "x$i"; then
  8633. ac_mandatory_list="${ac_mandatory_list} PRI_TRANSFER"
  8634. break
  8635. fi
  8636. done
  8637. PRI_TRANSFER_DIR=${PRI_DIR}
  8638. PBX_PRI_TRANSFER=0
  8639. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  8640. PRI_CCSS_OPTION=pri
  8641. for i in ${ac_mandatory_list}; do
  8642. if test "xPRI" = "x$i"; then
  8643. ac_mandatory_list="${ac_mandatory_list} PRI_CCSS"
  8644. break
  8645. fi
  8646. done
  8647. PRI_CCSS_DIR=${PRI_DIR}
  8648. PBX_PRI_CCSS=0
  8649. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  8650. PRI_HANGUP_FIX_OPTION=pri
  8651. for i in ${ac_mandatory_list}; do
  8652. if test "xPRI" = "x$i"; then
  8653. ac_mandatory_list="${ac_mandatory_list} PRI_HANGUP_FIX"
  8654. break
  8655. fi
  8656. done
  8657. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  8658. PBX_PRI_HANGUP_FIX=0
  8659. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  8660. PRI_SUBADDR_OPTION=pri
  8661. for i in ${ac_mandatory_list}; do
  8662. if test "xPRI" = "x$i"; then
  8663. ac_mandatory_list="${ac_mandatory_list} PRI_SUBADDR"
  8664. break
  8665. fi
  8666. done
  8667. PRI_SUBADDR_DIR=${PRI_DIR}
  8668. PBX_PRI_SUBADDR=0
  8669. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  8670. PRI_CALL_HOLD_OPTION=pri
  8671. for i in ${ac_mandatory_list}; do
  8672. if test "xPRI" = "x$i"; then
  8673. ac_mandatory_list="${ac_mandatory_list} PRI_CALL_HOLD"
  8674. break
  8675. fi
  8676. done
  8677. PRI_CALL_HOLD_DIR=${PRI_DIR}
  8678. PBX_PRI_CALL_HOLD=0
  8679. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  8680. PRI_CALL_REROUTING_OPTION=pri
  8681. for i in ${ac_mandatory_list}; do
  8682. if test "xPRI" = "x$i"; then
  8683. ac_mandatory_list="${ac_mandatory_list} PRI_CALL_REROUTING"
  8684. break
  8685. fi
  8686. done
  8687. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  8688. PBX_PRI_CALL_REROUTING=0
  8689. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  8690. PRI_SETUP_KEYPAD_OPTION=pri
  8691. for i in ${ac_mandatory_list}; do
  8692. if test "xPRI" = "x$i"; then
  8693. ac_mandatory_list="${ac_mandatory_list} PRI_SETUP_KEYPAD"
  8694. break
  8695. fi
  8696. done
  8697. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  8698. PBX_PRI_SETUP_KEYPAD=0
  8699. # ------------------------------------v
  8700. # TODO: The code can be changed to always include these features now.
  8701. # These features will always be present if pri_connected_line_update is available.
  8702. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  8703. PRI_INBANDDISCONNECT_OPTION=pri
  8704. for i in ${ac_mandatory_list}; do
  8705. if test "xPRI" = "x$i"; then
  8706. ac_mandatory_list="${ac_mandatory_list} PRI_INBANDDISCONNECT"
  8707. break
  8708. fi
  8709. done
  8710. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  8711. PBX_PRI_INBANDDISCONNECT=0
  8712. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  8713. PRI_PROG_W_CAUSE_OPTION=pri
  8714. for i in ${ac_mandatory_list}; do
  8715. if test "xPRI" = "x$i"; then
  8716. ac_mandatory_list="${ac_mandatory_list} PRI_PROG_W_CAUSE"
  8717. break
  8718. fi
  8719. done
  8720. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  8721. PBX_PRI_PROG_W_CAUSE=0
  8722. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  8723. PRI_SERVICE_MESSAGES_OPTION=pri
  8724. for i in ${ac_mandatory_list}; do
  8725. if test "xPRI" = "x$i"; then
  8726. ac_mandatory_list="${ac_mandatory_list} PRI_SERVICE_MESSAGES"
  8727. break
  8728. fi
  8729. done
  8730. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  8731. PBX_PRI_SERVICE_MESSAGES=0
  8732. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  8733. PRI_REVERSE_CHARGE_OPTION=pri
  8734. for i in ${ac_mandatory_list}; do
  8735. if test "xPRI" = "x$i"; then
  8736. ac_mandatory_list="${ac_mandatory_list} PRI_REVERSE_CHARGE"
  8737. break
  8738. fi
  8739. done
  8740. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  8741. PBX_PRI_REVERSE_CHARGE=0
  8742. # ------------------------------------^
  8743. PWLIB_DESCRIP="PWlib"
  8744. PWLIB_OPTION="pwlib"
  8745. PBX_PWLIB=0
  8746. # Check whether --with-pwlib was given.
  8747. if test "${with_pwlib+set}" = set; then :
  8748. withval=$with_pwlib;
  8749. case ${withval} in
  8750. n|no)
  8751. USE_PWLIB=no
  8752. # -1 is a magic value used by menuselect to know that the package
  8753. # was disabled, other than 'not found'
  8754. PBX_PWLIB=-1
  8755. ;;
  8756. y|ye|yes)
  8757. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8758. ;;
  8759. *)
  8760. PWLIB_DIR="${withval}"
  8761. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8762. ;;
  8763. esac
  8764. fi
  8765. RADIUS_DESCRIP="Radius Client"
  8766. RADIUS_OPTION="radius"
  8767. PBX_RADIUS=0
  8768. # Check whether --with-radius was given.
  8769. if test "${with_radius+set}" = set; then :
  8770. withval=$with_radius;
  8771. case ${withval} in
  8772. n|no)
  8773. USE_RADIUS=no
  8774. # -1 is a magic value used by menuselect to know that the package
  8775. # was disabled, other than 'not found'
  8776. PBX_RADIUS=-1
  8777. ;;
  8778. y|ye|yes)
  8779. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8780. ;;
  8781. *)
  8782. RADIUS_DIR="${withval}"
  8783. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8784. ;;
  8785. esac
  8786. fi
  8787. RESAMPLE_DESCRIP="LIBRESAMPLE"
  8788. RESAMPLE_OPTION="resample"
  8789. PBX_RESAMPLE=0
  8790. # Check whether --with-resample was given.
  8791. if test "${with_resample+set}" = set; then :
  8792. withval=$with_resample;
  8793. case ${withval} in
  8794. n|no)
  8795. USE_RESAMPLE=no
  8796. # -1 is a magic value used by menuselect to know that the package
  8797. # was disabled, other than 'not found'
  8798. PBX_RESAMPLE=-1
  8799. ;;
  8800. y|ye|yes)
  8801. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8802. ;;
  8803. *)
  8804. RESAMPLE_DIR="${withval}"
  8805. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8806. ;;
  8807. esac
  8808. fi
  8809. SDL_DESCRIP="Sdl"
  8810. SDL_OPTION="sdl"
  8811. PBX_SDL=0
  8812. # Check whether --with-sdl was given.
  8813. if test "${with_sdl+set}" = set; then :
  8814. withval=$with_sdl;
  8815. case ${withval} in
  8816. n|no)
  8817. USE_SDL=no
  8818. # -1 is a magic value used by menuselect to know that the package
  8819. # was disabled, other than 'not found'
  8820. PBX_SDL=-1
  8821. ;;
  8822. y|ye|yes)
  8823. ac_mandatory_list="${ac_mandatory_list} SDL"
  8824. ;;
  8825. *)
  8826. SDL_DIR="${withval}"
  8827. ac_mandatory_list="${ac_mandatory_list} SDL"
  8828. ;;
  8829. esac
  8830. fi
  8831. SDL_IMAGE_DESCRIP="Sdl Image"
  8832. SDL_IMAGE_OPTION="SDL_image"
  8833. PBX_SDL_IMAGE=0
  8834. # Check whether --with-SDL_image was given.
  8835. if test "${with_SDL_image+set}" = set; then :
  8836. withval=$with_SDL_image;
  8837. case ${withval} in
  8838. n|no)
  8839. USE_SDL_IMAGE=no
  8840. # -1 is a magic value used by menuselect to know that the package
  8841. # was disabled, other than 'not found'
  8842. PBX_SDL_IMAGE=-1
  8843. ;;
  8844. y|ye|yes)
  8845. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8846. ;;
  8847. *)
  8848. SDL_IMAGE_DIR="${withval}"
  8849. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8850. ;;
  8851. esac
  8852. fi
  8853. # Check whether --with-sounds-cache was given.
  8854. if test "${with_sounds_cache+set}" = set; then :
  8855. withval=$with_sounds_cache;
  8856. case ${withval} in
  8857. n|no)
  8858. unset SOUNDS_CACHE_DIR
  8859. ;;
  8860. *)
  8861. if test "x${withval}" = "x"; then
  8862. :
  8863. else
  8864. SOUNDS_CACHE_DIR="${withval}"
  8865. fi
  8866. ;;
  8867. esac
  8868. else
  8869. :
  8870. fi
  8871. SPANDSP_DESCRIP="SPANDSP"
  8872. SPANDSP_OPTION="spandsp"
  8873. PBX_SPANDSP=0
  8874. # Check whether --with-spandsp was given.
  8875. if test "${with_spandsp+set}" = set; then :
  8876. withval=$with_spandsp;
  8877. case ${withval} in
  8878. n|no)
  8879. USE_SPANDSP=no
  8880. # -1 is a magic value used by menuselect to know that the package
  8881. # was disabled, other than 'not found'
  8882. PBX_SPANDSP=-1
  8883. ;;
  8884. y|ye|yes)
  8885. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  8886. ;;
  8887. *)
  8888. SPANDSP_DIR="${withval}"
  8889. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  8890. ;;
  8891. esac
  8892. fi
  8893. SS7_DESCRIP="ISDN SS7"
  8894. SS7_OPTION="ss7"
  8895. PBX_SS7=0
  8896. # Check whether --with-ss7 was given.
  8897. if test "${with_ss7+set}" = set; then :
  8898. withval=$with_ss7;
  8899. case ${withval} in
  8900. n|no)
  8901. USE_SS7=no
  8902. # -1 is a magic value used by menuselect to know that the package
  8903. # was disabled, other than 'not found'
  8904. PBX_SS7=-1
  8905. ;;
  8906. y|ye|yes)
  8907. ac_mandatory_list="${ac_mandatory_list} SS7"
  8908. ;;
  8909. *)
  8910. SS7_DIR="${withval}"
  8911. ac_mandatory_list="${ac_mandatory_list} SS7"
  8912. ;;
  8913. esac
  8914. fi
  8915. SPEEX_DESCRIP="Speex"
  8916. SPEEX_OPTION="speex"
  8917. PBX_SPEEX=0
  8918. # Check whether --with-speex was given.
  8919. if test "${with_speex+set}" = set; then :
  8920. withval=$with_speex;
  8921. case ${withval} in
  8922. n|no)
  8923. USE_SPEEX=no
  8924. # -1 is a magic value used by menuselect to know that the package
  8925. # was disabled, other than 'not found'
  8926. PBX_SPEEX=-1
  8927. ;;
  8928. y|ye|yes)
  8929. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  8930. ;;
  8931. *)
  8932. SPEEX_DIR="${withval}"
  8933. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  8934. ;;
  8935. esac
  8936. fi
  8937. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  8938. SPEEX_PREPROCESS_OPTION="speex"
  8939. PBX_SPEEX_PREPROCESS=0
  8940. # Check whether --with-speex was given.
  8941. if test "${with_speex+set}" = set; then :
  8942. withval=$with_speex;
  8943. case ${withval} in
  8944. n|no)
  8945. USE_SPEEX_PREPROCESS=no
  8946. # -1 is a magic value used by menuselect to know that the package
  8947. # was disabled, other than 'not found'
  8948. PBX_SPEEX_PREPROCESS=-1
  8949. ;;
  8950. y|ye|yes)
  8951. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  8952. ;;
  8953. *)
  8954. SPEEX_PREPROCESS_DIR="${withval}"
  8955. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  8956. ;;
  8957. esac
  8958. fi
  8959. SPEEXDSP_DESCRIP="SpeexDSP"
  8960. SPEEXDSP_OPTION="speexdsp"
  8961. PBX_SPEEXDSP=0
  8962. # Check whether --with-speexdsp was given.
  8963. if test "${with_speexdsp+set}" = set; then :
  8964. withval=$with_speexdsp;
  8965. case ${withval} in
  8966. n|no)
  8967. USE_SPEEXDSP=no
  8968. # -1 is a magic value used by menuselect to know that the package
  8969. # was disabled, other than 'not found'
  8970. PBX_SPEEXDSP=-1
  8971. ;;
  8972. y|ye|yes)
  8973. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  8974. ;;
  8975. *)
  8976. SPEEXDSP_DIR="${withval}"
  8977. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  8978. ;;
  8979. esac
  8980. fi
  8981. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  8982. SPEEX_PREPROCESS_OPTION=speex
  8983. PBX_SPEEX_PREPROCESS=0
  8984. SQLITE_DESCRIP="SQLite"
  8985. SQLITE_OPTION="sqlite"
  8986. PBX_SQLITE=0
  8987. # Check whether --with-sqlite was given.
  8988. if test "${with_sqlite+set}" = set; then :
  8989. withval=$with_sqlite;
  8990. case ${withval} in
  8991. n|no)
  8992. USE_SQLITE=no
  8993. # -1 is a magic value used by menuselect to know that the package
  8994. # was disabled, other than 'not found'
  8995. PBX_SQLITE=-1
  8996. ;;
  8997. y|ye|yes)
  8998. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  8999. ;;
  9000. *)
  9001. SQLITE_DIR="${withval}"
  9002. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9003. ;;
  9004. esac
  9005. fi
  9006. SQLITE3_DESCRIP="SQLite"
  9007. SQLITE3_OPTION="sqlite3"
  9008. PBX_SQLITE3=0
  9009. # Check whether --with-sqlite3 was given.
  9010. if test "${with_sqlite3+set}" = set; then :
  9011. withval=$with_sqlite3;
  9012. case ${withval} in
  9013. n|no)
  9014. USE_SQLITE3=no
  9015. # -1 is a magic value used by menuselect to know that the package
  9016. # was disabled, other than 'not found'
  9017. PBX_SQLITE3=-1
  9018. ;;
  9019. y|ye|yes)
  9020. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9021. ;;
  9022. *)
  9023. SQLITE3_DIR="${withval}"
  9024. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9025. ;;
  9026. esac
  9027. fi
  9028. SRTP_DESCRIP="Secure RTP"
  9029. SRTP_OPTION="srtp"
  9030. PBX_SRTP=0
  9031. # Check whether --with-srtp was given.
  9032. if test "${with_srtp+set}" = set; then :
  9033. withval=$with_srtp;
  9034. case ${withval} in
  9035. n|no)
  9036. USE_SRTP=no
  9037. # -1 is a magic value used by menuselect to know that the package
  9038. # was disabled, other than 'not found'
  9039. PBX_SRTP=-1
  9040. ;;
  9041. y|ye|yes)
  9042. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9043. ;;
  9044. *)
  9045. SRTP_DIR="${withval}"
  9046. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9047. ;;
  9048. esac
  9049. fi
  9050. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9051. OPENSSL_OPTION="ssl"
  9052. PBX_OPENSSL=0
  9053. # Check whether --with-ssl was given.
  9054. if test "${with_ssl+set}" = set; then :
  9055. withval=$with_ssl;
  9056. case ${withval} in
  9057. n|no)
  9058. USE_OPENSSL=no
  9059. # -1 is a magic value used by menuselect to know that the package
  9060. # was disabled, other than 'not found'
  9061. PBX_OPENSSL=-1
  9062. ;;
  9063. y|ye|yes)
  9064. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9065. ;;
  9066. *)
  9067. OPENSSL_DIR="${withval}"
  9068. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9069. ;;
  9070. esac
  9071. fi
  9072. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  9073. SUPPSERV_OPTION="suppserv"
  9074. PBX_SUPPSERV=0
  9075. # Check whether --with-suppserv was given.
  9076. if test "${with_suppserv+set}" = set; then :
  9077. withval=$with_suppserv;
  9078. case ${withval} in
  9079. n|no)
  9080. USE_SUPPSERV=no
  9081. # -1 is a magic value used by menuselect to know that the package
  9082. # was disabled, other than 'not found'
  9083. PBX_SUPPSERV=-1
  9084. ;;
  9085. y|ye|yes)
  9086. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9087. ;;
  9088. *)
  9089. SUPPSERV_DIR="${withval}"
  9090. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9091. ;;
  9092. esac
  9093. fi
  9094. FREETDS_DESCRIP="FreeTDS"
  9095. FREETDS_OPTION="tds"
  9096. PBX_FREETDS=0
  9097. # Check whether --with-tds was given.
  9098. if test "${with_tds+set}" = set; then :
  9099. withval=$with_tds;
  9100. case ${withval} in
  9101. n|no)
  9102. USE_FREETDS=no
  9103. # -1 is a magic value used by menuselect to know that the package
  9104. # was disabled, other than 'not found'
  9105. PBX_FREETDS=-1
  9106. ;;
  9107. y|ye|yes)
  9108. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9109. ;;
  9110. *)
  9111. FREETDS_DIR="${withval}"
  9112. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9113. ;;
  9114. esac
  9115. fi
  9116. TERMCAP_DESCRIP="Termcap"
  9117. TERMCAP_OPTION="termcap"
  9118. PBX_TERMCAP=0
  9119. # Check whether --with-termcap was given.
  9120. if test "${with_termcap+set}" = set; then :
  9121. withval=$with_termcap;
  9122. case ${withval} in
  9123. n|no)
  9124. USE_TERMCAP=no
  9125. # -1 is a magic value used by menuselect to know that the package
  9126. # was disabled, other than 'not found'
  9127. PBX_TERMCAP=-1
  9128. ;;
  9129. y|ye|yes)
  9130. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9131. ;;
  9132. *)
  9133. TERMCAP_DIR="${withval}"
  9134. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9135. ;;
  9136. esac
  9137. fi
  9138. TIMERFD_DESCRIP="timerfd"
  9139. TIMERFD_OPTION="timerfd"
  9140. PBX_TIMERFD=0
  9141. # Check whether --with-timerfd was given.
  9142. if test "${with_timerfd+set}" = set; then :
  9143. withval=$with_timerfd;
  9144. case ${withval} in
  9145. n|no)
  9146. USE_TIMERFD=no
  9147. # -1 is a magic value used by menuselect to know that the package
  9148. # was disabled, other than 'not found'
  9149. PBX_TIMERFD=-1
  9150. ;;
  9151. y|ye|yes)
  9152. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9153. ;;
  9154. *)
  9155. TIMERFD_DIR="${withval}"
  9156. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9157. ;;
  9158. esac
  9159. fi
  9160. TINFO_DESCRIP="Term Info"
  9161. TINFO_OPTION="tinfo"
  9162. PBX_TINFO=0
  9163. # Check whether --with-tinfo was given.
  9164. if test "${with_tinfo+set}" = set; then :
  9165. withval=$with_tinfo;
  9166. case ${withval} in
  9167. n|no)
  9168. USE_TINFO=no
  9169. # -1 is a magic value used by menuselect to know that the package
  9170. # was disabled, other than 'not found'
  9171. PBX_TINFO=-1
  9172. ;;
  9173. y|ye|yes)
  9174. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9175. ;;
  9176. *)
  9177. TINFO_DIR="${withval}"
  9178. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9179. ;;
  9180. esac
  9181. fi
  9182. TONEZONE_DESCRIP="tonezone"
  9183. TONEZONE_OPTION="tonezone"
  9184. PBX_TONEZONE=0
  9185. # Check whether --with-tonezone was given.
  9186. if test "${with_tonezone+set}" = set; then :
  9187. withval=$with_tonezone;
  9188. case ${withval} in
  9189. n|no)
  9190. USE_TONEZONE=no
  9191. # -1 is a magic value used by menuselect to know that the package
  9192. # was disabled, other than 'not found'
  9193. PBX_TONEZONE=-1
  9194. ;;
  9195. y|ye|yes)
  9196. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9197. ;;
  9198. *)
  9199. TONEZONE_DIR="${withval}"
  9200. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9201. ;;
  9202. esac
  9203. fi
  9204. UNIXODBC_DESCRIP="unixODBC"
  9205. UNIXODBC_OPTION="unixodbc"
  9206. PBX_UNIXODBC=0
  9207. # Check whether --with-unixodbc was given.
  9208. if test "${with_unixodbc+set}" = set; then :
  9209. withval=$with_unixodbc;
  9210. case ${withval} in
  9211. n|no)
  9212. USE_UNIXODBC=no
  9213. # -1 is a magic value used by menuselect to know that the package
  9214. # was disabled, other than 'not found'
  9215. PBX_UNIXODBC=-1
  9216. ;;
  9217. y|ye|yes)
  9218. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9219. ;;
  9220. *)
  9221. UNIXODBC_DIR="${withval}"
  9222. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9223. ;;
  9224. esac
  9225. fi
  9226. USB_DESCRIP="usb"
  9227. USB_OPTION="usb"
  9228. PBX_USB=0
  9229. # Check whether --with-usb was given.
  9230. if test "${with_usb+set}" = set; then :
  9231. withval=$with_usb;
  9232. case ${withval} in
  9233. n|no)
  9234. USE_USB=no
  9235. # -1 is a magic value used by menuselect to know that the package
  9236. # was disabled, other than 'not found'
  9237. PBX_USB=-1
  9238. ;;
  9239. y|ye|yes)
  9240. ac_mandatory_list="${ac_mandatory_list} USB"
  9241. ;;
  9242. *)
  9243. USB_DIR="${withval}"
  9244. ac_mandatory_list="${ac_mandatory_list} USB"
  9245. ;;
  9246. esac
  9247. fi
  9248. VORBIS_DESCRIP="Vorbis"
  9249. VORBIS_OPTION="vorbis"
  9250. PBX_VORBIS=0
  9251. # Check whether --with-vorbis was given.
  9252. if test "${with_vorbis+set}" = set; then :
  9253. withval=$with_vorbis;
  9254. case ${withval} in
  9255. n|no)
  9256. USE_VORBIS=no
  9257. # -1 is a magic value used by menuselect to know that the package
  9258. # was disabled, other than 'not found'
  9259. PBX_VORBIS=-1
  9260. ;;
  9261. y|ye|yes)
  9262. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9263. ;;
  9264. *)
  9265. VORBIS_DIR="${withval}"
  9266. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9267. ;;
  9268. esac
  9269. fi
  9270. VPB_DESCRIP="Voicetronix API"
  9271. VPB_OPTION="vpb"
  9272. PBX_VPB=0
  9273. # Check whether --with-vpb was given.
  9274. if test "${with_vpb+set}" = set; then :
  9275. withval=$with_vpb;
  9276. case ${withval} in
  9277. n|no)
  9278. USE_VPB=no
  9279. # -1 is a magic value used by menuselect to know that the package
  9280. # was disabled, other than 'not found'
  9281. PBX_VPB=-1
  9282. ;;
  9283. y|ye|yes)
  9284. ac_mandatory_list="${ac_mandatory_list} VPB"
  9285. ;;
  9286. *)
  9287. VPB_DIR="${withval}"
  9288. ac_mandatory_list="${ac_mandatory_list} VPB"
  9289. ;;
  9290. esac
  9291. fi
  9292. X11_DESCRIP="X11"
  9293. X11_OPTION="x11"
  9294. PBX_X11=0
  9295. # Check whether --with-x11 was given.
  9296. if test "${with_x11+set}" = set; then :
  9297. withval=$with_x11;
  9298. case ${withval} in
  9299. n|no)
  9300. USE_X11=no
  9301. # -1 is a magic value used by menuselect to know that the package
  9302. # was disabled, other than 'not found'
  9303. PBX_X11=-1
  9304. ;;
  9305. y|ye|yes)
  9306. ac_mandatory_list="${ac_mandatory_list} X11"
  9307. ;;
  9308. *)
  9309. X11_DIR="${withval}"
  9310. ac_mandatory_list="${ac_mandatory_list} X11"
  9311. ;;
  9312. esac
  9313. fi
  9314. ZLIB_DESCRIP="zlib compression"
  9315. ZLIB_OPTION="z"
  9316. PBX_ZLIB=0
  9317. # Check whether --with-z was given.
  9318. if test "${with_z+set}" = set; then :
  9319. withval=$with_z;
  9320. case ${withval} in
  9321. n|no)
  9322. USE_ZLIB=no
  9323. # -1 is a magic value used by menuselect to know that the package
  9324. # was disabled, other than 'not found'
  9325. PBX_ZLIB=-1
  9326. ;;
  9327. y|ye|yes)
  9328. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9329. ;;
  9330. *)
  9331. ZLIB_DIR="${withval}"
  9332. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9333. ;;
  9334. esac
  9335. fi
  9336. # check for basic system features and functionality before
  9337. # checking for package libraries
  9338. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9339. # for constant arguments. Useless!
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  9341. $as_echo_n "checking for working alloca.h... " >&6; }
  9342. if test "${ac_cv_working_alloca_h+set}" = set; then :
  9343. $as_echo_n "(cached) " >&6
  9344. else
  9345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9346. /* end confdefs.h. */
  9347. #include <alloca.h>
  9348. int
  9349. main ()
  9350. {
  9351. char *p = (char *) alloca (2 * sizeof (int));
  9352. if (p) return 0;
  9353. ;
  9354. return 0;
  9355. }
  9356. _ACEOF
  9357. if ac_fn_c_try_link "$LINENO"; then :
  9358. ac_cv_working_alloca_h=yes
  9359. else
  9360. ac_cv_working_alloca_h=no
  9361. fi
  9362. rm -f core conftest.err conftest.$ac_objext \
  9363. conftest$ac_exeext conftest.$ac_ext
  9364. fi
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  9366. $as_echo "$ac_cv_working_alloca_h" >&6; }
  9367. if test $ac_cv_working_alloca_h = yes; then
  9368. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  9369. fi
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  9371. $as_echo_n "checking for alloca... " >&6; }
  9372. if test "${ac_cv_func_alloca_works+set}" = set; then :
  9373. $as_echo_n "(cached) " >&6
  9374. else
  9375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9376. /* end confdefs.h. */
  9377. #ifdef __GNUC__
  9378. # define alloca __builtin_alloca
  9379. #else
  9380. # ifdef _MSC_VER
  9381. # include <malloc.h>
  9382. # define alloca _alloca
  9383. # else
  9384. # ifdef HAVE_ALLOCA_H
  9385. # include <alloca.h>
  9386. # else
  9387. # ifdef _AIX
  9388. #pragma alloca
  9389. # else
  9390. # ifndef alloca /* predefined by HP cc +Olibcalls */
  9391. char *alloca ();
  9392. # endif
  9393. # endif
  9394. # endif
  9395. # endif
  9396. #endif
  9397. int
  9398. main ()
  9399. {
  9400. char *p = (char *) alloca (1);
  9401. if (p) return 0;
  9402. ;
  9403. return 0;
  9404. }
  9405. _ACEOF
  9406. if ac_fn_c_try_link "$LINENO"; then :
  9407. ac_cv_func_alloca_works=yes
  9408. else
  9409. ac_cv_func_alloca_works=no
  9410. fi
  9411. rm -f core conftest.err conftest.$ac_objext \
  9412. conftest$ac_exeext conftest.$ac_ext
  9413. fi
  9414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  9415. $as_echo "$ac_cv_func_alloca_works" >&6; }
  9416. if test $ac_cv_func_alloca_works = yes; then
  9417. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  9418. else
  9419. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  9420. # that cause trouble. Some versions do not even contain alloca or
  9421. # contain a buggy version. If you still want to use their alloca,
  9422. # use ar to extract alloca.o from them instead of compiling alloca.c.
  9423. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  9424. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  9426. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  9427. if test "${ac_cv_os_cray+set}" = set; then :
  9428. $as_echo_n "(cached) " >&6
  9429. else
  9430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9431. /* end confdefs.h. */
  9432. #if defined CRAY && ! defined CRAY2
  9433. webecray
  9434. #else
  9435. wenotbecray
  9436. #endif
  9437. _ACEOF
  9438. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9439. $EGREP "webecray" >/dev/null 2>&1; then :
  9440. ac_cv_os_cray=yes
  9441. else
  9442. ac_cv_os_cray=no
  9443. fi
  9444. rm -f conftest*
  9445. fi
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  9447. $as_echo "$ac_cv_os_cray" >&6; }
  9448. if test $ac_cv_os_cray = yes; then
  9449. for ac_func in _getb67 GETB67 getb67; do
  9450. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9451. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9452. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9453. cat >>confdefs.h <<_ACEOF
  9454. #define CRAY_STACKSEG_END $ac_func
  9455. _ACEOF
  9456. break
  9457. fi
  9458. done
  9459. fi
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  9461. $as_echo_n "checking stack direction for C alloca... " >&6; }
  9462. if test "${ac_cv_c_stack_direction+set}" = set; then :
  9463. $as_echo_n "(cached) " >&6
  9464. else
  9465. if test "$cross_compiling" = yes; then :
  9466. ac_cv_c_stack_direction=0
  9467. else
  9468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9469. /* end confdefs.h. */
  9470. $ac_includes_default
  9471. int
  9472. find_stack_direction ()
  9473. {
  9474. static char *addr = 0;
  9475. auto char dummy;
  9476. if (addr == 0)
  9477. {
  9478. addr = &dummy;
  9479. return find_stack_direction ();
  9480. }
  9481. else
  9482. return (&dummy > addr) ? 1 : -1;
  9483. }
  9484. int
  9485. main ()
  9486. {
  9487. return find_stack_direction () < 0;
  9488. }
  9489. _ACEOF
  9490. if ac_fn_c_try_run "$LINENO"; then :
  9491. ac_cv_c_stack_direction=1
  9492. else
  9493. ac_cv_c_stack_direction=-1
  9494. fi
  9495. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9496. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9497. fi
  9498. fi
  9499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  9500. $as_echo "$ac_cv_c_stack_direction" >&6; }
  9501. cat >>confdefs.h <<_ACEOF
  9502. #define STACK_DIRECTION $ac_cv_c_stack_direction
  9503. _ACEOF
  9504. fi
  9505. ac_header_dirent=no
  9506. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  9507. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  9509. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  9510. if eval "test \"\${$as_ac_Header+set}\"" = set; then :
  9511. $as_echo_n "(cached) " >&6
  9512. else
  9513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9514. /* end confdefs.h. */
  9515. #include <sys/types.h>
  9516. #include <$ac_hdr>
  9517. int
  9518. main ()
  9519. {
  9520. if ((DIR *) 0)
  9521. return 0;
  9522. ;
  9523. return 0;
  9524. }
  9525. _ACEOF
  9526. if ac_fn_c_try_compile "$LINENO"; then :
  9527. eval "$as_ac_Header=yes"
  9528. else
  9529. eval "$as_ac_Header=no"
  9530. fi
  9531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9532. fi
  9533. eval ac_res=\$$as_ac_Header
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9535. $as_echo "$ac_res" >&6; }
  9536. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9537. cat >>confdefs.h <<_ACEOF
  9538. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  9539. _ACEOF
  9540. ac_header_dirent=$ac_hdr; break
  9541. fi
  9542. done
  9543. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  9544. if test $ac_header_dirent = dirent.h; then
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9546. $as_echo_n "checking for library containing opendir... " >&6; }
  9547. if test "${ac_cv_search_opendir+set}" = set; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. ac_func_search_save_LIBS=$LIBS
  9551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9552. /* end confdefs.h. */
  9553. /* Override any GCC internal prototype to avoid an error.
  9554. Use char because int might match the return type of a GCC
  9555. builtin and then its argument prototype would still apply. */
  9556. #ifdef __cplusplus
  9557. extern "C"
  9558. #endif
  9559. char opendir ();
  9560. int
  9561. main ()
  9562. {
  9563. return opendir ();
  9564. ;
  9565. return 0;
  9566. }
  9567. _ACEOF
  9568. for ac_lib in '' dir; do
  9569. if test -z "$ac_lib"; then
  9570. ac_res="none required"
  9571. else
  9572. ac_res=-l$ac_lib
  9573. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9574. fi
  9575. if ac_fn_c_try_link "$LINENO"; then :
  9576. ac_cv_search_opendir=$ac_res
  9577. fi
  9578. rm -f core conftest.err conftest.$ac_objext \
  9579. conftest$ac_exeext
  9580. if test "${ac_cv_search_opendir+set}" = set; then :
  9581. break
  9582. fi
  9583. done
  9584. if test "${ac_cv_search_opendir+set}" = set; then :
  9585. else
  9586. ac_cv_search_opendir=no
  9587. fi
  9588. rm conftest.$ac_ext
  9589. LIBS=$ac_func_search_save_LIBS
  9590. fi
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9592. $as_echo "$ac_cv_search_opendir" >&6; }
  9593. ac_res=$ac_cv_search_opendir
  9594. if test "$ac_res" != no; then :
  9595. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9596. fi
  9597. else
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9599. $as_echo_n "checking for library containing opendir... " >&6; }
  9600. if test "${ac_cv_search_opendir+set}" = set; then :
  9601. $as_echo_n "(cached) " >&6
  9602. else
  9603. ac_func_search_save_LIBS=$LIBS
  9604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9605. /* end confdefs.h. */
  9606. /* Override any GCC internal prototype to avoid an error.
  9607. Use char because int might match the return type of a GCC
  9608. builtin and then its argument prototype would still apply. */
  9609. #ifdef __cplusplus
  9610. extern "C"
  9611. #endif
  9612. char opendir ();
  9613. int
  9614. main ()
  9615. {
  9616. return opendir ();
  9617. ;
  9618. return 0;
  9619. }
  9620. _ACEOF
  9621. for ac_lib in '' x; do
  9622. if test -z "$ac_lib"; then
  9623. ac_res="none required"
  9624. else
  9625. ac_res=-l$ac_lib
  9626. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9627. fi
  9628. if ac_fn_c_try_link "$LINENO"; then :
  9629. ac_cv_search_opendir=$ac_res
  9630. fi
  9631. rm -f core conftest.err conftest.$ac_objext \
  9632. conftest$ac_exeext
  9633. if test "${ac_cv_search_opendir+set}" = set; then :
  9634. break
  9635. fi
  9636. done
  9637. if test "${ac_cv_search_opendir+set}" = set; then :
  9638. else
  9639. ac_cv_search_opendir=no
  9640. fi
  9641. rm conftest.$ac_ext
  9642. LIBS=$ac_func_search_save_LIBS
  9643. fi
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9645. $as_echo "$ac_cv_search_opendir" >&6; }
  9646. ac_res=$ac_cv_search_opendir
  9647. if test "$ac_res" != no; then :
  9648. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9649. fi
  9650. fi
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9652. $as_echo_n "checking for ANSI C header files... " >&6; }
  9653. if test "${ac_cv_header_stdc+set}" = set; then :
  9654. $as_echo_n "(cached) " >&6
  9655. else
  9656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9657. /* end confdefs.h. */
  9658. #include <stdlib.h>
  9659. #include <stdarg.h>
  9660. #include <string.h>
  9661. #include <float.h>
  9662. int
  9663. main ()
  9664. {
  9665. ;
  9666. return 0;
  9667. }
  9668. _ACEOF
  9669. if ac_fn_c_try_compile "$LINENO"; then :
  9670. ac_cv_header_stdc=yes
  9671. else
  9672. ac_cv_header_stdc=no
  9673. fi
  9674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9675. if test $ac_cv_header_stdc = yes; then
  9676. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9678. /* end confdefs.h. */
  9679. #include <string.h>
  9680. _ACEOF
  9681. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9682. $EGREP "memchr" >/dev/null 2>&1; then :
  9683. else
  9684. ac_cv_header_stdc=no
  9685. fi
  9686. rm -f conftest*
  9687. fi
  9688. if test $ac_cv_header_stdc = yes; then
  9689. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9691. /* end confdefs.h. */
  9692. #include <stdlib.h>
  9693. _ACEOF
  9694. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9695. $EGREP "free" >/dev/null 2>&1; then :
  9696. else
  9697. ac_cv_header_stdc=no
  9698. fi
  9699. rm -f conftest*
  9700. fi
  9701. if test $ac_cv_header_stdc = yes; then
  9702. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9703. if test "$cross_compiling" = yes; then :
  9704. :
  9705. else
  9706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9707. /* end confdefs.h. */
  9708. #include <ctype.h>
  9709. #include <stdlib.h>
  9710. #if ((' ' & 0x0FF) == 0x020)
  9711. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9712. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9713. #else
  9714. # define ISLOWER(c) \
  9715. (('a' <= (c) && (c) <= 'i') \
  9716. || ('j' <= (c) && (c) <= 'r') \
  9717. || ('s' <= (c) && (c) <= 'z'))
  9718. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9719. #endif
  9720. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9721. int
  9722. main ()
  9723. {
  9724. int i;
  9725. for (i = 0; i < 256; i++)
  9726. if (XOR (islower (i), ISLOWER (i))
  9727. || toupper (i) != TOUPPER (i))
  9728. return 2;
  9729. return 0;
  9730. }
  9731. _ACEOF
  9732. if ac_fn_c_try_run "$LINENO"; then :
  9733. else
  9734. ac_cv_header_stdc=no
  9735. fi
  9736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9737. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9738. fi
  9739. fi
  9740. fi
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9742. $as_echo "$ac_cv_header_stdc" >&6; }
  9743. if test $ac_cv_header_stdc = yes; then
  9744. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9745. fi
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  9747. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  9748. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  9749. $as_echo_n "(cached) " >&6
  9750. else
  9751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9752. /* end confdefs.h. */
  9753. #include <sys/types.h>
  9754. #include <sys/wait.h>
  9755. #ifndef WEXITSTATUS
  9756. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  9757. #endif
  9758. #ifndef WIFEXITED
  9759. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  9760. #endif
  9761. int
  9762. main ()
  9763. {
  9764. int s;
  9765. wait (&s);
  9766. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  9767. ;
  9768. return 0;
  9769. }
  9770. _ACEOF
  9771. if ac_fn_c_try_compile "$LINENO"; then :
  9772. ac_cv_header_sys_wait_h=yes
  9773. else
  9774. ac_cv_header_sys_wait_h=no
  9775. fi
  9776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9777. fi
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  9779. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  9780. if test $ac_cv_header_sys_wait_h = yes; then
  9781. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  9782. fi
  9783. 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
  9784. do :
  9785. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9786. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9787. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9788. cat >>confdefs.h <<_ACEOF
  9789. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9790. _ACEOF
  9791. fi
  9792. done
  9793. # some embedded systems omit internationalization (locale) support
  9794. for ac_header in xlocale.h
  9795. do :
  9796. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  9797. if test "x$ac_cv_header_xlocale_h" = x""yes; then :
  9798. cat >>confdefs.h <<_ACEOF
  9799. #define HAVE_XLOCALE_H 1
  9800. _ACEOF
  9801. fi
  9802. done
  9803. for ac_header in winsock.h winsock2.h
  9804. do :
  9805. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9806. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9807. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9808. cat >>confdefs.h <<_ACEOF
  9809. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9810. _ACEOF
  9811. fi
  9812. done
  9813. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  9814. if test "x$ac_cv_header_sys_poll_h" = x""yes; then :
  9815. else
  9816. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  9817. fi
  9818. # Check whether --enable-largefile was given.
  9819. if test "${enable_largefile+set}" = set; then :
  9820. enableval=$enable_largefile;
  9821. fi
  9822. if test "$enable_largefile" != no; then
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  9824. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9825. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  9826. $as_echo_n "(cached) " >&6
  9827. else
  9828. ac_cv_sys_largefile_CC=no
  9829. if test "$GCC" != yes; then
  9830. ac_save_CC=$CC
  9831. while :; do
  9832. # IRIX 6.2 and later do not support large files by default,
  9833. # so use the C compiler's -n32 option if that helps.
  9834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9835. /* end confdefs.h. */
  9836. #include <sys/types.h>
  9837. /* Check that off_t can represent 2**63 - 1 correctly.
  9838. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9839. since some C++ compilers masquerading as C compilers
  9840. incorrectly reject 9223372036854775807. */
  9841. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9842. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9843. && LARGE_OFF_T % 2147483647 == 1)
  9844. ? 1 : -1];
  9845. int
  9846. main ()
  9847. {
  9848. ;
  9849. return 0;
  9850. }
  9851. _ACEOF
  9852. if ac_fn_c_try_compile "$LINENO"; then :
  9853. break
  9854. fi
  9855. rm -f core conftest.err conftest.$ac_objext
  9856. CC="$CC -n32"
  9857. if ac_fn_c_try_compile "$LINENO"; then :
  9858. ac_cv_sys_largefile_CC=' -n32'; break
  9859. fi
  9860. rm -f core conftest.err conftest.$ac_objext
  9861. break
  9862. done
  9863. CC=$ac_save_CC
  9864. rm -f conftest.$ac_ext
  9865. fi
  9866. fi
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  9868. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9869. if test "$ac_cv_sys_largefile_CC" != no; then
  9870. CC=$CC$ac_cv_sys_largefile_CC
  9871. fi
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9873. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9874. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  9875. $as_echo_n "(cached) " >&6
  9876. else
  9877. while :; do
  9878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9879. /* end confdefs.h. */
  9880. #include <sys/types.h>
  9881. /* Check that off_t can represent 2**63 - 1 correctly.
  9882. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9883. since some C++ compilers masquerading as C compilers
  9884. incorrectly reject 9223372036854775807. */
  9885. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9886. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9887. && LARGE_OFF_T % 2147483647 == 1)
  9888. ? 1 : -1];
  9889. int
  9890. main ()
  9891. {
  9892. ;
  9893. return 0;
  9894. }
  9895. _ACEOF
  9896. if ac_fn_c_try_compile "$LINENO"; then :
  9897. ac_cv_sys_file_offset_bits=no; break
  9898. fi
  9899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9901. /* end confdefs.h. */
  9902. #define _FILE_OFFSET_BITS 64
  9903. #include <sys/types.h>
  9904. /* Check that off_t can represent 2**63 - 1 correctly.
  9905. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9906. since some C++ compilers masquerading as C compilers
  9907. incorrectly reject 9223372036854775807. */
  9908. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9909. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9910. && LARGE_OFF_T % 2147483647 == 1)
  9911. ? 1 : -1];
  9912. int
  9913. main ()
  9914. {
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. if ac_fn_c_try_compile "$LINENO"; then :
  9920. ac_cv_sys_file_offset_bits=64; break
  9921. fi
  9922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9923. ac_cv_sys_file_offset_bits=unknown
  9924. break
  9925. done
  9926. fi
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  9928. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9929. case $ac_cv_sys_file_offset_bits in #(
  9930. no | unknown) ;;
  9931. *)
  9932. cat >>confdefs.h <<_ACEOF
  9933. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9934. _ACEOF
  9935. ;;
  9936. esac
  9937. rm -rf conftest*
  9938. if test $ac_cv_sys_file_offset_bits = unknown; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  9940. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9941. if test "${ac_cv_sys_large_files+set}" = set; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. while :; do
  9945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9946. /* end confdefs.h. */
  9947. #include <sys/types.h>
  9948. /* Check that off_t can represent 2**63 - 1 correctly.
  9949. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9950. since some C++ compilers masquerading as C compilers
  9951. incorrectly reject 9223372036854775807. */
  9952. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9953. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9954. && LARGE_OFF_T % 2147483647 == 1)
  9955. ? 1 : -1];
  9956. int
  9957. main ()
  9958. {
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. if ac_fn_c_try_compile "$LINENO"; then :
  9964. ac_cv_sys_large_files=no; break
  9965. fi
  9966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9968. /* end confdefs.h. */
  9969. #define _LARGE_FILES 1
  9970. #include <sys/types.h>
  9971. /* Check that off_t can represent 2**63 - 1 correctly.
  9972. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9973. since some C++ compilers masquerading as C compilers
  9974. incorrectly reject 9223372036854775807. */
  9975. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9976. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9977. && LARGE_OFF_T % 2147483647 == 1)
  9978. ? 1 : -1];
  9979. int
  9980. main ()
  9981. {
  9982. ;
  9983. return 0;
  9984. }
  9985. _ACEOF
  9986. if ac_fn_c_try_compile "$LINENO"; then :
  9987. ac_cv_sys_large_files=1; break
  9988. fi
  9989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9990. ac_cv_sys_large_files=unknown
  9991. break
  9992. done
  9993. fi
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  9995. $as_echo "$ac_cv_sys_large_files" >&6; }
  9996. case $ac_cv_sys_large_files in #(
  9997. no | unknown) ;;
  9998. *)
  9999. cat >>confdefs.h <<_ACEOF
  10000. #define _LARGE_FILES $ac_cv_sys_large_files
  10001. _ACEOF
  10002. ;;
  10003. esac
  10004. rm -rf conftest*
  10005. fi
  10006. fi
  10007. # Checks for typedefs, structures, and compiler characteristics.
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  10009. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  10010. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  10011. $as_echo_n "(cached) " >&6
  10012. else
  10013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10014. /* end confdefs.h. */
  10015. #include <stdbool.h>
  10016. #ifndef bool
  10017. "error: bool is not defined"
  10018. #endif
  10019. #ifndef false
  10020. "error: false is not defined"
  10021. #endif
  10022. #if false
  10023. "error: false is not 0"
  10024. #endif
  10025. #ifndef true
  10026. "error: true is not defined"
  10027. #endif
  10028. #if true != 1
  10029. "error: true is not 1"
  10030. #endif
  10031. #ifndef __bool_true_false_are_defined
  10032. "error: __bool_true_false_are_defined is not defined"
  10033. #endif
  10034. struct s { _Bool s: 1; _Bool t; } s;
  10035. char a[true == 1 ? 1 : -1];
  10036. char b[false == 0 ? 1 : -1];
  10037. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  10038. char d[(bool) 0.5 == true ? 1 : -1];
  10039. bool e = &s;
  10040. char f[(_Bool) 0.0 == false ? 1 : -1];
  10041. char g[true];
  10042. char h[sizeof (_Bool)];
  10043. char i[sizeof s.t];
  10044. enum { j = false, k = true, l = false * true, m = true * 256 };
  10045. /* The following fails for
  10046. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  10047. _Bool n[m];
  10048. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  10049. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  10050. # if defined __xlc__ || defined __GNUC__
  10051. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  10052. reported by James Lemley on 2005-10-05; see
  10053. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  10054. This test is not quite right, since xlc is allowed to
  10055. reject this program, as the initializer for xlcbug is
  10056. not one of the forms that C requires support for.
  10057. However, doing the test right would require a runtime
  10058. test, and that would make cross-compilation harder.
  10059. Let us hope that IBM fixes the xlc bug, and also adds
  10060. support for this kind of constant expression. In the
  10061. meantime, this test will reject xlc, which is OK, since
  10062. our stdbool.h substitute should suffice. We also test
  10063. this with GCC, where it should work, to detect more
  10064. quickly whether someone messes up the test in the
  10065. future. */
  10066. char digs[] = "0123456789";
  10067. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  10068. # endif
  10069. /* Catch a bug in an HP-UX C compiler. See
  10070. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  10071. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  10072. */
  10073. _Bool q = true;
  10074. _Bool *pq = &q;
  10075. int
  10076. main ()
  10077. {
  10078. *pq |= q;
  10079. *pq |= ! q;
  10080. /* Refer to every declared value, to avoid compiler optimizations. */
  10081. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  10082. + !m + !n + !o + !p + !q + !pq);
  10083. ;
  10084. return 0;
  10085. }
  10086. _ACEOF
  10087. if ac_fn_c_try_compile "$LINENO"; then :
  10088. ac_cv_header_stdbool_h=yes
  10089. else
  10090. ac_cv_header_stdbool_h=no
  10091. fi
  10092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  10095. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  10096. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  10097. if test "x$ac_cv_type__Bool" = x""yes; then :
  10098. cat >>confdefs.h <<_ACEOF
  10099. #define HAVE__BOOL 1
  10100. _ACEOF
  10101. fi
  10102. if test $ac_cv_header_stdbool_h = yes; then
  10103. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  10104. fi
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10106. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10107. if test "${ac_cv_c_const+set}" = set; then :
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10111. /* end confdefs.h. */
  10112. int
  10113. main ()
  10114. {
  10115. /* FIXME: Include the comments suggested by Paul. */
  10116. #ifndef __cplusplus
  10117. /* Ultrix mips cc rejects this. */
  10118. typedef int charset[2];
  10119. const charset cs;
  10120. /* SunOS 4.1.1 cc rejects this. */
  10121. char const *const *pcpcc;
  10122. char **ppc;
  10123. /* NEC SVR4.0.2 mips cc rejects this. */
  10124. struct point {int x, y;};
  10125. static struct point const zero = {0,0};
  10126. /* AIX XL C 1.02.0.0 rejects this.
  10127. It does not let you subtract one const X* pointer from another in
  10128. an arm of an if-expression whose if-part is not a constant
  10129. expression */
  10130. const char *g = "string";
  10131. pcpcc = &g + (g ? g-g : 0);
  10132. /* HPUX 7.0 cc rejects these. */
  10133. ++pcpcc;
  10134. ppc = (char**) pcpcc;
  10135. pcpcc = (char const *const *) ppc;
  10136. { /* SCO 3.2v4 cc rejects this. */
  10137. char *t;
  10138. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10139. *t++ = 0;
  10140. if (s) return 0;
  10141. }
  10142. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10143. int x[] = {25, 17};
  10144. const int *foo = &x[0];
  10145. ++foo;
  10146. }
  10147. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10148. typedef const int *iptr;
  10149. iptr p = 0;
  10150. ++p;
  10151. }
  10152. { /* AIX XL C 1.02.0.0 rejects this saying
  10153. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10154. struct s { int j; const int *ap[3]; };
  10155. struct s *b; b->j = 5;
  10156. }
  10157. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10158. const int foo = 10;
  10159. if (!foo) return 0;
  10160. }
  10161. return !cs[0] && !zero.x;
  10162. #endif
  10163. ;
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. if ac_fn_c_try_compile "$LINENO"; then :
  10168. ac_cv_c_const=yes
  10169. else
  10170. ac_cv_c_const=no
  10171. fi
  10172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10173. fi
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10175. $as_echo "$ac_cv_c_const" >&6; }
  10176. if test $ac_cv_c_const = no; then
  10177. $as_echo "#define const /**/" >>confdefs.h
  10178. fi
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  10180. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  10181. if test "${ac_cv_type_uid_t+set}" = set; then :
  10182. $as_echo_n "(cached) " >&6
  10183. else
  10184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10185. /* end confdefs.h. */
  10186. #include <sys/types.h>
  10187. _ACEOF
  10188. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10189. $EGREP "uid_t" >/dev/null 2>&1; then :
  10190. ac_cv_type_uid_t=yes
  10191. else
  10192. ac_cv_type_uid_t=no
  10193. fi
  10194. rm -f conftest*
  10195. fi
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  10197. $as_echo "$ac_cv_type_uid_t" >&6; }
  10198. if test $ac_cv_type_uid_t = no; then
  10199. $as_echo "#define uid_t int" >>confdefs.h
  10200. $as_echo "#define gid_t int" >>confdefs.h
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10203. $as_echo_n "checking for inline... " >&6; }
  10204. if test "${ac_cv_c_inline+set}" = set; then :
  10205. $as_echo_n "(cached) " >&6
  10206. else
  10207. ac_cv_c_inline=no
  10208. for ac_kw in inline __inline__ __inline; do
  10209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10210. /* end confdefs.h. */
  10211. #ifndef __cplusplus
  10212. typedef int foo_t;
  10213. static $ac_kw foo_t static_foo () {return 0; }
  10214. $ac_kw foo_t foo () {return 0; }
  10215. #endif
  10216. _ACEOF
  10217. if ac_fn_c_try_compile "$LINENO"; then :
  10218. ac_cv_c_inline=$ac_kw
  10219. fi
  10220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10221. test "$ac_cv_c_inline" != no && break
  10222. done
  10223. fi
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10225. $as_echo "$ac_cv_c_inline" >&6; }
  10226. case $ac_cv_c_inline in
  10227. inline | yes) ;;
  10228. *)
  10229. case $ac_cv_c_inline in
  10230. no) ac_val=;;
  10231. *) ac_val=$ac_cv_c_inline;;
  10232. esac
  10233. cat >>confdefs.h <<_ACEOF
  10234. #ifndef __cplusplus
  10235. #define inline $ac_val
  10236. #endif
  10237. _ACEOF
  10238. ;;
  10239. esac
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  10241. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  10242. if test "${ac_cv_type_long_double_wider+set}" = set; then :
  10243. $as_echo_n "(cached) " >&6
  10244. else
  10245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10246. /* end confdefs.h. */
  10247. #include <float.h>
  10248. long double const a[] =
  10249. {
  10250. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  10251. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  10252. };
  10253. long double
  10254. f (long double x)
  10255. {
  10256. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  10257. + (x ? f (x) : 'c'));
  10258. }
  10259. int
  10260. main ()
  10261. {
  10262. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  10263. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  10264. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  10265. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  10266. && (int) LDBL_EPSILON == 0
  10267. )];
  10268. test_array [0] = 0
  10269. ;
  10270. return 0;
  10271. }
  10272. _ACEOF
  10273. if ac_fn_c_try_compile "$LINENO"; then :
  10274. ac_cv_type_long_double_wider=yes
  10275. else
  10276. ac_cv_type_long_double_wider=no
  10277. fi
  10278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10279. fi
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  10281. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  10282. if test $ac_cv_type_long_double_wider = yes; then
  10283. $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  10284. fi
  10285. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  10286. if test "x$ac_cv_type_mode_t" = x""yes; then :
  10287. else
  10288. cat >>confdefs.h <<_ACEOF
  10289. #define mode_t int
  10290. _ACEOF
  10291. fi
  10292. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10293. if test "x$ac_cv_type_off_t" = x""yes; then :
  10294. else
  10295. cat >>confdefs.h <<_ACEOF
  10296. #define off_t long int
  10297. _ACEOF
  10298. fi
  10299. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10300. if test "x$ac_cv_type_pid_t" = x""yes; then :
  10301. else
  10302. cat >>confdefs.h <<_ACEOF
  10303. #define pid_t int
  10304. _ACEOF
  10305. fi
  10306. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10307. if test "x$ac_cv_type_size_t" = x""yes; then :
  10308. else
  10309. cat >>confdefs.h <<_ACEOF
  10310. #define size_t unsigned int
  10311. _ACEOF
  10312. fi
  10313. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  10314. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
  10315. cat >>confdefs.h <<_ACEOF
  10316. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  10317. _ACEOF
  10318. fi
  10319. ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/socket.h>
  10320. "
  10321. if test "x$ac_cv_member_struct_ucred_uid" = x""yes; then :
  10322. cat >>confdefs.h <<_ACEOF
  10323. #define HAVE_STRUCT_UCRED_UID 1
  10324. _ACEOF
  10325. fi
  10326. ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/socket.h>
  10327. "
  10328. if test "x$ac_cv_member_struct_ucred_cr_uid" = x""yes; then :
  10329. cat >>confdefs.h <<_ACEOF
  10330. #define HAVE_STRUCT_UCRED_CR_UID 1
  10331. _ACEOF
  10332. fi
  10333. 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>
  10334. "
  10335. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = x""yes; then :
  10336. cat >>confdefs.h <<_ACEOF
  10337. #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
  10338. _ACEOF
  10339. fi
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  10341. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  10342. if test "${ac_cv_header_time+set}" = set; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10346. /* end confdefs.h. */
  10347. #include <sys/types.h>
  10348. #include <sys/time.h>
  10349. #include <time.h>
  10350. int
  10351. main ()
  10352. {
  10353. if ((struct tm *) 0)
  10354. return 0;
  10355. ;
  10356. return 0;
  10357. }
  10358. _ACEOF
  10359. if ac_fn_c_try_compile "$LINENO"; then :
  10360. ac_cv_header_time=yes
  10361. else
  10362. ac_cv_header_time=no
  10363. fi
  10364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10365. fi
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  10367. $as_echo "$ac_cv_header_time" >&6; }
  10368. if test $ac_cv_header_time = yes; then
  10369. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  10370. fi
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10372. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10373. if test "${ac_cv_struct_tm+set}" = set; then :
  10374. $as_echo_n "(cached) " >&6
  10375. else
  10376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10377. /* end confdefs.h. */
  10378. #include <sys/types.h>
  10379. #include <time.h>
  10380. int
  10381. main ()
  10382. {
  10383. struct tm tm;
  10384. int *p = &tm.tm_sec;
  10385. return !p;
  10386. ;
  10387. return 0;
  10388. }
  10389. _ACEOF
  10390. if ac_fn_c_try_compile "$LINENO"; then :
  10391. ac_cv_struct_tm=time.h
  10392. else
  10393. ac_cv_struct_tm=sys/time.h
  10394. fi
  10395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10396. fi
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  10398. $as_echo "$ac_cv_struct_tm" >&6; }
  10399. if test $ac_cv_struct_tm = sys/time.h; then
  10400. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  10401. fi
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  10403. $as_echo_n "checking for working volatile... " >&6; }
  10404. if test "${ac_cv_c_volatile+set}" = set; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10408. /* end confdefs.h. */
  10409. int
  10410. main ()
  10411. {
  10412. volatile int x;
  10413. int * volatile y = (int *) 0;
  10414. return !x && !y;
  10415. ;
  10416. return 0;
  10417. }
  10418. _ACEOF
  10419. if ac_fn_c_try_compile "$LINENO"; then :
  10420. ac_cv_c_volatile=yes
  10421. else
  10422. ac_cv_c_volatile=no
  10423. fi
  10424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10425. fi
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  10427. $as_echo "$ac_cv_c_volatile" >&6; }
  10428. if test $ac_cv_c_volatile = no; then
  10429. $as_echo "#define volatile /**/" >>confdefs.h
  10430. fi
  10431. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10432. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10433. cat >>confdefs.h <<_ACEOF
  10434. #define HAVE_PTRDIFF_T 1
  10435. _ACEOF
  10436. fi
  10437. # Checks for library functions.
  10438. for ac_header in unistd.h
  10439. do :
  10440. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  10441. if test "x$ac_cv_header_unistd_h" = x""yes; then :
  10442. cat >>confdefs.h <<_ACEOF
  10443. #define HAVE_UNISTD_H 1
  10444. _ACEOF
  10445. fi
  10446. done
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  10448. $as_echo_n "checking for working chown... " >&6; }
  10449. if test "${ac_cv_func_chown_works+set}" = set; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. if test "$cross_compiling" = yes; then :
  10453. ac_cv_func_chown_works=no
  10454. else
  10455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h. */
  10457. $ac_includes_default
  10458. #include <fcntl.h>
  10459. int
  10460. main ()
  10461. {
  10462. char *f = "conftest.chown";
  10463. struct stat before, after;
  10464. if (creat (f, 0600) < 0)
  10465. return 1;
  10466. if (stat (f, &before) < 0)
  10467. return 1;
  10468. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  10469. return 1;
  10470. if (stat (f, &after) < 0)
  10471. return 1;
  10472. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. if ac_fn_c_try_run "$LINENO"; then :
  10478. ac_cv_func_chown_works=yes
  10479. else
  10480. ac_cv_func_chown_works=no
  10481. fi
  10482. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10483. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10484. fi
  10485. rm -f conftest.chown
  10486. fi
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  10488. $as_echo "$ac_cv_func_chown_works" >&6; }
  10489. if test $ac_cv_func_chown_works = yes; then
  10490. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  10491. fi
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  10493. $as_echo_n "checking whether closedir returns void... " >&6; }
  10494. if test "${ac_cv_func_closedir_void+set}" = set; then :
  10495. $as_echo_n "(cached) " >&6
  10496. else
  10497. if test "$cross_compiling" = yes; then :
  10498. ac_cv_func_closedir_void=yes
  10499. else
  10500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10501. /* end confdefs.h. */
  10502. $ac_includes_default
  10503. #include <$ac_header_dirent>
  10504. #ifndef __cplusplus
  10505. int closedir ();
  10506. #endif
  10507. int
  10508. main ()
  10509. {
  10510. return closedir (opendir (".")) != 0;
  10511. ;
  10512. return 0;
  10513. }
  10514. _ACEOF
  10515. if ac_fn_c_try_run "$LINENO"; then :
  10516. ac_cv_func_closedir_void=no
  10517. else
  10518. ac_cv_func_closedir_void=yes
  10519. fi
  10520. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10521. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10522. fi
  10523. fi
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  10525. $as_echo "$ac_cv_func_closedir_void" >&6; }
  10526. if test $ac_cv_func_closedir_void = yes; then
  10527. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  10528. fi
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  10530. $as_echo_n "checking for error_at_line... " >&6; }
  10531. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  10532. $as_echo_n "(cached) " >&6
  10533. else
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. #include <error.h>
  10537. int
  10538. main ()
  10539. {
  10540. error_at_line (0, 0, "", 0, "an error occurred");
  10541. ;
  10542. return 0;
  10543. }
  10544. _ACEOF
  10545. if ac_fn_c_try_link "$LINENO"; then :
  10546. ac_cv_lib_error_at_line=yes
  10547. else
  10548. ac_cv_lib_error_at_line=no
  10549. fi
  10550. rm -f core conftest.err conftest.$ac_objext \
  10551. conftest$ac_exeext conftest.$ac_ext
  10552. fi
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  10554. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  10555. if test $ac_cv_lib_error_at_line = no; then
  10556. case " $LIBOBJS " in
  10557. *" error.$ac_objext "* ) ;;
  10558. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  10559. ;;
  10560. esac
  10561. fi
  10562. for ac_header in vfork.h
  10563. do :
  10564. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  10565. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  10566. cat >>confdefs.h <<_ACEOF
  10567. #define HAVE_VFORK_H 1
  10568. _ACEOF
  10569. fi
  10570. done
  10571. for ac_func in fork vfork
  10572. do :
  10573. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10574. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10575. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10576. cat >>confdefs.h <<_ACEOF
  10577. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10578. _ACEOF
  10579. fi
  10580. done
  10581. if test "x$ac_cv_func_fork" = xyes; then
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  10583. $as_echo_n "checking for working fork... " >&6; }
  10584. if test "${ac_cv_func_fork_works+set}" = set; then :
  10585. $as_echo_n "(cached) " >&6
  10586. else
  10587. if test "$cross_compiling" = yes; then :
  10588. ac_cv_func_fork_works=cross
  10589. else
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. $ac_includes_default
  10593. int
  10594. main ()
  10595. {
  10596. /* By Ruediger Kuhlmann. */
  10597. return fork () < 0;
  10598. ;
  10599. return 0;
  10600. }
  10601. _ACEOF
  10602. if ac_fn_c_try_run "$LINENO"; then :
  10603. ac_cv_func_fork_works=yes
  10604. else
  10605. ac_cv_func_fork_works=no
  10606. fi
  10607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10608. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10609. fi
  10610. fi
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  10612. $as_echo "$ac_cv_func_fork_works" >&6; }
  10613. else
  10614. ac_cv_func_fork_works=$ac_cv_func_fork
  10615. fi
  10616. if test "x$ac_cv_func_fork_works" = xcross; then
  10617. case $host in
  10618. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  10619. # Override, as these systems have only a dummy fork() stub
  10620. ac_cv_func_fork_works=no
  10621. ;;
  10622. *)
  10623. ac_cv_func_fork_works=yes
  10624. ;;
  10625. esac
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  10627. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  10628. fi
  10629. ac_cv_func_vfork_works=$ac_cv_func_vfork
  10630. if test "x$ac_cv_func_vfork" = xyes; then
  10631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  10632. $as_echo_n "checking for working vfork... " >&6; }
  10633. if test "${ac_cv_func_vfork_works+set}" = set; then :
  10634. $as_echo_n "(cached) " >&6
  10635. else
  10636. if test "$cross_compiling" = yes; then :
  10637. ac_cv_func_vfork_works=cross
  10638. else
  10639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10640. /* end confdefs.h. */
  10641. /* Thanks to Paul Eggert for this test. */
  10642. $ac_includes_default
  10643. #include <sys/wait.h>
  10644. #ifdef HAVE_VFORK_H
  10645. # include <vfork.h>
  10646. #endif
  10647. /* On some sparc systems, changes by the child to local and incoming
  10648. argument registers are propagated back to the parent. The compiler
  10649. is told about this with #include <vfork.h>, but some compilers
  10650. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  10651. static variable whose address is put into a register that is
  10652. clobbered by the vfork. */
  10653. static void
  10654. #ifdef __cplusplus
  10655. sparc_address_test (int arg)
  10656. # else
  10657. sparc_address_test (arg) int arg;
  10658. #endif
  10659. {
  10660. static pid_t child;
  10661. if (!child) {
  10662. child = vfork ();
  10663. if (child < 0) {
  10664. perror ("vfork");
  10665. _exit(2);
  10666. }
  10667. if (!child) {
  10668. arg = getpid();
  10669. write(-1, "", 0);
  10670. _exit (arg);
  10671. }
  10672. }
  10673. }
  10674. int
  10675. main ()
  10676. {
  10677. pid_t parent = getpid ();
  10678. pid_t child;
  10679. sparc_address_test (0);
  10680. child = vfork ();
  10681. if (child == 0) {
  10682. /* Here is another test for sparc vfork register problems. This
  10683. test uses lots of local variables, at least as many local
  10684. variables as main has allocated so far including compiler
  10685. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  10686. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  10687. reuse the register of parent for one of the local variables,
  10688. since it will think that parent can't possibly be used any more
  10689. in this routine. Assigning to the local variable will thus
  10690. munge parent in the parent process. */
  10691. pid_t
  10692. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  10693. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  10694. /* Convince the compiler that p..p7 are live; otherwise, it might
  10695. use the same hardware register for all 8 local variables. */
  10696. if (p != p1 || p != p2 || p != p3 || p != p4
  10697. || p != p5 || p != p6 || p != p7)
  10698. _exit(1);
  10699. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  10700. from child file descriptors. If the child closes a descriptor
  10701. before it execs or exits, this munges the parent's descriptor
  10702. as well. Test for this by closing stdout in the child. */
  10703. _exit(close(fileno(stdout)) != 0);
  10704. } else {
  10705. int status;
  10706. struct stat st;
  10707. while (wait(&status) != child)
  10708. ;
  10709. return (
  10710. /* Was there some problem with vforking? */
  10711. child < 0
  10712. /* Did the child fail? (This shouldn't happen.) */
  10713. || status
  10714. /* Did the vfork/compiler bug occur? */
  10715. || parent != getpid()
  10716. /* Did the file descriptor bug occur? */
  10717. || fstat(fileno(stdout), &st) != 0
  10718. );
  10719. }
  10720. }
  10721. _ACEOF
  10722. if ac_fn_c_try_run "$LINENO"; then :
  10723. ac_cv_func_vfork_works=yes
  10724. else
  10725. ac_cv_func_vfork_works=no
  10726. fi
  10727. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10728. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10729. fi
  10730. fi
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  10732. $as_echo "$ac_cv_func_vfork_works" >&6; }
  10733. fi;
  10734. if test "x$ac_cv_func_fork_works" = xcross; then
  10735. ac_cv_func_vfork_works=$ac_cv_func_vfork
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  10737. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  10738. fi
  10739. if test "x$ac_cv_func_vfork_works" = xyes; then
  10740. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  10741. else
  10742. $as_echo "#define vfork fork" >>confdefs.h
  10743. fi
  10744. if test "x$ac_cv_func_fork_works" = xyes; then
  10745. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  10746. PBX_WORKING_FORK=1
  10747. fi
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10749. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  10750. if test "${ac_cv_sys_largefile_source+set}" = set; then :
  10751. $as_echo_n "(cached) " >&6
  10752. else
  10753. while :; do
  10754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10755. /* end confdefs.h. */
  10756. #include <sys/types.h> /* for off_t */
  10757. #include <stdio.h>
  10758. int
  10759. main ()
  10760. {
  10761. int (*fp) (FILE *, off_t, int) = fseeko;
  10762. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10763. ;
  10764. return 0;
  10765. }
  10766. _ACEOF
  10767. if ac_fn_c_try_link "$LINENO"; then :
  10768. ac_cv_sys_largefile_source=no; break
  10769. fi
  10770. rm -f core conftest.err conftest.$ac_objext \
  10771. conftest$ac_exeext conftest.$ac_ext
  10772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10773. /* end confdefs.h. */
  10774. #define _LARGEFILE_SOURCE 1
  10775. #include <sys/types.h> /* for off_t */
  10776. #include <stdio.h>
  10777. int
  10778. main ()
  10779. {
  10780. int (*fp) (FILE *, off_t, int) = fseeko;
  10781. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10782. ;
  10783. return 0;
  10784. }
  10785. _ACEOF
  10786. if ac_fn_c_try_link "$LINENO"; then :
  10787. ac_cv_sys_largefile_source=1; break
  10788. fi
  10789. rm -f core conftest.err conftest.$ac_objext \
  10790. conftest$ac_exeext conftest.$ac_ext
  10791. ac_cv_sys_largefile_source=unknown
  10792. break
  10793. done
  10794. fi
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  10796. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  10797. case $ac_cv_sys_largefile_source in #(
  10798. no | unknown) ;;
  10799. *)
  10800. cat >>confdefs.h <<_ACEOF
  10801. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10802. _ACEOF
  10803. ;;
  10804. esac
  10805. rm -rf conftest*
  10806. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10807. # in glibc 2.1.3, but that breaks too many other things.
  10808. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10809. if test $ac_cv_sys_largefile_source != unknown; then
  10810. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  10811. fi
  10812. if test $ac_cv_c_compiler_gnu = yes; then
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  10814. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  10815. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  10816. $as_echo_n "(cached) " >&6
  10817. else
  10818. ac_pattern="Autoconf.*'x'"
  10819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10820. /* end confdefs.h. */
  10821. #include <sgtty.h>
  10822. Autoconf TIOCGETP
  10823. _ACEOF
  10824. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10825. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  10826. ac_cv_prog_gcc_traditional=yes
  10827. else
  10828. ac_cv_prog_gcc_traditional=no
  10829. fi
  10830. rm -f conftest*
  10831. if test $ac_cv_prog_gcc_traditional = no; then
  10832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10833. /* end confdefs.h. */
  10834. #include <termio.h>
  10835. Autoconf TCGETA
  10836. _ACEOF
  10837. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10838. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  10839. ac_cv_prog_gcc_traditional=yes
  10840. fi
  10841. rm -f conftest*
  10842. fi
  10843. fi
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  10845. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  10846. if test $ac_cv_prog_gcc_traditional = yes; then
  10847. CC="$CC -traditional"
  10848. fi
  10849. fi
  10850. # XXX: these are commented out until we determine whether it matters if our malloc()
  10851. # acts exactly like glibc's or not
  10852. # AC_FUNC_MALLOC
  10853. # AC_FUNC_REALLOC
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  10855. $as_echo_n "checking for working memcmp... " >&6; }
  10856. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  10857. $as_echo_n "(cached) " >&6
  10858. else
  10859. if test "$cross_compiling" = yes; then :
  10860. ac_cv_func_memcmp_working=no
  10861. else
  10862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10863. /* end confdefs.h. */
  10864. $ac_includes_default
  10865. int
  10866. main ()
  10867. {
  10868. /* Some versions of memcmp are not 8-bit clean. */
  10869. char c0 = '\100', c1 = '\200', c2 = '\201';
  10870. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10871. return 1;
  10872. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10873. or more and with at least one buffer not starting on a 4-byte boundary.
  10874. William Lewis provided this test program. */
  10875. {
  10876. char foo[21];
  10877. char bar[21];
  10878. int i;
  10879. for (i = 0; i < 4; i++)
  10880. {
  10881. char *a = foo + i;
  10882. char *b = bar + i;
  10883. strcpy (a, "--------01111111");
  10884. strcpy (b, "--------10000000");
  10885. if (memcmp (a, b, 16) >= 0)
  10886. return 1;
  10887. }
  10888. return 0;
  10889. }
  10890. ;
  10891. return 0;
  10892. }
  10893. _ACEOF
  10894. if ac_fn_c_try_run "$LINENO"; then :
  10895. ac_cv_func_memcmp_working=yes
  10896. else
  10897. ac_cv_func_memcmp_working=no
  10898. fi
  10899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10900. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10901. fi
  10902. fi
  10903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  10904. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  10905. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10906. *" memcmp.$ac_objext "* ) ;;
  10907. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10908. ;;
  10909. esac
  10910. for ac_header in $ac_header_list
  10911. do :
  10912. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10913. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  10914. "
  10915. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10916. cat >>confdefs.h <<_ACEOF
  10917. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10918. _ACEOF
  10919. fi
  10920. done
  10921. for ac_func in getpagesize
  10922. do :
  10923. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  10924. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  10925. cat >>confdefs.h <<_ACEOF
  10926. #define HAVE_GETPAGESIZE 1
  10927. _ACEOF
  10928. fi
  10929. done
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  10931. $as_echo_n "checking for working mmap... " >&6; }
  10932. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  10933. $as_echo_n "(cached) " >&6
  10934. else
  10935. if test "$cross_compiling" = yes; then :
  10936. ac_cv_func_mmap_fixed_mapped=no
  10937. else
  10938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10939. /* end confdefs.h. */
  10940. $ac_includes_default
  10941. /* malloc might have been renamed as rpl_malloc. */
  10942. #undef malloc
  10943. /* Thanks to Mike Haertel and Jim Avera for this test.
  10944. Here is a matrix of mmap possibilities:
  10945. mmap private not fixed
  10946. mmap private fixed at somewhere currently unmapped
  10947. mmap private fixed at somewhere already mapped
  10948. mmap shared not fixed
  10949. mmap shared fixed at somewhere currently unmapped
  10950. mmap shared fixed at somewhere already mapped
  10951. For private mappings, we should verify that changes cannot be read()
  10952. back from the file, nor mmap's back from the file at a different
  10953. address. (There have been systems where private was not correctly
  10954. implemented like the infamous i386 svr4.0, and systems where the
  10955. VM page cache was not coherent with the file system buffer cache
  10956. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10957. For shared mappings, we should conversely verify that changes get
  10958. propagated back to all the places they're supposed to be.
  10959. Grep wants private fixed already mapped.
  10960. The main things grep needs to know about mmap are:
  10961. * does it exist and is it safe to write into the mmap'd area
  10962. * how to use it (BSD variants) */
  10963. #include <fcntl.h>
  10964. #include <sys/mman.h>
  10965. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10966. char *malloc ();
  10967. #endif
  10968. /* This mess was copied from the GNU getpagesize.h. */
  10969. #ifndef HAVE_GETPAGESIZE
  10970. # ifdef _SC_PAGESIZE
  10971. # define getpagesize() sysconf(_SC_PAGESIZE)
  10972. # else /* no _SC_PAGESIZE */
  10973. # ifdef HAVE_SYS_PARAM_H
  10974. # include <sys/param.h>
  10975. # ifdef EXEC_PAGESIZE
  10976. # define getpagesize() EXEC_PAGESIZE
  10977. # else /* no EXEC_PAGESIZE */
  10978. # ifdef NBPG
  10979. # define getpagesize() NBPG * CLSIZE
  10980. # ifndef CLSIZE
  10981. # define CLSIZE 1
  10982. # endif /* no CLSIZE */
  10983. # else /* no NBPG */
  10984. # ifdef NBPC
  10985. # define getpagesize() NBPC
  10986. # else /* no NBPC */
  10987. # ifdef PAGESIZE
  10988. # define getpagesize() PAGESIZE
  10989. # endif /* PAGESIZE */
  10990. # endif /* no NBPC */
  10991. # endif /* no NBPG */
  10992. # endif /* no EXEC_PAGESIZE */
  10993. # else /* no HAVE_SYS_PARAM_H */
  10994. # define getpagesize() 8192 /* punt totally */
  10995. # endif /* no HAVE_SYS_PARAM_H */
  10996. # endif /* no _SC_PAGESIZE */
  10997. #endif /* no HAVE_GETPAGESIZE */
  10998. int
  10999. main ()
  11000. {
  11001. char *data, *data2, *data3;
  11002. const char *cdata2;
  11003. int i, pagesize;
  11004. int fd, fd2;
  11005. pagesize = getpagesize ();
  11006. /* First, make a file with some known garbage in it. */
  11007. data = (char *) malloc (pagesize);
  11008. if (!data)
  11009. return 1;
  11010. for (i = 0; i < pagesize; ++i)
  11011. *(data + i) = rand ();
  11012. umask (0);
  11013. fd = creat ("conftest.mmap", 0600);
  11014. if (fd < 0)
  11015. return 2;
  11016. if (write (fd, data, pagesize) != pagesize)
  11017. return 3;
  11018. close (fd);
  11019. /* Next, check that the tail of a page is zero-filled. File must have
  11020. non-zero length, otherwise we risk SIGBUS for entire page. */
  11021. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11022. if (fd2 < 0)
  11023. return 4;
  11024. cdata2 = "";
  11025. if (write (fd2, cdata2, 1) != 1)
  11026. return 5;
  11027. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11028. if (data2 == MAP_FAILED)
  11029. return 6;
  11030. for (i = 0; i < pagesize; ++i)
  11031. if (*(data2 + i))
  11032. return 7;
  11033. close (fd2);
  11034. if (munmap (data2, pagesize))
  11035. return 8;
  11036. /* Next, try to mmap the file at a fixed address which already has
  11037. something else allocated at it. If we can, also make sure that
  11038. we see the same garbage. */
  11039. fd = open ("conftest.mmap", O_RDWR);
  11040. if (fd < 0)
  11041. return 9;
  11042. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11043. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11044. return 10;
  11045. for (i = 0; i < pagesize; ++i)
  11046. if (*(data + i) != *(data2 + i))
  11047. return 11;
  11048. /* Finally, make sure that changes to the mapped area do not
  11049. percolate back to the file as seen by read(). (This is a bug on
  11050. some variants of i386 svr4.0.) */
  11051. for (i = 0; i < pagesize; ++i)
  11052. *(data2 + i) = *(data2 + i) + 1;
  11053. data3 = (char *) malloc (pagesize);
  11054. if (!data3)
  11055. return 12;
  11056. if (read (fd, data3, pagesize) != pagesize)
  11057. return 13;
  11058. for (i = 0; i < pagesize; ++i)
  11059. if (*(data + i) != *(data3 + i))
  11060. return 14;
  11061. close (fd);
  11062. return 0;
  11063. }
  11064. _ACEOF
  11065. if ac_fn_c_try_run "$LINENO"; then :
  11066. ac_cv_func_mmap_fixed_mapped=yes
  11067. else
  11068. ac_cv_func_mmap_fixed_mapped=no
  11069. fi
  11070. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11071. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11072. fi
  11073. fi
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11075. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11076. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11077. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11078. fi
  11079. rm -f conftest.mmap conftest.txt
  11080. for ac_header in sys/select.h sys/socket.h
  11081. do :
  11082. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11083. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11084. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11085. cat >>confdefs.h <<_ACEOF
  11086. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11087. _ACEOF
  11088. fi
  11089. done
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  11091. $as_echo_n "checking types of arguments for select... " >&6; }
  11092. if test "${ac_cv_func_select_args+set}" = set; then :
  11093. $as_echo_n "(cached) " >&6
  11094. else
  11095. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  11096. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  11097. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  11098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11099. /* end confdefs.h. */
  11100. $ac_includes_default
  11101. #ifdef HAVE_SYS_SELECT_H
  11102. # include <sys/select.h>
  11103. #endif
  11104. #ifdef HAVE_SYS_SOCKET_H
  11105. # include <sys/socket.h>
  11106. #endif
  11107. int
  11108. main ()
  11109. {
  11110. extern int select ($ac_arg1,
  11111. $ac_arg234, $ac_arg234, $ac_arg234,
  11112. $ac_arg5);
  11113. ;
  11114. return 0;
  11115. }
  11116. _ACEOF
  11117. if ac_fn_c_try_compile "$LINENO"; then :
  11118. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  11119. fi
  11120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11121. done
  11122. done
  11123. done
  11124. # Provide a safe default value.
  11125. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  11126. fi
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  11128. $as_echo "$ac_cv_func_select_args" >&6; }
  11129. ac_save_IFS=$IFS; IFS=','
  11130. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  11131. IFS=$ac_save_IFS
  11132. shift
  11133. cat >>confdefs.h <<_ACEOF
  11134. #define SELECT_TYPE_ARG1 $1
  11135. _ACEOF
  11136. cat >>confdefs.h <<_ACEOF
  11137. #define SELECT_TYPE_ARG234 ($2)
  11138. _ACEOF
  11139. cat >>confdefs.h <<_ACEOF
  11140. #define SELECT_TYPE_ARG5 ($3)
  11141. _ACEOF
  11142. rm -f conftest*
  11143. if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
  11144. $as_echo_n "(cached) " >&6
  11145. else
  11146. ac_cv_func_setvbuf_reversed=no
  11147. fi
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  11149. $as_echo_n "checking return type of signal handlers... " >&6; }
  11150. if test "${ac_cv_type_signal+set}" = set; then :
  11151. $as_echo_n "(cached) " >&6
  11152. else
  11153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11154. /* end confdefs.h. */
  11155. #include <sys/types.h>
  11156. #include <signal.h>
  11157. int
  11158. main ()
  11159. {
  11160. return *(signal (0, 0)) (0) == 1;
  11161. ;
  11162. return 0;
  11163. }
  11164. _ACEOF
  11165. if ac_fn_c_try_compile "$LINENO"; then :
  11166. ac_cv_type_signal=int
  11167. else
  11168. ac_cv_type_signal=void
  11169. fi
  11170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11171. fi
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  11173. $as_echo "$ac_cv_type_signal" >&6; }
  11174. cat >>confdefs.h <<_ACEOF
  11175. #define RETSIGTYPE $ac_cv_type_signal
  11176. _ACEOF
  11177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  11178. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  11179. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  11180. $as_echo_n "(cached) " >&6
  11181. else
  11182. rm -f conftest.sym conftest.file
  11183. echo >conftest.file
  11184. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11185. if test "$cross_compiling" = yes; then :
  11186. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11187. else
  11188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11189. /* end confdefs.h. */
  11190. $ac_includes_default
  11191. int
  11192. main ()
  11193. {
  11194. struct stat sbuf;
  11195. /* Linux will dereference the symlink and fail, as required by POSIX.
  11196. That is better in the sense that it means we will not
  11197. have to compile and use the lstat wrapper. */
  11198. return lstat ("conftest.sym/", &sbuf) == 0;
  11199. ;
  11200. return 0;
  11201. }
  11202. _ACEOF
  11203. if ac_fn_c_try_run "$LINENO"; then :
  11204. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11205. else
  11206. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11207. fi
  11208. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11209. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11210. fi
  11211. else
  11212. # If the `ln -s' command failed, then we probably don't even
  11213. # have an lstat function.
  11214. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11215. fi
  11216. rm -f conftest.sym conftest.file
  11217. fi
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11219. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11220. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11221. cat >>confdefs.h <<_ACEOF
  11222. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11223. _ACEOF
  11224. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  11225. case " $LIBOBJS " in
  11226. *" lstat.$ac_objext "* ) ;;
  11227. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11228. ;;
  11229. esac
  11230. fi
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  11232. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11233. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  11234. $as_echo_n "(cached) " >&6
  11235. else
  11236. if test "$cross_compiling" = yes; then :
  11237. ac_cv_func_stat_empty_string_bug=yes
  11238. else
  11239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11240. /* end confdefs.h. */
  11241. $ac_includes_default
  11242. int
  11243. main ()
  11244. {
  11245. struct stat sbuf;
  11246. return stat ("", &sbuf) == 0;
  11247. ;
  11248. return 0;
  11249. }
  11250. _ACEOF
  11251. if ac_fn_c_try_run "$LINENO"; then :
  11252. ac_cv_func_stat_empty_string_bug=no
  11253. else
  11254. ac_cv_func_stat_empty_string_bug=yes
  11255. fi
  11256. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11257. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11258. fi
  11259. fi
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  11261. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11262. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11263. case " $LIBOBJS " in
  11264. *" stat.$ac_objext "* ) ;;
  11265. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11266. ;;
  11267. esac
  11268. cat >>confdefs.h <<_ACEOF
  11269. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11270. _ACEOF
  11271. fi
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  11273. $as_echo_n "checking for working strcoll... " >&6; }
  11274. if test "${ac_cv_func_strcoll_works+set}" = set; then :
  11275. $as_echo_n "(cached) " >&6
  11276. else
  11277. if test "$cross_compiling" = yes; then :
  11278. ac_cv_func_strcoll_works=no
  11279. else
  11280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11281. /* end confdefs.h. */
  11282. $ac_includes_default
  11283. int
  11284. main ()
  11285. {
  11286. return (strcoll ("abc", "def") >= 0 ||
  11287. strcoll ("ABC", "DEF") >= 0 ||
  11288. strcoll ("123", "456") >= 0)
  11289. ;
  11290. return 0;
  11291. }
  11292. _ACEOF
  11293. if ac_fn_c_try_run "$LINENO"; then :
  11294. ac_cv_func_strcoll_works=yes
  11295. else
  11296. ac_cv_func_strcoll_works=no
  11297. fi
  11298. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11299. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11300. fi
  11301. fi
  11302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  11303. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  11304. if test $ac_cv_func_strcoll_works = yes; then
  11305. $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
  11306. fi
  11307. for ac_func in strftime
  11308. do :
  11309. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  11310. if test "x$ac_cv_func_strftime" = x""yes; then :
  11311. cat >>confdefs.h <<_ACEOF
  11312. #define HAVE_STRFTIME 1
  11313. _ACEOF
  11314. else
  11315. # strftime is in -lintl on SCO UNIX.
  11316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  11317. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11318. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  11319. $as_echo_n "(cached) " >&6
  11320. else
  11321. ac_check_lib_save_LIBS=$LIBS
  11322. LIBS="-lintl $LIBS"
  11323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11324. /* end confdefs.h. */
  11325. /* Override any GCC internal prototype to avoid an error.
  11326. Use char because int might match the return type of a GCC
  11327. builtin and then its argument prototype would still apply. */
  11328. #ifdef __cplusplus
  11329. extern "C"
  11330. #endif
  11331. char strftime ();
  11332. int
  11333. main ()
  11334. {
  11335. return strftime ();
  11336. ;
  11337. return 0;
  11338. }
  11339. _ACEOF
  11340. if ac_fn_c_try_link "$LINENO"; then :
  11341. ac_cv_lib_intl_strftime=yes
  11342. else
  11343. ac_cv_lib_intl_strftime=no
  11344. fi
  11345. rm -f core conftest.err conftest.$ac_objext \
  11346. conftest$ac_exeext conftest.$ac_ext
  11347. LIBS=$ac_check_lib_save_LIBS
  11348. fi
  11349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  11350. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11351. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  11352. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  11353. LIBS="-lintl $LIBS"
  11354. fi
  11355. fi
  11356. done
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  11358. $as_echo_n "checking for working strnlen... " >&6; }
  11359. if test "${ac_cv_func_strnlen_working+set}" = set; then :
  11360. $as_echo_n "(cached) " >&6
  11361. else
  11362. if test "$cross_compiling" = yes; then :
  11363. ac_cv_func_strnlen_working=no
  11364. else
  11365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11366. /* end confdefs.h. */
  11367. $ac_includes_default
  11368. int
  11369. main ()
  11370. {
  11371. #define S "foobar"
  11372. #define S_LEN (sizeof S - 1)
  11373. /* At least one implementation is buggy: that of AIX 4.3 would
  11374. give strnlen (S, 1) == 3. */
  11375. int i;
  11376. for (i = 0; i < S_LEN + 1; ++i)
  11377. {
  11378. int expected = i <= S_LEN ? i : S_LEN;
  11379. if (strnlen (S, i) != expected)
  11380. return 1;
  11381. }
  11382. return 0;
  11383. ;
  11384. return 0;
  11385. }
  11386. _ACEOF
  11387. if ac_fn_c_try_run "$LINENO"; then :
  11388. ac_cv_func_strnlen_working=yes
  11389. else
  11390. ac_cv_func_strnlen_working=no
  11391. fi
  11392. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11393. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11394. fi
  11395. fi
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  11397. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  11398. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  11399. *" strnlen.$ac_objext "* ) ;;
  11400. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  11401. ;;
  11402. esac
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  11404. $as_echo_n "checking for working strtod... " >&6; }
  11405. if test "${ac_cv_func_strtod+set}" = set; then :
  11406. $as_echo_n "(cached) " >&6
  11407. else
  11408. if test "$cross_compiling" = yes; then :
  11409. ac_cv_func_strtod=no
  11410. else
  11411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11412. /* end confdefs.h. */
  11413. $ac_includes_default
  11414. #ifndef strtod
  11415. double strtod ();
  11416. #endif
  11417. int
  11418. main()
  11419. {
  11420. {
  11421. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  11422. char *string = " +69";
  11423. char *term;
  11424. double value;
  11425. value = strtod (string, &term);
  11426. if (value != 69 || term != (string + 4))
  11427. return 1;
  11428. }
  11429. {
  11430. /* Under Solaris 2.4, strtod returns the wrong value for the
  11431. terminating character under some conditions. */
  11432. char *string = "NaN";
  11433. char *term;
  11434. strtod (string, &term);
  11435. if (term != string && *(term - 1) == 0)
  11436. return 1;
  11437. }
  11438. return 0;
  11439. }
  11440. _ACEOF
  11441. if ac_fn_c_try_run "$LINENO"; then :
  11442. ac_cv_func_strtod=yes
  11443. else
  11444. ac_cv_func_strtod=no
  11445. fi
  11446. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11447. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11448. fi
  11449. fi
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  11451. $as_echo "$ac_cv_func_strtod" >&6; }
  11452. if test $ac_cv_func_strtod = no; then
  11453. case " $LIBOBJS " in
  11454. *" strtod.$ac_objext "* ) ;;
  11455. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  11456. ;;
  11457. esac
  11458. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  11459. if test "x$ac_cv_func_pow" = x""yes; then :
  11460. fi
  11461. if test $ac_cv_func_pow = no; then
  11462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  11463. $as_echo_n "checking for pow in -lm... " >&6; }
  11464. if test "${ac_cv_lib_m_pow+set}" = set; then :
  11465. $as_echo_n "(cached) " >&6
  11466. else
  11467. ac_check_lib_save_LIBS=$LIBS
  11468. LIBS="-lm $LIBS"
  11469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11470. /* end confdefs.h. */
  11471. /* Override any GCC internal prototype to avoid an error.
  11472. Use char because int might match the return type of a GCC
  11473. builtin and then its argument prototype would still apply. */
  11474. #ifdef __cplusplus
  11475. extern "C"
  11476. #endif
  11477. char pow ();
  11478. int
  11479. main ()
  11480. {
  11481. return pow ();
  11482. ;
  11483. return 0;
  11484. }
  11485. _ACEOF
  11486. if ac_fn_c_try_link "$LINENO"; then :
  11487. ac_cv_lib_m_pow=yes
  11488. else
  11489. ac_cv_lib_m_pow=no
  11490. fi
  11491. rm -f core conftest.err conftest.$ac_objext \
  11492. conftest$ac_exeext conftest.$ac_ext
  11493. LIBS=$ac_check_lib_save_LIBS
  11494. fi
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  11496. $as_echo "$ac_cv_lib_m_pow" >&6; }
  11497. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  11498. POW_LIB=-lm
  11499. else
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  11501. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  11502. fi
  11503. fi
  11504. fi
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  11506. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  11507. if test "${ac_cv_func_utime_null+set}" = set; then :
  11508. $as_echo_n "(cached) " >&6
  11509. else
  11510. rm -f conftest.data; >conftest.data
  11511. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  11512. if test "$cross_compiling" = yes; then :
  11513. ac_cv_func_utime_null='guessing yes'
  11514. else
  11515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11516. /* end confdefs.h. */
  11517. $ac_includes_default
  11518. #ifdef HAVE_UTIME_H
  11519. # include <utime.h>
  11520. #endif
  11521. int
  11522. main ()
  11523. {
  11524. struct stat s, t;
  11525. return ! (stat ("conftest.data", &s) == 0
  11526. && utime ("conftest.data", 0) == 0
  11527. && stat ("conftest.data", &t) == 0
  11528. && t.st_mtime >= s.st_mtime
  11529. && t.st_mtime - s.st_mtime < 120);
  11530. ;
  11531. return 0;
  11532. }
  11533. _ACEOF
  11534. if ac_fn_c_try_run "$LINENO"; then :
  11535. ac_cv_func_utime_null=yes
  11536. else
  11537. ac_cv_func_utime_null=no
  11538. fi
  11539. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11540. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11541. fi
  11542. fi
  11543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  11544. $as_echo "$ac_cv_func_utime_null" >&6; }
  11545. if test "x$ac_cv_func_utime_null" != xno; then
  11546. ac_cv_func_utime_null=yes
  11547. $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
  11548. fi
  11549. rm -f conftest.data
  11550. for ac_func in vprintf
  11551. do :
  11552. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  11553. if test "x$ac_cv_func_vprintf" = x""yes; then :
  11554. cat >>confdefs.h <<_ACEOF
  11555. #define HAVE_VPRINTF 1
  11556. _ACEOF
  11557. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  11558. if test "x$ac_cv_func__doprnt" = x""yes; then :
  11559. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  11560. fi
  11561. fi
  11562. done
  11563. 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
  11564. do :
  11565. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11566. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11567. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11568. cat >>confdefs.h <<_ACEOF
  11569. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11570. _ACEOF
  11571. fi
  11572. done
  11573. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  11574. # so that AC_CHECK_FUNCS can detect functions in that library.
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  11576. $as_echo_n "checking for sqrt in -lm... " >&6; }
  11577. if test "${ac_cv_lib_m_sqrt+set}" = set; then :
  11578. $as_echo_n "(cached) " >&6
  11579. else
  11580. ac_check_lib_save_LIBS=$LIBS
  11581. LIBS="-lm $LIBS"
  11582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11583. /* end confdefs.h. */
  11584. /* Override any GCC internal prototype to avoid an error.
  11585. Use char because int might match the return type of a GCC
  11586. builtin and then its argument prototype would still apply. */
  11587. #ifdef __cplusplus
  11588. extern "C"
  11589. #endif
  11590. char sqrt ();
  11591. int
  11592. main ()
  11593. {
  11594. return sqrt ();
  11595. ;
  11596. return 0;
  11597. }
  11598. _ACEOF
  11599. if ac_fn_c_try_link "$LINENO"; then :
  11600. ac_cv_lib_m_sqrt=yes
  11601. else
  11602. ac_cv_lib_m_sqrt=no
  11603. fi
  11604. rm -f core conftest.err conftest.$ac_objext \
  11605. conftest$ac_exeext conftest.$ac_ext
  11606. LIBS=$ac_check_lib_save_LIBS
  11607. fi
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  11609. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  11610. if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
  11611. cat >>confdefs.h <<_ACEOF
  11612. #define HAVE_LIBM 1
  11613. _ACEOF
  11614. LIBS="-lm $LIBS"
  11615. fi
  11616. # BSD might not have exp2, and/or log2
  11617. for ac_func in exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round trunc floor ceil
  11618. do :
  11619. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11620. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11621. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11622. cat >>confdefs.h <<_ACEOF
  11623. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11624. _ACEOF
  11625. fi
  11626. done
  11627. # Certain architectures don't really have long double, even though
  11628. # AC_CHECK_FUNCS would otherwise find the following functions.
  11629. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  11630. 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
  11631. do :
  11632. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11633. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11634. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11635. cat >>confdefs.h <<_ACEOF
  11636. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11637. _ACEOF
  11638. fi
  11639. done
  11640. fi
  11641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLONG_MAX in limits.h" >&5
  11642. $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
  11643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11644. /* end confdefs.h. */
  11645. #include <limits.h>
  11646. int
  11647. main ()
  11648. {
  11649. long long foo = LLONG_MAX
  11650. ;
  11651. return 0;
  11652. }
  11653. _ACEOF
  11654. if ac_fn_c_try_link "$LINENO"; then :
  11655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11656. $as_echo "yes" >&6; }
  11657. $as_echo "#define HAVE_LLONG_MAX 1" >>confdefs.h
  11658. else
  11659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11660. $as_echo "no" >&6; }
  11661. fi
  11662. rm -f core conftest.err conftest.$ac_objext \
  11663. conftest$ac_exeext conftest.$ac_ext
  11664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
  11665. $as_echo_n "checking for timersub in time.h... " >&6; }
  11666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11667. /* end confdefs.h. */
  11668. #include <sys/time.h>
  11669. int
  11670. main ()
  11671. {
  11672. struct timeval *a; timersub(a, a, a);
  11673. ;
  11674. return 0;
  11675. }
  11676. _ACEOF
  11677. if ac_fn_c_try_link "$LINENO"; then :
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11679. $as_echo "yes" >&6; }
  11680. $as_echo "#define HAVE_TIMERSUB 1" >>confdefs.h
  11681. else
  11682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11683. $as_echo "no" >&6; }
  11684. fi
  11685. rm -f core conftest.err conftest.$ac_objext \
  11686. conftest$ac_exeext conftest.$ac_ext
  11687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  11688. $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  11689. old_LDFLAGS=${LDFLAGS}
  11690. cat >conftest.dynamics <<_ACEOF
  11691. {
  11692. *ast_*;
  11693. };
  11694. _ACEOF
  11695. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  11696. PBX_DYNAMIC_LIST=0
  11697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11698. /* end confdefs.h. */
  11699. int
  11700. main ()
  11701. {
  11702. ;
  11703. return 0;
  11704. }
  11705. _ACEOF
  11706. if ac_fn_c_try_link "$LINENO"; then :
  11707. PBX_DYNAMIC_LIST=1
  11708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11709. $as_echo "yes" >&6; }
  11710. else
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11712. $as_echo "no" >&6; }
  11713. fi
  11714. rm -f core conftest.err conftest.$ac_objext \
  11715. conftest$ac_exeext conftest.$ac_ext
  11716. LDFLAGS=${old_LDFLAGS}
  11717. rm -f conftest.dynamics
  11718. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  11719. if test "x$ac_cv_header_sys_poll_h" = x""yes; then :
  11720. HAS_POLL=1
  11721. $as_echo "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  11722. fi
  11723. # Check whether --enable-internal-poll was given.
  11724. if test "${enable_internal_poll+set}" = set; then :
  11725. enableval=$enable_internal_poll; case "${enableval}" in
  11726. y|ye|yes) HAS_POLL="";;
  11727. n|no) HAS_POLL="${HAS_POLL}" ;;
  11728. *) as_fn_error $? "bad value ${enableval} for --enable-internal-poll" "$LINENO" 5 ;;
  11729. esac
  11730. fi
  11731. # https support (in main/http.c) uses funopen on BSD systems,
  11732. # fopencookie on linux
  11733. for ac_func in funopen fopencookie
  11734. do :
  11735. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11736. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11737. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11738. cat >>confdefs.h <<_ACEOF
  11739. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11740. _ACEOF
  11741. fi
  11742. done
  11743. for ac_func in inet_aton
  11744. do :
  11745. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  11746. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  11747. cat >>confdefs.h <<_ACEOF
  11748. #define HAVE_INET_ATON 1
  11749. _ACEOF
  11750. fi
  11751. done
  11752. # check if we have IP_PKTINFO constant defined
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
  11754. $as_echo_n "checking for IP_PKTINFO... " >&6; }
  11755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11756. /* end confdefs.h. */
  11757. #include <netinet/in.h>
  11758. int
  11759. main ()
  11760. {
  11761. int pi = IP_PKTINFO;
  11762. ;
  11763. return 0;
  11764. }
  11765. _ACEOF
  11766. if ac_fn_c_try_link "$LINENO"; then :
  11767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11768. $as_echo "yes" >&6; }
  11769. $as_echo "#define HAVE_PKTINFO 1" >>confdefs.h
  11770. else
  11771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11772. $as_echo "no" >&6; }
  11773. fi
  11774. rm -f core conftest.err conftest.$ac_objext \
  11775. conftest$ac_exeext conftest.$ac_ext
  11776. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
  11778. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  11779. if test "${ac_cv_search_gethostbyname_r+set}" = set; then :
  11780. $as_echo_n "(cached) " >&6
  11781. else
  11782. ac_func_search_save_LIBS=$LIBS
  11783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11784. /* end confdefs.h. */
  11785. /* Override any GCC internal prototype to avoid an error.
  11786. Use char because int might match the return type of a GCC
  11787. builtin and then its argument prototype would still apply. */
  11788. #ifdef __cplusplus
  11789. extern "C"
  11790. #endif
  11791. char gethostbyname_r ();
  11792. int
  11793. main ()
  11794. {
  11795. return gethostbyname_r ();
  11796. ;
  11797. return 0;
  11798. }
  11799. _ACEOF
  11800. for ac_lib in '' socket nsl; do
  11801. if test -z "$ac_lib"; then
  11802. ac_res="none required"
  11803. else
  11804. ac_res=-l$ac_lib
  11805. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11806. fi
  11807. if ac_fn_c_try_link "$LINENO"; then :
  11808. ac_cv_search_gethostbyname_r=$ac_res
  11809. fi
  11810. rm -f core conftest.err conftest.$ac_objext \
  11811. conftest$ac_exeext
  11812. if test "${ac_cv_search_gethostbyname_r+set}" = set; then :
  11813. break
  11814. fi
  11815. done
  11816. if test "${ac_cv_search_gethostbyname_r+set}" = set; then :
  11817. else
  11818. ac_cv_search_gethostbyname_r=no
  11819. fi
  11820. rm conftest.$ac_ext
  11821. LIBS=$ac_func_search_save_LIBS
  11822. fi
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
  11824. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  11825. ac_res=$ac_cv_search_gethostbyname_r
  11826. if test "$ac_res" != no; then :
  11827. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11828. fi
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 arguments" >&5
  11830. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  11831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11832. /* end confdefs.h. */
  11833. #include <stdlib.h>
  11834. #include <netdb.h>
  11835. int
  11836. main ()
  11837. {
  11838. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  11839. ;
  11840. return 0;
  11841. }
  11842. _ACEOF
  11843. if ac_fn_c_try_link "$LINENO"; then :
  11844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11845. $as_echo "yes" >&6; }
  11846. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  11847. else
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11849. $as_echo "no" >&6; }
  11850. fi
  11851. rm -f core conftest.err conftest.$ac_objext \
  11852. conftest$ac_exeext conftest.$ac_ext
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
  11854. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  11855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11856. /* end confdefs.h. */
  11857. #include <stdlib.h>
  11858. #include <netdb.h>
  11859. int
  11860. main ()
  11861. {
  11862. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  11863. ;
  11864. return 0;
  11865. }
  11866. _ACEOF
  11867. if ac_fn_c_try_link "$LINENO"; then :
  11868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11869. $as_echo "yes" >&6; }
  11870. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  11871. else
  11872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11873. $as_echo "no" >&6; }
  11874. fi
  11875. rm -f core conftest.err conftest.$ac_objext \
  11876. conftest$ac_exeext conftest.$ac_ext
  11877. ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  11878. if test "x$ac_cv_header_byteswap_h" = x""yes; then :
  11879. cat >>confdefs.h <<_ACEOF
  11880. #define HAVE_BYTESWAP_H 1
  11881. _ACEOF
  11882. fi
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  11884. $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  11885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11886. /* end confdefs.h. */
  11887. #include <sys/endian.h>
  11888. int
  11889. main ()
  11890. {
  11891. int a = 1; int b = __swap16(a);
  11892. ;
  11893. return 0;
  11894. }
  11895. _ACEOF
  11896. if ac_fn_c_try_link "$LINENO"; then :
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11898. $as_echo "yes" >&6; }
  11899. $as_echo "#define HAVE_SYS_ENDIAN_SWAP16 1" >>confdefs.h
  11900. else
  11901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11902. $as_echo "no" >&6; }
  11903. fi
  11904. rm -f core conftest.err conftest.$ac_objext \
  11905. conftest$ac_exeext conftest.$ac_ext
  11906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  11907. $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  11908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11909. /* end confdefs.h. */
  11910. #include <sys/endian.h>
  11911. int
  11912. main ()
  11913. {
  11914. int a = 1; int b = bswap16(a);
  11915. ;
  11916. return 0;
  11917. }
  11918. _ACEOF
  11919. if ac_fn_c_try_link "$LINENO"; then :
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11921. $as_echo "yes" >&6; }
  11922. $as_echo "#define HAVE_SYS_ENDIAN_BSWAP16 1" >>confdefs.h
  11923. else
  11924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11925. $as_echo "no" >&6; }
  11926. fi
  11927. rm -f core conftest.err conftest.$ac_objext \
  11928. conftest$ac_exeext conftest.$ac_ext
  11929. if test "${cross_compiling}" = "no";
  11930. then
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
  11932. $as_echo_n "checking for /dev/urandom... " >&6; }
  11933. if test "${ac_cv_file__dev_urandom+set}" = set; then :
  11934. $as_echo_n "(cached) " >&6
  11935. else
  11936. test "$cross_compiling" = yes &&
  11937. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  11938. if test -r "/dev/urandom"; then
  11939. ac_cv_file__dev_urandom=yes
  11940. else
  11941. ac_cv_file__dev_urandom=no
  11942. fi
  11943. fi
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
  11945. $as_echo "$ac_cv_file__dev_urandom" >&6; }
  11946. if test "x$ac_cv_file__dev_urandom" = x""yes; then :
  11947. $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
  11948. fi
  11949. fi
  11950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in locale.h" >&5
  11951. $as_echo_n "checking for locale_t in locale.h... " >&6; }
  11952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11953. /* end confdefs.h. */
  11954. #include <locale.h>
  11955. int
  11956. main ()
  11957. {
  11958. locale_t lt = NULL
  11959. ;
  11960. return 0;
  11961. }
  11962. _ACEOF
  11963. if ac_fn_c_try_link "$LINENO"; then :
  11964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11965. $as_echo "yes" >&6; }
  11966. $as_echo "#define HAVE_LOCALE_T_IN_LOCALE_H 1" >>confdefs.h
  11967. else
  11968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11969. $as_echo "no" >&6; }
  11970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in xlocale.h" >&5
  11971. $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
  11972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11973. /* end confdefs.h. */
  11974. #include <xlocale.h>
  11975. int
  11976. main ()
  11977. {
  11978. locale_t lt = NULL
  11979. ;
  11980. return 0;
  11981. }
  11982. _ACEOF
  11983. if ac_fn_c_try_link "$LINENO"; then :
  11984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11985. $as_echo "yes" >&6; }
  11986. $as_echo "#define HAVE_LOCALE_T_IN_XLOCALE_H 1" >>confdefs.h
  11987. else
  11988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11989. $as_echo "no" >&6; }
  11990. fi
  11991. rm -f core conftest.err conftest.$ac_objext \
  11992. conftest$ac_exeext conftest.$ac_ext
  11993. fi
  11994. rm -f core conftest.err conftest.$ac_objext \
  11995. conftest$ac_exeext conftest.$ac_ext
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_EVTONLY in fcntl.h" >&5
  11997. $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
  11998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11999. /* end confdefs.h. */
  12000. #include <fcntl.h>
  12001. int
  12002. main ()
  12003. {
  12004. int a = O_EVTONLY;
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. if ac_fn_c_try_link "$LINENO"; then :
  12010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12011. $as_echo "yes" >&6; }
  12012. $as_echo "#define HAVE_O_EVTONLY 1" >>confdefs.h
  12013. else
  12014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12015. $as_echo "no" >&6; }
  12016. fi
  12017. rm -f core conftest.err conftest.$ac_objext \
  12018. conftest$ac_exeext conftest.$ac_ext
  12019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_SYMLINK in fcntl.h" >&5
  12020. $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
  12021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12022. /* end confdefs.h. */
  12023. #include <fcntl.h>
  12024. int
  12025. main ()
  12026. {
  12027. int a = O_SYMLINK;
  12028. ;
  12029. return 0;
  12030. }
  12031. _ACEOF
  12032. if ac_fn_c_try_link "$LINENO"; then :
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12034. $as_echo "yes" >&6; }
  12035. $as_echo "#define HAVE_O_SYMLINK 1" >>confdefs.h
  12036. else
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12038. $as_echo "no" >&6; }
  12039. fi
  12040. rm -f core conftest.err conftest.$ac_objext \
  12041. conftest$ac_exeext conftest.$ac_ext
  12042. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  12043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  12044. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  12045. saved_cppflags="${CPPFLAGS}"
  12046. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  12047. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  12048. fi
  12049. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  12050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12051. /* end confdefs.h. */
  12052. #include <pthread.h>
  12053. int
  12054. main ()
  12055. {
  12056. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  12057. int foo = 0;
  12058. #else
  12059. int foo = bar;
  12060. #endif
  12061. 0
  12062. ;
  12063. return 0;
  12064. }
  12065. _ACEOF
  12066. if ac_fn_c_try_compile "$LINENO"; then :
  12067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12068. $as_echo "yes" >&6; }
  12069. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  12070. $as_echo "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1" >>confdefs.h
  12071. else
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12073. $as_echo "no" >&6; }
  12074. fi
  12075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12076. CPPFLAGS="${saved_cppflags}"
  12077. fi
  12078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  12079. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  12080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12081. /* end confdefs.h. */
  12082. #include <pthread.h>
  12083. int
  12084. main ()
  12085. {
  12086. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  12087. ;
  12088. return 0;
  12089. }
  12090. _ACEOF
  12091. if ac_fn_c_try_link "$LINENO"; then :
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12093. $as_echo "yes" >&6; }
  12094. $as_echo "#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1" >>confdefs.h
  12095. else
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12097. $as_echo "no" >&6; }
  12098. fi
  12099. rm -f core conftest.err conftest.$ac_objext \
  12100. conftest$ac_exeext conftest.$ac_ext
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  12102. $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  12103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12104. /* end confdefs.h. */
  12105. #include <pthread.h>
  12106. int
  12107. main ()
  12108. {
  12109. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  12110. ;
  12111. return 0;
  12112. }
  12113. _ACEOF
  12114. if ac_fn_c_try_link "$LINENO"; then :
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12116. $as_echo "yes" >&6; }
  12117. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
  12118. else
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12120. $as_echo "no" >&6; }
  12121. fi
  12122. rm -f core conftest.err conftest.$ac_objext \
  12123. conftest$ac_exeext conftest.$ac_ext
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  12125. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  12126. save_LIBS="$LIBS"
  12127. save_CFLAGS="$CFLAGS"
  12128. LIBS="$PTHREAD_LIBS $LIBS"
  12129. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12131. /* end confdefs.h. */
  12132. #include <pthread.h>
  12133. #include <time.h>
  12134. int
  12135. main ()
  12136. {
  12137. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  12138. ;
  12139. return 0;
  12140. }
  12141. _ACEOF
  12142. if ac_fn_c_try_link "$LINENO"; then :
  12143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12144. $as_echo "yes" >&6; }
  12145. ac_cv_pthread_rwlock_timedwrlock="yes"
  12146. else
  12147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12148. $as_echo "no" >&6; }
  12149. ac_cv_pthread_rwlock_timedwrlock="no"
  12150. fi
  12151. rm -f core conftest.err conftest.$ac_objext \
  12152. conftest$ac_exeext conftest.$ac_ext
  12153. LIBS="$save_LIBS"
  12154. CFLAGS="$save_CFLAGS"
  12155. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  12156. $as_echo "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
  12157. fi
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
  12159. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  12160. saved_CFLAGS="${CFLAGS}"
  12161. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  12162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12163. /* end confdefs.h. */
  12164. #include <pthread.h>
  12165. void empty(){}
  12166. int
  12167. main ()
  12168. {
  12169. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. if ac_fn_c_try_compile "$LINENO"; then :
  12175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12176. $as_echo "no" >&6; }
  12177. ac_cv_pthread_once_needsbraces="no"
  12178. else
  12179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12180. $as_echo "yes" >&6; }
  12181. ac_cv_pthread_once_needsbraces="yes"
  12182. fi
  12183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12184. CFLAGS="${saved_CFLAGS}"
  12185. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  12186. $as_echo "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
  12187. fi
  12188. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  12189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  12190. $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  12191. saved_cppflags="${CPPFLAGS}"
  12192. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  12193. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  12194. fi
  12195. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  12196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12197. /* end confdefs.h. */
  12198. #include <pthread.h>
  12199. int
  12200. main ()
  12201. {
  12202. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  12203. int foo = 0;
  12204. #else
  12205. int foo = bar;
  12206. #endif
  12207. 0
  12208. ;
  12209. return 0;
  12210. }
  12211. _ACEOF
  12212. if ac_fn_c_try_compile "$LINENO"; then :
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12214. $as_echo "yes" >&6; }
  12215. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  12216. $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
  12217. else
  12218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12219. $as_echo "no" >&6; }
  12220. fi
  12221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12222. CPPFLAGS="${saved_cppflags}"
  12223. fi
  12224. # Can we compare a mutex to its initial value?
  12225. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
  12227. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  12228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12229. /* end confdefs.h. */
  12230. #include <pthread.h>
  12231. int
  12232. main ()
  12233. {
  12234. pthread_mutex_t lock;
  12235. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  12236. return 0;
  12237. }
  12238. return 0
  12239. ;
  12240. return 0;
  12241. }
  12242. _ACEOF
  12243. if ac_fn_c_try_link "$LINENO"; then :
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12245. $as_echo "yes" >&6; }
  12246. $as_echo "#define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1" >>confdefs.h
  12247. else
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12249. $as_echo "no" >&6; }
  12250. fi
  12251. rm -f core conftest.err conftest.$ac_objext \
  12252. conftest$ac_exeext conftest.$ac_ext
  12253. #if test "${cross_compiling}" = "no";
  12254. #then
  12255. #AC_MSG_CHECKING(for working epoll support)
  12256. #AC_LINK_IFELSE(
  12257. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  12258. # if (res < 0)
  12259. # return 1;
  12260. # close (res);
  12261. # return 0;]),
  12262. #AC_MSG_RESULT(yes)
  12263. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  12264. #AC_MSG_RESULT(no)
  12265. #)
  12266. #fi
  12267. # for FreeBSD thr_self
  12268. for ac_header in sys/thr.h
  12269. do :
  12270. ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
  12271. if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
  12272. cat >>confdefs.h <<_ACEOF
  12273. #define HAVE_SYS_THR_H 1
  12274. _ACEOF
  12275. fi
  12276. done
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
  12278. $as_echo_n "checking for compiler atomic operations... " >&6; }
  12279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12280. /* end confdefs.h. */
  12281. int
  12282. main ()
  12283. {
  12284. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  12285. ;
  12286. return 0;
  12287. }
  12288. _ACEOF
  12289. if ac_fn_c_try_link "$LINENO"; then :
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12291. $as_echo "yes" >&6; }
  12292. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  12293. else
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12295. $as_echo "no" >&6; }
  12296. fi
  12297. rm -f core conftest.err conftest.$ac_objext \
  12298. conftest$ac_exeext conftest.$ac_ext
  12299. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system printf is NULL-safe." >&5
  12301. $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
  12302. if test "$cross_compiling" = yes; then :
  12303. # It's unlikely an embedded system will have this.
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  12305. $as_echo "unknown" >&6; }
  12306. else
  12307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12308. /* end confdefs.h. */
  12309. #include <stdio.h>
  12310. int
  12311. main ()
  12312. {
  12313. printf("%s", NULL)
  12314. ;
  12315. return 0;
  12316. }
  12317. _ACEOF
  12318. if ac_fn_c_try_run "$LINENO"; then :
  12319. $as_echo "#define HAVE_NULLSAFE_PRINTF 1" >>confdefs.h
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12321. $as_echo "yes" >&6; }
  12322. else
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12324. $as_echo "no" >&6; }
  12325. fi
  12326. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12327. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12328. fi
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can increase the maximum select-able file descriptor" >&5
  12330. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  12331. if test "$cross_compiling" = yes; then :
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  12333. $as_echo "cross-compile" >&6; }
  12334. else
  12335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12336. /* end confdefs.h. */
  12337. #include <stdio.h>
  12338. #include <sys/select.h>
  12339. #include <sys/time.h>
  12340. #include <sys/resource.h>
  12341. #include <string.h>
  12342. #include <errno.h>
  12343. #include <stdlib.h>
  12344. #include <sys/types.h>
  12345. #include <sys/stat.h>
  12346. #include <fcntl.h>
  12347. #include <unistd.h>
  12348. int
  12349. main ()
  12350. {
  12351. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  12352. int fd0, fd1;
  12353. struct timeval tv = { 0, };
  12354. struct ast_fdset { long fds_bits[1024]; } fds = { { 0, } };
  12355. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  12356. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  12357. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  12358. FD_SET(fd0, (fd_set *) &fds);
  12359. FD_SET(fd1, (fd_set *) &fds);
  12360. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  12361. exit(0)
  12362. ;
  12363. return 0;
  12364. }
  12365. _ACEOF
  12366. if ac_fn_c_try_run "$LINENO"; then :
  12367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12368. $as_echo "yes" >&6; }
  12369. $as_echo "#define HAVE_VARIABLE_FDSET 1" >>confdefs.h
  12370. else
  12371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12372. $as_echo "no" >&6; }
  12373. fi
  12374. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12375. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12376. fi
  12377. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  12378. if test "$cross_compiling" = yes; then :
  12379. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12380. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12381. as_fn_error $? "cannot run test program while cross compiling
  12382. See \`config.log' for more details" "$LINENO" 5 ; }
  12383. else
  12384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12385. /* end confdefs.h. */
  12386. #include <unistd.h>
  12387. #include <sys/types.h>
  12388. #include <stdlib.h>
  12389. int
  12390. main ()
  12391. {
  12392. if (getuid() != 0) { exit(1); }
  12393. ;
  12394. return 0;
  12395. }
  12396. _ACEOF
  12397. if ac_fn_c_try_run "$LINENO"; then :
  12398. $as_echo "#define CONFIGURE_RAN_AS_ROOT 1" >>confdefs.h
  12399. fi
  12400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12402. fi
  12403. fi
  12404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
  12405. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  12406. saved_CFLAGS="$CFLAGS"
  12407. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12408. if test "x" = "x"
  12409. then
  12410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12411. /* end confdefs.h. */
  12412. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  12413. int
  12414. main ()
  12415. {
  12416. ;
  12417. return 0;
  12418. }
  12419. _ACEOF
  12420. if ac_fn_c_try_compile "$LINENO"; then :
  12421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12422. $as_echo "yes" >&6; }
  12423. cat >>confdefs.h <<_ACEOF
  12424. #define HAVE_ATTRIBUTE_pure 1
  12425. _ACEOF
  12426. else
  12427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12428. $as_echo "no" >&6; }
  12429. fi
  12430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12431. else
  12432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12433. /* end confdefs.h. */
  12434. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12435. int
  12436. main ()
  12437. {
  12438. ;
  12439. return 0;
  12440. }
  12441. _ACEOF
  12442. if ac_fn_c_try_compile "$LINENO"; then :
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12444. $as_echo "yes" >&6; }
  12445. cat >>confdefs.h <<_ACEOF
  12446. #define HAVE_ATTRIBUTE_pure 1
  12447. _ACEOF
  12448. else
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12450. $as_echo "no" >&6; }
  12451. fi
  12452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12453. fi
  12454. CFLAGS="$saved_CFLAGS"
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
  12456. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  12457. saved_CFLAGS="$CFLAGS"
  12458. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12459. if test "x" = "x"
  12460. then
  12461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12462. /* end confdefs.h. */
  12463. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  12464. int
  12465. main ()
  12466. {
  12467. ;
  12468. return 0;
  12469. }
  12470. _ACEOF
  12471. if ac_fn_c_try_compile "$LINENO"; then :
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12473. $as_echo "yes" >&6; }
  12474. cat >>confdefs.h <<_ACEOF
  12475. #define HAVE_ATTRIBUTE_malloc 1
  12476. _ACEOF
  12477. else
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12479. $as_echo "no" >&6; }
  12480. fi
  12481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12482. else
  12483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12484. /* end confdefs.h. */
  12485. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12486. int
  12487. main ()
  12488. {
  12489. ;
  12490. return 0;
  12491. }
  12492. _ACEOF
  12493. if ac_fn_c_try_compile "$LINENO"; then :
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12495. $as_echo "yes" >&6; }
  12496. cat >>confdefs.h <<_ACEOF
  12497. #define HAVE_ATTRIBUTE_malloc 1
  12498. _ACEOF
  12499. else
  12500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12501. $as_echo "no" >&6; }
  12502. fi
  12503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12504. fi
  12505. CFLAGS="$saved_CFLAGS"
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
  12507. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  12508. saved_CFLAGS="$CFLAGS"
  12509. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12510. if test "x" = "x"
  12511. then
  12512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12513. /* end confdefs.h. */
  12514. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  12515. int
  12516. main ()
  12517. {
  12518. ;
  12519. return 0;
  12520. }
  12521. _ACEOF
  12522. if ac_fn_c_try_compile "$LINENO"; then :
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12524. $as_echo "yes" >&6; }
  12525. cat >>confdefs.h <<_ACEOF
  12526. #define HAVE_ATTRIBUTE_const 1
  12527. _ACEOF
  12528. else
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12530. $as_echo "no" >&6; }
  12531. fi
  12532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12533. else
  12534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12535. /* end confdefs.h. */
  12536. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12537. int
  12538. main ()
  12539. {
  12540. ;
  12541. return 0;
  12542. }
  12543. _ACEOF
  12544. if ac_fn_c_try_compile "$LINENO"; then :
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12546. $as_echo "yes" >&6; }
  12547. cat >>confdefs.h <<_ACEOF
  12548. #define HAVE_ATTRIBUTE_const 1
  12549. _ACEOF
  12550. else
  12551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12552. $as_echo "no" >&6; }
  12553. fi
  12554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12555. fi
  12556. CFLAGS="$saved_CFLAGS"
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
  12558. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  12559. saved_CFLAGS="$CFLAGS"
  12560. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12561. if test "x" = "x"
  12562. then
  12563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12564. /* end confdefs.h. */
  12565. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  12566. int
  12567. main ()
  12568. {
  12569. ;
  12570. return 0;
  12571. }
  12572. _ACEOF
  12573. if ac_fn_c_try_compile "$LINENO"; then :
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12575. $as_echo "yes" >&6; }
  12576. cat >>confdefs.h <<_ACEOF
  12577. #define HAVE_ATTRIBUTE_unused 1
  12578. _ACEOF
  12579. else
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12581. $as_echo "no" >&6; }
  12582. fi
  12583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12584. else
  12585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12586. /* end confdefs.h. */
  12587. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12588. int
  12589. main ()
  12590. {
  12591. ;
  12592. return 0;
  12593. }
  12594. _ACEOF
  12595. if ac_fn_c_try_compile "$LINENO"; then :
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12597. $as_echo "yes" >&6; }
  12598. cat >>confdefs.h <<_ACEOF
  12599. #define HAVE_ATTRIBUTE_unused 1
  12600. _ACEOF
  12601. else
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12603. $as_echo "no" >&6; }
  12604. fi
  12605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12606. fi
  12607. CFLAGS="$saved_CFLAGS"
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
  12609. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  12610. saved_CFLAGS="$CFLAGS"
  12611. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12612. if test "x" = "x"
  12613. then
  12614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12615. /* end confdefs.h. */
  12616. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  12617. int
  12618. main ()
  12619. {
  12620. ;
  12621. return 0;
  12622. }
  12623. _ACEOF
  12624. if ac_fn_c_try_compile "$LINENO"; then :
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12626. $as_echo "yes" >&6; }
  12627. cat >>confdefs.h <<_ACEOF
  12628. #define HAVE_ATTRIBUTE_always_inline 1
  12629. _ACEOF
  12630. else
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12632. $as_echo "no" >&6; }
  12633. fi
  12634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12635. else
  12636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12637. /* end confdefs.h. */
  12638. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12639. int
  12640. main ()
  12641. {
  12642. ;
  12643. return 0;
  12644. }
  12645. _ACEOF
  12646. if ac_fn_c_try_compile "$LINENO"; then :
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12648. $as_echo "yes" >&6; }
  12649. cat >>confdefs.h <<_ACEOF
  12650. #define HAVE_ATTRIBUTE_always_inline 1
  12651. _ACEOF
  12652. else
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12654. $as_echo "no" >&6; }
  12655. fi
  12656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12657. fi
  12658. CFLAGS="$saved_CFLAGS"
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
  12660. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  12661. saved_CFLAGS="$CFLAGS"
  12662. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12663. if test "x" = "x"
  12664. then
  12665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12666. /* end confdefs.h. */
  12667. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  12668. int
  12669. main ()
  12670. {
  12671. ;
  12672. return 0;
  12673. }
  12674. _ACEOF
  12675. if ac_fn_c_try_compile "$LINENO"; then :
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12677. $as_echo "yes" >&6; }
  12678. cat >>confdefs.h <<_ACEOF
  12679. #define HAVE_ATTRIBUTE_deprecated 1
  12680. _ACEOF
  12681. else
  12682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12683. $as_echo "no" >&6; }
  12684. fi
  12685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12686. else
  12687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12688. /* end confdefs.h. */
  12689. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12690. int
  12691. main ()
  12692. {
  12693. ;
  12694. return 0;
  12695. }
  12696. _ACEOF
  12697. if ac_fn_c_try_compile "$LINENO"; then :
  12698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12699. $as_echo "yes" >&6; }
  12700. cat >>confdefs.h <<_ACEOF
  12701. #define HAVE_ATTRIBUTE_deprecated 1
  12702. _ACEOF
  12703. else
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12705. $as_echo "no" >&6; }
  12706. fi
  12707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12708. fi
  12709. CFLAGS="$saved_CFLAGS"
  12710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute sentinel' support" >&5
  12711. $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
  12712. saved_CFLAGS="$CFLAGS"
  12713. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12714. if test "x" = "x"
  12715. then
  12716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12717. /* end confdefs.h. */
  12718. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  12719. int
  12720. main ()
  12721. {
  12722. ;
  12723. return 0;
  12724. }
  12725. _ACEOF
  12726. if ac_fn_c_try_compile "$LINENO"; then :
  12727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12728. $as_echo "yes" >&6; }
  12729. cat >>confdefs.h <<_ACEOF
  12730. #define HAVE_ATTRIBUTE_sentinel 1
  12731. _ACEOF
  12732. else
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12734. $as_echo "no" >&6; }
  12735. fi
  12736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12737. else
  12738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12739. /* end confdefs.h. */
  12740. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12741. int
  12742. main ()
  12743. {
  12744. ;
  12745. return 0;
  12746. }
  12747. _ACEOF
  12748. if ac_fn_c_try_compile "$LINENO"; then :
  12749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12750. $as_echo "yes" >&6; }
  12751. cat >>confdefs.h <<_ACEOF
  12752. #define HAVE_ATTRIBUTE_sentinel 1
  12753. _ACEOF
  12754. else
  12755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12756. $as_echo "no" >&6; }
  12757. fi
  12758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12759. fi
  12760. CFLAGS="$saved_CFLAGS"
  12761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
  12762. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  12763. saved_CFLAGS="$CFLAGS"
  12764. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12765. if test "x" = "x"
  12766. then
  12767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12768. /* end confdefs.h. */
  12769. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  12770. int
  12771. main ()
  12772. {
  12773. ;
  12774. return 0;
  12775. }
  12776. _ACEOF
  12777. if ac_fn_c_try_compile "$LINENO"; then :
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12779. $as_echo "yes" >&6; }
  12780. cat >>confdefs.h <<_ACEOF
  12781. #define HAVE_ATTRIBUTE_warn_unused_result 1
  12782. _ACEOF
  12783. else
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12785. $as_echo "no" >&6; }
  12786. fi
  12787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12788. else
  12789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12790. /* end confdefs.h. */
  12791. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12792. int
  12793. main ()
  12794. {
  12795. ;
  12796. return 0;
  12797. }
  12798. _ACEOF
  12799. if ac_fn_c_try_compile "$LINENO"; then :
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12801. $as_echo "yes" >&6; }
  12802. cat >>confdefs.h <<_ACEOF
  12803. #define HAVE_ATTRIBUTE_warn_unused_result 1
  12804. _ACEOF
  12805. else
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12807. $as_echo "no" >&6; }
  12808. fi
  12809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12810. fi
  12811. CFLAGS="$saved_CFLAGS"
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak_import' support" >&5
  12813. $as_echo_n "checking for compiler 'attribute weak_import' support... " >&6; }
  12814. saved_CFLAGS="$CFLAGS"
  12815. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12816. PBX_WEAKREF=0
  12817. if test "x" = "x"
  12818. then
  12819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12820. /* end confdefs.h. */
  12821. void __attribute__((weak_import)) *test(void *muffin, ...) {return (void *) 0;}
  12822. int
  12823. main ()
  12824. {
  12825. ;
  12826. return 0;
  12827. }
  12828. _ACEOF
  12829. if ac_fn_c_try_compile "$LINENO"; then :
  12830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12831. $as_echo "yes" >&6; }
  12832. PBX_WEAKREF=1
  12833. cat >>confdefs.h <<_ACEOF
  12834. #define HAVE_ATTRIBUTE_weak_import 1
  12835. _ACEOF
  12836. else
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12838. $as_echo "no" >&6; }
  12839. fi
  12840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12841. else
  12842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12843. /* end confdefs.h. */
  12844. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  12845. int
  12846. main ()
  12847. {
  12848. ;
  12849. return 0;
  12850. }
  12851. _ACEOF
  12852. if ac_fn_c_try_compile "$LINENO"; then :
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12854. $as_echo "yes" >&6; }
  12855. PBX_WEAKREF=1
  12856. cat >>confdefs.h <<_ACEOF
  12857. #define HAVE_ATTRIBUTE_weak_import 1
  12858. _ACEOF
  12859. else
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12861. $as_echo "no" >&6; }
  12862. fi
  12863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12864. fi
  12865. CFLAGS="$saved_CFLAGS"
  12866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
  12867. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  12868. saved_CFLAGS="$CFLAGS"
  12869. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  12870. PBX_WEAKREF=0
  12871. if test "xweakref("foo")" = "x"
  12872. then
  12873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12874. /* end confdefs.h. */
  12875. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  12876. int
  12877. main ()
  12878. {
  12879. ;
  12880. return 0;
  12881. }
  12882. _ACEOF
  12883. if ac_fn_c_try_compile "$LINENO"; then :
  12884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12885. $as_echo "yes" >&6; }
  12886. PBX_WEAKREF=1
  12887. cat >>confdefs.h <<_ACEOF
  12888. #define HAVE_ATTRIBUTE_weakref 1
  12889. _ACEOF
  12890. else
  12891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12892. $as_echo "no" >&6; }
  12893. fi
  12894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12895. else
  12896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12897. /* end confdefs.h. */
  12898. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  12899. int
  12900. main ()
  12901. {
  12902. ;
  12903. return 0;
  12904. }
  12905. _ACEOF
  12906. if ac_fn_c_try_compile "$LINENO"; then :
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12908. $as_echo "yes" >&6; }
  12909. PBX_WEAKREF=1
  12910. cat >>confdefs.h <<_ACEOF
  12911. #define HAVE_ATTRIBUTE_weakref 1
  12912. _ACEOF
  12913. else
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12915. $as_echo "no" >&6; }
  12916. fi
  12917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12918. fi
  12919. CFLAGS="$saved_CFLAGS"
  12920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ffunction-sections support" >&5
  12921. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  12922. saved_CFLAGS="${CFLAGS}"
  12923. CFLAGS="${CFLAGS} -ffunction-sections"
  12924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12925. /* end confdefs.h. */
  12926. int
  12927. main ()
  12928. {
  12929. int x = 1;
  12930. ;
  12931. return 0;
  12932. }
  12933. _ACEOF
  12934. if ac_fn_c_try_compile "$LINENO"; then :
  12935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12936. $as_echo "yes" >&6; }
  12937. saved_LDFLAGS="${LDFLAGS}"
  12938. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --gc-sections support" >&5
  12940. $as_echo_n "checking for --gc-sections support... " >&6; }
  12941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12942. /* end confdefs.h. */
  12943. int
  12944. main ()
  12945. {
  12946. int x = 1;
  12947. ;
  12948. return 0;
  12949. }
  12950. _ACEOF
  12951. if ac_fn_c_try_link "$LINENO"; then :
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12953. $as_echo "yes" >&6; }
  12954. GC_CFLAGS="-ffunction-sections"
  12955. GC_LDFLAGS="-Wl,--gc-sections"
  12956. else
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12958. $as_echo "no" >&6; }
  12959. fi
  12960. rm -f core conftest.err conftest.$ac_objext \
  12961. conftest$ac_exeext conftest.$ac_ext
  12962. LDFLAGS="${saved_LDFLAGS}"
  12963. else
  12964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12965. $as_echo "no" >&6; }
  12966. fi
  12967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12968. CFLAGS="${saved_CFLAGS}"
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
  12970. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  12971. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  12972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12973. $as_echo "yes" >&6; }
  12974. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  12975. else
  12976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12977. $as_echo "no" >&6; }
  12978. AST_DECLARATION_AFTER_STATEMENT=
  12979. fi
  12980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
  12981. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  12982. if $(${CC} -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  12983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12984. $as_echo "yes" >&6; }
  12985. AST_FORTIFY_SOURCE=-D_FORTIFY_SOURCE=2
  12986. else
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12988. $as_echo "no" >&6; }
  12989. AST_FORTIFY_SOURCE=
  12990. fi
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
  12992. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  12993. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  12994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12995. $as_echo "yes" >&6; }
  12996. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  12997. else
  12998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12999. $as_echo "no" >&6; }
  13000. AST_NO_STRICT_OVERFLOW=
  13001. fi
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
  13003. $as_echo_n "checking for -Wshadow... " >&6; }
  13004. if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13006. $as_echo "yes" >&6; }
  13007. AST_SHADOW_WARNINGS=-Wshadow
  13008. else
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13010. $as_echo "no" >&6; }
  13011. AST_SHADOW_WARNINGS=
  13012. fi
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native" >&5
  13014. $as_echo_n "checking for -march=native... " >&6; }
  13015. if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13017. $as_echo "yes" >&6; }
  13018. AST_MARCH_NATIVE="-march=native"
  13019. else
  13020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13021. $as_echo "no" >&6; }
  13022. AST_MARCH_NATIVE=
  13023. fi
  13024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
  13025. $as_echo_n "checking for sysinfo... " >&6; }
  13026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13027. /* end confdefs.h. */
  13028. #include <sys/sysinfo.h>
  13029. int
  13030. main ()
  13031. {
  13032. struct sysinfo sys_info; int uptime = sys_info.uptime
  13033. ;
  13034. return 0;
  13035. }
  13036. _ACEOF
  13037. if ac_fn_c_try_link "$LINENO"; then :
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13039. $as_echo "yes" >&6; }
  13040. $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
  13041. else
  13042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13043. $as_echo "no" >&6; }
  13044. fi
  13045. rm -f core conftest.err conftest.$ac_objext \
  13046. conftest$ac_exeext conftest.$ac_ext
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
  13048. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  13049. if test "${ac_cv_search_res_9_ninit+set}" = set; then :
  13050. $as_echo_n "(cached) " >&6
  13051. else
  13052. ac_func_search_save_LIBS=$LIBS
  13053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13054. /* end confdefs.h. */
  13055. /* Override any GCC internal prototype to avoid an error.
  13056. Use char because int might match the return type of a GCC
  13057. builtin and then its argument prototype would still apply. */
  13058. #ifdef __cplusplus
  13059. extern "C"
  13060. #endif
  13061. char res_9_ninit ();
  13062. int
  13063. main ()
  13064. {
  13065. return res_9_ninit ();
  13066. ;
  13067. return 0;
  13068. }
  13069. _ACEOF
  13070. for ac_lib in '' resolv; do
  13071. if test -z "$ac_lib"; then
  13072. ac_res="none required"
  13073. else
  13074. ac_res=-l$ac_lib
  13075. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13076. fi
  13077. if ac_fn_c_try_link "$LINENO"; then :
  13078. ac_cv_search_res_9_ninit=$ac_res
  13079. fi
  13080. rm -f core conftest.err conftest.$ac_objext \
  13081. conftest$ac_exeext
  13082. if test "${ac_cv_search_res_9_ninit+set}" = set; then :
  13083. break
  13084. fi
  13085. done
  13086. if test "${ac_cv_search_res_9_ninit+set}" = set; then :
  13087. else
  13088. ac_cv_search_res_9_ninit=no
  13089. fi
  13090. rm conftest.$ac_ext
  13091. LIBS=$ac_func_search_save_LIBS
  13092. fi
  13093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
  13094. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  13095. ac_res=$ac_cv_search_res_9_ninit
  13096. if test "$ac_res" != no; then :
  13097. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13098. fi
  13099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
  13100. $as_echo_n "checking for res_ninit... " >&6; }
  13101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13102. /* end confdefs.h. */
  13103. #ifdef HAVE_SYS_SOCKET_H
  13104. #include <sys/socket.h>
  13105. #endif
  13106. #ifdef HAVE_NETINET_IN_H
  13107. #include <netinet/in.h>
  13108. #endif
  13109. #ifdef HAVE_ARPA_NAMESER_H
  13110. #include <arpa/nameser.h>
  13111. #endif
  13112. #include <resolv.h>
  13113. int
  13114. main ()
  13115. {
  13116. int foo = res_ninit(NULL);
  13117. ;
  13118. return 0;
  13119. }
  13120. _ACEOF
  13121. if ac_fn_c_try_link "$LINENO"; then :
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13123. $as_echo "yes" >&6; }
  13124. $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
  13126. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  13127. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then :
  13128. $as_echo_n "(cached) " >&6
  13129. else
  13130. ac_func_search_save_LIBS=$LIBS
  13131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13132. /* end confdefs.h. */
  13133. /* Override any GCC internal prototype to avoid an error.
  13134. Use char because int might match the return type of a GCC
  13135. builtin and then its argument prototype would still apply. */
  13136. #ifdef __cplusplus
  13137. extern "C"
  13138. #endif
  13139. char res_9_ndestroy ();
  13140. int
  13141. main ()
  13142. {
  13143. return res_9_ndestroy ();
  13144. ;
  13145. return 0;
  13146. }
  13147. _ACEOF
  13148. for ac_lib in '' resolv; do
  13149. if test -z "$ac_lib"; then
  13150. ac_res="none required"
  13151. else
  13152. ac_res=-l$ac_lib
  13153. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13154. fi
  13155. if ac_fn_c_try_link "$LINENO"; then :
  13156. ac_cv_search_res_9_ndestroy=$ac_res
  13157. fi
  13158. rm -f core conftest.err conftest.$ac_objext \
  13159. conftest$ac_exeext
  13160. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then :
  13161. break
  13162. fi
  13163. done
  13164. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then :
  13165. else
  13166. ac_cv_search_res_9_ndestroy=no
  13167. fi
  13168. rm conftest.$ac_ext
  13169. LIBS=$ac_func_search_save_LIBS
  13170. fi
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
  13172. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  13173. ac_res=$ac_cv_search_res_9_ndestroy
  13174. if test "$ac_res" != no; then :
  13175. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13176. fi
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
  13178. $as_echo_n "checking for res_ndestroy... " >&6; }
  13179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13180. /* end confdefs.h. */
  13181. #ifdef HAVE_SYS_SOCKET_H
  13182. #include <sys/socket.h>
  13183. #endif
  13184. #ifdef HAVE_NETINET_IN_H
  13185. #include <netinet/in.h>
  13186. #endif
  13187. #ifdef HAVE_ARPA_NAMESER_H
  13188. #include <arpa/nameser.h>
  13189. #endif
  13190. #include <resolv.h>
  13191. int
  13192. main ()
  13193. {
  13194. res_ndestroy(NULL);
  13195. ;
  13196. return 0;
  13197. }
  13198. _ACEOF
  13199. if ac_fn_c_try_link "$LINENO"; then :
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13201. $as_echo "yes" >&6; }
  13202. $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
  13203. else
  13204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13205. $as_echo "no" >&6; }
  13206. fi
  13207. rm -f core conftest.err conftest.$ac_objext \
  13208. conftest$ac_exeext conftest.$ac_ext
  13209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_close" >&5
  13210. $as_echo_n "checking for library containing res_9_close... " >&6; }
  13211. if test "${ac_cv_search_res_9_close+set}" = set; then :
  13212. $as_echo_n "(cached) " >&6
  13213. else
  13214. ac_func_search_save_LIBS=$LIBS
  13215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13216. /* end confdefs.h. */
  13217. /* Override any GCC internal prototype to avoid an error.
  13218. Use char because int might match the return type of a GCC
  13219. builtin and then its argument prototype would still apply. */
  13220. #ifdef __cplusplus
  13221. extern "C"
  13222. #endif
  13223. char res_9_close ();
  13224. int
  13225. main ()
  13226. {
  13227. return res_9_close ();
  13228. ;
  13229. return 0;
  13230. }
  13231. _ACEOF
  13232. for ac_lib in '' resolv; do
  13233. if test -z "$ac_lib"; then
  13234. ac_res="none required"
  13235. else
  13236. ac_res=-l$ac_lib
  13237. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13238. fi
  13239. if ac_fn_c_try_link "$LINENO"; then :
  13240. ac_cv_search_res_9_close=$ac_res
  13241. fi
  13242. rm -f core conftest.err conftest.$ac_objext \
  13243. conftest$ac_exeext
  13244. if test "${ac_cv_search_res_9_close+set}" = set; then :
  13245. break
  13246. fi
  13247. done
  13248. if test "${ac_cv_search_res_9_close+set}" = set; then :
  13249. else
  13250. ac_cv_search_res_9_close=no
  13251. fi
  13252. rm conftest.$ac_ext
  13253. LIBS=$ac_func_search_save_LIBS
  13254. fi
  13255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_close" >&5
  13256. $as_echo "$ac_cv_search_res_9_close" >&6; }
  13257. ac_res=$ac_cv_search_res_9_close
  13258. if test "$ac_res" != no; then :
  13259. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13260. fi
  13261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_close" >&5
  13262. $as_echo_n "checking for res_close... " >&6; }
  13263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13264. /* end confdefs.h. */
  13265. #ifdef HAVE_SYS_SOCKET_H
  13266. #include <sys/socket.h>
  13267. #endif
  13268. #ifdef HAVE_NETINET_IN_H
  13269. #include <netinet/in.h>
  13270. #endif
  13271. #ifdef HAVE_ARPA_NAMESER_H
  13272. #include <arpa/nameser.h>
  13273. #endif
  13274. #include <resolv.h>
  13275. int
  13276. main ()
  13277. {
  13278. res_close();
  13279. ;
  13280. return 0;
  13281. }
  13282. _ACEOF
  13283. if ac_fn_c_try_link "$LINENO"; then :
  13284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13285. $as_echo "yes" >&6; }
  13286. $as_echo "#define HAVE_RES_CLOSE 1" >>confdefs.h
  13287. else
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13289. $as_echo "no" >&6; }
  13290. fi
  13291. rm -f core conftest.err conftest.$ac_objext \
  13292. conftest$ac_exeext conftest.$ac_ext
  13293. else
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13295. $as_echo "no" >&6; }
  13296. fi
  13297. rm -f core conftest.err conftest.$ac_objext \
  13298. conftest$ac_exeext conftest.$ac_ext
  13299. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC in glob.h" >&5
  13301. $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  13302. saved_cppflags="${CPPFLAGS}"
  13303. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  13304. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  13305. fi
  13306. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  13307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13308. /* end confdefs.h. */
  13309. #include <glob.h>
  13310. int
  13311. main ()
  13312. {
  13313. #if defined(GLOB_NOMAGIC)
  13314. int foo = 0;
  13315. #else
  13316. int foo = bar;
  13317. #endif
  13318. 0
  13319. ;
  13320. return 0;
  13321. }
  13322. _ACEOF
  13323. if ac_fn_c_try_compile "$LINENO"; then :
  13324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13325. $as_echo "yes" >&6; }
  13326. PBX_GLOB_NOMAGIC=1
  13327. $as_echo "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
  13328. else
  13329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13330. $as_echo "no" >&6; }
  13331. fi
  13332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13333. CPPFLAGS="${saved_cppflags}"
  13334. fi
  13335. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  13336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE in glob.h" >&5
  13337. $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
  13338. saved_cppflags="${CPPFLAGS}"
  13339. if test "x${GLOB_BRACE_DIR}" != "x"; then
  13340. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  13341. fi
  13342. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  13343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13344. /* end confdefs.h. */
  13345. #include <glob.h>
  13346. int
  13347. main ()
  13348. {
  13349. #if defined(GLOB_BRACE)
  13350. int foo = 0;
  13351. #else
  13352. int foo = bar;
  13353. #endif
  13354. 0
  13355. ;
  13356. return 0;
  13357. }
  13358. _ACEOF
  13359. if ac_fn_c_try_compile "$LINENO"; then :
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13361. $as_echo "yes" >&6; }
  13362. PBX_GLOB_BRACE=1
  13363. $as_echo "#define HAVE_GLOB_BRACE 1" >>confdefs.h
  13364. else
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13366. $as_echo "no" >&6; }
  13367. fi
  13368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13369. CPPFLAGS="${saved_cppflags}"
  13370. fi
  13371. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  13372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  13373. $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  13374. saved_cppflags="${CPPFLAGS}"
  13375. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  13376. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  13377. fi
  13378. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  13379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13380. /* end confdefs.h. */
  13381. #include <netinet/in.h>
  13382. int
  13383. main ()
  13384. {
  13385. #if defined(IP_MTU_DISCOVER)
  13386. int foo = 0;
  13387. #else
  13388. int foo = bar;
  13389. #endif
  13390. 0
  13391. ;
  13392. return 0;
  13393. }
  13394. _ACEOF
  13395. if ac_fn_c_try_compile "$LINENO"; then :
  13396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13397. $as_echo "yes" >&6; }
  13398. PBX_IP_MTU_DISCOVER=1
  13399. $as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
  13400. else
  13401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13402. $as_echo "no" >&6; }
  13403. fi
  13404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13405. CPPFLAGS="${saved_cppflags}"
  13406. fi
  13407. ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
  13408. if test "x$ac_cv_header_libkern_OSAtomic_h" = x""yes; then :
  13409. cat >>confdefs.h <<_ACEOF
  13410. #define HAVE_OSX_ATOMICS 1
  13411. _ACEOF
  13412. fi
  13413. # The cast to long int works around a bug in the HP C Compiler
  13414. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13415. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13416. # This bug is HP SR number 8606223364.
  13417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13418. $as_echo_n "checking size of int... " >&6; }
  13419. if test "${ac_cv_sizeof_int+set}" = set; then :
  13420. $as_echo_n "(cached) " >&6
  13421. else
  13422. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13423. else
  13424. if test "$ac_cv_type_int" = yes; then
  13425. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13426. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13427. as_fn_error 77 "cannot compute sizeof (int)
  13428. See \`config.log' for more details" "$LINENO" 5 ; }
  13429. else
  13430. ac_cv_sizeof_int=0
  13431. fi
  13432. fi
  13433. fi
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13435. $as_echo "$ac_cv_sizeof_int" >&6; }
  13436. cat >>confdefs.h <<_ACEOF
  13437. #define SIZEOF_INT $ac_cv_sizeof_int
  13438. _ACEOF
  13439. # The cast to long int works around a bug in the HP C Compiler
  13440. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13441. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13442. # This bug is HP SR number 8606223364.
  13443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13444. $as_echo_n "checking size of long... " >&6; }
  13445. if test "${ac_cv_sizeof_long+set}" = set; then :
  13446. $as_echo_n "(cached) " >&6
  13447. else
  13448. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13449. else
  13450. if test "$ac_cv_type_long" = yes; then
  13451. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13452. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13453. as_fn_error 77 "cannot compute sizeof (long)
  13454. See \`config.log' for more details" "$LINENO" 5 ; }
  13455. else
  13456. ac_cv_sizeof_long=0
  13457. fi
  13458. fi
  13459. fi
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13461. $as_echo "$ac_cv_sizeof_long" >&6; }
  13462. cat >>confdefs.h <<_ACEOF
  13463. #define SIZEOF_LONG $ac_cv_sizeof_long
  13464. _ACEOF
  13465. # The cast to long int works around a bug in the HP C Compiler
  13466. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13467. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13468. # This bug is HP SR number 8606223364.
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  13470. $as_echo_n "checking size of long long... " >&6; }
  13471. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  13472. $as_echo_n "(cached) " >&6
  13473. else
  13474. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  13475. else
  13476. if test "$ac_cv_type_long_long" = yes; then
  13477. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13478. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13479. as_fn_error 77 "cannot compute sizeof (long long)
  13480. See \`config.log' for more details" "$LINENO" 5 ; }
  13481. else
  13482. ac_cv_sizeof_long_long=0
  13483. fi
  13484. fi
  13485. fi
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  13487. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  13488. cat >>confdefs.h <<_ACEOF
  13489. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  13490. _ACEOF
  13491. # The cast to long int works around a bug in the HP C Compiler
  13492. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13493. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13494. # This bug is HP SR number 8606223364.
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  13496. $as_echo_n "checking size of char *... " >&6; }
  13497. if test "${ac_cv_sizeof_char_p+set}" = set; then :
  13498. $as_echo_n "(cached) " >&6
  13499. else
  13500. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  13501. else
  13502. if test "$ac_cv_type_char_p" = yes; then
  13503. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13505. as_fn_error 77 "cannot compute sizeof (char *)
  13506. See \`config.log' for more details" "$LINENO" 5 ; }
  13507. else
  13508. ac_cv_sizeof_char_p=0
  13509. fi
  13510. fi
  13511. fi
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  13513. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  13514. cat >>confdefs.h <<_ACEOF
  13515. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  13516. _ACEOF
  13517. # The cast to long int works around a bug in the HP C Compiler
  13518. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13519. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13520. # This bug is HP SR number 8606223364.
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13522. $as_echo_n "checking size of long... " >&6; }
  13523. if test "${ac_cv_sizeof_long+set}" = set; then :
  13524. $as_echo_n "(cached) " >&6
  13525. else
  13526. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13527. else
  13528. if test "$ac_cv_type_long" = yes; then
  13529. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13530. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13531. as_fn_error 77 "cannot compute sizeof (long)
  13532. See \`config.log' for more details" "$LINENO" 5 ; }
  13533. else
  13534. ac_cv_sizeof_long=0
  13535. fi
  13536. fi
  13537. fi
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13539. $as_echo "$ac_cv_sizeof_long" >&6; }
  13540. cat >>confdefs.h <<_ACEOF
  13541. #define SIZEOF_LONG $ac_cv_sizeof_long
  13542. _ACEOF
  13543. # The cast to long int works around a bug in the HP C Compiler
  13544. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13545. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13546. # This bug is HP SR number 8606223364.
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  13548. $as_echo_n "checking size of long long... " >&6; }
  13549. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  13550. $as_echo_n "(cached) " >&6
  13551. else
  13552. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  13553. else
  13554. if test "$ac_cv_type_long_long" = yes; then
  13555. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13556. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13557. as_fn_error 77 "cannot compute sizeof (long long)
  13558. See \`config.log' for more details" "$LINENO" 5 ; }
  13559. else
  13560. ac_cv_sizeof_long_long=0
  13561. fi
  13562. fi
  13563. fi
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  13565. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  13566. cat >>confdefs.h <<_ACEOF
  13567. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  13568. _ACEOF
  13569. if ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
  13570. fd_set foo;"; then :
  13571. fi
  13572. # This doesn't actually work; what it does is to use the variable set in the
  13573. # previous test as a cached value to set the right output variables.
  13574. # The cast to long int works around a bug in the HP C Compiler
  13575. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13576. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13577. # This bug is HP SR number 8606223364.
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fd_set.fds_bits" >&5
  13579. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  13580. if test "${ac_cv_sizeof_fd_set_fds_bits+set}" = set; then :
  13581. $as_echo_n "(cached) " >&6
  13582. else
  13583. 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 :
  13584. else
  13585. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  13586. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13588. as_fn_error 77 "cannot compute sizeof (fd_set.fds_bits)
  13589. See \`config.log' for more details" "$LINENO" 5 ; }
  13590. else
  13591. ac_cv_sizeof_fd_set_fds_bits=0
  13592. fi
  13593. fi
  13594. fi
  13595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  13596. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  13597. cat >>confdefs.h <<_ACEOF
  13598. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  13599. _ACEOF
  13600. # Set a type compatible with the previous. We cannot just use a generic type
  13601. # for these bits, because on big-endian systems, the bits won't match up
  13602. # correctly if the size is wrong.
  13603. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  13604. $as_echo "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
  13605. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  13606. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
  13607. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  13608. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
  13609. fi ; fi ; fi
  13610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
  13611. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  13612. PBX_DLADDR=0
  13613. old_LIBS=${LIBS}
  13614. LIBS="${LIBS} -ldl"
  13615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13616. /* end confdefs.h. */
  13617. #define _GNU_SOURCE 1
  13618. #include <dlfcn.h>
  13619. int
  13620. main ()
  13621. {
  13622. dladdr((void *)0, (void *)0)
  13623. ;
  13624. return 0;
  13625. }
  13626. _ACEOF
  13627. if ac_fn_c_try_link "$LINENO"; then :
  13628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13629. $as_echo "yes" >&6; }
  13630. PBX_DLADDR=1
  13631. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  13632. else
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13634. $as_echo "no" >&6; }
  13635. fi
  13636. rm -f core conftest.err conftest.$ac_objext \
  13637. conftest$ac_exeext conftest.$ac_ext
  13638. LIBS=${old_LIBS}
  13639. # PKGCONFIG is used in later tests
  13640. if test -n "$ac_tool_prefix"; then
  13641. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13642. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13644. $as_echo_n "checking for $ac_word... " >&6; }
  13645. if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
  13646. $as_echo_n "(cached) " >&6
  13647. else
  13648. if test -n "$PKGCONFIG"; then
  13649. ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
  13650. else
  13651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13652. for as_dir in $PATH
  13653. do
  13654. IFS=$as_save_IFS
  13655. test -z "$as_dir" && as_dir=.
  13656. for ac_exec_ext in '' $ac_executable_extensions; do
  13657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13658. ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
  13659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13660. break 2
  13661. fi
  13662. done
  13663. done
  13664. IFS=$as_save_IFS
  13665. fi
  13666. fi
  13667. PKGCONFIG=$ac_cv_prog_PKGCONFIG
  13668. if test -n "$PKGCONFIG"; then
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  13670. $as_echo "$PKGCONFIG" >&6; }
  13671. else
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13673. $as_echo "no" >&6; }
  13674. fi
  13675. fi
  13676. if test -z "$ac_cv_prog_PKGCONFIG"; then
  13677. ac_ct_PKGCONFIG=$PKGCONFIG
  13678. # Extract the first word of "pkg-config", so it can be a program name with args.
  13679. set dummy pkg-config; ac_word=$2
  13680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13681. $as_echo_n "checking for $ac_word... " >&6; }
  13682. if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then :
  13683. $as_echo_n "(cached) " >&6
  13684. else
  13685. if test -n "$ac_ct_PKGCONFIG"; then
  13686. ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
  13687. else
  13688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13689. for as_dir in $PATH
  13690. do
  13691. IFS=$as_save_IFS
  13692. test -z "$as_dir" && as_dir=.
  13693. for ac_exec_ext in '' $ac_executable_extensions; do
  13694. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13695. ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
  13696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13697. break 2
  13698. fi
  13699. done
  13700. done
  13701. IFS=$as_save_IFS
  13702. fi
  13703. fi
  13704. ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
  13705. if test -n "$ac_ct_PKGCONFIG"; then
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKGCONFIG" >&5
  13707. $as_echo "$ac_ct_PKGCONFIG" >&6; }
  13708. else
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13710. $as_echo "no" >&6; }
  13711. fi
  13712. if test "x$ac_ct_PKGCONFIG" = x; then
  13713. PKGCONFIG="No"
  13714. else
  13715. case $cross_compiling:$ac_tool_warned in
  13716. yes:)
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13718. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13719. ac_tool_warned=yes ;;
  13720. esac
  13721. PKGCONFIG=$ac_ct_PKGCONFIG
  13722. fi
  13723. else
  13724. PKGCONFIG="$ac_cv_prog_PKGCONFIG"
  13725. fi
  13726. # do the package library checks now
  13727. if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
  13728. pbxlibdir=""
  13729. # if --with-ALSA=DIR has been specified, use it.
  13730. if test "x${ALSA_DIR}" != "x"; then
  13731. if test -d ${ALSA_DIR}/lib; then
  13732. pbxlibdir="-L${ALSA_DIR}/lib"
  13733. else
  13734. pbxlibdir="-L${ALSA_DIR}"
  13735. fi
  13736. fi
  13737. pbxfuncname="snd_spcm_init"
  13738. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  13739. AST_ALSA_FOUND=yes
  13740. else
  13741. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13742. CFLAGS="${CFLAGS} "
  13743. as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lasound" >&5
  13745. $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
  13746. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13747. $as_echo_n "(cached) " >&6
  13748. else
  13749. ac_check_lib_save_LIBS=$LIBS
  13750. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  13751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13752. /* end confdefs.h. */
  13753. /* Override any GCC internal prototype to avoid an error.
  13754. Use char because int might match the return type of a GCC
  13755. builtin and then its argument prototype would still apply. */
  13756. #ifdef __cplusplus
  13757. extern "C"
  13758. #endif
  13759. char ${pbxfuncname} ();
  13760. int
  13761. main ()
  13762. {
  13763. return ${pbxfuncname} ();
  13764. ;
  13765. return 0;
  13766. }
  13767. _ACEOF
  13768. if ac_fn_c_try_link "$LINENO"; then :
  13769. eval "$as_ac_Lib=yes"
  13770. else
  13771. eval "$as_ac_Lib=no"
  13772. fi
  13773. rm -f core conftest.err conftest.$ac_objext \
  13774. conftest$ac_exeext conftest.$ac_ext
  13775. LIBS=$ac_check_lib_save_LIBS
  13776. fi
  13777. eval ac_res=\$$as_ac_Lib
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13779. $as_echo "$ac_res" >&6; }
  13780. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13781. AST_ALSA_FOUND=yes
  13782. else
  13783. AST_ALSA_FOUND=no
  13784. fi
  13785. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13786. fi
  13787. # now check for the header.
  13788. if test "${AST_ALSA_FOUND}" = "yes"; then
  13789. ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
  13790. # if --with-ALSA=DIR has been specified, use it.
  13791. if test "x${ALSA_DIR}" != "x"; then
  13792. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  13793. fi
  13794. ALSA_INCLUDE="${ALSA_INCLUDE} "
  13795. if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
  13796. ALSA_HEADER_FOUND="1"
  13797. else # check for the header
  13798. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13799. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  13800. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  13801. if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
  13802. ALSA_HEADER_FOUND=1
  13803. else
  13804. ALSA_HEADER_FOUND=0
  13805. fi
  13806. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13807. fi
  13808. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  13809. ALSA_LIB=""
  13810. ALSA_INCLUDE=""
  13811. else
  13812. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  13813. ALSA_LIB=""
  13814. fi
  13815. PBX_ALSA=1
  13816. cat >>confdefs.h <<_ACEOF
  13817. #define HAVE_ALSA 1
  13818. _ACEOF
  13819. fi
  13820. fi
  13821. fi
  13822. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  13823. pbxlibdir=""
  13824. # if --with-BFD=DIR has been specified, use it.
  13825. if test "x${BFD_DIR}" != "x"; then
  13826. if test -d ${BFD_DIR}/lib; then
  13827. pbxlibdir="-L${BFD_DIR}/lib"
  13828. else
  13829. pbxlibdir="-L${BFD_DIR}"
  13830. fi
  13831. fi
  13832. pbxfuncname="bfd_openr"
  13833. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  13834. AST_BFD_FOUND=yes
  13835. else
  13836. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13837. CFLAGS="${CFLAGS} "
  13838. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  13839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  13840. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  13841. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13842. $as_echo_n "(cached) " >&6
  13843. else
  13844. ac_check_lib_save_LIBS=$LIBS
  13845. LIBS="-lbfd ${pbxlibdir} $LIBS"
  13846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13847. /* end confdefs.h. */
  13848. /* Override any GCC internal prototype to avoid an error.
  13849. Use char because int might match the return type of a GCC
  13850. builtin and then its argument prototype would still apply. */
  13851. #ifdef __cplusplus
  13852. extern "C"
  13853. #endif
  13854. char ${pbxfuncname} ();
  13855. int
  13856. main ()
  13857. {
  13858. return ${pbxfuncname} ();
  13859. ;
  13860. return 0;
  13861. }
  13862. _ACEOF
  13863. if ac_fn_c_try_link "$LINENO"; then :
  13864. eval "$as_ac_Lib=yes"
  13865. else
  13866. eval "$as_ac_Lib=no"
  13867. fi
  13868. rm -f core conftest.err conftest.$ac_objext \
  13869. conftest$ac_exeext conftest.$ac_ext
  13870. LIBS=$ac_check_lib_save_LIBS
  13871. fi
  13872. eval ac_res=\$$as_ac_Lib
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13874. $as_echo "$ac_res" >&6; }
  13875. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13876. AST_BFD_FOUND=yes
  13877. else
  13878. AST_BFD_FOUND=no
  13879. fi
  13880. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13881. fi
  13882. # now check for the header.
  13883. if test "${AST_BFD_FOUND}" = "yes"; then
  13884. BFD_LIB="${pbxlibdir} -lbfd "
  13885. # if --with-BFD=DIR has been specified, use it.
  13886. if test "x${BFD_DIR}" != "x"; then
  13887. BFD_INCLUDE="-I${BFD_DIR}/include"
  13888. fi
  13889. BFD_INCLUDE="${BFD_INCLUDE} "
  13890. if test "xbfd.h" = "x" ; then # no header, assume found
  13891. BFD_HEADER_FOUND="1"
  13892. else # check for the header
  13893. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13894. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  13895. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13896. if test "x$ac_cv_header_bfd_h" = x""yes; then :
  13897. BFD_HEADER_FOUND=1
  13898. else
  13899. BFD_HEADER_FOUND=0
  13900. fi
  13901. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13902. fi
  13903. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  13904. BFD_LIB=""
  13905. BFD_INCLUDE=""
  13906. else
  13907. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  13908. BFD_LIB=""
  13909. fi
  13910. PBX_BFD=1
  13911. cat >>confdefs.h <<_ACEOF
  13912. #define HAVE_BFD 1
  13913. _ACEOF
  13914. fi
  13915. fi
  13916. fi
  13917. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  13918. pbxlibdir=""
  13919. # if --with-CURSES=DIR has been specified, use it.
  13920. if test "x${CURSES_DIR}" != "x"; then
  13921. if test -d ${CURSES_DIR}/lib; then
  13922. pbxlibdir="-L${CURSES_DIR}/lib"
  13923. else
  13924. pbxlibdir="-L${CURSES_DIR}"
  13925. fi
  13926. fi
  13927. pbxfuncname="initscr"
  13928. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  13929. AST_CURSES_FOUND=yes
  13930. else
  13931. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13932. CFLAGS="${CFLAGS} "
  13933. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
  13935. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  13936. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13937. $as_echo_n "(cached) " >&6
  13938. else
  13939. ac_check_lib_save_LIBS=$LIBS
  13940. LIBS="-lcurses ${pbxlibdir} $LIBS"
  13941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13942. /* end confdefs.h. */
  13943. /* Override any GCC internal prototype to avoid an error.
  13944. Use char because int might match the return type of a GCC
  13945. builtin and then its argument prototype would still apply. */
  13946. #ifdef __cplusplus
  13947. extern "C"
  13948. #endif
  13949. char ${pbxfuncname} ();
  13950. int
  13951. main ()
  13952. {
  13953. return ${pbxfuncname} ();
  13954. ;
  13955. return 0;
  13956. }
  13957. _ACEOF
  13958. if ac_fn_c_try_link "$LINENO"; then :
  13959. eval "$as_ac_Lib=yes"
  13960. else
  13961. eval "$as_ac_Lib=no"
  13962. fi
  13963. rm -f core conftest.err conftest.$ac_objext \
  13964. conftest$ac_exeext conftest.$ac_ext
  13965. LIBS=$ac_check_lib_save_LIBS
  13966. fi
  13967. eval ac_res=\$$as_ac_Lib
  13968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13969. $as_echo "$ac_res" >&6; }
  13970. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13971. AST_CURSES_FOUND=yes
  13972. else
  13973. AST_CURSES_FOUND=no
  13974. fi
  13975. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13976. fi
  13977. # now check for the header.
  13978. if test "${AST_CURSES_FOUND}" = "yes"; then
  13979. CURSES_LIB="${pbxlibdir} -lcurses "
  13980. # if --with-CURSES=DIR has been specified, use it.
  13981. if test "x${CURSES_DIR}" != "x"; then
  13982. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  13983. fi
  13984. CURSES_INCLUDE="${CURSES_INCLUDE} "
  13985. if test "xcurses.h" = "x" ; then # no header, assume found
  13986. CURSES_HEADER_FOUND="1"
  13987. else # check for the header
  13988. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13989. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  13990. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  13991. if test "x$ac_cv_header_curses_h" = x""yes; then :
  13992. CURSES_HEADER_FOUND=1
  13993. else
  13994. CURSES_HEADER_FOUND=0
  13995. fi
  13996. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13997. fi
  13998. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  13999. CURSES_LIB=""
  14000. CURSES_INCLUDE=""
  14001. else
  14002. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14003. CURSES_LIB=""
  14004. fi
  14005. PBX_CURSES=1
  14006. cat >>confdefs.h <<_ACEOF
  14007. #define HAVE_CURSES 1
  14008. _ACEOF
  14009. fi
  14010. fi
  14011. fi
  14012. if test "x${OSARCH}" = "xlinux-gnu" ; then
  14013. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  14014. pbxlibdir=""
  14015. # if --with-CAP=DIR has been specified, use it.
  14016. if test "x${CAP_DIR}" != "x"; then
  14017. if test -d ${CAP_DIR}/lib; then
  14018. pbxlibdir="-L${CAP_DIR}/lib"
  14019. else
  14020. pbxlibdir="-L${CAP_DIR}"
  14021. fi
  14022. fi
  14023. pbxfuncname="cap_from_text"
  14024. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14025. AST_CAP_FOUND=yes
  14026. else
  14027. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14028. CFLAGS="${CFLAGS} "
  14029. as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcap" >&5
  14031. $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
  14032. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14033. $as_echo_n "(cached) " >&6
  14034. else
  14035. ac_check_lib_save_LIBS=$LIBS
  14036. LIBS="-lcap ${pbxlibdir} $LIBS"
  14037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14038. /* end confdefs.h. */
  14039. /* Override any GCC internal prototype to avoid an error.
  14040. Use char because int might match the return type of a GCC
  14041. builtin and then its argument prototype would still apply. */
  14042. #ifdef __cplusplus
  14043. extern "C"
  14044. #endif
  14045. char ${pbxfuncname} ();
  14046. int
  14047. main ()
  14048. {
  14049. return ${pbxfuncname} ();
  14050. ;
  14051. return 0;
  14052. }
  14053. _ACEOF
  14054. if ac_fn_c_try_link "$LINENO"; then :
  14055. eval "$as_ac_Lib=yes"
  14056. else
  14057. eval "$as_ac_Lib=no"
  14058. fi
  14059. rm -f core conftest.err conftest.$ac_objext \
  14060. conftest$ac_exeext conftest.$ac_ext
  14061. LIBS=$ac_check_lib_save_LIBS
  14062. fi
  14063. eval ac_res=\$$as_ac_Lib
  14064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14065. $as_echo "$ac_res" >&6; }
  14066. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14067. AST_CAP_FOUND=yes
  14068. else
  14069. AST_CAP_FOUND=no
  14070. fi
  14071. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14072. fi
  14073. # now check for the header.
  14074. if test "${AST_CAP_FOUND}" = "yes"; then
  14075. CAP_LIB="${pbxlibdir} -lcap "
  14076. # if --with-CAP=DIR has been specified, use it.
  14077. if test "x${CAP_DIR}" != "x"; then
  14078. CAP_INCLUDE="-I${CAP_DIR}/include"
  14079. fi
  14080. CAP_INCLUDE="${CAP_INCLUDE} "
  14081. if test "xsys/capability.h" = "x" ; then # no header, assume found
  14082. CAP_HEADER_FOUND="1"
  14083. else # check for the header
  14084. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14085. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  14086. ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  14087. if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
  14088. CAP_HEADER_FOUND=1
  14089. else
  14090. CAP_HEADER_FOUND=0
  14091. fi
  14092. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14093. fi
  14094. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  14095. CAP_LIB=""
  14096. CAP_INCLUDE=""
  14097. else
  14098. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14099. CAP_LIB=""
  14100. fi
  14101. PBX_CAP=1
  14102. cat >>confdefs.h <<_ACEOF
  14103. #define HAVE_CAP 1
  14104. _ACEOF
  14105. fi
  14106. fi
  14107. fi
  14108. fi
  14109. if test "x${PBX_DAHDI}" != "x1"; then
  14110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  14111. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  14112. saved_cppflags="${CPPFLAGS}"
  14113. if test "x${DAHDI_DIR}" != "x"; then
  14114. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  14115. fi
  14116. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  14117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14118. /* end confdefs.h. */
  14119. #include <dahdi/user.h>
  14120. int
  14121. main ()
  14122. {
  14123. #if defined(DAHDI_RESET_COUNTERS)
  14124. int foo = 0;
  14125. #else
  14126. int foo = bar;
  14127. #endif
  14128. 0
  14129. ;
  14130. return 0;
  14131. }
  14132. _ACEOF
  14133. if ac_fn_c_try_compile "$LINENO"; then :
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14135. $as_echo "yes" >&6; }
  14136. PBX_DAHDI=1
  14137. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  14138. $as_echo "#define HAVE_DAHDI_VERSION 230" >>confdefs.h
  14139. else
  14140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14141. $as_echo "no" >&6; }
  14142. fi
  14143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14144. CPPFLAGS="${saved_cppflags}"
  14145. fi
  14146. if test "x${PBX_DAHDI}" != "x1"; then
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  14148. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  14149. saved_cppflags="${CPPFLAGS}"
  14150. if test "x${DAHDI_DIR}" != "x"; then
  14151. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  14152. fi
  14153. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  14154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14155. /* end confdefs.h. */
  14156. #include <dahdi/user.h>
  14157. int
  14158. main ()
  14159. {
  14160. #if defined(DAHDI_DEFAULT_MTU_MRU)
  14161. int foo = 0;
  14162. #else
  14163. int foo = bar;
  14164. #endif
  14165. 0
  14166. ;
  14167. return 0;
  14168. }
  14169. _ACEOF
  14170. if ac_fn_c_try_compile "$LINENO"; then :
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14172. $as_echo "yes" >&6; }
  14173. PBX_DAHDI=1
  14174. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  14175. $as_echo "#define HAVE_DAHDI_VERSION 220" >>confdefs.h
  14176. else
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14178. $as_echo "no" >&6; }
  14179. fi
  14180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14181. CPPFLAGS="${saved_cppflags}"
  14182. fi
  14183. if test "x${PBX_DAHDI}" != "x1"; then
  14184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
  14185. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  14186. saved_cppflags="${CPPFLAGS}"
  14187. if test "x${DAHDI_DIR}" != "x"; then
  14188. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  14189. fi
  14190. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  14191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14192. /* end confdefs.h. */
  14193. #include <dahdi/user.h>
  14194. int
  14195. main ()
  14196. {
  14197. #if defined(DAHDI_CODE)
  14198. int foo = 0;
  14199. #else
  14200. int foo = bar;
  14201. #endif
  14202. 0
  14203. ;
  14204. return 0;
  14205. }
  14206. _ACEOF
  14207. if ac_fn_c_try_compile "$LINENO"; then :
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14209. $as_echo "yes" >&6; }
  14210. PBX_DAHDI=1
  14211. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  14212. $as_echo "#define HAVE_DAHDI_VERSION 200" >>confdefs.h
  14213. else
  14214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14215. $as_echo "no" >&6; }
  14216. fi
  14217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14218. CPPFLAGS="${saved_cppflags}"
  14219. fi
  14220. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  14221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  14222. $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  14223. saved_cppflags="${CPPFLAGS}"
  14224. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  14225. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  14226. fi
  14227. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  14228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14229. /* end confdefs.h. */
  14230. #include <dahdi/user.h>
  14231. int
  14232. main ()
  14233. {
  14234. #if defined(DAHDI_POLICY_HALF_FULL)
  14235. int foo = 0;
  14236. #else
  14237. int foo = bar;
  14238. #endif
  14239. 0
  14240. ;
  14241. return 0;
  14242. }
  14243. _ACEOF
  14244. if ac_fn_c_try_compile "$LINENO"; then :
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14246. $as_echo "yes" >&6; }
  14247. PBX_DAHDI_HALF_FULL=1
  14248. $as_echo "#define HAVE_DAHDI_HALF_FULL 1" >>confdefs.h
  14249. else
  14250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14251. $as_echo "no" >&6; }
  14252. fi
  14253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14254. CPPFLAGS="${saved_cppflags}"
  14255. fi
  14256. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  14257. if test "xenhanced dahdi vmwi support" != "x"; then
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enhanced dahdi vmwi support" >&5
  14259. $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
  14260. else
  14261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
  14262. $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
  14263. fi
  14264. saved_cppflags="${CPPFLAGS}"
  14265. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  14266. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  14267. fi
  14268. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  14269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14270. /* end confdefs.h. */
  14271. #include <dahdi/user.h>
  14272. int
  14273. main ()
  14274. {
  14275. struct dahdi_vmwi_info booger;
  14276. ;
  14277. return 0;
  14278. }
  14279. _ACEOF
  14280. if ac_fn_c_try_compile "$LINENO"; then :
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14282. $as_echo "yes" >&6; }
  14283. PBX_DAHDI_LINEREVERSE_VMWI=1
  14284. $as_echo "#define HAVE_DAHDI_LINEREVERSE_VMWI 1" >>confdefs.h
  14285. else
  14286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14287. $as_echo "no" >&6; }
  14288. fi
  14289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14290. CPPFLAGS="${saved_cppflags}"
  14291. fi
  14292. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  14293. if test "x" != "x"; then
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
  14295. $as_echo_n "checking for ... " >&6; }
  14296. else
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  14298. $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  14299. fi
  14300. saved_cppflags="${CPPFLAGS}"
  14301. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  14302. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  14303. fi
  14304. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  14305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14306. /* end confdefs.h. */
  14307. #include <dahdi/user.h>
  14308. int
  14309. main ()
  14310. {
  14311. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  14312. ;
  14313. return 0;
  14314. }
  14315. _ACEOF
  14316. if ac_fn_c_try_compile "$LINENO"; then :
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14318. $as_echo "yes" >&6; }
  14319. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  14320. $as_echo "#define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1" >>confdefs.h
  14321. else
  14322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14323. $as_echo "no" >&6; }
  14324. fi
  14325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14326. CPPFLAGS="${saved_cppflags}"
  14327. fi
  14328. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  14329. if test "xgetifaddrs() support" != "x"; then
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
  14331. $as_echo_n "checking for getifaddrs() support... " >&6; }
  14332. else
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  14334. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  14335. fi
  14336. saved_cppflags="${CPPFLAGS}"
  14337. if test "x${GETIFADDRS_DIR}" != "x"; then
  14338. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  14339. fi
  14340. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  14341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14342. /* end confdefs.h. */
  14343. #include <ifaddrs.h>
  14344. int
  14345. main ()
  14346. {
  14347. struct ifaddrs *p; getifaddrs(&p);
  14348. ;
  14349. return 0;
  14350. }
  14351. _ACEOF
  14352. if ac_fn_c_try_compile "$LINENO"; then :
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14354. $as_echo "yes" >&6; }
  14355. PBX_GETIFADDRS=1
  14356. $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
  14357. else
  14358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14359. $as_echo "no" >&6; }
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14362. CPPFLAGS="${saved_cppflags}"
  14363. fi
  14364. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  14365. if test "xtimerfd support" != "x"; then
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5
  14367. $as_echo_n "checking for timerfd support... " >&6; }
  14368. else
  14369. { $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
  14370. $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
  14371. fi
  14372. saved_cppflags="${CPPFLAGS}"
  14373. if test "x${TIMERFD_DIR}" != "x"; then
  14374. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  14375. fi
  14376. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  14377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14378. /* end confdefs.h. */
  14379. #include <sys/timerfd.h>
  14380. int
  14381. main ()
  14382. {
  14383. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  14384. ;
  14385. return 0;
  14386. }
  14387. _ACEOF
  14388. if ac_fn_c_try_compile "$LINENO"; then :
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14390. $as_echo "yes" >&6; }
  14391. PBX_TIMERFD=1
  14392. $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
  14393. else
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14395. $as_echo "no" >&6; }
  14396. fi
  14397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14398. CPPFLAGS="${saved_cppflags}"
  14399. fi
  14400. GSM_INTERNAL="yes"
  14401. GSM_SYSTEM="yes"
  14402. if test "${USE_GSM}" != "no"; then
  14403. if test "${GSM_DIR}" = "internal"; then
  14404. GSM_SYSTEM="no"
  14405. elif test "${GSM_DIR}" != ""; then
  14406. GSM_INTERNAL="no"
  14407. fi
  14408. if test "${GSM_SYSTEM}" = "yes"; then
  14409. gsmlibdir=""
  14410. if test "x${GSM_DIR}" != "x"; then
  14411. if test -d ${GSM_DIR}/lib; then
  14412. gsmlibdir="-L${GSM_DIR}/lib"
  14413. else
  14414. gsmlibdir="-L${GSM_DIR}"
  14415. fi
  14416. fi
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  14418. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  14419. if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then :
  14420. $as_echo_n "(cached) " >&6
  14421. else
  14422. ac_check_lib_save_LIBS=$LIBS
  14423. LIBS="-lgsm ${gsmlibdir} $LIBS"
  14424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14425. /* end confdefs.h. */
  14426. /* Override any GCC internal prototype to avoid an error.
  14427. Use char because int might match the return type of a GCC
  14428. builtin and then its argument prototype would still apply. */
  14429. #ifdef __cplusplus
  14430. extern "C"
  14431. #endif
  14432. char gsm_create ();
  14433. int
  14434. main ()
  14435. {
  14436. return gsm_create ();
  14437. ;
  14438. return 0;
  14439. }
  14440. _ACEOF
  14441. if ac_fn_c_try_link "$LINENO"; then :
  14442. ac_cv_lib_gsm_gsm_create=yes
  14443. else
  14444. ac_cv_lib_gsm_gsm_create=no
  14445. fi
  14446. rm -f core conftest.err conftest.$ac_objext \
  14447. conftest$ac_exeext conftest.$ac_ext
  14448. LIBS=$ac_check_lib_save_LIBS
  14449. fi
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  14451. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  14452. if test "x$ac_cv_lib_gsm_gsm_create" = x""yes; then :
  14453. cat >>confdefs.h <<_ACEOF
  14454. #define HAVE_GSM 1
  14455. _ACEOF
  14456. fi
  14457. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  14458. if test "x${GSM_DIR}" != "x" ; then
  14459. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  14460. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
  14461. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14462. GSM_HEADER_FOUND=1
  14463. else
  14464. GSM_HEADER_FOUND=0
  14465. fi
  14466. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  14467. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
  14468. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14469. GSM_GSM_HEADER_FOUND=1
  14470. else
  14471. GSM_GSM_HEADER_FOUND=0
  14472. fi
  14473. else
  14474. ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  14475. if test "x$ac_cv_header_gsm_h" = x""yes; then :
  14476. GSM_HEADER_FOUND=1
  14477. else
  14478. GSM_HEADER_FOUND=0
  14479. fi
  14480. ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
  14481. if test "x$ac_cv_header_gsm_gsm_h" = x""yes; then :
  14482. GSM_GSM_HEADER_FOUND=1
  14483. else
  14484. GSM_GSM_HEADER_FOUND=0
  14485. fi
  14486. fi
  14487. if test "${GSM_HEADER_FOUND}" = "0" ; then
  14488. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  14489. if test "x${GSM_MANDATORY}" = "xyes" ; then
  14490. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14491. $as_echo "$as_me: ***" >&6;}
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
  14493. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  14494. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  14495. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  14496. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  14497. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  14498. exit 1
  14499. fi
  14500. fi
  14501. fi
  14502. GSM_OK=0
  14503. if test "${GSM_HEADER_FOUND}" = "1" ; then
  14504. cat >>confdefs.h <<_ACEOF
  14505. #define HAVE_GSM_HEADER 1
  14506. _ACEOF
  14507. GSM_OK=1
  14508. else
  14509. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  14510. cat >>confdefs.h <<_ACEOF
  14511. #define HAVE_GSM_GSM_HEADER 1
  14512. _ACEOF
  14513. GSM_OK=1
  14514. fi
  14515. fi
  14516. if test "${GSM_OK}" = "1" ; then
  14517. GSM_LIB="-lgsm"
  14518. if test "x${GSM_DIR}" != "x"; then
  14519. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  14520. GSM_INCLUDE="-I${GSM_DIR}/include"
  14521. fi
  14522. PBX_GSM=1
  14523. GSM_INTERNAL="no"
  14524. fi
  14525. fi
  14526. fi
  14527. if test "${GSM_INTERNAL}" = "yes"; then
  14528. PBX_GSM=1
  14529. cat >>confdefs.h <<_ACEOF
  14530. #define HAVE_GSM_HEADER 1
  14531. _ACEOF
  14532. fi
  14533. fi
  14534. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  14535. pbxlibdir=""
  14536. # if --with-ICONV=DIR has been specified, use it.
  14537. if test "x${ICONV_DIR}" != "x"; then
  14538. if test -d ${ICONV_DIR}/lib; then
  14539. pbxlibdir="-L${ICONV_DIR}/lib"
  14540. else
  14541. pbxlibdir="-L${ICONV_DIR}"
  14542. fi
  14543. fi
  14544. pbxfuncname="iconv_open"
  14545. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14546. AST_ICONV_FOUND=yes
  14547. else
  14548. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14549. CFLAGS="${CFLAGS} "
  14550. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  14551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  14552. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  14553. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14554. $as_echo_n "(cached) " >&6
  14555. else
  14556. ac_check_lib_save_LIBS=$LIBS
  14557. LIBS="-liconv ${pbxlibdir} $LIBS"
  14558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14559. /* end confdefs.h. */
  14560. /* Override any GCC internal prototype to avoid an error.
  14561. Use char because int might match the return type of a GCC
  14562. builtin and then its argument prototype would still apply. */
  14563. #ifdef __cplusplus
  14564. extern "C"
  14565. #endif
  14566. char ${pbxfuncname} ();
  14567. int
  14568. main ()
  14569. {
  14570. return ${pbxfuncname} ();
  14571. ;
  14572. return 0;
  14573. }
  14574. _ACEOF
  14575. if ac_fn_c_try_link "$LINENO"; then :
  14576. eval "$as_ac_Lib=yes"
  14577. else
  14578. eval "$as_ac_Lib=no"
  14579. fi
  14580. rm -f core conftest.err conftest.$ac_objext \
  14581. conftest$ac_exeext conftest.$ac_ext
  14582. LIBS=$ac_check_lib_save_LIBS
  14583. fi
  14584. eval ac_res=\$$as_ac_Lib
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14586. $as_echo "$ac_res" >&6; }
  14587. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14588. AST_ICONV_FOUND=yes
  14589. else
  14590. AST_ICONV_FOUND=no
  14591. fi
  14592. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14593. fi
  14594. # now check for the header.
  14595. if test "${AST_ICONV_FOUND}" = "yes"; then
  14596. ICONV_LIB="${pbxlibdir} -liconv "
  14597. # if --with-ICONV=DIR has been specified, use it.
  14598. if test "x${ICONV_DIR}" != "x"; then
  14599. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  14600. fi
  14601. ICONV_INCLUDE="${ICONV_INCLUDE} "
  14602. if test "xiconv.h" = "x" ; then # no header, assume found
  14603. ICONV_HEADER_FOUND="1"
  14604. else # check for the header
  14605. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14606. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  14607. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  14608. if test "x$ac_cv_header_iconv_h" = x""yes; then :
  14609. ICONV_HEADER_FOUND=1
  14610. else
  14611. ICONV_HEADER_FOUND=0
  14612. fi
  14613. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14614. fi
  14615. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  14616. ICONV_LIB=""
  14617. ICONV_INCLUDE=""
  14618. else
  14619. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14620. ICONV_LIB=""
  14621. fi
  14622. PBX_ICONV=1
  14623. cat >>confdefs.h <<_ACEOF
  14624. #define HAVE_ICONV 1
  14625. _ACEOF
  14626. fi
  14627. fi
  14628. fi
  14629. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  14630. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  14631. pbxlibdir=""
  14632. # if --with-ICONV=DIR has been specified, use it.
  14633. if test "x${ICONV_DIR}" != "x"; then
  14634. if test -d ${ICONV_DIR}/lib; then
  14635. pbxlibdir="-L${ICONV_DIR}/lib"
  14636. else
  14637. pbxlibdir="-L${ICONV_DIR}"
  14638. fi
  14639. fi
  14640. pbxfuncname="libiconv_open"
  14641. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14642. AST_ICONV_FOUND=yes
  14643. else
  14644. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14645. CFLAGS="${CFLAGS} "
  14646. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  14648. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  14649. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14650. $as_echo_n "(cached) " >&6
  14651. else
  14652. ac_check_lib_save_LIBS=$LIBS
  14653. LIBS="-liconv ${pbxlibdir} $LIBS"
  14654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14655. /* end confdefs.h. */
  14656. /* Override any GCC internal prototype to avoid an error.
  14657. Use char because int might match the return type of a GCC
  14658. builtin and then its argument prototype would still apply. */
  14659. #ifdef __cplusplus
  14660. extern "C"
  14661. #endif
  14662. char ${pbxfuncname} ();
  14663. int
  14664. main ()
  14665. {
  14666. return ${pbxfuncname} ();
  14667. ;
  14668. return 0;
  14669. }
  14670. _ACEOF
  14671. if ac_fn_c_try_link "$LINENO"; then :
  14672. eval "$as_ac_Lib=yes"
  14673. else
  14674. eval "$as_ac_Lib=no"
  14675. fi
  14676. rm -f core conftest.err conftest.$ac_objext \
  14677. conftest$ac_exeext conftest.$ac_ext
  14678. LIBS=$ac_check_lib_save_LIBS
  14679. fi
  14680. eval ac_res=\$$as_ac_Lib
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14682. $as_echo "$ac_res" >&6; }
  14683. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14684. AST_ICONV_FOUND=yes
  14685. else
  14686. AST_ICONV_FOUND=no
  14687. fi
  14688. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14689. fi
  14690. # now check for the header.
  14691. if test "${AST_ICONV_FOUND}" = "yes"; then
  14692. ICONV_LIB="${pbxlibdir} -liconv "
  14693. # if --with-ICONV=DIR has been specified, use it.
  14694. if test "x${ICONV_DIR}" != "x"; then
  14695. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  14696. fi
  14697. ICONV_INCLUDE="${ICONV_INCLUDE} "
  14698. if test "xiconv.h" = "x" ; then # no header, assume found
  14699. ICONV_HEADER_FOUND="1"
  14700. else # check for the header
  14701. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14702. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  14703. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  14704. if test "x$ac_cv_header_iconv_h" = x""yes; then :
  14705. ICONV_HEADER_FOUND=1
  14706. else
  14707. ICONV_HEADER_FOUND=0
  14708. fi
  14709. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14710. fi
  14711. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  14712. ICONV_LIB=""
  14713. ICONV_INCLUDE=""
  14714. else
  14715. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14716. ICONV_LIB=""
  14717. fi
  14718. PBX_ICONV=1
  14719. cat >>confdefs.h <<_ACEOF
  14720. #define HAVE_ICONV 1
  14721. _ACEOF
  14722. fi
  14723. fi
  14724. fi
  14725. # Some versions of Linux package iconv in glibc
  14726. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  14727. pbxlibdir=""
  14728. # if --with-ICONV=DIR has been specified, use it.
  14729. if test "x${ICONV_DIR}" != "x"; then
  14730. if test -d ${ICONV_DIR}/lib; then
  14731. pbxlibdir="-L${ICONV_DIR}/lib"
  14732. else
  14733. pbxlibdir="-L${ICONV_DIR}"
  14734. fi
  14735. fi
  14736. pbxfuncname="iconv_close"
  14737. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14738. AST_ICONV_FOUND=yes
  14739. else
  14740. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14741. CFLAGS="${CFLAGS} "
  14742. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  14744. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  14745. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14746. $as_echo_n "(cached) " >&6
  14747. else
  14748. ac_check_lib_save_LIBS=$LIBS
  14749. LIBS="-lc ${pbxlibdir} $LIBS"
  14750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14751. /* end confdefs.h. */
  14752. /* Override any GCC internal prototype to avoid an error.
  14753. Use char because int might match the return type of a GCC
  14754. builtin and then its argument prototype would still apply. */
  14755. #ifdef __cplusplus
  14756. extern "C"
  14757. #endif
  14758. char ${pbxfuncname} ();
  14759. int
  14760. main ()
  14761. {
  14762. return ${pbxfuncname} ();
  14763. ;
  14764. return 0;
  14765. }
  14766. _ACEOF
  14767. if ac_fn_c_try_link "$LINENO"; then :
  14768. eval "$as_ac_Lib=yes"
  14769. else
  14770. eval "$as_ac_Lib=no"
  14771. fi
  14772. rm -f core conftest.err conftest.$ac_objext \
  14773. conftest$ac_exeext conftest.$ac_ext
  14774. LIBS=$ac_check_lib_save_LIBS
  14775. fi
  14776. eval ac_res=\$$as_ac_Lib
  14777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14778. $as_echo "$ac_res" >&6; }
  14779. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14780. AST_ICONV_FOUND=yes
  14781. else
  14782. AST_ICONV_FOUND=no
  14783. fi
  14784. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14785. fi
  14786. # now check for the header.
  14787. if test "${AST_ICONV_FOUND}" = "yes"; then
  14788. ICONV_LIB="${pbxlibdir} -lc "
  14789. # if --with-ICONV=DIR has been specified, use it.
  14790. if test "x${ICONV_DIR}" != "x"; then
  14791. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  14792. fi
  14793. ICONV_INCLUDE="${ICONV_INCLUDE} "
  14794. if test "xiconv.h" = "x" ; then # no header, assume found
  14795. ICONV_HEADER_FOUND="1"
  14796. else # check for the header
  14797. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14798. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  14799. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  14800. if test "x$ac_cv_header_iconv_h" = x""yes; then :
  14801. ICONV_HEADER_FOUND=1
  14802. else
  14803. ICONV_HEADER_FOUND=0
  14804. fi
  14805. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14806. fi
  14807. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  14808. ICONV_LIB=""
  14809. ICONV_INCLUDE=""
  14810. else
  14811. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14812. ICONV_LIB=""
  14813. fi
  14814. PBX_ICONV=1
  14815. cat >>confdefs.h <<_ACEOF
  14816. #define HAVE_ICONV 1
  14817. _ACEOF
  14818. fi
  14819. fi
  14820. fi
  14821. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  14822. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  14823. pbxlibdir=""
  14824. # if --with-ICAL=DIR has been specified, use it.
  14825. if test "x${ICAL_DIR}" != "x"; then
  14826. if test -d ${ICAL_DIR}/lib; then
  14827. pbxlibdir="-L${ICAL_DIR}/lib"
  14828. else
  14829. pbxlibdir="-L${ICAL_DIR}"
  14830. fi
  14831. fi
  14832. pbxfuncname="icaltimezone_get_utc_timezone"
  14833. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14834. AST_ICAL_FOUND=yes
  14835. else
  14836. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14837. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  14838. as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
  14839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lical" >&5
  14840. $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
  14841. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14842. $as_echo_n "(cached) " >&6
  14843. else
  14844. ac_check_lib_save_LIBS=$LIBS
  14845. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  14846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14847. /* end confdefs.h. */
  14848. /* Override any GCC internal prototype to avoid an error.
  14849. Use char because int might match the return type of a GCC
  14850. builtin and then its argument prototype would still apply. */
  14851. #ifdef __cplusplus
  14852. extern "C"
  14853. #endif
  14854. char ${pbxfuncname} ();
  14855. int
  14856. main ()
  14857. {
  14858. return ${pbxfuncname} ();
  14859. ;
  14860. return 0;
  14861. }
  14862. _ACEOF
  14863. if ac_fn_c_try_link "$LINENO"; then :
  14864. eval "$as_ac_Lib=yes"
  14865. else
  14866. eval "$as_ac_Lib=no"
  14867. fi
  14868. rm -f core conftest.err conftest.$ac_objext \
  14869. conftest$ac_exeext conftest.$ac_ext
  14870. LIBS=$ac_check_lib_save_LIBS
  14871. fi
  14872. eval ac_res=\$$as_ac_Lib
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14874. $as_echo "$ac_res" >&6; }
  14875. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14876. AST_ICAL_FOUND=yes
  14877. else
  14878. AST_ICAL_FOUND=no
  14879. fi
  14880. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14881. fi
  14882. # now check for the header.
  14883. if test "${AST_ICAL_FOUND}" = "yes"; then
  14884. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  14885. # if --with-ICAL=DIR has been specified, use it.
  14886. if test "x${ICAL_DIR}" != "x"; then
  14887. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  14888. fi
  14889. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  14890. if test "xlibical/ical.h" = "x" ; then # no header, assume found
  14891. ICAL_HEADER_FOUND="1"
  14892. else # check for the header
  14893. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14894. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  14895. ac_fn_c_check_header_mongrel "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default"
  14896. if test "x$ac_cv_header_libical_ical_h" = x""yes; then :
  14897. ICAL_HEADER_FOUND=1
  14898. else
  14899. ICAL_HEADER_FOUND=0
  14900. fi
  14901. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14902. fi
  14903. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  14904. ICAL_LIB=""
  14905. ICAL_INCLUDE=""
  14906. else
  14907. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14908. ICAL_LIB=""
  14909. fi
  14910. PBX_ICAL=1
  14911. cat >>confdefs.h <<_ACEOF
  14912. #define HAVE_ICAL 1
  14913. _ACEOF
  14914. fi
  14915. fi
  14916. fi
  14917. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  14918. pbxlibdir=""
  14919. # if --with-IKSEMEL=DIR has been specified, use it.
  14920. if test "x${IKSEMEL_DIR}" != "x"; then
  14921. if test -d ${IKSEMEL_DIR}/lib; then
  14922. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  14923. else
  14924. pbxlibdir="-L${IKSEMEL_DIR}"
  14925. fi
  14926. fi
  14927. pbxfuncname="iks_start_sasl"
  14928. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14929. AST_IKSEMEL_FOUND=yes
  14930. else
  14931. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14932. CFLAGS="${CFLAGS} "
  14933. as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
  14934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liksemel" >&5
  14935. $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
  14936. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14937. $as_echo_n "(cached) " >&6
  14938. else
  14939. ac_check_lib_save_LIBS=$LIBS
  14940. LIBS="-liksemel ${pbxlibdir} $LIBS"
  14941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14942. /* end confdefs.h. */
  14943. /* Override any GCC internal prototype to avoid an error.
  14944. Use char because int might match the return type of a GCC
  14945. builtin and then its argument prototype would still apply. */
  14946. #ifdef __cplusplus
  14947. extern "C"
  14948. #endif
  14949. char ${pbxfuncname} ();
  14950. int
  14951. main ()
  14952. {
  14953. return ${pbxfuncname} ();
  14954. ;
  14955. return 0;
  14956. }
  14957. _ACEOF
  14958. if ac_fn_c_try_link "$LINENO"; then :
  14959. eval "$as_ac_Lib=yes"
  14960. else
  14961. eval "$as_ac_Lib=no"
  14962. fi
  14963. rm -f core conftest.err conftest.$ac_objext \
  14964. conftest$ac_exeext conftest.$ac_ext
  14965. LIBS=$ac_check_lib_save_LIBS
  14966. fi
  14967. eval ac_res=\$$as_ac_Lib
  14968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14969. $as_echo "$ac_res" >&6; }
  14970. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14971. AST_IKSEMEL_FOUND=yes
  14972. else
  14973. AST_IKSEMEL_FOUND=no
  14974. fi
  14975. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14976. fi
  14977. # now check for the header.
  14978. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  14979. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  14980. # if --with-IKSEMEL=DIR has been specified, use it.
  14981. if test "x${IKSEMEL_DIR}" != "x"; then
  14982. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  14983. fi
  14984. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  14985. if test "xiksemel.h" = "x" ; then # no header, assume found
  14986. IKSEMEL_HEADER_FOUND="1"
  14987. else # check for the header
  14988. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14989. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  14990. ac_fn_c_check_header_mongrel "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
  14991. if test "x$ac_cv_header_iksemel_h" = x""yes; then :
  14992. IKSEMEL_HEADER_FOUND=1
  14993. else
  14994. IKSEMEL_HEADER_FOUND=0
  14995. fi
  14996. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14997. fi
  14998. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  14999. IKSEMEL_LIB=""
  15000. IKSEMEL_INCLUDE=""
  15001. else
  15002. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15003. IKSEMEL_LIB=""
  15004. fi
  15005. PBX_IKSEMEL=1
  15006. cat >>confdefs.h <<_ACEOF
  15007. #define HAVE_IKSEMEL 1
  15008. _ACEOF
  15009. fi
  15010. fi
  15011. fi
  15012. if test "${USE_IMAP_TK}" != "no"; then
  15013. saved_cppflags="${CPPFLAGS}"
  15014. saved_libs="${LIBS}"
  15015. switch_to_system_on_failure="no"
  15016. if test "${IMAP_TK_DIR}" = ""; then
  15017. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  15018. switch_to_system_on_failure="yes"
  15019. fi
  15020. if test "${IMAP_TK_DIR}" != "system"; then
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
  15022. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  15023. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  15024. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  15025. fi
  15026. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  15027. imap_include="-I${IMAP_TK_DIR}/c-client"
  15028. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  15029. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  15030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15031. /* end confdefs.h. */
  15032. #include "c-client.h"
  15033. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15034. {
  15035. }
  15036. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15037. {
  15038. }
  15039. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15040. {
  15041. }
  15042. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15043. {
  15044. }
  15045. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15046. {
  15047. }
  15048. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15049. {
  15050. }
  15051. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15052. {
  15053. }
  15054. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15055. {
  15056. }
  15057. void mm_log (char *string,long errflg)
  15058. {
  15059. }
  15060. void mm_dlog (char *string)
  15061. {
  15062. }
  15063. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15064. {
  15065. }
  15066. void mm_critical (MAILSTREAM *stream)
  15067. {
  15068. }
  15069. void mm_nocritical (MAILSTREAM *stream)
  15070. {
  15071. }
  15072. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15073. {
  15074. }
  15075. void mm_fatal (char *string)
  15076. {
  15077. }
  15078. int
  15079. main ()
  15080. {
  15081. MAILSTREAM *foo = mail_open(NULL, "", 0);
  15082. ;
  15083. return 0;
  15084. }
  15085. _ACEOF
  15086. if ac_fn_c_try_link "$LINENO"; then :
  15087. ac_cv_imap_tk="yes"
  15088. else
  15089. ac_cv_imap_tk="no"
  15090. fi
  15091. rm -f core conftest.err conftest.$ac_objext \
  15092. conftest$ac_exeext conftest.$ac_ext
  15093. if test "${ac_cv_imap_tk}" = "yes"; then
  15094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15095. /* end confdefs.h. */
  15096. #include "c-client.h"
  15097. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15098. {
  15099. }
  15100. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15101. {
  15102. }
  15103. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15104. {
  15105. }
  15106. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15107. {
  15108. }
  15109. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15110. {
  15111. }
  15112. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15113. {
  15114. }
  15115. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15116. {
  15117. }
  15118. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15119. {
  15120. }
  15121. void mm_log (char *string,long errflg)
  15122. {
  15123. }
  15124. void mm_dlog (char *string)
  15125. {
  15126. }
  15127. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15128. {
  15129. }
  15130. void mm_critical (MAILSTREAM *stream)
  15131. {
  15132. }
  15133. void mm_nocritical (MAILSTREAM *stream)
  15134. {
  15135. }
  15136. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15137. {
  15138. }
  15139. void mm_fatal (char *string)
  15140. {
  15141. }
  15142. int
  15143. main ()
  15144. {
  15145. long check = mail_expunge_full(NULL, "", 0);
  15146. ;
  15147. return 0;
  15148. }
  15149. _ACEOF
  15150. if ac_fn_c_try_link "$LINENO"; then :
  15151. ac_cv_imap_tk2006="yes"
  15152. else
  15153. ac_cv_imap_tk2006="no"
  15154. fi
  15155. rm -f core conftest.err conftest.$ac_objext \
  15156. conftest$ac_exeext conftest.$ac_ext
  15157. fi
  15158. CPPFLAGS="${saved_cppflags}"
  15159. LIBS="${saved_libs}"
  15160. if test "${ac_cv_imap_tk}" = "no"; then
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15162. $as_echo "no" >&6; }
  15163. if test "${switch_to_system_on_failure}" = "yes"; then
  15164. IMAP_TK_DIR="system"
  15165. else #This means they specified a directory. Search for a package installation there too
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  15167. $as_echo_n "checking for system c-client library...... " >&6; }
  15168. CPPFLAGS="${saved_cppflags}"
  15169. LIBS="${saved_libs}"
  15170. imap_include="-I${IMAP_TK_DIR}/include"
  15171. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  15172. imap_libs="-lc-client"
  15173. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  15174. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  15175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15176. /* end confdefs.h. */
  15177. #include "c-client.h"
  15178. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15179. {
  15180. }
  15181. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15182. {
  15183. }
  15184. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15185. {
  15186. }
  15187. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15188. {
  15189. }
  15190. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15191. {
  15192. }
  15193. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15194. {
  15195. }
  15196. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15197. {
  15198. }
  15199. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15200. {
  15201. }
  15202. void mm_log (char *string,long errflg)
  15203. {
  15204. }
  15205. void mm_dlog (char *string)
  15206. {
  15207. }
  15208. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15209. {
  15210. }
  15211. void mm_critical (MAILSTREAM *stream)
  15212. {
  15213. }
  15214. void mm_nocritical (MAILSTREAM *stream)
  15215. {
  15216. }
  15217. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15218. {
  15219. }
  15220. void mm_fatal (char *string)
  15221. {
  15222. }
  15223. int
  15224. main ()
  15225. {
  15226. MAILSTREAM *foo = mail_open(NULL, "", 0);
  15227. ;
  15228. return 0;
  15229. }
  15230. _ACEOF
  15231. if ac_fn_c_try_link "$LINENO"; then :
  15232. ac_cv_imap_tk="yes"
  15233. else
  15234. ac_cv_imap_tk="no"
  15235. fi
  15236. rm -f core conftest.err conftest.$ac_objext \
  15237. conftest$ac_exeext conftest.$ac_ext
  15238. if test "${ac_cv_imap_tk}" = "yes"; then
  15239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15240. /* end confdefs.h. */
  15241. #include "c-client.h"
  15242. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15243. {
  15244. }
  15245. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15246. {
  15247. }
  15248. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15249. {
  15250. }
  15251. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15252. {
  15253. }
  15254. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15255. {
  15256. }
  15257. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15258. {
  15259. }
  15260. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15261. {
  15262. }
  15263. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15264. {
  15265. }
  15266. void mm_log (char *string,long errflg)
  15267. {
  15268. }
  15269. void mm_dlog (char *string)
  15270. {
  15271. }
  15272. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15273. {
  15274. }
  15275. void mm_critical (MAILSTREAM *stream)
  15276. {
  15277. }
  15278. void mm_nocritical (MAILSTREAM *stream)
  15279. {
  15280. }
  15281. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15282. {
  15283. }
  15284. void mm_fatal (char *string)
  15285. {
  15286. }
  15287. int
  15288. main ()
  15289. {
  15290. long check = mail_expunge_full(NULL, "", 0);
  15291. ;
  15292. return 0;
  15293. }
  15294. _ACEOF
  15295. if ac_fn_c_try_link "$LINENO"; then :
  15296. ac_cv_imap_tk2006="yes"
  15297. else
  15298. ac_cv_imap_tk2006="no"
  15299. fi
  15300. rm -f core conftest.err conftest.$ac_objext \
  15301. conftest$ac_exeext conftest.$ac_ext
  15302. fi
  15303. fi
  15304. fi
  15305. fi
  15306. if test "${IMAP_TK_DIR}" = "system"; then
  15307. #We will enter here if user specified "system" or if any of above checks failed
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  15309. $as_echo_n "checking for system c-client library...... " >&6; }
  15310. CPPFLAGS="${saved_cppflags}"
  15311. LIBS="${saved_libs}"
  15312. imap_ldflags=""
  15313. imap_libs="-lc-client"
  15314. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  15315. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  15316. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  15317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15318. /* end confdefs.h. */
  15319. #include <stdio.h>
  15320. #include <imap/c-client.h>
  15321. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15322. {
  15323. }
  15324. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15325. {
  15326. }
  15327. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15328. {
  15329. }
  15330. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15331. {
  15332. }
  15333. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15334. {
  15335. }
  15336. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15337. {
  15338. }
  15339. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15340. {
  15341. }
  15342. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15343. {
  15344. }
  15345. void mm_log (char *string,long errflg)
  15346. {
  15347. }
  15348. void mm_dlog (char *string)
  15349. {
  15350. }
  15351. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15352. {
  15353. }
  15354. void mm_critical (MAILSTREAM *stream)
  15355. {
  15356. }
  15357. void mm_nocritical (MAILSTREAM *stream)
  15358. {
  15359. }
  15360. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15361. {
  15362. }
  15363. void mm_fatal (char *string)
  15364. {
  15365. }
  15366. int
  15367. main ()
  15368. {
  15369. MAILSTREAM *foo = mail_open(NULL, "", 0);
  15370. ;
  15371. return 0;
  15372. }
  15373. _ACEOF
  15374. if ac_fn_c_try_link "$LINENO"; then :
  15375. ac_cv_imap_tk="yes"
  15376. else
  15377. ac_cv_imap_tk="no"
  15378. fi
  15379. rm -f core conftest.err conftest.$ac_objext \
  15380. conftest$ac_exeext conftest.$ac_ext
  15381. if test "${ac_cv_imap_tk}" = "yes"; then
  15382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15383. /* end confdefs.h. */
  15384. #include <stdio.h>
  15385. #include <imap/c-client.h>
  15386. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15387. {
  15388. }
  15389. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15390. {
  15391. }
  15392. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15393. {
  15394. }
  15395. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15396. {
  15397. }
  15398. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15399. {
  15400. }
  15401. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15402. {
  15403. }
  15404. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15405. {
  15406. }
  15407. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15408. {
  15409. }
  15410. void mm_log (char *string,long errflg)
  15411. {
  15412. }
  15413. void mm_dlog (char *string)
  15414. {
  15415. }
  15416. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15417. {
  15418. }
  15419. void mm_critical (MAILSTREAM *stream)
  15420. {
  15421. }
  15422. void mm_nocritical (MAILSTREAM *stream)
  15423. {
  15424. }
  15425. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15426. {
  15427. }
  15428. void mm_fatal (char *string)
  15429. {
  15430. }
  15431. int
  15432. main ()
  15433. {
  15434. long check = mail_expunge_full(NULL, "", 0);
  15435. ;
  15436. return 0;
  15437. }
  15438. _ACEOF
  15439. if ac_fn_c_try_link "$LINENO"; then :
  15440. ac_cv_imap_tk2006="yes"
  15441. else
  15442. ac_cv_imap_tk2006="no"
  15443. fi
  15444. rm -f core conftest.err conftest.$ac_objext \
  15445. conftest$ac_exeext conftest.$ac_ext
  15446. else #looking in imap directory didn't work, try c-client
  15447. imap_ldflags=""
  15448. imap_libs="-lc-client"
  15449. imap_include="-DUSE_SYSTEM_CCLIENT"
  15450. CPPFLAGS="${saved_cppflags}"
  15451. LIBS="${saved_libs}"
  15452. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  15453. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  15454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15455. /* end confdefs.h. */
  15456. #include <stdio.h>
  15457. #include <c-client/c-client.h>
  15458. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15459. {
  15460. }
  15461. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15462. {
  15463. }
  15464. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15465. {
  15466. }
  15467. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15468. {
  15469. }
  15470. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15471. {
  15472. }
  15473. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15474. {
  15475. }
  15476. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15477. {
  15478. }
  15479. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15480. {
  15481. }
  15482. void mm_log (char *string,long errflg)
  15483. {
  15484. }
  15485. void mm_dlog (char *string)
  15486. {
  15487. }
  15488. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15489. {
  15490. }
  15491. void mm_critical (MAILSTREAM *stream)
  15492. {
  15493. }
  15494. void mm_nocritical (MAILSTREAM *stream)
  15495. {
  15496. }
  15497. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15498. {
  15499. }
  15500. void mm_fatal (char *string)
  15501. {
  15502. }
  15503. int
  15504. main ()
  15505. {
  15506. MAILSTREAM *foo = mail_open(NULL, "", 0);
  15507. ;
  15508. return 0;
  15509. }
  15510. _ACEOF
  15511. if ac_fn_c_try_link "$LINENO"; then :
  15512. ac_cv_imap_tk="yes"
  15513. else
  15514. ac_cv_imap_tk="no"
  15515. fi
  15516. rm -f core conftest.err conftest.$ac_objext \
  15517. conftest$ac_exeext conftest.$ac_ext
  15518. if test "${ac_cv_imap_tk}" = "yes"; then
  15519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15520. /* end confdefs.h. */
  15521. #include <stdio.h>
  15522. #include <c-client/c-client.h>
  15523. void mm_searched (MAILSTREAM *stream,unsigned long number)
  15524. {
  15525. }
  15526. void mm_exists (MAILSTREAM *stream,unsigned long number)
  15527. {
  15528. }
  15529. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  15530. {
  15531. }
  15532. void mm_flags (MAILSTREAM *stream,unsigned long number)
  15533. {
  15534. }
  15535. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  15536. {
  15537. }
  15538. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15539. {
  15540. }
  15541. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  15542. {
  15543. }
  15544. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  15545. {
  15546. }
  15547. void mm_log (char *string,long errflg)
  15548. {
  15549. }
  15550. void mm_dlog (char *string)
  15551. {
  15552. }
  15553. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  15554. {
  15555. }
  15556. void mm_critical (MAILSTREAM *stream)
  15557. {
  15558. }
  15559. void mm_nocritical (MAILSTREAM *stream)
  15560. {
  15561. }
  15562. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  15563. {
  15564. }
  15565. void mm_fatal (char *string)
  15566. {
  15567. }
  15568. int
  15569. main ()
  15570. {
  15571. long check = mail_expunge_full(NULL, "", 0);
  15572. ;
  15573. return 0;
  15574. }
  15575. _ACEOF
  15576. if ac_fn_c_try_link "$LINENO"; then :
  15577. ac_cv_imap_tk2006="yes"
  15578. else
  15579. ac_cv_imap_tk2006="no"
  15580. fi
  15581. rm -f core conftest.err conftest.$ac_objext \
  15582. conftest$ac_exeext conftest.$ac_ext
  15583. fi
  15584. fi
  15585. fi
  15586. if test "${ac_cv_imap_tk}" = "yes"; then
  15587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15588. $as_echo "yes" >&6; }
  15589. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  15590. IMAP_TK_INCLUDE="${imap_include}"
  15591. PBX_IMAP_TK=1
  15592. $as_echo "#define HAVE_IMAP_TK 1" >>confdefs.h
  15593. if test "${ac_cv_imap_tk2006}" = "yes"; then
  15594. $as_echo "#define HAVE_IMAP_TK2006 1" >>confdefs.h
  15595. fi
  15596. else
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15598. $as_echo "no" >&6; }
  15599. fi
  15600. CPPFLAGS="${saved_cppflags}"
  15601. LIBS="${saved_libs}"
  15602. fi
  15603. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  15604. pbxlibdir=""
  15605. # if --with-IODBC=DIR has been specified, use it.
  15606. if test "x${IODBC_DIR}" != "x"; then
  15607. if test -d ${IODBC_DIR}/lib; then
  15608. pbxlibdir="-L${IODBC_DIR}/lib"
  15609. else
  15610. pbxlibdir="-L${IODBC_DIR}"
  15611. fi
  15612. fi
  15613. pbxfuncname="SQLConnect"
  15614. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15615. AST_IODBC_FOUND=yes
  15616. else
  15617. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15618. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  15619. as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liodbc" >&5
  15621. $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
  15622. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  15623. $as_echo_n "(cached) " >&6
  15624. else
  15625. ac_check_lib_save_LIBS=$LIBS
  15626. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  15627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15628. /* end confdefs.h. */
  15629. /* Override any GCC internal prototype to avoid an error.
  15630. Use char because int might match the return type of a GCC
  15631. builtin and then its argument prototype would still apply. */
  15632. #ifdef __cplusplus
  15633. extern "C"
  15634. #endif
  15635. char ${pbxfuncname} ();
  15636. int
  15637. main ()
  15638. {
  15639. return ${pbxfuncname} ();
  15640. ;
  15641. return 0;
  15642. }
  15643. _ACEOF
  15644. if ac_fn_c_try_link "$LINENO"; then :
  15645. eval "$as_ac_Lib=yes"
  15646. else
  15647. eval "$as_ac_Lib=no"
  15648. fi
  15649. rm -f core conftest.err conftest.$ac_objext \
  15650. conftest$ac_exeext conftest.$ac_ext
  15651. LIBS=$ac_check_lib_save_LIBS
  15652. fi
  15653. eval ac_res=\$$as_ac_Lib
  15654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15655. $as_echo "$ac_res" >&6; }
  15656. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15657. AST_IODBC_FOUND=yes
  15658. else
  15659. AST_IODBC_FOUND=no
  15660. fi
  15661. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15662. fi
  15663. # now check for the header.
  15664. if test "${AST_IODBC_FOUND}" = "yes"; then
  15665. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  15666. # if --with-IODBC=DIR has been specified, use it.
  15667. if test "x${IODBC_DIR}" != "x"; then
  15668. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  15669. fi
  15670. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  15671. if test "xsql.h" = "x" ; then # no header, assume found
  15672. IODBC_HEADER_FOUND="1"
  15673. else # check for the header
  15674. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15675. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  15676. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  15677. if test "x$ac_cv_header_sql_h" = x""yes; then :
  15678. IODBC_HEADER_FOUND=1
  15679. else
  15680. IODBC_HEADER_FOUND=0
  15681. fi
  15682. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15683. fi
  15684. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  15685. IODBC_LIB=""
  15686. IODBC_INCLUDE=""
  15687. else
  15688. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15689. IODBC_LIB=""
  15690. fi
  15691. PBX_IODBC=1
  15692. cat >>confdefs.h <<_ACEOF
  15693. #define HAVE_IODBC 1
  15694. _ACEOF
  15695. fi
  15696. fi
  15697. fi
  15698. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  15699. pbxlibdir=""
  15700. # if --with-INOTIFY=DIR has been specified, use it.
  15701. if test "x${INOTIFY_DIR}" != "x"; then
  15702. if test -d ${INOTIFY_DIR}/lib; then
  15703. pbxlibdir="-L${INOTIFY_DIR}/lib"
  15704. else
  15705. pbxlibdir="-L${INOTIFY_DIR}"
  15706. fi
  15707. fi
  15708. pbxfuncname="inotify_init"
  15709. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15710. AST_INOTIFY_FOUND=yes
  15711. else
  15712. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15713. CFLAGS="${CFLAGS} "
  15714. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  15716. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  15717. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  15718. $as_echo_n "(cached) " >&6
  15719. else
  15720. ac_check_lib_save_LIBS=$LIBS
  15721. LIBS="-lc ${pbxlibdir} $LIBS"
  15722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15723. /* end confdefs.h. */
  15724. /* Override any GCC internal prototype to avoid an error.
  15725. Use char because int might match the return type of a GCC
  15726. builtin and then its argument prototype would still apply. */
  15727. #ifdef __cplusplus
  15728. extern "C"
  15729. #endif
  15730. char ${pbxfuncname} ();
  15731. int
  15732. main ()
  15733. {
  15734. return ${pbxfuncname} ();
  15735. ;
  15736. return 0;
  15737. }
  15738. _ACEOF
  15739. if ac_fn_c_try_link "$LINENO"; then :
  15740. eval "$as_ac_Lib=yes"
  15741. else
  15742. eval "$as_ac_Lib=no"
  15743. fi
  15744. rm -f core conftest.err conftest.$ac_objext \
  15745. conftest$ac_exeext conftest.$ac_ext
  15746. LIBS=$ac_check_lib_save_LIBS
  15747. fi
  15748. eval ac_res=\$$as_ac_Lib
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15750. $as_echo "$ac_res" >&6; }
  15751. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15752. AST_INOTIFY_FOUND=yes
  15753. else
  15754. AST_INOTIFY_FOUND=no
  15755. fi
  15756. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15757. fi
  15758. # now check for the header.
  15759. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  15760. INOTIFY_LIB="${pbxlibdir} -lc "
  15761. # if --with-INOTIFY=DIR has been specified, use it.
  15762. if test "x${INOTIFY_DIR}" != "x"; then
  15763. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  15764. fi
  15765. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  15766. if test "xsys/inotify.h" = "x" ; then # no header, assume found
  15767. INOTIFY_HEADER_FOUND="1"
  15768. else # check for the header
  15769. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15770. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  15771. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  15772. if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
  15773. INOTIFY_HEADER_FOUND=1
  15774. else
  15775. INOTIFY_HEADER_FOUND=0
  15776. fi
  15777. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15778. fi
  15779. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  15780. INOTIFY_LIB=""
  15781. INOTIFY_INCLUDE=""
  15782. else
  15783. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15784. INOTIFY_LIB=""
  15785. fi
  15786. PBX_INOTIFY=1
  15787. cat >>confdefs.h <<_ACEOF
  15788. #define HAVE_INOTIFY 1
  15789. _ACEOF
  15790. fi
  15791. fi
  15792. fi
  15793. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  15794. pbxlibdir=""
  15795. # if --with-JACK=DIR has been specified, use it.
  15796. if test "x${JACK_DIR}" != "x"; then
  15797. if test -d ${JACK_DIR}/lib; then
  15798. pbxlibdir="-L${JACK_DIR}/lib"
  15799. else
  15800. pbxlibdir="-L${JACK_DIR}"
  15801. fi
  15802. fi
  15803. pbxfuncname="jack_activate"
  15804. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15805. AST_JACK_FOUND=yes
  15806. else
  15807. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15808. CFLAGS="${CFLAGS} "
  15809. as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljack" >&5
  15811. $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
  15812. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  15813. $as_echo_n "(cached) " >&6
  15814. else
  15815. ac_check_lib_save_LIBS=$LIBS
  15816. LIBS="-ljack ${pbxlibdir} $LIBS"
  15817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15818. /* end confdefs.h. */
  15819. /* Override any GCC internal prototype to avoid an error.
  15820. Use char because int might match the return type of a GCC
  15821. builtin and then its argument prototype would still apply. */
  15822. #ifdef __cplusplus
  15823. extern "C"
  15824. #endif
  15825. char ${pbxfuncname} ();
  15826. int
  15827. main ()
  15828. {
  15829. return ${pbxfuncname} ();
  15830. ;
  15831. return 0;
  15832. }
  15833. _ACEOF
  15834. if ac_fn_c_try_link "$LINENO"; then :
  15835. eval "$as_ac_Lib=yes"
  15836. else
  15837. eval "$as_ac_Lib=no"
  15838. fi
  15839. rm -f core conftest.err conftest.$ac_objext \
  15840. conftest$ac_exeext conftest.$ac_ext
  15841. LIBS=$ac_check_lib_save_LIBS
  15842. fi
  15843. eval ac_res=\$$as_ac_Lib
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15845. $as_echo "$ac_res" >&6; }
  15846. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15847. AST_JACK_FOUND=yes
  15848. else
  15849. AST_JACK_FOUND=no
  15850. fi
  15851. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15852. fi
  15853. # now check for the header.
  15854. if test "${AST_JACK_FOUND}" = "yes"; then
  15855. JACK_LIB="${pbxlibdir} -ljack "
  15856. # if --with-JACK=DIR has been specified, use it.
  15857. if test "x${JACK_DIR}" != "x"; then
  15858. JACK_INCLUDE="-I${JACK_DIR}/include"
  15859. fi
  15860. JACK_INCLUDE="${JACK_INCLUDE} "
  15861. if test "xjack/jack.h" = "x" ; then # no header, assume found
  15862. JACK_HEADER_FOUND="1"
  15863. else # check for the header
  15864. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15865. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  15866. ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
  15867. if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
  15868. JACK_HEADER_FOUND=1
  15869. else
  15870. JACK_HEADER_FOUND=0
  15871. fi
  15872. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15873. fi
  15874. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  15875. JACK_LIB=""
  15876. JACK_INCLUDE=""
  15877. else
  15878. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15879. JACK_LIB=""
  15880. fi
  15881. PBX_JACK=1
  15882. cat >>confdefs.h <<_ACEOF
  15883. #define HAVE_JACK 1
  15884. _ACEOF
  15885. fi
  15886. fi
  15887. fi
  15888. # BSD (and OS X) equivalent of inotify
  15889. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  15890. pbxlibdir=""
  15891. # if --with-KQUEUE=DIR has been specified, use it.
  15892. if test "x${KQUEUE_DIR}" != "x"; then
  15893. if test -d ${KQUEUE_DIR}/lib; then
  15894. pbxlibdir="-L${KQUEUE_DIR}/lib"
  15895. else
  15896. pbxlibdir="-L${KQUEUE_DIR}"
  15897. fi
  15898. fi
  15899. pbxfuncname="kqueue"
  15900. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15901. AST_KQUEUE_FOUND=yes
  15902. else
  15903. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15904. CFLAGS="${CFLAGS} "
  15905. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  15906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  15907. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  15908. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  15909. $as_echo_n "(cached) " >&6
  15910. else
  15911. ac_check_lib_save_LIBS=$LIBS
  15912. LIBS="-lc ${pbxlibdir} $LIBS"
  15913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15914. /* end confdefs.h. */
  15915. /* Override any GCC internal prototype to avoid an error.
  15916. Use char because int might match the return type of a GCC
  15917. builtin and then its argument prototype would still apply. */
  15918. #ifdef __cplusplus
  15919. extern "C"
  15920. #endif
  15921. char ${pbxfuncname} ();
  15922. int
  15923. main ()
  15924. {
  15925. return ${pbxfuncname} ();
  15926. ;
  15927. return 0;
  15928. }
  15929. _ACEOF
  15930. if ac_fn_c_try_link "$LINENO"; then :
  15931. eval "$as_ac_Lib=yes"
  15932. else
  15933. eval "$as_ac_Lib=no"
  15934. fi
  15935. rm -f core conftest.err conftest.$ac_objext \
  15936. conftest$ac_exeext conftest.$ac_ext
  15937. LIBS=$ac_check_lib_save_LIBS
  15938. fi
  15939. eval ac_res=\$$as_ac_Lib
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15941. $as_echo "$ac_res" >&6; }
  15942. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15943. AST_KQUEUE_FOUND=yes
  15944. else
  15945. AST_KQUEUE_FOUND=no
  15946. fi
  15947. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15948. fi
  15949. # now check for the header.
  15950. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  15951. KQUEUE_LIB="${pbxlibdir} -lc "
  15952. # if --with-KQUEUE=DIR has been specified, use it.
  15953. if test "x${KQUEUE_DIR}" != "x"; then
  15954. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  15955. fi
  15956. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  15957. if test "xsys/event.h" = "x" ; then # no header, assume found
  15958. KQUEUE_HEADER_FOUND="1"
  15959. else # check for the header
  15960. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15961. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  15962. ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  15963. if test "x$ac_cv_header_sys_event_h" = x""yes; then :
  15964. KQUEUE_HEADER_FOUND=1
  15965. else
  15966. KQUEUE_HEADER_FOUND=0
  15967. fi
  15968. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15969. fi
  15970. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  15971. KQUEUE_LIB=""
  15972. KQUEUE_INCLUDE=""
  15973. else
  15974. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15975. KQUEUE_LIB=""
  15976. fi
  15977. PBX_KQUEUE=1
  15978. cat >>confdefs.h <<_ACEOF
  15979. #define HAVE_KQUEUE 1
  15980. _ACEOF
  15981. fi
  15982. fi
  15983. fi
  15984. # 64-bit version of kevent (from kqueue) on OS X
  15985. for ac_func in kevent64
  15986. do :
  15987. ac_fn_c_check_func "$LINENO" "kevent64" "ac_cv_func_kevent64"
  15988. if test "x$ac_cv_func_kevent64" = x""yes; then :
  15989. cat >>confdefs.h <<_ACEOF
  15990. #define HAVE_KEVENT64 1
  15991. _ACEOF
  15992. fi
  15993. done
  15994. # Needed by unixodbc
  15995. if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
  15996. pbxlibdir=""
  15997. # if --with-LTDL=DIR has been specified, use it.
  15998. if test "x${LTDL_DIR}" != "x"; then
  15999. if test -d ${LTDL_DIR}/lib; then
  16000. pbxlibdir="-L${LTDL_DIR}/lib"
  16001. else
  16002. pbxlibdir="-L${LTDL_DIR}"
  16003. fi
  16004. fi
  16005. pbxfuncname="lt_dlinit"
  16006. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16007. AST_LTDL_FOUND=yes
  16008. else
  16009. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16010. CFLAGS="${CFLAGS} "
  16011. as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lltdl" >&5
  16013. $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
  16014. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  16015. $as_echo_n "(cached) " >&6
  16016. else
  16017. ac_check_lib_save_LIBS=$LIBS
  16018. LIBS="-lltdl ${pbxlibdir} $LIBS"
  16019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16020. /* end confdefs.h. */
  16021. /* Override any GCC internal prototype to avoid an error.
  16022. Use char because int might match the return type of a GCC
  16023. builtin and then its argument prototype would still apply. */
  16024. #ifdef __cplusplus
  16025. extern "C"
  16026. #endif
  16027. char ${pbxfuncname} ();
  16028. int
  16029. main ()
  16030. {
  16031. return ${pbxfuncname} ();
  16032. ;
  16033. return 0;
  16034. }
  16035. _ACEOF
  16036. if ac_fn_c_try_link "$LINENO"; then :
  16037. eval "$as_ac_Lib=yes"
  16038. else
  16039. eval "$as_ac_Lib=no"
  16040. fi
  16041. rm -f core conftest.err conftest.$ac_objext \
  16042. conftest$ac_exeext conftest.$ac_ext
  16043. LIBS=$ac_check_lib_save_LIBS
  16044. fi
  16045. eval ac_res=\$$as_ac_Lib
  16046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16047. $as_echo "$ac_res" >&6; }
  16048. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16049. AST_LTDL_FOUND=yes
  16050. else
  16051. AST_LTDL_FOUND=no
  16052. fi
  16053. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16054. fi
  16055. # now check for the header.
  16056. if test "${AST_LTDL_FOUND}" = "yes"; then
  16057. LTDL_LIB="${pbxlibdir} -lltdl "
  16058. # if --with-LTDL=DIR has been specified, use it.
  16059. if test "x${LTDL_DIR}" != "x"; then
  16060. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  16061. fi
  16062. LTDL_INCLUDE="${LTDL_INCLUDE} "
  16063. if test "xltdl.h" = "x" ; then # no header, assume found
  16064. LTDL_HEADER_FOUND="1"
  16065. else # check for the header
  16066. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16067. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  16068. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  16069. if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  16070. LTDL_HEADER_FOUND=1
  16071. else
  16072. LTDL_HEADER_FOUND=0
  16073. fi
  16074. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16075. fi
  16076. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  16077. LTDL_LIB=""
  16078. LTDL_INCLUDE=""
  16079. else
  16080. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16081. LTDL_LIB=""
  16082. fi
  16083. PBX_LTDL=1
  16084. cat >>confdefs.h <<_ACEOF
  16085. #define HAVE_LTDL 1
  16086. _ACEOF
  16087. fi
  16088. fi
  16089. fi
  16090. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  16091. pbxlibdir=""
  16092. # if --with-LDAP=DIR has been specified, use it.
  16093. if test "x${LDAP_DIR}" != "x"; then
  16094. if test -d ${LDAP_DIR}/lib; then
  16095. pbxlibdir="-L${LDAP_DIR}/lib"
  16096. else
  16097. pbxlibdir="-L${LDAP_DIR}"
  16098. fi
  16099. fi
  16100. pbxfuncname="ldap_initialize"
  16101. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16102. AST_LDAP_FOUND=yes
  16103. else
  16104. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16105. CFLAGS="${CFLAGS} "
  16106. as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lldap" >&5
  16108. $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
  16109. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  16110. $as_echo_n "(cached) " >&6
  16111. else
  16112. ac_check_lib_save_LIBS=$LIBS
  16113. LIBS="-lldap ${pbxlibdir} $LIBS"
  16114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16115. /* end confdefs.h. */
  16116. /* Override any GCC internal prototype to avoid an error.
  16117. Use char because int might match the return type of a GCC
  16118. builtin and then its argument prototype would still apply. */
  16119. #ifdef __cplusplus
  16120. extern "C"
  16121. #endif
  16122. char ${pbxfuncname} ();
  16123. int
  16124. main ()
  16125. {
  16126. return ${pbxfuncname} ();
  16127. ;
  16128. return 0;
  16129. }
  16130. _ACEOF
  16131. if ac_fn_c_try_link "$LINENO"; then :
  16132. eval "$as_ac_Lib=yes"
  16133. else
  16134. eval "$as_ac_Lib=no"
  16135. fi
  16136. rm -f core conftest.err conftest.$ac_objext \
  16137. conftest$ac_exeext conftest.$ac_ext
  16138. LIBS=$ac_check_lib_save_LIBS
  16139. fi
  16140. eval ac_res=\$$as_ac_Lib
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16142. $as_echo "$ac_res" >&6; }
  16143. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16144. AST_LDAP_FOUND=yes
  16145. else
  16146. AST_LDAP_FOUND=no
  16147. fi
  16148. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16149. fi
  16150. # now check for the header.
  16151. if test "${AST_LDAP_FOUND}" = "yes"; then
  16152. LDAP_LIB="${pbxlibdir} -lldap "
  16153. # if --with-LDAP=DIR has been specified, use it.
  16154. if test "x${LDAP_DIR}" != "x"; then
  16155. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  16156. fi
  16157. LDAP_INCLUDE="${LDAP_INCLUDE} "
  16158. if test "xldap.h" = "x" ; then # no header, assume found
  16159. LDAP_HEADER_FOUND="1"
  16160. else # check for the header
  16161. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16162. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  16163. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  16164. if test "x$ac_cv_header_ldap_h" = x""yes; then :
  16165. LDAP_HEADER_FOUND=1
  16166. else
  16167. LDAP_HEADER_FOUND=0
  16168. fi
  16169. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16170. fi
  16171. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  16172. LDAP_LIB=""
  16173. LDAP_INCLUDE=""
  16174. else
  16175. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16176. LDAP_LIB=""
  16177. fi
  16178. PBX_LDAP=1
  16179. cat >>confdefs.h <<_ACEOF
  16180. #define HAVE_LDAP 1
  16181. _ACEOF
  16182. fi
  16183. fi
  16184. fi
  16185. # Check whether --enable-xmldoc was given.
  16186. if test "${enable_xmldoc+set}" = set; then :
  16187. enableval=$enable_xmldoc; case "${enableval}" in
  16188. y|ye|yes) disable_xmldoc=no ;;
  16189. n|no) disable_xmldoc=yes ;;
  16190. *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
  16191. esac
  16192. else
  16193. disable_xmldoc=no
  16194. fi
  16195. if test "${disable_xmldoc}" != "yes"; then
  16196. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  16197. PBX_LIBXML2=0
  16198. if test -n "$ac_tool_prefix"; then
  16199. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  16200. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  16201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16202. $as_echo_n "checking for $ac_word... " >&6; }
  16203. if test "${ac_cv_path_CONFIG_LIBXML2+set}" = set; then :
  16204. $as_echo_n "(cached) " >&6
  16205. else
  16206. case $CONFIG_LIBXML2 in
  16207. [\\/]* | ?:[\\/]*)
  16208. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  16209. ;;
  16210. *)
  16211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16212. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  16213. for as_dir in $as_dummy
  16214. do
  16215. IFS=$as_save_IFS
  16216. test -z "$as_dir" && as_dir=.
  16217. for ac_exec_ext in '' $ac_executable_extensions; do
  16218. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16219. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  16220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16221. break 2
  16222. fi
  16223. done
  16224. done
  16225. IFS=$as_save_IFS
  16226. ;;
  16227. esac
  16228. fi
  16229. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  16230. if test -n "$CONFIG_LIBXML2"; then
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  16232. $as_echo "$CONFIG_LIBXML2" >&6; }
  16233. else
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16235. $as_echo "no" >&6; }
  16236. fi
  16237. fi
  16238. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  16239. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  16240. # Extract the first word of "xml2-config", so it can be a program name with args.
  16241. set dummy xml2-config; ac_word=$2
  16242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16243. $as_echo_n "checking for $ac_word... " >&6; }
  16244. if test "${ac_cv_path_ac_pt_CONFIG_LIBXML2+set}" = set; then :
  16245. $as_echo_n "(cached) " >&6
  16246. else
  16247. case $ac_pt_CONFIG_LIBXML2 in
  16248. [\\/]* | ?:[\\/]*)
  16249. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  16250. ;;
  16251. *)
  16252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16253. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  16254. for as_dir in $as_dummy
  16255. do
  16256. IFS=$as_save_IFS
  16257. test -z "$as_dir" && as_dir=.
  16258. for ac_exec_ext in '' $ac_executable_extensions; do
  16259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16260. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  16261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16262. break 2
  16263. fi
  16264. done
  16265. done
  16266. IFS=$as_save_IFS
  16267. ;;
  16268. esac
  16269. fi
  16270. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  16271. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  16273. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  16274. else
  16275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16276. $as_echo "no" >&6; }
  16277. fi
  16278. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  16279. CONFIG_LIBXML2="No"
  16280. else
  16281. case $cross_compiling:$ac_tool_warned in
  16282. yes:)
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16285. ac_tool_warned=yes ;;
  16286. esac
  16287. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  16288. fi
  16289. else
  16290. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  16291. fi
  16292. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  16293. if test x"" = x ; then A=--cflags ; else A="" ; fi
  16294. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  16295. if test x"" = x ; then A=--libs ; else A="" ; fi
  16296. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  16297. if test x"#include <libxml/tree.h>
  16298. #include <libxml/parser.h>" != x ; then
  16299. saved_cppflags="${CPPFLAGS}"
  16300. if test "x${LIBXML2_DIR}" != "x"; then
  16301. LIBXML2_INCLUDE="-I${LIBXML2_DIR}/include"
  16302. fi
  16303. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  16304. saved_libs="${LIBS}"
  16305. LIBS="${LIBXML2_LIB}"
  16306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16307. /* end confdefs.h. */
  16308. #include <libxml/tree.h>
  16309. #include <libxml/parser.h>
  16310. int
  16311. main ()
  16312. {
  16313. LIBXML_TEST_VERSION;
  16314. ;
  16315. return 0;
  16316. }
  16317. _ACEOF
  16318. if ac_fn_c_try_link "$LINENO"; then :
  16319. PBX_LIBXML2=1
  16320. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  16321. fi
  16322. rm -f core conftest.err conftest.$ac_objext \
  16323. conftest$ac_exeext conftest.$ac_ext
  16324. CPPFLAGS="${saved_cppflags}"
  16325. LIBS="${saved_libs}"
  16326. else
  16327. PBX_LIBXML2=1
  16328. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  16329. fi
  16330. fi
  16331. fi
  16332. if test "${PBX_LIBXML2}" != 1; then
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: *** XML documentation will not be available because the 'libxml2' development package is missing." >&5
  16334. $as_echo "$as_me: *** XML documentation will not be available because the 'libxml2' development package is missing." >&6;}
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&5
  16336. $as_echo "$as_me: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&6;}
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: *** or install the 'libxml2' development package." >&5
  16338. $as_echo "$as_me: *** or install the 'libxml2' development package." >&6;}
  16339. exit 1
  16340. fi
  16341. fi
  16342. if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
  16343. pbxlibdir=""
  16344. # if --with-MISDN=DIR has been specified, use it.
  16345. if test "x${MISDN_DIR}" != "x"; then
  16346. if test -d ${MISDN_DIR}/lib; then
  16347. pbxlibdir="-L${MISDN_DIR}/lib"
  16348. else
  16349. pbxlibdir="-L${MISDN_DIR}"
  16350. fi
  16351. fi
  16352. pbxfuncname="mISDN_open"
  16353. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16354. AST_MISDN_FOUND=yes
  16355. else
  16356. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16357. CFLAGS="${CFLAGS} "
  16358. as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lmISDN" >&5
  16360. $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
  16361. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  16362. $as_echo_n "(cached) " >&6
  16363. else
  16364. ac_check_lib_save_LIBS=$LIBS
  16365. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  16366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16367. /* end confdefs.h. */
  16368. /* Override any GCC internal prototype to avoid an error.
  16369. Use char because int might match the return type of a GCC
  16370. builtin and then its argument prototype would still apply. */
  16371. #ifdef __cplusplus
  16372. extern "C"
  16373. #endif
  16374. char ${pbxfuncname} ();
  16375. int
  16376. main ()
  16377. {
  16378. return ${pbxfuncname} ();
  16379. ;
  16380. return 0;
  16381. }
  16382. _ACEOF
  16383. if ac_fn_c_try_link "$LINENO"; then :
  16384. eval "$as_ac_Lib=yes"
  16385. else
  16386. eval "$as_ac_Lib=no"
  16387. fi
  16388. rm -f core conftest.err conftest.$ac_objext \
  16389. conftest$ac_exeext conftest.$ac_ext
  16390. LIBS=$ac_check_lib_save_LIBS
  16391. fi
  16392. eval ac_res=\$$as_ac_Lib
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16394. $as_echo "$ac_res" >&6; }
  16395. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16396. AST_MISDN_FOUND=yes
  16397. else
  16398. AST_MISDN_FOUND=no
  16399. fi
  16400. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16401. fi
  16402. # now check for the header.
  16403. if test "${AST_MISDN_FOUND}" = "yes"; then
  16404. MISDN_LIB="${pbxlibdir} -lmISDN "
  16405. # if --with-MISDN=DIR has been specified, use it.
  16406. if test "x${MISDN_DIR}" != "x"; then
  16407. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  16408. fi
  16409. MISDN_INCLUDE="${MISDN_INCLUDE} "
  16410. if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
  16411. MISDN_HEADER_FOUND="1"
  16412. else # check for the header
  16413. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16414. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  16415. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/mISDNlib.h" "ac_cv_header_mISDNuser_mISDNlib_h" "$ac_includes_default"
  16416. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = x""yes; then :
  16417. MISDN_HEADER_FOUND=1
  16418. else
  16419. MISDN_HEADER_FOUND=0
  16420. fi
  16421. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16422. fi
  16423. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  16424. MISDN_LIB=""
  16425. MISDN_INCLUDE=""
  16426. else
  16427. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16428. MISDN_LIB=""
  16429. fi
  16430. PBX_MISDN=1
  16431. cat >>confdefs.h <<_ACEOF
  16432. #define HAVE_MISDN 1
  16433. _ACEOF
  16434. fi
  16435. fi
  16436. fi
  16437. if test "${PBX_MISDN}" = 1; then
  16438. if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
  16439. pbxlibdir=""
  16440. # if --with-ISDNNET=DIR has been specified, use it.
  16441. if test "x${ISDNNET_DIR}" != "x"; then
  16442. if test -d ${ISDNNET_DIR}/lib; then
  16443. pbxlibdir="-L${ISDNNET_DIR}/lib"
  16444. else
  16445. pbxlibdir="-L${ISDNNET_DIR}"
  16446. fi
  16447. fi
  16448. pbxfuncname="init_manager"
  16449. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16450. AST_ISDNNET_FOUND=yes
  16451. else
  16452. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16453. CFLAGS="${CFLAGS} "
  16454. as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lisdnnet" >&5
  16456. $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
  16457. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  16458. $as_echo_n "(cached) " >&6
  16459. else
  16460. ac_check_lib_save_LIBS=$LIBS
  16461. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  16462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16463. /* end confdefs.h. */
  16464. /* Override any GCC internal prototype to avoid an error.
  16465. Use char because int might match the return type of a GCC
  16466. builtin and then its argument prototype would still apply. */
  16467. #ifdef __cplusplus
  16468. extern "C"
  16469. #endif
  16470. char ${pbxfuncname} ();
  16471. int
  16472. main ()
  16473. {
  16474. return ${pbxfuncname} ();
  16475. ;
  16476. return 0;
  16477. }
  16478. _ACEOF
  16479. if ac_fn_c_try_link "$LINENO"; then :
  16480. eval "$as_ac_Lib=yes"
  16481. else
  16482. eval "$as_ac_Lib=no"
  16483. fi
  16484. rm -f core conftest.err conftest.$ac_objext \
  16485. conftest$ac_exeext conftest.$ac_ext
  16486. LIBS=$ac_check_lib_save_LIBS
  16487. fi
  16488. eval ac_res=\$$as_ac_Lib
  16489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16490. $as_echo "$ac_res" >&6; }
  16491. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16492. AST_ISDNNET_FOUND=yes
  16493. else
  16494. AST_ISDNNET_FOUND=no
  16495. fi
  16496. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16497. fi
  16498. # now check for the header.
  16499. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  16500. ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
  16501. # if --with-ISDNNET=DIR has been specified, use it.
  16502. if test "x${ISDNNET_DIR}" != "x"; then
  16503. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  16504. fi
  16505. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  16506. if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
  16507. ISDNNET_HEADER_FOUND="1"
  16508. else # check for the header
  16509. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16510. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  16511. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/isdn_net.h" "ac_cv_header_mISDNuser_isdn_net_h" "$ac_includes_default"
  16512. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = x""yes; then :
  16513. ISDNNET_HEADER_FOUND=1
  16514. else
  16515. ISDNNET_HEADER_FOUND=0
  16516. fi
  16517. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16518. fi
  16519. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  16520. ISDNNET_LIB=""
  16521. ISDNNET_INCLUDE=""
  16522. else
  16523. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16524. ISDNNET_LIB=""
  16525. fi
  16526. PBX_ISDNNET=1
  16527. cat >>confdefs.h <<_ACEOF
  16528. #define HAVE_ISDNNET 1
  16529. _ACEOF
  16530. fi
  16531. fi
  16532. fi
  16533. if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
  16534. pbxlibdir=""
  16535. # if --with-SUPPSERV=DIR has been specified, use it.
  16536. if test "x${SUPPSERV_DIR}" != "x"; then
  16537. if test -d ${SUPPSERV_DIR}/lib; then
  16538. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  16539. else
  16540. pbxlibdir="-L${SUPPSERV_DIR}"
  16541. fi
  16542. fi
  16543. pbxfuncname="encodeFac"
  16544. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16545. AST_SUPPSERV_FOUND=yes
  16546. else
  16547. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16548. CFLAGS="${CFLAGS} "
  16549. as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsuppserv" >&5
  16551. $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
  16552. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  16553. $as_echo_n "(cached) " >&6
  16554. else
  16555. ac_check_lib_save_LIBS=$LIBS
  16556. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  16557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16558. /* end confdefs.h. */
  16559. /* Override any GCC internal prototype to avoid an error.
  16560. Use char because int might match the return type of a GCC
  16561. builtin and then its argument prototype would still apply. */
  16562. #ifdef __cplusplus
  16563. extern "C"
  16564. #endif
  16565. char ${pbxfuncname} ();
  16566. int
  16567. main ()
  16568. {
  16569. return ${pbxfuncname} ();
  16570. ;
  16571. return 0;
  16572. }
  16573. _ACEOF
  16574. if ac_fn_c_try_link "$LINENO"; then :
  16575. eval "$as_ac_Lib=yes"
  16576. else
  16577. eval "$as_ac_Lib=no"
  16578. fi
  16579. rm -f core conftest.err conftest.$ac_objext \
  16580. conftest$ac_exeext conftest.$ac_ext
  16581. LIBS=$ac_check_lib_save_LIBS
  16582. fi
  16583. eval ac_res=\$$as_ac_Lib
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16585. $as_echo "$ac_res" >&6; }
  16586. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16587. AST_SUPPSERV_FOUND=yes
  16588. else
  16589. AST_SUPPSERV_FOUND=no
  16590. fi
  16591. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16592. fi
  16593. # now check for the header.
  16594. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  16595. SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
  16596. # if --with-SUPPSERV=DIR has been specified, use it.
  16597. if test "x${SUPPSERV_DIR}" != "x"; then
  16598. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  16599. fi
  16600. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  16601. if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
  16602. SUPPSERV_HEADER_FOUND="1"
  16603. else # check for the header
  16604. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16605. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  16606. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/suppserv.h" "ac_cv_header_mISDNuser_suppserv_h" "$ac_includes_default"
  16607. if test "x$ac_cv_header_mISDNuser_suppserv_h" = x""yes; then :
  16608. SUPPSERV_HEADER_FOUND=1
  16609. else
  16610. SUPPSERV_HEADER_FOUND=0
  16611. fi
  16612. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16613. fi
  16614. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  16615. SUPPSERV_LIB=""
  16616. SUPPSERV_INCLUDE=""
  16617. else
  16618. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16619. SUPPSERV_LIB=""
  16620. fi
  16621. PBX_SUPPSERV=1
  16622. cat >>confdefs.h <<_ACEOF
  16623. #define HAVE_SUPPSERV 1
  16624. _ACEOF
  16625. fi
  16626. fi
  16627. fi
  16628. if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
  16630. $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
  16631. saved_cppflags="${CPPFLAGS}"
  16632. if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
  16633. MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
  16634. fi
  16635. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
  16636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16637. /* end confdefs.h. */
  16638. #include <mISDNuser/suppserv.h>
  16639. int
  16640. main ()
  16641. {
  16642. #if defined(Fac_RESULT)
  16643. int foo = 0;
  16644. #else
  16645. int foo = bar;
  16646. #endif
  16647. 0
  16648. ;
  16649. return 0;
  16650. }
  16651. _ACEOF
  16652. if ac_fn_c_try_compile "$LINENO"; then :
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16654. $as_echo "yes" >&6; }
  16655. PBX_MISDN_FAC_RESULT=1
  16656. $as_echo "#define HAVE_MISDN_FAC_RESULT 1" >>confdefs.h
  16657. else
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16659. $as_echo "no" >&6; }
  16660. fi
  16661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16662. CPPFLAGS="${saved_cppflags}"
  16663. fi
  16664. if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
  16666. $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
  16667. saved_cppflags="${CPPFLAGS}"
  16668. if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
  16669. MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
  16670. fi
  16671. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
  16672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16673. /* end confdefs.h. */
  16674. #include <mISDNuser/suppserv.h>
  16675. int
  16676. main ()
  16677. {
  16678. #if defined(Fac_ERROR)
  16679. int foo = 0;
  16680. #else
  16681. int foo = bar;
  16682. #endif
  16683. 0
  16684. ;
  16685. return 0;
  16686. }
  16687. _ACEOF
  16688. if ac_fn_c_try_compile "$LINENO"; then :
  16689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16690. $as_echo "yes" >&6; }
  16691. PBX_MISDN_FAC_ERROR=1
  16692. $as_echo "#define HAVE_MISDN_FAC_ERROR 1" >>confdefs.h
  16693. else
  16694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16695. $as_echo "no" >&6; }
  16696. fi
  16697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16698. CPPFLAGS="${saved_cppflags}"
  16699. fi
  16700. ac_fn_c_check_header_mongrel "$LINENO" "linux/mISDNdsp.h" "ac_cv_header_linux_mISDNdsp_h" "$ac_includes_default"
  16701. if test "x$ac_cv_header_linux_mISDNdsp_h" = x""yes; then :
  16702. cat >>confdefs.h <<_ACEOF
  16703. #define MISDN_1_2 1
  16704. _ACEOF
  16705. fi
  16706. ac_fn_c_check_member "$LINENO" "Q931_info_t" "redirect_dn" "ac_cv_member_Q931_info_t_redirect_dn" "#include <mISDNuser/mISDNlib.h>
  16707. "
  16708. if test "x$ac_cv_member_Q931_info_t_redirect_dn" = x""yes; then :
  16709. else
  16710. PBX_MISDN=0
  16711. fi
  16712. fi
  16713. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  16714. PBX_MYSQLCLIENT=0
  16715. if test -n "$ac_tool_prefix"; then
  16716. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  16717. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16719. $as_echo_n "checking for $ac_word... " >&6; }
  16720. if test "${ac_cv_path_CONFIG_MYSQLCLIENT+set}" = set; then :
  16721. $as_echo_n "(cached) " >&6
  16722. else
  16723. case $CONFIG_MYSQLCLIENT in
  16724. [\\/]* | ?:[\\/]*)
  16725. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  16726. ;;
  16727. *)
  16728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16729. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  16730. for as_dir in $as_dummy
  16731. do
  16732. IFS=$as_save_IFS
  16733. test -z "$as_dir" && as_dir=.
  16734. for ac_exec_ext in '' $ac_executable_extensions; do
  16735. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16736. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  16737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16738. break 2
  16739. fi
  16740. done
  16741. done
  16742. IFS=$as_save_IFS
  16743. ;;
  16744. esac
  16745. fi
  16746. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  16747. if test -n "$CONFIG_MYSQLCLIENT"; then
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_MYSQLCLIENT" >&5
  16749. $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
  16750. else
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16752. $as_echo "no" >&6; }
  16753. fi
  16754. fi
  16755. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  16756. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  16757. # Extract the first word of "mysql_config", so it can be a program name with args.
  16758. set dummy mysql_config; ac_word=$2
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16760. $as_echo_n "checking for $ac_word... " >&6; }
  16761. if test "${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+set}" = set; then :
  16762. $as_echo_n "(cached) " >&6
  16763. else
  16764. case $ac_pt_CONFIG_MYSQLCLIENT in
  16765. [\\/]* | ?:[\\/]*)
  16766. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  16767. ;;
  16768. *)
  16769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16770. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  16771. for as_dir in $as_dummy
  16772. do
  16773. IFS=$as_save_IFS
  16774. test -z "$as_dir" && as_dir=.
  16775. for ac_exec_ext in '' $ac_executable_extensions; do
  16776. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16777. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  16778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16779. break 2
  16780. fi
  16781. done
  16782. done
  16783. IFS=$as_save_IFS
  16784. ;;
  16785. esac
  16786. fi
  16787. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  16788. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  16790. $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  16791. else
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16793. $as_echo "no" >&6; }
  16794. fi
  16795. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  16796. CONFIG_MYSQLCLIENT="No"
  16797. else
  16798. case $cross_compiling:$ac_tool_warned in
  16799. yes:)
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16802. ac_tool_warned=yes ;;
  16803. esac
  16804. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  16805. fi
  16806. else
  16807. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  16808. fi
  16809. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  16810. if test x"" = x ; then A=--cflags ; else A="" ; fi
  16811. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
  16812. if test x"" = x ; then A=--libs ; else A="" ; fi
  16813. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
  16814. if test x"" != x ; then
  16815. saved_cppflags="${CPPFLAGS}"
  16816. if test "x${MYSQLCLIENT_DIR}" != "x"; then
  16817. MYSQLCLIENT_INCLUDE="-I${MYSQLCLIENT_DIR}/include"
  16818. fi
  16819. CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
  16820. saved_libs="${LIBS}"
  16821. LIBS="${MYSQLCLIENT_LIB}"
  16822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16823. /* end confdefs.h. */
  16824. int
  16825. main ()
  16826. {
  16827. ;
  16828. ;
  16829. return 0;
  16830. }
  16831. _ACEOF
  16832. if ac_fn_c_try_link "$LINENO"; then :
  16833. PBX_MYSQLCLIENT=1
  16834. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  16835. fi
  16836. rm -f core conftest.err conftest.$ac_objext \
  16837. conftest$ac_exeext conftest.$ac_ext
  16838. CPPFLAGS="${saved_cppflags}"
  16839. LIBS="${saved_libs}"
  16840. else
  16841. PBX_MYSQLCLIENT=1
  16842. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  16843. fi
  16844. fi
  16845. fi
  16846. if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
  16847. pbxlibdir=""
  16848. # if --with-NBS=DIR has been specified, use it.
  16849. if test "x${NBS_DIR}" != "x"; then
  16850. if test -d ${NBS_DIR}/lib; then
  16851. pbxlibdir="-L${NBS_DIR}/lib"
  16852. else
  16853. pbxlibdir="-L${NBS_DIR}"
  16854. fi
  16855. fi
  16856. pbxfuncname="nbs_connect"
  16857. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16858. AST_NBS_FOUND=yes
  16859. else
  16860. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16861. CFLAGS="${CFLAGS} "
  16862. as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
  16863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnbs" >&5
  16864. $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
  16865. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  16866. $as_echo_n "(cached) " >&6
  16867. else
  16868. ac_check_lib_save_LIBS=$LIBS
  16869. LIBS="-lnbs ${pbxlibdir} $LIBS"
  16870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16871. /* end confdefs.h. */
  16872. /* Override any GCC internal prototype to avoid an error.
  16873. Use char because int might match the return type of a GCC
  16874. builtin and then its argument prototype would still apply. */
  16875. #ifdef __cplusplus
  16876. extern "C"
  16877. #endif
  16878. char ${pbxfuncname} ();
  16879. int
  16880. main ()
  16881. {
  16882. return ${pbxfuncname} ();
  16883. ;
  16884. return 0;
  16885. }
  16886. _ACEOF
  16887. if ac_fn_c_try_link "$LINENO"; then :
  16888. eval "$as_ac_Lib=yes"
  16889. else
  16890. eval "$as_ac_Lib=no"
  16891. fi
  16892. rm -f core conftest.err conftest.$ac_objext \
  16893. conftest$ac_exeext conftest.$ac_ext
  16894. LIBS=$ac_check_lib_save_LIBS
  16895. fi
  16896. eval ac_res=\$$as_ac_Lib
  16897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16898. $as_echo "$ac_res" >&6; }
  16899. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16900. AST_NBS_FOUND=yes
  16901. else
  16902. AST_NBS_FOUND=no
  16903. fi
  16904. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16905. fi
  16906. # now check for the header.
  16907. if test "${AST_NBS_FOUND}" = "yes"; then
  16908. NBS_LIB="${pbxlibdir} -lnbs "
  16909. # if --with-NBS=DIR has been specified, use it.
  16910. if test "x${NBS_DIR}" != "x"; then
  16911. NBS_INCLUDE="-I${NBS_DIR}/include"
  16912. fi
  16913. NBS_INCLUDE="${NBS_INCLUDE} "
  16914. if test "xnbs.h" = "x" ; then # no header, assume found
  16915. NBS_HEADER_FOUND="1"
  16916. else # check for the header
  16917. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16918. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  16919. ac_fn_c_check_header_mongrel "$LINENO" "nbs.h" "ac_cv_header_nbs_h" "$ac_includes_default"
  16920. if test "x$ac_cv_header_nbs_h" = x""yes; then :
  16921. NBS_HEADER_FOUND=1
  16922. else
  16923. NBS_HEADER_FOUND=0
  16924. fi
  16925. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16926. fi
  16927. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  16928. NBS_LIB=""
  16929. NBS_INCLUDE=""
  16930. else
  16931. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16932. NBS_LIB=""
  16933. fi
  16934. PBX_NBS=1
  16935. cat >>confdefs.h <<_ACEOF
  16936. #define HAVE_NBS 1
  16937. _ACEOF
  16938. fi
  16939. fi
  16940. fi
  16941. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  16942. pbxlibdir=""
  16943. # if --with-NCURSES=DIR has been specified, use it.
  16944. if test "x${NCURSES_DIR}" != "x"; then
  16945. if test -d ${NCURSES_DIR}/lib; then
  16946. pbxlibdir="-L${NCURSES_DIR}/lib"
  16947. else
  16948. pbxlibdir="-L${NCURSES_DIR}"
  16949. fi
  16950. fi
  16951. pbxfuncname="initscr"
  16952. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16953. AST_NCURSES_FOUND=yes
  16954. else
  16955. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16956. CFLAGS="${CFLAGS} "
  16957. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  16958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
  16959. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  16960. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  16961. $as_echo_n "(cached) " >&6
  16962. else
  16963. ac_check_lib_save_LIBS=$LIBS
  16964. LIBS="-lncurses ${pbxlibdir} $LIBS"
  16965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16966. /* end confdefs.h. */
  16967. /* Override any GCC internal prototype to avoid an error.
  16968. Use char because int might match the return type of a GCC
  16969. builtin and then its argument prototype would still apply. */
  16970. #ifdef __cplusplus
  16971. extern "C"
  16972. #endif
  16973. char ${pbxfuncname} ();
  16974. int
  16975. main ()
  16976. {
  16977. return ${pbxfuncname} ();
  16978. ;
  16979. return 0;
  16980. }
  16981. _ACEOF
  16982. if ac_fn_c_try_link "$LINENO"; then :
  16983. eval "$as_ac_Lib=yes"
  16984. else
  16985. eval "$as_ac_Lib=no"
  16986. fi
  16987. rm -f core conftest.err conftest.$ac_objext \
  16988. conftest$ac_exeext conftest.$ac_ext
  16989. LIBS=$ac_check_lib_save_LIBS
  16990. fi
  16991. eval ac_res=\$$as_ac_Lib
  16992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16993. $as_echo "$ac_res" >&6; }
  16994. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16995. AST_NCURSES_FOUND=yes
  16996. else
  16997. AST_NCURSES_FOUND=no
  16998. fi
  16999. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17000. fi
  17001. # now check for the header.
  17002. if test "${AST_NCURSES_FOUND}" = "yes"; then
  17003. NCURSES_LIB="${pbxlibdir} -lncurses "
  17004. # if --with-NCURSES=DIR has been specified, use it.
  17005. if test "x${NCURSES_DIR}" != "x"; then
  17006. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  17007. fi
  17008. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  17009. if test "xcurses.h" = "x" ; then # no header, assume found
  17010. NCURSES_HEADER_FOUND="1"
  17011. else # check for the header
  17012. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17013. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  17014. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  17015. if test "x$ac_cv_header_curses_h" = x""yes; then :
  17016. NCURSES_HEADER_FOUND=1
  17017. else
  17018. NCURSES_HEADER_FOUND=0
  17019. fi
  17020. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17021. fi
  17022. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  17023. NCURSES_LIB=""
  17024. NCURSES_INCLUDE=""
  17025. else
  17026. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17027. NCURSES_LIB=""
  17028. fi
  17029. PBX_NCURSES=1
  17030. cat >>confdefs.h <<_ACEOF
  17031. #define HAVE_NCURSES 1
  17032. _ACEOF
  17033. fi
  17034. fi
  17035. fi
  17036. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  17037. PBX_NEON=0
  17038. if test -n "$ac_tool_prefix"; then
  17039. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  17040. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  17041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17042. $as_echo_n "checking for $ac_word... " >&6; }
  17043. if test "${ac_cv_path_CONFIG_NEON+set}" = set; then :
  17044. $as_echo_n "(cached) " >&6
  17045. else
  17046. case $CONFIG_NEON in
  17047. [\\/]* | ?:[\\/]*)
  17048. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  17049. ;;
  17050. *)
  17051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17052. as_dummy="${NEON_DIR}/bin:$PATH"
  17053. for as_dir in $as_dummy
  17054. do
  17055. IFS=$as_save_IFS
  17056. test -z "$as_dir" && as_dir=.
  17057. for ac_exec_ext in '' $ac_executable_extensions; do
  17058. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17059. ac_cv_path_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  17060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17061. break 2
  17062. fi
  17063. done
  17064. done
  17065. IFS=$as_save_IFS
  17066. ;;
  17067. esac
  17068. fi
  17069. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  17070. if test -n "$CONFIG_NEON"; then
  17071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON" >&5
  17072. $as_echo "$CONFIG_NEON" >&6; }
  17073. else
  17074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17075. $as_echo "no" >&6; }
  17076. fi
  17077. fi
  17078. if test -z "$ac_cv_path_CONFIG_NEON"; then
  17079. ac_pt_CONFIG_NEON=$CONFIG_NEON
  17080. # Extract the first word of "neon-config", so it can be a program name with args.
  17081. set dummy neon-config; ac_word=$2
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17083. $as_echo_n "checking for $ac_word... " >&6; }
  17084. if test "${ac_cv_path_ac_pt_CONFIG_NEON+set}" = set; then :
  17085. $as_echo_n "(cached) " >&6
  17086. else
  17087. case $ac_pt_CONFIG_NEON in
  17088. [\\/]* | ?:[\\/]*)
  17089. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  17090. ;;
  17091. *)
  17092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17093. as_dummy="${NEON_DIR}/bin:$PATH"
  17094. for as_dir in $as_dummy
  17095. do
  17096. IFS=$as_save_IFS
  17097. test -z "$as_dir" && as_dir=.
  17098. for ac_exec_ext in '' $ac_executable_extensions; do
  17099. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17100. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  17101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17102. break 2
  17103. fi
  17104. done
  17105. done
  17106. IFS=$as_save_IFS
  17107. ;;
  17108. esac
  17109. fi
  17110. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  17111. if test -n "$ac_pt_CONFIG_NEON"; then
  17112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON" >&5
  17113. $as_echo "$ac_pt_CONFIG_NEON" >&6; }
  17114. else
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17116. $as_echo "no" >&6; }
  17117. fi
  17118. if test "x$ac_pt_CONFIG_NEON" = x; then
  17119. CONFIG_NEON="No"
  17120. else
  17121. case $cross_compiling:$ac_tool_warned in
  17122. yes:)
  17123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17125. ac_tool_warned=yes ;;
  17126. esac
  17127. CONFIG_NEON=$ac_pt_CONFIG_NEON
  17128. fi
  17129. else
  17130. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  17131. fi
  17132. if test ! "x${CONFIG_NEON}" = xNo; then
  17133. if test x"" = x ; then A=--cflags ; else A="" ; fi
  17134. NEON_INCLUDE=$(${CONFIG_NEON} $A)
  17135. if test x"" = x ; then A=--libs ; else A="" ; fi
  17136. NEON_LIB=$(${CONFIG_NEON} $A)
  17137. if test x"" != x ; then
  17138. saved_cppflags="${CPPFLAGS}"
  17139. if test "x${NEON_DIR}" != "x"; then
  17140. NEON_INCLUDE="-I${NEON_DIR}/include"
  17141. fi
  17142. CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
  17143. saved_libs="${LIBS}"
  17144. LIBS="${NEON_LIB}"
  17145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17146. /* end confdefs.h. */
  17147. int
  17148. main ()
  17149. {
  17150. ;
  17151. ;
  17152. return 0;
  17153. }
  17154. _ACEOF
  17155. if ac_fn_c_try_link "$LINENO"; then :
  17156. PBX_NEON=1
  17157. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  17158. fi
  17159. rm -f core conftest.err conftest.$ac_objext \
  17160. conftest$ac_exeext conftest.$ac_ext
  17161. CPPFLAGS="${saved_cppflags}"
  17162. LIBS="${saved_libs}"
  17163. else
  17164. PBX_NEON=1
  17165. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  17166. fi
  17167. fi
  17168. fi
  17169. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  17170. PBX_NEON29=0
  17171. if test -n "$ac_tool_prefix"; then
  17172. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  17173. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  17174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17175. $as_echo_n "checking for $ac_word... " >&6; }
  17176. if test "${ac_cv_path_CONFIG_NEON29+set}" = set; then :
  17177. $as_echo_n "(cached) " >&6
  17178. else
  17179. case $CONFIG_NEON29 in
  17180. [\\/]* | ?:[\\/]*)
  17181. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  17182. ;;
  17183. *)
  17184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17185. as_dummy="${NEON29_DIR}/bin:$PATH"
  17186. for as_dir in $as_dummy
  17187. do
  17188. IFS=$as_save_IFS
  17189. test -z "$as_dir" && as_dir=.
  17190. for ac_exec_ext in '' $ac_executable_extensions; do
  17191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17192. ac_cv_path_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  17193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17194. break 2
  17195. fi
  17196. done
  17197. done
  17198. IFS=$as_save_IFS
  17199. ;;
  17200. esac
  17201. fi
  17202. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  17203. if test -n "$CONFIG_NEON29"; then
  17204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON29" >&5
  17205. $as_echo "$CONFIG_NEON29" >&6; }
  17206. else
  17207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17208. $as_echo "no" >&6; }
  17209. fi
  17210. fi
  17211. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  17212. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  17213. # Extract the first word of "neon-config", so it can be a program name with args.
  17214. set dummy neon-config; ac_word=$2
  17215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17216. $as_echo_n "checking for $ac_word... " >&6; }
  17217. if test "${ac_cv_path_ac_pt_CONFIG_NEON29+set}" = set; then :
  17218. $as_echo_n "(cached) " >&6
  17219. else
  17220. case $ac_pt_CONFIG_NEON29 in
  17221. [\\/]* | ?:[\\/]*)
  17222. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  17223. ;;
  17224. *)
  17225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17226. as_dummy="${NEON29_DIR}/bin:$PATH"
  17227. for as_dir in $as_dummy
  17228. do
  17229. IFS=$as_save_IFS
  17230. test -z "$as_dir" && as_dir=.
  17231. for ac_exec_ext in '' $ac_executable_extensions; do
  17232. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17233. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  17234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17235. break 2
  17236. fi
  17237. done
  17238. done
  17239. IFS=$as_save_IFS
  17240. ;;
  17241. esac
  17242. fi
  17243. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  17244. if test -n "$ac_pt_CONFIG_NEON29"; then
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON29" >&5
  17246. $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
  17247. else
  17248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17249. $as_echo "no" >&6; }
  17250. fi
  17251. if test "x$ac_pt_CONFIG_NEON29" = x; then
  17252. CONFIG_NEON29="No"
  17253. else
  17254. case $cross_compiling:$ac_tool_warned in
  17255. yes:)
  17256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17257. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17258. ac_tool_warned=yes ;;
  17259. esac
  17260. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  17261. fi
  17262. else
  17263. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  17264. fi
  17265. if test ! "x${CONFIG_NEON29}" = xNo; then
  17266. if test x"" = x ; then A=--cflags ; else A="" ; fi
  17267. NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
  17268. if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
  17269. NEON29_LIB=$(${CONFIG_NEON29} $A)
  17270. if test x"#include <ne_auth.h>" != x ; then
  17271. saved_cppflags="${CPPFLAGS}"
  17272. if test "x${NEON29_DIR}" != "x"; then
  17273. NEON29_INCLUDE="-I${NEON29_DIR}/include"
  17274. fi
  17275. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  17276. saved_libs="${LIBS}"
  17277. LIBS="${NEON29_LIB}"
  17278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17279. /* end confdefs.h. */
  17280. #include <ne_auth.h>
  17281. int
  17282. main ()
  17283. {
  17284. #ifndef NE_AUTH_NTLM
  17285. #error Need libneon >= 0.29.0
  17286. #endif;
  17287. ;
  17288. return 0;
  17289. }
  17290. _ACEOF
  17291. if ac_fn_c_try_link "$LINENO"; then :
  17292. PBX_NEON29=1
  17293. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  17294. fi
  17295. rm -f core conftest.err conftest.$ac_objext \
  17296. conftest$ac_exeext conftest.$ac_ext
  17297. CPPFLAGS="${saved_cppflags}"
  17298. LIBS="${saved_libs}"
  17299. else
  17300. PBX_NEON29=1
  17301. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  17302. fi
  17303. fi
  17304. fi
  17305. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  17306. PBX_NETSNMP=0
  17307. if test -n "$ac_tool_prefix"; then
  17308. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  17309. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  17310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17311. $as_echo_n "checking for $ac_word... " >&6; }
  17312. if test "${ac_cv_path_CONFIG_NETSNMP+set}" = set; then :
  17313. $as_echo_n "(cached) " >&6
  17314. else
  17315. case $CONFIG_NETSNMP in
  17316. [\\/]* | ?:[\\/]*)
  17317. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  17318. ;;
  17319. *)
  17320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17321. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  17322. for as_dir in $as_dummy
  17323. do
  17324. IFS=$as_save_IFS
  17325. test -z "$as_dir" && as_dir=.
  17326. for ac_exec_ext in '' $ac_executable_extensions; do
  17327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17328. ac_cv_path_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  17329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17330. break 2
  17331. fi
  17332. done
  17333. done
  17334. IFS=$as_save_IFS
  17335. ;;
  17336. esac
  17337. fi
  17338. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  17339. if test -n "$CONFIG_NETSNMP"; then
  17340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NETSNMP" >&5
  17341. $as_echo "$CONFIG_NETSNMP" >&6; }
  17342. else
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17344. $as_echo "no" >&6; }
  17345. fi
  17346. fi
  17347. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  17348. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  17349. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17350. set dummy net-snmp-config; ac_word=$2
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17352. $as_echo_n "checking for $ac_word... " >&6; }
  17353. if test "${ac_cv_path_ac_pt_CONFIG_NETSNMP+set}" = set; then :
  17354. $as_echo_n "(cached) " >&6
  17355. else
  17356. case $ac_pt_CONFIG_NETSNMP in
  17357. [\\/]* | ?:[\\/]*)
  17358. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  17359. ;;
  17360. *)
  17361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17362. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  17363. for as_dir in $as_dummy
  17364. do
  17365. IFS=$as_save_IFS
  17366. test -z "$as_dir" && as_dir=.
  17367. for ac_exec_ext in '' $ac_executable_extensions; do
  17368. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17369. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  17370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17371. break 2
  17372. fi
  17373. done
  17374. done
  17375. IFS=$as_save_IFS
  17376. ;;
  17377. esac
  17378. fi
  17379. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  17380. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NETSNMP" >&5
  17382. $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
  17383. else
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17385. $as_echo "no" >&6; }
  17386. fi
  17387. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  17388. CONFIG_NETSNMP="No"
  17389. else
  17390. case $cross_compiling:$ac_tool_warned in
  17391. yes:)
  17392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17393. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17394. ac_tool_warned=yes ;;
  17395. esac
  17396. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  17397. fi
  17398. else
  17399. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  17400. fi
  17401. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  17402. if test x"" = x ; then A=--cflags ; else A="" ; fi
  17403. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
  17404. if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
  17405. NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
  17406. if test x"#include <net-snmp/net-snmp-config.h>
  17407. #include <net-snmp/net-snmp-includes.h>
  17408. #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
  17409. saved_cppflags="${CPPFLAGS}"
  17410. if test "x${NETSNMP_DIR}" != "x"; then
  17411. NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
  17412. fi
  17413. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  17414. saved_libs="${LIBS}"
  17415. LIBS="${NETSNMP_LIB}"
  17416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17417. /* end confdefs.h. */
  17418. #include <net-snmp/net-snmp-config.h>
  17419. #include <net-snmp/net-snmp-includes.h>
  17420. #include <net-snmp/agent/net-snmp-agent-includes.h>
  17421. int
  17422. main ()
  17423. {
  17424. int callback = snmp_register_callback(0, 0, NULL, NULL);
  17425. ;
  17426. return 0;
  17427. }
  17428. _ACEOF
  17429. if ac_fn_c_try_link "$LINENO"; then :
  17430. PBX_NETSNMP=1
  17431. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  17432. fi
  17433. rm -f core conftest.err conftest.$ac_objext \
  17434. conftest$ac_exeext conftest.$ac_ext
  17435. CPPFLAGS="${saved_cppflags}"
  17436. LIBS="${saved_libs}"
  17437. else
  17438. PBX_NETSNMP=1
  17439. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  17440. fi
  17441. fi
  17442. fi
  17443. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  17444. pbxlibdir=""
  17445. # if --with-NEWT=DIR has been specified, use it.
  17446. if test "x${NEWT_DIR}" != "x"; then
  17447. if test -d ${NEWT_DIR}/lib; then
  17448. pbxlibdir="-L${NEWT_DIR}/lib"
  17449. else
  17450. pbxlibdir="-L${NEWT_DIR}"
  17451. fi
  17452. fi
  17453. pbxfuncname="newtBell"
  17454. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17455. AST_NEWT_FOUND=yes
  17456. else
  17457. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17458. CFLAGS="${CFLAGS} "
  17459. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  17460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
  17461. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  17462. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  17463. $as_echo_n "(cached) " >&6
  17464. else
  17465. ac_check_lib_save_LIBS=$LIBS
  17466. LIBS="-lnewt ${pbxlibdir} $LIBS"
  17467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17468. /* end confdefs.h. */
  17469. /* Override any GCC internal prototype to avoid an error.
  17470. Use char because int might match the return type of a GCC
  17471. builtin and then its argument prototype would still apply. */
  17472. #ifdef __cplusplus
  17473. extern "C"
  17474. #endif
  17475. char ${pbxfuncname} ();
  17476. int
  17477. main ()
  17478. {
  17479. return ${pbxfuncname} ();
  17480. ;
  17481. return 0;
  17482. }
  17483. _ACEOF
  17484. if ac_fn_c_try_link "$LINENO"; then :
  17485. eval "$as_ac_Lib=yes"
  17486. else
  17487. eval "$as_ac_Lib=no"
  17488. fi
  17489. rm -f core conftest.err conftest.$ac_objext \
  17490. conftest$ac_exeext conftest.$ac_ext
  17491. LIBS=$ac_check_lib_save_LIBS
  17492. fi
  17493. eval ac_res=\$$as_ac_Lib
  17494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17495. $as_echo "$ac_res" >&6; }
  17496. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17497. AST_NEWT_FOUND=yes
  17498. else
  17499. AST_NEWT_FOUND=no
  17500. fi
  17501. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17502. fi
  17503. # now check for the header.
  17504. if test "${AST_NEWT_FOUND}" = "yes"; then
  17505. NEWT_LIB="${pbxlibdir} -lnewt "
  17506. # if --with-NEWT=DIR has been specified, use it.
  17507. if test "x${NEWT_DIR}" != "x"; then
  17508. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  17509. fi
  17510. NEWT_INCLUDE="${NEWT_INCLUDE} "
  17511. if test "xnewt.h" = "x" ; then # no header, assume found
  17512. NEWT_HEADER_FOUND="1"
  17513. else # check for the header
  17514. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17515. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  17516. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  17517. if test "x$ac_cv_header_newt_h" = x""yes; then :
  17518. NEWT_HEADER_FOUND=1
  17519. else
  17520. NEWT_HEADER_FOUND=0
  17521. fi
  17522. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17523. fi
  17524. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  17525. NEWT_LIB=""
  17526. NEWT_INCLUDE=""
  17527. else
  17528. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17529. NEWT_LIB=""
  17530. fi
  17531. PBX_NEWT=1
  17532. cat >>confdefs.h <<_ACEOF
  17533. #define HAVE_NEWT 1
  17534. _ACEOF
  17535. fi
  17536. fi
  17537. fi
  17538. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  17539. pbxlibdir=""
  17540. # if --with-UNIXODBC=DIR has been specified, use it.
  17541. if test "x${UNIXODBC_DIR}" != "x"; then
  17542. if test -d ${UNIXODBC_DIR}/lib; then
  17543. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  17544. else
  17545. pbxlibdir="-L${UNIXODBC_DIR}"
  17546. fi
  17547. fi
  17548. pbxfuncname="SQLConnect"
  17549. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17550. AST_UNIXODBC_FOUND=yes
  17551. else
  17552. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17553. CFLAGS="${CFLAGS} "
  17554. as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lodbc" >&5
  17556. $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
  17557. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  17558. $as_echo_n "(cached) " >&6
  17559. else
  17560. ac_check_lib_save_LIBS=$LIBS
  17561. LIBS="-lodbc ${pbxlibdir} $LIBS"
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. /* Override any GCC internal prototype to avoid an error.
  17565. Use char because int might match the return type of a GCC
  17566. builtin and then its argument prototype would still apply. */
  17567. #ifdef __cplusplus
  17568. extern "C"
  17569. #endif
  17570. char ${pbxfuncname} ();
  17571. int
  17572. main ()
  17573. {
  17574. return ${pbxfuncname} ();
  17575. ;
  17576. return 0;
  17577. }
  17578. _ACEOF
  17579. if ac_fn_c_try_link "$LINENO"; then :
  17580. eval "$as_ac_Lib=yes"
  17581. else
  17582. eval "$as_ac_Lib=no"
  17583. fi
  17584. rm -f core conftest.err conftest.$ac_objext \
  17585. conftest$ac_exeext conftest.$ac_ext
  17586. LIBS=$ac_check_lib_save_LIBS
  17587. fi
  17588. eval ac_res=\$$as_ac_Lib
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17590. $as_echo "$ac_res" >&6; }
  17591. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17592. AST_UNIXODBC_FOUND=yes
  17593. else
  17594. AST_UNIXODBC_FOUND=no
  17595. fi
  17596. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17597. fi
  17598. # now check for the header.
  17599. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  17600. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  17601. # if --with-UNIXODBC=DIR has been specified, use it.
  17602. if test "x${UNIXODBC_DIR}" != "x"; then
  17603. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  17604. fi
  17605. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  17606. if test "xsql.h" = "x" ; then # no header, assume found
  17607. UNIXODBC_HEADER_FOUND="1"
  17608. else # check for the header
  17609. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17610. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  17611. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  17612. if test "x$ac_cv_header_sql_h" = x""yes; then :
  17613. UNIXODBC_HEADER_FOUND=1
  17614. else
  17615. UNIXODBC_HEADER_FOUND=0
  17616. fi
  17617. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17618. fi
  17619. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  17620. UNIXODBC_LIB=""
  17621. UNIXODBC_INCLUDE=""
  17622. else
  17623. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17624. UNIXODBC_LIB=""
  17625. fi
  17626. PBX_UNIXODBC=1
  17627. cat >>confdefs.h <<_ACEOF
  17628. #define HAVE_UNIXODBC 1
  17629. _ACEOF
  17630. fi
  17631. fi
  17632. fi
  17633. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  17634. pbxlibdir=""
  17635. # if --with-OGG=DIR has been specified, use it.
  17636. if test "x${OGG_DIR}" != "x"; then
  17637. if test -d ${OGG_DIR}/lib; then
  17638. pbxlibdir="-L${OGG_DIR}/lib"
  17639. else
  17640. pbxlibdir="-L${OGG_DIR}"
  17641. fi
  17642. fi
  17643. pbxfuncname="ogg_sync_init"
  17644. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17645. AST_OGG_FOUND=yes
  17646. else
  17647. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17648. CFLAGS="${CFLAGS} "
  17649. as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
  17650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -logg" >&5
  17651. $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
  17652. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  17653. $as_echo_n "(cached) " >&6
  17654. else
  17655. ac_check_lib_save_LIBS=$LIBS
  17656. LIBS="-logg ${pbxlibdir} $LIBS"
  17657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17658. /* end confdefs.h. */
  17659. /* Override any GCC internal prototype to avoid an error.
  17660. Use char because int might match the return type of a GCC
  17661. builtin and then its argument prototype would still apply. */
  17662. #ifdef __cplusplus
  17663. extern "C"
  17664. #endif
  17665. char ${pbxfuncname} ();
  17666. int
  17667. main ()
  17668. {
  17669. return ${pbxfuncname} ();
  17670. ;
  17671. return 0;
  17672. }
  17673. _ACEOF
  17674. if ac_fn_c_try_link "$LINENO"; then :
  17675. eval "$as_ac_Lib=yes"
  17676. else
  17677. eval "$as_ac_Lib=no"
  17678. fi
  17679. rm -f core conftest.err conftest.$ac_objext \
  17680. conftest$ac_exeext conftest.$ac_ext
  17681. LIBS=$ac_check_lib_save_LIBS
  17682. fi
  17683. eval ac_res=\$$as_ac_Lib
  17684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17685. $as_echo "$ac_res" >&6; }
  17686. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17687. AST_OGG_FOUND=yes
  17688. else
  17689. AST_OGG_FOUND=no
  17690. fi
  17691. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17692. fi
  17693. # now check for the header.
  17694. if test "${AST_OGG_FOUND}" = "yes"; then
  17695. OGG_LIB="${pbxlibdir} -logg "
  17696. # if --with-OGG=DIR has been specified, use it.
  17697. if test "x${OGG_DIR}" != "x"; then
  17698. OGG_INCLUDE="-I${OGG_DIR}/include"
  17699. fi
  17700. OGG_INCLUDE="${OGG_INCLUDE} "
  17701. if test "x" = "x" ; then # no header, assume found
  17702. OGG_HEADER_FOUND="1"
  17703. else # check for the header
  17704. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17705. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  17706. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  17707. if test "x$ac_cv_header_" = x""yes; then :
  17708. OGG_HEADER_FOUND=1
  17709. else
  17710. OGG_HEADER_FOUND=0
  17711. fi
  17712. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17713. fi
  17714. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  17715. OGG_LIB=""
  17716. OGG_INCLUDE=""
  17717. else
  17718. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17719. OGG_LIB=""
  17720. fi
  17721. PBX_OGG=1
  17722. cat >>confdefs.h <<_ACEOF
  17723. #define HAVE_OGG 1
  17724. _ACEOF
  17725. fi
  17726. fi
  17727. fi
  17728. # Non-glibc platforms require libexecinfo for backtrace support
  17729. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  17730. pbxlibdir=""
  17731. # if --with-BKTR=DIR has been specified, use it.
  17732. if test "x${BKTR_DIR}" != "x"; then
  17733. if test -d ${BKTR_DIR}/lib; then
  17734. pbxlibdir="-L${BKTR_DIR}/lib"
  17735. else
  17736. pbxlibdir="-L${BKTR_DIR}"
  17737. fi
  17738. fi
  17739. pbxfuncname="backtrace"
  17740. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17741. AST_BKTR_FOUND=yes
  17742. else
  17743. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17744. CFLAGS="${CFLAGS} "
  17745. as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lexecinfo" >&5
  17747. $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
  17748. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  17749. $as_echo_n "(cached) " >&6
  17750. else
  17751. ac_check_lib_save_LIBS=$LIBS
  17752. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  17753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17754. /* end confdefs.h. */
  17755. /* Override any GCC internal prototype to avoid an error.
  17756. Use char because int might match the return type of a GCC
  17757. builtin and then its argument prototype would still apply. */
  17758. #ifdef __cplusplus
  17759. extern "C"
  17760. #endif
  17761. char ${pbxfuncname} ();
  17762. int
  17763. main ()
  17764. {
  17765. return ${pbxfuncname} ();
  17766. ;
  17767. return 0;
  17768. }
  17769. _ACEOF
  17770. if ac_fn_c_try_link "$LINENO"; then :
  17771. eval "$as_ac_Lib=yes"
  17772. else
  17773. eval "$as_ac_Lib=no"
  17774. fi
  17775. rm -f core conftest.err conftest.$ac_objext \
  17776. conftest$ac_exeext conftest.$ac_ext
  17777. LIBS=$ac_check_lib_save_LIBS
  17778. fi
  17779. eval ac_res=\$$as_ac_Lib
  17780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17781. $as_echo "$ac_res" >&6; }
  17782. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17783. AST_BKTR_FOUND=yes
  17784. else
  17785. AST_BKTR_FOUND=no
  17786. fi
  17787. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17788. fi
  17789. # now check for the header.
  17790. if test "${AST_BKTR_FOUND}" = "yes"; then
  17791. BKTR_LIB="${pbxlibdir} -lexecinfo "
  17792. # if --with-BKTR=DIR has been specified, use it.
  17793. if test "x${BKTR_DIR}" != "x"; then
  17794. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  17795. fi
  17796. BKTR_INCLUDE="${BKTR_INCLUDE} "
  17797. if test "xexecinfo.h" = "x" ; then # no header, assume found
  17798. BKTR_HEADER_FOUND="1"
  17799. else # check for the header
  17800. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17801. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  17802. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  17803. if test "x$ac_cv_header_execinfo_h" = x""yes; then :
  17804. BKTR_HEADER_FOUND=1
  17805. else
  17806. BKTR_HEADER_FOUND=0
  17807. fi
  17808. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17809. fi
  17810. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  17811. BKTR_LIB=""
  17812. BKTR_INCLUDE=""
  17813. else
  17814. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17815. BKTR_LIB=""
  17816. fi
  17817. PBX_BKTR=1
  17818. cat >>confdefs.h <<_ACEOF
  17819. #define HAVE_BKTR 1
  17820. _ACEOF
  17821. fi
  17822. fi
  17823. fi
  17824. # Linux, however, has backtrace directly in glibc
  17825. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  17826. pbxlibdir=""
  17827. # if --with-BKTR=DIR has been specified, use it.
  17828. if test "x${BKTR_DIR}" != "x"; then
  17829. if test -d ${BKTR_DIR}/lib; then
  17830. pbxlibdir="-L${BKTR_DIR}/lib"
  17831. else
  17832. pbxlibdir="-L${BKTR_DIR}"
  17833. fi
  17834. fi
  17835. pbxfuncname="backtrace"
  17836. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17837. AST_BKTR_FOUND=yes
  17838. else
  17839. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17840. CFLAGS="${CFLAGS} "
  17841. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  17843. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  17844. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  17845. $as_echo_n "(cached) " >&6
  17846. else
  17847. ac_check_lib_save_LIBS=$LIBS
  17848. LIBS="-lc ${pbxlibdir} $LIBS"
  17849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17850. /* end confdefs.h. */
  17851. /* Override any GCC internal prototype to avoid an error.
  17852. Use char because int might match the return type of a GCC
  17853. builtin and then its argument prototype would still apply. */
  17854. #ifdef __cplusplus
  17855. extern "C"
  17856. #endif
  17857. char ${pbxfuncname} ();
  17858. int
  17859. main ()
  17860. {
  17861. return ${pbxfuncname} ();
  17862. ;
  17863. return 0;
  17864. }
  17865. _ACEOF
  17866. if ac_fn_c_try_link "$LINENO"; then :
  17867. eval "$as_ac_Lib=yes"
  17868. else
  17869. eval "$as_ac_Lib=no"
  17870. fi
  17871. rm -f core conftest.err conftest.$ac_objext \
  17872. conftest$ac_exeext conftest.$ac_ext
  17873. LIBS=$ac_check_lib_save_LIBS
  17874. fi
  17875. eval ac_res=\$$as_ac_Lib
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17877. $as_echo "$ac_res" >&6; }
  17878. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17879. AST_BKTR_FOUND=yes
  17880. else
  17881. AST_BKTR_FOUND=no
  17882. fi
  17883. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17884. fi
  17885. # now check for the header.
  17886. if test "${AST_BKTR_FOUND}" = "yes"; then
  17887. BKTR_LIB="${pbxlibdir} -lc "
  17888. # if --with-BKTR=DIR has been specified, use it.
  17889. if test "x${BKTR_DIR}" != "x"; then
  17890. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  17891. fi
  17892. BKTR_INCLUDE="${BKTR_INCLUDE} "
  17893. if test "xexecinfo.h" = "x" ; then # no header, assume found
  17894. BKTR_HEADER_FOUND="1"
  17895. else # check for the header
  17896. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17897. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  17898. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  17899. if test "x$ac_cv_header_execinfo_h" = x""yes; then :
  17900. BKTR_HEADER_FOUND=1
  17901. else
  17902. BKTR_HEADER_FOUND=0
  17903. fi
  17904. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17905. fi
  17906. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  17907. BKTR_LIB=""
  17908. BKTR_INCLUDE=""
  17909. else
  17910. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17911. BKTR_LIB=""
  17912. fi
  17913. PBX_BKTR=1
  17914. cat >>confdefs.h <<_ACEOF
  17915. #define HAVE_BKTR 1
  17916. _ACEOF
  17917. fi
  17918. fi
  17919. fi
  17920. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  17921. pbxlibdir=""
  17922. # if --with-BLUETOOTH=DIR has been specified, use it.
  17923. if test "x${BLUETOOTH_DIR}" != "x"; then
  17924. if test -d ${BLUETOOTH_DIR}/lib; then
  17925. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  17926. else
  17927. pbxlibdir="-L${BLUETOOTH_DIR}"
  17928. fi
  17929. fi
  17930. pbxfuncname="ba2str"
  17931. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17932. AST_BLUETOOTH_FOUND=yes
  17933. else
  17934. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17935. CFLAGS="${CFLAGS} "
  17936. as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
  17937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbluetooth" >&5
  17938. $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
  17939. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  17940. $as_echo_n "(cached) " >&6
  17941. else
  17942. ac_check_lib_save_LIBS=$LIBS
  17943. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  17944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17945. /* end confdefs.h. */
  17946. /* Override any GCC internal prototype to avoid an error.
  17947. Use char because int might match the return type of a GCC
  17948. builtin and then its argument prototype would still apply. */
  17949. #ifdef __cplusplus
  17950. extern "C"
  17951. #endif
  17952. char ${pbxfuncname} ();
  17953. int
  17954. main ()
  17955. {
  17956. return ${pbxfuncname} ();
  17957. ;
  17958. return 0;
  17959. }
  17960. _ACEOF
  17961. if ac_fn_c_try_link "$LINENO"; then :
  17962. eval "$as_ac_Lib=yes"
  17963. else
  17964. eval "$as_ac_Lib=no"
  17965. fi
  17966. rm -f core conftest.err conftest.$ac_objext \
  17967. conftest$ac_exeext conftest.$ac_ext
  17968. LIBS=$ac_check_lib_save_LIBS
  17969. fi
  17970. eval ac_res=\$$as_ac_Lib
  17971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17972. $as_echo "$ac_res" >&6; }
  17973. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17974. AST_BLUETOOTH_FOUND=yes
  17975. else
  17976. AST_BLUETOOTH_FOUND=no
  17977. fi
  17978. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17979. fi
  17980. # now check for the header.
  17981. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  17982. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  17983. # if --with-BLUETOOTH=DIR has been specified, use it.
  17984. if test "x${BLUETOOTH_DIR}" != "x"; then
  17985. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  17986. fi
  17987. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  17988. if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
  17989. BLUETOOTH_HEADER_FOUND="1"
  17990. else # check for the header
  17991. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17992. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  17993. ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
  17994. if test "x$ac_cv_header_bluetooth_bluetooth_h" = x""yes; then :
  17995. BLUETOOTH_HEADER_FOUND=1
  17996. else
  17997. BLUETOOTH_HEADER_FOUND=0
  17998. fi
  17999. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18000. fi
  18001. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  18002. BLUETOOTH_LIB=""
  18003. BLUETOOTH_INCLUDE=""
  18004. else
  18005. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18006. BLUETOOTH_LIB=""
  18007. fi
  18008. PBX_BLUETOOTH=1
  18009. cat >>confdefs.h <<_ACEOF
  18010. #define HAVE_BLUETOOTH 1
  18011. _ACEOF
  18012. fi
  18013. fi
  18014. fi
  18015. # possible places for oss definitions
  18016. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  18017. pbxlibdir=""
  18018. # if --with-OSS=DIR has been specified, use it.
  18019. if test "x${OSS_DIR}" != "x"; then
  18020. if test -d ${OSS_DIR}/lib; then
  18021. pbxlibdir="-L${OSS_DIR}/lib"
  18022. else
  18023. pbxlibdir="-L${OSS_DIR}"
  18024. fi
  18025. fi
  18026. pbxfuncname=""
  18027. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18028. AST_OSS_FOUND=yes
  18029. else
  18030. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18031. CFLAGS="${CFLAGS} "
  18032. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  18033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  18034. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  18035. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  18036. $as_echo_n "(cached) " >&6
  18037. else
  18038. ac_check_lib_save_LIBS=$LIBS
  18039. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  18040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18041. /* end confdefs.h. */
  18042. /* Override any GCC internal prototype to avoid an error.
  18043. Use char because int might match the return type of a GCC
  18044. builtin and then its argument prototype would still apply. */
  18045. #ifdef __cplusplus
  18046. extern "C"
  18047. #endif
  18048. char ${pbxfuncname} ();
  18049. int
  18050. main ()
  18051. {
  18052. return ${pbxfuncname} ();
  18053. ;
  18054. return 0;
  18055. }
  18056. _ACEOF
  18057. if ac_fn_c_try_link "$LINENO"; then :
  18058. eval "$as_ac_Lib=yes"
  18059. else
  18060. eval "$as_ac_Lib=no"
  18061. fi
  18062. rm -f core conftest.err conftest.$ac_objext \
  18063. conftest$ac_exeext conftest.$ac_ext
  18064. LIBS=$ac_check_lib_save_LIBS
  18065. fi
  18066. eval ac_res=\$$as_ac_Lib
  18067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18068. $as_echo "$ac_res" >&6; }
  18069. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18070. AST_OSS_FOUND=yes
  18071. else
  18072. AST_OSS_FOUND=no
  18073. fi
  18074. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18075. fi
  18076. # now check for the header.
  18077. if test "${AST_OSS_FOUND}" = "yes"; then
  18078. OSS_LIB="${pbxlibdir} -lossaudio "
  18079. # if --with-OSS=DIR has been specified, use it.
  18080. if test "x${OSS_DIR}" != "x"; then
  18081. OSS_INCLUDE="-I${OSS_DIR}/include"
  18082. fi
  18083. OSS_INCLUDE="${OSS_INCLUDE} "
  18084. if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
  18085. OSS_HEADER_FOUND="1"
  18086. else # check for the header
  18087. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18088. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  18089. ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
  18090. if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
  18091. OSS_HEADER_FOUND=1
  18092. else
  18093. OSS_HEADER_FOUND=0
  18094. fi
  18095. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18096. fi
  18097. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  18098. OSS_LIB=""
  18099. OSS_INCLUDE=""
  18100. else
  18101. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18102. OSS_LIB=""
  18103. fi
  18104. PBX_OSS=1
  18105. cat >>confdefs.h <<_ACEOF
  18106. #define HAVE_OSS 1
  18107. _ACEOF
  18108. fi
  18109. fi
  18110. fi
  18111. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  18112. pbxlibdir=""
  18113. # if --with-OSS=DIR has been specified, use it.
  18114. if test "x${OSS_DIR}" != "x"; then
  18115. if test -d ${OSS_DIR}/lib; then
  18116. pbxlibdir="-L${OSS_DIR}/lib"
  18117. else
  18118. pbxlibdir="-L${OSS_DIR}"
  18119. fi
  18120. fi
  18121. pbxfuncname=""
  18122. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18123. AST_OSS_FOUND=yes
  18124. else
  18125. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18126. CFLAGS="${CFLAGS} "
  18127. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  18128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  18129. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  18130. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  18131. $as_echo_n "(cached) " >&6
  18132. else
  18133. ac_check_lib_save_LIBS=$LIBS
  18134. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  18135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18136. /* end confdefs.h. */
  18137. /* Override any GCC internal prototype to avoid an error.
  18138. Use char because int might match the return type of a GCC
  18139. builtin and then its argument prototype would still apply. */
  18140. #ifdef __cplusplus
  18141. extern "C"
  18142. #endif
  18143. char ${pbxfuncname} ();
  18144. int
  18145. main ()
  18146. {
  18147. return ${pbxfuncname} ();
  18148. ;
  18149. return 0;
  18150. }
  18151. _ACEOF
  18152. if ac_fn_c_try_link "$LINENO"; then :
  18153. eval "$as_ac_Lib=yes"
  18154. else
  18155. eval "$as_ac_Lib=no"
  18156. fi
  18157. rm -f core conftest.err conftest.$ac_objext \
  18158. conftest$ac_exeext conftest.$ac_ext
  18159. LIBS=$ac_check_lib_save_LIBS
  18160. fi
  18161. eval ac_res=\$$as_ac_Lib
  18162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18163. $as_echo "$ac_res" >&6; }
  18164. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18165. AST_OSS_FOUND=yes
  18166. else
  18167. AST_OSS_FOUND=no
  18168. fi
  18169. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18170. fi
  18171. # now check for the header.
  18172. if test "${AST_OSS_FOUND}" = "yes"; then
  18173. OSS_LIB="${pbxlibdir} -lossaudio "
  18174. # if --with-OSS=DIR has been specified, use it.
  18175. if test "x${OSS_DIR}" != "x"; then
  18176. OSS_INCLUDE="-I${OSS_DIR}/include"
  18177. fi
  18178. OSS_INCLUDE="${OSS_INCLUDE} "
  18179. if test "xsys/soundcard.h" = "x" ; then # no header, assume found
  18180. OSS_HEADER_FOUND="1"
  18181. else # check for the header
  18182. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18183. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  18184. ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
  18185. if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
  18186. OSS_HEADER_FOUND=1
  18187. else
  18188. OSS_HEADER_FOUND=0
  18189. fi
  18190. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18191. fi
  18192. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  18193. OSS_LIB=""
  18194. OSS_INCLUDE=""
  18195. else
  18196. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18197. OSS_LIB=""
  18198. fi
  18199. PBX_OSS=1
  18200. cat >>confdefs.h <<_ACEOF
  18201. #define HAVE_OSS 1
  18202. _ACEOF
  18203. fi
  18204. fi
  18205. fi
  18206. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  18207. pbxlibdir=""
  18208. # if --with-OSS=DIR has been specified, use it.
  18209. if test "x${OSS_DIR}" != "x"; then
  18210. if test -d ${OSS_DIR}/lib; then
  18211. pbxlibdir="-L${OSS_DIR}/lib"
  18212. else
  18213. pbxlibdir="-L${OSS_DIR}"
  18214. fi
  18215. fi
  18216. pbxfuncname="oss_ioctl_mixer"
  18217. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18218. AST_OSS_FOUND=yes
  18219. else
  18220. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18221. CFLAGS="${CFLAGS} "
  18222. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  18224. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  18225. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  18226. $as_echo_n "(cached) " >&6
  18227. else
  18228. ac_check_lib_save_LIBS=$LIBS
  18229. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  18230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18231. /* end confdefs.h. */
  18232. /* Override any GCC internal prototype to avoid an error.
  18233. Use char because int might match the return type of a GCC
  18234. builtin and then its argument prototype would still apply. */
  18235. #ifdef __cplusplus
  18236. extern "C"
  18237. #endif
  18238. char ${pbxfuncname} ();
  18239. int
  18240. main ()
  18241. {
  18242. return ${pbxfuncname} ();
  18243. ;
  18244. return 0;
  18245. }
  18246. _ACEOF
  18247. if ac_fn_c_try_link "$LINENO"; then :
  18248. eval "$as_ac_Lib=yes"
  18249. else
  18250. eval "$as_ac_Lib=no"
  18251. fi
  18252. rm -f core conftest.err conftest.$ac_objext \
  18253. conftest$ac_exeext conftest.$ac_ext
  18254. LIBS=$ac_check_lib_save_LIBS
  18255. fi
  18256. eval ac_res=\$$as_ac_Lib
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18258. $as_echo "$ac_res" >&6; }
  18259. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18260. AST_OSS_FOUND=yes
  18261. else
  18262. AST_OSS_FOUND=no
  18263. fi
  18264. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18265. fi
  18266. # now check for the header.
  18267. if test "${AST_OSS_FOUND}" = "yes"; then
  18268. OSS_LIB="${pbxlibdir} -lossaudio "
  18269. # if --with-OSS=DIR has been specified, use it.
  18270. if test "x${OSS_DIR}" != "x"; then
  18271. OSS_INCLUDE="-I${OSS_DIR}/include"
  18272. fi
  18273. OSS_INCLUDE="${OSS_INCLUDE} "
  18274. if test "xsoundcard.h" = "x" ; then # no header, assume found
  18275. OSS_HEADER_FOUND="1"
  18276. else # check for the header
  18277. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18278. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  18279. ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
  18280. if test "x$ac_cv_header_soundcard_h" = x""yes; then :
  18281. OSS_HEADER_FOUND=1
  18282. else
  18283. OSS_HEADER_FOUND=0
  18284. fi
  18285. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18286. fi
  18287. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  18288. OSS_LIB=""
  18289. OSS_INCLUDE=""
  18290. else
  18291. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18292. OSS_LIB=""
  18293. fi
  18294. PBX_OSS=1
  18295. cat >>confdefs.h <<_ACEOF
  18296. #define HAVE_OSS 1
  18297. _ACEOF
  18298. fi
  18299. fi
  18300. fi
  18301. PG_CONFIG=No
  18302. if test "${USE_PGSQL}" != "no"; then
  18303. if test "x${PGSQL_DIR}" != "x"; then
  18304. if test -n "$ac_tool_prefix"; then
  18305. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  18306. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  18307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18308. $as_echo_n "checking for $ac_word... " >&6; }
  18309. if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
  18310. $as_echo_n "(cached) " >&6
  18311. else
  18312. case $PG_CONFIG in
  18313. [\\/]* | ?:[\\/]*)
  18314. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  18315. ;;
  18316. *)
  18317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18318. for as_dir in ${PGSQL_DIR}/bin
  18319. do
  18320. IFS=$as_save_IFS
  18321. test -z "$as_dir" && as_dir=.
  18322. for ac_exec_ext in '' $ac_executable_extensions; do
  18323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18324. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18326. break 2
  18327. fi
  18328. done
  18329. done
  18330. IFS=$as_save_IFS
  18331. ;;
  18332. esac
  18333. fi
  18334. PG_CONFIG=$ac_cv_path_PG_CONFIG
  18335. if test -n "$PG_CONFIG"; then
  18336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  18337. $as_echo "$PG_CONFIG" >&6; }
  18338. else
  18339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18340. $as_echo "no" >&6; }
  18341. fi
  18342. fi
  18343. if test -z "$ac_cv_path_PG_CONFIG"; then
  18344. ac_pt_PG_CONFIG=$PG_CONFIG
  18345. # Extract the first word of "pg_config", so it can be a program name with args.
  18346. set dummy pg_config; ac_word=$2
  18347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18348. $as_echo_n "checking for $ac_word... " >&6; }
  18349. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then :
  18350. $as_echo_n "(cached) " >&6
  18351. else
  18352. case $ac_pt_PG_CONFIG in
  18353. [\\/]* | ?:[\\/]*)
  18354. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  18355. ;;
  18356. *)
  18357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18358. for as_dir in ${PGSQL_DIR}/bin
  18359. do
  18360. IFS=$as_save_IFS
  18361. test -z "$as_dir" && as_dir=.
  18362. for ac_exec_ext in '' $ac_executable_extensions; do
  18363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18364. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18366. break 2
  18367. fi
  18368. done
  18369. done
  18370. IFS=$as_save_IFS
  18371. ;;
  18372. esac
  18373. fi
  18374. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  18375. if test -n "$ac_pt_PG_CONFIG"; then
  18376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  18377. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  18378. else
  18379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18380. $as_echo "no" >&6; }
  18381. fi
  18382. if test "x$ac_pt_PG_CONFIG" = x; then
  18383. PG_CONFIG="No"
  18384. else
  18385. case $cross_compiling:$ac_tool_warned in
  18386. yes:)
  18387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18388. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18389. ac_tool_warned=yes ;;
  18390. esac
  18391. PG_CONFIG=$ac_pt_PG_CONFIG
  18392. fi
  18393. else
  18394. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  18395. fi
  18396. if test x"${PG_CONFIG}" = xNo; then
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  18398. $as_echo "$as_me: ***" >&6;}
  18399. { $as_echo "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
  18400. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  18401. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
  18402. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  18404. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  18405. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  18406. $as_echo "$as_me: *** including --without-postgres" >&6;}
  18407. exit 1
  18408. fi
  18409. else
  18410. if test -n "$ac_tool_prefix"; then
  18411. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  18412. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18414. $as_echo_n "checking for $ac_word... " >&6; }
  18415. if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
  18416. $as_echo_n "(cached) " >&6
  18417. else
  18418. case $PG_CONFIG in
  18419. [\\/]* | ?:[\\/]*)
  18420. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  18421. ;;
  18422. *)
  18423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18424. for as_dir in $PATH
  18425. do
  18426. IFS=$as_save_IFS
  18427. test -z "$as_dir" && as_dir=.
  18428. for ac_exec_ext in '' $ac_executable_extensions; do
  18429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18430. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18432. break 2
  18433. fi
  18434. done
  18435. done
  18436. IFS=$as_save_IFS
  18437. ;;
  18438. esac
  18439. fi
  18440. PG_CONFIG=$ac_cv_path_PG_CONFIG
  18441. if test -n "$PG_CONFIG"; then
  18442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  18443. $as_echo "$PG_CONFIG" >&6; }
  18444. else
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18446. $as_echo "no" >&6; }
  18447. fi
  18448. fi
  18449. if test -z "$ac_cv_path_PG_CONFIG"; then
  18450. ac_pt_PG_CONFIG=$PG_CONFIG
  18451. # Extract the first word of "pg_config", so it can be a program name with args.
  18452. set dummy pg_config; ac_word=$2
  18453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18454. $as_echo_n "checking for $ac_word... " >&6; }
  18455. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then :
  18456. $as_echo_n "(cached) " >&6
  18457. else
  18458. case $ac_pt_PG_CONFIG in
  18459. [\\/]* | ?:[\\/]*)
  18460. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  18461. ;;
  18462. *)
  18463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18464. for as_dir in $PATH
  18465. do
  18466. IFS=$as_save_IFS
  18467. test -z "$as_dir" && as_dir=.
  18468. for ac_exec_ext in '' $ac_executable_extensions; do
  18469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18470. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18472. break 2
  18473. fi
  18474. done
  18475. done
  18476. IFS=$as_save_IFS
  18477. ;;
  18478. esac
  18479. fi
  18480. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  18481. if test -n "$ac_pt_PG_CONFIG"; then
  18482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  18483. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  18484. else
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18486. $as_echo "no" >&6; }
  18487. fi
  18488. if test "x$ac_pt_PG_CONFIG" = x; then
  18489. PG_CONFIG="No"
  18490. else
  18491. case $cross_compiling:$ac_tool_warned in
  18492. yes:)
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18495. ac_tool_warned=yes ;;
  18496. esac
  18497. PG_CONFIG=$ac_pt_PG_CONFIG
  18498. fi
  18499. else
  18500. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  18501. fi
  18502. fi
  18503. fi
  18504. if test "${PG_CONFIG}" != No; then
  18505. PGSQL_libdir=`${PG_CONFIG} --libdir`
  18506. PGSQL_includedir=`${PG_CONFIG} --includedir`
  18507. if test "x$?" != "x0" ; then
  18508. if test -n "${PGSQL_MANDATORY}" ; then
  18509. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  18510. $as_echo "$as_me: ***" >&6;}
  18511. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  18512. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  18514. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  18516. $as_echo "$as_me: *** including --without-postgres" >&6;}
  18517. exit 1
  18518. fi
  18519. else
  18520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
  18521. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  18522. if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then :
  18523. $as_echo_n "(cached) " >&6
  18524. else
  18525. ac_check_lib_save_LIBS=$LIBS
  18526. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  18527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18528. /* end confdefs.h. */
  18529. /* Override any GCC internal prototype to avoid an error.
  18530. Use char because int might match the return type of a GCC
  18531. builtin and then its argument prototype would still apply. */
  18532. #ifdef __cplusplus
  18533. extern "C"
  18534. #endif
  18535. char PQescapeStringConn ();
  18536. int
  18537. main ()
  18538. {
  18539. return PQescapeStringConn ();
  18540. ;
  18541. return 0;
  18542. }
  18543. _ACEOF
  18544. if ac_fn_c_try_link "$LINENO"; then :
  18545. ac_cv_lib_pq_PQescapeStringConn=yes
  18546. else
  18547. ac_cv_lib_pq_PQescapeStringConn=no
  18548. fi
  18549. rm -f core conftest.err conftest.$ac_objext \
  18550. conftest$ac_exeext conftest.$ac_ext
  18551. LIBS=$ac_check_lib_save_LIBS
  18552. fi
  18553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  18554. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  18555. if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then :
  18556. cat >>confdefs.h <<_ACEOF
  18557. #define HAVE_PGSQL 1
  18558. _ACEOF
  18559. fi
  18560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char within Postgres headers" >&5
  18561. $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  18562. old_CFLAGS=${CFLAGS}
  18563. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  18564. old_LDFLAGS=${LDFLAGS}
  18565. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  18566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18567. /* end confdefs.h. */
  18568. #include <libpq-fe.h>
  18569. int
  18570. main ()
  18571. {
  18572. const char *foo = pg_encoding_to_char(1)
  18573. ;
  18574. return 0;
  18575. }
  18576. _ACEOF
  18577. if ac_fn_c_try_link "$LINENO"; then :
  18578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18579. $as_echo "yes" >&6; }
  18580. cat >>confdefs.h <<_ACEOF
  18581. #define HAVE_PGSQL_pg_encoding_to_char 1
  18582. _ACEOF
  18583. else
  18584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18585. $as_echo "no" >&6; }
  18586. fi
  18587. rm -f core conftest.err conftest.$ac_objext \
  18588. conftest$ac_exeext conftest.$ac_ext
  18589. CFLAGS=${old_CFLAGS}
  18590. LDFLAGS=${old_LDFLAGS}
  18591. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  18592. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  18593. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  18594. PBX_PGSQL=1
  18595. elif test -n "${PGSQL_MANDATORY}";
  18596. then
  18597. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  18598. $as_echo "$as_me: ***" >&6;}
  18599. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  18600. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  18601. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  18602. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  18603. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  18604. $as_echo "$as_me: *** including --without-postgres" >&6;}
  18605. exit 1
  18606. fi
  18607. fi
  18608. fi
  18609. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  18610. pbxlibdir=""
  18611. # if --with-POPT=DIR has been specified, use it.
  18612. if test "x${POPT_DIR}" != "x"; then
  18613. if test -d ${POPT_DIR}/lib; then
  18614. pbxlibdir="-L${POPT_DIR}/lib"
  18615. else
  18616. pbxlibdir="-L${POPT_DIR}"
  18617. fi
  18618. fi
  18619. pbxfuncname="poptStrerror"
  18620. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18621. AST_POPT_FOUND=yes
  18622. else
  18623. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18624. CFLAGS="${CFLAGS} "
  18625. as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpopt" >&5
  18627. $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
  18628. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  18629. $as_echo_n "(cached) " >&6
  18630. else
  18631. ac_check_lib_save_LIBS=$LIBS
  18632. LIBS="-lpopt ${pbxlibdir} $LIBS"
  18633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18634. /* end confdefs.h. */
  18635. /* Override any GCC internal prototype to avoid an error.
  18636. Use char because int might match the return type of a GCC
  18637. builtin and then its argument prototype would still apply. */
  18638. #ifdef __cplusplus
  18639. extern "C"
  18640. #endif
  18641. char ${pbxfuncname} ();
  18642. int
  18643. main ()
  18644. {
  18645. return ${pbxfuncname} ();
  18646. ;
  18647. return 0;
  18648. }
  18649. _ACEOF
  18650. if ac_fn_c_try_link "$LINENO"; then :
  18651. eval "$as_ac_Lib=yes"
  18652. else
  18653. eval "$as_ac_Lib=no"
  18654. fi
  18655. rm -f core conftest.err conftest.$ac_objext \
  18656. conftest$ac_exeext conftest.$ac_ext
  18657. LIBS=$ac_check_lib_save_LIBS
  18658. fi
  18659. eval ac_res=\$$as_ac_Lib
  18660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18661. $as_echo "$ac_res" >&6; }
  18662. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18663. AST_POPT_FOUND=yes
  18664. else
  18665. AST_POPT_FOUND=no
  18666. fi
  18667. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18668. fi
  18669. # now check for the header.
  18670. if test "${AST_POPT_FOUND}" = "yes"; then
  18671. POPT_LIB="${pbxlibdir} -lpopt "
  18672. # if --with-POPT=DIR has been specified, use it.
  18673. if test "x${POPT_DIR}" != "x"; then
  18674. POPT_INCLUDE="-I${POPT_DIR}/include"
  18675. fi
  18676. POPT_INCLUDE="${POPT_INCLUDE} "
  18677. if test "xpopt.h" = "x" ; then # no header, assume found
  18678. POPT_HEADER_FOUND="1"
  18679. else # check for the header
  18680. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18681. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  18682. ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
  18683. if test "x$ac_cv_header_popt_h" = x""yes; then :
  18684. POPT_HEADER_FOUND=1
  18685. else
  18686. POPT_HEADER_FOUND=0
  18687. fi
  18688. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18689. fi
  18690. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  18691. POPT_LIB=""
  18692. POPT_INCLUDE=""
  18693. else
  18694. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18695. POPT_LIB=""
  18696. fi
  18697. PBX_POPT=1
  18698. cat >>confdefs.h <<_ACEOF
  18699. #define HAVE_POPT 1
  18700. _ACEOF
  18701. fi
  18702. fi
  18703. fi
  18704. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  18705. pbxlibdir=""
  18706. # if --with-PORTAUDIO=DIR has been specified, use it.
  18707. if test "x${PORTAUDIO_DIR}" != "x"; then
  18708. if test -d ${PORTAUDIO_DIR}/lib; then
  18709. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  18710. else
  18711. pbxlibdir="-L${PORTAUDIO_DIR}"
  18712. fi
  18713. fi
  18714. pbxfuncname="Pa_GetDeviceCount"
  18715. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18716. AST_PORTAUDIO_FOUND=yes
  18717. else
  18718. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18719. CFLAGS="${CFLAGS} "
  18720. as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
  18721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lportaudio" >&5
  18722. $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
  18723. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  18724. $as_echo_n "(cached) " >&6
  18725. else
  18726. ac_check_lib_save_LIBS=$LIBS
  18727. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  18728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18729. /* end confdefs.h. */
  18730. /* Override any GCC internal prototype to avoid an error.
  18731. Use char because int might match the return type of a GCC
  18732. builtin and then its argument prototype would still apply. */
  18733. #ifdef __cplusplus
  18734. extern "C"
  18735. #endif
  18736. char ${pbxfuncname} ();
  18737. int
  18738. main ()
  18739. {
  18740. return ${pbxfuncname} ();
  18741. ;
  18742. return 0;
  18743. }
  18744. _ACEOF
  18745. if ac_fn_c_try_link "$LINENO"; then :
  18746. eval "$as_ac_Lib=yes"
  18747. else
  18748. eval "$as_ac_Lib=no"
  18749. fi
  18750. rm -f core conftest.err conftest.$ac_objext \
  18751. conftest$ac_exeext conftest.$ac_ext
  18752. LIBS=$ac_check_lib_save_LIBS
  18753. fi
  18754. eval ac_res=\$$as_ac_Lib
  18755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18756. $as_echo "$ac_res" >&6; }
  18757. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18758. AST_PORTAUDIO_FOUND=yes
  18759. else
  18760. AST_PORTAUDIO_FOUND=no
  18761. fi
  18762. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18763. fi
  18764. # now check for the header.
  18765. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  18766. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  18767. # if --with-PORTAUDIO=DIR has been specified, use it.
  18768. if test "x${PORTAUDIO_DIR}" != "x"; then
  18769. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  18770. fi
  18771. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  18772. if test "xportaudio.h" = "x" ; then # no header, assume found
  18773. PORTAUDIO_HEADER_FOUND="1"
  18774. else # check for the header
  18775. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18776. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  18777. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  18778. if test "x$ac_cv_header_portaudio_h" = x""yes; then :
  18779. PORTAUDIO_HEADER_FOUND=1
  18780. else
  18781. PORTAUDIO_HEADER_FOUND=0
  18782. fi
  18783. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18784. fi
  18785. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  18786. PORTAUDIO_LIB=""
  18787. PORTAUDIO_INCLUDE=""
  18788. else
  18789. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18790. PORTAUDIO_LIB=""
  18791. fi
  18792. PBX_PORTAUDIO=1
  18793. cat >>confdefs.h <<_ACEOF
  18794. #define HAVE_PORTAUDIO 1
  18795. _ACEOF
  18796. fi
  18797. fi
  18798. fi
  18799. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  18800. pbxlibdir=""
  18801. # if --with-PRI=DIR has been specified, use it.
  18802. if test "x${PRI_DIR}" != "x"; then
  18803. if test -d ${PRI_DIR}/lib; then
  18804. pbxlibdir="-L${PRI_DIR}/lib"
  18805. else
  18806. pbxlibdir="-L${PRI_DIR}"
  18807. fi
  18808. fi
  18809. pbxfuncname="pri_connected_line_update"
  18810. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18811. AST_PRI_FOUND=yes
  18812. else
  18813. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18814. CFLAGS="${CFLAGS} "
  18815. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  18817. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  18818. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  18819. $as_echo_n "(cached) " >&6
  18820. else
  18821. ac_check_lib_save_LIBS=$LIBS
  18822. LIBS="-lpri ${pbxlibdir} $LIBS"
  18823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18824. /* end confdefs.h. */
  18825. /* Override any GCC internal prototype to avoid an error.
  18826. Use char because int might match the return type of a GCC
  18827. builtin and then its argument prototype would still apply. */
  18828. #ifdef __cplusplus
  18829. extern "C"
  18830. #endif
  18831. char ${pbxfuncname} ();
  18832. int
  18833. main ()
  18834. {
  18835. return ${pbxfuncname} ();
  18836. ;
  18837. return 0;
  18838. }
  18839. _ACEOF
  18840. if ac_fn_c_try_link "$LINENO"; then :
  18841. eval "$as_ac_Lib=yes"
  18842. else
  18843. eval "$as_ac_Lib=no"
  18844. fi
  18845. rm -f core conftest.err conftest.$ac_objext \
  18846. conftest$ac_exeext conftest.$ac_ext
  18847. LIBS=$ac_check_lib_save_LIBS
  18848. fi
  18849. eval ac_res=\$$as_ac_Lib
  18850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18851. $as_echo "$ac_res" >&6; }
  18852. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18853. AST_PRI_FOUND=yes
  18854. else
  18855. AST_PRI_FOUND=no
  18856. fi
  18857. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18858. fi
  18859. # now check for the header.
  18860. if test "${AST_PRI_FOUND}" = "yes"; then
  18861. PRI_LIB="${pbxlibdir} -lpri "
  18862. # if --with-PRI=DIR has been specified, use it.
  18863. if test "x${PRI_DIR}" != "x"; then
  18864. PRI_INCLUDE="-I${PRI_DIR}/include"
  18865. fi
  18866. PRI_INCLUDE="${PRI_INCLUDE} "
  18867. if test "xlibpri.h" = "x" ; then # no header, assume found
  18868. PRI_HEADER_FOUND="1"
  18869. else # check for the header
  18870. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18871. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  18872. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  18873. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  18874. PRI_HEADER_FOUND=1
  18875. else
  18876. PRI_HEADER_FOUND=0
  18877. fi
  18878. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18879. fi
  18880. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  18881. PRI_LIB=""
  18882. PRI_INCLUDE=""
  18883. else
  18884. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18885. PRI_LIB=""
  18886. fi
  18887. PBX_PRI=1
  18888. cat >>confdefs.h <<_ACEOF
  18889. #define HAVE_PRI 1
  18890. _ACEOF
  18891. fi
  18892. fi
  18893. fi
  18894. if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
  18895. pbxlibdir=""
  18896. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  18897. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  18898. if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
  18899. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
  18900. else
  18901. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
  18902. fi
  18903. fi
  18904. pbxfuncname="pri_date_time_send_option"
  18905. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18906. AST_PRI_DATETIME_SEND_FOUND=yes
  18907. else
  18908. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18909. CFLAGS="${CFLAGS} "
  18910. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  18911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  18912. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  18913. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  18914. $as_echo_n "(cached) " >&6
  18915. else
  18916. ac_check_lib_save_LIBS=$LIBS
  18917. LIBS="-lpri ${pbxlibdir} $LIBS"
  18918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18919. /* end confdefs.h. */
  18920. /* Override any GCC internal prototype to avoid an error.
  18921. Use char because int might match the return type of a GCC
  18922. builtin and then its argument prototype would still apply. */
  18923. #ifdef __cplusplus
  18924. extern "C"
  18925. #endif
  18926. char ${pbxfuncname} ();
  18927. int
  18928. main ()
  18929. {
  18930. return ${pbxfuncname} ();
  18931. ;
  18932. return 0;
  18933. }
  18934. _ACEOF
  18935. if ac_fn_c_try_link "$LINENO"; then :
  18936. eval "$as_ac_Lib=yes"
  18937. else
  18938. eval "$as_ac_Lib=no"
  18939. fi
  18940. rm -f core conftest.err conftest.$ac_objext \
  18941. conftest$ac_exeext conftest.$ac_ext
  18942. LIBS=$ac_check_lib_save_LIBS
  18943. fi
  18944. eval ac_res=\$$as_ac_Lib
  18945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18946. $as_echo "$ac_res" >&6; }
  18947. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18948. AST_PRI_DATETIME_SEND_FOUND=yes
  18949. else
  18950. AST_PRI_DATETIME_SEND_FOUND=no
  18951. fi
  18952. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18953. fi
  18954. # now check for the header.
  18955. if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
  18956. PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
  18957. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  18958. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  18959. PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
  18960. fi
  18961. PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
  18962. if test "xlibpri.h" = "x" ; then # no header, assume found
  18963. PRI_DATETIME_SEND_HEADER_FOUND="1"
  18964. else # check for the header
  18965. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18966. CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
  18967. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  18968. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  18969. PRI_DATETIME_SEND_HEADER_FOUND=1
  18970. else
  18971. PRI_DATETIME_SEND_HEADER_FOUND=0
  18972. fi
  18973. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18974. fi
  18975. if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
  18976. PRI_DATETIME_SEND_LIB=""
  18977. PRI_DATETIME_SEND_INCLUDE=""
  18978. else
  18979. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18980. PRI_DATETIME_SEND_LIB=""
  18981. fi
  18982. PBX_PRI_DATETIME_SEND=1
  18983. cat >>confdefs.h <<_ACEOF
  18984. #define HAVE_PRI_DATETIME_SEND 1
  18985. _ACEOF
  18986. fi
  18987. fi
  18988. fi
  18989. if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
  18990. pbxlibdir=""
  18991. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  18992. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  18993. if test -d ${PRI_MWI_V2_DIR}/lib; then
  18994. pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
  18995. else
  18996. pbxlibdir="-L${PRI_MWI_V2_DIR}"
  18997. fi
  18998. fi
  18999. pbxfuncname="pri_mwi_indicate_v2"
  19000. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19001. AST_PRI_MWI_V2_FOUND=yes
  19002. else
  19003. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19004. CFLAGS="${CFLAGS} "
  19005. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19007. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19008. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19009. $as_echo_n "(cached) " >&6
  19010. else
  19011. ac_check_lib_save_LIBS=$LIBS
  19012. LIBS="-lpri ${pbxlibdir} $LIBS"
  19013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19014. /* end confdefs.h. */
  19015. /* Override any GCC internal prototype to avoid an error.
  19016. Use char because int might match the return type of a GCC
  19017. builtin and then its argument prototype would still apply. */
  19018. #ifdef __cplusplus
  19019. extern "C"
  19020. #endif
  19021. char ${pbxfuncname} ();
  19022. int
  19023. main ()
  19024. {
  19025. return ${pbxfuncname} ();
  19026. ;
  19027. return 0;
  19028. }
  19029. _ACEOF
  19030. if ac_fn_c_try_link "$LINENO"; then :
  19031. eval "$as_ac_Lib=yes"
  19032. else
  19033. eval "$as_ac_Lib=no"
  19034. fi
  19035. rm -f core conftest.err conftest.$ac_objext \
  19036. conftest$ac_exeext conftest.$ac_ext
  19037. LIBS=$ac_check_lib_save_LIBS
  19038. fi
  19039. eval ac_res=\$$as_ac_Lib
  19040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19041. $as_echo "$ac_res" >&6; }
  19042. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19043. AST_PRI_MWI_V2_FOUND=yes
  19044. else
  19045. AST_PRI_MWI_V2_FOUND=no
  19046. fi
  19047. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19048. fi
  19049. # now check for the header.
  19050. if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
  19051. PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
  19052. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  19053. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  19054. PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
  19055. fi
  19056. PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
  19057. if test "xlibpri.h" = "x" ; then # no header, assume found
  19058. PRI_MWI_V2_HEADER_FOUND="1"
  19059. else # check for the header
  19060. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19061. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
  19062. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19063. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19064. PRI_MWI_V2_HEADER_FOUND=1
  19065. else
  19066. PRI_MWI_V2_HEADER_FOUND=0
  19067. fi
  19068. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19069. fi
  19070. if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
  19071. PRI_MWI_V2_LIB=""
  19072. PRI_MWI_V2_INCLUDE=""
  19073. else
  19074. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19075. PRI_MWI_V2_LIB=""
  19076. fi
  19077. PBX_PRI_MWI_V2=1
  19078. cat >>confdefs.h <<_ACEOF
  19079. #define HAVE_PRI_MWI_V2 1
  19080. _ACEOF
  19081. fi
  19082. fi
  19083. fi
  19084. if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
  19085. pbxlibdir=""
  19086. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  19087. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  19088. if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
  19089. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
  19090. else
  19091. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
  19092. fi
  19093. fi
  19094. pbxfuncname="pri_display_text"
  19095. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19096. AST_PRI_DISPLAY_TEXT_FOUND=yes
  19097. else
  19098. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19099. CFLAGS="${CFLAGS} "
  19100. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19102. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19103. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19104. $as_echo_n "(cached) " >&6
  19105. else
  19106. ac_check_lib_save_LIBS=$LIBS
  19107. LIBS="-lpri ${pbxlibdir} $LIBS"
  19108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19109. /* end confdefs.h. */
  19110. /* Override any GCC internal prototype to avoid an error.
  19111. Use char because int might match the return type of a GCC
  19112. builtin and then its argument prototype would still apply. */
  19113. #ifdef __cplusplus
  19114. extern "C"
  19115. #endif
  19116. char ${pbxfuncname} ();
  19117. int
  19118. main ()
  19119. {
  19120. return ${pbxfuncname} ();
  19121. ;
  19122. return 0;
  19123. }
  19124. _ACEOF
  19125. if ac_fn_c_try_link "$LINENO"; then :
  19126. eval "$as_ac_Lib=yes"
  19127. else
  19128. eval "$as_ac_Lib=no"
  19129. fi
  19130. rm -f core conftest.err conftest.$ac_objext \
  19131. conftest$ac_exeext conftest.$ac_ext
  19132. LIBS=$ac_check_lib_save_LIBS
  19133. fi
  19134. eval ac_res=\$$as_ac_Lib
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19136. $as_echo "$ac_res" >&6; }
  19137. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19138. AST_PRI_DISPLAY_TEXT_FOUND=yes
  19139. else
  19140. AST_PRI_DISPLAY_TEXT_FOUND=no
  19141. fi
  19142. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19143. fi
  19144. # now check for the header.
  19145. if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
  19146. PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
  19147. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  19148. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  19149. PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
  19150. fi
  19151. PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
  19152. if test "xlibpri.h" = "x" ; then # no header, assume found
  19153. PRI_DISPLAY_TEXT_HEADER_FOUND="1"
  19154. else # check for the header
  19155. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19156. CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
  19157. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19158. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19159. PRI_DISPLAY_TEXT_HEADER_FOUND=1
  19160. else
  19161. PRI_DISPLAY_TEXT_HEADER_FOUND=0
  19162. fi
  19163. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19164. fi
  19165. if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
  19166. PRI_DISPLAY_TEXT_LIB=""
  19167. PRI_DISPLAY_TEXT_INCLUDE=""
  19168. else
  19169. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19170. PRI_DISPLAY_TEXT_LIB=""
  19171. fi
  19172. PBX_PRI_DISPLAY_TEXT=1
  19173. cat >>confdefs.h <<_ACEOF
  19174. #define HAVE_PRI_DISPLAY_TEXT 1
  19175. _ACEOF
  19176. fi
  19177. fi
  19178. fi
  19179. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  19180. pbxlibdir=""
  19181. # if --with-PRI_MWI=DIR has been specified, use it.
  19182. if test "x${PRI_MWI_DIR}" != "x"; then
  19183. if test -d ${PRI_MWI_DIR}/lib; then
  19184. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  19185. else
  19186. pbxlibdir="-L${PRI_MWI_DIR}"
  19187. fi
  19188. fi
  19189. pbxfuncname="pri_mwi_indicate"
  19190. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19191. AST_PRI_MWI_FOUND=yes
  19192. else
  19193. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19194. CFLAGS="${CFLAGS} "
  19195. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19197. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19198. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19199. $as_echo_n "(cached) " >&6
  19200. else
  19201. ac_check_lib_save_LIBS=$LIBS
  19202. LIBS="-lpri ${pbxlibdir} $LIBS"
  19203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19204. /* end confdefs.h. */
  19205. /* Override any GCC internal prototype to avoid an error.
  19206. Use char because int might match the return type of a GCC
  19207. builtin and then its argument prototype would still apply. */
  19208. #ifdef __cplusplus
  19209. extern "C"
  19210. #endif
  19211. char ${pbxfuncname} ();
  19212. int
  19213. main ()
  19214. {
  19215. return ${pbxfuncname} ();
  19216. ;
  19217. return 0;
  19218. }
  19219. _ACEOF
  19220. if ac_fn_c_try_link "$LINENO"; then :
  19221. eval "$as_ac_Lib=yes"
  19222. else
  19223. eval "$as_ac_Lib=no"
  19224. fi
  19225. rm -f core conftest.err conftest.$ac_objext \
  19226. conftest$ac_exeext conftest.$ac_ext
  19227. LIBS=$ac_check_lib_save_LIBS
  19228. fi
  19229. eval ac_res=\$$as_ac_Lib
  19230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19231. $as_echo "$ac_res" >&6; }
  19232. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19233. AST_PRI_MWI_FOUND=yes
  19234. else
  19235. AST_PRI_MWI_FOUND=no
  19236. fi
  19237. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19238. fi
  19239. # now check for the header.
  19240. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  19241. PRI_MWI_LIB="${pbxlibdir} -lpri "
  19242. # if --with-PRI_MWI=DIR has been specified, use it.
  19243. if test "x${PRI_MWI_DIR}" != "x"; then
  19244. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  19245. fi
  19246. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  19247. if test "xlibpri.h" = "x" ; then # no header, assume found
  19248. PRI_MWI_HEADER_FOUND="1"
  19249. else # check for the header
  19250. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19251. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  19252. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19253. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19254. PRI_MWI_HEADER_FOUND=1
  19255. else
  19256. PRI_MWI_HEADER_FOUND=0
  19257. fi
  19258. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19259. fi
  19260. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  19261. PRI_MWI_LIB=""
  19262. PRI_MWI_INCLUDE=""
  19263. else
  19264. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19265. PRI_MWI_LIB=""
  19266. fi
  19267. PBX_PRI_MWI=1
  19268. cat >>confdefs.h <<_ACEOF
  19269. #define HAVE_PRI_MWI 1
  19270. _ACEOF
  19271. fi
  19272. fi
  19273. fi
  19274. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  19275. pbxlibdir=""
  19276. # if --with-PRI_MCID=DIR has been specified, use it.
  19277. if test "x${PRI_MCID_DIR}" != "x"; then
  19278. if test -d ${PRI_MCID_DIR}/lib; then
  19279. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  19280. else
  19281. pbxlibdir="-L${PRI_MCID_DIR}"
  19282. fi
  19283. fi
  19284. pbxfuncname="pri_mcid_enable"
  19285. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19286. AST_PRI_MCID_FOUND=yes
  19287. else
  19288. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19289. CFLAGS="${CFLAGS} "
  19290. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19292. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19293. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19294. $as_echo_n "(cached) " >&6
  19295. else
  19296. ac_check_lib_save_LIBS=$LIBS
  19297. LIBS="-lpri ${pbxlibdir} $LIBS"
  19298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19299. /* end confdefs.h. */
  19300. /* Override any GCC internal prototype to avoid an error.
  19301. Use char because int might match the return type of a GCC
  19302. builtin and then its argument prototype would still apply. */
  19303. #ifdef __cplusplus
  19304. extern "C"
  19305. #endif
  19306. char ${pbxfuncname} ();
  19307. int
  19308. main ()
  19309. {
  19310. return ${pbxfuncname} ();
  19311. ;
  19312. return 0;
  19313. }
  19314. _ACEOF
  19315. if ac_fn_c_try_link "$LINENO"; then :
  19316. eval "$as_ac_Lib=yes"
  19317. else
  19318. eval "$as_ac_Lib=no"
  19319. fi
  19320. rm -f core conftest.err conftest.$ac_objext \
  19321. conftest$ac_exeext conftest.$ac_ext
  19322. LIBS=$ac_check_lib_save_LIBS
  19323. fi
  19324. eval ac_res=\$$as_ac_Lib
  19325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19326. $as_echo "$ac_res" >&6; }
  19327. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19328. AST_PRI_MCID_FOUND=yes
  19329. else
  19330. AST_PRI_MCID_FOUND=no
  19331. fi
  19332. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19333. fi
  19334. # now check for the header.
  19335. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  19336. PRI_MCID_LIB="${pbxlibdir} -lpri "
  19337. # if --with-PRI_MCID=DIR has been specified, use it.
  19338. if test "x${PRI_MCID_DIR}" != "x"; then
  19339. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  19340. fi
  19341. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  19342. if test "xlibpri.h" = "x" ; then # no header, assume found
  19343. PRI_MCID_HEADER_FOUND="1"
  19344. else # check for the header
  19345. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19346. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  19347. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19348. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19349. PRI_MCID_HEADER_FOUND=1
  19350. else
  19351. PRI_MCID_HEADER_FOUND=0
  19352. fi
  19353. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19354. fi
  19355. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  19356. PRI_MCID_LIB=""
  19357. PRI_MCID_INCLUDE=""
  19358. else
  19359. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19360. PRI_MCID_LIB=""
  19361. fi
  19362. PBX_PRI_MCID=1
  19363. cat >>confdefs.h <<_ACEOF
  19364. #define HAVE_PRI_MCID 1
  19365. _ACEOF
  19366. fi
  19367. fi
  19368. fi
  19369. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  19370. pbxlibdir=""
  19371. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  19372. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  19373. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  19374. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  19375. else
  19376. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  19377. fi
  19378. fi
  19379. pbxfuncname="pri_connect_ack_enable"
  19380. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19381. AST_PRI_CALL_WAITING_FOUND=yes
  19382. else
  19383. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19384. CFLAGS="${CFLAGS} "
  19385. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19387. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19388. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19389. $as_echo_n "(cached) " >&6
  19390. else
  19391. ac_check_lib_save_LIBS=$LIBS
  19392. LIBS="-lpri ${pbxlibdir} $LIBS"
  19393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19394. /* end confdefs.h. */
  19395. /* Override any GCC internal prototype to avoid an error.
  19396. Use char because int might match the return type of a GCC
  19397. builtin and then its argument prototype would still apply. */
  19398. #ifdef __cplusplus
  19399. extern "C"
  19400. #endif
  19401. char ${pbxfuncname} ();
  19402. int
  19403. main ()
  19404. {
  19405. return ${pbxfuncname} ();
  19406. ;
  19407. return 0;
  19408. }
  19409. _ACEOF
  19410. if ac_fn_c_try_link "$LINENO"; then :
  19411. eval "$as_ac_Lib=yes"
  19412. else
  19413. eval "$as_ac_Lib=no"
  19414. fi
  19415. rm -f core conftest.err conftest.$ac_objext \
  19416. conftest$ac_exeext conftest.$ac_ext
  19417. LIBS=$ac_check_lib_save_LIBS
  19418. fi
  19419. eval ac_res=\$$as_ac_Lib
  19420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19421. $as_echo "$ac_res" >&6; }
  19422. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19423. AST_PRI_CALL_WAITING_FOUND=yes
  19424. else
  19425. AST_PRI_CALL_WAITING_FOUND=no
  19426. fi
  19427. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19428. fi
  19429. # now check for the header.
  19430. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  19431. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  19432. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  19433. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  19434. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  19435. fi
  19436. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  19437. if test "xlibpri.h" = "x" ; then # no header, assume found
  19438. PRI_CALL_WAITING_HEADER_FOUND="1"
  19439. else # check for the header
  19440. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19441. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  19442. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19443. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19444. PRI_CALL_WAITING_HEADER_FOUND=1
  19445. else
  19446. PRI_CALL_WAITING_HEADER_FOUND=0
  19447. fi
  19448. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19449. fi
  19450. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  19451. PRI_CALL_WAITING_LIB=""
  19452. PRI_CALL_WAITING_INCLUDE=""
  19453. else
  19454. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19455. PRI_CALL_WAITING_LIB=""
  19456. fi
  19457. PBX_PRI_CALL_WAITING=1
  19458. cat >>confdefs.h <<_ACEOF
  19459. #define HAVE_PRI_CALL_WAITING 1
  19460. _ACEOF
  19461. fi
  19462. fi
  19463. fi
  19464. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  19465. pbxlibdir=""
  19466. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  19467. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  19468. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  19469. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  19470. else
  19471. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  19472. fi
  19473. fi
  19474. pbxfuncname="pri_aoc_events_enable"
  19475. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19476. AST_PRI_AOC_EVENTS_FOUND=yes
  19477. else
  19478. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19479. CFLAGS="${CFLAGS} "
  19480. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19482. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19483. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19484. $as_echo_n "(cached) " >&6
  19485. else
  19486. ac_check_lib_save_LIBS=$LIBS
  19487. LIBS="-lpri ${pbxlibdir} $LIBS"
  19488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19489. /* end confdefs.h. */
  19490. /* Override any GCC internal prototype to avoid an error.
  19491. Use char because int might match the return type of a GCC
  19492. builtin and then its argument prototype would still apply. */
  19493. #ifdef __cplusplus
  19494. extern "C"
  19495. #endif
  19496. char ${pbxfuncname} ();
  19497. int
  19498. main ()
  19499. {
  19500. return ${pbxfuncname} ();
  19501. ;
  19502. return 0;
  19503. }
  19504. _ACEOF
  19505. if ac_fn_c_try_link "$LINENO"; then :
  19506. eval "$as_ac_Lib=yes"
  19507. else
  19508. eval "$as_ac_Lib=no"
  19509. fi
  19510. rm -f core conftest.err conftest.$ac_objext \
  19511. conftest$ac_exeext conftest.$ac_ext
  19512. LIBS=$ac_check_lib_save_LIBS
  19513. fi
  19514. eval ac_res=\$$as_ac_Lib
  19515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19516. $as_echo "$ac_res" >&6; }
  19517. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19518. AST_PRI_AOC_EVENTS_FOUND=yes
  19519. else
  19520. AST_PRI_AOC_EVENTS_FOUND=no
  19521. fi
  19522. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19523. fi
  19524. # now check for the header.
  19525. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  19526. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  19527. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  19528. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  19529. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  19530. fi
  19531. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  19532. if test "xlibpri.h" = "x" ; then # no header, assume found
  19533. PRI_AOC_EVENTS_HEADER_FOUND="1"
  19534. else # check for the header
  19535. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19536. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  19537. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19538. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19539. PRI_AOC_EVENTS_HEADER_FOUND=1
  19540. else
  19541. PRI_AOC_EVENTS_HEADER_FOUND=0
  19542. fi
  19543. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19544. fi
  19545. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  19546. PRI_AOC_EVENTS_LIB=""
  19547. PRI_AOC_EVENTS_INCLUDE=""
  19548. else
  19549. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19550. PRI_AOC_EVENTS_LIB=""
  19551. fi
  19552. PBX_PRI_AOC_EVENTS=1
  19553. cat >>confdefs.h <<_ACEOF
  19554. #define HAVE_PRI_AOC_EVENTS 1
  19555. _ACEOF
  19556. fi
  19557. fi
  19558. fi
  19559. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  19560. pbxlibdir=""
  19561. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  19562. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  19563. if test -d ${PRI_TRANSFER_DIR}/lib; then
  19564. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  19565. else
  19566. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  19567. fi
  19568. fi
  19569. pbxfuncname="pri_transfer_enable"
  19570. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19571. AST_PRI_TRANSFER_FOUND=yes
  19572. else
  19573. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19574. CFLAGS="${CFLAGS} "
  19575. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19577. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19578. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19579. $as_echo_n "(cached) " >&6
  19580. else
  19581. ac_check_lib_save_LIBS=$LIBS
  19582. LIBS="-lpri ${pbxlibdir} $LIBS"
  19583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19584. /* end confdefs.h. */
  19585. /* Override any GCC internal prototype to avoid an error.
  19586. Use char because int might match the return type of a GCC
  19587. builtin and then its argument prototype would still apply. */
  19588. #ifdef __cplusplus
  19589. extern "C"
  19590. #endif
  19591. char ${pbxfuncname} ();
  19592. int
  19593. main ()
  19594. {
  19595. return ${pbxfuncname} ();
  19596. ;
  19597. return 0;
  19598. }
  19599. _ACEOF
  19600. if ac_fn_c_try_link "$LINENO"; then :
  19601. eval "$as_ac_Lib=yes"
  19602. else
  19603. eval "$as_ac_Lib=no"
  19604. fi
  19605. rm -f core conftest.err conftest.$ac_objext \
  19606. conftest$ac_exeext conftest.$ac_ext
  19607. LIBS=$ac_check_lib_save_LIBS
  19608. fi
  19609. eval ac_res=\$$as_ac_Lib
  19610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19611. $as_echo "$ac_res" >&6; }
  19612. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19613. AST_PRI_TRANSFER_FOUND=yes
  19614. else
  19615. AST_PRI_TRANSFER_FOUND=no
  19616. fi
  19617. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19618. fi
  19619. # now check for the header.
  19620. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  19621. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  19622. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  19623. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  19624. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  19625. fi
  19626. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  19627. if test "xlibpri.h" = "x" ; then # no header, assume found
  19628. PRI_TRANSFER_HEADER_FOUND="1"
  19629. else # check for the header
  19630. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19631. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  19632. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19633. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19634. PRI_TRANSFER_HEADER_FOUND=1
  19635. else
  19636. PRI_TRANSFER_HEADER_FOUND=0
  19637. fi
  19638. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19639. fi
  19640. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  19641. PRI_TRANSFER_LIB=""
  19642. PRI_TRANSFER_INCLUDE=""
  19643. else
  19644. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19645. PRI_TRANSFER_LIB=""
  19646. fi
  19647. PBX_PRI_TRANSFER=1
  19648. cat >>confdefs.h <<_ACEOF
  19649. #define HAVE_PRI_TRANSFER 1
  19650. _ACEOF
  19651. fi
  19652. fi
  19653. fi
  19654. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  19655. pbxlibdir=""
  19656. # if --with-PRI_CCSS=DIR has been specified, use it.
  19657. if test "x${PRI_CCSS_DIR}" != "x"; then
  19658. if test -d ${PRI_CCSS_DIR}/lib; then
  19659. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  19660. else
  19661. pbxlibdir="-L${PRI_CCSS_DIR}"
  19662. fi
  19663. fi
  19664. pbxfuncname="pri_cc_enable"
  19665. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19666. AST_PRI_CCSS_FOUND=yes
  19667. else
  19668. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19669. CFLAGS="${CFLAGS} "
  19670. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19672. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19673. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19674. $as_echo_n "(cached) " >&6
  19675. else
  19676. ac_check_lib_save_LIBS=$LIBS
  19677. LIBS="-lpri ${pbxlibdir} $LIBS"
  19678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19679. /* end confdefs.h. */
  19680. /* Override any GCC internal prototype to avoid an error.
  19681. Use char because int might match the return type of a GCC
  19682. builtin and then its argument prototype would still apply. */
  19683. #ifdef __cplusplus
  19684. extern "C"
  19685. #endif
  19686. char ${pbxfuncname} ();
  19687. int
  19688. main ()
  19689. {
  19690. return ${pbxfuncname} ();
  19691. ;
  19692. return 0;
  19693. }
  19694. _ACEOF
  19695. if ac_fn_c_try_link "$LINENO"; then :
  19696. eval "$as_ac_Lib=yes"
  19697. else
  19698. eval "$as_ac_Lib=no"
  19699. fi
  19700. rm -f core conftest.err conftest.$ac_objext \
  19701. conftest$ac_exeext conftest.$ac_ext
  19702. LIBS=$ac_check_lib_save_LIBS
  19703. fi
  19704. eval ac_res=\$$as_ac_Lib
  19705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19706. $as_echo "$ac_res" >&6; }
  19707. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19708. AST_PRI_CCSS_FOUND=yes
  19709. else
  19710. AST_PRI_CCSS_FOUND=no
  19711. fi
  19712. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19713. fi
  19714. # now check for the header.
  19715. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  19716. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  19717. # if --with-PRI_CCSS=DIR has been specified, use it.
  19718. if test "x${PRI_CCSS_DIR}" != "x"; then
  19719. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  19720. fi
  19721. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  19722. if test "xlibpri.h" = "x" ; then # no header, assume found
  19723. PRI_CCSS_HEADER_FOUND="1"
  19724. else # check for the header
  19725. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19726. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  19727. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19728. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19729. PRI_CCSS_HEADER_FOUND=1
  19730. else
  19731. PRI_CCSS_HEADER_FOUND=0
  19732. fi
  19733. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19734. fi
  19735. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  19736. PRI_CCSS_LIB=""
  19737. PRI_CCSS_INCLUDE=""
  19738. else
  19739. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19740. PRI_CCSS_LIB=""
  19741. fi
  19742. PBX_PRI_CCSS=1
  19743. cat >>confdefs.h <<_ACEOF
  19744. #define HAVE_PRI_CCSS 1
  19745. _ACEOF
  19746. fi
  19747. fi
  19748. fi
  19749. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  19750. pbxlibdir=""
  19751. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  19752. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  19753. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  19754. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  19755. else
  19756. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  19757. fi
  19758. fi
  19759. pbxfuncname="pri_hangup_fix_enable"
  19760. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19761. AST_PRI_HANGUP_FIX_FOUND=yes
  19762. else
  19763. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19764. CFLAGS="${CFLAGS} "
  19765. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19767. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19768. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19769. $as_echo_n "(cached) " >&6
  19770. else
  19771. ac_check_lib_save_LIBS=$LIBS
  19772. LIBS="-lpri ${pbxlibdir} $LIBS"
  19773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19774. /* end confdefs.h. */
  19775. /* Override any GCC internal prototype to avoid an error.
  19776. Use char because int might match the return type of a GCC
  19777. builtin and then its argument prototype would still apply. */
  19778. #ifdef __cplusplus
  19779. extern "C"
  19780. #endif
  19781. char ${pbxfuncname} ();
  19782. int
  19783. main ()
  19784. {
  19785. return ${pbxfuncname} ();
  19786. ;
  19787. return 0;
  19788. }
  19789. _ACEOF
  19790. if ac_fn_c_try_link "$LINENO"; then :
  19791. eval "$as_ac_Lib=yes"
  19792. else
  19793. eval "$as_ac_Lib=no"
  19794. fi
  19795. rm -f core conftest.err conftest.$ac_objext \
  19796. conftest$ac_exeext conftest.$ac_ext
  19797. LIBS=$ac_check_lib_save_LIBS
  19798. fi
  19799. eval ac_res=\$$as_ac_Lib
  19800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19801. $as_echo "$ac_res" >&6; }
  19802. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19803. AST_PRI_HANGUP_FIX_FOUND=yes
  19804. else
  19805. AST_PRI_HANGUP_FIX_FOUND=no
  19806. fi
  19807. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19808. fi
  19809. # now check for the header.
  19810. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  19811. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  19812. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  19813. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  19814. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  19815. fi
  19816. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  19817. if test "xlibpri.h" = "x" ; then # no header, assume found
  19818. PRI_HANGUP_FIX_HEADER_FOUND="1"
  19819. else # check for the header
  19820. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19821. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  19822. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19823. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19824. PRI_HANGUP_FIX_HEADER_FOUND=1
  19825. else
  19826. PRI_HANGUP_FIX_HEADER_FOUND=0
  19827. fi
  19828. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19829. fi
  19830. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  19831. PRI_HANGUP_FIX_LIB=""
  19832. PRI_HANGUP_FIX_INCLUDE=""
  19833. else
  19834. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19835. PRI_HANGUP_FIX_LIB=""
  19836. fi
  19837. PBX_PRI_HANGUP_FIX=1
  19838. cat >>confdefs.h <<_ACEOF
  19839. #define HAVE_PRI_HANGUP_FIX 1
  19840. _ACEOF
  19841. fi
  19842. fi
  19843. fi
  19844. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  19845. pbxlibdir=""
  19846. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  19847. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  19848. if test -d ${PRI_SUBADDR_DIR}/lib; then
  19849. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  19850. else
  19851. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  19852. fi
  19853. fi
  19854. pbxfuncname="pri_sr_set_called_subaddress"
  19855. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19856. AST_PRI_SUBADDR_FOUND=yes
  19857. else
  19858. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19859. CFLAGS="${CFLAGS} "
  19860. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19862. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19863. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19864. $as_echo_n "(cached) " >&6
  19865. else
  19866. ac_check_lib_save_LIBS=$LIBS
  19867. LIBS="-lpri ${pbxlibdir} $LIBS"
  19868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19869. /* end confdefs.h. */
  19870. /* Override any GCC internal prototype to avoid an error.
  19871. Use char because int might match the return type of a GCC
  19872. builtin and then its argument prototype would still apply. */
  19873. #ifdef __cplusplus
  19874. extern "C"
  19875. #endif
  19876. char ${pbxfuncname} ();
  19877. int
  19878. main ()
  19879. {
  19880. return ${pbxfuncname} ();
  19881. ;
  19882. return 0;
  19883. }
  19884. _ACEOF
  19885. if ac_fn_c_try_link "$LINENO"; then :
  19886. eval "$as_ac_Lib=yes"
  19887. else
  19888. eval "$as_ac_Lib=no"
  19889. fi
  19890. rm -f core conftest.err conftest.$ac_objext \
  19891. conftest$ac_exeext conftest.$ac_ext
  19892. LIBS=$ac_check_lib_save_LIBS
  19893. fi
  19894. eval ac_res=\$$as_ac_Lib
  19895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19896. $as_echo "$ac_res" >&6; }
  19897. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19898. AST_PRI_SUBADDR_FOUND=yes
  19899. else
  19900. AST_PRI_SUBADDR_FOUND=no
  19901. fi
  19902. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19903. fi
  19904. # now check for the header.
  19905. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  19906. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  19907. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  19908. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  19909. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  19910. fi
  19911. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  19912. if test "xlibpri.h" = "x" ; then # no header, assume found
  19913. PRI_SUBADDR_HEADER_FOUND="1"
  19914. else # check for the header
  19915. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19916. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  19917. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19918. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  19919. PRI_SUBADDR_HEADER_FOUND=1
  19920. else
  19921. PRI_SUBADDR_HEADER_FOUND=0
  19922. fi
  19923. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19924. fi
  19925. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  19926. PRI_SUBADDR_LIB=""
  19927. PRI_SUBADDR_INCLUDE=""
  19928. else
  19929. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19930. PRI_SUBADDR_LIB=""
  19931. fi
  19932. PBX_PRI_SUBADDR=1
  19933. cat >>confdefs.h <<_ACEOF
  19934. #define HAVE_PRI_SUBADDR 1
  19935. _ACEOF
  19936. fi
  19937. fi
  19938. fi
  19939. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  19940. pbxlibdir=""
  19941. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  19942. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  19943. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  19944. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  19945. else
  19946. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  19947. fi
  19948. fi
  19949. pbxfuncname="pri_hold_enable"
  19950. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19951. AST_PRI_CALL_HOLD_FOUND=yes
  19952. else
  19953. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19954. CFLAGS="${CFLAGS} "
  19955. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19957. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19958. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  19959. $as_echo_n "(cached) " >&6
  19960. else
  19961. ac_check_lib_save_LIBS=$LIBS
  19962. LIBS="-lpri ${pbxlibdir} $LIBS"
  19963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964. /* end confdefs.h. */
  19965. /* Override any GCC internal prototype to avoid an error.
  19966. Use char because int might match the return type of a GCC
  19967. builtin and then its argument prototype would still apply. */
  19968. #ifdef __cplusplus
  19969. extern "C"
  19970. #endif
  19971. char ${pbxfuncname} ();
  19972. int
  19973. main ()
  19974. {
  19975. return ${pbxfuncname} ();
  19976. ;
  19977. return 0;
  19978. }
  19979. _ACEOF
  19980. if ac_fn_c_try_link "$LINENO"; then :
  19981. eval "$as_ac_Lib=yes"
  19982. else
  19983. eval "$as_ac_Lib=no"
  19984. fi
  19985. rm -f core conftest.err conftest.$ac_objext \
  19986. conftest$ac_exeext conftest.$ac_ext
  19987. LIBS=$ac_check_lib_save_LIBS
  19988. fi
  19989. eval ac_res=\$$as_ac_Lib
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19991. $as_echo "$ac_res" >&6; }
  19992. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19993. AST_PRI_CALL_HOLD_FOUND=yes
  19994. else
  19995. AST_PRI_CALL_HOLD_FOUND=no
  19996. fi
  19997. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19998. fi
  19999. # now check for the header.
  20000. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  20001. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  20002. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  20003. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  20004. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  20005. fi
  20006. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  20007. if test "xlibpri.h" = "x" ; then # no header, assume found
  20008. PRI_CALL_HOLD_HEADER_FOUND="1"
  20009. else # check for the header
  20010. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20011. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  20012. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20013. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  20014. PRI_CALL_HOLD_HEADER_FOUND=1
  20015. else
  20016. PRI_CALL_HOLD_HEADER_FOUND=0
  20017. fi
  20018. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20019. fi
  20020. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  20021. PRI_CALL_HOLD_LIB=""
  20022. PRI_CALL_HOLD_INCLUDE=""
  20023. else
  20024. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20025. PRI_CALL_HOLD_LIB=""
  20026. fi
  20027. PBX_PRI_CALL_HOLD=1
  20028. cat >>confdefs.h <<_ACEOF
  20029. #define HAVE_PRI_CALL_HOLD 1
  20030. _ACEOF
  20031. fi
  20032. fi
  20033. fi
  20034. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  20035. pbxlibdir=""
  20036. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  20037. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  20038. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  20039. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  20040. else
  20041. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  20042. fi
  20043. fi
  20044. pbxfuncname="pri_reroute_enable"
  20045. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20046. AST_PRI_CALL_REROUTING_FOUND=yes
  20047. else
  20048. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20049. CFLAGS="${CFLAGS} "
  20050. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20052. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20053. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20054. $as_echo_n "(cached) " >&6
  20055. else
  20056. ac_check_lib_save_LIBS=$LIBS
  20057. LIBS="-lpri ${pbxlibdir} $LIBS"
  20058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20059. /* end confdefs.h. */
  20060. /* Override any GCC internal prototype to avoid an error.
  20061. Use char because int might match the return type of a GCC
  20062. builtin and then its argument prototype would still apply. */
  20063. #ifdef __cplusplus
  20064. extern "C"
  20065. #endif
  20066. char ${pbxfuncname} ();
  20067. int
  20068. main ()
  20069. {
  20070. return ${pbxfuncname} ();
  20071. ;
  20072. return 0;
  20073. }
  20074. _ACEOF
  20075. if ac_fn_c_try_link "$LINENO"; then :
  20076. eval "$as_ac_Lib=yes"
  20077. else
  20078. eval "$as_ac_Lib=no"
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext \
  20081. conftest$ac_exeext conftest.$ac_ext
  20082. LIBS=$ac_check_lib_save_LIBS
  20083. fi
  20084. eval ac_res=\$$as_ac_Lib
  20085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20086. $as_echo "$ac_res" >&6; }
  20087. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20088. AST_PRI_CALL_REROUTING_FOUND=yes
  20089. else
  20090. AST_PRI_CALL_REROUTING_FOUND=no
  20091. fi
  20092. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20093. fi
  20094. # now check for the header.
  20095. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  20096. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  20097. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  20098. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  20099. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  20100. fi
  20101. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  20102. if test "xlibpri.h" = "x" ; then # no header, assume found
  20103. PRI_CALL_REROUTING_HEADER_FOUND="1"
  20104. else # check for the header
  20105. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20106. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  20107. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20108. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  20109. PRI_CALL_REROUTING_HEADER_FOUND=1
  20110. else
  20111. PRI_CALL_REROUTING_HEADER_FOUND=0
  20112. fi
  20113. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20114. fi
  20115. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  20116. PRI_CALL_REROUTING_LIB=""
  20117. PRI_CALL_REROUTING_INCLUDE=""
  20118. else
  20119. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20120. PRI_CALL_REROUTING_LIB=""
  20121. fi
  20122. PBX_PRI_CALL_REROUTING=1
  20123. cat >>confdefs.h <<_ACEOF
  20124. #define HAVE_PRI_CALL_REROUTING 1
  20125. _ACEOF
  20126. fi
  20127. fi
  20128. fi
  20129. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  20130. pbxlibdir=""
  20131. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  20132. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  20133. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  20134. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  20135. else
  20136. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  20137. fi
  20138. fi
  20139. pbxfuncname="pri_sr_set_keypad_digits"
  20140. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20141. AST_PRI_SETUP_KEYPAD_FOUND=yes
  20142. else
  20143. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20144. CFLAGS="${CFLAGS} "
  20145. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20147. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20148. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20149. $as_echo_n "(cached) " >&6
  20150. else
  20151. ac_check_lib_save_LIBS=$LIBS
  20152. LIBS="-lpri ${pbxlibdir} $LIBS"
  20153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20154. /* end confdefs.h. */
  20155. /* Override any GCC internal prototype to avoid an error.
  20156. Use char because int might match the return type of a GCC
  20157. builtin and then its argument prototype would still apply. */
  20158. #ifdef __cplusplus
  20159. extern "C"
  20160. #endif
  20161. char ${pbxfuncname} ();
  20162. int
  20163. main ()
  20164. {
  20165. return ${pbxfuncname} ();
  20166. ;
  20167. return 0;
  20168. }
  20169. _ACEOF
  20170. if ac_fn_c_try_link "$LINENO"; then :
  20171. eval "$as_ac_Lib=yes"
  20172. else
  20173. eval "$as_ac_Lib=no"
  20174. fi
  20175. rm -f core conftest.err conftest.$ac_objext \
  20176. conftest$ac_exeext conftest.$ac_ext
  20177. LIBS=$ac_check_lib_save_LIBS
  20178. fi
  20179. eval ac_res=\$$as_ac_Lib
  20180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20181. $as_echo "$ac_res" >&6; }
  20182. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20183. AST_PRI_SETUP_KEYPAD_FOUND=yes
  20184. else
  20185. AST_PRI_SETUP_KEYPAD_FOUND=no
  20186. fi
  20187. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20188. fi
  20189. # now check for the header.
  20190. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  20191. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  20192. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  20193. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  20194. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  20195. fi
  20196. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  20197. if test "xlibpri.h" = "x" ; then # no header, assume found
  20198. PRI_SETUP_KEYPAD_HEADER_FOUND="1"
  20199. else # check for the header
  20200. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20201. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  20202. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20203. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  20204. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  20205. else
  20206. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  20207. fi
  20208. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20209. fi
  20210. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  20211. PRI_SETUP_KEYPAD_LIB=""
  20212. PRI_SETUP_KEYPAD_INCLUDE=""
  20213. else
  20214. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20215. PRI_SETUP_KEYPAD_LIB=""
  20216. fi
  20217. PBX_PRI_SETUP_KEYPAD=1
  20218. cat >>confdefs.h <<_ACEOF
  20219. #define HAVE_PRI_SETUP_KEYPAD 1
  20220. _ACEOF
  20221. fi
  20222. fi
  20223. fi
  20224. # ------------------------------------v
  20225. # TODO: The code can be changed to always include these features now.
  20226. # These features will always be present if pri_connected_line_update is available.
  20227. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  20228. pbxlibdir=""
  20229. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  20230. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  20231. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  20232. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  20233. else
  20234. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  20235. fi
  20236. fi
  20237. pbxfuncname="pri_progress_with_cause"
  20238. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20239. AST_PRI_PROG_W_CAUSE_FOUND=yes
  20240. else
  20241. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20242. CFLAGS="${CFLAGS} "
  20243. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20245. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20246. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20247. $as_echo_n "(cached) " >&6
  20248. else
  20249. ac_check_lib_save_LIBS=$LIBS
  20250. LIBS="-lpri ${pbxlibdir} $LIBS"
  20251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20252. /* end confdefs.h. */
  20253. /* Override any GCC internal prototype to avoid an error.
  20254. Use char because int might match the return type of a GCC
  20255. builtin and then its argument prototype would still apply. */
  20256. #ifdef __cplusplus
  20257. extern "C"
  20258. #endif
  20259. char ${pbxfuncname} ();
  20260. int
  20261. main ()
  20262. {
  20263. return ${pbxfuncname} ();
  20264. ;
  20265. return 0;
  20266. }
  20267. _ACEOF
  20268. if ac_fn_c_try_link "$LINENO"; then :
  20269. eval "$as_ac_Lib=yes"
  20270. else
  20271. eval "$as_ac_Lib=no"
  20272. fi
  20273. rm -f core conftest.err conftest.$ac_objext \
  20274. conftest$ac_exeext conftest.$ac_ext
  20275. LIBS=$ac_check_lib_save_LIBS
  20276. fi
  20277. eval ac_res=\$$as_ac_Lib
  20278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20279. $as_echo "$ac_res" >&6; }
  20280. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20281. AST_PRI_PROG_W_CAUSE_FOUND=yes
  20282. else
  20283. AST_PRI_PROG_W_CAUSE_FOUND=no
  20284. fi
  20285. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20286. fi
  20287. # now check for the header.
  20288. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  20289. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  20290. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  20291. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  20292. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  20293. fi
  20294. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  20295. if test "xlibpri.h" = "x" ; then # no header, assume found
  20296. PRI_PROG_W_CAUSE_HEADER_FOUND="1"
  20297. else # check for the header
  20298. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20299. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  20300. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20301. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  20302. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  20303. else
  20304. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  20305. fi
  20306. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20307. fi
  20308. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  20309. PRI_PROG_W_CAUSE_LIB=""
  20310. PRI_PROG_W_CAUSE_INCLUDE=""
  20311. else
  20312. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20313. PRI_PROG_W_CAUSE_LIB=""
  20314. fi
  20315. PBX_PRI_PROG_W_CAUSE=1
  20316. cat >>confdefs.h <<_ACEOF
  20317. #define HAVE_PRI_PROG_W_CAUSE 1
  20318. _ACEOF
  20319. fi
  20320. fi
  20321. fi
  20322. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  20323. pbxlibdir=""
  20324. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  20325. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  20326. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  20327. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  20328. else
  20329. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  20330. fi
  20331. fi
  20332. pbxfuncname="pri_set_inbanddisconnect"
  20333. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20334. AST_PRI_INBANDDISCONNECT_FOUND=yes
  20335. else
  20336. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20337. CFLAGS="${CFLAGS} "
  20338. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20340. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20341. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20342. $as_echo_n "(cached) " >&6
  20343. else
  20344. ac_check_lib_save_LIBS=$LIBS
  20345. LIBS="-lpri ${pbxlibdir} $LIBS"
  20346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20347. /* end confdefs.h. */
  20348. /* Override any GCC internal prototype to avoid an error.
  20349. Use char because int might match the return type of a GCC
  20350. builtin and then its argument prototype would still apply. */
  20351. #ifdef __cplusplus
  20352. extern "C"
  20353. #endif
  20354. char ${pbxfuncname} ();
  20355. int
  20356. main ()
  20357. {
  20358. return ${pbxfuncname} ();
  20359. ;
  20360. return 0;
  20361. }
  20362. _ACEOF
  20363. if ac_fn_c_try_link "$LINENO"; then :
  20364. eval "$as_ac_Lib=yes"
  20365. else
  20366. eval "$as_ac_Lib=no"
  20367. fi
  20368. rm -f core conftest.err conftest.$ac_objext \
  20369. conftest$ac_exeext conftest.$ac_ext
  20370. LIBS=$ac_check_lib_save_LIBS
  20371. fi
  20372. eval ac_res=\$$as_ac_Lib
  20373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20374. $as_echo "$ac_res" >&6; }
  20375. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20376. AST_PRI_INBANDDISCONNECT_FOUND=yes
  20377. else
  20378. AST_PRI_INBANDDISCONNECT_FOUND=no
  20379. fi
  20380. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20381. fi
  20382. # now check for the header.
  20383. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  20384. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  20385. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  20386. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  20387. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  20388. fi
  20389. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  20390. if test "xlibpri.h" = "x" ; then # no header, assume found
  20391. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  20392. else # check for the header
  20393. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20394. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  20395. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20396. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  20397. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  20398. else
  20399. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  20400. fi
  20401. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20402. fi
  20403. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  20404. PRI_INBANDDISCONNECT_LIB=""
  20405. PRI_INBANDDISCONNECT_INCLUDE=""
  20406. else
  20407. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20408. PRI_INBANDDISCONNECT_LIB=""
  20409. fi
  20410. PBX_PRI_INBANDDISCONNECT=1
  20411. cat >>confdefs.h <<_ACEOF
  20412. #define HAVE_PRI_INBANDDISCONNECT 1
  20413. _ACEOF
  20414. fi
  20415. fi
  20416. fi
  20417. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  20418. pbxlibdir=""
  20419. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  20420. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  20421. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  20422. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  20423. else
  20424. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  20425. fi
  20426. fi
  20427. pbxfuncname="pri_maintenance_service"
  20428. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20429. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  20430. else
  20431. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20432. CFLAGS="${CFLAGS} "
  20433. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20435. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20436. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20437. $as_echo_n "(cached) " >&6
  20438. else
  20439. ac_check_lib_save_LIBS=$LIBS
  20440. LIBS="-lpri ${pbxlibdir} $LIBS"
  20441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20442. /* end confdefs.h. */
  20443. /* Override any GCC internal prototype to avoid an error.
  20444. Use char because int might match the return type of a GCC
  20445. builtin and then its argument prototype would still apply. */
  20446. #ifdef __cplusplus
  20447. extern "C"
  20448. #endif
  20449. char ${pbxfuncname} ();
  20450. int
  20451. main ()
  20452. {
  20453. return ${pbxfuncname} ();
  20454. ;
  20455. return 0;
  20456. }
  20457. _ACEOF
  20458. if ac_fn_c_try_link "$LINENO"; then :
  20459. eval "$as_ac_Lib=yes"
  20460. else
  20461. eval "$as_ac_Lib=no"
  20462. fi
  20463. rm -f core conftest.err conftest.$ac_objext \
  20464. conftest$ac_exeext conftest.$ac_ext
  20465. LIBS=$ac_check_lib_save_LIBS
  20466. fi
  20467. eval ac_res=\$$as_ac_Lib
  20468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20469. $as_echo "$ac_res" >&6; }
  20470. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20471. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  20472. else
  20473. AST_PRI_SERVICE_MESSAGES_FOUND=no
  20474. fi
  20475. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20476. fi
  20477. # now check for the header.
  20478. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  20479. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  20480. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  20481. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  20482. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  20483. fi
  20484. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  20485. if test "xlibpri.h" = "x" ; then # no header, assume found
  20486. PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
  20487. else # check for the header
  20488. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20489. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  20490. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20491. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  20492. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  20493. else
  20494. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  20495. fi
  20496. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20497. fi
  20498. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  20499. PRI_SERVICE_MESSAGES_LIB=""
  20500. PRI_SERVICE_MESSAGES_INCLUDE=""
  20501. else
  20502. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20503. PRI_SERVICE_MESSAGES_LIB=""
  20504. fi
  20505. PBX_PRI_SERVICE_MESSAGES=1
  20506. cat >>confdefs.h <<_ACEOF
  20507. #define HAVE_PRI_SERVICE_MESSAGES 1
  20508. _ACEOF
  20509. fi
  20510. fi
  20511. fi
  20512. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  20513. pbxlibdir=""
  20514. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  20515. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  20516. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  20517. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  20518. else
  20519. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  20520. fi
  20521. fi
  20522. pbxfuncname="pri_sr_set_reversecharge"
  20523. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20524. AST_PRI_REVERSE_CHARGE_FOUND=yes
  20525. else
  20526. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20527. CFLAGS="${CFLAGS} "
  20528. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20530. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20531. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20532. $as_echo_n "(cached) " >&6
  20533. else
  20534. ac_check_lib_save_LIBS=$LIBS
  20535. LIBS="-lpri ${pbxlibdir} $LIBS"
  20536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20537. /* end confdefs.h. */
  20538. /* Override any GCC internal prototype to avoid an error.
  20539. Use char because int might match the return type of a GCC
  20540. builtin and then its argument prototype would still apply. */
  20541. #ifdef __cplusplus
  20542. extern "C"
  20543. #endif
  20544. char ${pbxfuncname} ();
  20545. int
  20546. main ()
  20547. {
  20548. return ${pbxfuncname} ();
  20549. ;
  20550. return 0;
  20551. }
  20552. _ACEOF
  20553. if ac_fn_c_try_link "$LINENO"; then :
  20554. eval "$as_ac_Lib=yes"
  20555. else
  20556. eval "$as_ac_Lib=no"
  20557. fi
  20558. rm -f core conftest.err conftest.$ac_objext \
  20559. conftest$ac_exeext conftest.$ac_ext
  20560. LIBS=$ac_check_lib_save_LIBS
  20561. fi
  20562. eval ac_res=\$$as_ac_Lib
  20563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20564. $as_echo "$ac_res" >&6; }
  20565. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20566. AST_PRI_REVERSE_CHARGE_FOUND=yes
  20567. else
  20568. AST_PRI_REVERSE_CHARGE_FOUND=no
  20569. fi
  20570. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20571. fi
  20572. # now check for the header.
  20573. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  20574. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  20575. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  20576. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  20577. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  20578. fi
  20579. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  20580. if test "xlibpri.h" = "x" ; then # no header, assume found
  20581. PRI_REVERSE_CHARGE_HEADER_FOUND="1"
  20582. else # check for the header
  20583. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20584. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  20585. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20586. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  20587. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  20588. else
  20589. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  20590. fi
  20591. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20592. fi
  20593. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  20594. PRI_REVERSE_CHARGE_LIB=""
  20595. PRI_REVERSE_CHARGE_INCLUDE=""
  20596. else
  20597. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20598. PRI_REVERSE_CHARGE_LIB=""
  20599. fi
  20600. PBX_PRI_REVERSE_CHARGE=1
  20601. cat >>confdefs.h <<_ACEOF
  20602. #define HAVE_PRI_REVERSE_CHARGE 1
  20603. _ACEOF
  20604. fi
  20605. fi
  20606. fi
  20607. # ------------------------------------^
  20608. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  20609. pbxlibdir=""
  20610. # if --with-RESAMPLE=DIR has been specified, use it.
  20611. if test "x${RESAMPLE_DIR}" != "x"; then
  20612. if test -d ${RESAMPLE_DIR}/lib; then
  20613. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  20614. else
  20615. pbxlibdir="-L${RESAMPLE_DIR}"
  20616. fi
  20617. fi
  20618. pbxfuncname="resample_open"
  20619. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20620. AST_RESAMPLE_FOUND=yes
  20621. else
  20622. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20623. CFLAGS="${CFLAGS} "
  20624. as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
  20625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lresample" >&5
  20626. $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
  20627. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20628. $as_echo_n "(cached) " >&6
  20629. else
  20630. ac_check_lib_save_LIBS=$LIBS
  20631. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  20632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20633. /* end confdefs.h. */
  20634. /* Override any GCC internal prototype to avoid an error.
  20635. Use char because int might match the return type of a GCC
  20636. builtin and then its argument prototype would still apply. */
  20637. #ifdef __cplusplus
  20638. extern "C"
  20639. #endif
  20640. char ${pbxfuncname} ();
  20641. int
  20642. main ()
  20643. {
  20644. return ${pbxfuncname} ();
  20645. ;
  20646. return 0;
  20647. }
  20648. _ACEOF
  20649. if ac_fn_c_try_link "$LINENO"; then :
  20650. eval "$as_ac_Lib=yes"
  20651. else
  20652. eval "$as_ac_Lib=no"
  20653. fi
  20654. rm -f core conftest.err conftest.$ac_objext \
  20655. conftest$ac_exeext conftest.$ac_ext
  20656. LIBS=$ac_check_lib_save_LIBS
  20657. fi
  20658. eval ac_res=\$$as_ac_Lib
  20659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20660. $as_echo "$ac_res" >&6; }
  20661. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20662. AST_RESAMPLE_FOUND=yes
  20663. else
  20664. AST_RESAMPLE_FOUND=no
  20665. fi
  20666. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20667. fi
  20668. # now check for the header.
  20669. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  20670. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  20671. # if --with-RESAMPLE=DIR has been specified, use it.
  20672. if test "x${RESAMPLE_DIR}" != "x"; then
  20673. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  20674. fi
  20675. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  20676. if test "xlibresample.h" = "x" ; then # no header, assume found
  20677. RESAMPLE_HEADER_FOUND="1"
  20678. else # check for the header
  20679. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20680. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  20681. ac_fn_c_check_header_mongrel "$LINENO" "libresample.h" "ac_cv_header_libresample_h" "$ac_includes_default"
  20682. if test "x$ac_cv_header_libresample_h" = x""yes; then :
  20683. RESAMPLE_HEADER_FOUND=1
  20684. else
  20685. RESAMPLE_HEADER_FOUND=0
  20686. fi
  20687. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20688. fi
  20689. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  20690. RESAMPLE_LIB=""
  20691. RESAMPLE_INCLUDE=""
  20692. else
  20693. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20694. RESAMPLE_LIB=""
  20695. fi
  20696. PBX_RESAMPLE=1
  20697. cat >>confdefs.h <<_ACEOF
  20698. #define HAVE_RESAMPLE 1
  20699. _ACEOF
  20700. fi
  20701. fi
  20702. fi
  20703. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  20704. if test "xminimum version of SpanDSP" != "x"; then
  20705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5
  20706. $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
  20707. else
  20708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"
  20709. #if SPANDSP_RELEASE_DATE < 20080516
  20710. #error \"spandsp 0.0.5 or greater is required\"
  20711. #endif
  20712. \" compiles using spandsp/version.h" >&5
  20713. $as_echo_n "checking if \"
  20714. #if SPANDSP_RELEASE_DATE < 20080516
  20715. #error \"spandsp 0.0.5 or greater is required\"
  20716. #endif
  20717. \" compiles using spandsp/version.h... " >&6; }
  20718. fi
  20719. saved_cppflags="${CPPFLAGS}"
  20720. if test "x${SPANDSP_DIR}" != "x"; then
  20721. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  20722. fi
  20723. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  20724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20725. /* end confdefs.h. */
  20726. #include <spandsp/version.h>
  20727. int
  20728. main ()
  20729. {
  20730. #if SPANDSP_RELEASE_DATE < 20080516
  20731. #error "spandsp 0.0.5 or greater is required"
  20732. #endif
  20733. ;
  20734. ;
  20735. return 0;
  20736. }
  20737. _ACEOF
  20738. if ac_fn_c_try_compile "$LINENO"; then :
  20739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20740. $as_echo "yes" >&6; }
  20741. PBX_SPANDSP=1
  20742. $as_echo "#define HAVE_SPANDSP 1" >>confdefs.h
  20743. else
  20744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20745. $as_echo "no" >&6; }
  20746. fi
  20747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20748. CPPFLAGS="${saved_cppflags}"
  20749. fi
  20750. if test "x${PBX_SPANDSP}" = "x1" ; then
  20751. # We found the correct version in the header, now let's make sure it links
  20752. # properly, and that libtiff is available
  20753. PBX_SPANDSP=0
  20754. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  20755. pbxlibdir=""
  20756. # if --with-SPANDSP=DIR has been specified, use it.
  20757. if test "x${SPANDSP_DIR}" != "x"; then
  20758. if test -d ${SPANDSP_DIR}/lib; then
  20759. pbxlibdir="-L${SPANDSP_DIR}/lib"
  20760. else
  20761. pbxlibdir="-L${SPANDSP_DIR}"
  20762. fi
  20763. fi
  20764. pbxfuncname="span_set_message_handler"
  20765. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20766. AST_SPANDSP_FOUND=yes
  20767. else
  20768. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20769. CFLAGS="${CFLAGS} "
  20770. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  20771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  20772. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  20773. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20774. $as_echo_n "(cached) " >&6
  20775. else
  20776. ac_check_lib_save_LIBS=$LIBS
  20777. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  20778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20779. /* end confdefs.h. */
  20780. /* Override any GCC internal prototype to avoid an error.
  20781. Use char because int might match the return type of a GCC
  20782. builtin and then its argument prototype would still apply. */
  20783. #ifdef __cplusplus
  20784. extern "C"
  20785. #endif
  20786. char ${pbxfuncname} ();
  20787. int
  20788. main ()
  20789. {
  20790. return ${pbxfuncname} ();
  20791. ;
  20792. return 0;
  20793. }
  20794. _ACEOF
  20795. if ac_fn_c_try_link "$LINENO"; then :
  20796. eval "$as_ac_Lib=yes"
  20797. else
  20798. eval "$as_ac_Lib=no"
  20799. fi
  20800. rm -f core conftest.err conftest.$ac_objext \
  20801. conftest$ac_exeext conftest.$ac_ext
  20802. LIBS=$ac_check_lib_save_LIBS
  20803. fi
  20804. eval ac_res=\$$as_ac_Lib
  20805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20806. $as_echo "$ac_res" >&6; }
  20807. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20808. AST_SPANDSP_FOUND=yes
  20809. else
  20810. AST_SPANDSP_FOUND=no
  20811. fi
  20812. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20813. fi
  20814. # now check for the header.
  20815. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  20816. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  20817. # if --with-SPANDSP=DIR has been specified, use it.
  20818. if test "x${SPANDSP_DIR}" != "x"; then
  20819. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  20820. fi
  20821. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  20822. if test "xspandsp.h" = "x" ; then # no header, assume found
  20823. SPANDSP_HEADER_FOUND="1"
  20824. else # check for the header
  20825. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20826. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  20827. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  20828. if test "x$ac_cv_header_spandsp_h" = x""yes; then :
  20829. SPANDSP_HEADER_FOUND=1
  20830. else
  20831. SPANDSP_HEADER_FOUND=0
  20832. fi
  20833. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20834. fi
  20835. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  20836. SPANDSP_LIB=""
  20837. SPANDSP_INCLUDE=""
  20838. else
  20839. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20840. SPANDSP_LIB=""
  20841. fi
  20842. PBX_SPANDSP=1
  20843. cat >>confdefs.h <<_ACEOF
  20844. #define HAVE_SPANDSP 1
  20845. _ACEOF
  20846. fi
  20847. fi
  20848. fi
  20849. fi
  20850. if test "x${PBX_SPANDSP}" = "x1" ; then
  20851. # We also need t38_terminal_init()
  20852. PBX_SPANDSP=0
  20853. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  20854. pbxlibdir=""
  20855. # if --with-SPANDSP=DIR has been specified, use it.
  20856. if test "x${SPANDSP_DIR}" != "x"; then
  20857. if test -d ${SPANDSP_DIR}/lib; then
  20858. pbxlibdir="-L${SPANDSP_DIR}/lib"
  20859. else
  20860. pbxlibdir="-L${SPANDSP_DIR}"
  20861. fi
  20862. fi
  20863. pbxfuncname="t38_terminal_init"
  20864. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20865. AST_SPANDSP_FOUND=yes
  20866. else
  20867. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20868. CFLAGS="${CFLAGS} "
  20869. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  20870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  20871. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  20872. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20873. $as_echo_n "(cached) " >&6
  20874. else
  20875. ac_check_lib_save_LIBS=$LIBS
  20876. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  20877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20878. /* end confdefs.h. */
  20879. /* Override any GCC internal prototype to avoid an error.
  20880. Use char because int might match the return type of a GCC
  20881. builtin and then its argument prototype would still apply. */
  20882. #ifdef __cplusplus
  20883. extern "C"
  20884. #endif
  20885. char ${pbxfuncname} ();
  20886. int
  20887. main ()
  20888. {
  20889. return ${pbxfuncname} ();
  20890. ;
  20891. return 0;
  20892. }
  20893. _ACEOF
  20894. if ac_fn_c_try_link "$LINENO"; then :
  20895. eval "$as_ac_Lib=yes"
  20896. else
  20897. eval "$as_ac_Lib=no"
  20898. fi
  20899. rm -f core conftest.err conftest.$ac_objext \
  20900. conftest$ac_exeext conftest.$ac_ext
  20901. LIBS=$ac_check_lib_save_LIBS
  20902. fi
  20903. eval ac_res=\$$as_ac_Lib
  20904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20905. $as_echo "$ac_res" >&6; }
  20906. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20907. AST_SPANDSP_FOUND=yes
  20908. else
  20909. AST_SPANDSP_FOUND=no
  20910. fi
  20911. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20912. fi
  20913. # now check for the header.
  20914. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  20915. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  20916. # if --with-SPANDSP=DIR has been specified, use it.
  20917. if test "x${SPANDSP_DIR}" != "x"; then
  20918. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  20919. fi
  20920. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  20921. if test "xspandsp.h" = "x" ; then # no header, assume found
  20922. SPANDSP_HEADER_FOUND="1"
  20923. else # check for the header
  20924. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20925. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  20926. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  20927. if test "x$ac_cv_header_spandsp_h" = x""yes; then :
  20928. SPANDSP_HEADER_FOUND=1
  20929. else
  20930. SPANDSP_HEADER_FOUND=0
  20931. fi
  20932. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20933. fi
  20934. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  20935. SPANDSP_LIB=""
  20936. SPANDSP_INCLUDE=""
  20937. else
  20938. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20939. SPANDSP_LIB=""
  20940. fi
  20941. PBX_SPANDSP=1
  20942. cat >>confdefs.h <<_ACEOF
  20943. #define HAVE_SPANDSP 1
  20944. _ACEOF
  20945. fi
  20946. fi
  20947. fi
  20948. fi
  20949. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  20950. pbxlibdir=""
  20951. # if --with-SS7=DIR has been specified, use it.
  20952. if test "x${SS7_DIR}" != "x"; then
  20953. if test -d ${SS7_DIR}/lib; then
  20954. pbxlibdir="-L${SS7_DIR}/lib"
  20955. else
  20956. pbxlibdir="-L${SS7_DIR}"
  20957. fi
  20958. fi
  20959. pbxfuncname="ss7_pollflags"
  20960. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20961. AST_SS7_FOUND=yes
  20962. else
  20963. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20964. CFLAGS="${CFLAGS} "
  20965. as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
  20966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lss7" >&5
  20967. $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
  20968. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  20969. $as_echo_n "(cached) " >&6
  20970. else
  20971. ac_check_lib_save_LIBS=$LIBS
  20972. LIBS="-lss7 ${pbxlibdir} $LIBS"
  20973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20974. /* end confdefs.h. */
  20975. /* Override any GCC internal prototype to avoid an error.
  20976. Use char because int might match the return type of a GCC
  20977. builtin and then its argument prototype would still apply. */
  20978. #ifdef __cplusplus
  20979. extern "C"
  20980. #endif
  20981. char ${pbxfuncname} ();
  20982. int
  20983. main ()
  20984. {
  20985. return ${pbxfuncname} ();
  20986. ;
  20987. return 0;
  20988. }
  20989. _ACEOF
  20990. if ac_fn_c_try_link "$LINENO"; then :
  20991. eval "$as_ac_Lib=yes"
  20992. else
  20993. eval "$as_ac_Lib=no"
  20994. fi
  20995. rm -f core conftest.err conftest.$ac_objext \
  20996. conftest$ac_exeext conftest.$ac_ext
  20997. LIBS=$ac_check_lib_save_LIBS
  20998. fi
  20999. eval ac_res=\$$as_ac_Lib
  21000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21001. $as_echo "$ac_res" >&6; }
  21002. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21003. AST_SS7_FOUND=yes
  21004. else
  21005. AST_SS7_FOUND=no
  21006. fi
  21007. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21008. fi
  21009. # now check for the header.
  21010. if test "${AST_SS7_FOUND}" = "yes"; then
  21011. SS7_LIB="${pbxlibdir} -lss7 "
  21012. # if --with-SS7=DIR has been specified, use it.
  21013. if test "x${SS7_DIR}" != "x"; then
  21014. SS7_INCLUDE="-I${SS7_DIR}/include"
  21015. fi
  21016. SS7_INCLUDE="${SS7_INCLUDE} "
  21017. if test "xlibss7.h" = "x" ; then # no header, assume found
  21018. SS7_HEADER_FOUND="1"
  21019. else # check for the header
  21020. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21021. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  21022. ac_fn_c_check_header_mongrel "$LINENO" "libss7.h" "ac_cv_header_libss7_h" "$ac_includes_default"
  21023. if test "x$ac_cv_header_libss7_h" = x""yes; then :
  21024. SS7_HEADER_FOUND=1
  21025. else
  21026. SS7_HEADER_FOUND=0
  21027. fi
  21028. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21029. fi
  21030. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  21031. SS7_LIB=""
  21032. SS7_INCLUDE=""
  21033. else
  21034. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21035. SS7_LIB=""
  21036. fi
  21037. PBX_SS7=1
  21038. cat >>confdefs.h <<_ACEOF
  21039. #define HAVE_SS7 1
  21040. _ACEOF
  21041. fi
  21042. fi
  21043. fi
  21044. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  21045. pbxlibdir=""
  21046. # if --with-OPENR2=DIR has been specified, use it.
  21047. if test "x${OPENR2_DIR}" != "x"; then
  21048. if test -d ${OPENR2_DIR}/lib; then
  21049. pbxlibdir="-L${OPENR2_DIR}/lib"
  21050. else
  21051. pbxlibdir="-L${OPENR2_DIR}"
  21052. fi
  21053. fi
  21054. pbxfuncname="openr2_chan_new"
  21055. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21056. AST_OPENR2_FOUND=yes
  21057. else
  21058. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21059. CFLAGS="${CFLAGS} "
  21060. as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
  21061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopenr2" >&5
  21062. $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
  21063. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  21064. $as_echo_n "(cached) " >&6
  21065. else
  21066. ac_check_lib_save_LIBS=$LIBS
  21067. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  21068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21069. /* end confdefs.h. */
  21070. /* Override any GCC internal prototype to avoid an error.
  21071. Use char because int might match the return type of a GCC
  21072. builtin and then its argument prototype would still apply. */
  21073. #ifdef __cplusplus
  21074. extern "C"
  21075. #endif
  21076. char ${pbxfuncname} ();
  21077. int
  21078. main ()
  21079. {
  21080. return ${pbxfuncname} ();
  21081. ;
  21082. return 0;
  21083. }
  21084. _ACEOF
  21085. if ac_fn_c_try_link "$LINENO"; then :
  21086. eval "$as_ac_Lib=yes"
  21087. else
  21088. eval "$as_ac_Lib=no"
  21089. fi
  21090. rm -f core conftest.err conftest.$ac_objext \
  21091. conftest$ac_exeext conftest.$ac_ext
  21092. LIBS=$ac_check_lib_save_LIBS
  21093. fi
  21094. eval ac_res=\$$as_ac_Lib
  21095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21096. $as_echo "$ac_res" >&6; }
  21097. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21098. AST_OPENR2_FOUND=yes
  21099. else
  21100. AST_OPENR2_FOUND=no
  21101. fi
  21102. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21103. fi
  21104. # now check for the header.
  21105. if test "${AST_OPENR2_FOUND}" = "yes"; then
  21106. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  21107. # if --with-OPENR2=DIR has been specified, use it.
  21108. if test "x${OPENR2_DIR}" != "x"; then
  21109. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  21110. fi
  21111. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  21112. if test "xopenr2.h" = "x" ; then # no header, assume found
  21113. OPENR2_HEADER_FOUND="1"
  21114. else # check for the header
  21115. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21116. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  21117. ac_fn_c_check_header_mongrel "$LINENO" "openr2.h" "ac_cv_header_openr2_h" "$ac_includes_default"
  21118. if test "x$ac_cv_header_openr2_h" = x""yes; then :
  21119. OPENR2_HEADER_FOUND=1
  21120. else
  21121. OPENR2_HEADER_FOUND=0
  21122. fi
  21123. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21124. fi
  21125. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  21126. OPENR2_LIB=""
  21127. OPENR2_INCLUDE=""
  21128. else
  21129. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21130. OPENR2_LIB=""
  21131. fi
  21132. PBX_OPENR2=1
  21133. cat >>confdefs.h <<_ACEOF
  21134. #define HAVE_OPENR2 1
  21135. _ACEOF
  21136. fi
  21137. fi
  21138. fi
  21139. if test "${USE_PWLIB}" != "no"; then
  21140. if test -n "${PWLIB_DIR}"; then
  21141. PWLIBDIR="${PWLIB_DIR}"
  21142. fi
  21143. PWLIB_INCDIR=
  21144. PWLIB_LIBDIR=
  21145. ac_ext=cpp
  21146. ac_cpp='$CXXCPP $CPPFLAGS'
  21147. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21148. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21149. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21150. if test "${PWLIBDIR:-unset}" != "unset" ; then
  21151. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  21152. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  21153. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21154. HAS_PWLIB=1
  21155. fi
  21156. fi
  21157. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  21158. if test "${OPENH323DIR:-unset}" != "unset"; then
  21159. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  21160. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/../pwlib/version.h" "$as_ac_Header" "$ac_includes_default"
  21161. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21162. HAS_PWLIB=1
  21163. fi
  21164. fi
  21165. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  21166. PWLIBDIR="${OPENH323DIR}/../pwlib"
  21167. else
  21168. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  21169. ac_fn_cxx_check_header_mongrel "$LINENO" "${HOME}/pwlib/include/ptlib.h" "$as_ac_Header" "$ac_includes_default"
  21170. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21171. HAS_PWLIB=1
  21172. fi
  21173. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  21174. PWLIBDIR="${HOME}/pwlib"
  21175. else
  21176. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/local/include/ptlib.h" "ac_cv_header__usr_local_include_ptlib_h" "$ac_includes_default"
  21177. if test "x$ac_cv_header__usr_local_include_ptlib_h" = x""yes; then :
  21178. HAS_PWLIB=1
  21179. fi
  21180. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  21181. # Extract the first word of "ptlib-config", so it can be a program name with args.
  21182. set dummy ptlib-config; ac_word=$2
  21183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21184. $as_echo_n "checking for $ac_word... " >&6; }
  21185. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then :
  21186. $as_echo_n "(cached) " >&6
  21187. else
  21188. case $PTLIB_CONFIG in
  21189. [\\/]* | ?:[\\/]*)
  21190. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  21191. ;;
  21192. *)
  21193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21194. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  21195. do
  21196. IFS=$as_save_IFS
  21197. test -z "$as_dir" && as_dir=.
  21198. for ac_exec_ext in '' $ac_executable_extensions; do
  21199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21200. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21202. break 2
  21203. fi
  21204. done
  21205. done
  21206. IFS=$as_save_IFS
  21207. ;;
  21208. esac
  21209. fi
  21210. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  21211. if test -n "$PTLIB_CONFIG"; then
  21212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  21213. $as_echo "$PTLIB_CONFIG" >&6; }
  21214. else
  21215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21216. $as_echo "no" >&6; }
  21217. fi
  21218. PWLIB_INCDIR="/usr/local/include"
  21219. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  21220. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  21221. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  21222. fi
  21223. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  21224. if test "x$LIB64" != "x"; then
  21225. PWLIB_LIBDIR="/usr/local/lib64"
  21226. else
  21227. PWLIB_LIBDIR="/usr/local/lib"
  21228. fi
  21229. fi
  21230. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  21231. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  21232. else
  21233. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/include/ptlib.h" "ac_cv_header__usr_include_ptlib_h" "$ac_includes_default"
  21234. if test "x$ac_cv_header__usr_include_ptlib_h" = x""yes; then :
  21235. HAS_PWLIB=1
  21236. fi
  21237. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  21238. # Extract the first word of "ptlib-config", so it can be a program name with args.
  21239. set dummy ptlib-config; ac_word=$2
  21240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21241. $as_echo_n "checking for $ac_word... " >&6; }
  21242. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then :
  21243. $as_echo_n "(cached) " >&6
  21244. else
  21245. case $PTLIB_CONFIG in
  21246. [\\/]* | ?:[\\/]*)
  21247. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  21248. ;;
  21249. *)
  21250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21251. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  21252. do
  21253. IFS=$as_save_IFS
  21254. test -z "$as_dir" && as_dir=.
  21255. for ac_exec_ext in '' $ac_executable_extensions; do
  21256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21257. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21259. break 2
  21260. fi
  21261. done
  21262. done
  21263. IFS=$as_save_IFS
  21264. ;;
  21265. esac
  21266. fi
  21267. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  21268. if test -n "$PTLIB_CONFIG"; then
  21269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  21270. $as_echo "$PTLIB_CONFIG" >&6; }
  21271. else
  21272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21273. $as_echo "no" >&6; }
  21274. fi
  21275. PWLIB_INCDIR="/usr/include"
  21276. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  21277. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  21278. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  21279. fi
  21280. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  21281. if test "x$LIB64" != "x"; then
  21282. PWLIB_LIBDIR="/usr/lib64"
  21283. else
  21284. PWLIB_LIBDIR="/usr/lib"
  21285. fi
  21286. fi
  21287. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  21288. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  21289. fi
  21290. fi
  21291. fi
  21292. fi
  21293. fi
  21294. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  21295. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  21296. # exit
  21297. #fi
  21298. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  21299. if test "${PWLIBDIR:-unset}" = "unset" ; then
  21300. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  21301. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  21302. else
  21303. echo "Cannot find ptlib-config - please install and try again"
  21304. exit
  21305. fi
  21306. fi
  21307. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  21308. PWLIBDIR="/usr/share/pwlib"
  21309. PWLIB_INCDIR="/usr/include"
  21310. if test "x$LIB64" != "x"; then
  21311. PWLIB_LIBDIR="/usr/lib64"
  21312. else
  21313. PWLIB_LIBDIR="/usr/lib"
  21314. fi
  21315. fi
  21316. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  21317. PWLIBDIR="/usr/local/share/pwlib"
  21318. PWLIB_INCDIR="/usr/local/include"
  21319. if test "x$LIB64" != "x"; then
  21320. PWLIB_LIBDIR="/usr/local/lib64"
  21321. else
  21322. PWLIB_LIBDIR="/usr/local/lib"
  21323. fi
  21324. fi
  21325. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  21326. PWLIB_INCDIR="${PWLIBDIR}/include"
  21327. fi
  21328. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  21329. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  21330. fi
  21331. fi
  21332. ac_ext=c
  21333. ac_cpp='$CPP $CPPFLAGS'
  21334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21337. if test "xP[WT]LIB_VERSION" != "x"; then
  21338. VNAME="P[WT]LIB_VERSION"
  21339. else
  21340. VNAME="PWLIB_VERSION"
  21341. fi
  21342. if test "${HAS_PWLIB:-unset}" != "unset"; then
  21343. PWLIB_VERSION=`grep "$VNAME" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  21344. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  21345. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  21346. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  21347. PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
  21348. PWLIB_REQ=$((1*10000+9*100+2))
  21349. if test "x" = "x"; then
  21350. PWLIB_MAX=9999999
  21351. else
  21352. PWLIB_MAX=$((*10000+*100+))
  21353. fi
  21354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  21355. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  21356. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  21357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21358. $as_echo "no" >&6; }
  21359. unset HAS_PWLIB
  21360. else
  21361. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  21362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21363. $as_echo "no" >&6; }
  21364. unset HAS_PWLIB
  21365. else
  21366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21367. $as_echo "yes" >&6; }
  21368. fi
  21369. fi
  21370. fi
  21371. if test "${HAS_PWLIB:-unset}" != "unset"; then
  21372. PWLIB_OSTYPE=
  21373. case "$host_os" in
  21374. linux*) PWLIB_OSTYPE=linux ;
  21375. ;;
  21376. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  21377. ;;
  21378. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  21379. ENDLDLIBS="-lossaudio" ;
  21380. ;;
  21381. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  21382. ENDLDLIBS="-lossaudio" ;
  21383. ;;
  21384. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  21385. ;;
  21386. darwin* ) PWLIB_OSTYPE=Darwin ;
  21387. ;;
  21388. beos*) PWLIB_OSTYPE=beos ;
  21389. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  21390. ;;
  21391. cygwin*) PWLIB_OSTYPE=cygwin ;
  21392. ;;
  21393. mingw*) PWLIB_OSTYPE=mingw ;
  21394. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  21395. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  21396. ;;
  21397. * ) PWLIB_OSTYPE="$host_os" ;
  21398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  21399. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  21400. ;;
  21401. esac
  21402. PWLIB_MACHTYPE=
  21403. case "$host_cpu" in
  21404. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  21405. ;;
  21406. x86_64) PWLIB_MACHTYPE=x86_64 ;
  21407. P_64BIT=1 ;
  21408. LIB64=1 ;
  21409. ;;
  21410. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  21411. P_64BIT=1 ;
  21412. ;;
  21413. sparc ) PWLIB_MACHTYPE=sparc ;
  21414. ;;
  21415. powerpc ) PWLIB_MACHTYPE=ppc ;
  21416. ;;
  21417. ppc ) PWLIB_MACHTYPE=ppc ;
  21418. ;;
  21419. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  21420. P_64BIT=1 ;
  21421. LIB64=1 ;
  21422. ;;
  21423. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  21424. P_64BIT=1 ;
  21425. LIB64=1 ;
  21426. ;;
  21427. ia64) PWLIB_MACHTYPE=ia64 ;
  21428. P_64BIT=1 ;
  21429. ;;
  21430. s390x) PWLIB_MACHTYPE=s390x ;
  21431. P_64BIT=1 ;
  21432. LIB64=1 ;
  21433. ;;
  21434. s390) PWLIB_MACHTYPE=s390 ;
  21435. ;;
  21436. * ) PWLIB_MACHTYPE="$host_cpu";
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  21438. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  21439. esac
  21440. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  21441. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  21442. if test "${HAS_PWLIB:-unset}" != "unset"; then
  21443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PWLib installation validity" >&5
  21444. $as_echo_n "checking PWLib installation validity... " >&6; }
  21445. saved_cppflags="${CPPFLAGS}"
  21446. saved_libs="${LIBS}"
  21447. if test "${PWLIB_LIB:-unset}" != "unset"; then
  21448. LIBS="${LIBS} ${PWLIB_LIB} "
  21449. else
  21450. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  21451. fi
  21452. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  21453. ac_ext=cpp
  21454. ac_cpp='$CXXCPP $CPPFLAGS'
  21455. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21456. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21457. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21459. /* end confdefs.h. */
  21460. #include "ptlib.h"
  21461. int
  21462. main ()
  21463. {
  21464. int q = (int) PTime::IsDaylightSavings();
  21465. ;
  21466. return 0;
  21467. }
  21468. _ACEOF
  21469. if ac_fn_cxx_try_link "$LINENO"; then :
  21470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21471. $as_echo "yes" >&6; }
  21472. ac_cv_lib_PWLIB="yes"
  21473. else
  21474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21475. $as_echo "no" >&6; }
  21476. ac_cv_lib_PWLIB="no"
  21477. fi
  21478. rm -f core conftest.err conftest.$ac_objext \
  21479. conftest$ac_exeext conftest.$ac_ext
  21480. ac_ext=c
  21481. ac_cpp='$CPP $CPPFLAGS'
  21482. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21483. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21484. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21485. LIBS="${saved_libs}"
  21486. CPPFLAGS="${saved_cppflags}"
  21487. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  21488. if test "${PWLIB_LIB:-undef}" = "undef"; then
  21489. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  21490. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  21491. else
  21492. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  21493. fi
  21494. fi
  21495. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  21496. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  21497. fi
  21498. PBX_PWLIB=1
  21499. $as_echo "#define HAVE_PWLIB 1" >>confdefs.h
  21500. fi
  21501. fi
  21502. fi
  21503. fi
  21504. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  21505. if test -n "${OPENH323_DIR}"; then
  21506. OPENH323DIR="${OPENH323_DIR}"
  21507. fi
  21508. OPENH323_INCDIR=
  21509. OPENH323_LIBDIR=
  21510. ac_ext=cpp
  21511. ac_cpp='$CXXCPP $CPPFLAGS'
  21512. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21513. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21514. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21515. if test "${OPENH323DIR:-unset}" != "unset" ; then
  21516. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  21517. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  21518. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21519. HAS_OPENH323=1
  21520. fi
  21521. fi
  21522. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  21523. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  21524. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/../openh323/version.h" "$as_ac_Header" "$ac_includes_default"
  21525. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21526. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  21527. fi
  21528. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  21529. OPENH323DIR="${PWLIBDIR}/../openh323"
  21530. saved_cppflags="${CPPFLAGS}"
  21531. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  21532. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  21533. ac_fn_cxx_check_header_compile "$LINENO" "${OPENH323DIR}/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  21534. "
  21535. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21536. else
  21537. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  21538. fi
  21539. CPPFLAGS="${saved_cppflags}"
  21540. else
  21541. saved_cppflags="${CPPFLAGS}"
  21542. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  21543. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  21544. ac_fn_cxx_check_header_compile "$LINENO" "${HOME}/openh323/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  21545. "
  21546. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21547. HAS_OPENH323=1
  21548. fi
  21549. CPPFLAGS="${saved_cppflags}"
  21550. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  21551. OPENH323DIR="${HOME}/openh323"
  21552. else
  21553. saved_cppflags="${CPPFLAGS}"
  21554. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  21555. 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>
  21556. "
  21557. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = x""yes; then :
  21558. HAS_OPENH323=1
  21559. fi
  21560. CPPFLAGS="${saved_cppflags}"
  21561. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  21562. OPENH323DIR="/usr/local/share/openh323"
  21563. OPENH323_INCDIR="/usr/local/include/openh323"
  21564. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  21565. OPENH323_LIBDIR="/usr/local/lib64"
  21566. else
  21567. OPENH323_LIBDIR="/usr/local/lib"
  21568. fi
  21569. else
  21570. saved_cppflags="${CPPFLAGS}"
  21571. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  21572. ac_fn_cxx_check_header_compile "$LINENO" "/usr/include/openh323/h323.h" "ac_cv_header__usr_include_openh323_h323_h" "#include <ptlib.h>
  21573. "
  21574. if test "x$ac_cv_header__usr_include_openh323_h323_h" = x""yes; then :
  21575. HAS_OPENH323=1
  21576. fi
  21577. CPPFLAGS="${saved_cppflags}"
  21578. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  21579. OPENH323DIR="/usr/share/openh323"
  21580. OPENH323_INCDIR="/usr/include/openh323"
  21581. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  21582. OPENH323_LIBDIR="/usr/lib64"
  21583. else
  21584. OPENH323_LIBDIR="/usr/lib"
  21585. fi
  21586. fi
  21587. fi
  21588. fi
  21589. fi
  21590. fi
  21591. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  21592. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  21593. OPENH323_INCDIR="${OPENH323DIR}/include"
  21594. fi
  21595. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  21596. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  21597. fi
  21598. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  21599. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  21600. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  21601. fi
  21602. ac_ext=c
  21603. ac_cpp='$CPP $CPPFLAGS'
  21604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21607. if test "x" != "x"; then
  21608. VNAME=""
  21609. else
  21610. VNAME="OPENH323_VERSION"
  21611. fi
  21612. if test "${HAS_OPENH323:-unset}" != "unset"; then
  21613. OPENH323_VERSION=`grep "$VNAME" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  21614. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  21615. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  21616. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  21617. OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
  21618. OPENH323_REQ=$((1*10000+17*100+3))
  21619. if test "x0" = "x"; then
  21620. OPENH323_MAX=9999999
  21621. else
  21622. OPENH323_MAX=$((1*10000+19*100+0))
  21623. fi
  21624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  21625. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  21626. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  21627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21628. $as_echo "no" >&6; }
  21629. unset HAS_OPENH323
  21630. else
  21631. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  21632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21633. $as_echo "no" >&6; }
  21634. unset HAS_OPENH323
  21635. else
  21636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21637. $as_echo "yes" >&6; }
  21638. fi
  21639. fi
  21640. fi
  21641. if test "${HAS_OPENH323:-unset}" != "unset"; then
  21642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 build option" >&5
  21643. $as_echo_n "checking OpenH323 build option... " >&6; }
  21644. OPENH323_SUFFIX=
  21645. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  21646. for pfx in $prefixes; do
  21647. #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  21648. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  21649. if test -z "$files"; then
  21650. # check the default location
  21651. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  21652. fi
  21653. libfile=
  21654. if test -n "$files"; then
  21655. for f in $files; do
  21656. if test -f $f -a ! -L $f; then
  21657. libfile=`basename $f`
  21658. break;
  21659. fi
  21660. done
  21661. fi
  21662. if test -n "$libfile"; then
  21663. OPENH323_PREFIX=$pfx
  21664. break;
  21665. fi
  21666. done
  21667. if test "${libfile:-unset}" != "unset"; then
  21668. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  21669. fi
  21670. case "${OPENH323_SUFFIX}" in
  21671. n)
  21672. OPENH323_BUILD="notrace";;
  21673. r)
  21674. OPENH323_BUILD="opt";;
  21675. d)
  21676. OPENH323_BUILD="debug";;
  21677. *)
  21678. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  21679. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  21680. if test "x$notrace" = "x"; then
  21681. notrace="0"
  21682. fi
  21683. if test "$notrace" -ne 0; then
  21684. OPENH323_BUILD="notrace"
  21685. else
  21686. OPENH323_BUILD="opt"
  21687. fi
  21688. OPENH323_LIB="-l${OPENH323_PREFIX}"
  21689. else
  21690. OPENH323_BUILD="notrace"
  21691. fi
  21692. ;;
  21693. esac
  21694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENH323_BUILD}" >&5
  21695. $as_echo "${OPENH323_BUILD}" >&6; }
  21696. fi
  21697. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  21698. if test "${HAS_OPENH323:-unset}" != "unset"; then
  21699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 installation validity" >&5
  21700. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  21701. saved_cppflags="${CPPFLAGS}"
  21702. saved_libs="${LIBS}"
  21703. if test "${OPENH323_LIB:-unset}" != "unset"; then
  21704. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  21705. else
  21706. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  21707. fi
  21708. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  21709. ac_ext=cpp
  21710. ac_cpp='$CXXCPP $CPPFLAGS'
  21711. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21712. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21713. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21715. /* end confdefs.h. */
  21716. #include "ptlib.h"
  21717. #include "h323.h"
  21718. #include "h323ep.h"
  21719. int
  21720. main ()
  21721. {
  21722. H323EndPoint ep = H323EndPoint();
  21723. ;
  21724. return 0;
  21725. }
  21726. _ACEOF
  21727. if ac_fn_cxx_try_link "$LINENO"; then :
  21728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21729. $as_echo "yes" >&6; }
  21730. ac_cv_lib_OPENH323="yes"
  21731. else
  21732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21733. $as_echo "no" >&6; }
  21734. ac_cv_lib_OPENH323="no"
  21735. fi
  21736. rm -f core conftest.err conftest.$ac_objext \
  21737. conftest$ac_exeext conftest.$ac_ext
  21738. ac_ext=c
  21739. ac_cpp='$CPP $CPPFLAGS'
  21740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21743. LIBS="${saved_libs}"
  21744. CPPFLAGS="${saved_cppflags}"
  21745. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  21746. if test "${OPENH323_LIB:-undef}" = "undef"; then
  21747. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  21748. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  21749. else
  21750. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  21751. fi
  21752. fi
  21753. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  21754. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  21755. fi
  21756. PBX_OPENH323=1
  21757. $as_echo "#define HAVE_OPENH323 1" >>confdefs.h
  21758. fi
  21759. fi
  21760. fi
  21761. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  21762. pbxlibdir=""
  21763. # if --with-LUA=DIR has been specified, use it.
  21764. if test "x${LUA_DIR}" != "x"; then
  21765. if test -d ${LUA_DIR}/lib; then
  21766. pbxlibdir="-L${LUA_DIR}/lib"
  21767. else
  21768. pbxlibdir="-L${LUA_DIR}"
  21769. fi
  21770. fi
  21771. pbxfuncname="luaL_newstate"
  21772. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21773. AST_LUA_FOUND=yes
  21774. else
  21775. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21776. CFLAGS="${CFLAGS} "
  21777. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
  21778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.1" >&5
  21779. $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
  21780. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  21781. $as_echo_n "(cached) " >&6
  21782. else
  21783. ac_check_lib_save_LIBS=$LIBS
  21784. LIBS="-llua5.1 ${pbxlibdir} -lm $LIBS"
  21785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21786. /* end confdefs.h. */
  21787. /* Override any GCC internal prototype to avoid an error.
  21788. Use char because int might match the return type of a GCC
  21789. builtin and then its argument prototype would still apply. */
  21790. #ifdef __cplusplus
  21791. extern "C"
  21792. #endif
  21793. char ${pbxfuncname} ();
  21794. int
  21795. main ()
  21796. {
  21797. return ${pbxfuncname} ();
  21798. ;
  21799. return 0;
  21800. }
  21801. _ACEOF
  21802. if ac_fn_c_try_link "$LINENO"; then :
  21803. eval "$as_ac_Lib=yes"
  21804. else
  21805. eval "$as_ac_Lib=no"
  21806. fi
  21807. rm -f core conftest.err conftest.$ac_objext \
  21808. conftest$ac_exeext conftest.$ac_ext
  21809. LIBS=$ac_check_lib_save_LIBS
  21810. fi
  21811. eval ac_res=\$$as_ac_Lib
  21812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21813. $as_echo "$ac_res" >&6; }
  21814. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21815. AST_LUA_FOUND=yes
  21816. else
  21817. AST_LUA_FOUND=no
  21818. fi
  21819. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21820. fi
  21821. # now check for the header.
  21822. if test "${AST_LUA_FOUND}" = "yes"; then
  21823. LUA_LIB="${pbxlibdir} -llua5.1 -lm"
  21824. # if --with-LUA=DIR has been specified, use it.
  21825. if test "x${LUA_DIR}" != "x"; then
  21826. LUA_INCLUDE="-I${LUA_DIR}/include"
  21827. fi
  21828. LUA_INCLUDE="${LUA_INCLUDE} "
  21829. if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
  21830. LUA_HEADER_FOUND="1"
  21831. else # check for the header
  21832. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21833. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  21834. ac_fn_c_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
  21835. if test "x$ac_cv_header_lua5_1_lua_h" = x""yes; then :
  21836. LUA_HEADER_FOUND=1
  21837. else
  21838. LUA_HEADER_FOUND=0
  21839. fi
  21840. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21841. fi
  21842. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  21843. LUA_LIB=""
  21844. LUA_INCLUDE=""
  21845. else
  21846. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21847. LUA_LIB=""
  21848. fi
  21849. PBX_LUA=1
  21850. cat >>confdefs.h <<_ACEOF
  21851. #define HAVE_LUA 1
  21852. _ACEOF
  21853. fi
  21854. fi
  21855. fi
  21856. if test "x${PBX_LUA}" = "x1" ; then
  21857. if test x"${LUA_DIR}" = x; then
  21858. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
  21859. else
  21860. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
  21861. fi
  21862. fi
  21863. # Some distributions (like SuSE) remove the 5.1 suffix.
  21864. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  21865. pbxlibdir=""
  21866. # if --with-LUA=DIR has been specified, use it.
  21867. if test "x${LUA_DIR}" != "x"; then
  21868. if test -d ${LUA_DIR}/lib; then
  21869. pbxlibdir="-L${LUA_DIR}/lib"
  21870. else
  21871. pbxlibdir="-L${LUA_DIR}"
  21872. fi
  21873. fi
  21874. pbxfuncname="luaL_register"
  21875. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21876. AST_LUA_FOUND=yes
  21877. else
  21878. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21879. CFLAGS="${CFLAGS} "
  21880. as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
  21881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua" >&5
  21882. $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
  21883. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  21884. $as_echo_n "(cached) " >&6
  21885. else
  21886. ac_check_lib_save_LIBS=$LIBS
  21887. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  21888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21889. /* end confdefs.h. */
  21890. /* Override any GCC internal prototype to avoid an error.
  21891. Use char because int might match the return type of a GCC
  21892. builtin and then its argument prototype would still apply. */
  21893. #ifdef __cplusplus
  21894. extern "C"
  21895. #endif
  21896. char ${pbxfuncname} ();
  21897. int
  21898. main ()
  21899. {
  21900. return ${pbxfuncname} ();
  21901. ;
  21902. return 0;
  21903. }
  21904. _ACEOF
  21905. if ac_fn_c_try_link "$LINENO"; then :
  21906. eval "$as_ac_Lib=yes"
  21907. else
  21908. eval "$as_ac_Lib=no"
  21909. fi
  21910. rm -f core conftest.err conftest.$ac_objext \
  21911. conftest$ac_exeext conftest.$ac_ext
  21912. LIBS=$ac_check_lib_save_LIBS
  21913. fi
  21914. eval ac_res=\$$as_ac_Lib
  21915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21916. $as_echo "$ac_res" >&6; }
  21917. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21918. AST_LUA_FOUND=yes
  21919. else
  21920. AST_LUA_FOUND=no
  21921. fi
  21922. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21923. fi
  21924. # now check for the header.
  21925. if test "${AST_LUA_FOUND}" = "yes"; then
  21926. LUA_LIB="${pbxlibdir} -llua -lm"
  21927. # if --with-LUA=DIR has been specified, use it.
  21928. if test "x${LUA_DIR}" != "x"; then
  21929. LUA_INCLUDE="-I${LUA_DIR}/include"
  21930. fi
  21931. LUA_INCLUDE="${LUA_INCLUDE} "
  21932. if test "xlua.h" = "x" ; then # no header, assume found
  21933. LUA_HEADER_FOUND="1"
  21934. else # check for the header
  21935. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21936. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  21937. ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  21938. if test "x$ac_cv_header_lua_h" = x""yes; then :
  21939. LUA_HEADER_FOUND=1
  21940. else
  21941. LUA_HEADER_FOUND=0
  21942. fi
  21943. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21944. fi
  21945. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  21946. LUA_LIB=""
  21947. LUA_INCLUDE=""
  21948. else
  21949. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21950. LUA_LIB=""
  21951. fi
  21952. PBX_LUA=1
  21953. cat >>confdefs.h <<_ACEOF
  21954. #define HAVE_LUA 1
  21955. _ACEOF
  21956. fi
  21957. fi
  21958. fi
  21959. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  21960. pbxlibdir=""
  21961. # if --with-RADIUS=DIR has been specified, use it.
  21962. if test "x${RADIUS_DIR}" != "x"; then
  21963. if test -d ${RADIUS_DIR}/lib; then
  21964. pbxlibdir="-L${RADIUS_DIR}/lib"
  21965. else
  21966. pbxlibdir="-L${RADIUS_DIR}"
  21967. fi
  21968. fi
  21969. pbxfuncname="rc_read_config"
  21970. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21971. AST_RADIUS_FOUND=yes
  21972. else
  21973. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21974. CFLAGS="${CFLAGS} "
  21975. as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
  21976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
  21977. $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
  21978. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  21979. $as_echo_n "(cached) " >&6
  21980. else
  21981. ac_check_lib_save_LIBS=$LIBS
  21982. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  21983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21984. /* end confdefs.h. */
  21985. /* Override any GCC internal prototype to avoid an error.
  21986. Use char because int might match the return type of a GCC
  21987. builtin and then its argument prototype would still apply. */
  21988. #ifdef __cplusplus
  21989. extern "C"
  21990. #endif
  21991. char ${pbxfuncname} ();
  21992. int
  21993. main ()
  21994. {
  21995. return ${pbxfuncname} ();
  21996. ;
  21997. return 0;
  21998. }
  21999. _ACEOF
  22000. if ac_fn_c_try_link "$LINENO"; then :
  22001. eval "$as_ac_Lib=yes"
  22002. else
  22003. eval "$as_ac_Lib=no"
  22004. fi
  22005. rm -f core conftest.err conftest.$ac_objext \
  22006. conftest$ac_exeext conftest.$ac_ext
  22007. LIBS=$ac_check_lib_save_LIBS
  22008. fi
  22009. eval ac_res=\$$as_ac_Lib
  22010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22011. $as_echo "$ac_res" >&6; }
  22012. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22013. AST_RADIUS_FOUND=yes
  22014. else
  22015. AST_RADIUS_FOUND=no
  22016. fi
  22017. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22018. fi
  22019. # now check for the header.
  22020. if test "${AST_RADIUS_FOUND}" = "yes"; then
  22021. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  22022. # if --with-RADIUS=DIR has been specified, use it.
  22023. if test "x${RADIUS_DIR}" != "x"; then
  22024. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  22025. fi
  22026. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  22027. if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
  22028. RADIUS_HEADER_FOUND="1"
  22029. else # check for the header
  22030. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22031. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  22032. ac_fn_c_check_header_mongrel "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
  22033. if test "x$ac_cv_header_radiusclient_ng_h" = x""yes; then :
  22034. RADIUS_HEADER_FOUND=1
  22035. else
  22036. RADIUS_HEADER_FOUND=0
  22037. fi
  22038. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22039. fi
  22040. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  22041. RADIUS_LIB=""
  22042. RADIUS_INCLUDE=""
  22043. else
  22044. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22045. RADIUS_LIB=""
  22046. fi
  22047. PBX_RADIUS=1
  22048. cat >>confdefs.h <<_ACEOF
  22049. #define HAVE_RADIUS 1
  22050. _ACEOF
  22051. fi
  22052. fi
  22053. fi
  22054. # This is a bit complex... in reality, Asterisk's AIS support is dependent on finding
  22055. # *any* implementation of AIS, not just OpenAIS. However, the configure script needs
  22056. # to know the specifics of each possible implementation, and then represent the one
  22057. # that was found as 'AIS'.
  22058. PBX_AIS=0
  22059. # OpenAIS installs its libraries into /usr/lib/openais by default, so check there
  22060. if test "x${PBX_OPENAIS}" != "x1" -a "${USE_OPENAIS}" != "no"; then
  22061. pbxlibdir=""
  22062. # if --with-OPENAIS=DIR has been specified, use it.
  22063. if test "x${OPENAIS_DIR}" != "x"; then
  22064. if test -d ${OPENAIS_DIR}/lib; then
  22065. pbxlibdir="-L${OPENAIS_DIR}/lib"
  22066. else
  22067. pbxlibdir="-L${OPENAIS_DIR}"
  22068. fi
  22069. fi
  22070. pbxfuncname="saClmInitialize"
  22071. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22072. AST_OPENAIS_FOUND=yes
  22073. else
  22074. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22075. CFLAGS="${CFLAGS} "
  22076. as_ac_Lib=`$as_echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
  22077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lSaClm" >&5
  22078. $as_echo_n "checking for ${pbxfuncname} in -lSaClm... " >&6; }
  22079. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22080. $as_echo_n "(cached) " >&6
  22081. else
  22082. ac_check_lib_save_LIBS=$LIBS
  22083. LIBS="-lSaClm ${pbxlibdir} -L/usr/lib/openais -L/usr/lib64/openais $LIBS"
  22084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22085. /* end confdefs.h. */
  22086. /* Override any GCC internal prototype to avoid an error.
  22087. Use char because int might match the return type of a GCC
  22088. builtin and then its argument prototype would still apply. */
  22089. #ifdef __cplusplus
  22090. extern "C"
  22091. #endif
  22092. char ${pbxfuncname} ();
  22093. int
  22094. main ()
  22095. {
  22096. return ${pbxfuncname} ();
  22097. ;
  22098. return 0;
  22099. }
  22100. _ACEOF
  22101. if ac_fn_c_try_link "$LINENO"; then :
  22102. eval "$as_ac_Lib=yes"
  22103. else
  22104. eval "$as_ac_Lib=no"
  22105. fi
  22106. rm -f core conftest.err conftest.$ac_objext \
  22107. conftest$ac_exeext conftest.$ac_ext
  22108. LIBS=$ac_check_lib_save_LIBS
  22109. fi
  22110. eval ac_res=\$$as_ac_Lib
  22111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22112. $as_echo "$ac_res" >&6; }
  22113. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22114. AST_OPENAIS_FOUND=yes
  22115. else
  22116. AST_OPENAIS_FOUND=no
  22117. fi
  22118. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22119. fi
  22120. # now check for the header.
  22121. if test "${AST_OPENAIS_FOUND}" = "yes"; then
  22122. OPENAIS_LIB="${pbxlibdir} -lSaClm -L/usr/lib/openais -L/usr/lib64/openais"
  22123. # if --with-OPENAIS=DIR has been specified, use it.
  22124. if test "x${OPENAIS_DIR}" != "x"; then
  22125. OPENAIS_INCLUDE="-I${OPENAIS_DIR}/include"
  22126. fi
  22127. OPENAIS_INCLUDE="${OPENAIS_INCLUDE} "
  22128. if test "xopenais/saClm.h" = "x" ; then # no header, assume found
  22129. OPENAIS_HEADER_FOUND="1"
  22130. else # check for the header
  22131. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22132. CPPFLAGS="${CPPFLAGS} ${OPENAIS_INCLUDE}"
  22133. ac_fn_c_check_header_mongrel "$LINENO" "openais/saClm.h" "ac_cv_header_openais_saClm_h" "$ac_includes_default"
  22134. if test "x$ac_cv_header_openais_saClm_h" = x""yes; then :
  22135. OPENAIS_HEADER_FOUND=1
  22136. else
  22137. OPENAIS_HEADER_FOUND=0
  22138. fi
  22139. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22140. fi
  22141. if test "x${OPENAIS_HEADER_FOUND}" = "x0" ; then
  22142. OPENAIS_LIB=""
  22143. OPENAIS_INCLUDE=""
  22144. else
  22145. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22146. OPENAIS_LIB=""
  22147. fi
  22148. PBX_OPENAIS=1
  22149. cat >>confdefs.h <<_ACEOF
  22150. #define HAVE_OPENAIS 1
  22151. _ACEOF
  22152. fi
  22153. fi
  22154. fi
  22155. if test "${PBX_OPENAIS}" = 1; then
  22156. PBX_AIS=1
  22157. if test -n "${OPENAIS_DIR}"; then
  22158. AIS_INCLUDE="${OPENAIS_INCLUDE}/openais"
  22159. AIS_LIB="-lSaEvt ${OPENAIS_LIB}"
  22160. else
  22161. AIS_INCLUDE="-I/usr/include/openais"
  22162. AIS_LIB="-lSaClm -lSaEvt -L/usr/lib/openais -L/usr/lib64/openais"
  22163. fi
  22164. fi
  22165. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  22166. pbxlibdir=""
  22167. # if --with-SPEEX=DIR has been specified, use it.
  22168. if test "x${SPEEX_DIR}" != "x"; then
  22169. if test -d ${SPEEX_DIR}/lib; then
  22170. pbxlibdir="-L${SPEEX_DIR}/lib"
  22171. else
  22172. pbxlibdir="-L${SPEEX_DIR}"
  22173. fi
  22174. fi
  22175. pbxfuncname="speex_encode"
  22176. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22177. AST_SPEEX_FOUND=yes
  22178. else
  22179. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22180. CFLAGS="${CFLAGS} "
  22181. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  22182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  22183. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  22184. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22185. $as_echo_n "(cached) " >&6
  22186. else
  22187. ac_check_lib_save_LIBS=$LIBS
  22188. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  22189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22190. /* end confdefs.h. */
  22191. /* Override any GCC internal prototype to avoid an error.
  22192. Use char because int might match the return type of a GCC
  22193. builtin and then its argument prototype would still apply. */
  22194. #ifdef __cplusplus
  22195. extern "C"
  22196. #endif
  22197. char ${pbxfuncname} ();
  22198. int
  22199. main ()
  22200. {
  22201. return ${pbxfuncname} ();
  22202. ;
  22203. return 0;
  22204. }
  22205. _ACEOF
  22206. if ac_fn_c_try_link "$LINENO"; then :
  22207. eval "$as_ac_Lib=yes"
  22208. else
  22209. eval "$as_ac_Lib=no"
  22210. fi
  22211. rm -f core conftest.err conftest.$ac_objext \
  22212. conftest$ac_exeext conftest.$ac_ext
  22213. LIBS=$ac_check_lib_save_LIBS
  22214. fi
  22215. eval ac_res=\$$as_ac_Lib
  22216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22217. $as_echo "$ac_res" >&6; }
  22218. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22219. AST_SPEEX_FOUND=yes
  22220. else
  22221. AST_SPEEX_FOUND=no
  22222. fi
  22223. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22224. fi
  22225. # now check for the header.
  22226. if test "${AST_SPEEX_FOUND}" = "yes"; then
  22227. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  22228. # if --with-SPEEX=DIR has been specified, use it.
  22229. if test "x${SPEEX_DIR}" != "x"; then
  22230. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  22231. fi
  22232. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  22233. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  22234. SPEEX_HEADER_FOUND="1"
  22235. else # check for the header
  22236. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22237. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  22238. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  22239. if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
  22240. SPEEX_HEADER_FOUND=1
  22241. else
  22242. SPEEX_HEADER_FOUND=0
  22243. fi
  22244. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22245. fi
  22246. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  22247. SPEEX_LIB=""
  22248. SPEEX_INCLUDE=""
  22249. else
  22250. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22251. SPEEX_LIB=""
  22252. fi
  22253. PBX_SPEEX=1
  22254. cat >>confdefs.h <<_ACEOF
  22255. #define HAVE_SPEEX 1
  22256. _ACEOF
  22257. fi
  22258. fi
  22259. fi
  22260. # See if the main speex library contains the preprocess functions
  22261. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  22262. pbxlibdir=""
  22263. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  22264. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  22265. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  22266. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  22267. else
  22268. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  22269. fi
  22270. fi
  22271. pbxfuncname="speex_preprocess_ctl"
  22272. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22273. AST_SPEEX_PREPROCESS_FOUND=yes
  22274. else
  22275. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22276. CFLAGS="${CFLAGS} "
  22277. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  22278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  22279. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  22280. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22281. $as_echo_n "(cached) " >&6
  22282. else
  22283. ac_check_lib_save_LIBS=$LIBS
  22284. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  22285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22286. /* end confdefs.h. */
  22287. /* Override any GCC internal prototype to avoid an error.
  22288. Use char because int might match the return type of a GCC
  22289. builtin and then its argument prototype would still apply. */
  22290. #ifdef __cplusplus
  22291. extern "C"
  22292. #endif
  22293. char ${pbxfuncname} ();
  22294. int
  22295. main ()
  22296. {
  22297. return ${pbxfuncname} ();
  22298. ;
  22299. return 0;
  22300. }
  22301. _ACEOF
  22302. if ac_fn_c_try_link "$LINENO"; then :
  22303. eval "$as_ac_Lib=yes"
  22304. else
  22305. eval "$as_ac_Lib=no"
  22306. fi
  22307. rm -f core conftest.err conftest.$ac_objext \
  22308. conftest$ac_exeext conftest.$ac_ext
  22309. LIBS=$ac_check_lib_save_LIBS
  22310. fi
  22311. eval ac_res=\$$as_ac_Lib
  22312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22313. $as_echo "$ac_res" >&6; }
  22314. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22315. AST_SPEEX_PREPROCESS_FOUND=yes
  22316. else
  22317. AST_SPEEX_PREPROCESS_FOUND=no
  22318. fi
  22319. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22320. fi
  22321. # now check for the header.
  22322. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  22323. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  22324. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  22325. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  22326. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  22327. fi
  22328. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  22329. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  22330. SPEEX_PREPROCESS_HEADER_FOUND="1"
  22331. else # check for the header
  22332. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22333. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  22334. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  22335. if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
  22336. SPEEX_PREPROCESS_HEADER_FOUND=1
  22337. else
  22338. SPEEX_PREPROCESS_HEADER_FOUND=0
  22339. fi
  22340. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22341. fi
  22342. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  22343. SPEEX_PREPROCESS_LIB=""
  22344. SPEEX_PREPROCESS_INCLUDE=""
  22345. else
  22346. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22347. SPEEX_PREPROCESS_LIB=""
  22348. fi
  22349. PBX_SPEEX_PREPROCESS=1
  22350. cat >>confdefs.h <<_ACEOF
  22351. #define HAVE_SPEEX_PREPROCESS 1
  22352. _ACEOF
  22353. fi
  22354. fi
  22355. fi
  22356. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  22357. PBX_SPEEX_PREPROCESS=1
  22358. fi
  22359. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  22360. pbxlibdir=""
  22361. # if --with-SPEEXDSP=DIR has been specified, use it.
  22362. if test "x${SPEEXDSP_DIR}" != "x"; then
  22363. if test -d ${SPEEXDSP_DIR}/lib; then
  22364. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  22365. else
  22366. pbxlibdir="-L${SPEEXDSP_DIR}"
  22367. fi
  22368. fi
  22369. pbxfuncname="speex_preprocess_ctl"
  22370. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22371. AST_SPEEXDSP_FOUND=yes
  22372. else
  22373. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22374. CFLAGS="${CFLAGS} "
  22375. as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
  22376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeexdsp" >&5
  22377. $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
  22378. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22379. $as_echo_n "(cached) " >&6
  22380. else
  22381. ac_check_lib_save_LIBS=$LIBS
  22382. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  22383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22384. /* end confdefs.h. */
  22385. /* Override any GCC internal prototype to avoid an error.
  22386. Use char because int might match the return type of a GCC
  22387. builtin and then its argument prototype would still apply. */
  22388. #ifdef __cplusplus
  22389. extern "C"
  22390. #endif
  22391. char ${pbxfuncname} ();
  22392. int
  22393. main ()
  22394. {
  22395. return ${pbxfuncname} ();
  22396. ;
  22397. return 0;
  22398. }
  22399. _ACEOF
  22400. if ac_fn_c_try_link "$LINENO"; then :
  22401. eval "$as_ac_Lib=yes"
  22402. else
  22403. eval "$as_ac_Lib=no"
  22404. fi
  22405. rm -f core conftest.err conftest.$ac_objext \
  22406. conftest$ac_exeext conftest.$ac_ext
  22407. LIBS=$ac_check_lib_save_LIBS
  22408. fi
  22409. eval ac_res=\$$as_ac_Lib
  22410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22411. $as_echo "$ac_res" >&6; }
  22412. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22413. AST_SPEEXDSP_FOUND=yes
  22414. else
  22415. AST_SPEEXDSP_FOUND=no
  22416. fi
  22417. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22418. fi
  22419. # now check for the header.
  22420. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  22421. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  22422. # if --with-SPEEXDSP=DIR has been specified, use it.
  22423. if test "x${SPEEXDSP_DIR}" != "x"; then
  22424. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  22425. fi
  22426. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  22427. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  22428. SPEEXDSP_HEADER_FOUND="1"
  22429. else # check for the header
  22430. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22431. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  22432. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  22433. if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
  22434. SPEEXDSP_HEADER_FOUND=1
  22435. else
  22436. SPEEXDSP_HEADER_FOUND=0
  22437. fi
  22438. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22439. fi
  22440. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  22441. SPEEXDSP_LIB=""
  22442. SPEEXDSP_INCLUDE=""
  22443. else
  22444. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22445. SPEEXDSP_LIB=""
  22446. fi
  22447. PBX_SPEEXDSP=1
  22448. cat >>confdefs.h <<_ACEOF
  22449. #define HAVE_SPEEXDSP 1
  22450. _ACEOF
  22451. fi
  22452. fi
  22453. fi
  22454. if test "${PBX_SPEEXDSP}" = 1; then
  22455. PBX_SPEEX_PREPROCESS=1
  22456. fi
  22457. if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
  22458. pbxlibdir=""
  22459. # if --with-SQLITE=DIR has been specified, use it.
  22460. if test "x${SQLITE_DIR}" != "x"; then
  22461. if test -d ${SQLITE_DIR}/lib; then
  22462. pbxlibdir="-L${SQLITE_DIR}/lib"
  22463. else
  22464. pbxlibdir="-L${SQLITE_DIR}"
  22465. fi
  22466. fi
  22467. pbxfuncname="sqlite_exec"
  22468. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22469. AST_SQLITE_FOUND=yes
  22470. else
  22471. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22472. CFLAGS="${CFLAGS} "
  22473. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
  22474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite" >&5
  22475. $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
  22476. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22477. $as_echo_n "(cached) " >&6
  22478. else
  22479. ac_check_lib_save_LIBS=$LIBS
  22480. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  22481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22482. /* end confdefs.h. */
  22483. /* Override any GCC internal prototype to avoid an error.
  22484. Use char because int might match the return type of a GCC
  22485. builtin and then its argument prototype would still apply. */
  22486. #ifdef __cplusplus
  22487. extern "C"
  22488. #endif
  22489. char ${pbxfuncname} ();
  22490. int
  22491. main ()
  22492. {
  22493. return ${pbxfuncname} ();
  22494. ;
  22495. return 0;
  22496. }
  22497. _ACEOF
  22498. if ac_fn_c_try_link "$LINENO"; then :
  22499. eval "$as_ac_Lib=yes"
  22500. else
  22501. eval "$as_ac_Lib=no"
  22502. fi
  22503. rm -f core conftest.err conftest.$ac_objext \
  22504. conftest$ac_exeext conftest.$ac_ext
  22505. LIBS=$ac_check_lib_save_LIBS
  22506. fi
  22507. eval ac_res=\$$as_ac_Lib
  22508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22509. $as_echo "$ac_res" >&6; }
  22510. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22511. AST_SQLITE_FOUND=yes
  22512. else
  22513. AST_SQLITE_FOUND=no
  22514. fi
  22515. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22516. fi
  22517. # now check for the header.
  22518. if test "${AST_SQLITE_FOUND}" = "yes"; then
  22519. SQLITE_LIB="${pbxlibdir} -lsqlite "
  22520. # if --with-SQLITE=DIR has been specified, use it.
  22521. if test "x${SQLITE_DIR}" != "x"; then
  22522. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  22523. fi
  22524. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  22525. if test "xsqlite.h" = "x" ; then # no header, assume found
  22526. SQLITE_HEADER_FOUND="1"
  22527. else # check for the header
  22528. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22529. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  22530. ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
  22531. if test "x$ac_cv_header_sqlite_h" = x""yes; then :
  22532. SQLITE_HEADER_FOUND=1
  22533. else
  22534. SQLITE_HEADER_FOUND=0
  22535. fi
  22536. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22537. fi
  22538. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  22539. SQLITE_LIB=""
  22540. SQLITE_INCLUDE=""
  22541. else
  22542. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22543. SQLITE_LIB=""
  22544. fi
  22545. PBX_SQLITE=1
  22546. cat >>confdefs.h <<_ACEOF
  22547. #define HAVE_SQLITE 1
  22548. _ACEOF
  22549. fi
  22550. fi
  22551. fi
  22552. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  22553. pbxlibdir=""
  22554. # if --with-SQLITE3=DIR has been specified, use it.
  22555. if test "x${SQLITE3_DIR}" != "x"; then
  22556. if test -d ${SQLITE3_DIR}/lib; then
  22557. pbxlibdir="-L${SQLITE3_DIR}/lib"
  22558. else
  22559. pbxlibdir="-L${SQLITE3_DIR}"
  22560. fi
  22561. fi
  22562. pbxfuncname="sqlite3_open"
  22563. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22564. AST_SQLITE3_FOUND=yes
  22565. else
  22566. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22567. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  22568. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
  22569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite3" >&5
  22570. $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
  22571. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22572. $as_echo_n "(cached) " >&6
  22573. else
  22574. ac_check_lib_save_LIBS=$LIBS
  22575. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  22576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22577. /* end confdefs.h. */
  22578. /* Override any GCC internal prototype to avoid an error.
  22579. Use char because int might match the return type of a GCC
  22580. builtin and then its argument prototype would still apply. */
  22581. #ifdef __cplusplus
  22582. extern "C"
  22583. #endif
  22584. char ${pbxfuncname} ();
  22585. int
  22586. main ()
  22587. {
  22588. return ${pbxfuncname} ();
  22589. ;
  22590. return 0;
  22591. }
  22592. _ACEOF
  22593. if ac_fn_c_try_link "$LINENO"; then :
  22594. eval "$as_ac_Lib=yes"
  22595. else
  22596. eval "$as_ac_Lib=no"
  22597. fi
  22598. rm -f core conftest.err conftest.$ac_objext \
  22599. conftest$ac_exeext conftest.$ac_ext
  22600. LIBS=$ac_check_lib_save_LIBS
  22601. fi
  22602. eval ac_res=\$$as_ac_Lib
  22603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22604. $as_echo "$ac_res" >&6; }
  22605. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22606. AST_SQLITE3_FOUND=yes
  22607. else
  22608. AST_SQLITE3_FOUND=no
  22609. fi
  22610. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22611. fi
  22612. # now check for the header.
  22613. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  22614. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  22615. # if --with-SQLITE3=DIR has been specified, use it.
  22616. if test "x${SQLITE3_DIR}" != "x"; then
  22617. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  22618. fi
  22619. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  22620. if test "xsqlite3.h" = "x" ; then # no header, assume found
  22621. SQLITE3_HEADER_FOUND="1"
  22622. else # check for the header
  22623. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22624. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  22625. ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  22626. if test "x$ac_cv_header_sqlite3_h" = x""yes; then :
  22627. SQLITE3_HEADER_FOUND=1
  22628. else
  22629. SQLITE3_HEADER_FOUND=0
  22630. fi
  22631. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22632. fi
  22633. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  22634. SQLITE3_LIB=""
  22635. SQLITE3_INCLUDE=""
  22636. else
  22637. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22638. SQLITE3_LIB=""
  22639. fi
  22640. PBX_SQLITE3=1
  22641. cat >>confdefs.h <<_ACEOF
  22642. #define HAVE_SQLITE3 1
  22643. _ACEOF
  22644. fi
  22645. fi
  22646. fi
  22647. if test "${PBX_SQLITE3}" != 1; then
  22648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database." >&5
  22649. $as_echo "$as_me: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database." >&2;}
  22650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please install the SQLite3 development package." >&5
  22651. $as_echo "$as_me: WARNING: *** Please install the SQLite3 development package." >&2;}
  22652. exit 1
  22653. fi
  22654. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  22655. pbxlibdir=""
  22656. # if --with-CRYPTO=DIR has been specified, use it.
  22657. if test "x${CRYPTO_DIR}" != "x"; then
  22658. if test -d ${CRYPTO_DIR}/lib; then
  22659. pbxlibdir="-L${CRYPTO_DIR}/lib"
  22660. else
  22661. pbxlibdir="-L${CRYPTO_DIR}"
  22662. fi
  22663. fi
  22664. pbxfuncname="AES_encrypt"
  22665. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22666. AST_CRYPTO_FOUND=yes
  22667. else
  22668. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22669. CFLAGS="${CFLAGS} "
  22670. as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
  22671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypto" >&5
  22672. $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
  22673. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22674. $as_echo_n "(cached) " >&6
  22675. else
  22676. ac_check_lib_save_LIBS=$LIBS
  22677. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  22678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22679. /* end confdefs.h. */
  22680. /* Override any GCC internal prototype to avoid an error.
  22681. Use char because int might match the return type of a GCC
  22682. builtin and then its argument prototype would still apply. */
  22683. #ifdef __cplusplus
  22684. extern "C"
  22685. #endif
  22686. char ${pbxfuncname} ();
  22687. int
  22688. main ()
  22689. {
  22690. return ${pbxfuncname} ();
  22691. ;
  22692. return 0;
  22693. }
  22694. _ACEOF
  22695. if ac_fn_c_try_link "$LINENO"; then :
  22696. eval "$as_ac_Lib=yes"
  22697. else
  22698. eval "$as_ac_Lib=no"
  22699. fi
  22700. rm -f core conftest.err conftest.$ac_objext \
  22701. conftest$ac_exeext conftest.$ac_ext
  22702. LIBS=$ac_check_lib_save_LIBS
  22703. fi
  22704. eval ac_res=\$$as_ac_Lib
  22705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22706. $as_echo "$ac_res" >&6; }
  22707. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22708. AST_CRYPTO_FOUND=yes
  22709. else
  22710. AST_CRYPTO_FOUND=no
  22711. fi
  22712. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22713. fi
  22714. # now check for the header.
  22715. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  22716. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  22717. # if --with-CRYPTO=DIR has been specified, use it.
  22718. if test "x${CRYPTO_DIR}" != "x"; then
  22719. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  22720. fi
  22721. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  22722. if test "xopenssl/aes.h" = "x" ; then # no header, assume found
  22723. CRYPTO_HEADER_FOUND="1"
  22724. else # check for the header
  22725. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22726. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  22727. ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
  22728. if test "x$ac_cv_header_openssl_aes_h" = x""yes; then :
  22729. CRYPTO_HEADER_FOUND=1
  22730. else
  22731. CRYPTO_HEADER_FOUND=0
  22732. fi
  22733. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22734. fi
  22735. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  22736. CRYPTO_LIB=""
  22737. CRYPTO_INCLUDE=""
  22738. else
  22739. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22740. CRYPTO_LIB=""
  22741. fi
  22742. PBX_CRYPTO=1
  22743. cat >>confdefs.h <<_ACEOF
  22744. #define HAVE_CRYPTO 1
  22745. _ACEOF
  22746. fi
  22747. fi
  22748. fi
  22749. if test "$PBX_CRYPTO" = "1";
  22750. then
  22751. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  22752. pbxlibdir=""
  22753. # if --with-OPENSSL=DIR has been specified, use it.
  22754. if test "x${OPENSSL_DIR}" != "x"; then
  22755. if test -d ${OPENSSL_DIR}/lib; then
  22756. pbxlibdir="-L${OPENSSL_DIR}/lib"
  22757. else
  22758. pbxlibdir="-L${OPENSSL_DIR}"
  22759. fi
  22760. fi
  22761. pbxfuncname="SSL_connect"
  22762. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22763. AST_OPENSSL_FOUND=yes
  22764. else
  22765. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22766. CFLAGS="${CFLAGS} "
  22767. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  22768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  22769. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  22770. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22771. $as_echo_n "(cached) " >&6
  22772. else
  22773. ac_check_lib_save_LIBS=$LIBS
  22774. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  22775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22776. /* end confdefs.h. */
  22777. /* Override any GCC internal prototype to avoid an error.
  22778. Use char because int might match the return type of a GCC
  22779. builtin and then its argument prototype would still apply. */
  22780. #ifdef __cplusplus
  22781. extern "C"
  22782. #endif
  22783. char ${pbxfuncname} ();
  22784. int
  22785. main ()
  22786. {
  22787. return ${pbxfuncname} ();
  22788. ;
  22789. return 0;
  22790. }
  22791. _ACEOF
  22792. if ac_fn_c_try_link "$LINENO"; then :
  22793. eval "$as_ac_Lib=yes"
  22794. else
  22795. eval "$as_ac_Lib=no"
  22796. fi
  22797. rm -f core conftest.err conftest.$ac_objext \
  22798. conftest$ac_exeext conftest.$ac_ext
  22799. LIBS=$ac_check_lib_save_LIBS
  22800. fi
  22801. eval ac_res=\$$as_ac_Lib
  22802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22803. $as_echo "$ac_res" >&6; }
  22804. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22805. AST_OPENSSL_FOUND=yes
  22806. else
  22807. AST_OPENSSL_FOUND=no
  22808. fi
  22809. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22810. fi
  22811. # now check for the header.
  22812. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  22813. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  22814. # if --with-OPENSSL=DIR has been specified, use it.
  22815. if test "x${OPENSSL_DIR}" != "x"; then
  22816. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  22817. fi
  22818. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  22819. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  22820. OPENSSL_HEADER_FOUND="1"
  22821. else # check for the header
  22822. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22823. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  22824. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  22825. if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
  22826. OPENSSL_HEADER_FOUND=1
  22827. else
  22828. OPENSSL_HEADER_FOUND=0
  22829. fi
  22830. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22831. fi
  22832. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  22833. OPENSSL_LIB=""
  22834. OPENSSL_INCLUDE=""
  22835. else
  22836. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22837. OPENSSL_LIB=""
  22838. fi
  22839. PBX_OPENSSL=1
  22840. cat >>confdefs.h <<_ACEOF
  22841. #define HAVE_OPENSSL 1
  22842. _ACEOF
  22843. fi
  22844. fi
  22845. fi
  22846. fi
  22847. if test "$PBX_OPENSSL" = "1";
  22848. then
  22849. # if OSPTK has not been checked and is not excluded
  22850. if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
  22851. # if --with-osptk=DIR has been specified, use it.
  22852. if test "x${OSPTK_DIR}" != "x"; then
  22853. osptk_cflags="-I${OSPTK_DIR}/include"
  22854. osptk_ldflags="-L${OSPTK_DIR}/lib"
  22855. else
  22856. osptk_cflags=""
  22857. osptk_ldflags=""
  22858. fi
  22859. # check for the header
  22860. osptk_saved_cppflags="${CPPFLAGS}"
  22861. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  22862. ac_fn_c_check_header_mongrel "$LINENO" "osp/osp.h" "ac_cv_header_osp_osp_h" "$ac_includes_default"
  22863. if test "x$ac_cv_header_osp_osp_h" = x""yes; then :
  22864. osptk_header_found=yes
  22865. else
  22866. osptk_header_found=no
  22867. fi
  22868. CPPFLAGS="${osptk_saved_cppflags}"
  22869. # check for the library
  22870. if test "${osptk_header_found}" = "yes"; then
  22871. osptk_extralibs="-lssl -lcrypto"
  22872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSPPInit in -losptk" >&5
  22873. $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
  22874. if test "${ac_cv_lib_osptk_OSPPInit+set}" = set; then :
  22875. $as_echo_n "(cached) " >&6
  22876. else
  22877. ac_check_lib_save_LIBS=$LIBS
  22878. LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $LIBS"
  22879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22880. /* end confdefs.h. */
  22881. /* Override any GCC internal prototype to avoid an error.
  22882. Use char because int might match the return type of a GCC
  22883. builtin and then its argument prototype would still apply. */
  22884. #ifdef __cplusplus
  22885. extern "C"
  22886. #endif
  22887. char OSPPInit ();
  22888. int
  22889. main ()
  22890. {
  22891. return OSPPInit ();
  22892. ;
  22893. return 0;
  22894. }
  22895. _ACEOF
  22896. if ac_fn_c_try_link "$LINENO"; then :
  22897. ac_cv_lib_osptk_OSPPInit=yes
  22898. else
  22899. ac_cv_lib_osptk_OSPPInit=no
  22900. fi
  22901. rm -f core conftest.err conftest.$ac_objext \
  22902. conftest$ac_exeext conftest.$ac_ext
  22903. LIBS=$ac_check_lib_save_LIBS
  22904. fi
  22905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osptk_OSPPInit" >&5
  22906. $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
  22907. if test "x$ac_cv_lib_osptk_OSPPInit" = x""yes; then :
  22908. osptk_library_found=yes
  22909. else
  22910. osptk_library_found=no
  22911. fi
  22912. # check OSP Toolkit version
  22913. if test "${osptk_library_found}" = "yes"; then
  22914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OSP Toolkit version is compatible with app_osplookup" >&5
  22915. $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
  22916. osptk_saved_cppflags="${CPPFLAGS}"
  22917. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  22918. if test "$cross_compiling" = yes; then :
  22919. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22921. as_fn_error $? "cannot run test program while cross compiling
  22922. See \`config.log' for more details" "$LINENO" 5 ; }
  22923. else
  22924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22925. /* end confdefs.h. */
  22926. #include <osp/osp.h>
  22927. int main(void) {
  22928. int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
  22929. int req = 3 * 10000 + 6 * 100 + 0;
  22930. return (ver < req) ? 1 : 0;
  22931. }
  22932. _ACEOF
  22933. if ac_fn_c_try_run "$LINENO"; then :
  22934. osptk_compatible=yes
  22935. else
  22936. osptk_compatible=no
  22937. fi
  22938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22940. fi
  22941. CPPFLAGS="${osptk_saved_cppflags}"
  22942. if test "${osptk_compatible}" = "yes"; then
  22943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22944. $as_echo "yes" >&6; }
  22945. PBX_OSPTK=1
  22946. OSPTK_INCLUDE="${osptk_cflags}"
  22947. OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
  22948. cat >>confdefs.h <<_ACEOF
  22949. #define HAVE_OSPTK 1
  22950. _ACEOF
  22951. else
  22952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22953. $as_echo "no" >&6; }
  22954. fi
  22955. fi
  22956. fi
  22957. fi
  22958. fi
  22959. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  22960. pbxlibdir=""
  22961. # if --with-SRTP=DIR has been specified, use it.
  22962. if test "x${SRTP_DIR}" != "x"; then
  22963. if test -d ${SRTP_DIR}/lib; then
  22964. pbxlibdir="-L${SRTP_DIR}/lib"
  22965. else
  22966. pbxlibdir="-L${SRTP_DIR}"
  22967. fi
  22968. fi
  22969. pbxfuncname="srtp_init"
  22970. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22971. AST_SRTP_FOUND=yes
  22972. else
  22973. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22974. CFLAGS="${CFLAGS} "
  22975. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  22976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  22977. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  22978. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  22979. $as_echo_n "(cached) " >&6
  22980. else
  22981. ac_check_lib_save_LIBS=$LIBS
  22982. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  22983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22984. /* end confdefs.h. */
  22985. /* Override any GCC internal prototype to avoid an error.
  22986. Use char because int might match the return type of a GCC
  22987. builtin and then its argument prototype would still apply. */
  22988. #ifdef __cplusplus
  22989. extern "C"
  22990. #endif
  22991. char ${pbxfuncname} ();
  22992. int
  22993. main ()
  22994. {
  22995. return ${pbxfuncname} ();
  22996. ;
  22997. return 0;
  22998. }
  22999. _ACEOF
  23000. if ac_fn_c_try_link "$LINENO"; then :
  23001. eval "$as_ac_Lib=yes"
  23002. else
  23003. eval "$as_ac_Lib=no"
  23004. fi
  23005. rm -f core conftest.err conftest.$ac_objext \
  23006. conftest$ac_exeext conftest.$ac_ext
  23007. LIBS=$ac_check_lib_save_LIBS
  23008. fi
  23009. eval ac_res=\$$as_ac_Lib
  23010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23011. $as_echo "$ac_res" >&6; }
  23012. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23013. AST_SRTP_FOUND=yes
  23014. else
  23015. AST_SRTP_FOUND=no
  23016. fi
  23017. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23018. fi
  23019. # now check for the header.
  23020. if test "${AST_SRTP_FOUND}" = "yes"; then
  23021. SRTP_LIB="${pbxlibdir} -lsrtp "
  23022. # if --with-SRTP=DIR has been specified, use it.
  23023. if test "x${SRTP_DIR}" != "x"; then
  23024. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  23025. fi
  23026. SRTP_INCLUDE="${SRTP_INCLUDE} "
  23027. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  23028. SRTP_HEADER_FOUND="1"
  23029. else # check for the header
  23030. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23031. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  23032. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  23033. if test "x$ac_cv_header_srtp_srtp_h" = x""yes; then :
  23034. SRTP_HEADER_FOUND=1
  23035. else
  23036. SRTP_HEADER_FOUND=0
  23037. fi
  23038. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23039. fi
  23040. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  23041. SRTP_LIB=""
  23042. SRTP_INCLUDE=""
  23043. else
  23044. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23045. SRTP_LIB=""
  23046. fi
  23047. PBX_SRTP=1
  23048. cat >>confdefs.h <<_ACEOF
  23049. #define HAVE_SRTP 1
  23050. _ACEOF
  23051. fi
  23052. fi
  23053. fi
  23054. if test "$PBX_SRTP" = "1";
  23055. then
  23056. saved_libs="${LIBS}"
  23057. saved_ldflags="${LDFLAGS}"
  23058. saved_cflags="${CFLAGS}"
  23059. LIBS="${LIBS} ${SRTP_LIB}"
  23060. LDFLAGS="${LDFLAGS} -shared -fPIC"
  23061. CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
  23062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp to be linked in a shared object" >&5
  23063. $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  23064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23065. /* end confdefs.h. */
  23066. #include <srtp/srtp.h>
  23067. int
  23068. main ()
  23069. {
  23070. srtp_init();
  23071. ;
  23072. return 0;
  23073. }
  23074. _ACEOF
  23075. if ac_fn_c_try_link "$LINENO"; then :
  23076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23077. $as_echo "yes" >&6; }
  23078. else
  23079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23080. $as_echo "no" >&6; }
  23081. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  23082. $as_echo "$as_me: ***" >&6;}
  23083. { $as_echo "$as_me:${as_lineno-$LINENO}: *** libsrtp could not be linked as a shared object" >&5
  23084. $as_echo "$as_me: *** libsrtp could not be linked as a shared object" >&6;}
  23085. { $as_echo "$as_me:${as_lineno-$LINENO}: *** try compiling libsrtp manually and configuring with" >&5
  23086. $as_echo "$as_me: *** try compiling libsrtp manually and configuring with" >&6;}
  23087. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  23088. $as_echo "$as_me: *** ./configure CFLAGS=-fPIC --prefix=/usr" >&6;}
  23089. { $as_echo "$as_me:${as_lineno-$LINENO}: *** replacing /usr with the prefix of your choice" >&5
  23090. $as_echo "$as_me: *** replacing /usr with the prefix of your choice" >&6;}
  23091. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  23092. $as_echo "$as_me: ***" >&6;}
  23093. { $as_echo "$as_me:${as_lineno-$LINENO}: *** If you do not need SRTP support re-run configure" >&5
  23094. $as_echo "$as_me: *** If you do not need SRTP support re-run configure" >&6;}
  23095. { $as_echo "$as_me:${as_lineno-$LINENO}: *** with the --without-srtp option." >&5
  23096. $as_echo "$as_me: *** with the --without-srtp option." >&6;}
  23097. exit 1
  23098. fi
  23099. rm -f core conftest.err conftest.$ac_objext \
  23100. conftest$ac_exeext conftest.$ac_ext
  23101. LIBS="${saved_libs}"
  23102. LDFLAGS="${saved_ldflags}"
  23103. CFLAGS="${saved_cflags}"
  23104. fi
  23105. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  23106. PBX_GMIME=0
  23107. if test -n "$ac_tool_prefix"; then
  23108. # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
  23109. set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
  23110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23111. $as_echo_n "checking for $ac_word... " >&6; }
  23112. if test "${ac_cv_path_CONFIG_GMIME+set}" = set; then :
  23113. $as_echo_n "(cached) " >&6
  23114. else
  23115. case $CONFIG_GMIME in
  23116. [\\/]* | ?:[\\/]*)
  23117. ac_cv_path_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test with a path.
  23118. ;;
  23119. *)
  23120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23121. as_dummy="${GMIME_DIR}/bin:$PATH"
  23122. for as_dir in $as_dummy
  23123. do
  23124. IFS=$as_save_IFS
  23125. test -z "$as_dir" && as_dir=.
  23126. for ac_exec_ext in '' $ac_executable_extensions; do
  23127. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23128. ac_cv_path_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
  23129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23130. break 2
  23131. fi
  23132. done
  23133. done
  23134. IFS=$as_save_IFS
  23135. ;;
  23136. esac
  23137. fi
  23138. CONFIG_GMIME=$ac_cv_path_CONFIG_GMIME
  23139. if test -n "$CONFIG_GMIME"; then
  23140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_GMIME" >&5
  23141. $as_echo "$CONFIG_GMIME" >&6; }
  23142. else
  23143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23144. $as_echo "no" >&6; }
  23145. fi
  23146. fi
  23147. if test -z "$ac_cv_path_CONFIG_GMIME"; then
  23148. ac_pt_CONFIG_GMIME=$CONFIG_GMIME
  23149. # Extract the first word of "gmime-config", so it can be a program name with args.
  23150. set dummy gmime-config; ac_word=$2
  23151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23152. $as_echo_n "checking for $ac_word... " >&6; }
  23153. if test "${ac_cv_path_ac_pt_CONFIG_GMIME+set}" = set; then :
  23154. $as_echo_n "(cached) " >&6
  23155. else
  23156. case $ac_pt_CONFIG_GMIME in
  23157. [\\/]* | ?:[\\/]*)
  23158. ac_cv_path_ac_pt_CONFIG_GMIME="$ac_pt_CONFIG_GMIME" # Let the user override the test with a path.
  23159. ;;
  23160. *)
  23161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23162. as_dummy="${GMIME_DIR}/bin:$PATH"
  23163. for as_dir in $as_dummy
  23164. do
  23165. IFS=$as_save_IFS
  23166. test -z "$as_dir" && as_dir=.
  23167. for ac_exec_ext in '' $ac_executable_extensions; do
  23168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23169. ac_cv_path_ac_pt_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
  23170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23171. break 2
  23172. fi
  23173. done
  23174. done
  23175. IFS=$as_save_IFS
  23176. ;;
  23177. esac
  23178. fi
  23179. ac_pt_CONFIG_GMIME=$ac_cv_path_ac_pt_CONFIG_GMIME
  23180. if test -n "$ac_pt_CONFIG_GMIME"; then
  23181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_GMIME" >&5
  23182. $as_echo "$ac_pt_CONFIG_GMIME" >&6; }
  23183. else
  23184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23185. $as_echo "no" >&6; }
  23186. fi
  23187. if test "x$ac_pt_CONFIG_GMIME" = x; then
  23188. CONFIG_GMIME="No"
  23189. else
  23190. case $cross_compiling:$ac_tool_warned in
  23191. yes:)
  23192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23193. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23194. ac_tool_warned=yes ;;
  23195. esac
  23196. CONFIG_GMIME=$ac_pt_CONFIG_GMIME
  23197. fi
  23198. else
  23199. CONFIG_GMIME="$ac_cv_path_CONFIG_GMIME"
  23200. fi
  23201. if test ! "x${CONFIG_GMIME}" = xNo; then
  23202. if test x"" = x ; then A=--cflags ; else A="" ; fi
  23203. GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
  23204. if test x"" = x ; then A=--libs ; else A="" ; fi
  23205. GMIME_LIB=$(${CONFIG_GMIME} $A)
  23206. if test x"#include <gmime/gmime.h>" != x ; then
  23207. saved_cppflags="${CPPFLAGS}"
  23208. if test "x${GMIME_DIR}" != "x"; then
  23209. GMIME_INCLUDE="-I${GMIME_DIR}/include"
  23210. fi
  23211. CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
  23212. saved_libs="${LIBS}"
  23213. LIBS="${GMIME_LIB}"
  23214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23215. /* end confdefs.h. */
  23216. #include <gmime/gmime.h>
  23217. int
  23218. main ()
  23219. {
  23220. gboolean q = g_mime_check_version(0,0,0);;
  23221. ;
  23222. return 0;
  23223. }
  23224. _ACEOF
  23225. if ac_fn_c_try_link "$LINENO"; then :
  23226. PBX_GMIME=1
  23227. $as_echo "#define HAVE_GMIME 1" >>confdefs.h
  23228. fi
  23229. rm -f core conftest.err conftest.$ac_objext \
  23230. conftest$ac_exeext conftest.$ac_ext
  23231. CPPFLAGS="${saved_cppflags}"
  23232. LIBS="${saved_libs}"
  23233. else
  23234. PBX_GMIME=1
  23235. $as_echo "#define HAVE_GMIME 1" >>confdefs.h
  23236. fi
  23237. fi
  23238. fi
  23239. if test "x${PBX_GMIME}" = "x0" -a "${PKGCONFIG}" != "No"; then
  23240. # Later versions of GMime use pkg-config
  23241. for ver in 2.0 2.2 2.4; do
  23242. if ! ${PKGCONFIG} --exists gmime-$ver; then
  23243. continue
  23244. fi
  23245. # If we got here, we have this version:
  23246. GMIME_INCLUDE=$(${PKGCONFIG} gmime-$ver --cflags 2>/dev/null)
  23247. GMIME_LIB=$(${PKGCONFIG} gmime-$ver --libs)
  23248. PBX_GMIME=1
  23249. $as_echo "#define HAVE_GMIME 1" >>confdefs.h
  23250. break;
  23251. done
  23252. fi
  23253. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  23254. pbxlibdir=""
  23255. # if --with-HOARD=DIR has been specified, use it.
  23256. if test "x${HOARD_DIR}" != "x"; then
  23257. if test -d ${HOARD_DIR}/lib; then
  23258. pbxlibdir="-L${HOARD_DIR}/lib"
  23259. else
  23260. pbxlibdir="-L${HOARD_DIR}"
  23261. fi
  23262. fi
  23263. pbxfuncname="malloc"
  23264. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23265. AST_HOARD_FOUND=yes
  23266. else
  23267. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23268. CFLAGS="${CFLAGS} "
  23269. as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
  23270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lhoard" >&5
  23271. $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
  23272. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23273. $as_echo_n "(cached) " >&6
  23274. else
  23275. ac_check_lib_save_LIBS=$LIBS
  23276. LIBS="-lhoard ${pbxlibdir} $LIBS"
  23277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23278. /* end confdefs.h. */
  23279. /* Override any GCC internal prototype to avoid an error.
  23280. Use char because int might match the return type of a GCC
  23281. builtin and then its argument prototype would still apply. */
  23282. #ifdef __cplusplus
  23283. extern "C"
  23284. #endif
  23285. char ${pbxfuncname} ();
  23286. int
  23287. main ()
  23288. {
  23289. return ${pbxfuncname} ();
  23290. ;
  23291. return 0;
  23292. }
  23293. _ACEOF
  23294. if ac_fn_c_try_link "$LINENO"; then :
  23295. eval "$as_ac_Lib=yes"
  23296. else
  23297. eval "$as_ac_Lib=no"
  23298. fi
  23299. rm -f core conftest.err conftest.$ac_objext \
  23300. conftest$ac_exeext conftest.$ac_ext
  23301. LIBS=$ac_check_lib_save_LIBS
  23302. fi
  23303. eval ac_res=\$$as_ac_Lib
  23304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23305. $as_echo "$ac_res" >&6; }
  23306. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23307. AST_HOARD_FOUND=yes
  23308. else
  23309. AST_HOARD_FOUND=no
  23310. fi
  23311. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23312. fi
  23313. # now check for the header.
  23314. if test "${AST_HOARD_FOUND}" = "yes"; then
  23315. HOARD_LIB="${pbxlibdir} -lhoard "
  23316. # if --with-HOARD=DIR has been specified, use it.
  23317. if test "x${HOARD_DIR}" != "x"; then
  23318. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  23319. fi
  23320. HOARD_INCLUDE="${HOARD_INCLUDE} "
  23321. if test "x" = "x" ; then # no header, assume found
  23322. HOARD_HEADER_FOUND="1"
  23323. else # check for the header
  23324. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23325. CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
  23326. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  23327. if test "x$ac_cv_header_" = x""yes; then :
  23328. HOARD_HEADER_FOUND=1
  23329. else
  23330. HOARD_HEADER_FOUND=0
  23331. fi
  23332. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23333. fi
  23334. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  23335. HOARD_LIB=""
  23336. HOARD_INCLUDE=""
  23337. else
  23338. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23339. HOARD_LIB=""
  23340. fi
  23341. PBX_HOARD=1
  23342. cat >>confdefs.h <<_ACEOF
  23343. #define HAVE_HOARD 1
  23344. _ACEOF
  23345. fi
  23346. fi
  23347. fi
  23348. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  23349. pbxlibdir=""
  23350. # if --with-FREETDS=DIR has been specified, use it.
  23351. if test "x${FREETDS_DIR}" != "x"; then
  23352. if test -d ${FREETDS_DIR}/lib; then
  23353. pbxlibdir="-L${FREETDS_DIR}/lib"
  23354. else
  23355. pbxlibdir="-L${FREETDS_DIR}"
  23356. fi
  23357. fi
  23358. pbxfuncname="dbinit"
  23359. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23360. AST_FREETDS_FOUND=yes
  23361. else
  23362. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23363. CFLAGS="${CFLAGS} "
  23364. as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
  23365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsybdb" >&5
  23366. $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
  23367. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23368. $as_echo_n "(cached) " >&6
  23369. else
  23370. ac_check_lib_save_LIBS=$LIBS
  23371. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  23372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23373. /* end confdefs.h. */
  23374. /* Override any GCC internal prototype to avoid an error.
  23375. Use char because int might match the return type of a GCC
  23376. builtin and then its argument prototype would still apply. */
  23377. #ifdef __cplusplus
  23378. extern "C"
  23379. #endif
  23380. char ${pbxfuncname} ();
  23381. int
  23382. main ()
  23383. {
  23384. return ${pbxfuncname} ();
  23385. ;
  23386. return 0;
  23387. }
  23388. _ACEOF
  23389. if ac_fn_c_try_link "$LINENO"; then :
  23390. eval "$as_ac_Lib=yes"
  23391. else
  23392. eval "$as_ac_Lib=no"
  23393. fi
  23394. rm -f core conftest.err conftest.$ac_objext \
  23395. conftest$ac_exeext conftest.$ac_ext
  23396. LIBS=$ac_check_lib_save_LIBS
  23397. fi
  23398. eval ac_res=\$$as_ac_Lib
  23399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23400. $as_echo "$ac_res" >&6; }
  23401. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23402. AST_FREETDS_FOUND=yes
  23403. else
  23404. AST_FREETDS_FOUND=no
  23405. fi
  23406. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23407. fi
  23408. # now check for the header.
  23409. if test "${AST_FREETDS_FOUND}" = "yes"; then
  23410. FREETDS_LIB="${pbxlibdir} -lsybdb "
  23411. # if --with-FREETDS=DIR has been specified, use it.
  23412. if test "x${FREETDS_DIR}" != "x"; then
  23413. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  23414. fi
  23415. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  23416. if test "xsybdb.h" = "x" ; then # no header, assume found
  23417. FREETDS_HEADER_FOUND="1"
  23418. else # check for the header
  23419. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23420. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  23421. ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
  23422. if test "x$ac_cv_header_sybdb_h" = x""yes; then :
  23423. FREETDS_HEADER_FOUND=1
  23424. else
  23425. FREETDS_HEADER_FOUND=0
  23426. fi
  23427. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23428. fi
  23429. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  23430. FREETDS_LIB=""
  23431. FREETDS_INCLUDE=""
  23432. else
  23433. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23434. FREETDS_LIB=""
  23435. fi
  23436. PBX_FREETDS=1
  23437. cat >>confdefs.h <<_ACEOF
  23438. #define HAVE_FREETDS 1
  23439. _ACEOF
  23440. fi
  23441. fi
  23442. fi
  23443. if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
  23444. pbxlibdir=""
  23445. # if --with-TERMCAP=DIR has been specified, use it.
  23446. if test "x${TERMCAP_DIR}" != "x"; then
  23447. if test -d ${TERMCAP_DIR}/lib; then
  23448. pbxlibdir="-L${TERMCAP_DIR}/lib"
  23449. else
  23450. pbxlibdir="-L${TERMCAP_DIR}"
  23451. fi
  23452. fi
  23453. pbxfuncname="tgetent"
  23454. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23455. AST_TERMCAP_FOUND=yes
  23456. else
  23457. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23458. CFLAGS="${CFLAGS} "
  23459. as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
  23460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltermcap" >&5
  23461. $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
  23462. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23463. $as_echo_n "(cached) " >&6
  23464. else
  23465. ac_check_lib_save_LIBS=$LIBS
  23466. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  23467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23468. /* end confdefs.h. */
  23469. /* Override any GCC internal prototype to avoid an error.
  23470. Use char because int might match the return type of a GCC
  23471. builtin and then its argument prototype would still apply. */
  23472. #ifdef __cplusplus
  23473. extern "C"
  23474. #endif
  23475. char ${pbxfuncname} ();
  23476. int
  23477. main ()
  23478. {
  23479. return ${pbxfuncname} ();
  23480. ;
  23481. return 0;
  23482. }
  23483. _ACEOF
  23484. if ac_fn_c_try_link "$LINENO"; then :
  23485. eval "$as_ac_Lib=yes"
  23486. else
  23487. eval "$as_ac_Lib=no"
  23488. fi
  23489. rm -f core conftest.err conftest.$ac_objext \
  23490. conftest$ac_exeext conftest.$ac_ext
  23491. LIBS=$ac_check_lib_save_LIBS
  23492. fi
  23493. eval ac_res=\$$as_ac_Lib
  23494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23495. $as_echo "$ac_res" >&6; }
  23496. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23497. AST_TERMCAP_FOUND=yes
  23498. else
  23499. AST_TERMCAP_FOUND=no
  23500. fi
  23501. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23502. fi
  23503. # now check for the header.
  23504. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  23505. TERMCAP_LIB="${pbxlibdir} -ltermcap "
  23506. # if --with-TERMCAP=DIR has been specified, use it.
  23507. if test "x${TERMCAP_DIR}" != "x"; then
  23508. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  23509. fi
  23510. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  23511. if test "x" = "x" ; then # no header, assume found
  23512. TERMCAP_HEADER_FOUND="1"
  23513. else # check for the header
  23514. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23515. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  23516. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  23517. if test "x$ac_cv_header_" = x""yes; then :
  23518. TERMCAP_HEADER_FOUND=1
  23519. else
  23520. TERMCAP_HEADER_FOUND=0
  23521. fi
  23522. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23523. fi
  23524. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  23525. TERMCAP_LIB=""
  23526. TERMCAP_INCLUDE=""
  23527. else
  23528. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23529. TERMCAP_LIB=""
  23530. fi
  23531. PBX_TERMCAP=1
  23532. cat >>confdefs.h <<_ACEOF
  23533. #define HAVE_TERMCAP 1
  23534. _ACEOF
  23535. fi
  23536. fi
  23537. fi
  23538. if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
  23539. pbxlibdir=""
  23540. # if --with-TINFO=DIR has been specified, use it.
  23541. if test "x${TINFO_DIR}" != "x"; then
  23542. if test -d ${TINFO_DIR}/lib; then
  23543. pbxlibdir="-L${TINFO_DIR}/lib"
  23544. else
  23545. pbxlibdir="-L${TINFO_DIR}"
  23546. fi
  23547. fi
  23548. pbxfuncname="tgetent"
  23549. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23550. AST_TINFO_FOUND=yes
  23551. else
  23552. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23553. CFLAGS="${CFLAGS} "
  23554. as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
  23555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltinfo" >&5
  23556. $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
  23557. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23558. $as_echo_n "(cached) " >&6
  23559. else
  23560. ac_check_lib_save_LIBS=$LIBS
  23561. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  23562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23563. /* end confdefs.h. */
  23564. /* Override any GCC internal prototype to avoid an error.
  23565. Use char because int might match the return type of a GCC
  23566. builtin and then its argument prototype would still apply. */
  23567. #ifdef __cplusplus
  23568. extern "C"
  23569. #endif
  23570. char ${pbxfuncname} ();
  23571. int
  23572. main ()
  23573. {
  23574. return ${pbxfuncname} ();
  23575. ;
  23576. return 0;
  23577. }
  23578. _ACEOF
  23579. if ac_fn_c_try_link "$LINENO"; then :
  23580. eval "$as_ac_Lib=yes"
  23581. else
  23582. eval "$as_ac_Lib=no"
  23583. fi
  23584. rm -f core conftest.err conftest.$ac_objext \
  23585. conftest$ac_exeext conftest.$ac_ext
  23586. LIBS=$ac_check_lib_save_LIBS
  23587. fi
  23588. eval ac_res=\$$as_ac_Lib
  23589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23590. $as_echo "$ac_res" >&6; }
  23591. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23592. AST_TINFO_FOUND=yes
  23593. else
  23594. AST_TINFO_FOUND=no
  23595. fi
  23596. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23597. fi
  23598. # now check for the header.
  23599. if test "${AST_TINFO_FOUND}" = "yes"; then
  23600. TINFO_LIB="${pbxlibdir} -ltinfo "
  23601. # if --with-TINFO=DIR has been specified, use it.
  23602. if test "x${TINFO_DIR}" != "x"; then
  23603. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  23604. fi
  23605. TINFO_INCLUDE="${TINFO_INCLUDE} "
  23606. if test "x" = "x" ; then # no header, assume found
  23607. TINFO_HEADER_FOUND="1"
  23608. else # check for the header
  23609. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23610. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  23611. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  23612. if test "x$ac_cv_header_" = x""yes; then :
  23613. TINFO_HEADER_FOUND=1
  23614. else
  23615. TINFO_HEADER_FOUND=0
  23616. fi
  23617. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23618. fi
  23619. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  23620. TINFO_LIB=""
  23621. TINFO_INCLUDE=""
  23622. else
  23623. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23624. TINFO_LIB=""
  23625. fi
  23626. PBX_TINFO=1
  23627. cat >>confdefs.h <<_ACEOF
  23628. #define HAVE_TINFO 1
  23629. _ACEOF
  23630. fi
  23631. fi
  23632. fi
  23633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find_by_num in -ltonezone" >&5
  23634. $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  23635. if test "${ac_cv_lib_tonezone_tone_zone_find_by_num+set}" = set; then :
  23636. $as_echo_n "(cached) " >&6
  23637. else
  23638. ac_check_lib_save_LIBS=$LIBS
  23639. LIBS="-ltonezone $LIBS"
  23640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23641. /* end confdefs.h. */
  23642. /* Override any GCC internal prototype to avoid an error.
  23643. Use char because int might match the return type of a GCC
  23644. builtin and then its argument prototype would still apply. */
  23645. #ifdef __cplusplus
  23646. extern "C"
  23647. #endif
  23648. char tone_zone_find_by_num ();
  23649. int
  23650. main ()
  23651. {
  23652. return tone_zone_find_by_num ();
  23653. ;
  23654. return 0;
  23655. }
  23656. _ACEOF
  23657. if ac_fn_c_try_link "$LINENO"; then :
  23658. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  23659. else
  23660. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  23661. fi
  23662. rm -f core conftest.err conftest.$ac_objext \
  23663. conftest$ac_exeext conftest.$ac_ext
  23664. LIBS=$ac_check_lib_save_LIBS
  23665. fi
  23666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  23667. $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  23668. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = x""yes; then :
  23669. tonezone_does_not_need_lm=yes
  23670. else
  23671. tonezone_does_not_need_lm=no
  23672. fi
  23673. if test "${tonezone_does_not_need_lm}" = "no" ; then
  23674. tonezone_extra="-lm"
  23675. fi
  23676. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  23677. pbxlibdir=""
  23678. # if --with-TONEZONE=DIR has been specified, use it.
  23679. if test "x${TONEZONE_DIR}" != "x"; then
  23680. if test -d ${TONEZONE_DIR}/lib; then
  23681. pbxlibdir="-L${TONEZONE_DIR}/lib"
  23682. else
  23683. pbxlibdir="-L${TONEZONE_DIR}"
  23684. fi
  23685. fi
  23686. pbxfuncname="tone_zone_find"
  23687. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23688. AST_TONEZONE_FOUND=yes
  23689. else
  23690. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23691. CFLAGS="${CFLAGS} "
  23692. as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
  23693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltonezone" >&5
  23694. $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
  23695. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23696. $as_echo_n "(cached) " >&6
  23697. else
  23698. ac_check_lib_save_LIBS=$LIBS
  23699. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  23700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23701. /* end confdefs.h. */
  23702. /* Override any GCC internal prototype to avoid an error.
  23703. Use char because int might match the return type of a GCC
  23704. builtin and then its argument prototype would still apply. */
  23705. #ifdef __cplusplus
  23706. extern "C"
  23707. #endif
  23708. char ${pbxfuncname} ();
  23709. int
  23710. main ()
  23711. {
  23712. return ${pbxfuncname} ();
  23713. ;
  23714. return 0;
  23715. }
  23716. _ACEOF
  23717. if ac_fn_c_try_link "$LINENO"; then :
  23718. eval "$as_ac_Lib=yes"
  23719. else
  23720. eval "$as_ac_Lib=no"
  23721. fi
  23722. rm -f core conftest.err conftest.$ac_objext \
  23723. conftest$ac_exeext conftest.$ac_ext
  23724. LIBS=$ac_check_lib_save_LIBS
  23725. fi
  23726. eval ac_res=\$$as_ac_Lib
  23727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23728. $as_echo "$ac_res" >&6; }
  23729. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23730. AST_TONEZONE_FOUND=yes
  23731. else
  23732. AST_TONEZONE_FOUND=no
  23733. fi
  23734. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23735. fi
  23736. # now check for the header.
  23737. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  23738. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  23739. # if --with-TONEZONE=DIR has been specified, use it.
  23740. if test "x${TONEZONE_DIR}" != "x"; then
  23741. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  23742. fi
  23743. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  23744. if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
  23745. TONEZONE_HEADER_FOUND="1"
  23746. else # check for the header
  23747. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23748. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  23749. ac_fn_c_check_header_mongrel "$LINENO" "dahdi/tonezone.h" "ac_cv_header_dahdi_tonezone_h" "$ac_includes_default"
  23750. if test "x$ac_cv_header_dahdi_tonezone_h" = x""yes; then :
  23751. TONEZONE_HEADER_FOUND=1
  23752. else
  23753. TONEZONE_HEADER_FOUND=0
  23754. fi
  23755. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23756. fi
  23757. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  23758. TONEZONE_LIB=""
  23759. TONEZONE_INCLUDE=""
  23760. else
  23761. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23762. TONEZONE_LIB=""
  23763. fi
  23764. PBX_TONEZONE=1
  23765. cat >>confdefs.h <<_ACEOF
  23766. #define HAVE_TONEZONE 1
  23767. _ACEOF
  23768. fi
  23769. fi
  23770. fi
  23771. if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
  23772. pbxlibdir=""
  23773. # if --with-USB=DIR has been specified, use it.
  23774. if test "x${USB_DIR}" != "x"; then
  23775. if test -d ${USB_DIR}/lib; then
  23776. pbxlibdir="-L${USB_DIR}/lib"
  23777. else
  23778. pbxlibdir="-L${USB_DIR}"
  23779. fi
  23780. fi
  23781. pbxfuncname="usb_init"
  23782. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23783. AST_USB_FOUND=yes
  23784. else
  23785. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23786. CFLAGS="${CFLAGS} "
  23787. as_ac_Lib=`$as_echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
  23788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lusb" >&5
  23789. $as_echo_n "checking for ${pbxfuncname} in -lusb... " >&6; }
  23790. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23791. $as_echo_n "(cached) " >&6
  23792. else
  23793. ac_check_lib_save_LIBS=$LIBS
  23794. LIBS="-lusb ${pbxlibdir} $LIBS"
  23795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23796. /* end confdefs.h. */
  23797. /* Override any GCC internal prototype to avoid an error.
  23798. Use char because int might match the return type of a GCC
  23799. builtin and then its argument prototype would still apply. */
  23800. #ifdef __cplusplus
  23801. extern "C"
  23802. #endif
  23803. char ${pbxfuncname} ();
  23804. int
  23805. main ()
  23806. {
  23807. return ${pbxfuncname} ();
  23808. ;
  23809. return 0;
  23810. }
  23811. _ACEOF
  23812. if ac_fn_c_try_link "$LINENO"; then :
  23813. eval "$as_ac_Lib=yes"
  23814. else
  23815. eval "$as_ac_Lib=no"
  23816. fi
  23817. rm -f core conftest.err conftest.$ac_objext \
  23818. conftest$ac_exeext conftest.$ac_ext
  23819. LIBS=$ac_check_lib_save_LIBS
  23820. fi
  23821. eval ac_res=\$$as_ac_Lib
  23822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23823. $as_echo "$ac_res" >&6; }
  23824. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23825. AST_USB_FOUND=yes
  23826. else
  23827. AST_USB_FOUND=no
  23828. fi
  23829. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23830. fi
  23831. # now check for the header.
  23832. if test "${AST_USB_FOUND}" = "yes"; then
  23833. USB_LIB="${pbxlibdir} -lusb "
  23834. # if --with-USB=DIR has been specified, use it.
  23835. if test "x${USB_DIR}" != "x"; then
  23836. USB_INCLUDE="-I${USB_DIR}/include"
  23837. fi
  23838. USB_INCLUDE="${USB_INCLUDE} "
  23839. if test "xusb.h" = "x" ; then # no header, assume found
  23840. USB_HEADER_FOUND="1"
  23841. else # check for the header
  23842. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23843. CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}"
  23844. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23845. if test "x$ac_cv_header_usb_h" = x""yes; then :
  23846. USB_HEADER_FOUND=1
  23847. else
  23848. USB_HEADER_FOUND=0
  23849. fi
  23850. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23851. fi
  23852. if test "x${USB_HEADER_FOUND}" = "x0" ; then
  23853. USB_LIB=""
  23854. USB_INCLUDE=""
  23855. else
  23856. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23857. USB_LIB=""
  23858. fi
  23859. PBX_USB=1
  23860. cat >>confdefs.h <<_ACEOF
  23861. #define HAVE_USB 1
  23862. _ACEOF
  23863. fi
  23864. fi
  23865. fi
  23866. if test "${OSARCH}" = "OpenBSD";
  23867. then
  23868. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  23869. pbxlibdir=""
  23870. # if --with-VORBIS=DIR has been specified, use it.
  23871. if test "x${VORBIS_DIR}" != "x"; then
  23872. if test -d ${VORBIS_DIR}/lib; then
  23873. pbxlibdir="-L${VORBIS_DIR}/lib"
  23874. else
  23875. pbxlibdir="-L${VORBIS_DIR}"
  23876. fi
  23877. fi
  23878. pbxfuncname="vorbis_info_init"
  23879. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23880. AST_VORBIS_FOUND=yes
  23881. else
  23882. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23883. CFLAGS="${CFLAGS} "
  23884. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  23885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  23886. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  23887. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23888. $as_echo_n "(cached) " >&6
  23889. else
  23890. ac_check_lib_save_LIBS=$LIBS
  23891. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -logg $LIBS"
  23892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23893. /* end confdefs.h. */
  23894. /* Override any GCC internal prototype to avoid an error.
  23895. Use char because int might match the return type of a GCC
  23896. builtin and then its argument prototype would still apply. */
  23897. #ifdef __cplusplus
  23898. extern "C"
  23899. #endif
  23900. char ${pbxfuncname} ();
  23901. int
  23902. main ()
  23903. {
  23904. return ${pbxfuncname} ();
  23905. ;
  23906. return 0;
  23907. }
  23908. _ACEOF
  23909. if ac_fn_c_try_link "$LINENO"; then :
  23910. eval "$as_ac_Lib=yes"
  23911. else
  23912. eval "$as_ac_Lib=no"
  23913. fi
  23914. rm -f core conftest.err conftest.$ac_objext \
  23915. conftest$ac_exeext conftest.$ac_ext
  23916. LIBS=$ac_check_lib_save_LIBS
  23917. fi
  23918. eval ac_res=\$$as_ac_Lib
  23919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23920. $as_echo "$ac_res" >&6; }
  23921. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23922. AST_VORBIS_FOUND=yes
  23923. else
  23924. AST_VORBIS_FOUND=no
  23925. fi
  23926. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23927. fi
  23928. # now check for the header.
  23929. if test "${AST_VORBIS_FOUND}" = "yes"; then
  23930. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -logg"
  23931. # if --with-VORBIS=DIR has been specified, use it.
  23932. if test "x${VORBIS_DIR}" != "x"; then
  23933. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  23934. fi
  23935. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  23936. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  23937. VORBIS_HEADER_FOUND="1"
  23938. else # check for the header
  23939. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23940. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  23941. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  23942. if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then :
  23943. VORBIS_HEADER_FOUND=1
  23944. else
  23945. VORBIS_HEADER_FOUND=0
  23946. fi
  23947. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23948. fi
  23949. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  23950. VORBIS_LIB=""
  23951. VORBIS_INCLUDE=""
  23952. else
  23953. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23954. VORBIS_LIB=""
  23955. fi
  23956. PBX_VORBIS=1
  23957. cat >>confdefs.h <<_ACEOF
  23958. #define HAVE_VORBIS 1
  23959. _ACEOF
  23960. fi
  23961. fi
  23962. fi
  23963. else
  23964. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  23965. pbxlibdir=""
  23966. # if --with-VORBIS=DIR has been specified, use it.
  23967. if test "x${VORBIS_DIR}" != "x"; then
  23968. if test -d ${VORBIS_DIR}/lib; then
  23969. pbxlibdir="-L${VORBIS_DIR}/lib"
  23970. else
  23971. pbxlibdir="-L${VORBIS_DIR}"
  23972. fi
  23973. fi
  23974. pbxfuncname="vorbis_info_init"
  23975. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23976. AST_VORBIS_FOUND=yes
  23977. else
  23978. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23979. CFLAGS="${CFLAGS} "
  23980. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  23981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  23982. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  23983. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  23984. $as_echo_n "(cached) " >&6
  23985. else
  23986. ac_check_lib_save_LIBS=$LIBS
  23987. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
  23988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23989. /* end confdefs.h. */
  23990. /* Override any GCC internal prototype to avoid an error.
  23991. Use char because int might match the return type of a GCC
  23992. builtin and then its argument prototype would still apply. */
  23993. #ifdef __cplusplus
  23994. extern "C"
  23995. #endif
  23996. char ${pbxfuncname} ();
  23997. int
  23998. main ()
  23999. {
  24000. return ${pbxfuncname} ();
  24001. ;
  24002. return 0;
  24003. }
  24004. _ACEOF
  24005. if ac_fn_c_try_link "$LINENO"; then :
  24006. eval "$as_ac_Lib=yes"
  24007. else
  24008. eval "$as_ac_Lib=no"
  24009. fi
  24010. rm -f core conftest.err conftest.$ac_objext \
  24011. conftest$ac_exeext conftest.$ac_ext
  24012. LIBS=$ac_check_lib_save_LIBS
  24013. fi
  24014. eval ac_res=\$$as_ac_Lib
  24015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24016. $as_echo "$ac_res" >&6; }
  24017. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24018. AST_VORBIS_FOUND=yes
  24019. else
  24020. AST_VORBIS_FOUND=no
  24021. fi
  24022. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24023. fi
  24024. # now check for the header.
  24025. if test "${AST_VORBIS_FOUND}" = "yes"; then
  24026. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
  24027. # if --with-VORBIS=DIR has been specified, use it.
  24028. if test "x${VORBIS_DIR}" != "x"; then
  24029. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  24030. fi
  24031. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  24032. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  24033. VORBIS_HEADER_FOUND="1"
  24034. else # check for the header
  24035. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24036. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  24037. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  24038. if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then :
  24039. VORBIS_HEADER_FOUND=1
  24040. else
  24041. VORBIS_HEADER_FOUND=0
  24042. fi
  24043. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24044. fi
  24045. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  24046. VORBIS_LIB=""
  24047. VORBIS_INCLUDE=""
  24048. else
  24049. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24050. VORBIS_LIB=""
  24051. fi
  24052. PBX_VORBIS=1
  24053. cat >>confdefs.h <<_ACEOF
  24054. #define HAVE_VORBIS 1
  24055. _ACEOF
  24056. fi
  24057. fi
  24058. fi
  24059. fi
  24060. ac_ext=cpp
  24061. ac_cpp='$CXXCPP $CPPFLAGS'
  24062. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24063. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24064. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24065. if test "${USE_VPB}" != "no"; then
  24066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpb_open in -lvpb" >&5
  24067. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  24068. saved_libs="${LIBS}"
  24069. saved_cppflags="${CPPFLAGS}"
  24070. if test "x${VPB_DIR}" != "x"; then
  24071. if test -d ${VPB_DIR}/lib; then
  24072. vpblibdir=${VPB_DIR}/lib
  24073. else
  24074. vpblibdir=${VPB_DIR}
  24075. fi
  24076. LIBS="${LIBS} -L${vpblibdir}"
  24077. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  24078. fi
  24079. LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
  24080. CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
  24081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24082. /* end confdefs.h. */
  24083. #include <vpbapi.h>
  24084. int
  24085. main ()
  24086. {
  24087. int q = vpb_open(0,0);
  24088. ;
  24089. return 0;
  24090. }
  24091. _ACEOF
  24092. if ac_fn_cxx_try_link "$LINENO"; then :
  24093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24094. $as_echo "yes" >&6; }
  24095. ac_cv_lib_vpb_vpb_open="yes"
  24096. else
  24097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24098. $as_echo "no" >&6; }
  24099. ac_cv_lib_vpb_vpb_open="no"
  24100. fi
  24101. rm -f core conftest.err conftest.$ac_objext \
  24102. conftest$ac_exeext conftest.$ac_ext
  24103. LIBS="${saved_libs}"
  24104. CPPFLAGS="${saved_cppflags}"
  24105. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  24106. VPB_LIB="-lvpb"
  24107. if test "${VPB_DIR}" != ""; then
  24108. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  24109. VPB_INCLUDE="-I${VPB_DIR}/include"
  24110. fi
  24111. PBX_VPB=1
  24112. $as_echo "#define HAVE_VPB 1" >>confdefs.h
  24113. fi
  24114. fi
  24115. ac_ext=c
  24116. ac_cpp='$CPP $CPPFLAGS'
  24117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24120. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  24121. pbxlibdir=""
  24122. # if --with-ZLIB=DIR has been specified, use it.
  24123. if test "x${ZLIB_DIR}" != "x"; then
  24124. if test -d ${ZLIB_DIR}/lib; then
  24125. pbxlibdir="-L${ZLIB_DIR}/lib"
  24126. else
  24127. pbxlibdir="-L${ZLIB_DIR}"
  24128. fi
  24129. fi
  24130. pbxfuncname="compress"
  24131. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24132. AST_ZLIB_FOUND=yes
  24133. else
  24134. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24135. CFLAGS="${CFLAGS} "
  24136. as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
  24137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lz" >&5
  24138. $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
  24139. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  24140. $as_echo_n "(cached) " >&6
  24141. else
  24142. ac_check_lib_save_LIBS=$LIBS
  24143. LIBS="-lz ${pbxlibdir} $LIBS"
  24144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24145. /* end confdefs.h. */
  24146. /* Override any GCC internal prototype to avoid an error.
  24147. Use char because int might match the return type of a GCC
  24148. builtin and then its argument prototype would still apply. */
  24149. #ifdef __cplusplus
  24150. extern "C"
  24151. #endif
  24152. char ${pbxfuncname} ();
  24153. int
  24154. main ()
  24155. {
  24156. return ${pbxfuncname} ();
  24157. ;
  24158. return 0;
  24159. }
  24160. _ACEOF
  24161. if ac_fn_c_try_link "$LINENO"; then :
  24162. eval "$as_ac_Lib=yes"
  24163. else
  24164. eval "$as_ac_Lib=no"
  24165. fi
  24166. rm -f core conftest.err conftest.$ac_objext \
  24167. conftest$ac_exeext conftest.$ac_ext
  24168. LIBS=$ac_check_lib_save_LIBS
  24169. fi
  24170. eval ac_res=\$$as_ac_Lib
  24171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24172. $as_echo "$ac_res" >&6; }
  24173. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24174. AST_ZLIB_FOUND=yes
  24175. else
  24176. AST_ZLIB_FOUND=no
  24177. fi
  24178. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24179. fi
  24180. # now check for the header.
  24181. if test "${AST_ZLIB_FOUND}" = "yes"; then
  24182. ZLIB_LIB="${pbxlibdir} -lz "
  24183. # if --with-ZLIB=DIR has been specified, use it.
  24184. if test "x${ZLIB_DIR}" != "x"; then
  24185. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  24186. fi
  24187. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  24188. if test "xzlib.h" = "x" ; then # no header, assume found
  24189. ZLIB_HEADER_FOUND="1"
  24190. else # check for the header
  24191. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24192. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  24193. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  24194. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  24195. ZLIB_HEADER_FOUND=1
  24196. else
  24197. ZLIB_HEADER_FOUND=0
  24198. fi
  24199. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24200. fi
  24201. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  24202. ZLIB_LIB=""
  24203. ZLIB_INCLUDE=""
  24204. else
  24205. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24206. ZLIB_LIB=""
  24207. fi
  24208. PBX_ZLIB=1
  24209. cat >>confdefs.h <<_ACEOF
  24210. #define HAVE_ZLIB 1
  24211. _ACEOF
  24212. fi
  24213. fi
  24214. fi
  24215. EDITLINE_LIB=""
  24216. if test "x$TERMCAP_LIB" != "x" ; then
  24217. EDITLINE_LIB="$TERMCAP_LIB"
  24218. elif test "x$TINFO_LIB" != "x" ; then
  24219. EDITLINE_LIB="$TINFO_LIB"
  24220. elif test "x$CURSES_LIB" != "x" ; then
  24221. EDITLINE_LIB="$CURSES_LIB"
  24222. elif test "x$NCURSES_LIB" != "x" ; then
  24223. EDITLINE_LIB="$NCURSES_LIB"
  24224. else
  24225. as_fn_error $? "*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" "$LINENO" 5
  24226. fi
  24227. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  24228. # Does ODBC support wide characters?
  24229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ODBC has support for Unicode types" >&5
  24230. $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
  24231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24232. /* end confdefs.h. */
  24233. #include <sql.h>
  24234. #include <sqlext.h>
  24235. int
  24236. main ()
  24237. {
  24238. int foo = SQL_WCHAR
  24239. ;
  24240. return 0;
  24241. }
  24242. _ACEOF
  24243. if ac_fn_c_try_link "$LINENO"; then :
  24244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24245. $as_echo "yes" >&6; }
  24246. $as_echo "#define HAVE_ODBC_WCHAR 1" >>confdefs.h
  24247. else
  24248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24249. $as_echo "no" >&6; }
  24250. fi
  24251. rm -f core conftest.err conftest.$ac_objext \
  24252. conftest$ac_exeext conftest.$ac_ext
  24253. fi
  24254. ac_fn_c_check_header_mongrel "$LINENO" "h323.h" "ac_cv_header_h323_h" "$ac_includes_default"
  24255. if test "x$ac_cv_header_h323_h" = x""yes; then :
  24256. PBX_H323=1
  24257. else
  24258. PBX_H323=0
  24259. fi
  24260. ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  24261. if test "x$ac_cv_header_linux_compiler_h" = x""yes; then :
  24262. cat >>confdefs.h <<_ACEOF
  24263. #define HAVE_LINUX_COMPILER_H 1
  24264. _ACEOF
  24265. fi
  24266. ac_fn_c_check_header_compile "$LINENO" "linux/ixjuser.h" "ac_cv_header_linux_ixjuser_h" "
  24267. #include <linux/version.h>
  24268. #ifdef HAVE_LINUX_COMPILER_H
  24269. #include <linux/compiler.h>
  24270. #endif
  24271. "
  24272. if test "x$ac_cv_header_linux_ixjuser_h" = x""yes; then :
  24273. PBX_IXJUSER=1
  24274. else
  24275. PBX_IXJUSER=0
  24276. fi
  24277. # Used in res/res_pktccops
  24278. if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
  24279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL in sys/socket.h" >&5
  24280. $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
  24281. saved_cppflags="${CPPFLAGS}"
  24282. if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
  24283. MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
  24284. fi
  24285. CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
  24286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24287. /* end confdefs.h. */
  24288. #include <sys/socket.h>
  24289. int
  24290. main ()
  24291. {
  24292. #if defined(MSG_NOSIGNAL)
  24293. int foo = 0;
  24294. #else
  24295. int foo = bar;
  24296. #endif
  24297. 0
  24298. ;
  24299. return 0;
  24300. }
  24301. _ACEOF
  24302. if ac_fn_c_try_compile "$LINENO"; then :
  24303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24304. $as_echo "yes" >&6; }
  24305. PBX_MSG_NOSIGNAL=1
  24306. $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  24307. else
  24308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24309. $as_echo "no" >&6; }
  24310. fi
  24311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24312. CPPFLAGS="${saved_cppflags}"
  24313. fi
  24314. if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
  24315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE in sys/socket.h" >&5
  24316. $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
  24317. saved_cppflags="${CPPFLAGS}"
  24318. if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
  24319. SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
  24320. fi
  24321. CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
  24322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24323. /* end confdefs.h. */
  24324. #include <sys/socket.h>
  24325. int
  24326. main ()
  24327. {
  24328. #if defined(SO_NOSIGPIPE)
  24329. int foo = 0;
  24330. #else
  24331. int foo = bar;
  24332. #endif
  24333. 0
  24334. ;
  24335. return 0;
  24336. }
  24337. _ACEOF
  24338. if ac_fn_c_try_compile "$LINENO"; then :
  24339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24340. $as_echo "yes" >&6; }
  24341. PBX_SO_NOSIGPIPE=1
  24342. $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
  24343. else
  24344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24345. $as_echo "no" >&6; }
  24346. fi
  24347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24348. CPPFLAGS="${saved_cppflags}"
  24349. fi
  24350. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  24351. PBX_SDL=0
  24352. if test -n "$ac_tool_prefix"; then
  24353. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  24354. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  24355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24356. $as_echo_n "checking for $ac_word... " >&6; }
  24357. if test "${ac_cv_path_CONFIG_SDL+set}" = set; then :
  24358. $as_echo_n "(cached) " >&6
  24359. else
  24360. case $CONFIG_SDL in
  24361. [\\/]* | ?:[\\/]*)
  24362. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  24363. ;;
  24364. *)
  24365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24366. as_dummy="${SDL_DIR}/bin:$PATH"
  24367. for as_dir in $as_dummy
  24368. do
  24369. IFS=$as_save_IFS
  24370. test -z "$as_dir" && as_dir=.
  24371. for ac_exec_ext in '' $ac_executable_extensions; do
  24372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24373. ac_cv_path_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  24374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24375. break 2
  24376. fi
  24377. done
  24378. done
  24379. IFS=$as_save_IFS
  24380. ;;
  24381. esac
  24382. fi
  24383. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  24384. if test -n "$CONFIG_SDL"; then
  24385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_SDL" >&5
  24386. $as_echo "$CONFIG_SDL" >&6; }
  24387. else
  24388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24389. $as_echo "no" >&6; }
  24390. fi
  24391. fi
  24392. if test -z "$ac_cv_path_CONFIG_SDL"; then
  24393. ac_pt_CONFIG_SDL=$CONFIG_SDL
  24394. # Extract the first word of "sdl-config", so it can be a program name with args.
  24395. set dummy sdl-config; ac_word=$2
  24396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24397. $as_echo_n "checking for $ac_word... " >&6; }
  24398. if test "${ac_cv_path_ac_pt_CONFIG_SDL+set}" = set; then :
  24399. $as_echo_n "(cached) " >&6
  24400. else
  24401. case $ac_pt_CONFIG_SDL in
  24402. [\\/]* | ?:[\\/]*)
  24403. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  24404. ;;
  24405. *)
  24406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24407. as_dummy="${SDL_DIR}/bin:$PATH"
  24408. for as_dir in $as_dummy
  24409. do
  24410. IFS=$as_save_IFS
  24411. test -z "$as_dir" && as_dir=.
  24412. for ac_exec_ext in '' $ac_executable_extensions; do
  24413. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24414. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  24415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24416. break 2
  24417. fi
  24418. done
  24419. done
  24420. IFS=$as_save_IFS
  24421. ;;
  24422. esac
  24423. fi
  24424. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  24425. if test -n "$ac_pt_CONFIG_SDL"; then
  24426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_SDL" >&5
  24427. $as_echo "$ac_pt_CONFIG_SDL" >&6; }
  24428. else
  24429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24430. $as_echo "no" >&6; }
  24431. fi
  24432. if test "x$ac_pt_CONFIG_SDL" = x; then
  24433. CONFIG_SDL="No"
  24434. else
  24435. case $cross_compiling:$ac_tool_warned in
  24436. yes:)
  24437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24438. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24439. ac_tool_warned=yes ;;
  24440. esac
  24441. CONFIG_SDL=$ac_pt_CONFIG_SDL
  24442. fi
  24443. else
  24444. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  24445. fi
  24446. if test ! "x${CONFIG_SDL}" = xNo; then
  24447. if test x"" = x ; then A=--cflags ; else A="" ; fi
  24448. SDL_INCLUDE=$(${CONFIG_SDL} $A)
  24449. if test x"" = x ; then A=--libs ; else A="" ; fi
  24450. SDL_LIB=$(${CONFIG_SDL} $A)
  24451. if test x"" != x ; then
  24452. saved_cppflags="${CPPFLAGS}"
  24453. if test "x${SDL_DIR}" != "x"; then
  24454. SDL_INCLUDE="-I${SDL_DIR}/include"
  24455. fi
  24456. CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
  24457. saved_libs="${LIBS}"
  24458. LIBS="${SDL_LIB}"
  24459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24460. /* end confdefs.h. */
  24461. int
  24462. main ()
  24463. {
  24464. ;
  24465. ;
  24466. return 0;
  24467. }
  24468. _ACEOF
  24469. if ac_fn_c_try_link "$LINENO"; then :
  24470. PBX_SDL=1
  24471. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  24472. fi
  24473. rm -f core conftest.err conftest.$ac_objext \
  24474. conftest$ac_exeext conftest.$ac_ext
  24475. CPPFLAGS="${saved_cppflags}"
  24476. LIBS="${saved_libs}"
  24477. else
  24478. PBX_SDL=1
  24479. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  24480. fi
  24481. fi
  24482. fi
  24483. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  24484. pbxlibdir=""
  24485. # if --with-SDL_IMAGE=DIR has been specified, use it.
  24486. if test "x${SDL_IMAGE_DIR}" != "x"; then
  24487. if test -d ${SDL_IMAGE_DIR}/lib; then
  24488. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  24489. else
  24490. pbxlibdir="-L${SDL_IMAGE_DIR}"
  24491. fi
  24492. fi
  24493. pbxfuncname="IMG_Load"
  24494. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24495. AST_SDL_IMAGE_FOUND=yes
  24496. else
  24497. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24498. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  24499. as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
  24500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lSDL_image" >&5
  24501. $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
  24502. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  24503. $as_echo_n "(cached) " >&6
  24504. else
  24505. ac_check_lib_save_LIBS=$LIBS
  24506. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  24507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24508. /* end confdefs.h. */
  24509. /* Override any GCC internal prototype to avoid an error.
  24510. Use char because int might match the return type of a GCC
  24511. builtin and then its argument prototype would still apply. */
  24512. #ifdef __cplusplus
  24513. extern "C"
  24514. #endif
  24515. char ${pbxfuncname} ();
  24516. int
  24517. main ()
  24518. {
  24519. return ${pbxfuncname} ();
  24520. ;
  24521. return 0;
  24522. }
  24523. _ACEOF
  24524. if ac_fn_c_try_link "$LINENO"; then :
  24525. eval "$as_ac_Lib=yes"
  24526. else
  24527. eval "$as_ac_Lib=no"
  24528. fi
  24529. rm -f core conftest.err conftest.$ac_objext \
  24530. conftest$ac_exeext conftest.$ac_ext
  24531. LIBS=$ac_check_lib_save_LIBS
  24532. fi
  24533. eval ac_res=\$$as_ac_Lib
  24534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24535. $as_echo "$ac_res" >&6; }
  24536. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24537. AST_SDL_IMAGE_FOUND=yes
  24538. else
  24539. AST_SDL_IMAGE_FOUND=no
  24540. fi
  24541. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24542. fi
  24543. # now check for the header.
  24544. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  24545. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  24546. # if --with-SDL_IMAGE=DIR has been specified, use it.
  24547. if test "x${SDL_IMAGE_DIR}" != "x"; then
  24548. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  24549. fi
  24550. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  24551. if test "xSDL_image.h" = "x" ; then # no header, assume found
  24552. SDL_IMAGE_HEADER_FOUND="1"
  24553. else # check for the header
  24554. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24555. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  24556. ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
  24557. if test "x$ac_cv_header_SDL_image_h" = x""yes; then :
  24558. SDL_IMAGE_HEADER_FOUND=1
  24559. else
  24560. SDL_IMAGE_HEADER_FOUND=0
  24561. fi
  24562. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24563. fi
  24564. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  24565. SDL_IMAGE_LIB=""
  24566. SDL_IMAGE_INCLUDE=""
  24567. else
  24568. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24569. SDL_IMAGE_LIB=""
  24570. fi
  24571. PBX_SDL_IMAGE=1
  24572. cat >>confdefs.h <<_ACEOF
  24573. #define HAVE_SDL_IMAGE 1
  24574. _ACEOF
  24575. fi
  24576. fi
  24577. fi
  24578. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  24579. pbxlibdir=""
  24580. # if --with-FFMPEG=DIR has been specified, use it.
  24581. if test "x${FFMPEG_DIR}" != "x"; then
  24582. if test -d ${FFMPEG_DIR}/lib; then
  24583. pbxlibdir="-L${FFMPEG_DIR}/lib"
  24584. else
  24585. pbxlibdir="-L${FFMPEG_DIR}"
  24586. fi
  24587. fi
  24588. pbxfuncname="sws_getContext"
  24589. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24590. AST_FFMPEG_FOUND=yes
  24591. else
  24592. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24593. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  24594. as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
  24595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lavcodec" >&5
  24596. $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
  24597. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  24598. $as_echo_n "(cached) " >&6
  24599. else
  24600. ac_check_lib_save_LIBS=$LIBS
  24601. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  24602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24603. /* end confdefs.h. */
  24604. /* Override any GCC internal prototype to avoid an error.
  24605. Use char because int might match the return type of a GCC
  24606. builtin and then its argument prototype would still apply. */
  24607. #ifdef __cplusplus
  24608. extern "C"
  24609. #endif
  24610. char ${pbxfuncname} ();
  24611. int
  24612. main ()
  24613. {
  24614. return ${pbxfuncname} ();
  24615. ;
  24616. return 0;
  24617. }
  24618. _ACEOF
  24619. if ac_fn_c_try_link "$LINENO"; then :
  24620. eval "$as_ac_Lib=yes"
  24621. else
  24622. eval "$as_ac_Lib=no"
  24623. fi
  24624. rm -f core conftest.err conftest.$ac_objext \
  24625. conftest$ac_exeext conftest.$ac_ext
  24626. LIBS=$ac_check_lib_save_LIBS
  24627. fi
  24628. eval ac_res=\$$as_ac_Lib
  24629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24630. $as_echo "$ac_res" >&6; }
  24631. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24632. AST_FFMPEG_FOUND=yes
  24633. else
  24634. AST_FFMPEG_FOUND=no
  24635. fi
  24636. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24637. fi
  24638. # now check for the header.
  24639. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  24640. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  24641. # if --with-FFMPEG=DIR has been specified, use it.
  24642. if test "x${FFMPEG_DIR}" != "x"; then
  24643. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  24644. fi
  24645. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  24646. if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
  24647. FFMPEG_HEADER_FOUND="1"
  24648. else # check for the header
  24649. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24650. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  24651. ac_fn_c_check_header_mongrel "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default"
  24652. if test "x$ac_cv_header_ffmpeg_avcodec_h" = x""yes; then :
  24653. FFMPEG_HEADER_FOUND=1
  24654. else
  24655. FFMPEG_HEADER_FOUND=0
  24656. fi
  24657. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24658. fi
  24659. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  24660. FFMPEG_LIB=""
  24661. FFMPEG_INCLUDE=""
  24662. else
  24663. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24664. FFMPEG_LIB=""
  24665. fi
  24666. PBX_FFMPEG=1
  24667. cat >>confdefs.h <<_ACEOF
  24668. #define HAVE_FFMPEG 1
  24669. _ACEOF
  24670. fi
  24671. fi
  24672. fi
  24673. # possible places for video4linux version 1
  24674. ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
  24675. if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
  24676. cat >>confdefs.h <<_ACEOF
  24677. #define HAVE_VIDEODEV_H 1
  24678. _ACEOF
  24679. fi
  24680. # possible places for X11
  24681. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  24682. pbxlibdir=""
  24683. # if --with-X11=DIR has been specified, use it.
  24684. if test "x${X11_DIR}" != "x"; then
  24685. if test -d ${X11_DIR}/lib; then
  24686. pbxlibdir="-L${X11_DIR}/lib"
  24687. else
  24688. pbxlibdir="-L${X11_DIR}"
  24689. fi
  24690. fi
  24691. pbxfuncname="XOpenDisplay"
  24692. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24693. AST_X11_FOUND=yes
  24694. else
  24695. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24696. CFLAGS="${CFLAGS} "
  24697. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  24698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  24699. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  24700. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  24701. $as_echo_n "(cached) " >&6
  24702. else
  24703. ac_check_lib_save_LIBS=$LIBS
  24704. LIBS="-lX11 ${pbxlibdir} $LIBS"
  24705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24706. /* end confdefs.h. */
  24707. /* Override any GCC internal prototype to avoid an error.
  24708. Use char because int might match the return type of a GCC
  24709. builtin and then its argument prototype would still apply. */
  24710. #ifdef __cplusplus
  24711. extern "C"
  24712. #endif
  24713. char ${pbxfuncname} ();
  24714. int
  24715. main ()
  24716. {
  24717. return ${pbxfuncname} ();
  24718. ;
  24719. return 0;
  24720. }
  24721. _ACEOF
  24722. if ac_fn_c_try_link "$LINENO"; then :
  24723. eval "$as_ac_Lib=yes"
  24724. else
  24725. eval "$as_ac_Lib=no"
  24726. fi
  24727. rm -f core conftest.err conftest.$ac_objext \
  24728. conftest$ac_exeext conftest.$ac_ext
  24729. LIBS=$ac_check_lib_save_LIBS
  24730. fi
  24731. eval ac_res=\$$as_ac_Lib
  24732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24733. $as_echo "$ac_res" >&6; }
  24734. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24735. AST_X11_FOUND=yes
  24736. else
  24737. AST_X11_FOUND=no
  24738. fi
  24739. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24740. fi
  24741. # now check for the header.
  24742. if test "${AST_X11_FOUND}" = "yes"; then
  24743. X11_LIB="${pbxlibdir} -lX11 "
  24744. # if --with-X11=DIR has been specified, use it.
  24745. if test "x${X11_DIR}" != "x"; then
  24746. X11_INCLUDE="-I${X11_DIR}/include"
  24747. fi
  24748. X11_INCLUDE="${X11_INCLUDE} "
  24749. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  24750. X11_HEADER_FOUND="1"
  24751. else # check for the header
  24752. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24753. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  24754. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  24755. if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then :
  24756. X11_HEADER_FOUND=1
  24757. else
  24758. X11_HEADER_FOUND=0
  24759. fi
  24760. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24761. fi
  24762. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  24763. X11_LIB=""
  24764. X11_INCLUDE=""
  24765. else
  24766. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24767. X11_LIB=""
  24768. fi
  24769. PBX_X11=1
  24770. cat >>confdefs.h <<_ACEOF
  24771. #define HAVE_X11 1
  24772. _ACEOF
  24773. cat >>confdefs.h <<_ACEOF
  24774. #define HAVE_X11_VERSION standard_path
  24775. _ACEOF
  24776. fi
  24777. fi
  24778. fi
  24779. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  24780. pbxlibdir=""
  24781. # if --with-X11=DIR has been specified, use it.
  24782. if test "x${X11_DIR}" != "x"; then
  24783. if test -d ${X11_DIR}/lib; then
  24784. pbxlibdir="-L${X11_DIR}/lib"
  24785. else
  24786. pbxlibdir="-L${X11_DIR}"
  24787. fi
  24788. fi
  24789. pbxfuncname="XOpenDisplay"
  24790. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24791. AST_X11_FOUND=yes
  24792. else
  24793. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24794. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  24795. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  24796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  24797. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  24798. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  24799. $as_echo_n "(cached) " >&6
  24800. else
  24801. ac_check_lib_save_LIBS=$LIBS
  24802. LIBS="-lX11 ${pbxlibdir} $LIBS"
  24803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24804. /* end confdefs.h. */
  24805. /* Override any GCC internal prototype to avoid an error.
  24806. Use char because int might match the return type of a GCC
  24807. builtin and then its argument prototype would still apply. */
  24808. #ifdef __cplusplus
  24809. extern "C"
  24810. #endif
  24811. char ${pbxfuncname} ();
  24812. int
  24813. main ()
  24814. {
  24815. return ${pbxfuncname} ();
  24816. ;
  24817. return 0;
  24818. }
  24819. _ACEOF
  24820. if ac_fn_c_try_link "$LINENO"; then :
  24821. eval "$as_ac_Lib=yes"
  24822. else
  24823. eval "$as_ac_Lib=no"
  24824. fi
  24825. rm -f core conftest.err conftest.$ac_objext \
  24826. conftest$ac_exeext conftest.$ac_ext
  24827. LIBS=$ac_check_lib_save_LIBS
  24828. fi
  24829. eval ac_res=\$$as_ac_Lib
  24830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24831. $as_echo "$ac_res" >&6; }
  24832. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24833. AST_X11_FOUND=yes
  24834. else
  24835. AST_X11_FOUND=no
  24836. fi
  24837. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24838. fi
  24839. # now check for the header.
  24840. if test "${AST_X11_FOUND}" = "yes"; then
  24841. X11_LIB="${pbxlibdir} -lX11 "
  24842. # if --with-X11=DIR has been specified, use it.
  24843. if test "x${X11_DIR}" != "x"; then
  24844. X11_INCLUDE="-I${X11_DIR}/include"
  24845. fi
  24846. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  24847. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  24848. X11_HEADER_FOUND="1"
  24849. else # check for the header
  24850. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24851. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  24852. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  24853. if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then :
  24854. X11_HEADER_FOUND=1
  24855. else
  24856. X11_HEADER_FOUND=0
  24857. fi
  24858. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24859. fi
  24860. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  24861. X11_LIB=""
  24862. X11_INCLUDE=""
  24863. else
  24864. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24865. X11_LIB=""
  24866. fi
  24867. PBX_X11=1
  24868. cat >>confdefs.h <<_ACEOF
  24869. #define HAVE_X11 1
  24870. _ACEOF
  24871. cat >>confdefs.h <<_ACEOF
  24872. #define HAVE_X11_VERSION X11R6
  24873. _ACEOF
  24874. fi
  24875. fi
  24876. fi
  24877. PBX_LAUNCHD=0
  24878. if test "${cross_compiling}" = "no";
  24879. then
  24880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
  24881. $as_echo_n "checking for /sbin/launchd... " >&6; }
  24882. if test "${ac_cv_file__sbin_launchd+set}" = set; then :
  24883. $as_echo_n "(cached) " >&6
  24884. else
  24885. test "$cross_compiling" = yes &&
  24886. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24887. if test -r "/sbin/launchd"; then
  24888. ac_cv_file__sbin_launchd=yes
  24889. else
  24890. ac_cv_file__sbin_launchd=no
  24891. fi
  24892. fi
  24893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
  24894. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  24895. if test "x$ac_cv_file__sbin_launchd" = x""yes; then :
  24896. $as_echo "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
  24897. fi
  24898. PBX_LAUNCHD=1
  24899. fi
  24900. PBX_GTK2=0
  24901. if test "${PKGCONFIG}" != "No"; then
  24902. GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
  24903. GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
  24904. PBX_GTK2=1
  24905. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  24906. fi
  24907. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  24908. # or iODBC
  24909. PBX_GENERIC_ODBC=0
  24910. if test "${PBX_UNIXODBC}" = 1; then
  24911. PBX_GENERIC_ODBC=1
  24912. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  24913. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  24914. elif test "${PBX_IODBC}" = 1; then
  24915. PBX_GENERIC_ODBC=1
  24916. GENERIC_ODBC_LIB="${IODBC_LIB}"
  24917. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  24918. fi
  24919. PBX_SYSLOG=0
  24920. if test "${ac_cv_header_syslog_h}" = "yes"; then
  24921. # syslog facilities
  24922. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  24923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTH in syslog.h" >&5
  24924. $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
  24925. saved_cppflags="${CPPFLAGS}"
  24926. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  24927. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  24928. fi
  24929. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  24930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24931. /* end confdefs.h. */
  24932. #include <syslog.h>
  24933. int
  24934. main ()
  24935. {
  24936. #if defined(LOG_AUTH)
  24937. int foo = 0;
  24938. #else
  24939. int foo = bar;
  24940. #endif
  24941. 0
  24942. ;
  24943. return 0;
  24944. }
  24945. _ACEOF
  24946. if ac_fn_c_try_compile "$LINENO"; then :
  24947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24948. $as_echo "yes" >&6; }
  24949. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  24950. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTH 1" >>confdefs.h
  24951. else
  24952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24953. $as_echo "no" >&6; }
  24954. fi
  24955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24956. CPPFLAGS="${saved_cppflags}"
  24957. fi
  24958. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  24959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTHPRIV in syslog.h" >&5
  24960. $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  24961. saved_cppflags="${CPPFLAGS}"
  24962. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  24963. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  24964. fi
  24965. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  24966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24967. /* end confdefs.h. */
  24968. #include <syslog.h>
  24969. int
  24970. main ()
  24971. {
  24972. #if defined(LOG_AUTHPRIV)
  24973. int foo = 0;
  24974. #else
  24975. int foo = bar;
  24976. #endif
  24977. 0
  24978. ;
  24979. return 0;
  24980. }
  24981. _ACEOF
  24982. if ac_fn_c_try_compile "$LINENO"; then :
  24983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24984. $as_echo "yes" >&6; }
  24985. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  24986. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1" >>confdefs.h
  24987. else
  24988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24989. $as_echo "no" >&6; }
  24990. fi
  24991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24992. CPPFLAGS="${saved_cppflags}"
  24993. fi
  24994. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  24995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_CRON in syslog.h" >&5
  24996. $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
  24997. saved_cppflags="${CPPFLAGS}"
  24998. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  24999. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  25000. fi
  25001. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  25002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25003. /* end confdefs.h. */
  25004. #include <syslog.h>
  25005. int
  25006. main ()
  25007. {
  25008. #if defined(LOG_CRON)
  25009. int foo = 0;
  25010. #else
  25011. int foo = bar;
  25012. #endif
  25013. 0
  25014. ;
  25015. return 0;
  25016. }
  25017. _ACEOF
  25018. if ac_fn_c_try_compile "$LINENO"; then :
  25019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25020. $as_echo "yes" >&6; }
  25021. PBX_SYSLOG_FACILITY_LOG_CRON=1
  25022. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_CRON 1" >>confdefs.h
  25023. else
  25024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25025. $as_echo "no" >&6; }
  25026. fi
  25027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25028. CPPFLAGS="${saved_cppflags}"
  25029. fi
  25030. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  25031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_DAEMON in syslog.h" >&5
  25032. $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
  25033. saved_cppflags="${CPPFLAGS}"
  25034. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  25035. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  25036. fi
  25037. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  25038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25039. /* end confdefs.h. */
  25040. #include <syslog.h>
  25041. int
  25042. main ()
  25043. {
  25044. #if defined(LOG_DAEMON)
  25045. int foo = 0;
  25046. #else
  25047. int foo = bar;
  25048. #endif
  25049. 0
  25050. ;
  25051. return 0;
  25052. }
  25053. _ACEOF
  25054. if ac_fn_c_try_compile "$LINENO"; then :
  25055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25056. $as_echo "yes" >&6; }
  25057. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  25058. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1" >>confdefs.h
  25059. else
  25060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25061. $as_echo "no" >&6; }
  25062. fi
  25063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25064. CPPFLAGS="${saved_cppflags}"
  25065. fi
  25066. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  25067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_FTP in syslog.h" >&5
  25068. $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
  25069. saved_cppflags="${CPPFLAGS}"
  25070. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  25071. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  25072. fi
  25073. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  25074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25075. /* end confdefs.h. */
  25076. #include <syslog.h>
  25077. int
  25078. main ()
  25079. {
  25080. #if defined(LOG_FTP)
  25081. int foo = 0;
  25082. #else
  25083. int foo = bar;
  25084. #endif
  25085. 0
  25086. ;
  25087. return 0;
  25088. }
  25089. _ACEOF
  25090. if ac_fn_c_try_compile "$LINENO"; then :
  25091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25092. $as_echo "yes" >&6; }
  25093. PBX_SYSLOG_FACILITY_LOG_FTP=1
  25094. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_FTP 1" >>confdefs.h
  25095. else
  25096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25097. $as_echo "no" >&6; }
  25098. fi
  25099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25100. CPPFLAGS="${saved_cppflags}"
  25101. fi
  25102. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  25103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_KERN in syslog.h" >&5
  25104. $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
  25105. saved_cppflags="${CPPFLAGS}"
  25106. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  25107. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  25108. fi
  25109. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  25110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25111. /* end confdefs.h. */
  25112. #include <syslog.h>
  25113. int
  25114. main ()
  25115. {
  25116. #if defined(LOG_KERN)
  25117. int foo = 0;
  25118. #else
  25119. int foo = bar;
  25120. #endif
  25121. 0
  25122. ;
  25123. return 0;
  25124. }
  25125. _ACEOF
  25126. if ac_fn_c_try_compile "$LINENO"; then :
  25127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25128. $as_echo "yes" >&6; }
  25129. PBX_SYSLOG_FACILITY_LOG_KERN=1
  25130. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_KERN 1" >>confdefs.h
  25131. else
  25132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25133. $as_echo "no" >&6; }
  25134. fi
  25135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25136. CPPFLAGS="${saved_cppflags}"
  25137. fi
  25138. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  25139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_LPR in syslog.h" >&5
  25140. $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
  25141. saved_cppflags="${CPPFLAGS}"
  25142. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  25143. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  25144. fi
  25145. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  25146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25147. /* end confdefs.h. */
  25148. #include <syslog.h>
  25149. int
  25150. main ()
  25151. {
  25152. #if defined(LOG_LPR)
  25153. int foo = 0;
  25154. #else
  25155. int foo = bar;
  25156. #endif
  25157. 0
  25158. ;
  25159. return 0;
  25160. }
  25161. _ACEOF
  25162. if ac_fn_c_try_compile "$LINENO"; then :
  25163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25164. $as_echo "yes" >&6; }
  25165. PBX_SYSLOG_FACILITY_LOG_LPR=1
  25166. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_LPR 1" >>confdefs.h
  25167. else
  25168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25169. $as_echo "no" >&6; }
  25170. fi
  25171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25172. CPPFLAGS="${saved_cppflags}"
  25173. fi
  25174. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  25175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_MAIL in syslog.h" >&5
  25176. $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
  25177. saved_cppflags="${CPPFLAGS}"
  25178. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  25179. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  25180. fi
  25181. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  25182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25183. /* end confdefs.h. */
  25184. #include <syslog.h>
  25185. int
  25186. main ()
  25187. {
  25188. #if defined(LOG_MAIL)
  25189. int foo = 0;
  25190. #else
  25191. int foo = bar;
  25192. #endif
  25193. 0
  25194. ;
  25195. return 0;
  25196. }
  25197. _ACEOF
  25198. if ac_fn_c_try_compile "$LINENO"; then :
  25199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25200. $as_echo "yes" >&6; }
  25201. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  25202. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_MAIL 1" >>confdefs.h
  25203. else
  25204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25205. $as_echo "no" >&6; }
  25206. fi
  25207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25208. CPPFLAGS="${saved_cppflags}"
  25209. fi
  25210. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  25211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_NEWS in syslog.h" >&5
  25212. $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
  25213. saved_cppflags="${CPPFLAGS}"
  25214. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  25215. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  25216. fi
  25217. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  25218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25219. /* end confdefs.h. */
  25220. #include <syslog.h>
  25221. int
  25222. main ()
  25223. {
  25224. #if defined(LOG_NEWS)
  25225. int foo = 0;
  25226. #else
  25227. int foo = bar;
  25228. #endif
  25229. 0
  25230. ;
  25231. return 0;
  25232. }
  25233. _ACEOF
  25234. if ac_fn_c_try_compile "$LINENO"; then :
  25235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25236. $as_echo "yes" >&6; }
  25237. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  25238. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_NEWS 1" >>confdefs.h
  25239. else
  25240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25241. $as_echo "no" >&6; }
  25242. fi
  25243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25244. CPPFLAGS="${saved_cppflags}"
  25245. fi
  25246. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  25247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_SYSLOG in syslog.h" >&5
  25248. $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
  25249. saved_cppflags="${CPPFLAGS}"
  25250. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  25251. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  25252. fi
  25253. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  25254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25255. /* end confdefs.h. */
  25256. #include <syslog.h>
  25257. int
  25258. main ()
  25259. {
  25260. #if defined(LOG_SYSLOG)
  25261. int foo = 0;
  25262. #else
  25263. int foo = bar;
  25264. #endif
  25265. 0
  25266. ;
  25267. return 0;
  25268. }
  25269. _ACEOF
  25270. if ac_fn_c_try_compile "$LINENO"; then :
  25271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25272. $as_echo "yes" >&6; }
  25273. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  25274. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1" >>confdefs.h
  25275. else
  25276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25277. $as_echo "no" >&6; }
  25278. fi
  25279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25280. CPPFLAGS="${saved_cppflags}"
  25281. fi
  25282. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  25283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_UUCP in syslog.h" >&5
  25284. $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
  25285. saved_cppflags="${CPPFLAGS}"
  25286. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  25287. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  25288. fi
  25289. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  25290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25291. /* end confdefs.h. */
  25292. #include <syslog.h>
  25293. int
  25294. main ()
  25295. {
  25296. #if defined(LOG_UUCP)
  25297. int foo = 0;
  25298. #else
  25299. int foo = bar;
  25300. #endif
  25301. 0
  25302. ;
  25303. return 0;
  25304. }
  25305. _ACEOF
  25306. if ac_fn_c_try_compile "$LINENO"; then :
  25307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25308. $as_echo "yes" >&6; }
  25309. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  25310. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_UUCP 1" >>confdefs.h
  25311. else
  25312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25313. $as_echo "no" >&6; }
  25314. fi
  25315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25316. CPPFLAGS="${saved_cppflags}"
  25317. fi
  25318. PBX_SYSLOG=1
  25319. fi
  25320. if test -f makeopts; then
  25321. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  25322. else
  25323. touch makeopts.acbak
  25324. fi
  25325. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
  25326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mandatory modules: ${ac_mandatory_list}" >&5
  25327. $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  25328. err=0;
  25329. for i in ${ac_mandatory_list}; do
  25330. eval "a=\${PBX_$i}"
  25331. if test "x${a}" = "x1" ; then continue; fi
  25332. if test ${err} = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
  25333. $as_echo "fail" >&6; } ; fi
  25334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  25335. $as_echo "" >&6; }
  25336. eval "a=\${${i}_OPTION}"
  25337. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  25338. $as_echo "$as_me: ***" >&6;}
  25339. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The $i installation appears to be missing or broken." >&5
  25340. $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  25341. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  25342. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  25343. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-${a}." >&5
  25344. $as_echo "$as_me: *** including --without-${a}." >&6;}
  25345. err=1
  25346. done
  25347. if test $err = 1 ; then exit 1; fi
  25348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  25349. $as_echo "ok" >&6; }
  25350. if test -f build_tools/menuselect-deps; then
  25351. # extract old values of all PBX_ variables from menuselect-deps
  25352. # and preserve them so that menuselect can determine whether
  25353. # any previously-met dependencies are no longer met and warn
  25354. # the user appropriately
  25355. while IFS="=:" read var val old_val; do
  25356. eval "PBX_${var}=\${PBX_${var}}:${val}"
  25357. done < build_tools/menuselect-deps
  25358. fi
  25359. cat >confcache <<\_ACEOF
  25360. # This file is a shell script that caches the results of configure
  25361. # tests run on this system so they can be shared between configure
  25362. # scripts and configure runs, see configure's option --config-cache.
  25363. # It is not useful on other systems. If it contains results you don't
  25364. # want to keep, you may remove or edit it.
  25365. #
  25366. # config.status only pays attention to the cache file if you give it
  25367. # the --recheck option to rerun configure.
  25368. #
  25369. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25370. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25371. # following values.
  25372. _ACEOF
  25373. # The following way of writing the cache mishandles newlines in values,
  25374. # but we know of no workaround that is simple, portable, and efficient.
  25375. # So, we kill variables containing newlines.
  25376. # Ultrix sh set writes to stderr and can't be redirected directly,
  25377. # and sets the high bit in the cache file unless we assign to the vars.
  25378. (
  25379. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25380. eval ac_val=\$$ac_var
  25381. case $ac_val in #(
  25382. *${as_nl}*)
  25383. case $ac_var in #(
  25384. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25385. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25386. esac
  25387. case $ac_var in #(
  25388. _ | IFS | as_nl) ;; #(
  25389. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25390. *) { eval $ac_var=; unset $ac_var;} ;;
  25391. esac ;;
  25392. esac
  25393. done
  25394. (set) 2>&1 |
  25395. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25396. *${as_nl}ac_space=\ *)
  25397. # `set' does not quote correctly, so add quotes: double-quote
  25398. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25399. sed -n \
  25400. "s/'/'\\\\''/g;
  25401. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25402. ;; #(
  25403. *)
  25404. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25405. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25406. ;;
  25407. esac |
  25408. sort
  25409. ) |
  25410. sed '
  25411. /^ac_cv_env_/b end
  25412. t clear
  25413. :clear
  25414. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  25415. t end
  25416. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25417. :end' >>confcache
  25418. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25419. if test -w "$cache_file"; then
  25420. test "x$cache_file" != "x/dev/null" &&
  25421. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25422. $as_echo "$as_me: updating cache $cache_file" >&6;}
  25423. cat confcache >$cache_file
  25424. else
  25425. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25426. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  25427. fi
  25428. fi
  25429. rm -f confcache
  25430. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25431. # Let make expand exec_prefix.
  25432. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25433. DEFS=-DHAVE_CONFIG_H
  25434. ac_libobjs=
  25435. ac_ltlibobjs=
  25436. U=
  25437. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25438. # 1. Remove the extension, and $U if already installed.
  25439. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25440. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  25441. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25442. # will be set to the directory where LIBOBJS objects are built.
  25443. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25444. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25445. done
  25446. LIBOBJS=$ac_libobjs
  25447. LTLIBOBJS=$ac_ltlibobjs
  25448. : ${CONFIG_STATUS=./config.status}
  25449. ac_write_fail=0
  25450. ac_clean_files_save=$ac_clean_files
  25451. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25452. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25453. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  25454. as_write_fail=0
  25455. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25456. #! $SHELL
  25457. # Generated by $as_me.
  25458. # Run this file to recreate the current configuration.
  25459. # Compiler output produced by configure, useful for debugging
  25460. # configure, is in config.log if it exists.
  25461. debug=false
  25462. ac_cs_recheck=false
  25463. ac_cs_silent=false
  25464. SHELL=\${CONFIG_SHELL-$SHELL}
  25465. export SHELL
  25466. _ASEOF
  25467. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25468. ## -------------------- ##
  25469. ## M4sh Initialization. ##
  25470. ## -------------------- ##
  25471. # Be more Bourne compatible
  25472. DUALCASE=1; export DUALCASE # for MKS sh
  25473. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  25474. emulate sh
  25475. NULLCMD=:
  25476. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25477. # is contrary to our usage. Disable this feature.
  25478. alias -g '${1+"$@"}'='"$@"'
  25479. setopt NO_GLOB_SUBST
  25480. else
  25481. case `(set -o) 2>/dev/null` in #(
  25482. *posix*) :
  25483. set -o posix ;; #(
  25484. *) :
  25485. ;;
  25486. esac
  25487. fi
  25488. as_nl='
  25489. '
  25490. export as_nl
  25491. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  25492. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  25493. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  25494. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  25495. # Prefer a ksh shell builtin over an external printf program on Solaris,
  25496. # but without wasting forks for bash or zsh.
  25497. if test -z "$BASH_VERSION$ZSH_VERSION" \
  25498. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  25499. as_echo='print -r --'
  25500. as_echo_n='print -rn --'
  25501. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  25502. as_echo='printf %s\n'
  25503. as_echo_n='printf %s'
  25504. else
  25505. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  25506. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  25507. as_echo_n='/usr/ucb/echo -n'
  25508. else
  25509. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  25510. as_echo_n_body='eval
  25511. arg=$1;
  25512. case $arg in #(
  25513. *"$as_nl"*)
  25514. expr "X$arg" : "X\\(.*\\)$as_nl";
  25515. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  25516. esac;
  25517. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  25518. '
  25519. export as_echo_n_body
  25520. as_echo_n='sh -c $as_echo_n_body as_echo'
  25521. fi
  25522. export as_echo_body
  25523. as_echo='sh -c $as_echo_body as_echo'
  25524. fi
  25525. # The user is always right.
  25526. if test "${PATH_SEPARATOR+set}" != set; then
  25527. PATH_SEPARATOR=:
  25528. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25529. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25530. PATH_SEPARATOR=';'
  25531. }
  25532. fi
  25533. # IFS
  25534. # We need space, tab and new line, in precisely that order. Quoting is
  25535. # there to prevent editors from complaining about space-tab.
  25536. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  25537. # splitting by setting IFS to empty value.)
  25538. IFS=" "" $as_nl"
  25539. # Find who we are. Look in the path if we contain no directory separator.
  25540. case $0 in #((
  25541. *[\\/]* ) as_myself=$0 ;;
  25542. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25543. for as_dir in $PATH
  25544. do
  25545. IFS=$as_save_IFS
  25546. test -z "$as_dir" && as_dir=.
  25547. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  25548. done
  25549. IFS=$as_save_IFS
  25550. ;;
  25551. esac
  25552. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25553. # in which case we are not to be found in the path.
  25554. if test "x$as_myself" = x; then
  25555. as_myself=$0
  25556. fi
  25557. if test ! -f "$as_myself"; then
  25558. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25559. exit 1
  25560. fi
  25561. # Unset variables that we do not need and which cause bugs (e.g. in
  25562. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  25563. # suppresses any "Segmentation fault" message there. '((' could
  25564. # trigger a bug in pdksh 5.2.14.
  25565. for as_var in BASH_ENV ENV MAIL MAILPATH
  25566. do eval test x\${$as_var+set} = xset \
  25567. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25568. done
  25569. PS1='$ '
  25570. PS2='> '
  25571. PS4='+ '
  25572. # NLS nuisances.
  25573. LC_ALL=C
  25574. export LC_ALL
  25575. LANGUAGE=C
  25576. export LANGUAGE
  25577. # CDPATH.
  25578. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25579. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25580. # ----------------------------------------
  25581. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25582. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25583. # script with STATUS, using 1 if that was 0.
  25584. as_fn_error ()
  25585. {
  25586. as_status=$1; test $as_status -eq 0 && as_status=1
  25587. if test "$4"; then
  25588. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25589. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25590. fi
  25591. $as_echo "$as_me: error: $2" >&2
  25592. as_fn_exit $as_status
  25593. } # as_fn_error
  25594. # as_fn_set_status STATUS
  25595. # -----------------------
  25596. # Set $? to STATUS, without forking.
  25597. as_fn_set_status ()
  25598. {
  25599. return $1
  25600. } # as_fn_set_status
  25601. # as_fn_exit STATUS
  25602. # -----------------
  25603. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25604. as_fn_exit ()
  25605. {
  25606. set +e
  25607. as_fn_set_status $1
  25608. exit $1
  25609. } # as_fn_exit
  25610. # as_fn_unset VAR
  25611. # ---------------
  25612. # Portably unset VAR.
  25613. as_fn_unset ()
  25614. {
  25615. { eval $1=; unset $1;}
  25616. }
  25617. as_unset=as_fn_unset
  25618. # as_fn_append VAR VALUE
  25619. # ----------------------
  25620. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25621. # advantage of any shell optimizations that allow amortized linear growth over
  25622. # repeated appends, instead of the typical quadratic growth present in naive
  25623. # implementations.
  25624. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  25625. eval 'as_fn_append ()
  25626. {
  25627. eval $1+=\$2
  25628. }'
  25629. else
  25630. as_fn_append ()
  25631. {
  25632. eval $1=\$$1\$2
  25633. }
  25634. fi # as_fn_append
  25635. # as_fn_arith ARG...
  25636. # ------------------
  25637. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25638. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25639. # must be portable across $(()) and expr.
  25640. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  25641. eval 'as_fn_arith ()
  25642. {
  25643. as_val=$(( $* ))
  25644. }'
  25645. else
  25646. as_fn_arith ()
  25647. {
  25648. as_val=`expr "$@" || test $? -eq 1`
  25649. }
  25650. fi # as_fn_arith
  25651. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25652. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25653. as_expr=expr
  25654. else
  25655. as_expr=false
  25656. fi
  25657. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25658. as_basename=basename
  25659. else
  25660. as_basename=false
  25661. fi
  25662. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25663. as_dirname=dirname
  25664. else
  25665. as_dirname=false
  25666. fi
  25667. as_me=`$as_basename -- "$0" ||
  25668. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25669. X"$0" : 'X\(//\)$' \| \
  25670. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25671. $as_echo X/"$0" |
  25672. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25673. s//\1/
  25674. q
  25675. }
  25676. /^X\/\(\/\/\)$/{
  25677. s//\1/
  25678. q
  25679. }
  25680. /^X\/\(\/\).*/{
  25681. s//\1/
  25682. q
  25683. }
  25684. s/.*/./; q'`
  25685. # Avoid depending upon Character Ranges.
  25686. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25687. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25688. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25689. as_cr_digits='0123456789'
  25690. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25691. ECHO_C= ECHO_N= ECHO_T=
  25692. case `echo -n x` in #(((((
  25693. -n*)
  25694. case `echo 'xy\c'` in
  25695. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25696. xy) ECHO_C='\c';;
  25697. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25698. ECHO_T=' ';;
  25699. esac;;
  25700. *)
  25701. ECHO_N='-n';;
  25702. esac
  25703. rm -f conf$$ conf$$.exe conf$$.file
  25704. if test -d conf$$.dir; then
  25705. rm -f conf$$.dir/conf$$.file
  25706. else
  25707. rm -f conf$$.dir
  25708. mkdir conf$$.dir 2>/dev/null
  25709. fi
  25710. if (echo >conf$$.file) 2>/dev/null; then
  25711. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25712. as_ln_s='ln -s'
  25713. # ... but there are two gotchas:
  25714. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25715. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25716. # In both cases, we have to default to `cp -p'.
  25717. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25718. as_ln_s='cp -p'
  25719. elif ln conf$$.file conf$$ 2>/dev/null; then
  25720. as_ln_s=ln
  25721. else
  25722. as_ln_s='cp -p'
  25723. fi
  25724. else
  25725. as_ln_s='cp -p'
  25726. fi
  25727. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25728. rmdir conf$$.dir 2>/dev/null
  25729. # as_fn_mkdir_p
  25730. # -------------
  25731. # Create "$as_dir" as a directory, including parents if necessary.
  25732. as_fn_mkdir_p ()
  25733. {
  25734. case $as_dir in #(
  25735. -*) as_dir=./$as_dir;;
  25736. esac
  25737. test -d "$as_dir" || eval $as_mkdir_p || {
  25738. as_dirs=
  25739. while :; do
  25740. case $as_dir in #(
  25741. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25742. *) as_qdir=$as_dir;;
  25743. esac
  25744. as_dirs="'$as_qdir' $as_dirs"
  25745. as_dir=`$as_dirname -- "$as_dir" ||
  25746. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25747. X"$as_dir" : 'X\(//\)[^/]' \| \
  25748. X"$as_dir" : 'X\(//\)$' \| \
  25749. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25750. $as_echo X"$as_dir" |
  25751. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25752. s//\1/
  25753. q
  25754. }
  25755. /^X\(\/\/\)[^/].*/{
  25756. s//\1/
  25757. q
  25758. }
  25759. /^X\(\/\/\)$/{
  25760. s//\1/
  25761. q
  25762. }
  25763. /^X\(\/\).*/{
  25764. s//\1/
  25765. q
  25766. }
  25767. s/.*/./; q'`
  25768. test -d "$as_dir" && break
  25769. done
  25770. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25771. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25772. } # as_fn_mkdir_p
  25773. if mkdir -p . 2>/dev/null; then
  25774. as_mkdir_p='mkdir -p "$as_dir"'
  25775. else
  25776. test -d ./-p && rmdir ./-p
  25777. as_mkdir_p=false
  25778. fi
  25779. if test -x / >/dev/null 2>&1; then
  25780. as_test_x='test -x'
  25781. else
  25782. if ls -dL / >/dev/null 2>&1; then
  25783. as_ls_L_option=L
  25784. else
  25785. as_ls_L_option=
  25786. fi
  25787. as_test_x='
  25788. eval sh -c '\''
  25789. if test -d "$1"; then
  25790. test -d "$1/.";
  25791. else
  25792. case $1 in #(
  25793. -*)set "./$1";;
  25794. esac;
  25795. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  25796. ???[sx]*):;;*)false;;esac;fi
  25797. '\'' sh
  25798. '
  25799. fi
  25800. as_executable_p=$as_test_x
  25801. # Sed expression to map a string onto a valid CPP name.
  25802. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25803. # Sed expression to map a string onto a valid variable name.
  25804. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25805. exec 6>&1
  25806. ## ----------------------------------- ##
  25807. ## Main body of $CONFIG_STATUS script. ##
  25808. ## ----------------------------------- ##
  25809. _ASEOF
  25810. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25812. # Save the log message, to keep $0 and so on meaningful, and to
  25813. # report actual input values of CONFIG_FILES etc. instead of their
  25814. # values after options handling.
  25815. ac_log="
  25816. This file was extended by asterisk $as_me trunk, which was
  25817. generated by GNU Autoconf 2.67. Invocation command line was
  25818. CONFIG_FILES = $CONFIG_FILES
  25819. CONFIG_HEADERS = $CONFIG_HEADERS
  25820. CONFIG_LINKS = $CONFIG_LINKS
  25821. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25822. $ $0 $@
  25823. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25824. "
  25825. _ACEOF
  25826. case $ac_config_files in *"
  25827. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25828. esac
  25829. case $ac_config_headers in *"
  25830. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25831. esac
  25832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25833. # Files that config.status was made for.
  25834. config_files="$ac_config_files"
  25835. config_headers="$ac_config_headers"
  25836. _ACEOF
  25837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25838. ac_cs_usage="\
  25839. \`$as_me' instantiates files and other configuration actions
  25840. from templates according to the current configuration. Unless the files
  25841. and actions are specified as TAGs, all are instantiated by default.
  25842. Usage: $0 [OPTION]... [TAG]...
  25843. -h, --help print this help, then exit
  25844. -V, --version print version number and configuration settings, then exit
  25845. --config print configuration, then exit
  25846. -q, --quiet, --silent
  25847. do not print progress messages
  25848. -d, --debug don't remove temporary files
  25849. --recheck update $as_me by reconfiguring in the same conditions
  25850. --file=FILE[:TEMPLATE]
  25851. instantiate the configuration file FILE
  25852. --header=FILE[:TEMPLATE]
  25853. instantiate the configuration header FILE
  25854. Configuration files:
  25855. $config_files
  25856. Configuration headers:
  25857. $config_headers
  25858. Report bugs to <https://issues.asterisk.org>."
  25859. _ACEOF
  25860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25861. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  25862. ac_cs_version="\\
  25863. asterisk config.status trunk
  25864. configured by $0, generated by GNU Autoconf 2.67,
  25865. with options \\"\$ac_cs_config\\"
  25866. Copyright (C) 2010 Free Software Foundation, Inc.
  25867. This config.status script is free software; the Free Software Foundation
  25868. gives unlimited permission to copy, distribute and modify it."
  25869. ac_pwd='$ac_pwd'
  25870. srcdir='$srcdir'
  25871. INSTALL='$INSTALL'
  25872. AWK='$AWK'
  25873. test -n "\$AWK" || AWK=awk
  25874. _ACEOF
  25875. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25876. # The default lists apply if the user does not specify any file.
  25877. ac_need_defaults=:
  25878. while test $# != 0
  25879. do
  25880. case $1 in
  25881. --*=?*)
  25882. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25883. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25884. ac_shift=:
  25885. ;;
  25886. --*=)
  25887. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25888. ac_optarg=
  25889. ac_shift=:
  25890. ;;
  25891. *)
  25892. ac_option=$1
  25893. ac_optarg=$2
  25894. ac_shift=shift
  25895. ;;
  25896. esac
  25897. case $ac_option in
  25898. # Handling of the options.
  25899. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25900. ac_cs_recheck=: ;;
  25901. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25902. $as_echo "$ac_cs_version"; exit ;;
  25903. --config | --confi | --conf | --con | --co | --c )
  25904. $as_echo "$ac_cs_config"; exit ;;
  25905. --debug | --debu | --deb | --de | --d | -d )
  25906. debug=: ;;
  25907. --file | --fil | --fi | --f )
  25908. $ac_shift
  25909. case $ac_optarg in
  25910. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25911. '') as_fn_error $? "missing file argument" ;;
  25912. esac
  25913. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25914. ac_need_defaults=false;;
  25915. --header | --heade | --head | --hea )
  25916. $ac_shift
  25917. case $ac_optarg in
  25918. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25919. esac
  25920. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25921. ac_need_defaults=false;;
  25922. --he | --h)
  25923. # Conflict between --help and --header
  25924. as_fn_error $? "ambiguous option: \`$1'
  25925. Try \`$0 --help' for more information.";;
  25926. --help | --hel | -h )
  25927. $as_echo "$ac_cs_usage"; exit ;;
  25928. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25929. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25930. ac_cs_silent=: ;;
  25931. # This is an error.
  25932. -*) as_fn_error $? "unrecognized option: \`$1'
  25933. Try \`$0 --help' for more information." ;;
  25934. *) as_fn_append ac_config_targets " $1"
  25935. ac_need_defaults=false ;;
  25936. esac
  25937. shift
  25938. done
  25939. ac_configure_extra_args=
  25940. if $ac_cs_silent; then
  25941. exec 6>/dev/null
  25942. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25943. fi
  25944. _ACEOF
  25945. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25946. if \$ac_cs_recheck; then
  25947. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25948. shift
  25949. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  25950. CONFIG_SHELL='$SHELL'
  25951. export CONFIG_SHELL
  25952. exec "\$@"
  25953. fi
  25954. _ACEOF
  25955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25956. exec 5>>config.log
  25957. {
  25958. echo
  25959. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25960. ## Running $as_me. ##
  25961. _ASBOX
  25962. $as_echo "$ac_log"
  25963. } >&5
  25964. _ACEOF
  25965. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25966. _ACEOF
  25967. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25968. # Handling of arguments.
  25969. for ac_config_target in $ac_config_targets
  25970. do
  25971. case $ac_config_target in
  25972. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  25973. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  25974. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  25975. "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
  25976. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  25977. esac
  25978. done
  25979. # If the user did not use the arguments to specify the items to instantiate,
  25980. # then the envvar interface is used. Set only those that are not.
  25981. # We use the long form for the default assignment because of an extremely
  25982. # bizarre bug on SunOS 4.1.3.
  25983. if $ac_need_defaults; then
  25984. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  25985. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  25986. fi
  25987. # Have a temporary directory for convenience. Make it in the build tree
  25988. # simply because there is no reason against having it here, and in addition,
  25989. # creating and moving files from /tmp can sometimes cause problems.
  25990. # Hook for its removal unless debugging.
  25991. # Note that there is a small window in which the directory will not be cleaned:
  25992. # after its creation but before its name has been assigned to `$tmp'.
  25993. $debug ||
  25994. {
  25995. tmp=
  25996. trap 'exit_status=$?
  25997. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  25998. ' 0
  25999. trap 'as_fn_exit 1' 1 2 13 15
  26000. }
  26001. # Create a (secure) tmp directory for tmp files.
  26002. {
  26003. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26004. test -n "$tmp" && test -d "$tmp"
  26005. } ||
  26006. {
  26007. tmp=./conf$$-$RANDOM
  26008. (umask 077 && mkdir "$tmp")
  26009. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26010. # Set up the scripts for CONFIG_FILES section.
  26011. # No need to generate them if there are no CONFIG_FILES.
  26012. # This happens for instance with `./config.status config.h'.
  26013. if test -n "$CONFIG_FILES"; then
  26014. ac_cr=`echo X | tr X '\015'`
  26015. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26016. # But we know of no other shell where ac_cr would be empty at this
  26017. # point, so we can use a bashism as a fallback.
  26018. if test "x$ac_cr" = x; then
  26019. eval ac_cr=\$\'\\r\'
  26020. fi
  26021. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26022. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26023. ac_cs_awk_cr='\\r'
  26024. else
  26025. ac_cs_awk_cr=$ac_cr
  26026. fi
  26027. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  26028. _ACEOF
  26029. {
  26030. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26031. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26032. echo "_ACEOF"
  26033. } >conf$$subs.sh ||
  26034. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26035. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26036. ac_delim='%!_!# '
  26037. for ac_last_try in false false false false false :; do
  26038. . ./conf$$subs.sh ||
  26039. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26040. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26041. if test $ac_delim_n = $ac_delim_num; then
  26042. break
  26043. elif $ac_last_try; then
  26044. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26045. else
  26046. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26047. fi
  26048. done
  26049. rm -f conf$$subs.sh
  26050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26051. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  26052. _ACEOF
  26053. sed -n '
  26054. h
  26055. s/^/S["/; s/!.*/"]=/
  26056. p
  26057. g
  26058. s/^[^!]*!//
  26059. :repl
  26060. t repl
  26061. s/'"$ac_delim"'$//
  26062. t delim
  26063. :nl
  26064. h
  26065. s/\(.\{148\}\)..*/\1/
  26066. t more1
  26067. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26068. p
  26069. n
  26070. b repl
  26071. :more1
  26072. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26073. p
  26074. g
  26075. s/.\{148\}//
  26076. t nl
  26077. :delim
  26078. h
  26079. s/\(.\{148\}\)..*/\1/
  26080. t more2
  26081. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26082. p
  26083. b
  26084. :more2
  26085. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26086. p
  26087. g
  26088. s/.\{148\}//
  26089. t delim
  26090. ' <conf$$subs.awk | sed '
  26091. /^[^""]/{
  26092. N
  26093. s/\n//
  26094. }
  26095. ' >>$CONFIG_STATUS || ac_write_fail=1
  26096. rm -f conf$$subs.awk
  26097. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26098. _ACAWK
  26099. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  26100. for (key in S) S_is_set[key] = 1
  26101. FS = ""
  26102. }
  26103. {
  26104. line = $ 0
  26105. nfields = split(line, field, "@")
  26106. substed = 0
  26107. len = length(field[1])
  26108. for (i = 2; i < nfields; i++) {
  26109. key = field[i]
  26110. keylen = length(key)
  26111. if (S_is_set[key]) {
  26112. value = S[key]
  26113. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26114. len += length(value) + length(field[++i])
  26115. substed = 1
  26116. } else
  26117. len += 1 + keylen
  26118. }
  26119. print line
  26120. }
  26121. _ACAWK
  26122. _ACEOF
  26123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26124. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26125. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26126. else
  26127. cat
  26128. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  26129. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26130. _ACEOF
  26131. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26132. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26133. # trailing colons and then remove the whole line if VPATH becomes empty
  26134. # (actually we leave an empty line to preserve line numbers).
  26135. if test "x$srcdir" = x.; then
  26136. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26137. h
  26138. s///
  26139. s/^/:/
  26140. s/[ ]*$/:/
  26141. s/:\$(srcdir):/:/g
  26142. s/:\${srcdir}:/:/g
  26143. s/:@srcdir@:/:/g
  26144. s/^:*//
  26145. s/:*$//
  26146. x
  26147. s/\(=[ ]*\).*/\1/
  26148. G
  26149. s/\n//
  26150. s/^[^=]*=[ ]*$//
  26151. }'
  26152. fi
  26153. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26154. fi # test -n "$CONFIG_FILES"
  26155. # Set up the scripts for CONFIG_HEADERS section.
  26156. # No need to generate them if there are no CONFIG_HEADERS.
  26157. # This happens for instance with `./config.status Makefile'.
  26158. if test -n "$CONFIG_HEADERS"; then
  26159. cat >"$tmp/defines.awk" <<\_ACAWK ||
  26160. BEGIN {
  26161. _ACEOF
  26162. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26163. # here-document in config.status, that substitutes the proper values into
  26164. # config.h.in to produce config.h.
  26165. # Create a delimiter string that does not exist in confdefs.h, to ease
  26166. # handling of long lines.
  26167. ac_delim='%!_!# '
  26168. for ac_last_try in false false :; do
  26169. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  26170. if test -z "$ac_t"; then
  26171. break
  26172. elif $ac_last_try; then
  26173. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26174. else
  26175. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26176. fi
  26177. done
  26178. # For the awk script, D is an array of macro values keyed by name,
  26179. # likewise P contains macro parameters if any. Preserve backslash
  26180. # newline sequences.
  26181. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26182. sed -n '
  26183. s/.\{148\}/&'"$ac_delim"'/g
  26184. t rset
  26185. :rset
  26186. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26187. t def
  26188. d
  26189. :def
  26190. s/\\$//
  26191. t bsnl
  26192. s/["\\]/\\&/g
  26193. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26194. D["\1"]=" \3"/p
  26195. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26196. d
  26197. :bsnl
  26198. s/["\\]/\\&/g
  26199. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26200. D["\1"]=" \3\\\\\\n"\\/p
  26201. t cont
  26202. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26203. t cont
  26204. d
  26205. :cont
  26206. n
  26207. s/.\{148\}/&'"$ac_delim"'/g
  26208. t clear
  26209. :clear
  26210. s/\\$//
  26211. t bsnlc
  26212. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26213. d
  26214. :bsnlc
  26215. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26216. b cont
  26217. ' <confdefs.h | sed '
  26218. s/'"$ac_delim"'/"\\\
  26219. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26221. for (key in D) D_is_set[key] = 1
  26222. FS = ""
  26223. }
  26224. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26225. line = \$ 0
  26226. split(line, arg, " ")
  26227. if (arg[1] == "#") {
  26228. defundef = arg[2]
  26229. mac1 = arg[3]
  26230. } else {
  26231. defundef = substr(arg[1], 2)
  26232. mac1 = arg[2]
  26233. }
  26234. split(mac1, mac2, "(") #)
  26235. macro = mac2[1]
  26236. prefix = substr(line, 1, index(line, defundef) - 1)
  26237. if (D_is_set[macro]) {
  26238. # Preserve the white space surrounding the "#".
  26239. print prefix "define", macro P[macro] D[macro]
  26240. next
  26241. } else {
  26242. # Replace #undef with comments. This is necessary, for example,
  26243. # in the case of _POSIX_SOURCE, which is predefined and required
  26244. # on some systems where configure will not decide to define it.
  26245. if (defundef == "undef") {
  26246. print "/*", prefix defundef, macro, "*/"
  26247. next
  26248. }
  26249. }
  26250. }
  26251. { print }
  26252. _ACAWK
  26253. _ACEOF
  26254. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26255. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26256. fi # test -n "$CONFIG_HEADERS"
  26257. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  26258. shift
  26259. for ac_tag
  26260. do
  26261. case $ac_tag in
  26262. :[FHLC]) ac_mode=$ac_tag; continue;;
  26263. esac
  26264. case $ac_mode$ac_tag in
  26265. :[FHL]*:*);;
  26266. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  26267. :[FH]-) ac_tag=-:-;;
  26268. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26269. esac
  26270. ac_save_IFS=$IFS
  26271. IFS=:
  26272. set x $ac_tag
  26273. IFS=$ac_save_IFS
  26274. shift
  26275. ac_file=$1
  26276. shift
  26277. case $ac_mode in
  26278. :L) ac_source=$1;;
  26279. :[FH])
  26280. ac_file_inputs=
  26281. for ac_f
  26282. do
  26283. case $ac_f in
  26284. -) ac_f="$tmp/stdin";;
  26285. *) # Look for the file first in the build tree, then in the source tree
  26286. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26287. # because $ac_f cannot contain `:'.
  26288. test -f "$ac_f" ||
  26289. case $ac_f in
  26290. [\\/$]*) false;;
  26291. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26292. esac ||
  26293. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  26294. esac
  26295. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26296. as_fn_append ac_file_inputs " '$ac_f'"
  26297. done
  26298. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26299. # use $as_me), people would be surprised to read:
  26300. # /* config.h. Generated by config.status. */
  26301. configure_input='Generated from '`
  26302. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26303. `' by configure.'
  26304. if test x"$ac_file" != x-; then
  26305. configure_input="$ac_file. $configure_input"
  26306. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26307. $as_echo "$as_me: creating $ac_file" >&6;}
  26308. fi
  26309. # Neutralize special characters interpreted by sed in replacement strings.
  26310. case $configure_input in #(
  26311. *\&* | *\|* | *\\* )
  26312. ac_sed_conf_input=`$as_echo "$configure_input" |
  26313. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26314. *) ac_sed_conf_input=$configure_input;;
  26315. esac
  26316. case $ac_tag in
  26317. *:-:* | *:-) cat >"$tmp/stdin" \
  26318. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26319. esac
  26320. ;;
  26321. esac
  26322. ac_dir=`$as_dirname -- "$ac_file" ||
  26323. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26324. X"$ac_file" : 'X\(//\)[^/]' \| \
  26325. X"$ac_file" : 'X\(//\)$' \| \
  26326. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26327. $as_echo X"$ac_file" |
  26328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26329. s//\1/
  26330. q
  26331. }
  26332. /^X\(\/\/\)[^/].*/{
  26333. s//\1/
  26334. q
  26335. }
  26336. /^X\(\/\/\)$/{
  26337. s//\1/
  26338. q
  26339. }
  26340. /^X\(\/\).*/{
  26341. s//\1/
  26342. q
  26343. }
  26344. s/.*/./; q'`
  26345. as_dir="$ac_dir"; as_fn_mkdir_p
  26346. ac_builddir=.
  26347. case "$ac_dir" in
  26348. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26349. *)
  26350. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  26351. # A ".." for each directory in $ac_dir_suffix.
  26352. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26353. case $ac_top_builddir_sub in
  26354. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26355. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26356. esac ;;
  26357. esac
  26358. ac_abs_top_builddir=$ac_pwd
  26359. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26360. # for backward compatibility:
  26361. ac_top_builddir=$ac_top_build_prefix
  26362. case $srcdir in
  26363. .) # We are building in place.
  26364. ac_srcdir=.
  26365. ac_top_srcdir=$ac_top_builddir_sub
  26366. ac_abs_top_srcdir=$ac_pwd ;;
  26367. [\\/]* | ?:[\\/]* ) # Absolute name.
  26368. ac_srcdir=$srcdir$ac_dir_suffix;
  26369. ac_top_srcdir=$srcdir
  26370. ac_abs_top_srcdir=$srcdir ;;
  26371. *) # Relative name.
  26372. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26373. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26374. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26375. esac
  26376. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26377. case $ac_mode in
  26378. :F)
  26379. #
  26380. # CONFIG_FILE
  26381. #
  26382. case $INSTALL in
  26383. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26384. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26385. esac
  26386. _ACEOF
  26387. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26388. # If the template does not know about datarootdir, expand it.
  26389. # FIXME: This hack should be removed a few years after 2.60.
  26390. ac_datarootdir_hack=; ac_datarootdir_seen=
  26391. ac_sed_dataroot='
  26392. /datarootdir/ {
  26393. p
  26394. q
  26395. }
  26396. /@datadir@/p
  26397. /@docdir@/p
  26398. /@infodir@/p
  26399. /@localedir@/p
  26400. /@mandir@/p'
  26401. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26402. *datarootdir*) ac_datarootdir_seen=yes;;
  26403. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26405. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26406. _ACEOF
  26407. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26408. ac_datarootdir_hack='
  26409. s&@datadir@&$datadir&g
  26410. s&@docdir@&$docdir&g
  26411. s&@infodir@&$infodir&g
  26412. s&@localedir@&$localedir&g
  26413. s&@mandir@&$mandir&g
  26414. s&\\\${datarootdir}&$datarootdir&g' ;;
  26415. esac
  26416. _ACEOF
  26417. # Neutralize VPATH when `$srcdir' = `.'.
  26418. # Shell code in configure.ac might set extrasub.
  26419. # FIXME: do we really want to maintain this feature?
  26420. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26421. ac_sed_extra="$ac_vpsub
  26422. $extrasub
  26423. _ACEOF
  26424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26425. :t
  26426. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26427. s|@configure_input@|$ac_sed_conf_input|;t t
  26428. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26429. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26430. s&@srcdir@&$ac_srcdir&;t t
  26431. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26432. s&@top_srcdir@&$ac_top_srcdir&;t t
  26433. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26434. s&@builddir@&$ac_builddir&;t t
  26435. s&@abs_builddir@&$ac_abs_builddir&;t t
  26436. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26437. s&@INSTALL@&$ac_INSTALL&;t t
  26438. $ac_datarootdir_hack
  26439. "
  26440. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  26441. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26442. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26443. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  26444. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  26445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26446. which seems to be undefined. Please make sure it is defined" >&5
  26447. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26448. which seems to be undefined. Please make sure it is defined" >&2;}
  26449. rm -f "$tmp/stdin"
  26450. case $ac_file in
  26451. -) cat "$tmp/out" && rm -f "$tmp/out";;
  26452. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  26453. esac \
  26454. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26455. ;;
  26456. :H)
  26457. #
  26458. # CONFIG_HEADER
  26459. #
  26460. if test x"$ac_file" != x-; then
  26461. {
  26462. $as_echo "/* $configure_input */" \
  26463. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  26464. } >"$tmp/config.h" \
  26465. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26466. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  26467. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26468. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  26469. else
  26470. rm -f "$ac_file"
  26471. mv "$tmp/config.h" "$ac_file" \
  26472. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26473. fi
  26474. else
  26475. $as_echo "/* $configure_input */" \
  26476. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  26477. || as_fn_error $? "could not create -" "$LINENO" 5
  26478. fi
  26479. ;;
  26480. esac
  26481. done # for ac_tag
  26482. as_fn_exit 0
  26483. _ACEOF
  26484. ac_clean_files=$ac_clean_files_save
  26485. test $ac_write_fail = 0 ||
  26486. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26487. # configure is writing to config.log, and then calls config.status.
  26488. # config.status does its own redirection, appending to config.log.
  26489. # Unfortunately, on DOS this fails, as config.log is still kept open
  26490. # by configure, so config.status won't be able to write to it; its
  26491. # output is simply discarded. So we exec the FD to /dev/null,
  26492. # effectively closing config.log, so it can be properly (re)opened and
  26493. # appended to by config.status. When coming back to configure, we
  26494. # need to make the FD available again.
  26495. if test "$no_create" != yes; then
  26496. ac_cs_success=:
  26497. ac_config_status_args=
  26498. test "$silent" = yes &&
  26499. ac_config_status_args="$ac_config_status_args --quiet"
  26500. exec 5>/dev/null
  26501. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26502. exec 5>>config.log
  26503. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26504. # would make configure fail if this is the last instruction.
  26505. $ac_cs_success || as_fn_exit 1
  26506. fi
  26507. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26509. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26510. fi
  26511. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  26512. if test "x${ac_cv_path_CMP}" = "x:"; then
  26513. ( cd `pwd`/menuselect && ./configure )
  26514. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  26515. ( cd `pwd`/menuselect && ./configure )
  26516. fi ; fi
  26517. rm makeopts.acbak makeopts.acbak2
  26518. if test "x${silent}" != "xyes" ; then
  26519. echo
  26520. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  26521. echo " .\$7\$7.. .7\$\$7:. "
  26522. echo " .\$\$:. ,\$7.7 "
  26523. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  26524. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  26525. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  26526. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  26527. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  26528. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  26529. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  26530. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  26531. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  26532. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  26533. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  26534. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  26535. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  26536. echo " \$\$\$\$\$ \$\$\$ "
  26537. echo " \$\$\$\$7. \$\$ (TM) "
  26538. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  26539. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  26540. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  26541. echo
  26542. fi
  26543. { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
  26544. $as_echo "$as_me: Package configured for: " >&6;}
  26545. { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
  26546. $as_echo "$as_me: OS type : $host_os" >&6;}
  26547. { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
  26548. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  26549. { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  26550. $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  26551. { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  26552. $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  26553. if test "${cross_compiling}" = "yes"; then
  26554. { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
  26555. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  26556. fi