configure 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069
  1. #! /bin/sh
  2. # From configure.ac Revision: 371013 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.63 for asterisk trunk.
  5. #
  6. # Report bugs to <https://issues.asterisk.org>.
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # "Asterisk"
  14. ## --------------------- ##
  15. ## M4sh Initialization. ##
  16. ## --------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in
  28. *posix*) set -o posix ;;
  29. esac
  30. fi
  31. # PATH needs CR
  32. # Avoid depending upon Character Ranges.
  33. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  34. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  35. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  36. as_cr_digits='0123456789'
  37. as_cr_alnum=$as_cr_Letters$as_cr_digits
  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. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='printf %s\n'
  47. as_echo_n='printf %s'
  48. else
  49. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  50. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  51. as_echo_n='/usr/ucb/echo -n'
  52. else
  53. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  54. as_echo_n_body='eval
  55. arg=$1;
  56. case $arg in
  57. *"$as_nl"*)
  58. expr "X$arg" : "X\\(.*\\)$as_nl";
  59. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  60. esac;
  61. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  62. '
  63. export as_echo_n_body
  64. as_echo_n='sh -c $as_echo_n_body as_echo'
  65. fi
  66. export as_echo_body
  67. as_echo='sh -c $as_echo_body as_echo'
  68. fi
  69. # The user is always right.
  70. if test "${PATH_SEPARATOR+set}" != set; then
  71. PATH_SEPARATOR=:
  72. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  73. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  74. PATH_SEPARATOR=';'
  75. }
  76. fi
  77. # Support unset when possible.
  78. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  79. as_unset=unset
  80. else
  81. as_unset=false
  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); exit 1; }
  110. fi
  111. # Work around bugs in pre-3.0 UWIN ksh.
  112. for as_var in ENV MAIL MAILPATH
  113. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # Required to use basename.
  124. if expr a : '\(a\)' >/dev/null 2>&1 &&
  125. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  126. as_expr=expr
  127. else
  128. as_expr=false
  129. fi
  130. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  131. as_basename=basename
  132. else
  133. as_basename=false
  134. fi
  135. # Name of the executable.
  136. as_me=`$as_basename -- "$0" ||
  137. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  138. X"$0" : 'X\(//\)$' \| \
  139. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  140. $as_echo X/"$0" |
  141. sed '/^.*\/\([^/][^/]*\)\/*$/{
  142. s//\1/
  143. q
  144. }
  145. /^X\/\(\/\/\)$/{
  146. s//\1/
  147. q
  148. }
  149. /^X\/\(\/\).*/{
  150. s//\1/
  151. q
  152. }
  153. s/.*/./; q'`
  154. # CDPATH.
  155. $as_unset CDPATH
  156. if test "x$CONFIG_SHELL" = x; then
  157. if (eval ":") 2>/dev/null; then
  158. as_have_required=yes
  159. else
  160. as_have_required=no
  161. fi
  162. if test $as_have_required = yes && (eval ":
  163. (as_func_return () {
  164. (exit \$1)
  165. }
  166. as_func_success () {
  167. as_func_return 0
  168. }
  169. as_func_failure () {
  170. as_func_return 1
  171. }
  172. as_func_ret_success () {
  173. return 0
  174. }
  175. as_func_ret_failure () {
  176. return 1
  177. }
  178. exitcode=0
  179. if as_func_success; then
  180. :
  181. else
  182. exitcode=1
  183. echo as_func_success failed.
  184. fi
  185. if as_func_failure; then
  186. exitcode=1
  187. echo as_func_failure succeeded.
  188. fi
  189. if as_func_ret_success; then
  190. :
  191. else
  192. exitcode=1
  193. echo as_func_ret_success failed.
  194. fi
  195. if as_func_ret_failure; then
  196. exitcode=1
  197. echo as_func_ret_failure succeeded.
  198. fi
  199. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  200. :
  201. else
  202. exitcode=1
  203. echo positional parameters were not saved.
  204. fi
  205. test \$exitcode = 0) || { (exit 1); exit 1; }
  206. (
  207. as_lineno_1=\$LINENO
  208. as_lineno_2=\$LINENO
  209. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  210. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  211. ") 2> /dev/null; then
  212. :
  213. else
  214. as_candidate_shells=
  215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  216. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  217. do
  218. IFS=$as_save_IFS
  219. test -z "$as_dir" && as_dir=.
  220. case $as_dir in
  221. /*)
  222. for as_base in sh bash ksh sh5; do
  223. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  224. done;;
  225. esac
  226. done
  227. IFS=$as_save_IFS
  228. for as_shell in $as_candidate_shells $SHELL; do
  229. # Try only shells that exist, to save several forks.
  230. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  231. { ("$as_shell") 2> /dev/null <<\_ASEOF
  232. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  233. emulate sh
  234. NULLCMD=:
  235. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  236. # is contrary to our usage. Disable this feature.
  237. alias -g '${1+"$@"}'='"$@"'
  238. setopt NO_GLOB_SUBST
  239. else
  240. case `(set -o) 2>/dev/null` in
  241. *posix*) set -o posix ;;
  242. esac
  243. fi
  244. :
  245. _ASEOF
  246. }; then
  247. CONFIG_SHELL=$as_shell
  248. as_have_required=yes
  249. if { "$as_shell" 2> /dev/null <<\_ASEOF
  250. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  251. emulate sh
  252. NULLCMD=:
  253. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  254. # is contrary to our usage. Disable this feature.
  255. alias -g '${1+"$@"}'='"$@"'
  256. setopt NO_GLOB_SUBST
  257. else
  258. case `(set -o) 2>/dev/null` in
  259. *posix*) set -o posix ;;
  260. esac
  261. fi
  262. :
  263. (as_func_return () {
  264. (exit $1)
  265. }
  266. as_func_success () {
  267. as_func_return 0
  268. }
  269. as_func_failure () {
  270. as_func_return 1
  271. }
  272. as_func_ret_success () {
  273. return 0
  274. }
  275. as_func_ret_failure () {
  276. return 1
  277. }
  278. exitcode=0
  279. if as_func_success; then
  280. :
  281. else
  282. exitcode=1
  283. echo as_func_success failed.
  284. fi
  285. if as_func_failure; then
  286. exitcode=1
  287. echo as_func_failure succeeded.
  288. fi
  289. if as_func_ret_success; then
  290. :
  291. else
  292. exitcode=1
  293. echo as_func_ret_success failed.
  294. fi
  295. if as_func_ret_failure; then
  296. exitcode=1
  297. echo as_func_ret_failure succeeded.
  298. fi
  299. if ( set x; as_func_ret_success y && test x = "$1" ); then
  300. :
  301. else
  302. exitcode=1
  303. echo positional parameters were not saved.
  304. fi
  305. test $exitcode = 0) || { (exit 1); exit 1; }
  306. (
  307. as_lineno_1=$LINENO
  308. as_lineno_2=$LINENO
  309. test "x$as_lineno_1" != "x$as_lineno_2" &&
  310. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  311. _ASEOF
  312. }; then
  313. break
  314. fi
  315. fi
  316. done
  317. if test "x$CONFIG_SHELL" != x; then
  318. for as_var in BASH_ENV ENV
  319. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  320. done
  321. export CONFIG_SHELL
  322. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  323. fi
  324. if test $as_have_required = no; then
  325. echo This script requires a shell more modern than all the
  326. echo shells that I found on your system. Please install a
  327. echo modern shell, or manually run the script under such a
  328. echo shell if you do have one.
  329. { (exit 1); exit 1; }
  330. fi
  331. fi
  332. fi
  333. (eval "as_func_return () {
  334. (exit \$1)
  335. }
  336. as_func_success () {
  337. as_func_return 0
  338. }
  339. as_func_failure () {
  340. as_func_return 1
  341. }
  342. as_func_ret_success () {
  343. return 0
  344. }
  345. as_func_ret_failure () {
  346. return 1
  347. }
  348. exitcode=0
  349. if as_func_success; then
  350. :
  351. else
  352. exitcode=1
  353. echo as_func_success failed.
  354. fi
  355. if as_func_failure; then
  356. exitcode=1
  357. echo as_func_failure succeeded.
  358. fi
  359. if as_func_ret_success; then
  360. :
  361. else
  362. exitcode=1
  363. echo as_func_ret_success failed.
  364. fi
  365. if as_func_ret_failure; then
  366. exitcode=1
  367. echo as_func_ret_failure succeeded.
  368. fi
  369. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  370. :
  371. else
  372. exitcode=1
  373. echo positional parameters were not saved.
  374. fi
  375. test \$exitcode = 0") || {
  376. echo No shell found that supports shell functions.
  377. echo Please tell bug-autoconf@gnu.org about your system,
  378. echo including any error possibly output before this message.
  379. echo This can help us improve future autoconf versions.
  380. echo Configuration will now proceed without shell functions.
  381. }
  382. as_lineno_1=$LINENO
  383. as_lineno_2=$LINENO
  384. test "x$as_lineno_1" != "x$as_lineno_2" &&
  385. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  386. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  387. # uniformly replaced by the line number. The first 'sed' inserts a
  388. # line-number line after each line using $LINENO; the second 'sed'
  389. # does the real work. The second script uses 'N' to pair each
  390. # line-number line with the line containing $LINENO, and appends
  391. # trailing '-' during substitution so that $LINENO is not a special
  392. # case at line end.
  393. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  394. # scripts with optimization help from Paolo Bonzini. Blame Lee
  395. # E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  413. { (exit 1); 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. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  422. as_dirname=dirname
  423. else
  424. as_dirname=false
  425. fi
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in
  428. -n*)
  429. case `echo 'x\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. *) ECHO_C='\c';;
  432. esac;;
  433. *)
  434. ECHO_N='-n';;
  435. esac
  436. if expr a : '\(a\)' >/dev/null 2>&1 &&
  437. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  438. as_expr=expr
  439. else
  440. as_expr=false
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p=:
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. exec 7<&0 </dev/null 6>&1
  501. # Name of the host.
  502. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  503. # so uname gets run too.
  504. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  505. #
  506. # Initializations.
  507. #
  508. ac_default_prefix=/usr/local
  509. ac_clean_files=
  510. ac_config_libobj_dir=.
  511. LIBOBJS=
  512. cross_compiling=no
  513. subdirs=
  514. MFLAGS=
  515. MAKEFLAGS=
  516. SHELL=${CONFIG_SHELL-/bin/sh}
  517. # Identity of this package.
  518. PACKAGE_NAME='asterisk'
  519. PACKAGE_TARNAME='asterisk'
  520. PACKAGE_VERSION='trunk'
  521. PACKAGE_STRING='asterisk trunk'
  522. PACKAGE_BUGREPORT='https://issues.asterisk.org'
  523. ac_unique_file="main/asterisk.c"
  524. # Factoring default headers for most tests.
  525. ac_includes_default="\
  526. #include <stdio.h>
  527. #ifdef HAVE_SYS_TYPES_H
  528. # include <sys/types.h>
  529. #endif
  530. #ifdef HAVE_SYS_STAT_H
  531. # include <sys/stat.h>
  532. #endif
  533. #ifdef STDC_HEADERS
  534. # include <stdlib.h>
  535. # include <stddef.h>
  536. #else
  537. # ifdef HAVE_STDLIB_H
  538. # include <stdlib.h>
  539. # endif
  540. #endif
  541. #ifdef HAVE_STRING_H
  542. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  543. # include <memory.h>
  544. # endif
  545. # include <string.h>
  546. #endif
  547. #ifdef HAVE_STRINGS_H
  548. # include <strings.h>
  549. #endif
  550. #ifdef HAVE_INTTYPES_H
  551. # include <inttypes.h>
  552. #endif
  553. #ifdef HAVE_STDINT_H
  554. # include <stdint.h>
  555. #endif
  556. #ifdef HAVE_UNISTD_H
  557. # include <unistd.h>
  558. #endif"
  559. ac_header_list=
  560. ac_subst_vars='LTLIBOBJS
  561. PBX_SYSLOG
  562. PBX_SYSLOG_FACILITY_LOG_UUCP
  563. PBX_SYSLOG_FACILITY_LOG_SYSLOG
  564. PBX_SYSLOG_FACILITY_LOG_NEWS
  565. PBX_SYSLOG_FACILITY_LOG_MAIL
  566. PBX_SYSLOG_FACILITY_LOG_LPR
  567. PBX_SYSLOG_FACILITY_LOG_KERN
  568. PBX_SYSLOG_FACILITY_LOG_FTP
  569. PBX_SYSLOG_FACILITY_LOG_DAEMON
  570. PBX_SYSLOG_FACILITY_LOG_CRON
  571. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
  572. PBX_SYSLOG_FACILITY_LOG_AUTH
  573. PBX_GENERIC_ODBC
  574. GENERIC_ODBC_INCLUDE
  575. GENERIC_ODBC_LIB
  576. PBX_LAUNCHD
  577. CONFIG_SDL
  578. PBX_SO_NOSIGPIPE
  579. PBX_MSG_NOSIGNAL
  580. PBX_IXJUSER
  581. PBX_H323
  582. CONFIG_GMIME
  583. AIS_LIB
  584. AIS_INCLUDE
  585. PBX_AIS
  586. OPENH323_BUILD
  587. OPENH323_SUFFIX
  588. OPENH323_LIBDIR
  589. OPENH323_INCDIR
  590. OPENH323DIR
  591. PWLIB_PLATFORM
  592. PWLIB_LIBDIR
  593. PWLIB_INCDIR
  594. PWLIBDIR
  595. PTLIB_CONFIG
  596. PG_CONFIG
  597. CONFIG_NETSNMP
  598. CONFIG_NEON29
  599. CONFIG_NEON
  600. CONFIG_MYSQLCLIENT
  601. PBX_MISDN_FAC_ERROR
  602. PBX_MISDN_FAC_RESULT
  603. GSM_INTERNAL
  604. PBX_DAHDI_HALF_FULL
  605. PKGCONFIG
  606. PBX_DLADDR
  607. PBX_IP_MTU_DISCOVER
  608. PBX_GLOB_BRACE
  609. PBX_GLOB_NOMAGIC
  610. AST_NATIVE_ARCH
  611. AST_SHADOW_WARNINGS
  612. AST_NO_STRICT_OVERFLOW
  613. AST_FORTIFY_SOURCE
  614. AST_DECLARATION_AFTER_STATEMENT
  615. GC_LDFLAGS
  616. GC_CFLAGS
  617. PBX_WEAKREF
  618. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  619. PBX_PTHREAD_RWLOCK_INITIALIZER
  620. HAS_POLL
  621. PBX_DYNAMIC_LIST
  622. POW_LIB
  623. PBX_WORKING_FORK
  624. LIBOBJS
  625. CONFIG_LIBXML2
  626. EDITLINE_LIB
  627. ALLOCA
  628. PBX_ZLIB
  629. ZLIB_DIR
  630. ZLIB_INCLUDE
  631. ZLIB_LIB
  632. PBX_X11
  633. X11_DIR
  634. X11_INCLUDE
  635. X11_LIB
  636. PBX_VPB
  637. VPB_DIR
  638. VPB_INCLUDE
  639. VPB_LIB
  640. PBX_VORBIS
  641. VORBIS_DIR
  642. VORBIS_INCLUDE
  643. VORBIS_LIB
  644. PBX_UNIXODBC
  645. UNIXODBC_DIR
  646. UNIXODBC_INCLUDE
  647. UNIXODBC_LIB
  648. PBX_TONEZONE
  649. TONEZONE_DIR
  650. TONEZONE_INCLUDE
  651. TONEZONE_LIB
  652. PBX_TINFO
  653. TINFO_DIR
  654. TINFO_INCLUDE
  655. TINFO_LIB
  656. PBX_TIMERFD
  657. TIMERFD_DIR
  658. TIMERFD_INCLUDE
  659. TIMERFD_LIB
  660. PBX_TERMCAP
  661. TERMCAP_DIR
  662. TERMCAP_INCLUDE
  663. TERMCAP_LIB
  664. PBX_FREETDS
  665. FREETDS_DIR
  666. FREETDS_INCLUDE
  667. FREETDS_LIB
  668. PBX_SUPPSERV
  669. SUPPSERV_DIR
  670. SUPPSERV_INCLUDE
  671. SUPPSERV_LIB
  672. PBX_OPENSSL
  673. OPENSSL_DIR
  674. OPENSSL_INCLUDE
  675. OPENSSL_LIB
  676. PBX_SRTP
  677. SRTP_DIR
  678. SRTP_INCLUDE
  679. SRTP_LIB
  680. PBX_SQLITE3
  681. SQLITE3_DIR
  682. SQLITE3_INCLUDE
  683. SQLITE3_LIB
  684. PBX_SQLITE
  685. SQLITE_DIR
  686. SQLITE_INCLUDE
  687. SQLITE_LIB
  688. PBX_SPEEXDSP
  689. SPEEXDSP_DIR
  690. SPEEXDSP_INCLUDE
  691. SPEEXDSP_LIB
  692. PBX_SPEEX_PREPROCESS
  693. SPEEX_PREPROCESS_DIR
  694. SPEEX_PREPROCESS_INCLUDE
  695. SPEEX_PREPROCESS_LIB
  696. PBX_SPEEX
  697. SPEEX_DIR
  698. SPEEX_INCLUDE
  699. SPEEX_LIB
  700. PBX_SS7
  701. SS7_DIR
  702. SS7_INCLUDE
  703. SS7_LIB
  704. PBX_SPANDSP
  705. SPANDSP_DIR
  706. SPANDSP_INCLUDE
  707. SPANDSP_LIB
  708. SOUNDS_CACHE_DIR
  709. PBX_SDL_IMAGE
  710. SDL_IMAGE_DIR
  711. SDL_IMAGE_INCLUDE
  712. SDL_IMAGE_LIB
  713. PBX_SDL
  714. SDL_DIR
  715. SDL_INCLUDE
  716. SDL_LIB
  717. PBX_RESAMPLE
  718. RESAMPLE_DIR
  719. RESAMPLE_INCLUDE
  720. RESAMPLE_LIB
  721. PBX_RADIUS
  722. RADIUS_DIR
  723. RADIUS_INCLUDE
  724. RADIUS_LIB
  725. PBX_PWLIB
  726. PWLIB_DIR
  727. PWLIB_INCLUDE
  728. PWLIB_LIB
  729. PBX_PRI_REVERSE_CHARGE
  730. PRI_REVERSE_CHARGE_DIR
  731. PRI_REVERSE_CHARGE_INCLUDE
  732. PRI_REVERSE_CHARGE_LIB
  733. PBX_PRI_SERVICE_MESSAGES
  734. PRI_SERVICE_MESSAGES_DIR
  735. PRI_SERVICE_MESSAGES_INCLUDE
  736. PRI_SERVICE_MESSAGES_LIB
  737. PBX_PRI_PROG_W_CAUSE
  738. PRI_PROG_W_CAUSE_DIR
  739. PRI_PROG_W_CAUSE_INCLUDE
  740. PRI_PROG_W_CAUSE_LIB
  741. PBX_PRI_INBANDDISCONNECT
  742. PRI_INBANDDISCONNECT_DIR
  743. PRI_INBANDDISCONNECT_INCLUDE
  744. PRI_INBANDDISCONNECT_LIB
  745. PBX_PRI_SETUP_KEYPAD
  746. PRI_SETUP_KEYPAD_DIR
  747. PRI_SETUP_KEYPAD_INCLUDE
  748. PRI_SETUP_KEYPAD_LIB
  749. PBX_PRI_CALL_REROUTING
  750. PRI_CALL_REROUTING_DIR
  751. PRI_CALL_REROUTING_INCLUDE
  752. PRI_CALL_REROUTING_LIB
  753. PBX_PRI_CALL_HOLD
  754. PRI_CALL_HOLD_DIR
  755. PRI_CALL_HOLD_INCLUDE
  756. PRI_CALL_HOLD_LIB
  757. PBX_PRI_SUBADDR
  758. PRI_SUBADDR_DIR
  759. PRI_SUBADDR_INCLUDE
  760. PRI_SUBADDR_LIB
  761. PBX_PRI_HANGUP_FIX
  762. PRI_HANGUP_FIX_DIR
  763. PRI_HANGUP_FIX_INCLUDE
  764. PRI_HANGUP_FIX_LIB
  765. PBX_PRI_CCSS
  766. PRI_CCSS_DIR
  767. PRI_CCSS_INCLUDE
  768. PRI_CCSS_LIB
  769. PBX_PRI_TRANSFER
  770. PRI_TRANSFER_DIR
  771. PRI_TRANSFER_INCLUDE
  772. PRI_TRANSFER_LIB
  773. PBX_PRI_AOC_EVENTS
  774. PRI_AOC_EVENTS_DIR
  775. PRI_AOC_EVENTS_INCLUDE
  776. PRI_AOC_EVENTS_LIB
  777. PBX_PRI_CALL_WAITING
  778. PRI_CALL_WAITING_DIR
  779. PRI_CALL_WAITING_INCLUDE
  780. PRI_CALL_WAITING_LIB
  781. PBX_PRI_MCID
  782. PRI_MCID_DIR
  783. PRI_MCID_INCLUDE
  784. PRI_MCID_LIB
  785. PBX_PRI_MWI
  786. PRI_MWI_DIR
  787. PRI_MWI_INCLUDE
  788. PRI_MWI_LIB
  789. PBX_PRI_DISPLAY_TEXT
  790. PRI_DISPLAY_TEXT_DIR
  791. PRI_DISPLAY_TEXT_INCLUDE
  792. PRI_DISPLAY_TEXT_LIB
  793. PBX_PRI_MWI_V2
  794. PRI_MWI_V2_DIR
  795. PRI_MWI_V2_INCLUDE
  796. PRI_MWI_V2_LIB
  797. PBX_PRI_DATETIME_SEND
  798. PRI_DATETIME_SEND_DIR
  799. PRI_DATETIME_SEND_INCLUDE
  800. PRI_DATETIME_SEND_LIB
  801. PBX_PRI_L2_PERSISTENCE
  802. PRI_L2_PERSISTENCE_DIR
  803. PRI_L2_PERSISTENCE_INCLUDE
  804. PRI_L2_PERSISTENCE_LIB
  805. PBX_PRI
  806. PRI_DIR
  807. PRI_INCLUDE
  808. PRI_LIB
  809. PBX_PORTAUDIO
  810. PORTAUDIO_DIR
  811. PORTAUDIO_INCLUDE
  812. PORTAUDIO_LIB
  813. PBX_POPT
  814. POPT_DIR
  815. POPT_INCLUDE
  816. POPT_LIB
  817. PBX_PGSQL
  818. PGSQL_DIR
  819. PGSQL_INCLUDE
  820. PGSQL_LIB
  821. PBX_OSS
  822. OSS_DIR
  823. OSS_INCLUDE
  824. OSS_LIB
  825. PBX_OSPTK
  826. OSPTK_DIR
  827. OSPTK_INCLUDE
  828. OSPTK_LIB
  829. PBX_OPENR2
  830. OPENR2_DIR
  831. OPENR2_INCLUDE
  832. OPENR2_LIB
  833. PBX_OPENAIS
  834. OPENAIS_DIR
  835. OPENAIS_INCLUDE
  836. OPENAIS_LIB
  837. PBX_OGG
  838. OGG_DIR
  839. OGG_INCLUDE
  840. OGG_LIB
  841. PBX_NEWT
  842. NEWT_DIR
  843. NEWT_INCLUDE
  844. NEWT_LIB
  845. PBX_NETSNMP
  846. NETSNMP_DIR
  847. NETSNMP_INCLUDE
  848. NETSNMP_LIB
  849. PBX_NEON29
  850. NEON29_DIR
  851. NEON29_INCLUDE
  852. NEON29_LIB
  853. PBX_NEON
  854. NEON_DIR
  855. NEON_INCLUDE
  856. NEON_LIB
  857. PBX_NCURSES
  858. NCURSES_DIR
  859. NCURSES_INCLUDE
  860. NCURSES_LIB
  861. PBX_NBS
  862. NBS_DIR
  863. NBS_INCLUDE
  864. NBS_LIB
  865. PBX_MYSQLCLIENT
  866. MYSQLCLIENT_DIR
  867. MYSQLCLIENT_INCLUDE
  868. MYSQLCLIENT_LIB
  869. PBX_MISDN
  870. MISDN_DIR
  871. MISDN_INCLUDE
  872. MISDN_LIB
  873. PBX_LUA
  874. LUA_DIR
  875. LUA_INCLUDE
  876. LUA_LIB
  877. PBX_LTDL
  878. LTDL_DIR
  879. LTDL_INCLUDE
  880. LTDL_LIB
  881. PBX_LIBXML2
  882. LIBXML2_DIR
  883. LIBXML2_INCLUDE
  884. LIBXML2_LIB
  885. CURL_LIB
  886. CURL_INCLUDE
  887. _libcurl_config
  888. PBX_CURL
  889. PBX_LDAP
  890. LDAP_DIR
  891. LDAP_INCLUDE
  892. LDAP_LIB
  893. PBX_KQUEUE
  894. KQUEUE_DIR
  895. KQUEUE_INCLUDE
  896. KQUEUE_LIB
  897. PBX_JACK
  898. JACK_DIR
  899. JACK_INCLUDE
  900. JACK_LIB
  901. PBX_ISDNNET
  902. ISDNNET_DIR
  903. ISDNNET_INCLUDE
  904. ISDNNET_LIB
  905. PBX_IODBC
  906. IODBC_DIR
  907. IODBC_INCLUDE
  908. IODBC_LIB
  909. PBX_INOTIFY
  910. INOTIFY_DIR
  911. INOTIFY_INCLUDE
  912. INOTIFY_LIB
  913. PBX_IMAP_TK
  914. IMAP_TK_DIR
  915. IMAP_TK_INCLUDE
  916. IMAP_TK_LIB
  917. PBX_IKSEMEL
  918. IKSEMEL_DIR
  919. IKSEMEL_INCLUDE
  920. IKSEMEL_LIB
  921. PBX_ICONV
  922. ICONV_DIR
  923. ICONV_INCLUDE
  924. ICONV_LIB
  925. PBX_ICAL
  926. ICAL_DIR
  927. ICAL_INCLUDE
  928. ICAL_LIB
  929. PBX_HOARD
  930. HOARD_DIR
  931. HOARD_INCLUDE
  932. HOARD_LIB
  933. PBX_OPENH323
  934. OPENH323_DIR
  935. OPENH323_INCLUDE
  936. OPENH323_LIB
  937. PBX_GMIME
  938. GMIME_DIR
  939. GMIME_INCLUDE
  940. GMIME_LIB
  941. PBX_GTK2
  942. GTK2_DIR
  943. GTK2_INCLUDE
  944. GTK2_LIB
  945. PBX_GSM
  946. GSM_DIR
  947. GSM_INCLUDE
  948. GSM_LIB
  949. PBX_FFMPEG
  950. FFMPEG_DIR
  951. FFMPEG_INCLUDE
  952. FFMPEG_LIB
  953. PBX_DAHDI
  954. DAHDI_DIR
  955. DAHDI_INCLUDE
  956. DAHDI_LIB
  957. PBX_CRYPTO
  958. CRYPTO_DIR
  959. CRYPTO_INCLUDE
  960. CRYPTO_LIB
  961. PBX_CURSES
  962. CURSES_DIR
  963. CURSES_INCLUDE
  964. CURSES_LIB
  965. PBX_CAP
  966. CAP_DIR
  967. CAP_INCLUDE
  968. CAP_LIB
  969. PBX_BLUETOOTH
  970. BLUETOOTH_DIR
  971. BLUETOOTH_INCLUDE
  972. BLUETOOTH_LIB
  973. PBX_BKTR
  974. BKTR_DIR
  975. BKTR_INCLUDE
  976. BKTR_LIB
  977. PBX_BFD
  978. BFD_DIR
  979. BFD_INCLUDE
  980. BFD_LIB
  981. PBX_ALSA
  982. ALSA_DIR
  983. ALSA_INCLUDE
  984. ALSA_LIB
  985. AST_CODE_COVERAGE
  986. AST_DEVMODE
  987. NOISY_BUILD
  988. PTHREAD_CFLAGS
  989. PTHREAD_LIBS
  990. PTHREAD_CC
  991. acx_pthread_config
  992. MD5
  993. SOXMIX
  994. PBX_FLEX
  995. PBX_BISON
  996. DOWNLOAD
  997. FETCH
  998. GIT
  999. XMLSTARLET
  1000. XMLLINT
  1001. KPATHSEA
  1002. CATDVI
  1003. RUBBER
  1004. CURL
  1005. WGET
  1006. DOT
  1007. LN
  1008. DIRNAME
  1009. BASENAME
  1010. COMPRESS
  1011. FIND
  1012. FLEX
  1013. CMP
  1014. BISON
  1015. GNU_LD
  1016. ac_ct_OPENSSL
  1017. OPENSSL
  1018. ac_ct_SHA1SUM
  1019. SHA1SUM
  1020. ac_ct_AR
  1021. AR
  1022. ac_ct_STRIP
  1023. STRIP
  1024. GNU_MAKE
  1025. LN_S
  1026. INSTALL_DATA
  1027. INSTALL_SCRIPT
  1028. INSTALL_PROGRAM
  1029. AWK
  1030. SED
  1031. CXXCPP
  1032. ac_ct_CXX
  1033. CXXFLAGS
  1034. RANLIB
  1035. LD
  1036. CXX
  1037. PBX_OSREV
  1038. UNAME
  1039. PBX_WINARCH
  1040. OSARCH
  1041. HOST_OS
  1042. HOST_VENDOR
  1043. HOST_CPU
  1044. HOST_PLATFORM
  1045. BUILD_OS
  1046. BUILD_VENDOR
  1047. BUILD_CPU
  1048. BUILD_PLATFORM
  1049. astvarrundir
  1050. astlogdir
  1051. astspooldir
  1052. astkeydir
  1053. astdbdir
  1054. astdatadir
  1055. astvarlibdir
  1056. astmandir
  1057. astlibdir
  1058. astheaderdir
  1059. astetcdir
  1060. astsbindir
  1061. EGREP
  1062. GREP
  1063. CPP
  1064. OBJEXT
  1065. EXEEXT
  1066. ac_ct_CC
  1067. CPPFLAGS
  1068. LDFLAGS
  1069. CFLAGS
  1070. CC
  1071. CONFIG_LDFLAGS
  1072. CONFIG_CFLAGS
  1073. host_os
  1074. host_vendor
  1075. host_cpu
  1076. host
  1077. build_os
  1078. build_vendor
  1079. build_cpu
  1080. build
  1081. target_alias
  1082. host_alias
  1083. build_alias
  1084. LIBS
  1085. ECHO_T
  1086. ECHO_N
  1087. ECHO_C
  1088. DEFS
  1089. mandir
  1090. localedir
  1091. libdir
  1092. psdir
  1093. pdfdir
  1094. dvidir
  1095. htmldir
  1096. infodir
  1097. docdir
  1098. oldincludedir
  1099. includedir
  1100. localstatedir
  1101. sharedstatedir
  1102. sysconfdir
  1103. datadir
  1104. datarootdir
  1105. libexecdir
  1106. sbindir
  1107. bindir
  1108. program_transform_name
  1109. prefix
  1110. exec_prefix
  1111. PACKAGE_BUGREPORT
  1112. PACKAGE_STRING
  1113. PACKAGE_VERSION
  1114. PACKAGE_TARNAME
  1115. PACKAGE_NAME
  1116. PATH_SEPARATOR
  1117. SHELL'
  1118. ac_subst_files=''
  1119. ac_user_opts='
  1120. enable_option_checking
  1121. with_gnu_ld
  1122. enable_dev_mode
  1123. enable_coverage
  1124. with_asound
  1125. with_bfd
  1126. with_execinfo
  1127. with_bluetooth
  1128. with_cap
  1129. with_curses
  1130. with_crypto
  1131. with_dahdi
  1132. with_avcodec
  1133. with_gsm
  1134. with_gtk2
  1135. with_gmime
  1136. with_h323
  1137. with_hoard
  1138. with_ical
  1139. with_iconv
  1140. with_iksemel
  1141. with_imap
  1142. with_inotify
  1143. with_iodbc
  1144. with_isdnnet
  1145. with_jack
  1146. with_kqueue
  1147. with_ldap
  1148. with_libcurl
  1149. with_libxml2
  1150. with_ltdl
  1151. with_lua
  1152. with_misdn
  1153. with_mysqlclient
  1154. with_nbs
  1155. with_ncurses
  1156. with_neon
  1157. with_neon29
  1158. with_netsnmp
  1159. with_newt
  1160. with_ogg
  1161. with_openais
  1162. with_openr2
  1163. with_osptk
  1164. with_oss
  1165. with_postgres
  1166. with_popt
  1167. with_portaudio
  1168. with_pri
  1169. with_pwlib
  1170. with_radius
  1171. with_resample
  1172. with_sdl
  1173. with_SDL_image
  1174. with_sounds_cache
  1175. with_spandsp
  1176. with_ss7
  1177. with_speex
  1178. with_speexdsp
  1179. with_sqlite
  1180. with_sqlite3
  1181. with_srtp
  1182. with_ssl
  1183. with_suppserv
  1184. with_tds
  1185. with_termcap
  1186. with_timerfd
  1187. with_tinfo
  1188. with_tonezone
  1189. with_unixodbc
  1190. with_vorbis
  1191. with_vpb
  1192. with_x11
  1193. with_z
  1194. enable_xmldoc
  1195. enable_largefile
  1196. enable_internal_poll
  1197. '
  1198. ac_precious_vars='build_alias
  1199. host_alias
  1200. target_alias
  1201. CC
  1202. CFLAGS
  1203. LDFLAGS
  1204. LIBS
  1205. CPPFLAGS
  1206. CPP
  1207. CXX
  1208. CXXFLAGS
  1209. CCC
  1210. CXXCPP'
  1211. # Initialize some variables set by options.
  1212. ac_init_help=
  1213. ac_init_version=false
  1214. ac_unrecognized_opts=
  1215. ac_unrecognized_sep=
  1216. # The variables have the same names as the options, with
  1217. # dashes changed to underlines.
  1218. cache_file=/dev/null
  1219. exec_prefix=NONE
  1220. no_create=
  1221. no_recursion=
  1222. prefix=NONE
  1223. program_prefix=NONE
  1224. program_suffix=NONE
  1225. program_transform_name=s,x,x,
  1226. silent=
  1227. site=
  1228. srcdir=
  1229. verbose=
  1230. x_includes=NONE
  1231. x_libraries=NONE
  1232. # Installation directory options.
  1233. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1234. # and all the variables that are supposed to be based on exec_prefix
  1235. # by default will actually change.
  1236. # Use braces instead of parens because sh, perl, etc. also accept them.
  1237. # (The list follows the same order as the GNU Coding Standards.)
  1238. bindir='${exec_prefix}/bin'
  1239. sbindir='${exec_prefix}/sbin'
  1240. libexecdir='${exec_prefix}/libexec'
  1241. datarootdir='${prefix}/share'
  1242. datadir='${datarootdir}'
  1243. sysconfdir='${prefix}/etc'
  1244. sharedstatedir='${prefix}/com'
  1245. localstatedir='${prefix}/var'
  1246. includedir='${prefix}/include'
  1247. oldincludedir='/usr/include'
  1248. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1249. infodir='${datarootdir}/info'
  1250. htmldir='${docdir}'
  1251. dvidir='${docdir}'
  1252. pdfdir='${docdir}'
  1253. psdir='${docdir}'
  1254. libdir='${exec_prefix}/lib'
  1255. localedir='${datarootdir}/locale'
  1256. mandir='${datarootdir}/man'
  1257. ac_prev=
  1258. ac_dashdash=
  1259. for ac_option
  1260. do
  1261. # If the previous option needs an argument, assign it.
  1262. if test -n "$ac_prev"; then
  1263. eval $ac_prev=\$ac_option
  1264. ac_prev=
  1265. continue
  1266. fi
  1267. case $ac_option in
  1268. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1269. *) ac_optarg=yes ;;
  1270. esac
  1271. # Accept the important Cygnus configure options, so we can diagnose typos.
  1272. case $ac_dashdash$ac_option in
  1273. --)
  1274. ac_dashdash=yes ;;
  1275. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1276. ac_prev=bindir ;;
  1277. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1278. bindir=$ac_optarg ;;
  1279. -build | --build | --buil | --bui | --bu)
  1280. ac_prev=build_alias ;;
  1281. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1282. build_alias=$ac_optarg ;;
  1283. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1284. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1285. ac_prev=cache_file ;;
  1286. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1287. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1288. cache_file=$ac_optarg ;;
  1289. --config-cache | -C)
  1290. cache_file=config.cache ;;
  1291. -datadir | --datadir | --datadi | --datad)
  1292. ac_prev=datadir ;;
  1293. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1294. datadir=$ac_optarg ;;
  1295. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1296. | --dataroo | --dataro | --datar)
  1297. ac_prev=datarootdir ;;
  1298. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1299. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1300. datarootdir=$ac_optarg ;;
  1301. -disable-* | --disable-*)
  1302. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1303. # Reject names that are not valid shell variable names.
  1304. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1305. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1306. { (exit 1); exit 1; }; }
  1307. ac_useropt_orig=$ac_useropt
  1308. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1309. case $ac_user_opts in
  1310. *"
  1311. "enable_$ac_useropt"
  1312. "*) ;;
  1313. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1314. ac_unrecognized_sep=', ';;
  1315. esac
  1316. eval enable_$ac_useropt=no ;;
  1317. -docdir | --docdir | --docdi | --doc | --do)
  1318. ac_prev=docdir ;;
  1319. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1320. docdir=$ac_optarg ;;
  1321. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1322. ac_prev=dvidir ;;
  1323. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1324. dvidir=$ac_optarg ;;
  1325. -enable-* | --enable-*)
  1326. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1327. # Reject names that are not valid shell variable names.
  1328. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1329. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1330. { (exit 1); exit 1; }; }
  1331. ac_useropt_orig=$ac_useropt
  1332. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1333. case $ac_user_opts in
  1334. *"
  1335. "enable_$ac_useropt"
  1336. "*) ;;
  1337. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1338. ac_unrecognized_sep=', ';;
  1339. esac
  1340. eval enable_$ac_useropt=\$ac_optarg ;;
  1341. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1342. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1343. | --exec | --exe | --ex)
  1344. ac_prev=exec_prefix ;;
  1345. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1346. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1347. | --exec=* | --exe=* | --ex=*)
  1348. exec_prefix=$ac_optarg ;;
  1349. -gas | --gas | --ga | --g)
  1350. # Obsolete; use --with-gas.
  1351. with_gas=yes ;;
  1352. -help | --help | --hel | --he | -h)
  1353. ac_init_help=long ;;
  1354. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1355. ac_init_help=recursive ;;
  1356. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1357. ac_init_help=short ;;
  1358. -host | --host | --hos | --ho)
  1359. ac_prev=host_alias ;;
  1360. -host=* | --host=* | --hos=* | --ho=*)
  1361. host_alias=$ac_optarg ;;
  1362. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1363. ac_prev=htmldir ;;
  1364. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1365. | --ht=*)
  1366. htmldir=$ac_optarg ;;
  1367. -includedir | --includedir | --includedi | --included | --include \
  1368. | --includ | --inclu | --incl | --inc)
  1369. ac_prev=includedir ;;
  1370. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1371. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1372. includedir=$ac_optarg ;;
  1373. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1374. ac_prev=infodir ;;
  1375. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1376. infodir=$ac_optarg ;;
  1377. -libdir | --libdir | --libdi | --libd)
  1378. ac_prev=libdir ;;
  1379. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1380. libdir=$ac_optarg ;;
  1381. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1382. | --libexe | --libex | --libe)
  1383. ac_prev=libexecdir ;;
  1384. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1385. | --libexe=* | --libex=* | --libe=*)
  1386. libexecdir=$ac_optarg ;;
  1387. -localedir | --localedir | --localedi | --localed | --locale)
  1388. ac_prev=localedir ;;
  1389. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1390. localedir=$ac_optarg ;;
  1391. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1392. | --localstate | --localstat | --localsta | --localst | --locals)
  1393. ac_prev=localstatedir ;;
  1394. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1395. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1396. localstatedir=$ac_optarg ;;
  1397. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1398. ac_prev=mandir ;;
  1399. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1400. mandir=$ac_optarg ;;
  1401. -nfp | --nfp | --nf)
  1402. # Obsolete; use --without-fp.
  1403. with_fp=no ;;
  1404. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1405. | --no-cr | --no-c | -n)
  1406. no_create=yes ;;
  1407. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1408. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1409. no_recursion=yes ;;
  1410. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1411. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1412. | --oldin | --oldi | --old | --ol | --o)
  1413. ac_prev=oldincludedir ;;
  1414. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1415. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1416. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1417. oldincludedir=$ac_optarg ;;
  1418. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1419. ac_prev=prefix ;;
  1420. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1421. prefix=$ac_optarg ;;
  1422. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1423. | --program-pre | --program-pr | --program-p)
  1424. ac_prev=program_prefix ;;
  1425. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1426. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1427. program_prefix=$ac_optarg ;;
  1428. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1429. | --program-suf | --program-su | --program-s)
  1430. ac_prev=program_suffix ;;
  1431. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1432. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1433. program_suffix=$ac_optarg ;;
  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. ac_prev=program_transform_name ;;
  1442. -program-transform-name=* | --program-transform-name=* \
  1443. | --program-transform-nam=* | --program-transform-na=* \
  1444. | --program-transform-n=* | --program-transform-=* \
  1445. | --program-transform=* | --program-transfor=* \
  1446. | --program-transfo=* | --program-transf=* \
  1447. | --program-trans=* | --program-tran=* \
  1448. | --progr-tra=* | --program-tr=* | --program-t=*)
  1449. program_transform_name=$ac_optarg ;;
  1450. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1451. ac_prev=pdfdir ;;
  1452. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1453. pdfdir=$ac_optarg ;;
  1454. -psdir | --psdir | --psdi | --psd | --ps)
  1455. ac_prev=psdir ;;
  1456. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1457. psdir=$ac_optarg ;;
  1458. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1459. | -silent | --silent | --silen | --sile | --sil)
  1460. silent=yes ;;
  1461. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1462. ac_prev=sbindir ;;
  1463. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1464. | --sbi=* | --sb=*)
  1465. sbindir=$ac_optarg ;;
  1466. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1467. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1468. | --sharedst | --shareds | --shared | --share | --shar \
  1469. | --sha | --sh)
  1470. ac_prev=sharedstatedir ;;
  1471. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1472. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1473. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1474. | --sha=* | --sh=*)
  1475. sharedstatedir=$ac_optarg ;;
  1476. -site | --site | --sit)
  1477. ac_prev=site ;;
  1478. -site=* | --site=* | --sit=*)
  1479. site=$ac_optarg ;;
  1480. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1481. ac_prev=srcdir ;;
  1482. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1483. srcdir=$ac_optarg ;;
  1484. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1485. | --syscon | --sysco | --sysc | --sys | --sy)
  1486. ac_prev=sysconfdir ;;
  1487. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1488. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1489. sysconfdir=$ac_optarg ;;
  1490. -target | --target | --targe | --targ | --tar | --ta | --t)
  1491. ac_prev=target_alias ;;
  1492. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1493. target_alias=$ac_optarg ;;
  1494. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1495. verbose=yes ;;
  1496. -version | --version | --versio | --versi | --vers | -V)
  1497. ac_init_version=: ;;
  1498. -with-* | --with-*)
  1499. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1500. # Reject names that are not valid shell variable names.
  1501. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1502. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1503. { (exit 1); exit 1; }; }
  1504. ac_useropt_orig=$ac_useropt
  1505. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1506. case $ac_user_opts in
  1507. *"
  1508. "with_$ac_useropt"
  1509. "*) ;;
  1510. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1511. ac_unrecognized_sep=', ';;
  1512. esac
  1513. eval with_$ac_useropt=\$ac_optarg ;;
  1514. -without-* | --without-*)
  1515. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1516. # Reject names that are not valid shell variable names.
  1517. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1518. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1519. { (exit 1); exit 1; }; }
  1520. ac_useropt_orig=$ac_useropt
  1521. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1522. case $ac_user_opts in
  1523. *"
  1524. "with_$ac_useropt"
  1525. "*) ;;
  1526. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1527. ac_unrecognized_sep=', ';;
  1528. esac
  1529. eval with_$ac_useropt=no ;;
  1530. --x)
  1531. # Obsolete; use --with-x.
  1532. with_x=yes ;;
  1533. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1534. | --x-incl | --x-inc | --x-in | --x-i)
  1535. ac_prev=x_includes ;;
  1536. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1537. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1538. x_includes=$ac_optarg ;;
  1539. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1540. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1541. ac_prev=x_libraries ;;
  1542. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1543. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1544. x_libraries=$ac_optarg ;;
  1545. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1546. Try \`$0 --help' for more information." >&2
  1547. { (exit 1); exit 1; }; }
  1548. ;;
  1549. *=*)
  1550. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1551. # Reject names that are not valid shell variable names.
  1552. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1553. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1554. { (exit 1); exit 1; }; }
  1555. eval $ac_envvar=\$ac_optarg
  1556. export $ac_envvar ;;
  1557. *)
  1558. # FIXME: should be removed in autoconf 3.0.
  1559. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1561. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1563. ;;
  1564. esac
  1565. done
  1566. if test -n "$ac_prev"; then
  1567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1568. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1569. { (exit 1); exit 1; }; }
  1570. fi
  1571. if test -n "$ac_unrecognized_opts"; then
  1572. case $enable_option_checking in
  1573. no) ;;
  1574. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1575. { (exit 1); exit 1; }; } ;;
  1576. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1577. esac
  1578. fi
  1579. # Check all directory arguments for consistency.
  1580. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1581. datadir sysconfdir sharedstatedir localstatedir includedir \
  1582. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1583. libdir localedir mandir
  1584. do
  1585. eval ac_val=\$$ac_var
  1586. # Remove trailing slashes.
  1587. case $ac_val in
  1588. */ )
  1589. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1590. eval $ac_var=\$ac_val;;
  1591. esac
  1592. # Be sure to have absolute directory names.
  1593. case $ac_val in
  1594. [\\/$]* | ?:[\\/]* ) continue;;
  1595. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1596. esac
  1597. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1598. { (exit 1); exit 1; }; }
  1599. done
  1600. # There might be people who depend on the old broken behavior: `$host'
  1601. # used to hold the argument of --host etc.
  1602. # FIXME: To remove some day.
  1603. build=$build_alias
  1604. host=$host_alias
  1605. target=$target_alias
  1606. # FIXME: To remove some day.
  1607. if test "x$host_alias" != x; then
  1608. if test "x$build_alias" = x; then
  1609. cross_compiling=maybe
  1610. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1611. If a cross compiler is detected then cross compile mode will be used." >&2
  1612. elif test "x$build_alias" != "x$host_alias"; then
  1613. cross_compiling=yes
  1614. fi
  1615. fi
  1616. ac_tool_prefix=
  1617. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1618. test "$silent" = yes && exec 6>/dev/null
  1619. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1620. ac_ls_di=`ls -di .` &&
  1621. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1622. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1623. { (exit 1); exit 1; }; }
  1624. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1625. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1626. { (exit 1); exit 1; }; }
  1627. # Find the source files, if location was not specified.
  1628. if test -z "$srcdir"; then
  1629. ac_srcdir_defaulted=yes
  1630. # Try the directory containing this script, then the parent directory.
  1631. ac_confdir=`$as_dirname -- "$as_myself" ||
  1632. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1633. X"$as_myself" : 'X\(//\)[^/]' \| \
  1634. X"$as_myself" : 'X\(//\)$' \| \
  1635. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1636. $as_echo X"$as_myself" |
  1637. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1638. s//\1/
  1639. q
  1640. }
  1641. /^X\(\/\/\)[^/].*/{
  1642. s//\1/
  1643. q
  1644. }
  1645. /^X\(\/\/\)$/{
  1646. s//\1/
  1647. q
  1648. }
  1649. /^X\(\/\).*/{
  1650. s//\1/
  1651. q
  1652. }
  1653. s/.*/./; q'`
  1654. srcdir=$ac_confdir
  1655. if test ! -r "$srcdir/$ac_unique_file"; then
  1656. srcdir=..
  1657. fi
  1658. else
  1659. ac_srcdir_defaulted=no
  1660. fi
  1661. if test ! -r "$srcdir/$ac_unique_file"; then
  1662. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1663. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1664. { (exit 1); exit 1; }; }
  1665. fi
  1666. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1667. ac_abs_confdir=`(
  1668. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1669. { (exit 1); exit 1; }; }
  1670. pwd)`
  1671. # When building in place, set srcdir=.
  1672. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1673. srcdir=.
  1674. fi
  1675. # Remove unnecessary trailing slashes from srcdir.
  1676. # Double slashes in file names in object file debugging info
  1677. # mess up M-x gdb in Emacs.
  1678. case $srcdir in
  1679. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1680. esac
  1681. for ac_var in $ac_precious_vars; do
  1682. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1683. eval ac_env_${ac_var}_value=\$${ac_var}
  1684. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1685. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1686. done
  1687. #
  1688. # Report the --help message.
  1689. #
  1690. if test "$ac_init_help" = "long"; then
  1691. # Omit some internal or obsolete options to make the list less imposing.
  1692. # This message is too long to be a string in the A/UX 3.1 sh.
  1693. cat <<_ACEOF
  1694. \`configure' configures asterisk trunk to adapt to many kinds of systems.
  1695. Usage: $0 [OPTION]... [VAR=VALUE]...
  1696. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1697. VAR=VALUE. See below for descriptions of some of the useful variables.
  1698. Defaults for the options are specified in brackets.
  1699. Configuration:
  1700. -h, --help display this help and exit
  1701. --help=short display options specific to this package
  1702. --help=recursive display the short help of all the included packages
  1703. -V, --version display version information and exit
  1704. -q, --quiet, --silent do not print \`checking...' messages
  1705. --cache-file=FILE cache test results in FILE [disabled]
  1706. -C, --config-cache alias for \`--cache-file=config.cache'
  1707. -n, --no-create do not create output files
  1708. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1709. Installation directories:
  1710. --prefix=PREFIX install architecture-independent files in PREFIX
  1711. [$ac_default_prefix]
  1712. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1713. [PREFIX]
  1714. By default, \`make install' will install all the files in
  1715. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1716. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1717. for instance \`--prefix=\$HOME'.
  1718. For better control, use the options below.
  1719. Fine tuning of the installation directories:
  1720. --bindir=DIR user executables [EPREFIX/bin]
  1721. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1722. --libexecdir=DIR program executables [EPREFIX/libexec]
  1723. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1724. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1725. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1726. --libdir=DIR object code libraries [EPREFIX/lib]
  1727. --includedir=DIR C header files [PREFIX/include]
  1728. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1729. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1730. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1731. --infodir=DIR info documentation [DATAROOTDIR/info]
  1732. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1733. --mandir=DIR man documentation [DATAROOTDIR/man]
  1734. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1735. --htmldir=DIR html documentation [DOCDIR]
  1736. --dvidir=DIR dvi documentation [DOCDIR]
  1737. --pdfdir=DIR pdf documentation [DOCDIR]
  1738. --psdir=DIR ps documentation [DOCDIR]
  1739. _ACEOF
  1740. cat <<\_ACEOF
  1741. System types:
  1742. --build=BUILD configure for building on BUILD [guessed]
  1743. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1744. _ACEOF
  1745. fi
  1746. if test -n "$ac_init_help"; then
  1747. case $ac_init_help in
  1748. short | recursive ) echo "Configuration of asterisk trunk:";;
  1749. esac
  1750. cat <<\_ACEOF
  1751. Optional Features:
  1752. --disable-option-checking ignore unrecognized --enable/--with options
  1753. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1754. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1755. --enable-dev-mode Turn on developer mode
  1756. --enable-coverage Turn on code coverage tracking (for gcov)
  1757. --disable-xmldoc Explicity disable XML documentation
  1758. --disable-largefile omit support for large files
  1759. --enable-internal-poll Use Asterisk's poll implementation
  1760. Optional Packages:
  1761. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1762. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1763. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1764. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1765. --with-bfd=PATH use Debug symbol decoding files in PATH
  1766. --with-execinfo=PATH use Stack Backtrace files in PATH
  1767. --with-bluetooth=PATH use Bluetooth files in PATH
  1768. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1769. --with-curses=PATH use curses files in PATH
  1770. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  1771. --with-dahdi=PATH use DAHDI files in PATH
  1772. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  1773. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  1774. otherwise
  1775. --with-gtk2=PATH use gtk2 files in PATH
  1776. --with-gmime=PATH use GMime files in PATH
  1777. --with-h323=PATH use OpenH323 files in PATH
  1778. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  1779. --with-ical=PATH use iCal files in PATH
  1780. --with-iconv=PATH use Iconv files in PATH
  1781. --with-iksemel=PATH use Iksemel Jabber files in PATH
  1782. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1783. --with-inotify=PATH use inotify support files in PATH
  1784. --with-iodbc=PATH use iODBC files in PATH
  1785. --with-isdnnet=PATH use ISDN4Linux files in PATH
  1786. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  1787. --with-kqueue=PATH use kqueue support files in PATH
  1788. --with-ldap=PATH use OpenLDAP files in PATH
  1789. --with-libcurl=DIR look for the curl library in DIR
  1790. --with-libxml2=PATH use LibXML2 files in PATH
  1791. --with-ltdl=PATH use libtool files in PATH
  1792. --with-lua=PATH use Lua files in PATH
  1793. --with-misdn=PATH use mISDN user files in PATH
  1794. --with-mysqlclient=PATH use MySQL client files in PATH
  1795. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1796. --with-ncurses=PATH use ncurses files in PATH
  1797. --with-neon=PATH use neon files in PATH
  1798. --with-neon29=PATH use neon29 files in PATH
  1799. --with-netsnmp=PATH use Net-SNMP files in PATH
  1800. --with-newt=PATH use newt files in PATH
  1801. --with-ogg=PATH use OGG files in PATH
  1802. --with-openais=PATH use OpenAIS files in PATH
  1803. --with-openr2=PATH use MFR2 files in PATH
  1804. --with-osptk=PATH use OSP Toolkit files in PATH
  1805. --with-oss=PATH use Open Sound System files in PATH
  1806. --with-postgres=PATH use PostgreSQL files in PATH
  1807. --with-popt=PATH use popt files in PATH
  1808. --with-portaudio=PATH use PortAudio files in PATH
  1809. --with-pri=PATH use ISDN PRI files in PATH
  1810. --with-pwlib=PATH use PWlib files in PATH
  1811. --with-radius=PATH use Radius Client files in PATH
  1812. --with-resample=PATH use LIBRESAMPLE files in PATH
  1813. --with-sdl=PATH use Sdl files in PATH
  1814. --with-SDL_image=PATH use Sdl Image files in PATH
  1815. --with-sounds-cache=PATH
  1816. use cached sound tarfiles in PATH
  1817. --with-spandsp=PATH use SPANDSP files in PATH
  1818. --with-ss7=PATH use ISDN SS7 files in PATH
  1819. --with-speex=PATH use Speex files in PATH
  1820. --with-speex=PATH use Speex preprocess routines files in PATH
  1821. --with-speexdsp=PATH use SpeexDSP files in PATH
  1822. --with-sqlite=PATH use SQLite files in PATH
  1823. --with-sqlite3=PATH use SQLite files in PATH
  1824. --with-srtp=PATH use Secure RTP files in PATH
  1825. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  1826. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1827. --with-tds=PATH use FreeTDS files in PATH
  1828. --with-termcap=PATH use Termcap files in PATH
  1829. --with-timerfd=PATH use timerfd files in PATH
  1830. --with-tinfo=PATH use Term Info files in PATH
  1831. --with-tonezone=PATH use tonezone files in PATH
  1832. --with-unixodbc=PATH use unixODBC files in PATH
  1833. --with-vorbis=PATH use Vorbis files in PATH
  1834. --with-vpb=PATH use Voicetronix API files in PATH
  1835. --with-x11=PATH use X11 files in PATH
  1836. --with-z=PATH use zlib compression files in PATH
  1837. Some influential environment variables:
  1838. CC C compiler command
  1839. CFLAGS C compiler flags
  1840. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1841. nonstandard directory <lib dir>
  1842. LIBS libraries to pass to the linker, e.g. -l<library>
  1843. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1844. you have headers in a nonstandard directory <include dir>
  1845. CPP C preprocessor
  1846. CXX C++ compiler command
  1847. CXXFLAGS C++ compiler flags
  1848. CXXCPP C++ preprocessor
  1849. Use these variables to override the choices made by `configure' or to help
  1850. it to find libraries and programs with nonstandard names/locations.
  1851. Report bugs to <https://issues.asterisk.org>.
  1852. _ACEOF
  1853. ac_status=$?
  1854. fi
  1855. if test "$ac_init_help" = "recursive"; then
  1856. # If there are subdirs, report their specific --help.
  1857. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1858. test -d "$ac_dir" ||
  1859. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1860. continue
  1861. ac_builddir=.
  1862. case "$ac_dir" in
  1863. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1864. *)
  1865. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1866. # A ".." for each directory in $ac_dir_suffix.
  1867. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1868. case $ac_top_builddir_sub in
  1869. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1870. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1871. esac ;;
  1872. esac
  1873. ac_abs_top_builddir=$ac_pwd
  1874. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1875. # for backward compatibility:
  1876. ac_top_builddir=$ac_top_build_prefix
  1877. case $srcdir in
  1878. .) # We are building in place.
  1879. ac_srcdir=.
  1880. ac_top_srcdir=$ac_top_builddir_sub
  1881. ac_abs_top_srcdir=$ac_pwd ;;
  1882. [\\/]* | ?:[\\/]* ) # Absolute name.
  1883. ac_srcdir=$srcdir$ac_dir_suffix;
  1884. ac_top_srcdir=$srcdir
  1885. ac_abs_top_srcdir=$srcdir ;;
  1886. *) # Relative name.
  1887. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1888. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1889. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1890. esac
  1891. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1892. cd "$ac_dir" || { ac_status=$?; continue; }
  1893. # Check for guested configure.
  1894. if test -f "$ac_srcdir/configure.gnu"; then
  1895. echo &&
  1896. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1897. elif test -f "$ac_srcdir/configure"; then
  1898. echo &&
  1899. $SHELL "$ac_srcdir/configure" --help=recursive
  1900. else
  1901. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1902. fi || ac_status=$?
  1903. cd "$ac_pwd" || { ac_status=$?; break; }
  1904. done
  1905. fi
  1906. test -n "$ac_init_help" && exit $ac_status
  1907. if $ac_init_version; then
  1908. cat <<\_ACEOF
  1909. asterisk configure trunk
  1910. generated by GNU Autoconf 2.63
  1911. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1912. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1913. This configure script is free software; the Free Software Foundation
  1914. gives unlimited permission to copy, distribute and modify it.
  1915. "Asterisk"
  1916. _ACEOF
  1917. exit
  1918. fi
  1919. cat >config.log <<_ACEOF
  1920. This file contains any messages produced by compilers while
  1921. running configure, to aid debugging if configure makes a mistake.
  1922. It was created by asterisk $as_me trunk, which was
  1923. generated by GNU Autoconf 2.63. Invocation command line was
  1924. $ $0 $@
  1925. _ACEOF
  1926. exec 5>>config.log
  1927. {
  1928. cat <<_ASUNAME
  1929. ## --------- ##
  1930. ## Platform. ##
  1931. ## --------- ##
  1932. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1933. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1934. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1935. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1936. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1937. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1938. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1939. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1940. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1941. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1942. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1943. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1944. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1945. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1946. _ASUNAME
  1947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1948. for as_dir in $PATH
  1949. do
  1950. IFS=$as_save_IFS
  1951. test -z "$as_dir" && as_dir=.
  1952. $as_echo "PATH: $as_dir"
  1953. done
  1954. IFS=$as_save_IFS
  1955. } >&5
  1956. cat >&5 <<_ACEOF
  1957. ## ----------- ##
  1958. ## Core tests. ##
  1959. ## ----------- ##
  1960. _ACEOF
  1961. # Keep a trace of the command line.
  1962. # Strip out --no-create and --no-recursion so they do not pile up.
  1963. # Strip out --silent because we don't want to record it for future runs.
  1964. # Also quote any args containing shell meta-characters.
  1965. # Make two passes to allow for proper duplicate-argument suppression.
  1966. ac_configure_args=
  1967. ac_configure_args0=
  1968. ac_configure_args1=
  1969. ac_must_keep_next=false
  1970. for ac_pass in 1 2
  1971. do
  1972. for ac_arg
  1973. do
  1974. case $ac_arg in
  1975. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1976. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1977. | -silent | --silent | --silen | --sile | --sil)
  1978. continue ;;
  1979. *\'*)
  1980. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1981. esac
  1982. case $ac_pass in
  1983. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1984. 2)
  1985. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1986. if test $ac_must_keep_next = true; then
  1987. ac_must_keep_next=false # Got value, back to normal.
  1988. else
  1989. case $ac_arg in
  1990. *=* | --config-cache | -C | -disable-* | --disable-* \
  1991. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1992. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1993. | -with-* | --with-* | -without-* | --without-* | --x)
  1994. case "$ac_configure_args0 " in
  1995. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1996. esac
  1997. ;;
  1998. -* ) ac_must_keep_next=true ;;
  1999. esac
  2000. fi
  2001. ac_configure_args="$ac_configure_args '$ac_arg'"
  2002. ;;
  2003. esac
  2004. done
  2005. done
  2006. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  2007. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  2008. # When interrupted or exit'd, cleanup temporary files, and complete
  2009. # config.log. We remove comments because anyway the quotes in there
  2010. # would cause problems or look ugly.
  2011. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2012. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2013. trap 'exit_status=$?
  2014. # Save into config.log some information that might help in debugging.
  2015. {
  2016. echo
  2017. cat <<\_ASBOX
  2018. ## ---------------- ##
  2019. ## Cache variables. ##
  2020. ## ---------------- ##
  2021. _ASBOX
  2022. echo
  2023. # The following way of writing the cache mishandles newlines in values,
  2024. (
  2025. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2026. eval ac_val=\$$ac_var
  2027. case $ac_val in #(
  2028. *${as_nl}*)
  2029. case $ac_var in #(
  2030. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  2031. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2032. esac
  2033. case $ac_var in #(
  2034. _ | IFS | as_nl) ;; #(
  2035. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2036. *) $as_unset $ac_var ;;
  2037. esac ;;
  2038. esac
  2039. done
  2040. (set) 2>&1 |
  2041. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2042. *${as_nl}ac_space=\ *)
  2043. sed -n \
  2044. "s/'\''/'\''\\\\'\'''\''/g;
  2045. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2046. ;; #(
  2047. *)
  2048. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2049. ;;
  2050. esac |
  2051. sort
  2052. )
  2053. echo
  2054. cat <<\_ASBOX
  2055. ## ----------------- ##
  2056. ## Output variables. ##
  2057. ## ----------------- ##
  2058. _ASBOX
  2059. echo
  2060. for ac_var in $ac_subst_vars
  2061. do
  2062. eval ac_val=\$$ac_var
  2063. case $ac_val in
  2064. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2065. esac
  2066. $as_echo "$ac_var='\''$ac_val'\''"
  2067. done | sort
  2068. echo
  2069. if test -n "$ac_subst_files"; then
  2070. cat <<\_ASBOX
  2071. ## ------------------- ##
  2072. ## File substitutions. ##
  2073. ## ------------------- ##
  2074. _ASBOX
  2075. echo
  2076. for ac_var in $ac_subst_files
  2077. do
  2078. eval ac_val=\$$ac_var
  2079. case $ac_val in
  2080. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2081. esac
  2082. $as_echo "$ac_var='\''$ac_val'\''"
  2083. done | sort
  2084. echo
  2085. fi
  2086. if test -s confdefs.h; then
  2087. cat <<\_ASBOX
  2088. ## ----------- ##
  2089. ## confdefs.h. ##
  2090. ## ----------- ##
  2091. _ASBOX
  2092. echo
  2093. cat confdefs.h
  2094. echo
  2095. fi
  2096. test "$ac_signal" != 0 &&
  2097. $as_echo "$as_me: caught signal $ac_signal"
  2098. $as_echo "$as_me: exit $exit_status"
  2099. } >&5
  2100. rm -f core *.core core.conftest.* &&
  2101. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2102. exit $exit_status
  2103. ' 0
  2104. for ac_signal in 1 2 13 15; do
  2105. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  2106. done
  2107. ac_signal=0
  2108. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2109. rm -f -r conftest* confdefs.h
  2110. # Predefined preprocessor variables.
  2111. cat >>confdefs.h <<_ACEOF
  2112. #define PACKAGE_NAME "$PACKAGE_NAME"
  2113. _ACEOF
  2114. cat >>confdefs.h <<_ACEOF
  2115. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2116. _ACEOF
  2117. cat >>confdefs.h <<_ACEOF
  2118. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2119. _ACEOF
  2120. cat >>confdefs.h <<_ACEOF
  2121. #define PACKAGE_STRING "$PACKAGE_STRING"
  2122. _ACEOF
  2123. cat >>confdefs.h <<_ACEOF
  2124. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2125. _ACEOF
  2126. # Let the site file select an alternate cache file if it wants to.
  2127. # Prefer an explicitly selected file to automatically selected ones.
  2128. ac_site_file1=NONE
  2129. ac_site_file2=NONE
  2130. if test -n "$CONFIG_SITE"; then
  2131. ac_site_file1=$CONFIG_SITE
  2132. elif test "x$prefix" != xNONE; then
  2133. ac_site_file1=$prefix/share/config.site
  2134. ac_site_file2=$prefix/etc/config.site
  2135. else
  2136. ac_site_file1=$ac_default_prefix/share/config.site
  2137. ac_site_file2=$ac_default_prefix/etc/config.site
  2138. fi
  2139. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2140. do
  2141. test "x$ac_site_file" = xNONE && continue
  2142. if test -r "$ac_site_file"; then
  2143. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  2144. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2145. sed 's/^/| /' "$ac_site_file" >&5
  2146. . "$ac_site_file"
  2147. fi
  2148. done
  2149. if test -r "$cache_file"; then
  2150. # Some versions of bash will fail to source /dev/null (special
  2151. # files actually), so we avoid doing that.
  2152. if test -f "$cache_file"; then
  2153. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  2154. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2155. case $cache_file in
  2156. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2157. *) . "./$cache_file";;
  2158. esac
  2159. fi
  2160. else
  2161. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  2162. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2163. >$cache_file
  2164. fi
  2165. ac_header_list="$ac_header_list utime.h"
  2166. # Check that the precious variables saved in the cache have kept the same
  2167. # value.
  2168. ac_cache_corrupted=false
  2169. for ac_var in $ac_precious_vars; do
  2170. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2171. eval ac_new_set=\$ac_env_${ac_var}_set
  2172. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2173. eval ac_new_val=\$ac_env_${ac_var}_value
  2174. case $ac_old_set,$ac_new_set in
  2175. set,)
  2176. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2177. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2178. ac_cache_corrupted=: ;;
  2179. ,set)
  2180. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2181. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2182. ac_cache_corrupted=: ;;
  2183. ,);;
  2184. *)
  2185. if test "x$ac_old_val" != "x$ac_new_val"; then
  2186. # differences in whitespace do not lead to failure.
  2187. ac_old_val_w=`echo x $ac_old_val`
  2188. ac_new_val_w=`echo x $ac_new_val`
  2189. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2190. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2191. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2192. ac_cache_corrupted=:
  2193. else
  2194. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2195. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2196. eval $ac_var=\$ac_old_val
  2197. fi
  2198. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2199. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2200. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2201. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2202. fi;;
  2203. esac
  2204. # Pass precious variables to config.status.
  2205. if test "$ac_new_set" = set; then
  2206. case $ac_new_val in
  2207. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2208. *) ac_arg=$ac_var=$ac_new_val ;;
  2209. esac
  2210. case " $ac_configure_args " in
  2211. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2212. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2213. esac
  2214. fi
  2215. done
  2216. if $ac_cache_corrupted; then
  2217. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2219. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2220. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2221. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2222. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2223. { (exit 1); exit 1; }; }
  2224. fi
  2225. ac_ext=c
  2226. ac_cpp='$CPP $CPPFLAGS'
  2227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2230. # cross-compile macros
  2231. ac_aux_dir=
  2232. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2233. if test -f "$ac_dir/install-sh"; then
  2234. ac_aux_dir=$ac_dir
  2235. ac_install_sh="$ac_aux_dir/install-sh -c"
  2236. break
  2237. elif test -f "$ac_dir/install.sh"; then
  2238. ac_aux_dir=$ac_dir
  2239. ac_install_sh="$ac_aux_dir/install.sh -c"
  2240. break
  2241. elif test -f "$ac_dir/shtool"; then
  2242. ac_aux_dir=$ac_dir
  2243. ac_install_sh="$ac_aux_dir/shtool install -c"
  2244. break
  2245. fi
  2246. done
  2247. if test -z "$ac_aux_dir"; then
  2248. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2249. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2250. { (exit 1); exit 1; }; }
  2251. fi
  2252. # These three variables are undocumented and unsupported,
  2253. # and are intended to be withdrawn in a future Autoconf release.
  2254. # They can cause serious problems if a builder's source tree is in a directory
  2255. # whose full name contains unusual characters.
  2256. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2257. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2258. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2259. # Make sure we can run config.sub.
  2260. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2261. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2262. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2263. { (exit 1); exit 1; }; }
  2264. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2265. $as_echo_n "checking build system type... " >&6; }
  2266. if test "${ac_cv_build+set}" = set; then
  2267. $as_echo_n "(cached) " >&6
  2268. else
  2269. ac_build_alias=$build_alias
  2270. test "x$ac_build_alias" = x &&
  2271. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2272. test "x$ac_build_alias" = x &&
  2273. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2274. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2275. { (exit 1); exit 1; }; }
  2276. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2277. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2278. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2279. { (exit 1); exit 1; }; }
  2280. fi
  2281. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2282. $as_echo "$ac_cv_build" >&6; }
  2283. case $ac_cv_build in
  2284. *-*-*) ;;
  2285. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2286. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2287. { (exit 1); exit 1; }; };;
  2288. esac
  2289. build=$ac_cv_build
  2290. ac_save_IFS=$IFS; IFS='-'
  2291. set x $ac_cv_build
  2292. shift
  2293. build_cpu=$1
  2294. build_vendor=$2
  2295. shift; shift
  2296. # Remember, the first character of IFS is used to create $*,
  2297. # except with old shells:
  2298. build_os=$*
  2299. IFS=$ac_save_IFS
  2300. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2301. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2302. $as_echo_n "checking host system type... " >&6; }
  2303. if test "${ac_cv_host+set}" = set; then
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. if test "x$host_alias" = x; then
  2307. ac_cv_host=$ac_cv_build
  2308. else
  2309. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2310. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2311. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2312. { (exit 1); exit 1; }; }
  2313. fi
  2314. fi
  2315. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2316. $as_echo "$ac_cv_host" >&6; }
  2317. case $ac_cv_host in
  2318. *-*-*) ;;
  2319. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2320. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2321. { (exit 1); exit 1; }; };;
  2322. esac
  2323. host=$ac_cv_host
  2324. ac_save_IFS=$IFS; IFS='-'
  2325. set x $ac_cv_host
  2326. shift
  2327. host_cpu=$1
  2328. host_vendor=$2
  2329. shift; shift
  2330. # Remember, the first character of IFS is used to create $*,
  2331. # except with old shells:
  2332. host_os=$*
  2333. IFS=$ac_save_IFS
  2334. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2335. # check existence of the package
  2336. ac_aux_dir=
  2337. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  2338. if test -f "$ac_dir/install-sh"; then
  2339. ac_aux_dir=$ac_dir
  2340. ac_install_sh="$ac_aux_dir/install-sh -c"
  2341. break
  2342. elif test -f "$ac_dir/install.sh"; then
  2343. ac_aux_dir=$ac_dir
  2344. ac_install_sh="$ac_aux_dir/install.sh -c"
  2345. break
  2346. elif test -f "$ac_dir/shtool"; then
  2347. ac_aux_dir=$ac_dir
  2348. ac_install_sh="$ac_aux_dir/shtool install -c"
  2349. break
  2350. fi
  2351. done
  2352. if test -z "$ac_aux_dir"; then
  2353. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
  2354. $as_echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
  2355. { (exit 1); exit 1; }; }
  2356. fi
  2357. # These three variables are undocumented and unsupported,
  2358. # and are intended to be withdrawn in a future Autoconf release.
  2359. # They can cause serious problems if a builder's source tree is in a directory
  2360. # whose full name contains unusual characters.
  2361. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2362. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2363. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2364. # preserve any CFLAGS or LDFLAGS that may be set
  2365. # NOTE: This must be done before calling any macros that end up
  2366. # calling AC_PROG_CC or the like, since they will set a default
  2367. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  2368. # we don't want those default flags to be carried over into the
  2369. # rest of the build system since we have other means of controlling
  2370. # debugging symbol generation and optimization.
  2371. CONFIG_CFLAGS="${CFLAGS}"
  2372. CONFIG_LDFLAGS="${LDFLAGS}"
  2373. # specify output header file
  2374. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  2375. # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
  2376. # other macro that uses the C compiler, or the default order will be used.
  2377. ac_ext=c
  2378. ac_cpp='$CPP $CPPFLAGS'
  2379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2382. if test -n "$ac_tool_prefix"; then
  2383. for ac_prog in gcc cc
  2384. do
  2385. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2386. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2387. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2388. $as_echo_n "checking for $ac_word... " >&6; }
  2389. if test "${ac_cv_prog_CC+set}" = set; then
  2390. $as_echo_n "(cached) " >&6
  2391. else
  2392. if test -n "$CC"; then
  2393. ac_cv_prog_CC="$CC" # Let the user override the test.
  2394. else
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for ac_exec_ext in '' $ac_executable_extensions; do
  2401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2402. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2403. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2404. break 2
  2405. fi
  2406. done
  2407. done
  2408. IFS=$as_save_IFS
  2409. fi
  2410. fi
  2411. CC=$ac_cv_prog_CC
  2412. if test -n "$CC"; then
  2413. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2414. $as_echo "$CC" >&6; }
  2415. else
  2416. { $as_echo "$as_me:$LINENO: result: no" >&5
  2417. $as_echo "no" >&6; }
  2418. fi
  2419. test -n "$CC" && break
  2420. done
  2421. fi
  2422. if test -z "$CC"; then
  2423. ac_ct_CC=$CC
  2424. for ac_prog in gcc cc
  2425. do
  2426. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2427. set dummy $ac_prog; ac_word=$2
  2428. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2429. $as_echo_n "checking for $ac_word... " >&6; }
  2430. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2431. $as_echo_n "(cached) " >&6
  2432. else
  2433. if test -n "$ac_ct_CC"; then
  2434. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2435. else
  2436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2437. for as_dir in $PATH
  2438. do
  2439. IFS=$as_save_IFS
  2440. test -z "$as_dir" && as_dir=.
  2441. for ac_exec_ext in '' $ac_executable_extensions; do
  2442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2443. ac_cv_prog_ac_ct_CC="$ac_prog"
  2444. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2445. break 2
  2446. fi
  2447. done
  2448. done
  2449. IFS=$as_save_IFS
  2450. fi
  2451. fi
  2452. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2453. if test -n "$ac_ct_CC"; then
  2454. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2455. $as_echo "$ac_ct_CC" >&6; }
  2456. else
  2457. { $as_echo "$as_me:$LINENO: result: no" >&5
  2458. $as_echo "no" >&6; }
  2459. fi
  2460. test -n "$ac_ct_CC" && break
  2461. done
  2462. if test "x$ac_ct_CC" = x; then
  2463. CC=""
  2464. else
  2465. case $cross_compiling:$ac_tool_warned in
  2466. yes:)
  2467. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2469. ac_tool_warned=yes ;;
  2470. esac
  2471. CC=$ac_ct_CC
  2472. fi
  2473. fi
  2474. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2475. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2476. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2477. See \`config.log' for more details." >&5
  2478. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2479. See \`config.log' for more details." >&2;}
  2480. { (exit 1); exit 1; }; }; }
  2481. # Provide some information about the compiler.
  2482. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2483. set X $ac_compile
  2484. ac_compiler=$2
  2485. { (ac_try="$ac_compiler --version >&5"
  2486. case "(($ac_try" in
  2487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2488. *) ac_try_echo=$ac_try;;
  2489. esac
  2490. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2491. $as_echo "$ac_try_echo") >&5
  2492. (eval "$ac_compiler --version >&5") 2>&5
  2493. ac_status=$?
  2494. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2495. (exit $ac_status); }
  2496. { (ac_try="$ac_compiler -v >&5"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2502. $as_echo "$ac_try_echo") >&5
  2503. (eval "$ac_compiler -v >&5") 2>&5
  2504. ac_status=$?
  2505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2506. (exit $ac_status); }
  2507. { (ac_try="$ac_compiler -V >&5"
  2508. case "(($ac_try" in
  2509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2510. *) ac_try_echo=$ac_try;;
  2511. esac
  2512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2513. $as_echo "$ac_try_echo") >&5
  2514. (eval "$ac_compiler -V >&5") 2>&5
  2515. ac_status=$?
  2516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2517. (exit $ac_status); }
  2518. cat >conftest.$ac_ext <<_ACEOF
  2519. /* confdefs.h. */
  2520. _ACEOF
  2521. cat confdefs.h >>conftest.$ac_ext
  2522. cat >>conftest.$ac_ext <<_ACEOF
  2523. /* end confdefs.h. */
  2524. int
  2525. main ()
  2526. {
  2527. ;
  2528. return 0;
  2529. }
  2530. _ACEOF
  2531. ac_clean_files_save=$ac_clean_files
  2532. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2533. # Try to create an executable without -o first, disregard a.out.
  2534. # It will help us diagnose broken compilers, and finding out an intuition
  2535. # of exeext.
  2536. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2537. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2538. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2539. # The possible output files:
  2540. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2541. ac_rmfiles=
  2542. for ac_file in $ac_files
  2543. do
  2544. case $ac_file in
  2545. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2546. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2547. esac
  2548. done
  2549. rm -f $ac_rmfiles
  2550. if { (ac_try="$ac_link_default"
  2551. case "(($ac_try" in
  2552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2553. *) ac_try_echo=$ac_try;;
  2554. esac
  2555. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2556. $as_echo "$ac_try_echo") >&5
  2557. (eval "$ac_link_default") 2>&5
  2558. ac_status=$?
  2559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2560. (exit $ac_status); }; then
  2561. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2562. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2563. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2564. # so that the user can short-circuit this test for compilers unknown to
  2565. # Autoconf.
  2566. for ac_file in $ac_files ''
  2567. do
  2568. test -f "$ac_file" || continue
  2569. case $ac_file in
  2570. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2571. ;;
  2572. [ab].out )
  2573. # We found the default executable, but exeext='' is most
  2574. # certainly right.
  2575. break;;
  2576. *.* )
  2577. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2578. then :; else
  2579. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2580. fi
  2581. # We set ac_cv_exeext here because the later test for it is not
  2582. # safe: cross compilers may not add the suffix if given an `-o'
  2583. # argument, so we may need to know it at that point already.
  2584. # Even if this section looks crufty: it has the advantage of
  2585. # actually working.
  2586. break;;
  2587. * )
  2588. break;;
  2589. esac
  2590. done
  2591. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2592. else
  2593. ac_file=''
  2594. fi
  2595. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2596. $as_echo "$ac_file" >&6; }
  2597. if test -z "$ac_file"; then
  2598. $as_echo "$as_me: failed program was:" >&5
  2599. sed 's/^/| /' conftest.$ac_ext >&5
  2600. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2602. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2603. See \`config.log' for more details." >&5
  2604. $as_echo "$as_me: error: C compiler cannot create executables
  2605. See \`config.log' for more details." >&2;}
  2606. { (exit 77); exit 77; }; }; }
  2607. fi
  2608. ac_exeext=$ac_cv_exeext
  2609. # Check that the compiler produces executables we can run. If not, either
  2610. # the compiler is broken, or we cross compile.
  2611. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2612. $as_echo_n "checking whether the C compiler works... " >&6; }
  2613. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2614. # If not cross compiling, check that we can run a simple program.
  2615. if test "$cross_compiling" != yes; then
  2616. if { ac_try='./$ac_file'
  2617. { (case "(($ac_try" in
  2618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2619. *) ac_try_echo=$ac_try;;
  2620. esac
  2621. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2622. $as_echo "$ac_try_echo") >&5
  2623. (eval "$ac_try") 2>&5
  2624. ac_status=$?
  2625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2626. (exit $ac_status); }; }; then
  2627. cross_compiling=no
  2628. else
  2629. if test "$cross_compiling" = maybe; then
  2630. cross_compiling=yes
  2631. else
  2632. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2633. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2634. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2635. If you meant to cross compile, use \`--host'.
  2636. See \`config.log' for more details." >&5
  2637. $as_echo "$as_me: error: cannot run C compiled programs.
  2638. If you meant to cross compile, use \`--host'.
  2639. See \`config.log' for more details." >&2;}
  2640. { (exit 1); exit 1; }; }; }
  2641. fi
  2642. fi
  2643. fi
  2644. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2645. $as_echo "yes" >&6; }
  2646. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2647. ac_clean_files=$ac_clean_files_save
  2648. # Check that the compiler produces executables we can run. If not, either
  2649. # the compiler is broken, or we cross compile.
  2650. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2651. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2652. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2653. $as_echo "$cross_compiling" >&6; }
  2654. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2655. $as_echo_n "checking for suffix of executables... " >&6; }
  2656. if { (ac_try="$ac_link"
  2657. case "(($ac_try" in
  2658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2659. *) ac_try_echo=$ac_try;;
  2660. esac
  2661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2662. $as_echo "$ac_try_echo") >&5
  2663. (eval "$ac_link") 2>&5
  2664. ac_status=$?
  2665. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2666. (exit $ac_status); }; then
  2667. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2668. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2669. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2670. # `rm'.
  2671. for ac_file in conftest.exe conftest conftest.*; do
  2672. test -f "$ac_file" || continue
  2673. case $ac_file in
  2674. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2675. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2676. break;;
  2677. * ) break;;
  2678. esac
  2679. done
  2680. else
  2681. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2682. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2683. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2684. See \`config.log' for more details." >&5
  2685. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2686. See \`config.log' for more details." >&2;}
  2687. { (exit 1); exit 1; }; }; }
  2688. fi
  2689. rm -f conftest$ac_cv_exeext
  2690. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2691. $as_echo "$ac_cv_exeext" >&6; }
  2692. rm -f conftest.$ac_ext
  2693. EXEEXT=$ac_cv_exeext
  2694. ac_exeext=$EXEEXT
  2695. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2696. $as_echo_n "checking for suffix of object files... " >&6; }
  2697. if test "${ac_cv_objext+set}" = set; then
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. cat >conftest.$ac_ext <<_ACEOF
  2701. /* confdefs.h. */
  2702. _ACEOF
  2703. cat confdefs.h >>conftest.$ac_ext
  2704. cat >>conftest.$ac_ext <<_ACEOF
  2705. /* end confdefs.h. */
  2706. int
  2707. main ()
  2708. {
  2709. ;
  2710. return 0;
  2711. }
  2712. _ACEOF
  2713. rm -f conftest.o conftest.obj
  2714. if { (ac_try="$ac_compile"
  2715. case "(($ac_try" in
  2716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2717. *) ac_try_echo=$ac_try;;
  2718. esac
  2719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2720. $as_echo "$ac_try_echo") >&5
  2721. (eval "$ac_compile") 2>&5
  2722. ac_status=$?
  2723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2724. (exit $ac_status); }; then
  2725. for ac_file in conftest.o conftest.obj conftest.*; do
  2726. test -f "$ac_file" || continue;
  2727. case $ac_file in
  2728. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2729. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2730. break;;
  2731. esac
  2732. done
  2733. else
  2734. $as_echo "$as_me: failed program was:" >&5
  2735. sed 's/^/| /' conftest.$ac_ext >&5
  2736. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2737. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2738. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2739. See \`config.log' for more details." >&5
  2740. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2741. See \`config.log' for more details." >&2;}
  2742. { (exit 1); exit 1; }; }; }
  2743. fi
  2744. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2745. fi
  2746. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2747. $as_echo "$ac_cv_objext" >&6; }
  2748. OBJEXT=$ac_cv_objext
  2749. ac_objext=$OBJEXT
  2750. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2751. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2752. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. cat >conftest.$ac_ext <<_ACEOF
  2756. /* confdefs.h. */
  2757. _ACEOF
  2758. cat confdefs.h >>conftest.$ac_ext
  2759. cat >>conftest.$ac_ext <<_ACEOF
  2760. /* end confdefs.h. */
  2761. int
  2762. main ()
  2763. {
  2764. #ifndef __GNUC__
  2765. choke me
  2766. #endif
  2767. ;
  2768. return 0;
  2769. }
  2770. _ACEOF
  2771. rm -f conftest.$ac_objext
  2772. if { (ac_try="$ac_compile"
  2773. case "(($ac_try" in
  2774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2775. *) ac_try_echo=$ac_try;;
  2776. esac
  2777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2778. $as_echo "$ac_try_echo") >&5
  2779. (eval "$ac_compile") 2>conftest.er1
  2780. ac_status=$?
  2781. grep -v '^ *+' conftest.er1 >conftest.err
  2782. rm -f conftest.er1
  2783. cat conftest.err >&5
  2784. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2785. (exit $ac_status); } && {
  2786. test -z "$ac_c_werror_flag" ||
  2787. test ! -s conftest.err
  2788. } && test -s conftest.$ac_objext; then
  2789. ac_compiler_gnu=yes
  2790. else
  2791. $as_echo "$as_me: failed program was:" >&5
  2792. sed 's/^/| /' conftest.$ac_ext >&5
  2793. ac_compiler_gnu=no
  2794. fi
  2795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2796. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2797. fi
  2798. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2799. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2800. if test $ac_compiler_gnu = yes; then
  2801. GCC=yes
  2802. else
  2803. GCC=
  2804. fi
  2805. ac_test_CFLAGS=${CFLAGS+set}
  2806. ac_save_CFLAGS=$CFLAGS
  2807. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2808. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2809. if test "${ac_cv_prog_cc_g+set}" = set; then
  2810. $as_echo_n "(cached) " >&6
  2811. else
  2812. ac_save_c_werror_flag=$ac_c_werror_flag
  2813. ac_c_werror_flag=yes
  2814. ac_cv_prog_cc_g=no
  2815. CFLAGS="-g"
  2816. cat >conftest.$ac_ext <<_ACEOF
  2817. /* confdefs.h. */
  2818. _ACEOF
  2819. cat confdefs.h >>conftest.$ac_ext
  2820. cat >>conftest.$ac_ext <<_ACEOF
  2821. /* end confdefs.h. */
  2822. int
  2823. main ()
  2824. {
  2825. ;
  2826. return 0;
  2827. }
  2828. _ACEOF
  2829. rm -f conftest.$ac_objext
  2830. if { (ac_try="$ac_compile"
  2831. case "(($ac_try" in
  2832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2833. *) ac_try_echo=$ac_try;;
  2834. esac
  2835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2836. $as_echo "$ac_try_echo") >&5
  2837. (eval "$ac_compile") 2>conftest.er1
  2838. ac_status=$?
  2839. grep -v '^ *+' conftest.er1 >conftest.err
  2840. rm -f conftest.er1
  2841. cat conftest.err >&5
  2842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843. (exit $ac_status); } && {
  2844. test -z "$ac_c_werror_flag" ||
  2845. test ! -s conftest.err
  2846. } && test -s conftest.$ac_objext; then
  2847. ac_cv_prog_cc_g=yes
  2848. else
  2849. $as_echo "$as_me: failed program was:" >&5
  2850. sed 's/^/| /' conftest.$ac_ext >&5
  2851. CFLAGS=""
  2852. cat >conftest.$ac_ext <<_ACEOF
  2853. /* confdefs.h. */
  2854. _ACEOF
  2855. cat confdefs.h >>conftest.$ac_ext
  2856. cat >>conftest.$ac_ext <<_ACEOF
  2857. /* end confdefs.h. */
  2858. int
  2859. main ()
  2860. {
  2861. ;
  2862. return 0;
  2863. }
  2864. _ACEOF
  2865. rm -f conftest.$ac_objext
  2866. if { (ac_try="$ac_compile"
  2867. case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2872. $as_echo "$ac_try_echo") >&5
  2873. (eval "$ac_compile") 2>conftest.er1
  2874. ac_status=$?
  2875. grep -v '^ *+' conftest.er1 >conftest.err
  2876. rm -f conftest.er1
  2877. cat conftest.err >&5
  2878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2879. (exit $ac_status); } && {
  2880. test -z "$ac_c_werror_flag" ||
  2881. test ! -s conftest.err
  2882. } && test -s conftest.$ac_objext; then
  2883. :
  2884. else
  2885. $as_echo "$as_me: failed program was:" >&5
  2886. sed 's/^/| /' conftest.$ac_ext >&5
  2887. ac_c_werror_flag=$ac_save_c_werror_flag
  2888. CFLAGS="-g"
  2889. cat >conftest.$ac_ext <<_ACEOF
  2890. /* confdefs.h. */
  2891. _ACEOF
  2892. cat confdefs.h >>conftest.$ac_ext
  2893. cat >>conftest.$ac_ext <<_ACEOF
  2894. /* end confdefs.h. */
  2895. int
  2896. main ()
  2897. {
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. rm -f conftest.$ac_objext
  2903. if { (ac_try="$ac_compile"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo") >&5
  2910. (eval "$ac_compile") 2>conftest.er1
  2911. ac_status=$?
  2912. grep -v '^ *+' conftest.er1 >conftest.err
  2913. rm -f conftest.er1
  2914. cat conftest.err >&5
  2915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2916. (exit $ac_status); } && {
  2917. test -z "$ac_c_werror_flag" ||
  2918. test ! -s conftest.err
  2919. } && test -s conftest.$ac_objext; then
  2920. ac_cv_prog_cc_g=yes
  2921. else
  2922. $as_echo "$as_me: failed program was:" >&5
  2923. sed 's/^/| /' conftest.$ac_ext >&5
  2924. fi
  2925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2928. fi
  2929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2930. ac_c_werror_flag=$ac_save_c_werror_flag
  2931. fi
  2932. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2933. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2934. if test "$ac_test_CFLAGS" = set; then
  2935. CFLAGS=$ac_save_CFLAGS
  2936. elif test $ac_cv_prog_cc_g = yes; then
  2937. if test "$GCC" = yes; then
  2938. CFLAGS="-g -O2"
  2939. else
  2940. CFLAGS="-g"
  2941. fi
  2942. else
  2943. if test "$GCC" = yes; then
  2944. CFLAGS="-O2"
  2945. else
  2946. CFLAGS=
  2947. fi
  2948. fi
  2949. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2950. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2951. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. ac_cv_prog_cc_c89=no
  2955. ac_save_CC=$CC
  2956. cat >conftest.$ac_ext <<_ACEOF
  2957. /* confdefs.h. */
  2958. _ACEOF
  2959. cat confdefs.h >>conftest.$ac_ext
  2960. cat >>conftest.$ac_ext <<_ACEOF
  2961. /* end confdefs.h. */
  2962. #include <stdarg.h>
  2963. #include <stdio.h>
  2964. #include <sys/types.h>
  2965. #include <sys/stat.h>
  2966. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2967. struct buf { int x; };
  2968. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2969. static char *e (p, i)
  2970. char **p;
  2971. int i;
  2972. {
  2973. return p[i];
  2974. }
  2975. static char *f (char * (*g) (char **, int), char **p, ...)
  2976. {
  2977. char *s;
  2978. va_list v;
  2979. va_start (v,p);
  2980. s = g (p, va_arg (v,int));
  2981. va_end (v);
  2982. return s;
  2983. }
  2984. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2985. function prototypes and stuff, but not '\xHH' hex character constants.
  2986. These don't provoke an error unfortunately, instead are silently treated
  2987. as 'x'. The following induces an error, until -std is added to get
  2988. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2989. array size at least. It's necessary to write '\x00'==0 to get something
  2990. that's true only with -std. */
  2991. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2992. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2993. inside strings and character constants. */
  2994. #define FOO(x) 'x'
  2995. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2996. int test (int i, double x);
  2997. struct s1 {int (*f) (int a);};
  2998. struct s2 {int (*f) (double a);};
  2999. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3000. int argc;
  3001. char **argv;
  3002. int
  3003. main ()
  3004. {
  3005. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3006. ;
  3007. return 0;
  3008. }
  3009. _ACEOF
  3010. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3011. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3012. do
  3013. CC="$ac_save_CC $ac_arg"
  3014. rm -f conftest.$ac_objext
  3015. if { (ac_try="$ac_compile"
  3016. case "(($ac_try" in
  3017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3018. *) ac_try_echo=$ac_try;;
  3019. esac
  3020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3021. $as_echo "$ac_try_echo") >&5
  3022. (eval "$ac_compile") 2>conftest.er1
  3023. ac_status=$?
  3024. grep -v '^ *+' conftest.er1 >conftest.err
  3025. rm -f conftest.er1
  3026. cat conftest.err >&5
  3027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3028. (exit $ac_status); } && {
  3029. test -z "$ac_c_werror_flag" ||
  3030. test ! -s conftest.err
  3031. } && test -s conftest.$ac_objext; then
  3032. ac_cv_prog_cc_c89=$ac_arg
  3033. else
  3034. $as_echo "$as_me: failed program was:" >&5
  3035. sed 's/^/| /' conftest.$ac_ext >&5
  3036. fi
  3037. rm -f core conftest.err conftest.$ac_objext
  3038. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3039. done
  3040. rm -f conftest.$ac_ext
  3041. CC=$ac_save_CC
  3042. fi
  3043. # AC_CACHE_VAL
  3044. case "x$ac_cv_prog_cc_c89" in
  3045. x)
  3046. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3047. $as_echo "none needed" >&6; } ;;
  3048. xno)
  3049. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3050. $as_echo "unsupported" >&6; } ;;
  3051. *)
  3052. CC="$CC $ac_cv_prog_cc_c89"
  3053. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3054. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3055. esac
  3056. ac_ext=c
  3057. ac_cpp='$CPP $CPPFLAGS'
  3058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3061. ac_ext=c
  3062. ac_cpp='$CPP $CPPFLAGS'
  3063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3066. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3067. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3068. # On Suns, sometimes $CPP names a directory.
  3069. if test -n "$CPP" && test -d "$CPP"; then
  3070. CPP=
  3071. fi
  3072. if test -z "$CPP"; then
  3073. if test "${ac_cv_prog_CPP+set}" = set; then
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. # Double quotes because CPP needs to be expanded
  3077. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3078. do
  3079. ac_preproc_ok=false
  3080. for ac_c_preproc_warn_flag in '' yes
  3081. do
  3082. # Use a header file that comes with gcc, so configuring glibc
  3083. # with a fresh cross-compiler works.
  3084. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3085. # <limits.h> exists even on freestanding compilers.
  3086. # On the NeXT, cc -E runs the code through the compiler's parser,
  3087. # not just through cpp. "Syntax error" is here to catch this case.
  3088. cat >conftest.$ac_ext <<_ACEOF
  3089. /* confdefs.h. */
  3090. _ACEOF
  3091. cat confdefs.h >>conftest.$ac_ext
  3092. cat >>conftest.$ac_ext <<_ACEOF
  3093. /* end confdefs.h. */
  3094. #ifdef __STDC__
  3095. # include <limits.h>
  3096. #else
  3097. # include <assert.h>
  3098. #endif
  3099. Syntax error
  3100. _ACEOF
  3101. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3102. case "(($ac_try" in
  3103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3104. *) ac_try_echo=$ac_try;;
  3105. esac
  3106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3107. $as_echo "$ac_try_echo") >&5
  3108. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3109. ac_status=$?
  3110. grep -v '^ *+' conftest.er1 >conftest.err
  3111. rm -f conftest.er1
  3112. cat conftest.err >&5
  3113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3114. (exit $ac_status); } >/dev/null && {
  3115. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3116. test ! -s conftest.err
  3117. }; then
  3118. :
  3119. else
  3120. $as_echo "$as_me: failed program was:" >&5
  3121. sed 's/^/| /' conftest.$ac_ext >&5
  3122. # Broken: fails on valid input.
  3123. continue
  3124. fi
  3125. rm -f conftest.err conftest.$ac_ext
  3126. # OK, works on sane cases. Now check whether nonexistent headers
  3127. # can be detected and how.
  3128. cat >conftest.$ac_ext <<_ACEOF
  3129. /* confdefs.h. */
  3130. _ACEOF
  3131. cat confdefs.h >>conftest.$ac_ext
  3132. cat >>conftest.$ac_ext <<_ACEOF
  3133. /* end confdefs.h. */
  3134. #include <ac_nonexistent.h>
  3135. _ACEOF
  3136. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3137. case "(($ac_try" in
  3138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3139. *) ac_try_echo=$ac_try;;
  3140. esac
  3141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3142. $as_echo "$ac_try_echo") >&5
  3143. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3144. ac_status=$?
  3145. grep -v '^ *+' conftest.er1 >conftest.err
  3146. rm -f conftest.er1
  3147. cat conftest.err >&5
  3148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3149. (exit $ac_status); } >/dev/null && {
  3150. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3151. test ! -s conftest.err
  3152. }; then
  3153. # Broken: success on invalid input.
  3154. continue
  3155. else
  3156. $as_echo "$as_me: failed program was:" >&5
  3157. sed 's/^/| /' conftest.$ac_ext >&5
  3158. # Passes both tests.
  3159. ac_preproc_ok=:
  3160. break
  3161. fi
  3162. rm -f conftest.err conftest.$ac_ext
  3163. done
  3164. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3165. rm -f conftest.err conftest.$ac_ext
  3166. if $ac_preproc_ok; then
  3167. break
  3168. fi
  3169. done
  3170. ac_cv_prog_CPP=$CPP
  3171. fi
  3172. CPP=$ac_cv_prog_CPP
  3173. else
  3174. ac_cv_prog_CPP=$CPP
  3175. fi
  3176. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3177. $as_echo "$CPP" >&6; }
  3178. ac_preproc_ok=false
  3179. for ac_c_preproc_warn_flag in '' yes
  3180. do
  3181. # Use a header file that comes with gcc, so configuring glibc
  3182. # with a fresh cross-compiler works.
  3183. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3184. # <limits.h> exists even on freestanding compilers.
  3185. # On the NeXT, cc -E runs the code through the compiler's parser,
  3186. # not just through cpp. "Syntax error" is here to catch this case.
  3187. cat >conftest.$ac_ext <<_ACEOF
  3188. /* confdefs.h. */
  3189. _ACEOF
  3190. cat confdefs.h >>conftest.$ac_ext
  3191. cat >>conftest.$ac_ext <<_ACEOF
  3192. /* end confdefs.h. */
  3193. #ifdef __STDC__
  3194. # include <limits.h>
  3195. #else
  3196. # include <assert.h>
  3197. #endif
  3198. Syntax error
  3199. _ACEOF
  3200. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3201. case "(($ac_try" in
  3202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3203. *) ac_try_echo=$ac_try;;
  3204. esac
  3205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3206. $as_echo "$ac_try_echo") >&5
  3207. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3208. ac_status=$?
  3209. grep -v '^ *+' conftest.er1 >conftest.err
  3210. rm -f conftest.er1
  3211. cat conftest.err >&5
  3212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3213. (exit $ac_status); } >/dev/null && {
  3214. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3215. test ! -s conftest.err
  3216. }; then
  3217. :
  3218. else
  3219. $as_echo "$as_me: failed program was:" >&5
  3220. sed 's/^/| /' conftest.$ac_ext >&5
  3221. # Broken: fails on valid input.
  3222. continue
  3223. fi
  3224. rm -f conftest.err conftest.$ac_ext
  3225. # OK, works on sane cases. Now check whether nonexistent headers
  3226. # can be detected and how.
  3227. cat >conftest.$ac_ext <<_ACEOF
  3228. /* confdefs.h. */
  3229. _ACEOF
  3230. cat confdefs.h >>conftest.$ac_ext
  3231. cat >>conftest.$ac_ext <<_ACEOF
  3232. /* end confdefs.h. */
  3233. #include <ac_nonexistent.h>
  3234. _ACEOF
  3235. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3236. case "(($ac_try" in
  3237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3238. *) ac_try_echo=$ac_try;;
  3239. esac
  3240. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3241. $as_echo "$ac_try_echo") >&5
  3242. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3243. ac_status=$?
  3244. grep -v '^ *+' conftest.er1 >conftest.err
  3245. rm -f conftest.er1
  3246. cat conftest.err >&5
  3247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3248. (exit $ac_status); } >/dev/null && {
  3249. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3250. test ! -s conftest.err
  3251. }; then
  3252. # Broken: success on invalid input.
  3253. continue
  3254. else
  3255. $as_echo "$as_me: failed program was:" >&5
  3256. sed 's/^/| /' conftest.$ac_ext >&5
  3257. # Passes both tests.
  3258. ac_preproc_ok=:
  3259. break
  3260. fi
  3261. rm -f conftest.err conftest.$ac_ext
  3262. done
  3263. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3264. rm -f conftest.err conftest.$ac_ext
  3265. if $ac_preproc_ok; then
  3266. :
  3267. else
  3268. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3270. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3271. See \`config.log' for more details." >&5
  3272. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3273. See \`config.log' for more details." >&2;}
  3274. { (exit 1); exit 1; }; }; }
  3275. fi
  3276. ac_ext=c
  3277. ac_cpp='$CPP $CPPFLAGS'
  3278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3281. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3282. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3283. if test "${ac_cv_path_GREP+set}" = set; then
  3284. $as_echo_n "(cached) " >&6
  3285. else
  3286. if test -z "$GREP"; then
  3287. ac_path_GREP_found=false
  3288. # Loop through the user's path and test for each of PROGNAME-LIST
  3289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3290. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3291. do
  3292. IFS=$as_save_IFS
  3293. test -z "$as_dir" && as_dir=.
  3294. for ac_prog in grep ggrep; do
  3295. for ac_exec_ext in '' $ac_executable_extensions; do
  3296. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3297. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3298. # Check for GNU ac_path_GREP and select it if it is found.
  3299. # Check for GNU $ac_path_GREP
  3300. case `"$ac_path_GREP" --version 2>&1` in
  3301. *GNU*)
  3302. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3303. *)
  3304. ac_count=0
  3305. $as_echo_n 0123456789 >"conftest.in"
  3306. while :
  3307. do
  3308. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3309. mv "conftest.tmp" "conftest.in"
  3310. cp "conftest.in" "conftest.nl"
  3311. $as_echo 'GREP' >> "conftest.nl"
  3312. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3313. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3314. ac_count=`expr $ac_count + 1`
  3315. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3316. # Best one so far, save it but keep looking for a better one
  3317. ac_cv_path_GREP="$ac_path_GREP"
  3318. ac_path_GREP_max=$ac_count
  3319. fi
  3320. # 10*(2^10) chars as input seems more than enough
  3321. test $ac_count -gt 10 && break
  3322. done
  3323. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3324. esac
  3325. $ac_path_GREP_found && break 3
  3326. done
  3327. done
  3328. done
  3329. IFS=$as_save_IFS
  3330. if test -z "$ac_cv_path_GREP"; then
  3331. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3332. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3333. { (exit 1); exit 1; }; }
  3334. fi
  3335. else
  3336. ac_cv_path_GREP=$GREP
  3337. fi
  3338. fi
  3339. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3340. $as_echo "$ac_cv_path_GREP" >&6; }
  3341. GREP="$ac_cv_path_GREP"
  3342. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3343. $as_echo_n "checking for egrep... " >&6; }
  3344. if test "${ac_cv_path_EGREP+set}" = set; then
  3345. $as_echo_n "(cached) " >&6
  3346. else
  3347. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3348. then ac_cv_path_EGREP="$GREP -E"
  3349. else
  3350. if test -z "$EGREP"; then
  3351. ac_path_EGREP_found=false
  3352. # Loop through the user's path and test for each of PROGNAME-LIST
  3353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3354. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3355. do
  3356. IFS=$as_save_IFS
  3357. test -z "$as_dir" && as_dir=.
  3358. for ac_prog in egrep; do
  3359. for ac_exec_ext in '' $ac_executable_extensions; do
  3360. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3361. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3362. # Check for GNU ac_path_EGREP and select it if it is found.
  3363. # Check for GNU $ac_path_EGREP
  3364. case `"$ac_path_EGREP" --version 2>&1` in
  3365. *GNU*)
  3366. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3367. *)
  3368. ac_count=0
  3369. $as_echo_n 0123456789 >"conftest.in"
  3370. while :
  3371. do
  3372. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3373. mv "conftest.tmp" "conftest.in"
  3374. cp "conftest.in" "conftest.nl"
  3375. $as_echo 'EGREP' >> "conftest.nl"
  3376. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3377. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3378. ac_count=`expr $ac_count + 1`
  3379. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3380. # Best one so far, save it but keep looking for a better one
  3381. ac_cv_path_EGREP="$ac_path_EGREP"
  3382. ac_path_EGREP_max=$ac_count
  3383. fi
  3384. # 10*(2^10) chars as input seems more than enough
  3385. test $ac_count -gt 10 && break
  3386. done
  3387. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3388. esac
  3389. $ac_path_EGREP_found && break 3
  3390. done
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. if test -z "$ac_cv_path_EGREP"; then
  3395. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3396. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3397. { (exit 1); exit 1; }; }
  3398. fi
  3399. else
  3400. ac_cv_path_EGREP=$EGREP
  3401. fi
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3405. $as_echo "$ac_cv_path_EGREP" >&6; }
  3406. EGREP="$ac_cv_path_EGREP"
  3407. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3408. $as_echo_n "checking for ANSI C header files... " >&6; }
  3409. if test "${ac_cv_header_stdc+set}" = set; then
  3410. $as_echo_n "(cached) " >&6
  3411. else
  3412. cat >conftest.$ac_ext <<_ACEOF
  3413. /* confdefs.h. */
  3414. _ACEOF
  3415. cat confdefs.h >>conftest.$ac_ext
  3416. cat >>conftest.$ac_ext <<_ACEOF
  3417. /* end confdefs.h. */
  3418. #include <stdlib.h>
  3419. #include <stdarg.h>
  3420. #include <string.h>
  3421. #include <float.h>
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. rm -f conftest.$ac_objext
  3430. if { (ac_try="$ac_compile"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3436. $as_echo "$ac_try_echo") >&5
  3437. (eval "$ac_compile") 2>conftest.er1
  3438. ac_status=$?
  3439. grep -v '^ *+' conftest.er1 >conftest.err
  3440. rm -f conftest.er1
  3441. cat conftest.err >&5
  3442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3443. (exit $ac_status); } && {
  3444. test -z "$ac_c_werror_flag" ||
  3445. test ! -s conftest.err
  3446. } && test -s conftest.$ac_objext; then
  3447. ac_cv_header_stdc=yes
  3448. else
  3449. $as_echo "$as_me: failed program was:" >&5
  3450. sed 's/^/| /' conftest.$ac_ext >&5
  3451. ac_cv_header_stdc=no
  3452. fi
  3453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3454. if test $ac_cv_header_stdc = yes; then
  3455. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3456. cat >conftest.$ac_ext <<_ACEOF
  3457. /* confdefs.h. */
  3458. _ACEOF
  3459. cat confdefs.h >>conftest.$ac_ext
  3460. cat >>conftest.$ac_ext <<_ACEOF
  3461. /* end confdefs.h. */
  3462. #include <string.h>
  3463. _ACEOF
  3464. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3465. $EGREP "memchr" >/dev/null 2>&1; then
  3466. :
  3467. else
  3468. ac_cv_header_stdc=no
  3469. fi
  3470. rm -f conftest*
  3471. fi
  3472. if test $ac_cv_header_stdc = yes; then
  3473. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3474. cat >conftest.$ac_ext <<_ACEOF
  3475. /* confdefs.h. */
  3476. _ACEOF
  3477. cat confdefs.h >>conftest.$ac_ext
  3478. cat >>conftest.$ac_ext <<_ACEOF
  3479. /* end confdefs.h. */
  3480. #include <stdlib.h>
  3481. _ACEOF
  3482. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3483. $EGREP "free" >/dev/null 2>&1; then
  3484. :
  3485. else
  3486. ac_cv_header_stdc=no
  3487. fi
  3488. rm -f conftest*
  3489. fi
  3490. if test $ac_cv_header_stdc = yes; then
  3491. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3492. if test "$cross_compiling" = yes; then
  3493. :
  3494. else
  3495. cat >conftest.$ac_ext <<_ACEOF
  3496. /* confdefs.h. */
  3497. _ACEOF
  3498. cat confdefs.h >>conftest.$ac_ext
  3499. cat >>conftest.$ac_ext <<_ACEOF
  3500. /* end confdefs.h. */
  3501. #include <ctype.h>
  3502. #include <stdlib.h>
  3503. #if ((' ' & 0x0FF) == 0x020)
  3504. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3505. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3506. #else
  3507. # define ISLOWER(c) \
  3508. (('a' <= (c) && (c) <= 'i') \
  3509. || ('j' <= (c) && (c) <= 'r') \
  3510. || ('s' <= (c) && (c) <= 'z'))
  3511. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3512. #endif
  3513. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3514. int
  3515. main ()
  3516. {
  3517. int i;
  3518. for (i = 0; i < 256; i++)
  3519. if (XOR (islower (i), ISLOWER (i))
  3520. || toupper (i) != TOUPPER (i))
  3521. return 2;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. rm -f conftest$ac_exeext
  3526. if { (ac_try="$ac_link"
  3527. case "(($ac_try" in
  3528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3529. *) ac_try_echo=$ac_try;;
  3530. esac
  3531. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3532. $as_echo "$ac_try_echo") >&5
  3533. (eval "$ac_link") 2>&5
  3534. ac_status=$?
  3535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3536. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3537. { (case "(($ac_try" in
  3538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3539. *) ac_try_echo=$ac_try;;
  3540. esac
  3541. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3542. $as_echo "$ac_try_echo") >&5
  3543. (eval "$ac_try") 2>&5
  3544. ac_status=$?
  3545. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3546. (exit $ac_status); }; }; then
  3547. :
  3548. else
  3549. $as_echo "$as_me: program exited with status $ac_status" >&5
  3550. $as_echo "$as_me: failed program was:" >&5
  3551. sed 's/^/| /' conftest.$ac_ext >&5
  3552. ( exit $ac_status )
  3553. ac_cv_header_stdc=no
  3554. fi
  3555. rm -rf conftest.dSYM
  3556. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3557. fi
  3558. fi
  3559. fi
  3560. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3561. $as_echo "$ac_cv_header_stdc" >&6; }
  3562. if test $ac_cv_header_stdc = yes; then
  3563. cat >>confdefs.h <<\_ACEOF
  3564. #define STDC_HEADERS 1
  3565. _ACEOF
  3566. fi
  3567. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3568. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3569. inttypes.h stdint.h unistd.h
  3570. do
  3571. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3572. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3573. $as_echo_n "checking for $ac_header... " >&6; }
  3574. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. cat >conftest.$ac_ext <<_ACEOF
  3578. /* confdefs.h. */
  3579. _ACEOF
  3580. cat confdefs.h >>conftest.$ac_ext
  3581. cat >>conftest.$ac_ext <<_ACEOF
  3582. /* end confdefs.h. */
  3583. $ac_includes_default
  3584. #include <$ac_header>
  3585. _ACEOF
  3586. rm -f conftest.$ac_objext
  3587. if { (ac_try="$ac_compile"
  3588. case "(($ac_try" in
  3589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3590. *) ac_try_echo=$ac_try;;
  3591. esac
  3592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3593. $as_echo "$ac_try_echo") >&5
  3594. (eval "$ac_compile") 2>conftest.er1
  3595. ac_status=$?
  3596. grep -v '^ *+' conftest.er1 >conftest.err
  3597. rm -f conftest.er1
  3598. cat conftest.err >&5
  3599. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); } && {
  3601. test -z "$ac_c_werror_flag" ||
  3602. test ! -s conftest.err
  3603. } && test -s conftest.$ac_objext; then
  3604. eval "$as_ac_Header=yes"
  3605. else
  3606. $as_echo "$as_me: failed program was:" >&5
  3607. sed 's/^/| /' conftest.$ac_ext >&5
  3608. eval "$as_ac_Header=no"
  3609. fi
  3610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3611. fi
  3612. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3613. $as_echo "$as_val"'`
  3614. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3615. $as_echo "$ac_res" >&6; }
  3616. as_val=`eval 'as_val=${'$as_ac_Header'}
  3617. $as_echo "$as_val"'`
  3618. if test "x$as_val" = x""yes; then
  3619. cat >>confdefs.h <<_ACEOF
  3620. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3621. _ACEOF
  3622. fi
  3623. done
  3624. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3625. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3626. $as_echo_n "checking for minix/config.h... " >&6; }
  3627. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3628. $as_echo_n "(cached) " >&6
  3629. fi
  3630. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3631. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3632. else
  3633. # Is the header compilable?
  3634. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3635. $as_echo_n "checking minix/config.h usability... " >&6; }
  3636. cat >conftest.$ac_ext <<_ACEOF
  3637. /* confdefs.h. */
  3638. _ACEOF
  3639. cat confdefs.h >>conftest.$ac_ext
  3640. cat >>conftest.$ac_ext <<_ACEOF
  3641. /* end confdefs.h. */
  3642. $ac_includes_default
  3643. #include <minix/config.h>
  3644. _ACEOF
  3645. rm -f conftest.$ac_objext
  3646. if { (ac_try="$ac_compile"
  3647. case "(($ac_try" in
  3648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3649. *) ac_try_echo=$ac_try;;
  3650. esac
  3651. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3652. $as_echo "$ac_try_echo") >&5
  3653. (eval "$ac_compile") 2>conftest.er1
  3654. ac_status=$?
  3655. grep -v '^ *+' conftest.er1 >conftest.err
  3656. rm -f conftest.er1
  3657. cat conftest.err >&5
  3658. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3659. (exit $ac_status); } && {
  3660. test -z "$ac_c_werror_flag" ||
  3661. test ! -s conftest.err
  3662. } && test -s conftest.$ac_objext; then
  3663. ac_header_compiler=yes
  3664. else
  3665. $as_echo "$as_me: failed program was:" >&5
  3666. sed 's/^/| /' conftest.$ac_ext >&5
  3667. ac_header_compiler=no
  3668. fi
  3669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3670. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3671. $as_echo "$ac_header_compiler" >&6; }
  3672. # Is the header present?
  3673. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3674. $as_echo_n "checking minix/config.h presence... " >&6; }
  3675. cat >conftest.$ac_ext <<_ACEOF
  3676. /* confdefs.h. */
  3677. _ACEOF
  3678. cat confdefs.h >>conftest.$ac_ext
  3679. cat >>conftest.$ac_ext <<_ACEOF
  3680. /* end confdefs.h. */
  3681. #include <minix/config.h>
  3682. _ACEOF
  3683. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3684. case "(($ac_try" in
  3685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3686. *) ac_try_echo=$ac_try;;
  3687. esac
  3688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3689. $as_echo "$ac_try_echo") >&5
  3690. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3691. ac_status=$?
  3692. grep -v '^ *+' conftest.er1 >conftest.err
  3693. rm -f conftest.er1
  3694. cat conftest.err >&5
  3695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3696. (exit $ac_status); } >/dev/null && {
  3697. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3698. test ! -s conftest.err
  3699. }; then
  3700. ac_header_preproc=yes
  3701. else
  3702. $as_echo "$as_me: failed program was:" >&5
  3703. sed 's/^/| /' conftest.$ac_ext >&5
  3704. ac_header_preproc=no
  3705. fi
  3706. rm -f conftest.err conftest.$ac_ext
  3707. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3708. $as_echo "$ac_header_preproc" >&6; }
  3709. # So? What about this header?
  3710. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3711. yes:no: )
  3712. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3713. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3714. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3715. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3716. ac_header_preproc=yes
  3717. ;;
  3718. no:yes:* )
  3719. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3720. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3721. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3722. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3723. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3724. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3725. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3726. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3727. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3728. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3729. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3730. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3731. ( cat <<\_ASBOX
  3732. ## ------------------------------------------ ##
  3733. ## Report this to https://issues.asterisk.org ##
  3734. ## ------------------------------------------ ##
  3735. _ASBOX
  3736. ) | sed "s/^/$as_me: WARNING: /" >&2
  3737. ;;
  3738. esac
  3739. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3740. $as_echo_n "checking for minix/config.h... " >&6; }
  3741. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3742. $as_echo_n "(cached) " >&6
  3743. else
  3744. ac_cv_header_minix_config_h=$ac_header_preproc
  3745. fi
  3746. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3747. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3748. fi
  3749. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3750. MINIX=yes
  3751. else
  3752. MINIX=
  3753. fi
  3754. if test "$MINIX" = yes; then
  3755. cat >>confdefs.h <<\_ACEOF
  3756. #define _POSIX_SOURCE 1
  3757. _ACEOF
  3758. cat >>confdefs.h <<\_ACEOF
  3759. #define _POSIX_1_SOURCE 2
  3760. _ACEOF
  3761. cat >>confdefs.h <<\_ACEOF
  3762. #define _MINIX 1
  3763. _ACEOF
  3764. fi
  3765. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3766. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3767. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. cat >conftest.$ac_ext <<_ACEOF
  3771. /* confdefs.h. */
  3772. _ACEOF
  3773. cat confdefs.h >>conftest.$ac_ext
  3774. cat >>conftest.$ac_ext <<_ACEOF
  3775. /* end confdefs.h. */
  3776. # define __EXTENSIONS__ 1
  3777. $ac_includes_default
  3778. int
  3779. main ()
  3780. {
  3781. ;
  3782. return 0;
  3783. }
  3784. _ACEOF
  3785. rm -f conftest.$ac_objext
  3786. if { (ac_try="$ac_compile"
  3787. case "(($ac_try" in
  3788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3789. *) ac_try_echo=$ac_try;;
  3790. esac
  3791. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3792. $as_echo "$ac_try_echo") >&5
  3793. (eval "$ac_compile") 2>conftest.er1
  3794. ac_status=$?
  3795. grep -v '^ *+' conftest.er1 >conftest.err
  3796. rm -f conftest.er1
  3797. cat conftest.err >&5
  3798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3799. (exit $ac_status); } && {
  3800. test -z "$ac_c_werror_flag" ||
  3801. test ! -s conftest.err
  3802. } && test -s conftest.$ac_objext; then
  3803. ac_cv_safe_to_define___extensions__=yes
  3804. else
  3805. $as_echo "$as_me: failed program was:" >&5
  3806. sed 's/^/| /' conftest.$ac_ext >&5
  3807. ac_cv_safe_to_define___extensions__=no
  3808. fi
  3809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3810. fi
  3811. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3812. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3813. test $ac_cv_safe_to_define___extensions__ = yes &&
  3814. cat >>confdefs.h <<\_ACEOF
  3815. #define __EXTENSIONS__ 1
  3816. _ACEOF
  3817. cat >>confdefs.h <<\_ACEOF
  3818. #define _ALL_SOURCE 1
  3819. _ACEOF
  3820. cat >>confdefs.h <<\_ACEOF
  3821. #define _GNU_SOURCE 1
  3822. _ACEOF
  3823. cat >>confdefs.h <<\_ACEOF
  3824. #define _POSIX_PTHREAD_SEMANTICS 1
  3825. _ACEOF
  3826. cat >>confdefs.h <<\_ACEOF
  3827. #define _TANDEM_SOURCE 1
  3828. _ACEOF
  3829. # System default paths
  3830. astsbindir='${sbindir}'
  3831. astetcdir='${sysconfdir}/asterisk'
  3832. astheaderdir='${includedir}/asterisk'
  3833. astlibdir='${libdir}/asterisk'
  3834. astmandir='${mandir}'
  3835. astvarlibdir='${localstatedir}/lib/asterisk'
  3836. astdatadir='${astvarlibdir}'
  3837. astdbdir='${astvarlibdir}'
  3838. astkeydir='${astvarlibdir}'
  3839. astspooldir='${localstatedir}/spool/asterisk'
  3840. astlogdir='${localstatedir}/log/asterisk'
  3841. astvarrundir='${localstatedir}/run/asterisk'
  3842. case "${host_os}" in
  3843. *bsd*)
  3844. if test ${prefix} = 'NONE'; then
  3845. astvarlibdir='${prefix}/share/asterisk'
  3846. astdbdir='${localstatedir}/db/asterisk'
  3847. fi
  3848. ;;
  3849. darwin*)
  3850. if test ${prefix} = 'NONE'; then
  3851. astvarrundir='/Library/Application Support/Asterisk/Run'
  3852. fi
  3853. ;;
  3854. esac
  3855. case "${host_os}" in
  3856. freebsd*)
  3857. ac_default_prefix=/usr/local
  3858. CPPFLAGS=-I/usr/local/include
  3859. LDFLAGS=-L/usr/local/lib
  3860. ;;
  3861. openbsd*)
  3862. ac_default_prefix=/usr/local
  3863. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  3864. if test ${sysconfdir} = '${prefix}/etc'; then
  3865. astetcdir=/etc/asterisk
  3866. fi
  3867. if test ${mandir} = '${prefix}/man'; then
  3868. astmandir=/usr/share/man
  3869. fi
  3870. fi
  3871. CPPFLAGS=-I/usr/local/include
  3872. LDFLAGS=-L/usr/local/lib
  3873. ;;
  3874. darwin*)
  3875. ac_default_prefix=/usr/local
  3876. if test ${prefix} = 'NONE'; then
  3877. astlibdir='/Library/Application Support/Asterisk/Modules'
  3878. astvarlibdir='/Library/Application Support/Asterisk'
  3879. astlogdir=/Library/Logs/Asterisk
  3880. astvarrundir='/Library/Application Support/Asterisk/Run'
  3881. fi
  3882. cat >>confdefs.h <<\_ACEOF
  3883. #define AST_POLL_COMPAT 1
  3884. _ACEOF
  3885. cat >>confdefs.h <<\_ACEOF
  3886. #define _DARWIN_UNLIMITED_SELECT 1
  3887. _ACEOF
  3888. ;;
  3889. solaris*)
  3890. if test ${prefix} = 'NONE'; then
  3891. astetcdir=/var/etc/asterisk
  3892. astsbindir=/opt/asterisk/sbin
  3893. astlibdir=/opt/asterisk/lib
  3894. astheaderdir=/opt/asterisk/include
  3895. astmandir=/opt/asterisk/man
  3896. astvarlibdir=/var/opt/asterisk
  3897. astspooldir=/var/spool/asterisk
  3898. astlogdir=/var/log/asterisk
  3899. astvarrundir=/var/run/asterisk
  3900. fi
  3901. ;;
  3902. *)
  3903. ac_default_prefix=/usr
  3904. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  3905. if test ${sysconfdir} = '${prefix}/etc'; then
  3906. sysconfdir=/etc
  3907. fi
  3908. if test ${mandir} = '${prefix}/man'; then
  3909. mandir=/usr/share/man
  3910. fi
  3911. fi
  3912. ;;
  3913. esac
  3914. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  3915. if test ${localstatedir} = '${prefix}/var'; then
  3916. localstatedir=/var
  3917. fi
  3918. fi
  3919. BUILD_PLATFORM=${build}
  3920. BUILD_CPU=${build_cpu}
  3921. BUILD_VENDOR=${build_vendor}
  3922. BUILD_OS=${build_os}
  3923. HOST_PLATFORM=${host}
  3924. HOST_CPU=${host_cpu}
  3925. HOST_VENDOR=${host_vendor}
  3926. HOST_OS=${host_os}
  3927. PBX_WINARCH=0
  3928. case "${host_os}" in
  3929. freebsd*)
  3930. OSARCH=FreeBSD
  3931. ;;
  3932. netbsd*)
  3933. OSARCH=NetBSD
  3934. ;;
  3935. openbsd*)
  3936. OSARCH=OpenBSD
  3937. ;;
  3938. solaris*)
  3939. OSARCH=SunOS
  3940. ;;
  3941. mingw32)
  3942. OSARCH=mingw32
  3943. PBX_WINARCH=1
  3944. ;;
  3945. cygwin)
  3946. OSARCH=cygwin
  3947. PBX_WINARCH=1
  3948. ;;
  3949. linux-gnueabi)
  3950. OSARCH=linux-gnu
  3951. ;;
  3952. kfreebsd*-gnu)
  3953. OSARCH=kfreebsd-gnu
  3954. ;;
  3955. *)
  3956. OSARCH=${host_os}
  3957. ;;
  3958. esac
  3959. # check for uname
  3960. if test -n "$ac_tool_prefix"; then
  3961. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  3962. set dummy ${ac_tool_prefix}uname; ac_word=$2
  3963. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3964. $as_echo_n "checking for $ac_word... " >&6; }
  3965. if test "${ac_cv_path_UNAME+set}" = set; then
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. case $UNAME in
  3969. [\\/]* | ?:[\\/]*)
  3970. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  3971. ;;
  3972. *)
  3973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3974. for as_dir in $PATH
  3975. do
  3976. IFS=$as_save_IFS
  3977. test -z "$as_dir" && as_dir=.
  3978. for ac_exec_ext in '' $ac_executable_extensions; do
  3979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3980. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  3981. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3982. break 2
  3983. fi
  3984. done
  3985. done
  3986. IFS=$as_save_IFS
  3987. ;;
  3988. esac
  3989. fi
  3990. UNAME=$ac_cv_path_UNAME
  3991. if test -n "$UNAME"; then
  3992. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  3993. $as_echo "$UNAME" >&6; }
  3994. else
  3995. { $as_echo "$as_me:$LINENO: result: no" >&5
  3996. $as_echo "no" >&6; }
  3997. fi
  3998. fi
  3999. if test -z "$ac_cv_path_UNAME"; then
  4000. ac_pt_UNAME=$UNAME
  4001. # Extract the first word of "uname", so it can be a program name with args.
  4002. set dummy uname; ac_word=$2
  4003. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4004. $as_echo_n "checking for $ac_word... " >&6; }
  4005. if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. case $ac_pt_UNAME in
  4009. [\\/]* | ?:[\\/]*)
  4010. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4011. ;;
  4012. *)
  4013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4014. for as_dir in $PATH
  4015. do
  4016. IFS=$as_save_IFS
  4017. test -z "$as_dir" && as_dir=.
  4018. for ac_exec_ext in '' $ac_executable_extensions; do
  4019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4020. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4021. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4022. break 2
  4023. fi
  4024. done
  4025. done
  4026. IFS=$as_save_IFS
  4027. ;;
  4028. esac
  4029. fi
  4030. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4031. if test -n "$ac_pt_UNAME"; then
  4032. { $as_echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
  4033. $as_echo "$ac_pt_UNAME" >&6; }
  4034. else
  4035. { $as_echo "$as_me:$LINENO: result: no" >&5
  4036. $as_echo "no" >&6; }
  4037. fi
  4038. if test "x$ac_pt_UNAME" = x; then
  4039. UNAME="No"
  4040. else
  4041. case $cross_compiling:$ac_tool_warned in
  4042. yes:)
  4043. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4044. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4045. ac_tool_warned=yes ;;
  4046. esac
  4047. UNAME=$ac_pt_UNAME
  4048. fi
  4049. else
  4050. UNAME="$ac_cv_path_UNAME"
  4051. fi
  4052. if test ! x"${UNAME}" = xNo; then
  4053. PBX_OSREV=$(${UNAME} -r)
  4054. fi
  4055. # cross-compile checks
  4056. if test "${cross_compiling}" = "yes";
  4057. then
  4058. if test -n "$ac_tool_prefix"; then
  4059. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4060. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4061. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4062. $as_echo_n "checking for $ac_word... " >&6; }
  4063. if test "${ac_cv_prog_CC+set}" = set; then
  4064. $as_echo_n "(cached) " >&6
  4065. else
  4066. if test -n "$CC"; then
  4067. ac_cv_prog_CC="$CC" # Let the user override the test.
  4068. else
  4069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4070. for as_dir in $PATH
  4071. do
  4072. IFS=$as_save_IFS
  4073. test -z "$as_dir" && as_dir=.
  4074. for ac_exec_ext in '' $ac_executable_extensions; do
  4075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4076. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4077. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4078. break 2
  4079. fi
  4080. done
  4081. done
  4082. IFS=$as_save_IFS
  4083. fi
  4084. fi
  4085. CC=$ac_cv_prog_CC
  4086. if test -n "$CC"; then
  4087. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4088. $as_echo "$CC" >&6; }
  4089. else
  4090. { $as_echo "$as_me:$LINENO: result: no" >&5
  4091. $as_echo "no" >&6; }
  4092. fi
  4093. fi
  4094. if test -z "$ac_cv_prog_CC"; then
  4095. ac_ct_CC=$CC
  4096. # Extract the first word of "gcc", so it can be a program name with args.
  4097. set dummy gcc; ac_word=$2
  4098. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4099. $as_echo_n "checking for $ac_word... " >&6; }
  4100. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4101. $as_echo_n "(cached) " >&6
  4102. else
  4103. if test -n "$ac_ct_CC"; then
  4104. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4105. else
  4106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4107. for as_dir in $PATH
  4108. do
  4109. IFS=$as_save_IFS
  4110. test -z "$as_dir" && as_dir=.
  4111. for ac_exec_ext in '' $ac_executable_extensions; do
  4112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4113. ac_cv_prog_ac_ct_CC="gcc"
  4114. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4115. break 2
  4116. fi
  4117. done
  4118. done
  4119. IFS=$as_save_IFS
  4120. fi
  4121. fi
  4122. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4123. if test -n "$ac_ct_CC"; then
  4124. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4125. $as_echo "$ac_ct_CC" >&6; }
  4126. else
  4127. { $as_echo "$as_me:$LINENO: result: no" >&5
  4128. $as_echo "no" >&6; }
  4129. fi
  4130. if test "x$ac_ct_CC" = x; then
  4131. CC=":"
  4132. else
  4133. case $cross_compiling:$ac_tool_warned in
  4134. yes:)
  4135. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4136. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4137. ac_tool_warned=yes ;;
  4138. esac
  4139. CC=$ac_ct_CC
  4140. fi
  4141. else
  4142. CC="$ac_cv_prog_CC"
  4143. fi
  4144. if test -n "$ac_tool_prefix"; then
  4145. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4146. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4147. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4148. $as_echo_n "checking for $ac_word... " >&6; }
  4149. if test "${ac_cv_prog_CXX+set}" = set; then
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. if test -n "$CXX"; then
  4153. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4154. else
  4155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4156. for as_dir in $PATH
  4157. do
  4158. IFS=$as_save_IFS
  4159. test -z "$as_dir" && as_dir=.
  4160. for ac_exec_ext in '' $ac_executable_extensions; do
  4161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4162. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4163. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4164. break 2
  4165. fi
  4166. done
  4167. done
  4168. IFS=$as_save_IFS
  4169. fi
  4170. fi
  4171. CXX=$ac_cv_prog_CXX
  4172. if test -n "$CXX"; then
  4173. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  4174. $as_echo "$CXX" >&6; }
  4175. else
  4176. { $as_echo "$as_me:$LINENO: result: no" >&5
  4177. $as_echo "no" >&6; }
  4178. fi
  4179. fi
  4180. if test -z "$ac_cv_prog_CXX"; then
  4181. ac_ct_CXX=$CXX
  4182. # Extract the first word of "g++", so it can be a program name with args.
  4183. set dummy g++; ac_word=$2
  4184. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4185. $as_echo_n "checking for $ac_word... " >&6; }
  4186. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. if test -n "$ac_ct_CXX"; then
  4190. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4191. else
  4192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4193. for as_dir in $PATH
  4194. do
  4195. IFS=$as_save_IFS
  4196. test -z "$as_dir" && as_dir=.
  4197. for ac_exec_ext in '' $ac_executable_extensions; do
  4198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4199. ac_cv_prog_ac_ct_CXX="g++"
  4200. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4201. break 2
  4202. fi
  4203. done
  4204. done
  4205. IFS=$as_save_IFS
  4206. fi
  4207. fi
  4208. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4209. if test -n "$ac_ct_CXX"; then
  4210. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4211. $as_echo "$ac_ct_CXX" >&6; }
  4212. else
  4213. { $as_echo "$as_me:$LINENO: result: no" >&5
  4214. $as_echo "no" >&6; }
  4215. fi
  4216. if test "x$ac_ct_CXX" = x; then
  4217. CXX=":"
  4218. else
  4219. case $cross_compiling:$ac_tool_warned in
  4220. yes:)
  4221. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4222. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4223. ac_tool_warned=yes ;;
  4224. esac
  4225. CXX=$ac_ct_CXX
  4226. fi
  4227. else
  4228. CXX="$ac_cv_prog_CXX"
  4229. fi
  4230. if test -n "$ac_tool_prefix"; then
  4231. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4232. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4233. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4234. $as_echo_n "checking for $ac_word... " >&6; }
  4235. if test "${ac_cv_prog_LD+set}" = set; then
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. if test -n "$LD"; then
  4239. ac_cv_prog_LD="$LD" # Let the user override the test.
  4240. else
  4241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4242. for as_dir in $PATH
  4243. do
  4244. IFS=$as_save_IFS
  4245. test -z "$as_dir" && as_dir=.
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4248. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4249. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4250. break 2
  4251. fi
  4252. done
  4253. done
  4254. IFS=$as_save_IFS
  4255. fi
  4256. fi
  4257. LD=$ac_cv_prog_LD
  4258. if test -n "$LD"; then
  4259. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4260. $as_echo "$LD" >&6; }
  4261. else
  4262. { $as_echo "$as_me:$LINENO: result: no" >&5
  4263. $as_echo "no" >&6; }
  4264. fi
  4265. fi
  4266. if test -z "$ac_cv_prog_LD"; then
  4267. ac_ct_LD=$LD
  4268. # Extract the first word of "ld", so it can be a program name with args.
  4269. set dummy ld; ac_word=$2
  4270. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$ac_ct_LD"; then
  4276. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4285. ac_cv_prog_ac_ct_LD="ld"
  4286. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4295. if test -n "$ac_ct_LD"; then
  4296. { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
  4297. $as_echo "$ac_ct_LD" >&6; }
  4298. else
  4299. { $as_echo "$as_me:$LINENO: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. if test "x$ac_ct_LD" = x; then
  4303. LD=":"
  4304. else
  4305. case $cross_compiling:$ac_tool_warned in
  4306. yes:)
  4307. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4309. ac_tool_warned=yes ;;
  4310. esac
  4311. LD=$ac_ct_LD
  4312. fi
  4313. else
  4314. LD="$ac_cv_prog_LD"
  4315. fi
  4316. if test -n "$ac_tool_prefix"; then
  4317. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4318. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4319. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4320. $as_echo_n "checking for $ac_word... " >&6; }
  4321. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. if test -n "$RANLIB"; then
  4325. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4326. else
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH
  4329. do
  4330. IFS=$as_save_IFS
  4331. test -z "$as_dir" && as_dir=.
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4334. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4335. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4336. break 2
  4337. fi
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. fi
  4342. fi
  4343. RANLIB=$ac_cv_prog_RANLIB
  4344. if test -n "$RANLIB"; then
  4345. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4346. $as_echo "$RANLIB" >&6; }
  4347. else
  4348. { $as_echo "$as_me:$LINENO: result: no" >&5
  4349. $as_echo "no" >&6; }
  4350. fi
  4351. fi
  4352. if test -z "$ac_cv_prog_RANLIB"; then
  4353. ac_ct_RANLIB=$RANLIB
  4354. # Extract the first word of "ranlib", so it can be a program name with args.
  4355. set dummy ranlib; ac_word=$2
  4356. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4357. $as_echo_n "checking for $ac_word... " >&6; }
  4358. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. if test -n "$ac_ct_RANLIB"; then
  4362. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4363. else
  4364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4365. for as_dir in $PATH
  4366. do
  4367. IFS=$as_save_IFS
  4368. test -z "$as_dir" && as_dir=.
  4369. for ac_exec_ext in '' $ac_executable_extensions; do
  4370. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4371. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4372. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4373. break 2
  4374. fi
  4375. done
  4376. done
  4377. IFS=$as_save_IFS
  4378. fi
  4379. fi
  4380. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4381. if test -n "$ac_ct_RANLIB"; then
  4382. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4383. $as_echo "$ac_ct_RANLIB" >&6; }
  4384. else
  4385. { $as_echo "$as_me:$LINENO: result: no" >&5
  4386. $as_echo "no" >&6; }
  4387. fi
  4388. if test "x$ac_ct_RANLIB" = x; then
  4389. RANLIB=":"
  4390. else
  4391. case $cross_compiling:$ac_tool_warned in
  4392. yes:)
  4393. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4395. ac_tool_warned=yes ;;
  4396. esac
  4397. RANLIB=$ac_ct_RANLIB
  4398. fi
  4399. else
  4400. RANLIB="$ac_cv_prog_RANLIB"
  4401. fi
  4402. fi
  4403. # Checks for programs.
  4404. ac_ext=cpp
  4405. ac_cpp='$CXXCPP $CPPFLAGS'
  4406. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4407. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4408. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4409. if test -z "$CXX"; then
  4410. if test -n "$CCC"; then
  4411. CXX=$CCC
  4412. else
  4413. if test -n "$ac_tool_prefix"; then
  4414. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4415. do
  4416. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4417. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4418. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4419. $as_echo_n "checking for $ac_word... " >&6; }
  4420. if test "${ac_cv_prog_CXX+set}" = set; then
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. if test -n "$CXX"; then
  4424. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4425. else
  4426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4427. for as_dir in $PATH
  4428. do
  4429. IFS=$as_save_IFS
  4430. test -z "$as_dir" && as_dir=.
  4431. for ac_exec_ext in '' $ac_executable_extensions; do
  4432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4433. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4434. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4435. break 2
  4436. fi
  4437. done
  4438. done
  4439. IFS=$as_save_IFS
  4440. fi
  4441. fi
  4442. CXX=$ac_cv_prog_CXX
  4443. if test -n "$CXX"; then
  4444. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  4445. $as_echo "$CXX" >&6; }
  4446. else
  4447. { $as_echo "$as_me:$LINENO: result: no" >&5
  4448. $as_echo "no" >&6; }
  4449. fi
  4450. test -n "$CXX" && break
  4451. done
  4452. fi
  4453. if test -z "$CXX"; then
  4454. ac_ct_CXX=$CXX
  4455. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4456. do
  4457. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4458. set dummy $ac_prog; ac_word=$2
  4459. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4460. $as_echo_n "checking for $ac_word... " >&6; }
  4461. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$ac_ct_CXX"; then
  4465. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4466. else
  4467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4468. for as_dir in $PATH
  4469. do
  4470. IFS=$as_save_IFS
  4471. test -z "$as_dir" && as_dir=.
  4472. for ac_exec_ext in '' $ac_executable_extensions; do
  4473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4474. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4475. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4476. break 2
  4477. fi
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. fi
  4482. fi
  4483. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4484. if test -n "$ac_ct_CXX"; then
  4485. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4486. $as_echo "$ac_ct_CXX" >&6; }
  4487. else
  4488. { $as_echo "$as_me:$LINENO: result: no" >&5
  4489. $as_echo "no" >&6; }
  4490. fi
  4491. test -n "$ac_ct_CXX" && break
  4492. done
  4493. if test "x$ac_ct_CXX" = x; then
  4494. CXX="g++"
  4495. else
  4496. case $cross_compiling:$ac_tool_warned in
  4497. yes:)
  4498. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4500. ac_tool_warned=yes ;;
  4501. esac
  4502. CXX=$ac_ct_CXX
  4503. fi
  4504. fi
  4505. fi
  4506. fi
  4507. # Provide some information about the compiler.
  4508. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4509. set X $ac_compile
  4510. ac_compiler=$2
  4511. { (ac_try="$ac_compiler --version >&5"
  4512. case "(($ac_try" in
  4513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4514. *) ac_try_echo=$ac_try;;
  4515. esac
  4516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4517. $as_echo "$ac_try_echo") >&5
  4518. (eval "$ac_compiler --version >&5") 2>&5
  4519. ac_status=$?
  4520. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4521. (exit $ac_status); }
  4522. { (ac_try="$ac_compiler -v >&5"
  4523. case "(($ac_try" in
  4524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4525. *) ac_try_echo=$ac_try;;
  4526. esac
  4527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4528. $as_echo "$ac_try_echo") >&5
  4529. (eval "$ac_compiler -v >&5") 2>&5
  4530. ac_status=$?
  4531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4532. (exit $ac_status); }
  4533. { (ac_try="$ac_compiler -V >&5"
  4534. case "(($ac_try" in
  4535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4536. *) ac_try_echo=$ac_try;;
  4537. esac
  4538. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4539. $as_echo "$ac_try_echo") >&5
  4540. (eval "$ac_compiler -V >&5") 2>&5
  4541. ac_status=$?
  4542. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. (exit $ac_status); }
  4544. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4545. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4546. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. cat >conftest.$ac_ext <<_ACEOF
  4550. /* confdefs.h. */
  4551. _ACEOF
  4552. cat confdefs.h >>conftest.$ac_ext
  4553. cat >>conftest.$ac_ext <<_ACEOF
  4554. /* end confdefs.h. */
  4555. int
  4556. main ()
  4557. {
  4558. #ifndef __GNUC__
  4559. choke me
  4560. #endif
  4561. ;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. rm -f conftest.$ac_objext
  4566. if { (ac_try="$ac_compile"
  4567. case "(($ac_try" in
  4568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4569. *) ac_try_echo=$ac_try;;
  4570. esac
  4571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4572. $as_echo "$ac_try_echo") >&5
  4573. (eval "$ac_compile") 2>conftest.er1
  4574. ac_status=$?
  4575. grep -v '^ *+' conftest.er1 >conftest.err
  4576. rm -f conftest.er1
  4577. cat conftest.err >&5
  4578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4579. (exit $ac_status); } && {
  4580. test -z "$ac_cxx_werror_flag" ||
  4581. test ! -s conftest.err
  4582. } && test -s conftest.$ac_objext; then
  4583. ac_compiler_gnu=yes
  4584. else
  4585. $as_echo "$as_me: failed program was:" >&5
  4586. sed 's/^/| /' conftest.$ac_ext >&5
  4587. ac_compiler_gnu=no
  4588. fi
  4589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4590. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4591. fi
  4592. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4593. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4594. if test $ac_compiler_gnu = yes; then
  4595. GXX=yes
  4596. else
  4597. GXX=
  4598. fi
  4599. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4600. ac_save_CXXFLAGS=$CXXFLAGS
  4601. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4602. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4603. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4607. ac_cxx_werror_flag=yes
  4608. ac_cv_prog_cxx_g=no
  4609. CXXFLAGS="-g"
  4610. cat >conftest.$ac_ext <<_ACEOF
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. int
  4617. main ()
  4618. {
  4619. ;
  4620. return 0;
  4621. }
  4622. _ACEOF
  4623. rm -f conftest.$ac_objext
  4624. if { (ac_try="$ac_compile"
  4625. case "(($ac_try" in
  4626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4627. *) ac_try_echo=$ac_try;;
  4628. esac
  4629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4630. $as_echo "$ac_try_echo") >&5
  4631. (eval "$ac_compile") 2>conftest.er1
  4632. ac_status=$?
  4633. grep -v '^ *+' conftest.er1 >conftest.err
  4634. rm -f conftest.er1
  4635. cat conftest.err >&5
  4636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); } && {
  4638. test -z "$ac_cxx_werror_flag" ||
  4639. test ! -s conftest.err
  4640. } && test -s conftest.$ac_objext; then
  4641. ac_cv_prog_cxx_g=yes
  4642. else
  4643. $as_echo "$as_me: failed program was:" >&5
  4644. sed 's/^/| /' conftest.$ac_ext >&5
  4645. CXXFLAGS=""
  4646. cat >conftest.$ac_ext <<_ACEOF
  4647. /* confdefs.h. */
  4648. _ACEOF
  4649. cat confdefs.h >>conftest.$ac_ext
  4650. cat >>conftest.$ac_ext <<_ACEOF
  4651. /* end confdefs.h. */
  4652. int
  4653. main ()
  4654. {
  4655. ;
  4656. return 0;
  4657. }
  4658. _ACEOF
  4659. rm -f conftest.$ac_objext
  4660. if { (ac_try="$ac_compile"
  4661. case "(($ac_try" in
  4662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4663. *) ac_try_echo=$ac_try;;
  4664. esac
  4665. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4666. $as_echo "$ac_try_echo") >&5
  4667. (eval "$ac_compile") 2>conftest.er1
  4668. ac_status=$?
  4669. grep -v '^ *+' conftest.er1 >conftest.err
  4670. rm -f conftest.er1
  4671. cat conftest.err >&5
  4672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4673. (exit $ac_status); } && {
  4674. test -z "$ac_cxx_werror_flag" ||
  4675. test ! -s conftest.err
  4676. } && test -s conftest.$ac_objext; then
  4677. :
  4678. else
  4679. $as_echo "$as_me: failed program was:" >&5
  4680. sed 's/^/| /' conftest.$ac_ext >&5
  4681. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4682. CXXFLAGS="-g"
  4683. cat >conftest.$ac_ext <<_ACEOF
  4684. /* confdefs.h. */
  4685. _ACEOF
  4686. cat confdefs.h >>conftest.$ac_ext
  4687. cat >>conftest.$ac_ext <<_ACEOF
  4688. /* end confdefs.h. */
  4689. int
  4690. main ()
  4691. {
  4692. ;
  4693. return 0;
  4694. }
  4695. _ACEOF
  4696. rm -f conftest.$ac_objext
  4697. if { (ac_try="$ac_compile"
  4698. case "(($ac_try" in
  4699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4700. *) ac_try_echo=$ac_try;;
  4701. esac
  4702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4703. $as_echo "$ac_try_echo") >&5
  4704. (eval "$ac_compile") 2>conftest.er1
  4705. ac_status=$?
  4706. grep -v '^ *+' conftest.er1 >conftest.err
  4707. rm -f conftest.er1
  4708. cat conftest.err >&5
  4709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4710. (exit $ac_status); } && {
  4711. test -z "$ac_cxx_werror_flag" ||
  4712. test ! -s conftest.err
  4713. } && test -s conftest.$ac_objext; then
  4714. ac_cv_prog_cxx_g=yes
  4715. else
  4716. $as_echo "$as_me: failed program was:" >&5
  4717. sed 's/^/| /' conftest.$ac_ext >&5
  4718. fi
  4719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4720. fi
  4721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4722. fi
  4723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4724. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4725. fi
  4726. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4727. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4728. if test "$ac_test_CXXFLAGS" = set; then
  4729. CXXFLAGS=$ac_save_CXXFLAGS
  4730. elif test $ac_cv_prog_cxx_g = yes; then
  4731. if test "$GXX" = yes; then
  4732. CXXFLAGS="-g -O2"
  4733. else
  4734. CXXFLAGS="-g"
  4735. fi
  4736. else
  4737. if test "$GXX" = yes; then
  4738. CXXFLAGS="-O2"
  4739. else
  4740. CXXFLAGS=
  4741. fi
  4742. fi
  4743. ac_ext=c
  4744. ac_cpp='$CPP $CPPFLAGS'
  4745. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4746. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4747. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4748. ac_ext=c
  4749. ac_cpp='$CPP $CPPFLAGS'
  4750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4753. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4754. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4755. # On Suns, sometimes $CPP names a directory.
  4756. if test -n "$CPP" && test -d "$CPP"; then
  4757. CPP=
  4758. fi
  4759. if test -z "$CPP"; then
  4760. if test "${ac_cv_prog_CPP+set}" = set; then
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. # Double quotes because CPP needs to be expanded
  4764. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4765. do
  4766. ac_preproc_ok=false
  4767. for ac_c_preproc_warn_flag in '' yes
  4768. do
  4769. # Use a header file that comes with gcc, so configuring glibc
  4770. # with a fresh cross-compiler works.
  4771. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4772. # <limits.h> exists even on freestanding compilers.
  4773. # On the NeXT, cc -E runs the code through the compiler's parser,
  4774. # not just through cpp. "Syntax error" is here to catch this case.
  4775. cat >conftest.$ac_ext <<_ACEOF
  4776. /* confdefs.h. */
  4777. _ACEOF
  4778. cat confdefs.h >>conftest.$ac_ext
  4779. cat >>conftest.$ac_ext <<_ACEOF
  4780. /* end confdefs.h. */
  4781. #ifdef __STDC__
  4782. # include <limits.h>
  4783. #else
  4784. # include <assert.h>
  4785. #endif
  4786. Syntax error
  4787. _ACEOF
  4788. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4789. case "(($ac_try" in
  4790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4791. *) ac_try_echo=$ac_try;;
  4792. esac
  4793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4794. $as_echo "$ac_try_echo") >&5
  4795. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4796. ac_status=$?
  4797. grep -v '^ *+' conftest.er1 >conftest.err
  4798. rm -f conftest.er1
  4799. cat conftest.err >&5
  4800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4801. (exit $ac_status); } >/dev/null && {
  4802. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4803. test ! -s conftest.err
  4804. }; then
  4805. :
  4806. else
  4807. $as_echo "$as_me: failed program was:" >&5
  4808. sed 's/^/| /' conftest.$ac_ext >&5
  4809. # Broken: fails on valid input.
  4810. continue
  4811. fi
  4812. rm -f conftest.err conftest.$ac_ext
  4813. # OK, works on sane cases. Now check whether nonexistent headers
  4814. # can be detected and how.
  4815. cat >conftest.$ac_ext <<_ACEOF
  4816. /* confdefs.h. */
  4817. _ACEOF
  4818. cat confdefs.h >>conftest.$ac_ext
  4819. cat >>conftest.$ac_ext <<_ACEOF
  4820. /* end confdefs.h. */
  4821. #include <ac_nonexistent.h>
  4822. _ACEOF
  4823. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4824. case "(($ac_try" in
  4825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4826. *) ac_try_echo=$ac_try;;
  4827. esac
  4828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4829. $as_echo "$ac_try_echo") >&5
  4830. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4831. ac_status=$?
  4832. grep -v '^ *+' conftest.er1 >conftest.err
  4833. rm -f conftest.er1
  4834. cat conftest.err >&5
  4835. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4836. (exit $ac_status); } >/dev/null && {
  4837. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4838. test ! -s conftest.err
  4839. }; then
  4840. # Broken: success on invalid input.
  4841. continue
  4842. else
  4843. $as_echo "$as_me: failed program was:" >&5
  4844. sed 's/^/| /' conftest.$ac_ext >&5
  4845. # Passes both tests.
  4846. ac_preproc_ok=:
  4847. break
  4848. fi
  4849. rm -f conftest.err conftest.$ac_ext
  4850. done
  4851. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4852. rm -f conftest.err conftest.$ac_ext
  4853. if $ac_preproc_ok; then
  4854. break
  4855. fi
  4856. done
  4857. ac_cv_prog_CPP=$CPP
  4858. fi
  4859. CPP=$ac_cv_prog_CPP
  4860. else
  4861. ac_cv_prog_CPP=$CPP
  4862. fi
  4863. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  4864. $as_echo "$CPP" >&6; }
  4865. ac_preproc_ok=false
  4866. for ac_c_preproc_warn_flag in '' yes
  4867. do
  4868. # Use a header file that comes with gcc, so configuring glibc
  4869. # with a fresh cross-compiler works.
  4870. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4871. # <limits.h> exists even on freestanding compilers.
  4872. # On the NeXT, cc -E runs the code through the compiler's parser,
  4873. # not just through cpp. "Syntax error" is here to catch this case.
  4874. cat >conftest.$ac_ext <<_ACEOF
  4875. /* confdefs.h. */
  4876. _ACEOF
  4877. cat confdefs.h >>conftest.$ac_ext
  4878. cat >>conftest.$ac_ext <<_ACEOF
  4879. /* end confdefs.h. */
  4880. #ifdef __STDC__
  4881. # include <limits.h>
  4882. #else
  4883. # include <assert.h>
  4884. #endif
  4885. Syntax error
  4886. _ACEOF
  4887. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4888. case "(($ac_try" in
  4889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4890. *) ac_try_echo=$ac_try;;
  4891. esac
  4892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4893. $as_echo "$ac_try_echo") >&5
  4894. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4895. ac_status=$?
  4896. grep -v '^ *+' conftest.er1 >conftest.err
  4897. rm -f conftest.er1
  4898. cat conftest.err >&5
  4899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4900. (exit $ac_status); } >/dev/null && {
  4901. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4902. test ! -s conftest.err
  4903. }; then
  4904. :
  4905. else
  4906. $as_echo "$as_me: failed program was:" >&5
  4907. sed 's/^/| /' conftest.$ac_ext >&5
  4908. # Broken: fails on valid input.
  4909. continue
  4910. fi
  4911. rm -f conftest.err conftest.$ac_ext
  4912. # OK, works on sane cases. Now check whether nonexistent headers
  4913. # can be detected and how.
  4914. cat >conftest.$ac_ext <<_ACEOF
  4915. /* confdefs.h. */
  4916. _ACEOF
  4917. cat confdefs.h >>conftest.$ac_ext
  4918. cat >>conftest.$ac_ext <<_ACEOF
  4919. /* end confdefs.h. */
  4920. #include <ac_nonexistent.h>
  4921. _ACEOF
  4922. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4923. case "(($ac_try" in
  4924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4925. *) ac_try_echo=$ac_try;;
  4926. esac
  4927. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4928. $as_echo "$ac_try_echo") >&5
  4929. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4930. ac_status=$?
  4931. grep -v '^ *+' conftest.er1 >conftest.err
  4932. rm -f conftest.er1
  4933. cat conftest.err >&5
  4934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4935. (exit $ac_status); } >/dev/null && {
  4936. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4937. test ! -s conftest.err
  4938. }; then
  4939. # Broken: success on invalid input.
  4940. continue
  4941. else
  4942. $as_echo "$as_me: failed program was:" >&5
  4943. sed 's/^/| /' conftest.$ac_ext >&5
  4944. # Passes both tests.
  4945. ac_preproc_ok=:
  4946. break
  4947. fi
  4948. rm -f conftest.err conftest.$ac_ext
  4949. done
  4950. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4951. rm -f conftest.err conftest.$ac_ext
  4952. if $ac_preproc_ok; then
  4953. :
  4954. else
  4955. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4957. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4958. See \`config.log' for more details." >&5
  4959. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4960. See \`config.log' for more details." >&2;}
  4961. { (exit 1); exit 1; }; }; }
  4962. fi
  4963. ac_ext=c
  4964. ac_cpp='$CPP $CPPFLAGS'
  4965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4968. ac_ext=cpp
  4969. ac_cpp='$CXXCPP $CPPFLAGS'
  4970. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4971. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4972. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4973. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4974. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4975. if test -z "$CXXCPP"; then
  4976. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. # Double quotes because CXXCPP needs to be expanded
  4980. for CXXCPP in "$CXX -E" "/lib/cpp"
  4981. do
  4982. ac_preproc_ok=false
  4983. for ac_cxx_preproc_warn_flag in '' yes
  4984. do
  4985. # Use a header file that comes with gcc, so configuring glibc
  4986. # with a fresh cross-compiler works.
  4987. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4988. # <limits.h> exists even on freestanding compilers.
  4989. # On the NeXT, cc -E runs the code through the compiler's parser,
  4990. # not just through cpp. "Syntax error" is here to catch this case.
  4991. cat >conftest.$ac_ext <<_ACEOF
  4992. /* confdefs.h. */
  4993. _ACEOF
  4994. cat confdefs.h >>conftest.$ac_ext
  4995. cat >>conftest.$ac_ext <<_ACEOF
  4996. /* end confdefs.h. */
  4997. #ifdef __STDC__
  4998. # include <limits.h>
  4999. #else
  5000. # include <assert.h>
  5001. #endif
  5002. Syntax error
  5003. _ACEOF
  5004. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5005. case "(($ac_try" in
  5006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5007. *) ac_try_echo=$ac_try;;
  5008. esac
  5009. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5010. $as_echo "$ac_try_echo") >&5
  5011. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5012. ac_status=$?
  5013. grep -v '^ *+' conftest.er1 >conftest.err
  5014. rm -f conftest.er1
  5015. cat conftest.err >&5
  5016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); } >/dev/null && {
  5018. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5019. test ! -s conftest.err
  5020. }; then
  5021. :
  5022. else
  5023. $as_echo "$as_me: failed program was:" >&5
  5024. sed 's/^/| /' conftest.$ac_ext >&5
  5025. # Broken: fails on valid input.
  5026. continue
  5027. fi
  5028. rm -f conftest.err conftest.$ac_ext
  5029. # OK, works on sane cases. Now check whether nonexistent headers
  5030. # can be detected and how.
  5031. cat >conftest.$ac_ext <<_ACEOF
  5032. /* confdefs.h. */
  5033. _ACEOF
  5034. cat confdefs.h >>conftest.$ac_ext
  5035. cat >>conftest.$ac_ext <<_ACEOF
  5036. /* end confdefs.h. */
  5037. #include <ac_nonexistent.h>
  5038. _ACEOF
  5039. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5040. case "(($ac_try" in
  5041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5042. *) ac_try_echo=$ac_try;;
  5043. esac
  5044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5045. $as_echo "$ac_try_echo") >&5
  5046. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5047. ac_status=$?
  5048. grep -v '^ *+' conftest.er1 >conftest.err
  5049. rm -f conftest.er1
  5050. cat conftest.err >&5
  5051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5052. (exit $ac_status); } >/dev/null && {
  5053. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5054. test ! -s conftest.err
  5055. }; then
  5056. # Broken: success on invalid input.
  5057. continue
  5058. else
  5059. $as_echo "$as_me: failed program was:" >&5
  5060. sed 's/^/| /' conftest.$ac_ext >&5
  5061. # Passes both tests.
  5062. ac_preproc_ok=:
  5063. break
  5064. fi
  5065. rm -f conftest.err conftest.$ac_ext
  5066. done
  5067. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5068. rm -f conftest.err conftest.$ac_ext
  5069. if $ac_preproc_ok; then
  5070. break
  5071. fi
  5072. done
  5073. ac_cv_prog_CXXCPP=$CXXCPP
  5074. fi
  5075. CXXCPP=$ac_cv_prog_CXXCPP
  5076. else
  5077. ac_cv_prog_CXXCPP=$CXXCPP
  5078. fi
  5079. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5080. $as_echo "$CXXCPP" >&6; }
  5081. ac_preproc_ok=false
  5082. for ac_cxx_preproc_warn_flag in '' yes
  5083. do
  5084. # Use a header file that comes with gcc, so configuring glibc
  5085. # with a fresh cross-compiler works.
  5086. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5087. # <limits.h> exists even on freestanding compilers.
  5088. # On the NeXT, cc -E runs the code through the compiler's parser,
  5089. # not just through cpp. "Syntax error" is here to catch this case.
  5090. cat >conftest.$ac_ext <<_ACEOF
  5091. /* confdefs.h. */
  5092. _ACEOF
  5093. cat confdefs.h >>conftest.$ac_ext
  5094. cat >>conftest.$ac_ext <<_ACEOF
  5095. /* end confdefs.h. */
  5096. #ifdef __STDC__
  5097. # include <limits.h>
  5098. #else
  5099. # include <assert.h>
  5100. #endif
  5101. Syntax error
  5102. _ACEOF
  5103. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5104. case "(($ac_try" in
  5105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5106. *) ac_try_echo=$ac_try;;
  5107. esac
  5108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5109. $as_echo "$ac_try_echo") >&5
  5110. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5111. ac_status=$?
  5112. grep -v '^ *+' conftest.er1 >conftest.err
  5113. rm -f conftest.er1
  5114. cat conftest.err >&5
  5115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5116. (exit $ac_status); } >/dev/null && {
  5117. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5118. test ! -s conftest.err
  5119. }; then
  5120. :
  5121. else
  5122. $as_echo "$as_me: failed program was:" >&5
  5123. sed 's/^/| /' conftest.$ac_ext >&5
  5124. # Broken: fails on valid input.
  5125. continue
  5126. fi
  5127. rm -f conftest.err conftest.$ac_ext
  5128. # OK, works on sane cases. Now check whether nonexistent headers
  5129. # can be detected and how.
  5130. cat >conftest.$ac_ext <<_ACEOF
  5131. /* confdefs.h. */
  5132. _ACEOF
  5133. cat confdefs.h >>conftest.$ac_ext
  5134. cat >>conftest.$ac_ext <<_ACEOF
  5135. /* end confdefs.h. */
  5136. #include <ac_nonexistent.h>
  5137. _ACEOF
  5138. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5139. case "(($ac_try" in
  5140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5141. *) ac_try_echo=$ac_try;;
  5142. esac
  5143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5144. $as_echo "$ac_try_echo") >&5
  5145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5146. ac_status=$?
  5147. grep -v '^ *+' conftest.er1 >conftest.err
  5148. rm -f conftest.er1
  5149. cat conftest.err >&5
  5150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. (exit $ac_status); } >/dev/null && {
  5152. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5153. test ! -s conftest.err
  5154. }; then
  5155. # Broken: success on invalid input.
  5156. continue
  5157. else
  5158. $as_echo "$as_me: failed program was:" >&5
  5159. sed 's/^/| /' conftest.$ac_ext >&5
  5160. # Passes both tests.
  5161. ac_preproc_ok=:
  5162. break
  5163. fi
  5164. rm -f conftest.err conftest.$ac_ext
  5165. done
  5166. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5167. rm -f conftest.err conftest.$ac_ext
  5168. if $ac_preproc_ok; then
  5169. :
  5170. else
  5171. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5173. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5174. See \`config.log' for more details." >&5
  5175. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5176. See \`config.log' for more details." >&2;}
  5177. { (exit 1); exit 1; }; }; }
  5178. fi
  5179. ac_ext=c
  5180. ac_cpp='$CPP $CPPFLAGS'
  5181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5184. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5185. # the developers regenerating the configure script don't have to install libtool.
  5186. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5187. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5188. if test "${ac_cv_path_SED+set}" = set; then
  5189. $as_echo_n "(cached) " >&6
  5190. else
  5191. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5192. for ac_i in 1 2 3 4 5 6 7; do
  5193. ac_script="$ac_script$as_nl$ac_script"
  5194. done
  5195. echo "$ac_script" | sed 99q >conftest.sed
  5196. $as_unset ac_script || ac_script=
  5197. if test -z "$SED"; then
  5198. ac_path_SED_found=false
  5199. # Loop through the user's path and test for each of PROGNAME-LIST
  5200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5201. for as_dir in $PATH
  5202. do
  5203. IFS=$as_save_IFS
  5204. test -z "$as_dir" && as_dir=.
  5205. for ac_prog in sed gsed; do
  5206. for ac_exec_ext in '' $ac_executable_extensions; do
  5207. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5208. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5209. # Check for GNU ac_path_SED and select it if it is found.
  5210. # Check for GNU $ac_path_SED
  5211. case `"$ac_path_SED" --version 2>&1` in
  5212. *GNU*)
  5213. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5214. *)
  5215. ac_count=0
  5216. $as_echo_n 0123456789 >"conftest.in"
  5217. while :
  5218. do
  5219. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5220. mv "conftest.tmp" "conftest.in"
  5221. cp "conftest.in" "conftest.nl"
  5222. $as_echo '' >> "conftest.nl"
  5223. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5224. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5225. ac_count=`expr $ac_count + 1`
  5226. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5227. # Best one so far, save it but keep looking for a better one
  5228. ac_cv_path_SED="$ac_path_SED"
  5229. ac_path_SED_max=$ac_count
  5230. fi
  5231. # 10*(2^10) chars as input seems more than enough
  5232. test $ac_count -gt 10 && break
  5233. done
  5234. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5235. esac
  5236. $ac_path_SED_found && break 3
  5237. done
  5238. done
  5239. done
  5240. IFS=$as_save_IFS
  5241. if test -z "$ac_cv_path_SED"; then
  5242. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  5243. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  5244. { (exit 1); exit 1; }; }
  5245. fi
  5246. else
  5247. ac_cv_path_SED=$SED
  5248. fi
  5249. fi
  5250. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  5251. $as_echo "$ac_cv_path_SED" >&6; }
  5252. SED="$ac_cv_path_SED"
  5253. rm -f conftest.sed
  5254. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  5255. $as_echo_n "checking for egrep... " >&6; }
  5256. if test "${ac_cv_prog_egrep+set}" = set; then
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5260. then ac_cv_prog_egrep='grep -E'
  5261. else ac_cv_prog_egrep='egrep'
  5262. fi
  5263. fi
  5264. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  5265. $as_echo "$ac_cv_prog_egrep" >&6; }
  5266. EGREP=$ac_cv_prog_egrep
  5267. # Check whether --with-gnu-ld was given.
  5268. if test "${with_gnu_ld+set}" = set; then
  5269. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5270. else
  5271. with_gnu_ld=no
  5272. fi
  5273. ac_prog=ld
  5274. if test "$GCC" = yes; then
  5275. # Check if gcc -print-prog-name=ld gives a path.
  5276. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  5277. $as_echo_n "checking for ld used by $CC... " >&6; }
  5278. case $host in
  5279. *-*-mingw*)
  5280. # gcc leaves a trailing carriage return which upsets mingw
  5281. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5282. *)
  5283. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5284. esac
  5285. case $ac_prog in
  5286. # Accept absolute paths.
  5287. [\\/]* | ?:[\\/]*)
  5288. re_direlt='/[^/][^/]*/\.\./'
  5289. # Canonicalize the pathname of ld
  5290. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5291. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5292. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5293. done
  5294. test -z "$LD" && LD="$ac_prog"
  5295. ;;
  5296. "")
  5297. # If it fails, then pretend we aren't using GCC.
  5298. ac_prog=ld
  5299. ;;
  5300. *)
  5301. # If it is relative, then search for the first ld in PATH.
  5302. with_gnu_ld=unknown
  5303. ;;
  5304. esac
  5305. elif test "$with_gnu_ld" = yes; then
  5306. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  5307. $as_echo_n "checking for GNU ld... " >&6; }
  5308. else
  5309. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5310. $as_echo_n "checking for non-GNU ld... " >&6; }
  5311. fi
  5312. if test "${lt_cv_path_LD+set}" = set; then
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. if test -z "$LD"; then
  5316. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5317. for ac_dir in $PATH; do
  5318. IFS="$lt_save_ifs"
  5319. test -z "$ac_dir" && ac_dir=.
  5320. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5321. lt_cv_path_LD="$ac_dir/$ac_prog"
  5322. # Check to see if the program is GNU ld. I'd rather use --version,
  5323. # but apparently some variants of GNU ld only accept -v.
  5324. # Break only if it was the GNU/non-GNU ld that we prefer.
  5325. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5326. *GNU* | *'with BFD'*)
  5327. test "$with_gnu_ld" != no && break
  5328. ;;
  5329. *)
  5330. test "$with_gnu_ld" != yes && break
  5331. ;;
  5332. esac
  5333. fi
  5334. done
  5335. IFS="$lt_save_ifs"
  5336. else
  5337. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5338. fi
  5339. fi
  5340. LD="$lt_cv_path_LD"
  5341. if test -n "$LD"; then
  5342. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  5343. $as_echo "$LD" >&6; }
  5344. else
  5345. { $as_echo "$as_me:$LINENO: result: no" >&5
  5346. $as_echo "no" >&6; }
  5347. fi
  5348. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5349. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5350. { (exit 1); exit 1; }; }
  5351. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5352. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5353. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5357. case `$LD -v 2>&1 </dev/null` in
  5358. *GNU* | *'with BFD'*)
  5359. lt_cv_prog_gnu_ld=yes
  5360. ;;
  5361. *)
  5362. lt_cv_prog_gnu_ld=no
  5363. ;;
  5364. esac
  5365. fi
  5366. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5367. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5368. with_gnu_ld=$lt_cv_prog_gnu_ld
  5369. # note, does not work on FreeBSD
  5370. for ac_prog in gawk mawk nawk awk
  5371. do
  5372. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5373. set dummy $ac_prog; ac_word=$2
  5374. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5375. $as_echo_n "checking for $ac_word... " >&6; }
  5376. if test "${ac_cv_prog_AWK+set}" = set; then
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. if test -n "$AWK"; then
  5380. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5381. else
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5389. ac_cv_prog_AWK="$ac_prog"
  5390. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. fi
  5397. fi
  5398. AWK=$ac_cv_prog_AWK
  5399. if test -n "$AWK"; then
  5400. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  5401. $as_echo "$AWK" >&6; }
  5402. else
  5403. { $as_echo "$as_me:$LINENO: result: no" >&5
  5404. $as_echo "no" >&6; }
  5405. fi
  5406. test -n "$AWK" && break
  5407. done
  5408. # Find a good install program. We prefer a C program (faster),
  5409. # so one script is as good as another. But avoid the broken or
  5410. # incompatible versions:
  5411. # SysV /etc/install, /usr/sbin/install
  5412. # SunOS /usr/etc/install
  5413. # IRIX /sbin/install
  5414. # AIX /bin/install
  5415. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5416. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5417. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5418. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5419. # OS/2's system install, which has a completely different semantic
  5420. # ./install, which can be erroneously created by make from ./install.sh.
  5421. # Reject install programs that cannot install multiple files.
  5422. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  5423. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5424. if test -z "$INSTALL"; then
  5425. if test "${ac_cv_path_install+set}" = set; then
  5426. $as_echo_n "(cached) " >&6
  5427. else
  5428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5429. for as_dir in $PATH
  5430. do
  5431. IFS=$as_save_IFS
  5432. test -z "$as_dir" && as_dir=.
  5433. # Account for people who put trailing slashes in PATH elements.
  5434. case $as_dir/ in
  5435. ./ | .// | /cC/* | \
  5436. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5437. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  5438. /usr/ucb/* ) ;;
  5439. *)
  5440. # OSF1 and SCO ODT 3.0 have their own names for install.
  5441. # Don't use installbsd from OSF since it installs stuff as root
  5442. # by default.
  5443. for ac_prog in ginstall scoinst install; do
  5444. for ac_exec_ext in '' $ac_executable_extensions; do
  5445. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  5446. if test $ac_prog = install &&
  5447. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5448. # AIX install. It has an incompatible calling convention.
  5449. :
  5450. elif test $ac_prog = install &&
  5451. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5452. # program-specific install script used by HP pwplus--don't use.
  5453. :
  5454. else
  5455. rm -rf conftest.one conftest.two conftest.dir
  5456. echo one > conftest.one
  5457. echo two > conftest.two
  5458. mkdir conftest.dir
  5459. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5460. test -s conftest.one && test -s conftest.two &&
  5461. test -s conftest.dir/conftest.one &&
  5462. test -s conftest.dir/conftest.two
  5463. then
  5464. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5465. break 3
  5466. fi
  5467. fi
  5468. fi
  5469. done
  5470. done
  5471. ;;
  5472. esac
  5473. done
  5474. IFS=$as_save_IFS
  5475. rm -rf conftest.one conftest.two conftest.dir
  5476. fi
  5477. if test "${ac_cv_path_install+set}" = set; then
  5478. INSTALL=$ac_cv_path_install
  5479. else
  5480. # As a last resort, use the slow shell script. Don't cache a
  5481. # value for INSTALL within a source directory, because that will
  5482. # break other packages using the cache if that directory is
  5483. # removed, or if the value is a relative name.
  5484. INSTALL=$ac_install_sh
  5485. fi
  5486. fi
  5487. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  5488. $as_echo "$INSTALL" >&6; }
  5489. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5490. # It thinks the first close brace ends the variable substitution.
  5491. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5492. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5493. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5494. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5495. $as_echo_n "checking whether ln -s works... " >&6; }
  5496. LN_S=$as_ln_s
  5497. if test "$LN_S" = "ln -s"; then
  5498. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5499. $as_echo "yes" >&6; }
  5500. else
  5501. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5502. $as_echo "no, using $LN_S" >&6; }
  5503. fi
  5504. if test -n "$ac_tool_prefix"; then
  5505. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5506. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5507. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5508. $as_echo_n "checking for $ac_word... " >&6; }
  5509. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. if test -n "$RANLIB"; then
  5513. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5514. else
  5515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5516. for as_dir in $PATH
  5517. do
  5518. IFS=$as_save_IFS
  5519. test -z "$as_dir" && as_dir=.
  5520. for ac_exec_ext in '' $ac_executable_extensions; do
  5521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5522. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5523. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5524. break 2
  5525. fi
  5526. done
  5527. done
  5528. IFS=$as_save_IFS
  5529. fi
  5530. fi
  5531. RANLIB=$ac_cv_prog_RANLIB
  5532. if test -n "$RANLIB"; then
  5533. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5534. $as_echo "$RANLIB" >&6; }
  5535. else
  5536. { $as_echo "$as_me:$LINENO: result: no" >&5
  5537. $as_echo "no" >&6; }
  5538. fi
  5539. fi
  5540. if test -z "$ac_cv_prog_RANLIB"; then
  5541. ac_ct_RANLIB=$RANLIB
  5542. # Extract the first word of "ranlib", so it can be a program name with args.
  5543. set dummy ranlib; ac_word=$2
  5544. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5545. $as_echo_n "checking for $ac_word... " >&6; }
  5546. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5547. $as_echo_n "(cached) " >&6
  5548. else
  5549. if test -n "$ac_ct_RANLIB"; then
  5550. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5551. else
  5552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5553. for as_dir in $PATH
  5554. do
  5555. IFS=$as_save_IFS
  5556. test -z "$as_dir" && as_dir=.
  5557. for ac_exec_ext in '' $ac_executable_extensions; do
  5558. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5559. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5560. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5561. break 2
  5562. fi
  5563. done
  5564. done
  5565. IFS=$as_save_IFS
  5566. fi
  5567. fi
  5568. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5569. if test -n "$ac_ct_RANLIB"; then
  5570. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5571. $as_echo "$ac_ct_RANLIB" >&6; }
  5572. else
  5573. { $as_echo "$as_me:$LINENO: result: no" >&5
  5574. $as_echo "no" >&6; }
  5575. fi
  5576. if test "x$ac_ct_RANLIB" = x; then
  5577. RANLIB=":"
  5578. else
  5579. case $cross_compiling:$ac_tool_warned in
  5580. yes:)
  5581. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5583. ac_tool_warned=yes ;;
  5584. esac
  5585. RANLIB=$ac_ct_RANLIB
  5586. fi
  5587. else
  5588. RANLIB="$ac_cv_prog_RANLIB"
  5589. fi
  5590. { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
  5591. $as_echo_n "checking for GNU make... " >&6; }
  5592. if test "${ac_cv_GNU_MAKE+set}" = set; then
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. ac_cv_GNU_MAKE='Not Found' ;
  5596. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  5597. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  5598. for a in make gmake gnumake ; do
  5599. if test -z "$a" ; then continue ; fi ;
  5600. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  5601. ac_cv_GNU_MAKE=$a ;
  5602. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  5603. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  5604. break;
  5605. fi
  5606. done ;
  5607. fi
  5608. { $as_echo "$as_me:$LINENO: result: $ac_cv_GNU_MAKE" >&5
  5609. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  5610. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  5611. { { $as_echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
  5612. $as_echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
  5613. { (exit 1); exit 1; }; }
  5614. exit 1
  5615. fi
  5616. GNU_MAKE=$ac_cv_GNU_MAKE
  5617. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  5618. $as_echo_n "checking for egrep... " >&6; }
  5619. if test "${ac_cv_path_EGREP+set}" = set; then
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5623. then ac_cv_path_EGREP="$GREP -E"
  5624. else
  5625. if test -z "$EGREP"; then
  5626. ac_path_EGREP_found=false
  5627. # Loop through the user's path and test for each of PROGNAME-LIST
  5628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5629. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5630. do
  5631. IFS=$as_save_IFS
  5632. test -z "$as_dir" && as_dir=.
  5633. for ac_prog in egrep; do
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5636. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5637. # Check for GNU ac_path_EGREP and select it if it is found.
  5638. # Check for GNU $ac_path_EGREP
  5639. case `"$ac_path_EGREP" --version 2>&1` in
  5640. *GNU*)
  5641. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5642. *)
  5643. ac_count=0
  5644. $as_echo_n 0123456789 >"conftest.in"
  5645. while :
  5646. do
  5647. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5648. mv "conftest.tmp" "conftest.in"
  5649. cp "conftest.in" "conftest.nl"
  5650. $as_echo 'EGREP' >> "conftest.nl"
  5651. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5652. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5653. ac_count=`expr $ac_count + 1`
  5654. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5655. # Best one so far, save it but keep looking for a better one
  5656. ac_cv_path_EGREP="$ac_path_EGREP"
  5657. ac_path_EGREP_max=$ac_count
  5658. fi
  5659. # 10*(2^10) chars as input seems more than enough
  5660. test $ac_count -gt 10 && break
  5661. done
  5662. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5663. esac
  5664. $ac_path_EGREP_found && break 3
  5665. done
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. if test -z "$ac_cv_path_EGREP"; then
  5670. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5671. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5672. { (exit 1); exit 1; }; }
  5673. fi
  5674. else
  5675. ac_cv_path_EGREP=$EGREP
  5676. fi
  5677. fi
  5678. fi
  5679. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5680. $as_echo "$ac_cv_path_EGREP" >&6; }
  5681. EGREP="$ac_cv_path_EGREP"
  5682. if test -n "$ac_tool_prefix"; then
  5683. for ac_prog in strip gstrip
  5684. do
  5685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5687. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5688. $as_echo_n "checking for $ac_word... " >&6; }
  5689. if test "${ac_cv_prog_STRIP+set}" = set; then
  5690. $as_echo_n "(cached) " >&6
  5691. else
  5692. if test -n "$STRIP"; then
  5693. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5694. else
  5695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5696. for as_dir in $PATH
  5697. do
  5698. IFS=$as_save_IFS
  5699. test -z "$as_dir" && as_dir=.
  5700. for ac_exec_ext in '' $ac_executable_extensions; do
  5701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5702. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  5703. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5704. break 2
  5705. fi
  5706. done
  5707. done
  5708. IFS=$as_save_IFS
  5709. fi
  5710. fi
  5711. STRIP=$ac_cv_prog_STRIP
  5712. if test -n "$STRIP"; then
  5713. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5714. $as_echo "$STRIP" >&6; }
  5715. else
  5716. { $as_echo "$as_me:$LINENO: result: no" >&5
  5717. $as_echo "no" >&6; }
  5718. fi
  5719. test -n "$STRIP" && break
  5720. done
  5721. fi
  5722. if test -z "$STRIP"; then
  5723. ac_ct_STRIP=$STRIP
  5724. for ac_prog in strip gstrip
  5725. do
  5726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5727. set dummy $ac_prog; ac_word=$2
  5728. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5729. $as_echo_n "checking for $ac_word... " >&6; }
  5730. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5731. $as_echo_n "(cached) " >&6
  5732. else
  5733. if test -n "$ac_ct_STRIP"; then
  5734. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5735. else
  5736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5737. for as_dir in $PATH
  5738. do
  5739. IFS=$as_save_IFS
  5740. test -z "$as_dir" && as_dir=.
  5741. for ac_exec_ext in '' $ac_executable_extensions; do
  5742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5743. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  5744. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5745. break 2
  5746. fi
  5747. done
  5748. done
  5749. IFS=$as_save_IFS
  5750. fi
  5751. fi
  5752. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5753. if test -n "$ac_ct_STRIP"; then
  5754. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5755. $as_echo "$ac_ct_STRIP" >&6; }
  5756. else
  5757. { $as_echo "$as_me:$LINENO: result: no" >&5
  5758. $as_echo "no" >&6; }
  5759. fi
  5760. test -n "$ac_ct_STRIP" && break
  5761. done
  5762. if test "x$ac_ct_STRIP" = x; then
  5763. STRIP=":"
  5764. else
  5765. case $cross_compiling:$ac_tool_warned in
  5766. yes:)
  5767. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5769. ac_tool_warned=yes ;;
  5770. esac
  5771. STRIP=$ac_ct_STRIP
  5772. fi
  5773. fi
  5774. if test -n "$ac_tool_prefix"; then
  5775. for ac_prog in ar gar
  5776. do
  5777. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5778. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5779. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if test "${ac_cv_prog_AR+set}" = set; then
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$AR"; then
  5785. ac_cv_prog_AR="$AR" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5794. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5795. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. AR=$ac_cv_prog_AR
  5804. if test -n "$AR"; then
  5805. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5806. $as_echo "$AR" >&6; }
  5807. else
  5808. { $as_echo "$as_me:$LINENO: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. test -n "$AR" && break
  5812. done
  5813. fi
  5814. if test -z "$AR"; then
  5815. ac_ct_AR=$AR
  5816. for ac_prog in ar gar
  5817. do
  5818. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5819. set dummy $ac_prog; ac_word=$2
  5820. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$ac_ct_AR"; then
  5826. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5835. ac_cv_prog_ac_ct_AR="$ac_prog"
  5836. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5845. if test -n "$ac_ct_AR"; then
  5846. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5847. $as_echo "$ac_ct_AR" >&6; }
  5848. else
  5849. { $as_echo "$as_me:$LINENO: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. test -n "$ac_ct_AR" && break
  5853. done
  5854. if test "x$ac_ct_AR" = x; then
  5855. AR=":"
  5856. else
  5857. case $cross_compiling:$ac_tool_warned in
  5858. yes:)
  5859. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5860. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5861. ac_tool_warned=yes ;;
  5862. esac
  5863. AR=$ac_ct_AR
  5864. fi
  5865. fi
  5866. if test -n "$ac_tool_prefix"; then
  5867. for ac_prog in sha1sum
  5868. do
  5869. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5870. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5871. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5872. $as_echo_n "checking for $ac_word... " >&6; }
  5873. if test "${ac_cv_prog_SHA1SUM+set}" = set; then
  5874. $as_echo_n "(cached) " >&6
  5875. else
  5876. if test -n "$SHA1SUM"; then
  5877. ac_cv_prog_SHA1SUM="$SHA1SUM" # Let the user override the test.
  5878. else
  5879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5880. for as_dir in $PATH
  5881. do
  5882. IFS=$as_save_IFS
  5883. test -z "$as_dir" && as_dir=.
  5884. for ac_exec_ext in '' $ac_executable_extensions; do
  5885. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5886. ac_cv_prog_SHA1SUM="$ac_tool_prefix$ac_prog"
  5887. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5888. break 2
  5889. fi
  5890. done
  5891. done
  5892. IFS=$as_save_IFS
  5893. fi
  5894. fi
  5895. SHA1SUM=$ac_cv_prog_SHA1SUM
  5896. if test -n "$SHA1SUM"; then
  5897. { $as_echo "$as_me:$LINENO: result: $SHA1SUM" >&5
  5898. $as_echo "$SHA1SUM" >&6; }
  5899. else
  5900. { $as_echo "$as_me:$LINENO: result: no" >&5
  5901. $as_echo "no" >&6; }
  5902. fi
  5903. test -n "$SHA1SUM" && break
  5904. done
  5905. fi
  5906. if test -z "$SHA1SUM"; then
  5907. ac_ct_SHA1SUM=$SHA1SUM
  5908. for ac_prog in sha1sum
  5909. do
  5910. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5911. set dummy $ac_prog; ac_word=$2
  5912. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5913. $as_echo_n "checking for $ac_word... " >&6; }
  5914. if test "${ac_cv_prog_ac_ct_SHA1SUM+set}" = set; then
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. if test -n "$ac_ct_SHA1SUM"; then
  5918. ac_cv_prog_ac_ct_SHA1SUM="$ac_ct_SHA1SUM" # Let the user override the test.
  5919. else
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. test -z "$as_dir" && as_dir=.
  5925. for ac_exec_ext in '' $ac_executable_extensions; do
  5926. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5927. ac_cv_prog_ac_ct_SHA1SUM="$ac_prog"
  5928. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5929. break 2
  5930. fi
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. fi
  5935. fi
  5936. ac_ct_SHA1SUM=$ac_cv_prog_ac_ct_SHA1SUM
  5937. if test -n "$ac_ct_SHA1SUM"; then
  5938. { $as_echo "$as_me:$LINENO: result: $ac_ct_SHA1SUM" >&5
  5939. $as_echo "$ac_ct_SHA1SUM" >&6; }
  5940. else
  5941. { $as_echo "$as_me:$LINENO: result: no" >&5
  5942. $as_echo "no" >&6; }
  5943. fi
  5944. test -n "$ac_ct_SHA1SUM" && break
  5945. done
  5946. if test "x$ac_ct_SHA1SUM" = x; then
  5947. SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  5948. else
  5949. case $cross_compiling:$ac_tool_warned in
  5950. yes:)
  5951. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5953. ac_tool_warned=yes ;;
  5954. esac
  5955. SHA1SUM=$ac_ct_SHA1SUM
  5956. fi
  5957. fi
  5958. if test -n "$ac_tool_prefix"; then
  5959. for ac_prog in openssl
  5960. do
  5961. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5962. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5963. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5964. $as_echo_n "checking for $ac_word... " >&6; }
  5965. if test "${ac_cv_prog_OPENSSL+set}" = set; then
  5966. $as_echo_n "(cached) " >&6
  5967. else
  5968. if test -n "$OPENSSL"; then
  5969. ac_cv_prog_OPENSSL="$OPENSSL" # Let the user override the test.
  5970. else
  5971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5972. for as_dir in $PATH
  5973. do
  5974. IFS=$as_save_IFS
  5975. test -z "$as_dir" && as_dir=.
  5976. for ac_exec_ext in '' $ac_executable_extensions; do
  5977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5978. ac_cv_prog_OPENSSL="$ac_tool_prefix$ac_prog"
  5979. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5980. break 2
  5981. fi
  5982. done
  5983. done
  5984. IFS=$as_save_IFS
  5985. fi
  5986. fi
  5987. OPENSSL=$ac_cv_prog_OPENSSL
  5988. if test -n "$OPENSSL"; then
  5989. { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
  5990. $as_echo "$OPENSSL" >&6; }
  5991. else
  5992. { $as_echo "$as_me:$LINENO: result: no" >&5
  5993. $as_echo "no" >&6; }
  5994. fi
  5995. test -n "$OPENSSL" && break
  5996. done
  5997. fi
  5998. if test -z "$OPENSSL"; then
  5999. ac_ct_OPENSSL=$OPENSSL
  6000. for ac_prog in openssl
  6001. do
  6002. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6003. set dummy $ac_prog; ac_word=$2
  6004. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6005. $as_echo_n "checking for $ac_word... " >&6; }
  6006. if test "${ac_cv_prog_ac_ct_OPENSSL+set}" = set; then
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. if test -n "$ac_ct_OPENSSL"; then
  6010. ac_cv_prog_ac_ct_OPENSSL="$ac_ct_OPENSSL" # Let the user override the test.
  6011. else
  6012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6013. for as_dir in $PATH
  6014. do
  6015. IFS=$as_save_IFS
  6016. test -z "$as_dir" && as_dir=.
  6017. for ac_exec_ext in '' $ac_executable_extensions; do
  6018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6019. ac_cv_prog_ac_ct_OPENSSL="$ac_prog"
  6020. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6021. break 2
  6022. fi
  6023. done
  6024. done
  6025. IFS=$as_save_IFS
  6026. fi
  6027. fi
  6028. ac_ct_OPENSSL=$ac_cv_prog_ac_ct_OPENSSL
  6029. if test -n "$ac_ct_OPENSSL"; then
  6030. { $as_echo "$as_me:$LINENO: result: $ac_ct_OPENSSL" >&5
  6031. $as_echo "$ac_ct_OPENSSL" >&6; }
  6032. else
  6033. { $as_echo "$as_me:$LINENO: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. test -n "$ac_ct_OPENSSL" && break
  6037. done
  6038. if test "x$ac_ct_OPENSSL" = x; then
  6039. OPENSSL=":"
  6040. else
  6041. case $cross_compiling:$ac_tool_warned in
  6042. yes:)
  6043. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6044. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6045. ac_tool_warned=yes ;;
  6046. esac
  6047. OPENSSL=$ac_ct_OPENSSL
  6048. fi
  6049. fi
  6050. GNU_LD=0
  6051. if test "x$with_gnu_ld" = "xyes" ; then
  6052. GNU_LD=1
  6053. fi
  6054. # Extract the first word of "bison", so it can be a program name with args.
  6055. set dummy bison; ac_word=$2
  6056. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6057. $as_echo_n "checking for $ac_word... " >&6; }
  6058. if test "${ac_cv_path_BISON+set}" = set; then
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. case $BISON in
  6062. [\\/]* | ?:[\\/]*)
  6063. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  6064. ;;
  6065. *)
  6066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6067. for as_dir in $PATH
  6068. do
  6069. IFS=$as_save_IFS
  6070. test -z "$as_dir" && as_dir=.
  6071. for ac_exec_ext in '' $ac_executable_extensions; do
  6072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6073. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6074. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6075. break 2
  6076. fi
  6077. done
  6078. done
  6079. IFS=$as_save_IFS
  6080. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6081. ;;
  6082. esac
  6083. fi
  6084. BISON=$ac_cv_path_BISON
  6085. if test -n "$BISON"; then
  6086. { $as_echo "$as_me:$LINENO: result: $BISON" >&5
  6087. $as_echo "$BISON" >&6; }
  6088. else
  6089. { $as_echo "$as_me:$LINENO: result: no" >&5
  6090. $as_echo "no" >&6; }
  6091. fi
  6092. # Extract the first word of "cmp", so it can be a program name with args.
  6093. set dummy cmp; ac_word=$2
  6094. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6095. $as_echo_n "checking for $ac_word... " >&6; }
  6096. if test "${ac_cv_path_CMP+set}" = set; then
  6097. $as_echo_n "(cached) " >&6
  6098. else
  6099. case $CMP in
  6100. [\\/]* | ?:[\\/]*)
  6101. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6102. ;;
  6103. *)
  6104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6105. for as_dir in $PATH
  6106. do
  6107. IFS=$as_save_IFS
  6108. test -z "$as_dir" && as_dir=.
  6109. for ac_exec_ext in '' $ac_executable_extensions; do
  6110. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6111. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6112. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6113. break 2
  6114. fi
  6115. done
  6116. done
  6117. IFS=$as_save_IFS
  6118. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6119. ;;
  6120. esac
  6121. fi
  6122. CMP=$ac_cv_path_CMP
  6123. if test -n "$CMP"; then
  6124. { $as_echo "$as_me:$LINENO: result: $CMP" >&5
  6125. $as_echo "$CMP" >&6; }
  6126. else
  6127. { $as_echo "$as_me:$LINENO: result: no" >&5
  6128. $as_echo "no" >&6; }
  6129. fi
  6130. # Extract the first word of "flex", so it can be a program name with args.
  6131. set dummy flex; ac_word=$2
  6132. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6133. $as_echo_n "checking for $ac_word... " >&6; }
  6134. if test "${ac_cv_path_FLEX+set}" = set; then
  6135. $as_echo_n "(cached) " >&6
  6136. else
  6137. case $FLEX in
  6138. [\\/]* | ?:[\\/]*)
  6139. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6140. ;;
  6141. *)
  6142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6143. for as_dir in $PATH
  6144. do
  6145. IFS=$as_save_IFS
  6146. test -z "$as_dir" && as_dir=.
  6147. for ac_exec_ext in '' $ac_executable_extensions; do
  6148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6149. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6150. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6151. break 2
  6152. fi
  6153. done
  6154. done
  6155. IFS=$as_save_IFS
  6156. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6157. ;;
  6158. esac
  6159. fi
  6160. FLEX=$ac_cv_path_FLEX
  6161. if test -n "$FLEX"; then
  6162. { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
  6163. $as_echo "$FLEX" >&6; }
  6164. else
  6165. { $as_echo "$as_me:$LINENO: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. fi
  6168. # Extract the first word of "grep", so it can be a program name with args.
  6169. set dummy grep; ac_word=$2
  6170. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6171. $as_echo_n "checking for $ac_word... " >&6; }
  6172. if test "${ac_cv_path_GREP+set}" = set; then
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. case $GREP in
  6176. [\\/]* | ?:[\\/]*)
  6177. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6178. ;;
  6179. *)
  6180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6181. for as_dir in $PATH
  6182. do
  6183. IFS=$as_save_IFS
  6184. test -z "$as_dir" && as_dir=.
  6185. for ac_exec_ext in '' $ac_executable_extensions; do
  6186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6187. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6188. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6189. break 2
  6190. fi
  6191. done
  6192. done
  6193. IFS=$as_save_IFS
  6194. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6195. ;;
  6196. esac
  6197. fi
  6198. GREP=$ac_cv_path_GREP
  6199. if test -n "$GREP"; then
  6200. { $as_echo "$as_me:$LINENO: result: $GREP" >&5
  6201. $as_echo "$GREP" >&6; }
  6202. else
  6203. { $as_echo "$as_me:$LINENO: result: no" >&5
  6204. $as_echo "no" >&6; }
  6205. fi
  6206. # Extract the first word of "find", so it can be a program name with args.
  6207. set dummy find; ac_word=$2
  6208. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6209. $as_echo_n "checking for $ac_word... " >&6; }
  6210. if test "${ac_cv_path_FIND+set}" = set; then
  6211. $as_echo_n "(cached) " >&6
  6212. else
  6213. case $FIND in
  6214. [\\/]* | ?:[\\/]*)
  6215. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6216. ;;
  6217. *)
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6225. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6226. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6233. ;;
  6234. esac
  6235. fi
  6236. FIND=$ac_cv_path_FIND
  6237. if test -n "$FIND"; then
  6238. { $as_echo "$as_me:$LINENO: result: $FIND" >&5
  6239. $as_echo "$FIND" >&6; }
  6240. else
  6241. { $as_echo "$as_me:$LINENO: result: no" >&5
  6242. $as_echo "no" >&6; }
  6243. fi
  6244. # Extract the first word of "compress", so it can be a program name with args.
  6245. set dummy compress; ac_word=$2
  6246. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6247. $as_echo_n "checking for $ac_word... " >&6; }
  6248. if test "${ac_cv_path_COMPRESS+set}" = set; then
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. case $COMPRESS in
  6252. [\\/]* | ?:[\\/]*)
  6253. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  6254. ;;
  6255. *)
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6263. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  6264. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  6271. ;;
  6272. esac
  6273. fi
  6274. COMPRESS=$ac_cv_path_COMPRESS
  6275. if test -n "$COMPRESS"; then
  6276. { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
  6277. $as_echo "$COMPRESS" >&6; }
  6278. else
  6279. { $as_echo "$as_me:$LINENO: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. # Extract the first word of "basename", so it can be a program name with args.
  6283. set dummy basename; ac_word=$2
  6284. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if test "${ac_cv_path_BASENAME+set}" = set; then
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. case $BASENAME in
  6290. [\\/]* | ?:[\\/]*)
  6291. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  6292. ;;
  6293. *)
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6301. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  6302. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  6309. ;;
  6310. esac
  6311. fi
  6312. BASENAME=$ac_cv_path_BASENAME
  6313. if test -n "$BASENAME"; then
  6314. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  6315. $as_echo "$BASENAME" >&6; }
  6316. else
  6317. { $as_echo "$as_me:$LINENO: result: no" >&5
  6318. $as_echo "no" >&6; }
  6319. fi
  6320. # Extract the first word of "dirname", so it can be a program name with args.
  6321. set dummy dirname; ac_word=$2
  6322. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6323. $as_echo_n "checking for $ac_word... " >&6; }
  6324. if test "${ac_cv_path_DIRNAME+set}" = set; then
  6325. $as_echo_n "(cached) " >&6
  6326. else
  6327. case $DIRNAME in
  6328. [\\/]* | ?:[\\/]*)
  6329. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  6330. ;;
  6331. *)
  6332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6333. for as_dir in $PATH
  6334. do
  6335. IFS=$as_save_IFS
  6336. test -z "$as_dir" && as_dir=.
  6337. for ac_exec_ext in '' $ac_executable_extensions; do
  6338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6339. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  6340. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6341. break 2
  6342. fi
  6343. done
  6344. done
  6345. IFS=$as_save_IFS
  6346. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  6347. ;;
  6348. esac
  6349. fi
  6350. DIRNAME=$ac_cv_path_DIRNAME
  6351. if test -n "$DIRNAME"; then
  6352. { $as_echo "$as_me:$LINENO: result: $DIRNAME" >&5
  6353. $as_echo "$DIRNAME" >&6; }
  6354. else
  6355. { $as_echo "$as_me:$LINENO: result: no" >&5
  6356. $as_echo "no" >&6; }
  6357. fi
  6358. # Extract the first word of "sh", so it can be a program name with args.
  6359. set dummy sh; ac_word=$2
  6360. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6361. $as_echo_n "checking for $ac_word... " >&6; }
  6362. if test "${ac_cv_path_SHELL+set}" = set; then
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. case $SHELL in
  6366. [\\/]* | ?:[\\/]*)
  6367. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  6368. ;;
  6369. *)
  6370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6371. for as_dir in $PATH
  6372. do
  6373. IFS=$as_save_IFS
  6374. test -z "$as_dir" && as_dir=.
  6375. for ac_exec_ext in '' $ac_executable_extensions; do
  6376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6377. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  6378. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6379. break 2
  6380. fi
  6381. done
  6382. done
  6383. IFS=$as_save_IFS
  6384. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  6385. ;;
  6386. esac
  6387. fi
  6388. SHELL=$ac_cv_path_SHELL
  6389. if test -n "$SHELL"; then
  6390. { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
  6391. $as_echo "$SHELL" >&6; }
  6392. else
  6393. { $as_echo "$as_me:$LINENO: result: no" >&5
  6394. $as_echo "no" >&6; }
  6395. fi
  6396. # Extract the first word of "ln", so it can be a program name with args.
  6397. set dummy ln; ac_word=$2
  6398. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6399. $as_echo_n "checking for $ac_word... " >&6; }
  6400. if test "${ac_cv_path_LN+set}" = set; then
  6401. $as_echo_n "(cached) " >&6
  6402. else
  6403. case $LN in
  6404. [\\/]* | ?:[\\/]*)
  6405. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6406. ;;
  6407. *)
  6408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6409. for as_dir in $PATH
  6410. do
  6411. IFS=$as_save_IFS
  6412. test -z "$as_dir" && as_dir=.
  6413. for ac_exec_ext in '' $ac_executable_extensions; do
  6414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6415. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6416. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6417. break 2
  6418. fi
  6419. done
  6420. done
  6421. IFS=$as_save_IFS
  6422. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  6423. ;;
  6424. esac
  6425. fi
  6426. LN=$ac_cv_path_LN
  6427. if test -n "$LN"; then
  6428. { $as_echo "$as_me:$LINENO: result: $LN" >&5
  6429. $as_echo "$LN" >&6; }
  6430. else
  6431. { $as_echo "$as_me:$LINENO: result: no" >&5
  6432. $as_echo "no" >&6; }
  6433. fi
  6434. # Extract the first word of "dot", so it can be a program name with args.
  6435. set dummy dot; ac_word=$2
  6436. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6437. $as_echo_n "checking for $ac_word... " >&6; }
  6438. if test "${ac_cv_path_DOT+set}" = set; then
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. case $DOT in
  6442. [\\/]* | ?:[\\/]*)
  6443. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6444. ;;
  6445. *)
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6453. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6454. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  6461. ;;
  6462. esac
  6463. fi
  6464. DOT=$ac_cv_path_DOT
  6465. if test -n "$DOT"; then
  6466. { $as_echo "$as_me:$LINENO: result: $DOT" >&5
  6467. $as_echo "$DOT" >&6; }
  6468. else
  6469. { $as_echo "$as_me:$LINENO: result: no" >&5
  6470. $as_echo "no" >&6; }
  6471. fi
  6472. # Extract the first word of "wget", so it can be a program name with args.
  6473. set dummy wget; ac_word=$2
  6474. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6475. $as_echo_n "checking for $ac_word... " >&6; }
  6476. if test "${ac_cv_path_WGET+set}" = set; then
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. case $WGET in
  6480. [\\/]* | ?:[\\/]*)
  6481. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  6482. ;;
  6483. *)
  6484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6485. for as_dir in $PATH
  6486. do
  6487. IFS=$as_save_IFS
  6488. test -z "$as_dir" && as_dir=.
  6489. for ac_exec_ext in '' $ac_executable_extensions; do
  6490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6491. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  6492. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6493. break 2
  6494. fi
  6495. done
  6496. done
  6497. IFS=$as_save_IFS
  6498. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  6499. ;;
  6500. esac
  6501. fi
  6502. WGET=$ac_cv_path_WGET
  6503. if test -n "$WGET"; then
  6504. { $as_echo "$as_me:$LINENO: result: $WGET" >&5
  6505. $as_echo "$WGET" >&6; }
  6506. else
  6507. { $as_echo "$as_me:$LINENO: result: no" >&5
  6508. $as_echo "no" >&6; }
  6509. fi
  6510. # Extract the first word of "curl", so it can be a program name with args.
  6511. set dummy curl; ac_word=$2
  6512. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if test "${ac_cv_path_CURL+set}" = set; then
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. case $CURL in
  6518. [\\/]* | ?:[\\/]*)
  6519. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  6520. ;;
  6521. *)
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. test -z "$as_dir" && as_dir=.
  6527. for ac_exec_ext in '' $ac_executable_extensions; do
  6528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6529. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  6530. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6531. break 2
  6532. fi
  6533. done
  6534. done
  6535. IFS=$as_save_IFS
  6536. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  6537. ;;
  6538. esac
  6539. fi
  6540. CURL=$ac_cv_path_CURL
  6541. if test -n "$CURL"; then
  6542. { $as_echo "$as_me:$LINENO: result: $CURL" >&5
  6543. $as_echo "$CURL" >&6; }
  6544. else
  6545. { $as_echo "$as_me:$LINENO: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. # Extract the first word of "rubber", so it can be a program name with args.
  6549. set dummy rubber; ac_word=$2
  6550. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6551. $as_echo_n "checking for $ac_word... " >&6; }
  6552. if test "${ac_cv_path_RUBBER+set}" = set; then
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. case $RUBBER in
  6556. [\\/]* | ?:[\\/]*)
  6557. ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
  6558. ;;
  6559. *)
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. test -z "$as_dir" && as_dir=.
  6565. for ac_exec_ext in '' $ac_executable_extensions; do
  6566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6567. ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
  6568. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6569. break 2
  6570. fi
  6571. done
  6572. done
  6573. IFS=$as_save_IFS
  6574. test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
  6575. ;;
  6576. esac
  6577. fi
  6578. RUBBER=$ac_cv_path_RUBBER
  6579. if test -n "$RUBBER"; then
  6580. { $as_echo "$as_me:$LINENO: result: $RUBBER" >&5
  6581. $as_echo "$RUBBER" >&6; }
  6582. else
  6583. { $as_echo "$as_me:$LINENO: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. # Extract the first word of "catdvi", so it can be a program name with args.
  6587. set dummy catdvi; ac_word=$2
  6588. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6589. $as_echo_n "checking for $ac_word... " >&6; }
  6590. if test "${ac_cv_path_CATDVI+set}" = set; then
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. case $CATDVI in
  6594. [\\/]* | ?:[\\/]*)
  6595. ac_cv_path_CATDVI="$CATDVI" # Let the user override the test with a path.
  6596. ;;
  6597. *)
  6598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6599. for as_dir in $PATH
  6600. do
  6601. IFS=$as_save_IFS
  6602. test -z "$as_dir" && as_dir=.
  6603. for ac_exec_ext in '' $ac_executable_extensions; do
  6604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6605. ac_cv_path_CATDVI="$as_dir/$ac_word$ac_exec_ext"
  6606. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6607. break 2
  6608. fi
  6609. done
  6610. done
  6611. IFS=$as_save_IFS
  6612. test -z "$ac_cv_path_CATDVI" && ac_cv_path_CATDVI=":"
  6613. ;;
  6614. esac
  6615. fi
  6616. CATDVI=$ac_cv_path_CATDVI
  6617. if test -n "$CATDVI"; then
  6618. { $as_echo "$as_me:$LINENO: result: $CATDVI" >&5
  6619. $as_echo "$CATDVI" >&6; }
  6620. else
  6621. { $as_echo "$as_me:$LINENO: result: no" >&5
  6622. $as_echo "no" >&6; }
  6623. fi
  6624. # Extract the first word of "kpsewhich", so it can be a program name with args.
  6625. set dummy kpsewhich; ac_word=$2
  6626. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6627. $as_echo_n "checking for $ac_word... " >&6; }
  6628. if test "${ac_cv_path_KPATHSEA+set}" = set; then
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. case $KPATHSEA in
  6632. [\\/]* | ?:[\\/]*)
  6633. ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
  6634. ;;
  6635. *)
  6636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6637. for as_dir in $PATH
  6638. do
  6639. IFS=$as_save_IFS
  6640. test -z "$as_dir" && as_dir=.
  6641. for ac_exec_ext in '' $ac_executable_extensions; do
  6642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6643. ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
  6644. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6645. break 2
  6646. fi
  6647. done
  6648. done
  6649. IFS=$as_save_IFS
  6650. test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
  6651. ;;
  6652. esac
  6653. fi
  6654. KPATHSEA=$ac_cv_path_KPATHSEA
  6655. if test -n "$KPATHSEA"; then
  6656. { $as_echo "$as_me:$LINENO: result: $KPATHSEA" >&5
  6657. $as_echo "$KPATHSEA" >&6; }
  6658. else
  6659. { $as_echo "$as_me:$LINENO: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. # Extract the first word of "xmllint", so it can be a program name with args.
  6663. set dummy xmllint; ac_word=$2
  6664. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6665. $as_echo_n "checking for $ac_word... " >&6; }
  6666. if test "${ac_cv_path_XMLLINT+set}" = set; then
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. case $XMLLINT in
  6670. [\\/]* | ?:[\\/]*)
  6671. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  6672. ;;
  6673. *)
  6674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6675. for as_dir in $PATH
  6676. do
  6677. IFS=$as_save_IFS
  6678. test -z "$as_dir" && as_dir=.
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6681. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  6682. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  6689. ;;
  6690. esac
  6691. fi
  6692. XMLLINT=$ac_cv_path_XMLLINT
  6693. if test -n "$XMLLINT"; then
  6694. { $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
  6695. $as_echo "$XMLLINT" >&6; }
  6696. else
  6697. { $as_echo "$as_me:$LINENO: result: no" >&5
  6698. $as_echo "no" >&6; }
  6699. fi
  6700. # Extract the first word of "xmlstarlet", so it can be a program name with args.
  6701. set dummy xmlstarlet; ac_word=$2
  6702. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6703. $as_echo_n "checking for $ac_word... " >&6; }
  6704. if test "${ac_cv_path_XMLSTARLET+set}" = set; then
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. case $XMLSTARLET in
  6708. [\\/]* | ?:[\\/]*)
  6709. ac_cv_path_XMLSTARLET="$XMLSTARLET" # Let the user override the test with a path.
  6710. ;;
  6711. *)
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. test -z "$as_dir" && as_dir=.
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6719. ac_cv_path_XMLSTARLET="$as_dir/$ac_word$ac_exec_ext"
  6720. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. test -z "$ac_cv_path_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
  6727. ;;
  6728. esac
  6729. fi
  6730. XMLSTARLET=$ac_cv_path_XMLSTARLET
  6731. if test -n "$XMLSTARLET"; then
  6732. { $as_echo "$as_me:$LINENO: result: $XMLSTARLET" >&5
  6733. $as_echo "$XMLSTARLET" >&6; }
  6734. else
  6735. { $as_echo "$as_me:$LINENO: result: no" >&5
  6736. $as_echo "no" >&6; }
  6737. fi
  6738. # Extract the first word of "git", so it can be a program name with args.
  6739. set dummy git; ac_word=$2
  6740. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6741. $as_echo_n "checking for $ac_word... " >&6; }
  6742. if test "${ac_cv_path_GIT+set}" = set; then
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. case $GIT in
  6746. [\\/]* | ?:[\\/]*)
  6747. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  6748. ;;
  6749. *)
  6750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6751. for as_dir in $PATH
  6752. do
  6753. IFS=$as_save_IFS
  6754. test -z "$as_dir" && as_dir=.
  6755. for ac_exec_ext in '' $ac_executable_extensions; do
  6756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6757. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  6758. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6759. break 2
  6760. fi
  6761. done
  6762. done
  6763. IFS=$as_save_IFS
  6764. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT=":"
  6765. ;;
  6766. esac
  6767. fi
  6768. GIT=$ac_cv_path_GIT
  6769. if test -n "$GIT"; then
  6770. { $as_echo "$as_me:$LINENO: result: $GIT" >&5
  6771. $as_echo "$GIT" >&6; }
  6772. else
  6773. { $as_echo "$as_me:$LINENO: result: no" >&5
  6774. $as_echo "no" >&6; }
  6775. fi
  6776. if test "${WGET}" != ":" ; then
  6777. DOWNLOAD=${WGET}
  6778. else if test "${CURL}" != ":" ; then
  6779. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  6780. else
  6781. # Extract the first word of "fetch", so it can be a program name with args.
  6782. set dummy fetch; ac_word=$2
  6783. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6784. $as_echo_n "checking for $ac_word... " >&6; }
  6785. if test "${ac_cv_path_FETCH+set}" = set; then
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. case $FETCH in
  6789. [\\/]* | ?:[\\/]*)
  6790. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  6791. ;;
  6792. *)
  6793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6794. for as_dir in $PATH
  6795. do
  6796. IFS=$as_save_IFS
  6797. test -z "$as_dir" && as_dir=.
  6798. for ac_exec_ext in '' $ac_executable_extensions; do
  6799. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6800. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  6801. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6802. break 2
  6803. fi
  6804. done
  6805. done
  6806. IFS=$as_save_IFS
  6807. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  6808. ;;
  6809. esac
  6810. fi
  6811. FETCH=$ac_cv_path_FETCH
  6812. if test -n "$FETCH"; then
  6813. { $as_echo "$as_me:$LINENO: result: $FETCH" >&5
  6814. $as_echo "$FETCH" >&6; }
  6815. else
  6816. { $as_echo "$as_me:$LINENO: result: no" >&5
  6817. $as_echo "no" >&6; }
  6818. fi
  6819. DOWNLOAD=${FETCH}
  6820. fi
  6821. fi
  6822. { $as_echo "$as_me:$LINENO: checking for bison that supports parse-param" >&5
  6823. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  6824. if test "${ac_cv_path_BISON2+set}" = set; then
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. if test "x$BISON" != "x:" ; then
  6828. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  6829. # Use mktemp if possible; otherwise fall back on mkdir,
  6830. # with $RANDOM to make collisions less likely.
  6831. : ${TMPDIR=/tmp}
  6832. {
  6833. tmp=`
  6834. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  6835. ` &&
  6836. test -n "$tmp" && test -d "$tmp"
  6837. } || {
  6838. tmp=$TMPDIR/foo$$-$RANDOM
  6839. (umask 077 && mkdir "$tmp")
  6840. } || exit $?
  6841. cat >$tmp/test.y <<__EOL__
  6842. %parse-param {struct parse_io *parseio}
  6843. %%
  6844. file : { \$\$ = parseio->pval = 1; }
  6845. ;
  6846. %%
  6847. __EOL__
  6848. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  6849. if test -e "${tmp}/test.tab.c"; then
  6850. ac_cv_path_BISON2=${BISON}
  6851. fi
  6852. rm -rf ${tmp}
  6853. fi
  6854. fi
  6855. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_BISON2" >&5
  6856. $as_echo "$ac_cv_path_BISON2" >&6; }
  6857. if test "x${ac_cv_path_BISON2}" = "x" ; then
  6858. BISON=:
  6859. PBX_BISON=0
  6860. else
  6861. PBX_BISON=1
  6862. fi
  6863. if test "x${FLEX}" = "x:" ; then
  6864. PBX_FLEX=0
  6865. else
  6866. PBX_FLEX=1
  6867. fi
  6868. if test -n "$ac_tool_prefix"; then
  6869. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  6870. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  6871. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6872. $as_echo_n "checking for $ac_word... " >&6; }
  6873. if test "${ac_cv_prog_SOXMIX+set}" = set; then
  6874. $as_echo_n "(cached) " >&6
  6875. else
  6876. if test -n "$SOXMIX"; then
  6877. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  6878. else
  6879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6880. for as_dir in $PATH
  6881. do
  6882. IFS=$as_save_IFS
  6883. test -z "$as_dir" && as_dir=.
  6884. for ac_exec_ext in '' $ac_executable_extensions; do
  6885. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6886. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  6887. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6888. break 2
  6889. fi
  6890. done
  6891. done
  6892. IFS=$as_save_IFS
  6893. fi
  6894. fi
  6895. SOXMIX=$ac_cv_prog_SOXMIX
  6896. if test -n "$SOXMIX"; then
  6897. { $as_echo "$as_me:$LINENO: result: $SOXMIX" >&5
  6898. $as_echo "$SOXMIX" >&6; }
  6899. else
  6900. { $as_echo "$as_me:$LINENO: result: no" >&5
  6901. $as_echo "no" >&6; }
  6902. fi
  6903. fi
  6904. if test -z "$ac_cv_prog_SOXMIX"; then
  6905. ac_ct_SOXMIX=$SOXMIX
  6906. # Extract the first word of "soxmix", so it can be a program name with args.
  6907. set dummy soxmix; ac_word=$2
  6908. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6909. $as_echo_n "checking for $ac_word... " >&6; }
  6910. if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
  6911. $as_echo_n "(cached) " >&6
  6912. else
  6913. if test -n "$ac_ct_SOXMIX"; then
  6914. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  6915. else
  6916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6917. for as_dir in $PATH
  6918. do
  6919. IFS=$as_save_IFS
  6920. test -z "$as_dir" && as_dir=.
  6921. for ac_exec_ext in '' $ac_executable_extensions; do
  6922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6923. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  6924. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6925. break 2
  6926. fi
  6927. done
  6928. done
  6929. IFS=$as_save_IFS
  6930. fi
  6931. fi
  6932. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  6933. if test -n "$ac_ct_SOXMIX"; then
  6934. { $as_echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
  6935. $as_echo "$ac_ct_SOXMIX" >&6; }
  6936. else
  6937. { $as_echo "$as_me:$LINENO: result: no" >&5
  6938. $as_echo "no" >&6; }
  6939. fi
  6940. if test "x$ac_ct_SOXMIX" = x; then
  6941. SOXMIX=":"
  6942. else
  6943. case $cross_compiling:$ac_tool_warned in
  6944. yes:)
  6945. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6946. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6947. ac_tool_warned=yes ;;
  6948. esac
  6949. SOXMIX=$ac_ct_SOXMIX
  6950. fi
  6951. else
  6952. SOXMIX="$ac_cv_prog_SOXMIX"
  6953. fi
  6954. if test "${SOXMIX}" != ":" ; then
  6955. cat >>confdefs.h <<\_ACEOF
  6956. #define HAVE_SOXMIX 1
  6957. _ACEOF
  6958. fi
  6959. for ac_prog in md5 md5sum gmd5sum digest
  6960. do
  6961. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6962. set dummy $ac_prog; ac_word=$2
  6963. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6964. $as_echo_n "checking for $ac_word... " >&6; }
  6965. if test "${ac_cv_prog_MD5+set}" = set; then
  6966. $as_echo_n "(cached) " >&6
  6967. else
  6968. if test -n "$MD5"; then
  6969. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  6970. else
  6971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6972. for as_dir in $PATH
  6973. do
  6974. IFS=$as_save_IFS
  6975. test -z "$as_dir" && as_dir=.
  6976. for ac_exec_ext in '' $ac_executable_extensions; do
  6977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6978. ac_cv_prog_MD5="$ac_prog"
  6979. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6980. break 2
  6981. fi
  6982. done
  6983. done
  6984. IFS=$as_save_IFS
  6985. fi
  6986. fi
  6987. MD5=$ac_cv_prog_MD5
  6988. if test -n "$MD5"; then
  6989. { $as_echo "$as_me:$LINENO: result: $MD5" >&5
  6990. $as_echo "$MD5" >&6; }
  6991. else
  6992. { $as_echo "$as_me:$LINENO: result: no" >&5
  6993. $as_echo "no" >&6; }
  6994. fi
  6995. test -n "$MD5" && break
  6996. done
  6997. if test "${MD5}" = "digest" ; then
  6998. MD5="${MD5} -a md5"
  6999. fi
  7000. ac_ext=c
  7001. ac_cpp='$CPP $CPPFLAGS'
  7002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7005. acx_pthread_ok=no
  7006. # We used to check for pthread.h first, but this fails if pthread.h
  7007. # requires special compiler flags (e.g. on True64 or Sequent).
  7008. # It gets checked for in the link test anyway.
  7009. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7010. # etcetera environment variables, and if threads linking works using
  7011. # them:
  7012. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  7013. save_CFLAGS="$CFLAGS"
  7014. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7015. save_LIBS="$LIBS"
  7016. LIBS="$PTHREAD_LIBS $LIBS"
  7017. { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  7018. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  7019. cat >conftest.$ac_ext <<_ACEOF
  7020. /* confdefs.h. */
  7021. _ACEOF
  7022. cat confdefs.h >>conftest.$ac_ext
  7023. cat >>conftest.$ac_ext <<_ACEOF
  7024. /* end confdefs.h. */
  7025. /* Override any GCC internal prototype to avoid an error.
  7026. Use char because int might match the return type of a GCC
  7027. builtin and then its argument prototype would still apply. */
  7028. #ifdef __cplusplus
  7029. extern "C"
  7030. #endif
  7031. char pthread_join ();
  7032. int
  7033. main ()
  7034. {
  7035. return pthread_join ();
  7036. ;
  7037. return 0;
  7038. }
  7039. _ACEOF
  7040. rm -f conftest.$ac_objext conftest$ac_exeext
  7041. if { (ac_try="$ac_link"
  7042. case "(($ac_try" in
  7043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7044. *) ac_try_echo=$ac_try;;
  7045. esac
  7046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7047. $as_echo "$ac_try_echo") >&5
  7048. (eval "$ac_link") 2>conftest.er1
  7049. ac_status=$?
  7050. grep -v '^ *+' conftest.er1 >conftest.err
  7051. rm -f conftest.er1
  7052. cat conftest.err >&5
  7053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7054. (exit $ac_status); } && {
  7055. test -z "$ac_c_werror_flag" ||
  7056. test ! -s conftest.err
  7057. } && test -s conftest$ac_exeext && {
  7058. test "$cross_compiling" = yes ||
  7059. $as_test_x conftest$ac_exeext
  7060. }; then
  7061. acx_pthread_ok=yes
  7062. else
  7063. $as_echo "$as_me: failed program was:" >&5
  7064. sed 's/^/| /' conftest.$ac_ext >&5
  7065. fi
  7066. rm -rf conftest.dSYM
  7067. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7068. conftest$ac_exeext conftest.$ac_ext
  7069. { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  7070. $as_echo "$acx_pthread_ok" >&6; }
  7071. if test x"$acx_pthread_ok" = xno; then
  7072. PTHREAD_LIBS=""
  7073. PTHREAD_CFLAGS=""
  7074. fi
  7075. LIBS="$save_LIBS"
  7076. CFLAGS="$save_CFLAGS"
  7077. fi
  7078. # We must check for the threads library under a number of different
  7079. # names; the ordering is very important because some systems
  7080. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7081. # libraries is broken (non-POSIX).
  7082. # Create a list of thread flags to try. Items starting with a "-" are
  7083. # C compiler flags, and other items are library names, except for "none"
  7084. # which indicates that we try without any flags at all, and "pthread-config"
  7085. # which is a program returning the flags for the Pth emulation library.
  7086. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7087. # The ordering *is* (sometimes) important. Some notes on the
  7088. # individual items follow:
  7089. # pthreads: AIX (must check this before -lpthread)
  7090. # none: in case threads are in libc; should be tried before -Kthread and
  7091. # other compiler flags to prevent continual compiler warnings
  7092. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7093. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7094. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7095. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7096. # -pthreads: Solaris/gcc
  7097. # -mthreads: Mingw32/gcc, Lynx/gcc
  7098. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7099. # doesn't hurt to check since this sometimes defines pthreads too;
  7100. # also defines -D_REENTRANT)
  7101. # ... -mt is also the pthreads flag for HP/aCC
  7102. # pthread: Linux, etcetera
  7103. # --thread-safe: KAI C++
  7104. # pthread-config: use pthread-config program (for GNU Pth library)
  7105. case "${host_cpu}-${host_os}" in
  7106. *solaris*)
  7107. # On Solaris (at least, for some versions), libc contains stubbed
  7108. # (non-functional) versions of the pthreads routines, so link-based
  7109. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  7110. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  7111. # a function called by this macro, so we could check for that, but
  7112. # who knows whether they'll stub that too in a future libc.) So,
  7113. # we'll just look for -pthreads and -lpthread first:
  7114. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  7115. ;;
  7116. esac
  7117. if test x"$acx_pthread_ok" = xno; then
  7118. for flag in $acx_pthread_flags; do
  7119. case $flag in
  7120. none)
  7121. { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  7122. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7123. ;;
  7124. -*)
  7125. { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  7126. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7127. PTHREAD_CFLAGS="$flag"
  7128. ;;
  7129. pthread-config)
  7130. # Extract the first word of "pthread-config", so it can be a program name with args.
  7131. set dummy pthread-config; ac_word=$2
  7132. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7133. $as_echo_n "checking for $ac_word... " >&6; }
  7134. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  7135. $as_echo_n "(cached) " >&6
  7136. else
  7137. if test -n "$acx_pthread_config"; then
  7138. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7139. else
  7140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7141. for as_dir in $PATH
  7142. do
  7143. IFS=$as_save_IFS
  7144. test -z "$as_dir" && as_dir=.
  7145. for ac_exec_ext in '' $ac_executable_extensions; do
  7146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7147. ac_cv_prog_acx_pthread_config="yes"
  7148. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7149. break 2
  7150. fi
  7151. done
  7152. done
  7153. IFS=$as_save_IFS
  7154. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7155. fi
  7156. fi
  7157. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7158. if test -n "$acx_pthread_config"; then
  7159. { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  7160. $as_echo "$acx_pthread_config" >&6; }
  7161. else
  7162. { $as_echo "$as_me:$LINENO: result: no" >&5
  7163. $as_echo "no" >&6; }
  7164. fi
  7165. if test x"$acx_pthread_config" = xno; then continue; fi
  7166. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7167. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7168. ;;
  7169. *)
  7170. { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  7171. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7172. PTHREAD_LIBS="-l$flag"
  7173. ;;
  7174. esac
  7175. save_LIBS="$LIBS"
  7176. save_CFLAGS="$CFLAGS"
  7177. LIBS="$PTHREAD_LIBS $LIBS"
  7178. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7179. # Check for various functions. We must include pthread.h,
  7180. # since some functions may be macros. (On the Sequent, we
  7181. # need a special flag -Kthread to make this header compile.)
  7182. # We check for pthread_join because it is in -lpthread on IRIX
  7183. # while pthread_create is in libc. We check for pthread_attr_init
  7184. # due to DEC craziness with -lpthreads. We check for
  7185. # pthread_cleanup_push because it is one of the few pthread
  7186. # functions on Solaris that doesn't have a non-functional libc stub.
  7187. # We try pthread_create on general principles.
  7188. cat >conftest.$ac_ext <<_ACEOF
  7189. /* confdefs.h. */
  7190. _ACEOF
  7191. cat confdefs.h >>conftest.$ac_ext
  7192. cat >>conftest.$ac_ext <<_ACEOF
  7193. /* end confdefs.h. */
  7194. #include <pthread.h>
  7195. int
  7196. main ()
  7197. {
  7198. pthread_t th; pthread_join(th, 0);
  7199. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7200. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7201. ;
  7202. return 0;
  7203. }
  7204. _ACEOF
  7205. rm -f conftest.$ac_objext conftest$ac_exeext
  7206. if { (ac_try="$ac_link"
  7207. case "(($ac_try" in
  7208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7209. *) ac_try_echo=$ac_try;;
  7210. esac
  7211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7212. $as_echo "$ac_try_echo") >&5
  7213. (eval "$ac_link") 2>conftest.er1
  7214. ac_status=$?
  7215. grep -v '^ *+' conftest.er1 >conftest.err
  7216. rm -f conftest.er1
  7217. cat conftest.err >&5
  7218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7219. (exit $ac_status); } && {
  7220. test -z "$ac_c_werror_flag" ||
  7221. test ! -s conftest.err
  7222. } && test -s conftest$ac_exeext && {
  7223. test "$cross_compiling" = yes ||
  7224. $as_test_x conftest$ac_exeext
  7225. }; then
  7226. acx_pthread_ok=yes
  7227. else
  7228. $as_echo "$as_me: failed program was:" >&5
  7229. sed 's/^/| /' conftest.$ac_ext >&5
  7230. fi
  7231. rm -rf conftest.dSYM
  7232. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7233. conftest$ac_exeext conftest.$ac_ext
  7234. LIBS="$save_LIBS"
  7235. CFLAGS="$save_CFLAGS"
  7236. { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  7237. $as_echo "$acx_pthread_ok" >&6; }
  7238. if test "x$acx_pthread_ok" = xyes; then
  7239. break;
  7240. fi
  7241. PTHREAD_LIBS=""
  7242. PTHREAD_CFLAGS=""
  7243. done
  7244. fi
  7245. # Various other checks:
  7246. if test "x$acx_pthread_ok" = xyes; then
  7247. save_LIBS="$LIBS"
  7248. LIBS="$PTHREAD_LIBS $LIBS"
  7249. save_CFLAGS="$CFLAGS"
  7250. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7251. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7252. { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  7253. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7254. attr_name=unknown
  7255. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7256. cat >conftest.$ac_ext <<_ACEOF
  7257. /* confdefs.h. */
  7258. _ACEOF
  7259. cat confdefs.h >>conftest.$ac_ext
  7260. cat >>conftest.$ac_ext <<_ACEOF
  7261. /* end confdefs.h. */
  7262. #include <pthread.h>
  7263. int
  7264. main ()
  7265. {
  7266. int attr=$attr; return attr;
  7267. ;
  7268. return 0;
  7269. }
  7270. _ACEOF
  7271. rm -f conftest.$ac_objext conftest$ac_exeext
  7272. if { (ac_try="$ac_link"
  7273. case "(($ac_try" in
  7274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7275. *) ac_try_echo=$ac_try;;
  7276. esac
  7277. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7278. $as_echo "$ac_try_echo") >&5
  7279. (eval "$ac_link") 2>conftest.er1
  7280. ac_status=$?
  7281. grep -v '^ *+' conftest.er1 >conftest.err
  7282. rm -f conftest.er1
  7283. cat conftest.err >&5
  7284. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7285. (exit $ac_status); } && {
  7286. test -z "$ac_c_werror_flag" ||
  7287. test ! -s conftest.err
  7288. } && test -s conftest$ac_exeext && {
  7289. test "$cross_compiling" = yes ||
  7290. $as_test_x conftest$ac_exeext
  7291. }; then
  7292. attr_name=$attr; break
  7293. else
  7294. $as_echo "$as_me: failed program was:" >&5
  7295. sed 's/^/| /' conftest.$ac_ext >&5
  7296. fi
  7297. rm -rf conftest.dSYM
  7298. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7299. conftest$ac_exeext conftest.$ac_ext
  7300. done
  7301. { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
  7302. $as_echo "$attr_name" >&6; }
  7303. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  7304. cat >>confdefs.h <<_ACEOF
  7305. #define PTHREAD_CREATE_JOINABLE $attr_name
  7306. _ACEOF
  7307. fi
  7308. { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  7309. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  7310. flag=no
  7311. case "${host_cpu}-${host_os}" in
  7312. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  7313. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  7314. esac
  7315. { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
  7316. $as_echo "${flag}" >&6; }
  7317. if test "x$flag" != xno; then
  7318. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  7319. fi
  7320. LIBS="$save_LIBS"
  7321. CFLAGS="$save_CFLAGS"
  7322. # More AIX lossage: must compile with xlc_r or cc_r
  7323. if test x"$GCC" != xyes; then
  7324. for ac_prog in xlc_r cc_r
  7325. do
  7326. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7327. set dummy $ac_prog; ac_word=$2
  7328. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7329. $as_echo_n "checking for $ac_word... " >&6; }
  7330. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  7331. $as_echo_n "(cached) " >&6
  7332. else
  7333. if test -n "$PTHREAD_CC"; then
  7334. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7335. else
  7336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7337. for as_dir in $PATH
  7338. do
  7339. IFS=$as_save_IFS
  7340. test -z "$as_dir" && as_dir=.
  7341. for ac_exec_ext in '' $ac_executable_extensions; do
  7342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7343. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7344. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7345. break 2
  7346. fi
  7347. done
  7348. done
  7349. IFS=$as_save_IFS
  7350. fi
  7351. fi
  7352. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7353. if test -n "$PTHREAD_CC"; then
  7354. { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  7355. $as_echo "$PTHREAD_CC" >&6; }
  7356. else
  7357. { $as_echo "$as_me:$LINENO: result: no" >&5
  7358. $as_echo "no" >&6; }
  7359. fi
  7360. test -n "$PTHREAD_CC" && break
  7361. done
  7362. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  7363. else
  7364. PTHREAD_CC=$CC
  7365. fi
  7366. else
  7367. PTHREAD_CC="$CC"
  7368. fi
  7369. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7370. if test x"$acx_pthread_ok" = xyes; then
  7371. cat >>confdefs.h <<\_ACEOF
  7372. #define HAVE_PTHREAD 1
  7373. _ACEOF
  7374. :
  7375. else
  7376. acx_pthread_ok=no
  7377. fi
  7378. ac_ext=c
  7379. ac_cpp='$CPP $CPPFLAGS'
  7380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7383. ac_ext=c
  7384. ac_cpp='$CPP $CPPFLAGS'
  7385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7388. # Check whether --enable-dev-mode was given.
  7389. if test "${enable_dev_mode+set}" = set; then
  7390. enableval=$enable_dev_mode; case "${enableval}" in
  7391. y|ye|yes) AST_DEVMODE=yes ;;
  7392. n|no) AST_DEVMODE=no ;;
  7393. noisy)
  7394. AST_DEVMODE=yes
  7395. NOISY_BUILD=yes
  7396. ;;
  7397. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
  7398. $as_echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
  7399. { (exit 1); exit 1; }; } ;;
  7400. esac
  7401. fi
  7402. AST_CODE_COVERAGE=no
  7403. # Check whether --enable-coverage was given.
  7404. if test "${enable_coverage+set}" = set; then
  7405. enableval=$enable_coverage; case "${enableval}" in
  7406. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  7407. n|no) AST_CODE_COVERAGE=no ;;
  7408. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-coverage" >&5
  7409. $as_echo "$as_me: error: bad value ${enableval} for --enable-coverage" >&2;}
  7410. { (exit 1); exit 1; }; } ;;
  7411. esac
  7412. fi
  7413. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  7414. # various packages.
  7415. # $1 is the prefix for the variables in makeopts and autoconfig.h
  7416. # $2 is the short comment, $4 is the long comment
  7417. # $3 is the name used in --with- or --without- flags for configure.
  7418. #
  7419. # Package option names should be in alphabetical order
  7420. # by the --with option name (the third field),
  7421. # to make things easier for the users.
  7422. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  7423. ALSA_OPTION="asound"
  7424. PBX_ALSA=0
  7425. # Check whether --with-asound was given.
  7426. if test "${with_asound+set}" = set; then
  7427. withval=$with_asound;
  7428. case ${withval} in
  7429. n|no)
  7430. USE_ALSA=no
  7431. # -1 is a magic value used by menuselect to know that the package
  7432. # was disabled, other than 'not found'
  7433. PBX_ALSA=-1
  7434. ;;
  7435. y|ye|yes)
  7436. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7437. ;;
  7438. *)
  7439. ALSA_DIR="${withval}"
  7440. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7441. ;;
  7442. esac
  7443. fi
  7444. BFD_DESCRIP="Debug symbol decoding"
  7445. BFD_OPTION="bfd"
  7446. PBX_BFD=0
  7447. # Check whether --with-bfd was given.
  7448. if test "${with_bfd+set}" = set; then
  7449. withval=$with_bfd;
  7450. case ${withval} in
  7451. n|no)
  7452. USE_BFD=no
  7453. # -1 is a magic value used by menuselect to know that the package
  7454. # was disabled, other than 'not found'
  7455. PBX_BFD=-1
  7456. ;;
  7457. y|ye|yes)
  7458. ac_mandatory_list="${ac_mandatory_list} BFD"
  7459. ;;
  7460. *)
  7461. BFD_DIR="${withval}"
  7462. ac_mandatory_list="${ac_mandatory_list} BFD"
  7463. ;;
  7464. esac
  7465. fi
  7466. # BKTR is used for backtrace support on platforms that do not
  7467. # have it natively.
  7468. BKTR_DESCRIP="Stack Backtrace"
  7469. BKTR_OPTION="execinfo"
  7470. PBX_BKTR=0
  7471. # Check whether --with-execinfo was given.
  7472. if test "${with_execinfo+set}" = set; then
  7473. withval=$with_execinfo;
  7474. case ${withval} in
  7475. n|no)
  7476. USE_BKTR=no
  7477. # -1 is a magic value used by menuselect to know that the package
  7478. # was disabled, other than 'not found'
  7479. PBX_BKTR=-1
  7480. ;;
  7481. y|ye|yes)
  7482. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7483. ;;
  7484. *)
  7485. BKTR_DIR="${withval}"
  7486. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7487. ;;
  7488. esac
  7489. fi
  7490. BLUETOOTH_DESCRIP="Bluetooth"
  7491. BLUETOOTH_OPTION="bluetooth"
  7492. PBX_BLUETOOTH=0
  7493. # Check whether --with-bluetooth was given.
  7494. if test "${with_bluetooth+set}" = set; then
  7495. withval=$with_bluetooth;
  7496. case ${withval} in
  7497. n|no)
  7498. USE_BLUETOOTH=no
  7499. # -1 is a magic value used by menuselect to know that the package
  7500. # was disabled, other than 'not found'
  7501. PBX_BLUETOOTH=-1
  7502. ;;
  7503. y|ye|yes)
  7504. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7505. ;;
  7506. *)
  7507. BLUETOOTH_DIR="${withval}"
  7508. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7509. ;;
  7510. esac
  7511. fi
  7512. CAP_DESCRIP="POSIX 1.e capabilities"
  7513. CAP_OPTION="cap"
  7514. PBX_CAP=0
  7515. # Check whether --with-cap was given.
  7516. if test "${with_cap+set}" = set; then
  7517. withval=$with_cap;
  7518. case ${withval} in
  7519. n|no)
  7520. USE_CAP=no
  7521. # -1 is a magic value used by menuselect to know that the package
  7522. # was disabled, other than 'not found'
  7523. PBX_CAP=-1
  7524. ;;
  7525. y|ye|yes)
  7526. ac_mandatory_list="${ac_mandatory_list} CAP"
  7527. ;;
  7528. *)
  7529. CAP_DIR="${withval}"
  7530. ac_mandatory_list="${ac_mandatory_list} CAP"
  7531. ;;
  7532. esac
  7533. fi
  7534. CURSES_DESCRIP="curses"
  7535. CURSES_OPTION="curses"
  7536. PBX_CURSES=0
  7537. # Check whether --with-curses was given.
  7538. if test "${with_curses+set}" = set; then
  7539. withval=$with_curses;
  7540. case ${withval} in
  7541. n|no)
  7542. USE_CURSES=no
  7543. # -1 is a magic value used by menuselect to know that the package
  7544. # was disabled, other than 'not found'
  7545. PBX_CURSES=-1
  7546. ;;
  7547. y|ye|yes)
  7548. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7549. ;;
  7550. *)
  7551. CURSES_DIR="${withval}"
  7552. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7553. ;;
  7554. esac
  7555. fi
  7556. CRYPTO_DESCRIP="OpenSSL Cryptography"
  7557. CRYPTO_OPTION="crypto"
  7558. PBX_CRYPTO=0
  7559. # Check whether --with-crypto was given.
  7560. if test "${with_crypto+set}" = set; then
  7561. withval=$with_crypto;
  7562. case ${withval} in
  7563. n|no)
  7564. USE_CRYPTO=no
  7565. # -1 is a magic value used by menuselect to know that the package
  7566. # was disabled, other than 'not found'
  7567. PBX_CRYPTO=-1
  7568. ;;
  7569. y|ye|yes)
  7570. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7571. ;;
  7572. *)
  7573. CRYPTO_DIR="${withval}"
  7574. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7575. ;;
  7576. esac
  7577. fi
  7578. DAHDI_DESCRIP="DAHDI"
  7579. DAHDI_OPTION="dahdi"
  7580. PBX_DAHDI=0
  7581. # Check whether --with-dahdi was given.
  7582. if test "${with_dahdi+set}" = set; then
  7583. withval=$with_dahdi;
  7584. case ${withval} in
  7585. n|no)
  7586. USE_DAHDI=no
  7587. # -1 is a magic value used by menuselect to know that the package
  7588. # was disabled, other than 'not found'
  7589. PBX_DAHDI=-1
  7590. ;;
  7591. y|ye|yes)
  7592. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7593. ;;
  7594. *)
  7595. DAHDI_DIR="${withval}"
  7596. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7597. ;;
  7598. esac
  7599. fi
  7600. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  7601. FFMPEG_OPTION="avcodec"
  7602. PBX_FFMPEG=0
  7603. # Check whether --with-avcodec was given.
  7604. if test "${with_avcodec+set}" = set; then
  7605. withval=$with_avcodec;
  7606. case ${withval} in
  7607. n|no)
  7608. USE_FFMPEG=no
  7609. # -1 is a magic value used by menuselect to know that the package
  7610. # was disabled, other than 'not found'
  7611. PBX_FFMPEG=-1
  7612. ;;
  7613. y|ye|yes)
  7614. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7615. ;;
  7616. *)
  7617. FFMPEG_DIR="${withval}"
  7618. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7619. ;;
  7620. esac
  7621. fi
  7622. GSM_DESCRIP="External GSM"
  7623. GSM_OPTION="gsm"
  7624. PBX_GSM=0
  7625. # Check whether --with-gsm was given.
  7626. if test "${with_gsm+set}" = set; then
  7627. withval=$with_gsm;
  7628. case ${withval} in
  7629. n|no)
  7630. USE_GSM=no
  7631. # -1 is a magic value used by menuselect to know that the package
  7632. # was disabled, other than 'not found'
  7633. PBX_GSM=-1
  7634. ;;
  7635. y|ye|yes)
  7636. ac_mandatory_list="${ac_mandatory_list} GSM"
  7637. ;;
  7638. *)
  7639. GSM_DIR="${withval}"
  7640. ac_mandatory_list="${ac_mandatory_list} GSM"
  7641. ;;
  7642. esac
  7643. fi
  7644. GTK2_DESCRIP="gtk2"
  7645. GTK2_OPTION="gtk2"
  7646. PBX_GTK2=0
  7647. # Check whether --with-gtk2 was given.
  7648. if test "${with_gtk2+set}" = set; then
  7649. withval=$with_gtk2;
  7650. case ${withval} in
  7651. n|no)
  7652. USE_GTK2=no
  7653. # -1 is a magic value used by menuselect to know that the package
  7654. # was disabled, other than 'not found'
  7655. PBX_GTK2=-1
  7656. ;;
  7657. y|ye|yes)
  7658. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7659. ;;
  7660. *)
  7661. GTK2_DIR="${withval}"
  7662. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7663. ;;
  7664. esac
  7665. fi
  7666. GMIME_DESCRIP="GMime"
  7667. GMIME_OPTION="gmime"
  7668. PBX_GMIME=0
  7669. # Check whether --with-gmime was given.
  7670. if test "${with_gmime+set}" = set; then
  7671. withval=$with_gmime;
  7672. case ${withval} in
  7673. n|no)
  7674. USE_GMIME=no
  7675. # -1 is a magic value used by menuselect to know that the package
  7676. # was disabled, other than 'not found'
  7677. PBX_GMIME=-1
  7678. ;;
  7679. y|ye|yes)
  7680. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7681. ;;
  7682. *)
  7683. GMIME_DIR="${withval}"
  7684. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7685. ;;
  7686. esac
  7687. fi
  7688. OPENH323_DESCRIP="OpenH323"
  7689. OPENH323_OPTION="h323"
  7690. PBX_OPENH323=0
  7691. # Check whether --with-h323 was given.
  7692. if test "${with_h323+set}" = set; then
  7693. withval=$with_h323;
  7694. case ${withval} in
  7695. n|no)
  7696. USE_OPENH323=no
  7697. # -1 is a magic value used by menuselect to know that the package
  7698. # was disabled, other than 'not found'
  7699. PBX_OPENH323=-1
  7700. ;;
  7701. y|ye|yes)
  7702. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7703. ;;
  7704. *)
  7705. OPENH323_DIR="${withval}"
  7706. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7707. ;;
  7708. esac
  7709. fi
  7710. HOARD_DESCRIP="Hoard Memory Allocator"
  7711. HOARD_OPTION="hoard"
  7712. PBX_HOARD=0
  7713. # Check whether --with-hoard was given.
  7714. if test "${with_hoard+set}" = set; then
  7715. withval=$with_hoard;
  7716. case ${withval} in
  7717. n|no)
  7718. USE_HOARD=no
  7719. # -1 is a magic value used by menuselect to know that the package
  7720. # was disabled, other than 'not found'
  7721. PBX_HOARD=-1
  7722. ;;
  7723. y|ye|yes)
  7724. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7725. ;;
  7726. *)
  7727. HOARD_DIR="${withval}"
  7728. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7729. ;;
  7730. esac
  7731. fi
  7732. ICAL_DESCRIP="iCal"
  7733. ICAL_OPTION="ical"
  7734. PBX_ICAL=0
  7735. # Check whether --with-ical was given.
  7736. if test "${with_ical+set}" = set; then
  7737. withval=$with_ical;
  7738. case ${withval} in
  7739. n|no)
  7740. USE_ICAL=no
  7741. # -1 is a magic value used by menuselect to know that the package
  7742. # was disabled, other than 'not found'
  7743. PBX_ICAL=-1
  7744. ;;
  7745. y|ye|yes)
  7746. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7747. ;;
  7748. *)
  7749. ICAL_DIR="${withval}"
  7750. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7751. ;;
  7752. esac
  7753. fi
  7754. ICONV_DESCRIP="Iconv"
  7755. ICONV_OPTION="iconv"
  7756. PBX_ICONV=0
  7757. # Check whether --with-iconv was given.
  7758. if test "${with_iconv+set}" = set; then
  7759. withval=$with_iconv;
  7760. case ${withval} in
  7761. n|no)
  7762. USE_ICONV=no
  7763. # -1 is a magic value used by menuselect to know that the package
  7764. # was disabled, other than 'not found'
  7765. PBX_ICONV=-1
  7766. ;;
  7767. y|ye|yes)
  7768. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7769. ;;
  7770. *)
  7771. ICONV_DIR="${withval}"
  7772. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7773. ;;
  7774. esac
  7775. fi
  7776. IKSEMEL_DESCRIP="Iksemel Jabber"
  7777. IKSEMEL_OPTION="iksemel"
  7778. PBX_IKSEMEL=0
  7779. # Check whether --with-iksemel was given.
  7780. if test "${with_iksemel+set}" = set; then
  7781. withval=$with_iksemel;
  7782. case ${withval} in
  7783. n|no)
  7784. USE_IKSEMEL=no
  7785. # -1 is a magic value used by menuselect to know that the package
  7786. # was disabled, other than 'not found'
  7787. PBX_IKSEMEL=-1
  7788. ;;
  7789. y|ye|yes)
  7790. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7791. ;;
  7792. *)
  7793. IKSEMEL_DIR="${withval}"
  7794. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7795. ;;
  7796. esac
  7797. fi
  7798. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  7799. IMAP_TK_OPTION="imap"
  7800. PBX_IMAP_TK=0
  7801. # Check whether --with-imap was given.
  7802. if test "${with_imap+set}" = set; then
  7803. withval=$with_imap;
  7804. case ${withval} in
  7805. n|no)
  7806. USE_IMAP_TK=no
  7807. # -1 is a magic value used by menuselect to know that the package
  7808. # was disabled, other than 'not found'
  7809. PBX_IMAP_TK=-1
  7810. ;;
  7811. y|ye|yes)
  7812. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7813. ;;
  7814. *)
  7815. IMAP_TK_DIR="${withval}"
  7816. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7817. ;;
  7818. esac
  7819. fi
  7820. INOTIFY_DESCRIP="inotify support"
  7821. INOTIFY_OPTION="inotify"
  7822. PBX_INOTIFY=0
  7823. # Check whether --with-inotify was given.
  7824. if test "${with_inotify+set}" = set; then
  7825. withval=$with_inotify;
  7826. case ${withval} in
  7827. n|no)
  7828. USE_INOTIFY=no
  7829. # -1 is a magic value used by menuselect to know that the package
  7830. # was disabled, other than 'not found'
  7831. PBX_INOTIFY=-1
  7832. ;;
  7833. y|ye|yes)
  7834. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7835. ;;
  7836. *)
  7837. INOTIFY_DIR="${withval}"
  7838. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7839. ;;
  7840. esac
  7841. fi
  7842. IODBC_DESCRIP="iODBC"
  7843. IODBC_OPTION="iodbc"
  7844. PBX_IODBC=0
  7845. # Check whether --with-iodbc was given.
  7846. if test "${with_iodbc+set}" = set; then
  7847. withval=$with_iodbc;
  7848. case ${withval} in
  7849. n|no)
  7850. USE_IODBC=no
  7851. # -1 is a magic value used by menuselect to know that the package
  7852. # was disabled, other than 'not found'
  7853. PBX_IODBC=-1
  7854. ;;
  7855. y|ye|yes)
  7856. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7857. ;;
  7858. *)
  7859. IODBC_DIR="${withval}"
  7860. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7861. ;;
  7862. esac
  7863. fi
  7864. ISDNNET_DESCRIP="ISDN4Linux"
  7865. ISDNNET_OPTION="isdnnet"
  7866. PBX_ISDNNET=0
  7867. # Check whether --with-isdnnet was given.
  7868. if test "${with_isdnnet+set}" = set; then
  7869. withval=$with_isdnnet;
  7870. case ${withval} in
  7871. n|no)
  7872. USE_ISDNNET=no
  7873. # -1 is a magic value used by menuselect to know that the package
  7874. # was disabled, other than 'not found'
  7875. PBX_ISDNNET=-1
  7876. ;;
  7877. y|ye|yes)
  7878. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7879. ;;
  7880. *)
  7881. ISDNNET_DIR="${withval}"
  7882. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7883. ;;
  7884. esac
  7885. fi
  7886. JACK_DESCRIP="Jack Audio Connection Kit"
  7887. JACK_OPTION="jack"
  7888. PBX_JACK=0
  7889. # Check whether --with-jack was given.
  7890. if test "${with_jack+set}" = set; then
  7891. withval=$with_jack;
  7892. case ${withval} in
  7893. n|no)
  7894. USE_JACK=no
  7895. # -1 is a magic value used by menuselect to know that the package
  7896. # was disabled, other than 'not found'
  7897. PBX_JACK=-1
  7898. ;;
  7899. y|ye|yes)
  7900. ac_mandatory_list="${ac_mandatory_list} JACK"
  7901. ;;
  7902. *)
  7903. JACK_DIR="${withval}"
  7904. ac_mandatory_list="${ac_mandatory_list} JACK"
  7905. ;;
  7906. esac
  7907. fi
  7908. KQUEUE_DESCRIP="kqueue support"
  7909. KQUEUE_OPTION="kqueue"
  7910. PBX_KQUEUE=0
  7911. # Check whether --with-kqueue was given.
  7912. if test "${with_kqueue+set}" = set; then
  7913. withval=$with_kqueue;
  7914. case ${withval} in
  7915. n|no)
  7916. USE_KQUEUE=no
  7917. # -1 is a magic value used by menuselect to know that the package
  7918. # was disabled, other than 'not found'
  7919. PBX_KQUEUE=-1
  7920. ;;
  7921. y|ye|yes)
  7922. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7923. ;;
  7924. *)
  7925. KQUEUE_DIR="${withval}"
  7926. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7927. ;;
  7928. esac
  7929. fi
  7930. LDAP_DESCRIP="OpenLDAP"
  7931. LDAP_OPTION="ldap"
  7932. PBX_LDAP=0
  7933. # Check whether --with-ldap was given.
  7934. if test "${with_ldap+set}" = set; then
  7935. withval=$with_ldap;
  7936. case ${withval} in
  7937. n|no)
  7938. USE_LDAP=no
  7939. # -1 is a magic value used by menuselect to know that the package
  7940. # was disabled, other than 'not found'
  7941. PBX_LDAP=-1
  7942. ;;
  7943. y|ye|yes)
  7944. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7945. ;;
  7946. *)
  7947. LDAP_DIR="${withval}"
  7948. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7949. ;;
  7950. esac
  7951. fi
  7952. # Check whether --with-libcurl was given.
  7953. if test "${with_libcurl+set}" = set; then
  7954. withval=$with_libcurl; _libcurl_with=$withval
  7955. else
  7956. _libcurl_with=yes
  7957. fi
  7958. if test "$_libcurl_with" != "no" ; then
  7959. for ac_prog in gawk mawk nawk awk
  7960. do
  7961. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7962. set dummy $ac_prog; ac_word=$2
  7963. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7964. $as_echo_n "checking for $ac_word... " >&6; }
  7965. if test "${ac_cv_prog_AWK+set}" = set; then
  7966. $as_echo_n "(cached) " >&6
  7967. else
  7968. if test -n "$AWK"; then
  7969. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7970. else
  7971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7972. for as_dir in $PATH
  7973. do
  7974. IFS=$as_save_IFS
  7975. test -z "$as_dir" && as_dir=.
  7976. for ac_exec_ext in '' $ac_executable_extensions; do
  7977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7978. ac_cv_prog_AWK="$ac_prog"
  7979. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7980. break 2
  7981. fi
  7982. done
  7983. done
  7984. IFS=$as_save_IFS
  7985. fi
  7986. fi
  7987. AWK=$ac_cv_prog_AWK
  7988. if test -n "$AWK"; then
  7989. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  7990. $as_echo "$AWK" >&6; }
  7991. else
  7992. { $as_echo "$as_me:$LINENO: result: no" >&5
  7993. $as_echo "no" >&6; }
  7994. fi
  7995. test -n "$AWK" && break
  7996. done
  7997. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  7998. _libcurl_try_link=yes
  7999. if test -d "$_libcurl_with" ; then
  8000. CURL_INCLUDE="-I$withval/include"
  8001. _libcurl_ldflags="-L$withval/lib"
  8002. # Extract the first word of "curl-config", so it can be a program name with args.
  8003. set dummy curl-config; ac_word=$2
  8004. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8005. $as_echo_n "checking for $ac_word... " >&6; }
  8006. if test "${ac_cv_path__libcurl_config+set}" = set; then
  8007. $as_echo_n "(cached) " >&6
  8008. else
  8009. case $_libcurl_config in
  8010. [\\/]* | ?:[\\/]*)
  8011. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8012. ;;
  8013. *)
  8014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8015. for as_dir in "$withval/bin"
  8016. do
  8017. IFS=$as_save_IFS
  8018. test -z "$as_dir" && as_dir=.
  8019. for ac_exec_ext in '' $ac_executable_extensions; do
  8020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8021. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8022. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8023. break 2
  8024. fi
  8025. done
  8026. done
  8027. IFS=$as_save_IFS
  8028. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  8029. ;;
  8030. esac
  8031. fi
  8032. _libcurl_config=$ac_cv_path__libcurl_config
  8033. if test -n "$_libcurl_config"; then
  8034. { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
  8035. $as_echo "$_libcurl_config" >&6; }
  8036. else
  8037. { $as_echo "$as_me:$LINENO: result: no" >&5
  8038. $as_echo "no" >&6; }
  8039. fi
  8040. else
  8041. # Extract the first word of "curl-config", so it can be a program name with args.
  8042. set dummy curl-config; ac_word=$2
  8043. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8044. $as_echo_n "checking for $ac_word... " >&6; }
  8045. if test "${ac_cv_path__libcurl_config+set}" = set; then
  8046. $as_echo_n "(cached) " >&6
  8047. else
  8048. case $_libcurl_config in
  8049. [\\/]* | ?:[\\/]*)
  8050. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8051. ;;
  8052. *)
  8053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8054. for as_dir in $PATH
  8055. do
  8056. IFS=$as_save_IFS
  8057. test -z "$as_dir" && as_dir=.
  8058. for ac_exec_ext in '' $ac_executable_extensions; do
  8059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8060. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8061. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8062. break 2
  8063. fi
  8064. done
  8065. done
  8066. IFS=$as_save_IFS
  8067. ;;
  8068. esac
  8069. fi
  8070. _libcurl_config=$ac_cv_path__libcurl_config
  8071. if test -n "$_libcurl_config"; then
  8072. { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
  8073. $as_echo "$_libcurl_config" >&6; }
  8074. else
  8075. { $as_echo "$as_me:$LINENO: result: no" >&5
  8076. $as_echo "no" >&6; }
  8077. fi
  8078. fi
  8079. if test x$_libcurl_config != "x" ; then
  8080. { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
  8081. $as_echo_n "checking for the version of libcurl... " >&6; }
  8082. if test "${libcurl_cv_lib_curl_version+set}" = set; then
  8083. $as_echo_n "(cached) " >&6
  8084. else
  8085. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  8086. fi
  8087. { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
  8088. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  8089. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  8090. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  8091. if test $_libcurl_wanted -gt 0 ; then
  8092. { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.1" >&5
  8093. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  8094. if test "${libcurl_cv_lib_version_ok+set}" = set; then
  8095. $as_echo_n "(cached) " >&6
  8096. else
  8097. if test $_libcurl_version -ge $_libcurl_wanted ; then
  8098. libcurl_cv_lib_version_ok=yes
  8099. else
  8100. libcurl_cv_lib_version_ok=no
  8101. fi
  8102. fi
  8103. { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
  8104. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  8105. fi
  8106. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  8107. if test x"$CURL_INCLUDE" = "x" ; then
  8108. CURL_INCLUDE=`$_libcurl_config --cflags`
  8109. fi
  8110. if test x"$CURL_LIB" = "x" ; then
  8111. CURL_LIB=`$_libcurl_config --libs`
  8112. # This is so silly, but Apple actually has a bug in their
  8113. # curl-config script. Fixed in Tiger, but there are still
  8114. # lots of Panther installs around.
  8115. case "${host}" in
  8116. powerpc-apple-darwin7*)
  8117. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  8118. ;;
  8119. esac
  8120. fi
  8121. # All curl-config scripts support --feature
  8122. _libcurl_features=`$_libcurl_config --feature`
  8123. # Is it modern enough to have --protocols? (7.12.4)
  8124. if test $_libcurl_version -ge 461828 ; then
  8125. _libcurl_protocols=`$_libcurl_config --protocols`
  8126. fi
  8127. else
  8128. _libcurl_try_link=no
  8129. fi
  8130. unset _libcurl_wanted
  8131. fi
  8132. if test $_libcurl_try_link = yes ; then
  8133. # we didn't find curl-config, so let's see if the user-supplied
  8134. # link line (or failing that, "-lcurl") is enough.
  8135. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  8136. { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
  8137. $as_echo_n "checking whether libcurl is usable... " >&6; }
  8138. if test "${libcurl_cv_lib_curl_usable+set}" = set; then
  8139. $as_echo_n "(cached) " >&6
  8140. else
  8141. _libcurl_save_cppflags=$CPPFLAGS
  8142. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  8143. _libcurl_save_libs=$LIBS
  8144. LIBS="$CURL_LIB $LIBS"
  8145. cat >conftest.$ac_ext <<_ACEOF
  8146. /* confdefs.h. */
  8147. _ACEOF
  8148. cat confdefs.h >>conftest.$ac_ext
  8149. cat >>conftest.$ac_ext <<_ACEOF
  8150. /* end confdefs.h. */
  8151. #include <curl/curl.h>
  8152. int
  8153. main ()
  8154. {
  8155. /* Try and use a few common options to force a failure if we are
  8156. missing symbols or can't link. */
  8157. int x;
  8158. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  8159. x=CURL_ERROR_SIZE;
  8160. x=CURLOPT_WRITEFUNCTION;
  8161. x=CURLOPT_FILE;
  8162. x=CURLOPT_ERRORBUFFER;
  8163. x=CURLOPT_STDERR;
  8164. x=CURLOPT_VERBOSE;
  8165. ;
  8166. return 0;
  8167. }
  8168. _ACEOF
  8169. rm -f conftest.$ac_objext conftest$ac_exeext
  8170. if { (ac_try="$ac_link"
  8171. case "(($ac_try" in
  8172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8173. *) ac_try_echo=$ac_try;;
  8174. esac
  8175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8176. $as_echo "$ac_try_echo") >&5
  8177. (eval "$ac_link") 2>conftest.er1
  8178. ac_status=$?
  8179. grep -v '^ *+' conftest.er1 >conftest.err
  8180. rm -f conftest.er1
  8181. cat conftest.err >&5
  8182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8183. (exit $ac_status); } && {
  8184. test -z "$ac_c_werror_flag" ||
  8185. test ! -s conftest.err
  8186. } && test -s conftest$ac_exeext && {
  8187. test "$cross_compiling" = yes ||
  8188. $as_test_x conftest$ac_exeext
  8189. }; then
  8190. libcurl_cv_lib_curl_usable=yes
  8191. else
  8192. $as_echo "$as_me: failed program was:" >&5
  8193. sed 's/^/| /' conftest.$ac_ext >&5
  8194. libcurl_cv_lib_curl_usable=no
  8195. fi
  8196. rm -rf conftest.dSYM
  8197. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8198. conftest$ac_exeext conftest.$ac_ext
  8199. CPPFLAGS=$_libcurl_save_cppflags
  8200. LIBS=$_libcurl_save_libs
  8201. unset _libcurl_save_cppflags
  8202. unset _libcurl_save_libs
  8203. fi
  8204. { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
  8205. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  8206. if test $libcurl_cv_lib_curl_usable = yes ; then
  8207. # Does curl_free() exist in this version of libcurl?
  8208. # If not, fake it with free()
  8209. _libcurl_save_cppflags=$CPPFLAGS
  8210. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  8211. _libcurl_save_libs=$LIBS
  8212. LIBS="$LIBS $CURL_LIB"
  8213. { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
  8214. $as_echo_n "checking for curl_free... " >&6; }
  8215. if test "${ac_cv_func_curl_free+set}" = set; then
  8216. $as_echo_n "(cached) " >&6
  8217. else
  8218. cat >conftest.$ac_ext <<_ACEOF
  8219. /* confdefs.h. */
  8220. _ACEOF
  8221. cat confdefs.h >>conftest.$ac_ext
  8222. cat >>conftest.$ac_ext <<_ACEOF
  8223. /* end confdefs.h. */
  8224. /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
  8225. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8226. #define curl_free innocuous_curl_free
  8227. /* System header to define __stub macros and hopefully few prototypes,
  8228. which can conflict with char curl_free (); below.
  8229. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8230. <limits.h> exists even on freestanding compilers. */
  8231. #ifdef __STDC__
  8232. # include <limits.h>
  8233. #else
  8234. # include <assert.h>
  8235. #endif
  8236. #undef curl_free
  8237. /* Override any GCC internal prototype to avoid an error.
  8238. Use char because int might match the return type of a GCC
  8239. builtin and then its argument prototype would still apply. */
  8240. #ifdef __cplusplus
  8241. extern "C"
  8242. #endif
  8243. char curl_free ();
  8244. /* The GNU C library defines this for functions which it implements
  8245. to always fail with ENOSYS. Some functions are actually named
  8246. something starting with __ and the normal name is an alias. */
  8247. #if defined __stub_curl_free || defined __stub___curl_free
  8248. choke me
  8249. #endif
  8250. int
  8251. main ()
  8252. {
  8253. return curl_free ();
  8254. ;
  8255. return 0;
  8256. }
  8257. _ACEOF
  8258. rm -f conftest.$ac_objext conftest$ac_exeext
  8259. if { (ac_try="$ac_link"
  8260. case "(($ac_try" in
  8261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8262. *) ac_try_echo=$ac_try;;
  8263. esac
  8264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8265. $as_echo "$ac_try_echo") >&5
  8266. (eval "$ac_link") 2>conftest.er1
  8267. ac_status=$?
  8268. grep -v '^ *+' conftest.er1 >conftest.err
  8269. rm -f conftest.er1
  8270. cat conftest.err >&5
  8271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8272. (exit $ac_status); } && {
  8273. test -z "$ac_c_werror_flag" ||
  8274. test ! -s conftest.err
  8275. } && test -s conftest$ac_exeext && {
  8276. test "$cross_compiling" = yes ||
  8277. $as_test_x conftest$ac_exeext
  8278. }; then
  8279. ac_cv_func_curl_free=yes
  8280. else
  8281. $as_echo "$as_me: failed program was:" >&5
  8282. sed 's/^/| /' conftest.$ac_ext >&5
  8283. ac_cv_func_curl_free=no
  8284. fi
  8285. rm -rf conftest.dSYM
  8286. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8287. conftest$ac_exeext conftest.$ac_ext
  8288. fi
  8289. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
  8290. $as_echo "$ac_cv_func_curl_free" >&6; }
  8291. if test "x$ac_cv_func_curl_free" = x""yes; then
  8292. :
  8293. else
  8294. cat >>confdefs.h <<\_ACEOF
  8295. #define curl_free free
  8296. _ACEOF
  8297. fi
  8298. CPPFLAGS=$_libcurl_save_cppflags
  8299. LIBS=$_libcurl_save_libs
  8300. unset _libcurl_save_cppflags
  8301. unset _libcurl_save_libs
  8302. cat >>confdefs.h <<\_ACEOF
  8303. #define HAVE_CURL 1
  8304. _ACEOF
  8305. PBX_CURL=1
  8306. for _libcurl_feature in $_libcurl_features ; do
  8307. cat >>confdefs.h <<_ACEOF
  8308. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  8309. _ACEOF
  8310. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  8311. done
  8312. if test "x$_libcurl_protocols" = "x" ; then
  8313. # We don't have --protocols, so just assume that all
  8314. # protocols are available
  8315. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  8316. if test x$libcurl_feature_SSL = xyes ; then
  8317. _libcurl_protocols="$_libcurl_protocols HTTPS"
  8318. # FTPS wasn't standards-compliant until version
  8319. # 7.11.0
  8320. if test $_libcurl_version -ge 461568; then
  8321. _libcurl_protocols="$_libcurl_protocols FTPS"
  8322. fi
  8323. fi
  8324. fi
  8325. for _libcurl_protocol in $_libcurl_protocols ; do
  8326. cat >>confdefs.h <<_ACEOF
  8327. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  8328. _ACEOF
  8329. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  8330. done
  8331. else
  8332. unset CURL_LIB
  8333. unset CURL_INCLUDE
  8334. PBX_CURL=0
  8335. fi
  8336. fi
  8337. unset _libcurl_try_link
  8338. unset _libcurl_version_parse
  8339. unset _libcurl_config
  8340. unset _libcurl_feature
  8341. unset _libcurl_features
  8342. unset _libcurl_protocol
  8343. unset _libcurl_protocols
  8344. unset _libcurl_version
  8345. unset _libcurl_ldflags
  8346. fi
  8347. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  8348. # This is the IF-NO path
  8349. :
  8350. else
  8351. # This is the IF-YES path
  8352. :
  8353. fi
  8354. unset _libcurl_with
  8355. LIBXML2_DESCRIP="LibXML2"
  8356. LIBXML2_OPTION="libxml2"
  8357. PBX_LIBXML2=0
  8358. # Check whether --with-libxml2 was given.
  8359. if test "${with_libxml2+set}" = set; then
  8360. withval=$with_libxml2;
  8361. case ${withval} in
  8362. n|no)
  8363. USE_LIBXML2=no
  8364. # -1 is a magic value used by menuselect to know that the package
  8365. # was disabled, other than 'not found'
  8366. PBX_LIBXML2=-1
  8367. ;;
  8368. y|ye|yes)
  8369. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8370. ;;
  8371. *)
  8372. LIBXML2_DIR="${withval}"
  8373. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8374. ;;
  8375. esac
  8376. fi
  8377. LTDL_DESCRIP="libtool"
  8378. LTDL_OPTION="ltdl"
  8379. PBX_LTDL=0
  8380. # Check whether --with-ltdl was given.
  8381. if test "${with_ltdl+set}" = set; then
  8382. withval=$with_ltdl;
  8383. case ${withval} in
  8384. n|no)
  8385. USE_LTDL=no
  8386. # -1 is a magic value used by menuselect to know that the package
  8387. # was disabled, other than 'not found'
  8388. PBX_LTDL=-1
  8389. ;;
  8390. y|ye|yes)
  8391. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8392. ;;
  8393. *)
  8394. LTDL_DIR="${withval}"
  8395. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8396. ;;
  8397. esac
  8398. fi
  8399. LUA_DESCRIP="Lua"
  8400. LUA_OPTION="lua"
  8401. PBX_LUA=0
  8402. # Check whether --with-lua was given.
  8403. if test "${with_lua+set}" = set; then
  8404. withval=$with_lua;
  8405. case ${withval} in
  8406. n|no)
  8407. USE_LUA=no
  8408. # -1 is a magic value used by menuselect to know that the package
  8409. # was disabled, other than 'not found'
  8410. PBX_LUA=-1
  8411. ;;
  8412. y|ye|yes)
  8413. ac_mandatory_list="${ac_mandatory_list} LUA"
  8414. ;;
  8415. *)
  8416. LUA_DIR="${withval}"
  8417. ac_mandatory_list="${ac_mandatory_list} LUA"
  8418. ;;
  8419. esac
  8420. fi
  8421. MISDN_DESCRIP="mISDN user"
  8422. MISDN_OPTION="misdn"
  8423. PBX_MISDN=0
  8424. # Check whether --with-misdn was given.
  8425. if test "${with_misdn+set}" = set; then
  8426. withval=$with_misdn;
  8427. case ${withval} in
  8428. n|no)
  8429. USE_MISDN=no
  8430. # -1 is a magic value used by menuselect to know that the package
  8431. # was disabled, other than 'not found'
  8432. PBX_MISDN=-1
  8433. ;;
  8434. y|ye|yes)
  8435. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8436. ;;
  8437. *)
  8438. MISDN_DIR="${withval}"
  8439. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8440. ;;
  8441. esac
  8442. fi
  8443. MYSQLCLIENT_DESCRIP="MySQL client"
  8444. MYSQLCLIENT_OPTION="mysqlclient"
  8445. PBX_MYSQLCLIENT=0
  8446. # Check whether --with-mysqlclient was given.
  8447. if test "${with_mysqlclient+set}" = set; then
  8448. withval=$with_mysqlclient;
  8449. case ${withval} in
  8450. n|no)
  8451. USE_MYSQLCLIENT=no
  8452. # -1 is a magic value used by menuselect to know that the package
  8453. # was disabled, other than 'not found'
  8454. PBX_MYSQLCLIENT=-1
  8455. ;;
  8456. y|ye|yes)
  8457. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8458. ;;
  8459. *)
  8460. MYSQLCLIENT_DIR="${withval}"
  8461. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8462. ;;
  8463. esac
  8464. fi
  8465. NBS_DESCRIP="Network Broadcast Sound"
  8466. NBS_OPTION="nbs"
  8467. PBX_NBS=0
  8468. # Check whether --with-nbs was given.
  8469. if test "${with_nbs+set}" = set; then
  8470. withval=$with_nbs;
  8471. case ${withval} in
  8472. n|no)
  8473. USE_NBS=no
  8474. # -1 is a magic value used by menuselect to know that the package
  8475. # was disabled, other than 'not found'
  8476. PBX_NBS=-1
  8477. ;;
  8478. y|ye|yes)
  8479. ac_mandatory_list="${ac_mandatory_list} NBS"
  8480. ;;
  8481. *)
  8482. NBS_DIR="${withval}"
  8483. ac_mandatory_list="${ac_mandatory_list} NBS"
  8484. ;;
  8485. esac
  8486. fi
  8487. NCURSES_DESCRIP="ncurses"
  8488. NCURSES_OPTION="ncurses"
  8489. PBX_NCURSES=0
  8490. # Check whether --with-ncurses was given.
  8491. if test "${with_ncurses+set}" = set; then
  8492. withval=$with_ncurses;
  8493. case ${withval} in
  8494. n|no)
  8495. USE_NCURSES=no
  8496. # -1 is a magic value used by menuselect to know that the package
  8497. # was disabled, other than 'not found'
  8498. PBX_NCURSES=-1
  8499. ;;
  8500. y|ye|yes)
  8501. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8502. ;;
  8503. *)
  8504. NCURSES_DIR="${withval}"
  8505. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8506. ;;
  8507. esac
  8508. fi
  8509. NEON_DESCRIP="neon"
  8510. NEON_OPTION="neon"
  8511. PBX_NEON=0
  8512. # Check whether --with-neon was given.
  8513. if test "${with_neon+set}" = set; then
  8514. withval=$with_neon;
  8515. case ${withval} in
  8516. n|no)
  8517. USE_NEON=no
  8518. # -1 is a magic value used by menuselect to know that the package
  8519. # was disabled, other than 'not found'
  8520. PBX_NEON=-1
  8521. ;;
  8522. y|ye|yes)
  8523. ac_mandatory_list="${ac_mandatory_list} NEON"
  8524. ;;
  8525. *)
  8526. NEON_DIR="${withval}"
  8527. ac_mandatory_list="${ac_mandatory_list} NEON"
  8528. ;;
  8529. esac
  8530. fi
  8531. NEON29_DESCRIP="neon29"
  8532. NEON29_OPTION="neon29"
  8533. PBX_NEON29=0
  8534. # Check whether --with-neon29 was given.
  8535. if test "${with_neon29+set}" = set; then
  8536. withval=$with_neon29;
  8537. case ${withval} in
  8538. n|no)
  8539. USE_NEON29=no
  8540. # -1 is a magic value used by menuselect to know that the package
  8541. # was disabled, other than 'not found'
  8542. PBX_NEON29=-1
  8543. ;;
  8544. y|ye|yes)
  8545. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8546. ;;
  8547. *)
  8548. NEON29_DIR="${withval}"
  8549. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8550. ;;
  8551. esac
  8552. fi
  8553. NETSNMP_DESCRIP="Net-SNMP"
  8554. NETSNMP_OPTION="netsnmp"
  8555. PBX_NETSNMP=0
  8556. # Check whether --with-netsnmp was given.
  8557. if test "${with_netsnmp+set}" = set; then
  8558. withval=$with_netsnmp;
  8559. case ${withval} in
  8560. n|no)
  8561. USE_NETSNMP=no
  8562. # -1 is a magic value used by menuselect to know that the package
  8563. # was disabled, other than 'not found'
  8564. PBX_NETSNMP=-1
  8565. ;;
  8566. y|ye|yes)
  8567. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8568. ;;
  8569. *)
  8570. NETSNMP_DIR="${withval}"
  8571. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8572. ;;
  8573. esac
  8574. fi
  8575. NEWT_DESCRIP="newt"
  8576. NEWT_OPTION="newt"
  8577. PBX_NEWT=0
  8578. # Check whether --with-newt was given.
  8579. if test "${with_newt+set}" = set; then
  8580. withval=$with_newt;
  8581. case ${withval} in
  8582. n|no)
  8583. USE_NEWT=no
  8584. # -1 is a magic value used by menuselect to know that the package
  8585. # was disabled, other than 'not found'
  8586. PBX_NEWT=-1
  8587. ;;
  8588. y|ye|yes)
  8589. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8590. ;;
  8591. *)
  8592. NEWT_DIR="${withval}"
  8593. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8594. ;;
  8595. esac
  8596. fi
  8597. OGG_DESCRIP="OGG"
  8598. OGG_OPTION="ogg"
  8599. PBX_OGG=0
  8600. # Check whether --with-ogg was given.
  8601. if test "${with_ogg+set}" = set; then
  8602. withval=$with_ogg;
  8603. case ${withval} in
  8604. n|no)
  8605. USE_OGG=no
  8606. # -1 is a magic value used by menuselect to know that the package
  8607. # was disabled, other than 'not found'
  8608. PBX_OGG=-1
  8609. ;;
  8610. y|ye|yes)
  8611. ac_mandatory_list="${ac_mandatory_list} OGG"
  8612. ;;
  8613. *)
  8614. OGG_DIR="${withval}"
  8615. ac_mandatory_list="${ac_mandatory_list} OGG"
  8616. ;;
  8617. esac
  8618. fi
  8619. OPENAIS_DESCRIP="OpenAIS"
  8620. OPENAIS_OPTION="openais"
  8621. PBX_OPENAIS=0
  8622. # Check whether --with-openais was given.
  8623. if test "${with_openais+set}" = set; then
  8624. withval=$with_openais;
  8625. case ${withval} in
  8626. n|no)
  8627. USE_OPENAIS=no
  8628. # -1 is a magic value used by menuselect to know that the package
  8629. # was disabled, other than 'not found'
  8630. PBX_OPENAIS=-1
  8631. ;;
  8632. y|ye|yes)
  8633. ac_mandatory_list="${ac_mandatory_list} OPENAIS"
  8634. ;;
  8635. *)
  8636. OPENAIS_DIR="${withval}"
  8637. ac_mandatory_list="${ac_mandatory_list} OPENAIS"
  8638. ;;
  8639. esac
  8640. fi
  8641. OPENR2_DESCRIP="MFR2"
  8642. OPENR2_OPTION="openr2"
  8643. PBX_OPENR2=0
  8644. # Check whether --with-openr2 was given.
  8645. if test "${with_openr2+set}" = set; then
  8646. withval=$with_openr2;
  8647. case ${withval} in
  8648. n|no)
  8649. USE_OPENR2=no
  8650. # -1 is a magic value used by menuselect to know that the package
  8651. # was disabled, other than 'not found'
  8652. PBX_OPENR2=-1
  8653. ;;
  8654. y|ye|yes)
  8655. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8656. ;;
  8657. *)
  8658. OPENR2_DIR="${withval}"
  8659. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8660. ;;
  8661. esac
  8662. fi
  8663. OSPTK_DESCRIP="OSP Toolkit"
  8664. OSPTK_OPTION="osptk"
  8665. PBX_OSPTK=0
  8666. # Check whether --with-osptk was given.
  8667. if test "${with_osptk+set}" = set; then
  8668. withval=$with_osptk;
  8669. case ${withval} in
  8670. n|no)
  8671. USE_OSPTK=no
  8672. # -1 is a magic value used by menuselect to know that the package
  8673. # was disabled, other than 'not found'
  8674. PBX_OSPTK=-1
  8675. ;;
  8676. y|ye|yes)
  8677. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8678. ;;
  8679. *)
  8680. OSPTK_DIR="${withval}"
  8681. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8682. ;;
  8683. esac
  8684. fi
  8685. OSS_DESCRIP="Open Sound System"
  8686. OSS_OPTION="oss"
  8687. PBX_OSS=0
  8688. # Check whether --with-oss was given.
  8689. if test "${with_oss+set}" = set; then
  8690. withval=$with_oss;
  8691. case ${withval} in
  8692. n|no)
  8693. USE_OSS=no
  8694. # -1 is a magic value used by menuselect to know that the package
  8695. # was disabled, other than 'not found'
  8696. PBX_OSS=-1
  8697. ;;
  8698. y|ye|yes)
  8699. ac_mandatory_list="${ac_mandatory_list} OSS"
  8700. ;;
  8701. *)
  8702. OSS_DIR="${withval}"
  8703. ac_mandatory_list="${ac_mandatory_list} OSS"
  8704. ;;
  8705. esac
  8706. fi
  8707. PGSQL_DESCRIP="PostgreSQL"
  8708. PGSQL_OPTION="postgres"
  8709. PBX_PGSQL=0
  8710. # Check whether --with-postgres was given.
  8711. if test "${with_postgres+set}" = set; then
  8712. withval=$with_postgres;
  8713. case ${withval} in
  8714. n|no)
  8715. USE_PGSQL=no
  8716. # -1 is a magic value used by menuselect to know that the package
  8717. # was disabled, other than 'not found'
  8718. PBX_PGSQL=-1
  8719. ;;
  8720. y|ye|yes)
  8721. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8722. ;;
  8723. *)
  8724. PGSQL_DIR="${withval}"
  8725. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8726. ;;
  8727. esac
  8728. fi
  8729. POPT_DESCRIP="popt"
  8730. POPT_OPTION="popt"
  8731. PBX_POPT=0
  8732. # Check whether --with-popt was given.
  8733. if test "${with_popt+set}" = set; then
  8734. withval=$with_popt;
  8735. case ${withval} in
  8736. n|no)
  8737. USE_POPT=no
  8738. # -1 is a magic value used by menuselect to know that the package
  8739. # was disabled, other than 'not found'
  8740. PBX_POPT=-1
  8741. ;;
  8742. y|ye|yes)
  8743. ac_mandatory_list="${ac_mandatory_list} POPT"
  8744. ;;
  8745. *)
  8746. POPT_DIR="${withval}"
  8747. ac_mandatory_list="${ac_mandatory_list} POPT"
  8748. ;;
  8749. esac
  8750. fi
  8751. PORTAUDIO_DESCRIP="PortAudio"
  8752. PORTAUDIO_OPTION="portaudio"
  8753. PBX_PORTAUDIO=0
  8754. # Check whether --with-portaudio was given.
  8755. if test "${with_portaudio+set}" = set; then
  8756. withval=$with_portaudio;
  8757. case ${withval} in
  8758. n|no)
  8759. USE_PORTAUDIO=no
  8760. # -1 is a magic value used by menuselect to know that the package
  8761. # was disabled, other than 'not found'
  8762. PBX_PORTAUDIO=-1
  8763. ;;
  8764. y|ye|yes)
  8765. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8766. ;;
  8767. *)
  8768. PORTAUDIO_DIR="${withval}"
  8769. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8770. ;;
  8771. esac
  8772. fi
  8773. PRI_DESCRIP="ISDN PRI"
  8774. PRI_OPTION="pri"
  8775. PBX_PRI=0
  8776. # Check whether --with-pri was given.
  8777. if test "${with_pri+set}" = set; then
  8778. withval=$with_pri;
  8779. case ${withval} in
  8780. n|no)
  8781. USE_PRI=no
  8782. # -1 is a magic value used by menuselect to know that the package
  8783. # was disabled, other than 'not found'
  8784. PBX_PRI=-1
  8785. ;;
  8786. y|ye|yes)
  8787. ac_mandatory_list="${ac_mandatory_list} PRI"
  8788. ;;
  8789. *)
  8790. PRI_DIR="${withval}"
  8791. ac_mandatory_list="${ac_mandatory_list} PRI"
  8792. ;;
  8793. esac
  8794. fi
  8795. PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
  8796. PRI_L2_PERSISTENCE_OPTION=pri
  8797. PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
  8798. PBX_PRI_L2_PERSISTENCE=0
  8799. PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
  8800. PRI_DATETIME_SEND_OPTION=pri
  8801. PRI_DATETIME_SEND_DIR=${PRI_DIR}
  8802. PBX_PRI_DATETIME_SEND=0
  8803. PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
  8804. PRI_MWI_V2_OPTION=pri
  8805. PRI_MWI_V2_DIR=${PRI_DIR}
  8806. PBX_PRI_MWI_V2=0
  8807. PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
  8808. PRI_DISPLAY_TEXT_OPTION=pri
  8809. PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
  8810. PBX_PRI_DISPLAY_TEXT=0
  8811. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  8812. PRI_MWI_OPTION=pri
  8813. PRI_MWI_DIR=${PRI_DIR}
  8814. PBX_PRI_MWI=0
  8815. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  8816. PRI_MCID_OPTION=pri
  8817. PRI_MCID_DIR=${PRI_DIR}
  8818. PBX_PRI_MCID=0
  8819. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  8820. PRI_CALL_WAITING_OPTION=pri
  8821. PRI_CALL_WAITING_DIR=${PRI_DIR}
  8822. PBX_PRI_CALL_WAITING=0
  8823. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  8824. PRI_AOC_EVENTS_OPTION=pri
  8825. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  8826. PBX_PRI_AOC_EVENTS=0
  8827. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  8828. PRI_TRANSFER_OPTION=pri
  8829. PRI_TRANSFER_DIR=${PRI_DIR}
  8830. PBX_PRI_TRANSFER=0
  8831. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  8832. PRI_CCSS_OPTION=pri
  8833. PRI_CCSS_DIR=${PRI_DIR}
  8834. PBX_PRI_CCSS=0
  8835. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  8836. PRI_HANGUP_FIX_OPTION=pri
  8837. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  8838. PBX_PRI_HANGUP_FIX=0
  8839. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  8840. PRI_SUBADDR_OPTION=pri
  8841. PRI_SUBADDR_DIR=${PRI_DIR}
  8842. PBX_PRI_SUBADDR=0
  8843. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  8844. PRI_CALL_HOLD_OPTION=pri
  8845. PRI_CALL_HOLD_DIR=${PRI_DIR}
  8846. PBX_PRI_CALL_HOLD=0
  8847. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  8848. PRI_CALL_REROUTING_OPTION=pri
  8849. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  8850. PBX_PRI_CALL_REROUTING=0
  8851. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  8852. PRI_SETUP_KEYPAD_OPTION=pri
  8853. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  8854. PBX_PRI_SETUP_KEYPAD=0
  8855. # ------------------------------------v
  8856. # TODO: The code can be changed to always include these features now.
  8857. # These features will always be present if pri_connected_line_update is available.
  8858. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  8859. PRI_INBANDDISCONNECT_OPTION=pri
  8860. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  8861. PBX_PRI_INBANDDISCONNECT=0
  8862. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  8863. PRI_PROG_W_CAUSE_OPTION=pri
  8864. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  8865. PBX_PRI_PROG_W_CAUSE=0
  8866. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  8867. PRI_SERVICE_MESSAGES_OPTION=pri
  8868. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  8869. PBX_PRI_SERVICE_MESSAGES=0
  8870. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  8871. PRI_REVERSE_CHARGE_OPTION=pri
  8872. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  8873. PBX_PRI_REVERSE_CHARGE=0
  8874. # ------------------------------------^
  8875. PWLIB_DESCRIP="PWlib"
  8876. PWLIB_OPTION="pwlib"
  8877. PBX_PWLIB=0
  8878. # Check whether --with-pwlib was given.
  8879. if test "${with_pwlib+set}" = set; then
  8880. withval=$with_pwlib;
  8881. case ${withval} in
  8882. n|no)
  8883. USE_PWLIB=no
  8884. # -1 is a magic value used by menuselect to know that the package
  8885. # was disabled, other than 'not found'
  8886. PBX_PWLIB=-1
  8887. ;;
  8888. y|ye|yes)
  8889. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8890. ;;
  8891. *)
  8892. PWLIB_DIR="${withval}"
  8893. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8894. ;;
  8895. esac
  8896. fi
  8897. RADIUS_DESCRIP="Radius Client"
  8898. RADIUS_OPTION="radius"
  8899. PBX_RADIUS=0
  8900. # Check whether --with-radius was given.
  8901. if test "${with_radius+set}" = set; then
  8902. withval=$with_radius;
  8903. case ${withval} in
  8904. n|no)
  8905. USE_RADIUS=no
  8906. # -1 is a magic value used by menuselect to know that the package
  8907. # was disabled, other than 'not found'
  8908. PBX_RADIUS=-1
  8909. ;;
  8910. y|ye|yes)
  8911. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8912. ;;
  8913. *)
  8914. RADIUS_DIR="${withval}"
  8915. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8916. ;;
  8917. esac
  8918. fi
  8919. RESAMPLE_DESCRIP="LIBRESAMPLE"
  8920. RESAMPLE_OPTION="resample"
  8921. PBX_RESAMPLE=0
  8922. # Check whether --with-resample was given.
  8923. if test "${with_resample+set}" = set; then
  8924. withval=$with_resample;
  8925. case ${withval} in
  8926. n|no)
  8927. USE_RESAMPLE=no
  8928. # -1 is a magic value used by menuselect to know that the package
  8929. # was disabled, other than 'not found'
  8930. PBX_RESAMPLE=-1
  8931. ;;
  8932. y|ye|yes)
  8933. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8934. ;;
  8935. *)
  8936. RESAMPLE_DIR="${withval}"
  8937. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8938. ;;
  8939. esac
  8940. fi
  8941. SDL_DESCRIP="Sdl"
  8942. SDL_OPTION="sdl"
  8943. PBX_SDL=0
  8944. # Check whether --with-sdl was given.
  8945. if test "${with_sdl+set}" = set; then
  8946. withval=$with_sdl;
  8947. case ${withval} in
  8948. n|no)
  8949. USE_SDL=no
  8950. # -1 is a magic value used by menuselect to know that the package
  8951. # was disabled, other than 'not found'
  8952. PBX_SDL=-1
  8953. ;;
  8954. y|ye|yes)
  8955. ac_mandatory_list="${ac_mandatory_list} SDL"
  8956. ;;
  8957. *)
  8958. SDL_DIR="${withval}"
  8959. ac_mandatory_list="${ac_mandatory_list} SDL"
  8960. ;;
  8961. esac
  8962. fi
  8963. SDL_IMAGE_DESCRIP="Sdl Image"
  8964. SDL_IMAGE_OPTION="SDL_image"
  8965. PBX_SDL_IMAGE=0
  8966. # Check whether --with-SDL_image was given.
  8967. if test "${with_SDL_image+set}" = set; then
  8968. withval=$with_SDL_image;
  8969. case ${withval} in
  8970. n|no)
  8971. USE_SDL_IMAGE=no
  8972. # -1 is a magic value used by menuselect to know that the package
  8973. # was disabled, other than 'not found'
  8974. PBX_SDL_IMAGE=-1
  8975. ;;
  8976. y|ye|yes)
  8977. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8978. ;;
  8979. *)
  8980. SDL_IMAGE_DIR="${withval}"
  8981. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8982. ;;
  8983. esac
  8984. fi
  8985. # Check whether --with-sounds-cache was given.
  8986. if test "${with_sounds_cache+set}" = set; then
  8987. withval=$with_sounds_cache;
  8988. case ${withval} in
  8989. n|no)
  8990. unset SOUNDS_CACHE_DIR
  8991. ;;
  8992. *)
  8993. if test "x${withval}" = "x"; then
  8994. :
  8995. else
  8996. SOUNDS_CACHE_DIR="${withval}"
  8997. fi
  8998. ;;
  8999. esac
  9000. else
  9001. :
  9002. fi
  9003. SPANDSP_DESCRIP="SPANDSP"
  9004. SPANDSP_OPTION="spandsp"
  9005. PBX_SPANDSP=0
  9006. # Check whether --with-spandsp was given.
  9007. if test "${with_spandsp+set}" = set; then
  9008. withval=$with_spandsp;
  9009. case ${withval} in
  9010. n|no)
  9011. USE_SPANDSP=no
  9012. # -1 is a magic value used by menuselect to know that the package
  9013. # was disabled, other than 'not found'
  9014. PBX_SPANDSP=-1
  9015. ;;
  9016. y|ye|yes)
  9017. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9018. ;;
  9019. *)
  9020. SPANDSP_DIR="${withval}"
  9021. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9022. ;;
  9023. esac
  9024. fi
  9025. SS7_DESCRIP="ISDN SS7"
  9026. SS7_OPTION="ss7"
  9027. PBX_SS7=0
  9028. # Check whether --with-ss7 was given.
  9029. if test "${with_ss7+set}" = set; then
  9030. withval=$with_ss7;
  9031. case ${withval} in
  9032. n|no)
  9033. USE_SS7=no
  9034. # -1 is a magic value used by menuselect to know that the package
  9035. # was disabled, other than 'not found'
  9036. PBX_SS7=-1
  9037. ;;
  9038. y|ye|yes)
  9039. ac_mandatory_list="${ac_mandatory_list} SS7"
  9040. ;;
  9041. *)
  9042. SS7_DIR="${withval}"
  9043. ac_mandatory_list="${ac_mandatory_list} SS7"
  9044. ;;
  9045. esac
  9046. fi
  9047. SPEEX_DESCRIP="Speex"
  9048. SPEEX_OPTION="speex"
  9049. PBX_SPEEX=0
  9050. # Check whether --with-speex was given.
  9051. if test "${with_speex+set}" = set; then
  9052. withval=$with_speex;
  9053. case ${withval} in
  9054. n|no)
  9055. USE_SPEEX=no
  9056. # -1 is a magic value used by menuselect to know that the package
  9057. # was disabled, other than 'not found'
  9058. PBX_SPEEX=-1
  9059. ;;
  9060. y|ye|yes)
  9061. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9062. ;;
  9063. *)
  9064. SPEEX_DIR="${withval}"
  9065. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9066. ;;
  9067. esac
  9068. fi
  9069. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  9070. SPEEX_PREPROCESS_OPTION="speex"
  9071. PBX_SPEEX_PREPROCESS=0
  9072. # Check whether --with-speex was given.
  9073. if test "${with_speex+set}" = set; then
  9074. withval=$with_speex;
  9075. case ${withval} in
  9076. n|no)
  9077. USE_SPEEX_PREPROCESS=no
  9078. # -1 is a magic value used by menuselect to know that the package
  9079. # was disabled, other than 'not found'
  9080. PBX_SPEEX_PREPROCESS=-1
  9081. ;;
  9082. y|ye|yes)
  9083. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9084. ;;
  9085. *)
  9086. SPEEX_PREPROCESS_DIR="${withval}"
  9087. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9088. ;;
  9089. esac
  9090. fi
  9091. SPEEXDSP_DESCRIP="SpeexDSP"
  9092. SPEEXDSP_OPTION="speexdsp"
  9093. PBX_SPEEXDSP=0
  9094. # Check whether --with-speexdsp was given.
  9095. if test "${with_speexdsp+set}" = set; then
  9096. withval=$with_speexdsp;
  9097. case ${withval} in
  9098. n|no)
  9099. USE_SPEEXDSP=no
  9100. # -1 is a magic value used by menuselect to know that the package
  9101. # was disabled, other than 'not found'
  9102. PBX_SPEEXDSP=-1
  9103. ;;
  9104. y|ye|yes)
  9105. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9106. ;;
  9107. *)
  9108. SPEEXDSP_DIR="${withval}"
  9109. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9110. ;;
  9111. esac
  9112. fi
  9113. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  9114. SPEEX_PREPROCESS_OPTION=speex
  9115. PBX_SPEEX_PREPROCESS=0
  9116. SQLITE_DESCRIP="SQLite"
  9117. SQLITE_OPTION="sqlite"
  9118. PBX_SQLITE=0
  9119. # Check whether --with-sqlite was given.
  9120. if test "${with_sqlite+set}" = set; then
  9121. withval=$with_sqlite;
  9122. case ${withval} in
  9123. n|no)
  9124. USE_SQLITE=no
  9125. # -1 is a magic value used by menuselect to know that the package
  9126. # was disabled, other than 'not found'
  9127. PBX_SQLITE=-1
  9128. ;;
  9129. y|ye|yes)
  9130. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9131. ;;
  9132. *)
  9133. SQLITE_DIR="${withval}"
  9134. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9135. ;;
  9136. esac
  9137. fi
  9138. SQLITE3_DESCRIP="SQLite"
  9139. SQLITE3_OPTION="sqlite3"
  9140. PBX_SQLITE3=0
  9141. # Check whether --with-sqlite3 was given.
  9142. if test "${with_sqlite3+set}" = set; then
  9143. withval=$with_sqlite3;
  9144. case ${withval} in
  9145. n|no)
  9146. USE_SQLITE3=no
  9147. # -1 is a magic value used by menuselect to know that the package
  9148. # was disabled, other than 'not found'
  9149. PBX_SQLITE3=-1
  9150. ;;
  9151. y|ye|yes)
  9152. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9153. ;;
  9154. *)
  9155. SQLITE3_DIR="${withval}"
  9156. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9157. ;;
  9158. esac
  9159. fi
  9160. SRTP_DESCRIP="Secure RTP"
  9161. SRTP_OPTION="srtp"
  9162. PBX_SRTP=0
  9163. # Check whether --with-srtp was given.
  9164. if test "${with_srtp+set}" = set; then
  9165. withval=$with_srtp;
  9166. case ${withval} in
  9167. n|no)
  9168. USE_SRTP=no
  9169. # -1 is a magic value used by menuselect to know that the package
  9170. # was disabled, other than 'not found'
  9171. PBX_SRTP=-1
  9172. ;;
  9173. y|ye|yes)
  9174. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9175. ;;
  9176. *)
  9177. SRTP_DIR="${withval}"
  9178. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9179. ;;
  9180. esac
  9181. fi
  9182. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9183. OPENSSL_OPTION="ssl"
  9184. PBX_OPENSSL=0
  9185. # Check whether --with-ssl was given.
  9186. if test "${with_ssl+set}" = set; then
  9187. withval=$with_ssl;
  9188. case ${withval} in
  9189. n|no)
  9190. USE_OPENSSL=no
  9191. # -1 is a magic value used by menuselect to know that the package
  9192. # was disabled, other than 'not found'
  9193. PBX_OPENSSL=-1
  9194. ;;
  9195. y|ye|yes)
  9196. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9197. ;;
  9198. *)
  9199. OPENSSL_DIR="${withval}"
  9200. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9201. ;;
  9202. esac
  9203. fi
  9204. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  9205. SUPPSERV_OPTION="suppserv"
  9206. PBX_SUPPSERV=0
  9207. # Check whether --with-suppserv was given.
  9208. if test "${with_suppserv+set}" = set; then
  9209. withval=$with_suppserv;
  9210. case ${withval} in
  9211. n|no)
  9212. USE_SUPPSERV=no
  9213. # -1 is a magic value used by menuselect to know that the package
  9214. # was disabled, other than 'not found'
  9215. PBX_SUPPSERV=-1
  9216. ;;
  9217. y|ye|yes)
  9218. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9219. ;;
  9220. *)
  9221. SUPPSERV_DIR="${withval}"
  9222. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9223. ;;
  9224. esac
  9225. fi
  9226. FREETDS_DESCRIP="FreeTDS"
  9227. FREETDS_OPTION="tds"
  9228. PBX_FREETDS=0
  9229. # Check whether --with-tds was given.
  9230. if test "${with_tds+set}" = set; then
  9231. withval=$with_tds;
  9232. case ${withval} in
  9233. n|no)
  9234. USE_FREETDS=no
  9235. # -1 is a magic value used by menuselect to know that the package
  9236. # was disabled, other than 'not found'
  9237. PBX_FREETDS=-1
  9238. ;;
  9239. y|ye|yes)
  9240. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9241. ;;
  9242. *)
  9243. FREETDS_DIR="${withval}"
  9244. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9245. ;;
  9246. esac
  9247. fi
  9248. TERMCAP_DESCRIP="Termcap"
  9249. TERMCAP_OPTION="termcap"
  9250. PBX_TERMCAP=0
  9251. # Check whether --with-termcap was given.
  9252. if test "${with_termcap+set}" = set; then
  9253. withval=$with_termcap;
  9254. case ${withval} in
  9255. n|no)
  9256. USE_TERMCAP=no
  9257. # -1 is a magic value used by menuselect to know that the package
  9258. # was disabled, other than 'not found'
  9259. PBX_TERMCAP=-1
  9260. ;;
  9261. y|ye|yes)
  9262. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9263. ;;
  9264. *)
  9265. TERMCAP_DIR="${withval}"
  9266. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9267. ;;
  9268. esac
  9269. fi
  9270. TIMERFD_DESCRIP="timerfd"
  9271. TIMERFD_OPTION="timerfd"
  9272. PBX_TIMERFD=0
  9273. # Check whether --with-timerfd was given.
  9274. if test "${with_timerfd+set}" = set; then
  9275. withval=$with_timerfd;
  9276. case ${withval} in
  9277. n|no)
  9278. USE_TIMERFD=no
  9279. # -1 is a magic value used by menuselect to know that the package
  9280. # was disabled, other than 'not found'
  9281. PBX_TIMERFD=-1
  9282. ;;
  9283. y|ye|yes)
  9284. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9285. ;;
  9286. *)
  9287. TIMERFD_DIR="${withval}"
  9288. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9289. ;;
  9290. esac
  9291. fi
  9292. TINFO_DESCRIP="Term Info"
  9293. TINFO_OPTION="tinfo"
  9294. PBX_TINFO=0
  9295. # Check whether --with-tinfo was given.
  9296. if test "${with_tinfo+set}" = set; then
  9297. withval=$with_tinfo;
  9298. case ${withval} in
  9299. n|no)
  9300. USE_TINFO=no
  9301. # -1 is a magic value used by menuselect to know that the package
  9302. # was disabled, other than 'not found'
  9303. PBX_TINFO=-1
  9304. ;;
  9305. y|ye|yes)
  9306. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9307. ;;
  9308. *)
  9309. TINFO_DIR="${withval}"
  9310. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9311. ;;
  9312. esac
  9313. fi
  9314. TONEZONE_DESCRIP="tonezone"
  9315. TONEZONE_OPTION="tonezone"
  9316. PBX_TONEZONE=0
  9317. # Check whether --with-tonezone was given.
  9318. if test "${with_tonezone+set}" = set; then
  9319. withval=$with_tonezone;
  9320. case ${withval} in
  9321. n|no)
  9322. USE_TONEZONE=no
  9323. # -1 is a magic value used by menuselect to know that the package
  9324. # was disabled, other than 'not found'
  9325. PBX_TONEZONE=-1
  9326. ;;
  9327. y|ye|yes)
  9328. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9329. ;;
  9330. *)
  9331. TONEZONE_DIR="${withval}"
  9332. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9333. ;;
  9334. esac
  9335. fi
  9336. UNIXODBC_DESCRIP="unixODBC"
  9337. UNIXODBC_OPTION="unixodbc"
  9338. PBX_UNIXODBC=0
  9339. # Check whether --with-unixodbc was given.
  9340. if test "${with_unixodbc+set}" = set; then
  9341. withval=$with_unixodbc;
  9342. case ${withval} in
  9343. n|no)
  9344. USE_UNIXODBC=no
  9345. # -1 is a magic value used by menuselect to know that the package
  9346. # was disabled, other than 'not found'
  9347. PBX_UNIXODBC=-1
  9348. ;;
  9349. y|ye|yes)
  9350. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9351. ;;
  9352. *)
  9353. UNIXODBC_DIR="${withval}"
  9354. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9355. ;;
  9356. esac
  9357. fi
  9358. VORBIS_DESCRIP="Vorbis"
  9359. VORBIS_OPTION="vorbis"
  9360. PBX_VORBIS=0
  9361. # Check whether --with-vorbis was given.
  9362. if test "${with_vorbis+set}" = set; then
  9363. withval=$with_vorbis;
  9364. case ${withval} in
  9365. n|no)
  9366. USE_VORBIS=no
  9367. # -1 is a magic value used by menuselect to know that the package
  9368. # was disabled, other than 'not found'
  9369. PBX_VORBIS=-1
  9370. ;;
  9371. y|ye|yes)
  9372. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9373. ;;
  9374. *)
  9375. VORBIS_DIR="${withval}"
  9376. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9377. ;;
  9378. esac
  9379. fi
  9380. VPB_DESCRIP="Voicetronix API"
  9381. VPB_OPTION="vpb"
  9382. PBX_VPB=0
  9383. # Check whether --with-vpb was given.
  9384. if test "${with_vpb+set}" = set; then
  9385. withval=$with_vpb;
  9386. case ${withval} in
  9387. n|no)
  9388. USE_VPB=no
  9389. # -1 is a magic value used by menuselect to know that the package
  9390. # was disabled, other than 'not found'
  9391. PBX_VPB=-1
  9392. ;;
  9393. y|ye|yes)
  9394. ac_mandatory_list="${ac_mandatory_list} VPB"
  9395. ;;
  9396. *)
  9397. VPB_DIR="${withval}"
  9398. ac_mandatory_list="${ac_mandatory_list} VPB"
  9399. ;;
  9400. esac
  9401. fi
  9402. X11_DESCRIP="X11"
  9403. X11_OPTION="x11"
  9404. PBX_X11=0
  9405. # Check whether --with-x11 was given.
  9406. if test "${with_x11+set}" = set; then
  9407. withval=$with_x11;
  9408. case ${withval} in
  9409. n|no)
  9410. USE_X11=no
  9411. # -1 is a magic value used by menuselect to know that the package
  9412. # was disabled, other than 'not found'
  9413. PBX_X11=-1
  9414. ;;
  9415. y|ye|yes)
  9416. ac_mandatory_list="${ac_mandatory_list} X11"
  9417. ;;
  9418. *)
  9419. X11_DIR="${withval}"
  9420. ac_mandatory_list="${ac_mandatory_list} X11"
  9421. ;;
  9422. esac
  9423. fi
  9424. ZLIB_DESCRIP="zlib compression"
  9425. ZLIB_OPTION="z"
  9426. PBX_ZLIB=0
  9427. # Check whether --with-z was given.
  9428. if test "${with_z+set}" = set; then
  9429. withval=$with_z;
  9430. case ${withval} in
  9431. n|no)
  9432. USE_ZLIB=no
  9433. # -1 is a magic value used by menuselect to know that the package
  9434. # was disabled, other than 'not found'
  9435. PBX_ZLIB=-1
  9436. ;;
  9437. y|ye|yes)
  9438. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9439. ;;
  9440. *)
  9441. ZLIB_DIR="${withval}"
  9442. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9443. ;;
  9444. esac
  9445. fi
  9446. # check for basic system features and functionality before
  9447. # checking for package libraries
  9448. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9449. # for constant arguments. Useless!
  9450. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  9451. $as_echo_n "checking for working alloca.h... " >&6; }
  9452. if test "${ac_cv_working_alloca_h+set}" = set; then
  9453. $as_echo_n "(cached) " >&6
  9454. else
  9455. cat >conftest.$ac_ext <<_ACEOF
  9456. /* confdefs.h. */
  9457. _ACEOF
  9458. cat confdefs.h >>conftest.$ac_ext
  9459. cat >>conftest.$ac_ext <<_ACEOF
  9460. /* end confdefs.h. */
  9461. #include <alloca.h>
  9462. int
  9463. main ()
  9464. {
  9465. char *p = (char *) alloca (2 * sizeof (int));
  9466. if (p) return 0;
  9467. ;
  9468. return 0;
  9469. }
  9470. _ACEOF
  9471. rm -f conftest.$ac_objext conftest$ac_exeext
  9472. if { (ac_try="$ac_link"
  9473. case "(($ac_try" in
  9474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9475. *) ac_try_echo=$ac_try;;
  9476. esac
  9477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9478. $as_echo "$ac_try_echo") >&5
  9479. (eval "$ac_link") 2>conftest.er1
  9480. ac_status=$?
  9481. grep -v '^ *+' conftest.er1 >conftest.err
  9482. rm -f conftest.er1
  9483. cat conftest.err >&5
  9484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9485. (exit $ac_status); } && {
  9486. test -z "$ac_c_werror_flag" ||
  9487. test ! -s conftest.err
  9488. } && test -s conftest$ac_exeext && {
  9489. test "$cross_compiling" = yes ||
  9490. $as_test_x conftest$ac_exeext
  9491. }; then
  9492. ac_cv_working_alloca_h=yes
  9493. else
  9494. $as_echo "$as_me: failed program was:" >&5
  9495. sed 's/^/| /' conftest.$ac_ext >&5
  9496. ac_cv_working_alloca_h=no
  9497. fi
  9498. rm -rf conftest.dSYM
  9499. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9500. conftest$ac_exeext conftest.$ac_ext
  9501. fi
  9502. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  9503. $as_echo "$ac_cv_working_alloca_h" >&6; }
  9504. if test $ac_cv_working_alloca_h = yes; then
  9505. cat >>confdefs.h <<\_ACEOF
  9506. #define HAVE_ALLOCA_H 1
  9507. _ACEOF
  9508. fi
  9509. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  9510. $as_echo_n "checking for alloca... " >&6; }
  9511. if test "${ac_cv_func_alloca_works+set}" = set; then
  9512. $as_echo_n "(cached) " >&6
  9513. else
  9514. cat >conftest.$ac_ext <<_ACEOF
  9515. /* confdefs.h. */
  9516. _ACEOF
  9517. cat confdefs.h >>conftest.$ac_ext
  9518. cat >>conftest.$ac_ext <<_ACEOF
  9519. /* end confdefs.h. */
  9520. #ifdef __GNUC__
  9521. # define alloca __builtin_alloca
  9522. #else
  9523. # ifdef _MSC_VER
  9524. # include <malloc.h>
  9525. # define alloca _alloca
  9526. # else
  9527. # ifdef HAVE_ALLOCA_H
  9528. # include <alloca.h>
  9529. # else
  9530. # ifdef _AIX
  9531. #pragma alloca
  9532. # else
  9533. # ifndef alloca /* predefined by HP cc +Olibcalls */
  9534. char *alloca ();
  9535. # endif
  9536. # endif
  9537. # endif
  9538. # endif
  9539. #endif
  9540. int
  9541. main ()
  9542. {
  9543. char *p = (char *) alloca (1);
  9544. if (p) return 0;
  9545. ;
  9546. return 0;
  9547. }
  9548. _ACEOF
  9549. rm -f conftest.$ac_objext conftest$ac_exeext
  9550. if { (ac_try="$ac_link"
  9551. case "(($ac_try" in
  9552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9553. *) ac_try_echo=$ac_try;;
  9554. esac
  9555. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9556. $as_echo "$ac_try_echo") >&5
  9557. (eval "$ac_link") 2>conftest.er1
  9558. ac_status=$?
  9559. grep -v '^ *+' conftest.er1 >conftest.err
  9560. rm -f conftest.er1
  9561. cat conftest.err >&5
  9562. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9563. (exit $ac_status); } && {
  9564. test -z "$ac_c_werror_flag" ||
  9565. test ! -s conftest.err
  9566. } && test -s conftest$ac_exeext && {
  9567. test "$cross_compiling" = yes ||
  9568. $as_test_x conftest$ac_exeext
  9569. }; then
  9570. ac_cv_func_alloca_works=yes
  9571. else
  9572. $as_echo "$as_me: failed program was:" >&5
  9573. sed 's/^/| /' conftest.$ac_ext >&5
  9574. ac_cv_func_alloca_works=no
  9575. fi
  9576. rm -rf conftest.dSYM
  9577. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9578. conftest$ac_exeext conftest.$ac_ext
  9579. fi
  9580. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  9581. $as_echo "$ac_cv_func_alloca_works" >&6; }
  9582. if test $ac_cv_func_alloca_works = yes; then
  9583. cat >>confdefs.h <<\_ACEOF
  9584. #define HAVE_ALLOCA 1
  9585. _ACEOF
  9586. else
  9587. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  9588. # that cause trouble. Some versions do not even contain alloca or
  9589. # contain a buggy version. If you still want to use their alloca,
  9590. # use ar to extract alloca.o from them instead of compiling alloca.c.
  9591. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  9592. cat >>confdefs.h <<\_ACEOF
  9593. #define C_ALLOCA 1
  9594. _ACEOF
  9595. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  9596. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  9597. if test "${ac_cv_os_cray+set}" = set; then
  9598. $as_echo_n "(cached) " >&6
  9599. else
  9600. cat >conftest.$ac_ext <<_ACEOF
  9601. /* confdefs.h. */
  9602. _ACEOF
  9603. cat confdefs.h >>conftest.$ac_ext
  9604. cat >>conftest.$ac_ext <<_ACEOF
  9605. /* end confdefs.h. */
  9606. #if defined CRAY && ! defined CRAY2
  9607. webecray
  9608. #else
  9609. wenotbecray
  9610. #endif
  9611. _ACEOF
  9612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9613. $EGREP "webecray" >/dev/null 2>&1; then
  9614. ac_cv_os_cray=yes
  9615. else
  9616. ac_cv_os_cray=no
  9617. fi
  9618. rm -f conftest*
  9619. fi
  9620. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  9621. $as_echo "$ac_cv_os_cray" >&6; }
  9622. if test $ac_cv_os_cray = yes; then
  9623. for ac_func in _getb67 GETB67 getb67; do
  9624. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9625. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9626. $as_echo_n "checking for $ac_func... " >&6; }
  9627. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9628. $as_echo_n "(cached) " >&6
  9629. else
  9630. cat >conftest.$ac_ext <<_ACEOF
  9631. /* confdefs.h. */
  9632. _ACEOF
  9633. cat confdefs.h >>conftest.$ac_ext
  9634. cat >>conftest.$ac_ext <<_ACEOF
  9635. /* end confdefs.h. */
  9636. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9637. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9638. #define $ac_func innocuous_$ac_func
  9639. /* System header to define __stub macros and hopefully few prototypes,
  9640. which can conflict with char $ac_func (); below.
  9641. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9642. <limits.h> exists even on freestanding compilers. */
  9643. #ifdef __STDC__
  9644. # include <limits.h>
  9645. #else
  9646. # include <assert.h>
  9647. #endif
  9648. #undef $ac_func
  9649. /* Override any GCC internal prototype to avoid an error.
  9650. Use char because int might match the return type of a GCC
  9651. builtin and then its argument prototype would still apply. */
  9652. #ifdef __cplusplus
  9653. extern "C"
  9654. #endif
  9655. char $ac_func ();
  9656. /* The GNU C library defines this for functions which it implements
  9657. to always fail with ENOSYS. Some functions are actually named
  9658. something starting with __ and the normal name is an alias. */
  9659. #if defined __stub_$ac_func || defined __stub___$ac_func
  9660. choke me
  9661. #endif
  9662. int
  9663. main ()
  9664. {
  9665. return $ac_func ();
  9666. ;
  9667. return 0;
  9668. }
  9669. _ACEOF
  9670. rm -f conftest.$ac_objext conftest$ac_exeext
  9671. if { (ac_try="$ac_link"
  9672. case "(($ac_try" in
  9673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9674. *) ac_try_echo=$ac_try;;
  9675. esac
  9676. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9677. $as_echo "$ac_try_echo") >&5
  9678. (eval "$ac_link") 2>conftest.er1
  9679. ac_status=$?
  9680. grep -v '^ *+' conftest.er1 >conftest.err
  9681. rm -f conftest.er1
  9682. cat conftest.err >&5
  9683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9684. (exit $ac_status); } && {
  9685. test -z "$ac_c_werror_flag" ||
  9686. test ! -s conftest.err
  9687. } && test -s conftest$ac_exeext && {
  9688. test "$cross_compiling" = yes ||
  9689. $as_test_x conftest$ac_exeext
  9690. }; then
  9691. eval "$as_ac_var=yes"
  9692. else
  9693. $as_echo "$as_me: failed program was:" >&5
  9694. sed 's/^/| /' conftest.$ac_ext >&5
  9695. eval "$as_ac_var=no"
  9696. fi
  9697. rm -rf conftest.dSYM
  9698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9699. conftest$ac_exeext conftest.$ac_ext
  9700. fi
  9701. ac_res=`eval 'as_val=${'$as_ac_var'}
  9702. $as_echo "$as_val"'`
  9703. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9704. $as_echo "$ac_res" >&6; }
  9705. as_val=`eval 'as_val=${'$as_ac_var'}
  9706. $as_echo "$as_val"'`
  9707. if test "x$as_val" = x""yes; then
  9708. cat >>confdefs.h <<_ACEOF
  9709. #define CRAY_STACKSEG_END $ac_func
  9710. _ACEOF
  9711. break
  9712. fi
  9713. done
  9714. fi
  9715. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  9716. $as_echo_n "checking stack direction for C alloca... " >&6; }
  9717. if test "${ac_cv_c_stack_direction+set}" = set; then
  9718. $as_echo_n "(cached) " >&6
  9719. else
  9720. if test "$cross_compiling" = yes; then
  9721. ac_cv_c_stack_direction=0
  9722. else
  9723. cat >conftest.$ac_ext <<_ACEOF
  9724. /* confdefs.h. */
  9725. _ACEOF
  9726. cat confdefs.h >>conftest.$ac_ext
  9727. cat >>conftest.$ac_ext <<_ACEOF
  9728. /* end confdefs.h. */
  9729. $ac_includes_default
  9730. int
  9731. find_stack_direction ()
  9732. {
  9733. static char *addr = 0;
  9734. auto char dummy;
  9735. if (addr == 0)
  9736. {
  9737. addr = &dummy;
  9738. return find_stack_direction ();
  9739. }
  9740. else
  9741. return (&dummy > addr) ? 1 : -1;
  9742. }
  9743. int
  9744. main ()
  9745. {
  9746. return find_stack_direction () < 0;
  9747. }
  9748. _ACEOF
  9749. rm -f conftest$ac_exeext
  9750. if { (ac_try="$ac_link"
  9751. case "(($ac_try" in
  9752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9753. *) ac_try_echo=$ac_try;;
  9754. esac
  9755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9756. $as_echo "$ac_try_echo") >&5
  9757. (eval "$ac_link") 2>&5
  9758. ac_status=$?
  9759. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9760. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9761. { (case "(($ac_try" in
  9762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9763. *) ac_try_echo=$ac_try;;
  9764. esac
  9765. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9766. $as_echo "$ac_try_echo") >&5
  9767. (eval "$ac_try") 2>&5
  9768. ac_status=$?
  9769. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); }; }; then
  9771. ac_cv_c_stack_direction=1
  9772. else
  9773. $as_echo "$as_me: program exited with status $ac_status" >&5
  9774. $as_echo "$as_me: failed program was:" >&5
  9775. sed 's/^/| /' conftest.$ac_ext >&5
  9776. ( exit $ac_status )
  9777. ac_cv_c_stack_direction=-1
  9778. fi
  9779. rm -rf conftest.dSYM
  9780. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9781. fi
  9782. fi
  9783. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  9784. $as_echo "$ac_cv_c_stack_direction" >&6; }
  9785. cat >>confdefs.h <<_ACEOF
  9786. #define STACK_DIRECTION $ac_cv_c_stack_direction
  9787. _ACEOF
  9788. fi
  9789. ac_header_dirent=no
  9790. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  9791. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  9792. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  9793. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  9794. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9795. $as_echo_n "(cached) " >&6
  9796. else
  9797. cat >conftest.$ac_ext <<_ACEOF
  9798. /* confdefs.h. */
  9799. _ACEOF
  9800. cat confdefs.h >>conftest.$ac_ext
  9801. cat >>conftest.$ac_ext <<_ACEOF
  9802. /* end confdefs.h. */
  9803. #include <sys/types.h>
  9804. #include <$ac_hdr>
  9805. int
  9806. main ()
  9807. {
  9808. if ((DIR *) 0)
  9809. return 0;
  9810. ;
  9811. return 0;
  9812. }
  9813. _ACEOF
  9814. rm -f conftest.$ac_objext
  9815. if { (ac_try="$ac_compile"
  9816. case "(($ac_try" in
  9817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9818. *) ac_try_echo=$ac_try;;
  9819. esac
  9820. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9821. $as_echo "$ac_try_echo") >&5
  9822. (eval "$ac_compile") 2>conftest.er1
  9823. ac_status=$?
  9824. grep -v '^ *+' conftest.er1 >conftest.err
  9825. rm -f conftest.er1
  9826. cat conftest.err >&5
  9827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9828. (exit $ac_status); } && {
  9829. test -z "$ac_c_werror_flag" ||
  9830. test ! -s conftest.err
  9831. } && test -s conftest.$ac_objext; then
  9832. eval "$as_ac_Header=yes"
  9833. else
  9834. $as_echo "$as_me: failed program was:" >&5
  9835. sed 's/^/| /' conftest.$ac_ext >&5
  9836. eval "$as_ac_Header=no"
  9837. fi
  9838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9839. fi
  9840. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9841. $as_echo "$as_val"'`
  9842. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9843. $as_echo "$ac_res" >&6; }
  9844. as_val=`eval 'as_val=${'$as_ac_Header'}
  9845. $as_echo "$as_val"'`
  9846. if test "x$as_val" = x""yes; then
  9847. cat >>confdefs.h <<_ACEOF
  9848. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  9849. _ACEOF
  9850. ac_header_dirent=$ac_hdr; break
  9851. fi
  9852. done
  9853. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  9854. if test $ac_header_dirent = dirent.h; then
  9855. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  9856. $as_echo_n "checking for library containing opendir... " >&6; }
  9857. if test "${ac_cv_search_opendir+set}" = set; then
  9858. $as_echo_n "(cached) " >&6
  9859. else
  9860. ac_func_search_save_LIBS=$LIBS
  9861. cat >conftest.$ac_ext <<_ACEOF
  9862. /* confdefs.h. */
  9863. _ACEOF
  9864. cat confdefs.h >>conftest.$ac_ext
  9865. cat >>conftest.$ac_ext <<_ACEOF
  9866. /* end confdefs.h. */
  9867. /* Override any GCC internal prototype to avoid an error.
  9868. Use char because int might match the return type of a GCC
  9869. builtin and then its argument prototype would still apply. */
  9870. #ifdef __cplusplus
  9871. extern "C"
  9872. #endif
  9873. char opendir ();
  9874. int
  9875. main ()
  9876. {
  9877. return opendir ();
  9878. ;
  9879. return 0;
  9880. }
  9881. _ACEOF
  9882. for ac_lib in '' dir; do
  9883. if test -z "$ac_lib"; then
  9884. ac_res="none required"
  9885. else
  9886. ac_res=-l$ac_lib
  9887. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9888. fi
  9889. rm -f conftest.$ac_objext conftest$ac_exeext
  9890. if { (ac_try="$ac_link"
  9891. case "(($ac_try" in
  9892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9893. *) ac_try_echo=$ac_try;;
  9894. esac
  9895. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9896. $as_echo "$ac_try_echo") >&5
  9897. (eval "$ac_link") 2>conftest.er1
  9898. ac_status=$?
  9899. grep -v '^ *+' conftest.er1 >conftest.err
  9900. rm -f conftest.er1
  9901. cat conftest.err >&5
  9902. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9903. (exit $ac_status); } && {
  9904. test -z "$ac_c_werror_flag" ||
  9905. test ! -s conftest.err
  9906. } && test -s conftest$ac_exeext && {
  9907. test "$cross_compiling" = yes ||
  9908. $as_test_x conftest$ac_exeext
  9909. }; then
  9910. ac_cv_search_opendir=$ac_res
  9911. else
  9912. $as_echo "$as_me: failed program was:" >&5
  9913. sed 's/^/| /' conftest.$ac_ext >&5
  9914. fi
  9915. rm -rf conftest.dSYM
  9916. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9917. conftest$ac_exeext
  9918. if test "${ac_cv_search_opendir+set}" = set; then
  9919. break
  9920. fi
  9921. done
  9922. if test "${ac_cv_search_opendir+set}" = set; then
  9923. :
  9924. else
  9925. ac_cv_search_opendir=no
  9926. fi
  9927. rm conftest.$ac_ext
  9928. LIBS=$ac_func_search_save_LIBS
  9929. fi
  9930. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  9931. $as_echo "$ac_cv_search_opendir" >&6; }
  9932. ac_res=$ac_cv_search_opendir
  9933. if test "$ac_res" != no; then
  9934. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9935. fi
  9936. else
  9937. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  9938. $as_echo_n "checking for library containing opendir... " >&6; }
  9939. if test "${ac_cv_search_opendir+set}" = set; then
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. ac_func_search_save_LIBS=$LIBS
  9943. cat >conftest.$ac_ext <<_ACEOF
  9944. /* confdefs.h. */
  9945. _ACEOF
  9946. cat confdefs.h >>conftest.$ac_ext
  9947. cat >>conftest.$ac_ext <<_ACEOF
  9948. /* end confdefs.h. */
  9949. /* Override any GCC internal prototype to avoid an error.
  9950. Use char because int might match the return type of a GCC
  9951. builtin and then its argument prototype would still apply. */
  9952. #ifdef __cplusplus
  9953. extern "C"
  9954. #endif
  9955. char opendir ();
  9956. int
  9957. main ()
  9958. {
  9959. return opendir ();
  9960. ;
  9961. return 0;
  9962. }
  9963. _ACEOF
  9964. for ac_lib in '' x; do
  9965. if test -z "$ac_lib"; then
  9966. ac_res="none required"
  9967. else
  9968. ac_res=-l$ac_lib
  9969. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9970. fi
  9971. rm -f conftest.$ac_objext conftest$ac_exeext
  9972. if { (ac_try="$ac_link"
  9973. case "(($ac_try" in
  9974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9975. *) ac_try_echo=$ac_try;;
  9976. esac
  9977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9978. $as_echo "$ac_try_echo") >&5
  9979. (eval "$ac_link") 2>conftest.er1
  9980. ac_status=$?
  9981. grep -v '^ *+' conftest.er1 >conftest.err
  9982. rm -f conftest.er1
  9983. cat conftest.err >&5
  9984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9985. (exit $ac_status); } && {
  9986. test -z "$ac_c_werror_flag" ||
  9987. test ! -s conftest.err
  9988. } && test -s conftest$ac_exeext && {
  9989. test "$cross_compiling" = yes ||
  9990. $as_test_x conftest$ac_exeext
  9991. }; then
  9992. ac_cv_search_opendir=$ac_res
  9993. else
  9994. $as_echo "$as_me: failed program was:" >&5
  9995. sed 's/^/| /' conftest.$ac_ext >&5
  9996. fi
  9997. rm -rf conftest.dSYM
  9998. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9999. conftest$ac_exeext
  10000. if test "${ac_cv_search_opendir+set}" = set; then
  10001. break
  10002. fi
  10003. done
  10004. if test "${ac_cv_search_opendir+set}" = set; then
  10005. :
  10006. else
  10007. ac_cv_search_opendir=no
  10008. fi
  10009. rm conftest.$ac_ext
  10010. LIBS=$ac_func_search_save_LIBS
  10011. fi
  10012. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  10013. $as_echo "$ac_cv_search_opendir" >&6; }
  10014. ac_res=$ac_cv_search_opendir
  10015. if test "$ac_res" != no; then
  10016. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10017. fi
  10018. fi
  10019. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  10020. $as_echo_n "checking for ANSI C header files... " >&6; }
  10021. if test "${ac_cv_header_stdc+set}" = set; then
  10022. $as_echo_n "(cached) " >&6
  10023. else
  10024. cat >conftest.$ac_ext <<_ACEOF
  10025. /* confdefs.h. */
  10026. _ACEOF
  10027. cat confdefs.h >>conftest.$ac_ext
  10028. cat >>conftest.$ac_ext <<_ACEOF
  10029. /* end confdefs.h. */
  10030. #include <stdlib.h>
  10031. #include <stdarg.h>
  10032. #include <string.h>
  10033. #include <float.h>
  10034. int
  10035. main ()
  10036. {
  10037. ;
  10038. return 0;
  10039. }
  10040. _ACEOF
  10041. rm -f conftest.$ac_objext
  10042. if { (ac_try="$ac_compile"
  10043. case "(($ac_try" in
  10044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10045. *) ac_try_echo=$ac_try;;
  10046. esac
  10047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10048. $as_echo "$ac_try_echo") >&5
  10049. (eval "$ac_compile") 2>conftest.er1
  10050. ac_status=$?
  10051. grep -v '^ *+' conftest.er1 >conftest.err
  10052. rm -f conftest.er1
  10053. cat conftest.err >&5
  10054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10055. (exit $ac_status); } && {
  10056. test -z "$ac_c_werror_flag" ||
  10057. test ! -s conftest.err
  10058. } && test -s conftest.$ac_objext; then
  10059. ac_cv_header_stdc=yes
  10060. else
  10061. $as_echo "$as_me: failed program was:" >&5
  10062. sed 's/^/| /' conftest.$ac_ext >&5
  10063. ac_cv_header_stdc=no
  10064. fi
  10065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10066. if test $ac_cv_header_stdc = yes; then
  10067. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10068. cat >conftest.$ac_ext <<_ACEOF
  10069. /* confdefs.h. */
  10070. _ACEOF
  10071. cat confdefs.h >>conftest.$ac_ext
  10072. cat >>conftest.$ac_ext <<_ACEOF
  10073. /* end confdefs.h. */
  10074. #include <string.h>
  10075. _ACEOF
  10076. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10077. $EGREP "memchr" >/dev/null 2>&1; then
  10078. :
  10079. else
  10080. ac_cv_header_stdc=no
  10081. fi
  10082. rm -f conftest*
  10083. fi
  10084. if test $ac_cv_header_stdc = yes; then
  10085. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10086. cat >conftest.$ac_ext <<_ACEOF
  10087. /* confdefs.h. */
  10088. _ACEOF
  10089. cat confdefs.h >>conftest.$ac_ext
  10090. cat >>conftest.$ac_ext <<_ACEOF
  10091. /* end confdefs.h. */
  10092. #include <stdlib.h>
  10093. _ACEOF
  10094. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10095. $EGREP "free" >/dev/null 2>&1; then
  10096. :
  10097. else
  10098. ac_cv_header_stdc=no
  10099. fi
  10100. rm -f conftest*
  10101. fi
  10102. if test $ac_cv_header_stdc = yes; then
  10103. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10104. if test "$cross_compiling" = yes; then
  10105. :
  10106. else
  10107. cat >conftest.$ac_ext <<_ACEOF
  10108. /* confdefs.h. */
  10109. _ACEOF
  10110. cat confdefs.h >>conftest.$ac_ext
  10111. cat >>conftest.$ac_ext <<_ACEOF
  10112. /* end confdefs.h. */
  10113. #include <ctype.h>
  10114. #include <stdlib.h>
  10115. #if ((' ' & 0x0FF) == 0x020)
  10116. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10117. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10118. #else
  10119. # define ISLOWER(c) \
  10120. (('a' <= (c) && (c) <= 'i') \
  10121. || ('j' <= (c) && (c) <= 'r') \
  10122. || ('s' <= (c) && (c) <= 'z'))
  10123. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10124. #endif
  10125. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10126. int
  10127. main ()
  10128. {
  10129. int i;
  10130. for (i = 0; i < 256; i++)
  10131. if (XOR (islower (i), ISLOWER (i))
  10132. || toupper (i) != TOUPPER (i))
  10133. return 2;
  10134. return 0;
  10135. }
  10136. _ACEOF
  10137. rm -f conftest$ac_exeext
  10138. if { (ac_try="$ac_link"
  10139. case "(($ac_try" in
  10140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10141. *) ac_try_echo=$ac_try;;
  10142. esac
  10143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10144. $as_echo "$ac_try_echo") >&5
  10145. (eval "$ac_link") 2>&5
  10146. ac_status=$?
  10147. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10148. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10149. { (case "(($ac_try" in
  10150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10151. *) ac_try_echo=$ac_try;;
  10152. esac
  10153. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10154. $as_echo "$ac_try_echo") >&5
  10155. (eval "$ac_try") 2>&5
  10156. ac_status=$?
  10157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10158. (exit $ac_status); }; }; then
  10159. :
  10160. else
  10161. $as_echo "$as_me: program exited with status $ac_status" >&5
  10162. $as_echo "$as_me: failed program was:" >&5
  10163. sed 's/^/| /' conftest.$ac_ext >&5
  10164. ( exit $ac_status )
  10165. ac_cv_header_stdc=no
  10166. fi
  10167. rm -rf conftest.dSYM
  10168. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10169. fi
  10170. fi
  10171. fi
  10172. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  10173. $as_echo "$ac_cv_header_stdc" >&6; }
  10174. if test $ac_cv_header_stdc = yes; then
  10175. cat >>confdefs.h <<\_ACEOF
  10176. #define STDC_HEADERS 1
  10177. _ACEOF
  10178. fi
  10179. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10180. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10181. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  10182. $as_echo_n "(cached) " >&6
  10183. else
  10184. cat >conftest.$ac_ext <<_ACEOF
  10185. /* confdefs.h. */
  10186. _ACEOF
  10187. cat confdefs.h >>conftest.$ac_ext
  10188. cat >>conftest.$ac_ext <<_ACEOF
  10189. /* end confdefs.h. */
  10190. #include <sys/types.h>
  10191. #include <sys/wait.h>
  10192. #ifndef WEXITSTATUS
  10193. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10194. #endif
  10195. #ifndef WIFEXITED
  10196. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10197. #endif
  10198. int
  10199. main ()
  10200. {
  10201. int s;
  10202. wait (&s);
  10203. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10204. ;
  10205. return 0;
  10206. }
  10207. _ACEOF
  10208. rm -f conftest.$ac_objext
  10209. if { (ac_try="$ac_compile"
  10210. case "(($ac_try" in
  10211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10212. *) ac_try_echo=$ac_try;;
  10213. esac
  10214. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10215. $as_echo "$ac_try_echo") >&5
  10216. (eval "$ac_compile") 2>conftest.er1
  10217. ac_status=$?
  10218. grep -v '^ *+' conftest.er1 >conftest.err
  10219. rm -f conftest.er1
  10220. cat conftest.err >&5
  10221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10222. (exit $ac_status); } && {
  10223. test -z "$ac_c_werror_flag" ||
  10224. test ! -s conftest.err
  10225. } && test -s conftest.$ac_objext; then
  10226. ac_cv_header_sys_wait_h=yes
  10227. else
  10228. $as_echo "$as_me: failed program was:" >&5
  10229. sed 's/^/| /' conftest.$ac_ext >&5
  10230. ac_cv_header_sys_wait_h=no
  10231. fi
  10232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10233. fi
  10234. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  10235. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10236. if test $ac_cv_header_sys_wait_h = yes; then
  10237. cat >>confdefs.h <<\_ACEOF
  10238. #define HAVE_SYS_WAIT_H 1
  10239. _ACEOF
  10240. fi
  10241. 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
  10242. do
  10243. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10245. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10246. $as_echo_n "checking for $ac_header... " >&6; }
  10247. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10248. $as_echo_n "(cached) " >&6
  10249. fi
  10250. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10251. $as_echo "$as_val"'`
  10252. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10253. $as_echo "$ac_res" >&6; }
  10254. else
  10255. # Is the header compilable?
  10256. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10257. $as_echo_n "checking $ac_header usability... " >&6; }
  10258. cat >conftest.$ac_ext <<_ACEOF
  10259. /* confdefs.h. */
  10260. _ACEOF
  10261. cat confdefs.h >>conftest.$ac_ext
  10262. cat >>conftest.$ac_ext <<_ACEOF
  10263. /* end confdefs.h. */
  10264. $ac_includes_default
  10265. #include <$ac_header>
  10266. _ACEOF
  10267. rm -f conftest.$ac_objext
  10268. if { (ac_try="$ac_compile"
  10269. case "(($ac_try" in
  10270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10271. *) ac_try_echo=$ac_try;;
  10272. esac
  10273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10274. $as_echo "$ac_try_echo") >&5
  10275. (eval "$ac_compile") 2>conftest.er1
  10276. ac_status=$?
  10277. grep -v '^ *+' conftest.er1 >conftest.err
  10278. rm -f conftest.er1
  10279. cat conftest.err >&5
  10280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10281. (exit $ac_status); } && {
  10282. test -z "$ac_c_werror_flag" ||
  10283. test ! -s conftest.err
  10284. } && test -s conftest.$ac_objext; then
  10285. ac_header_compiler=yes
  10286. else
  10287. $as_echo "$as_me: failed program was:" >&5
  10288. sed 's/^/| /' conftest.$ac_ext >&5
  10289. ac_header_compiler=no
  10290. fi
  10291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10292. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10293. $as_echo "$ac_header_compiler" >&6; }
  10294. # Is the header present?
  10295. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10296. $as_echo_n "checking $ac_header presence... " >&6; }
  10297. cat >conftest.$ac_ext <<_ACEOF
  10298. /* confdefs.h. */
  10299. _ACEOF
  10300. cat confdefs.h >>conftest.$ac_ext
  10301. cat >>conftest.$ac_ext <<_ACEOF
  10302. /* end confdefs.h. */
  10303. #include <$ac_header>
  10304. _ACEOF
  10305. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10306. case "(($ac_try" in
  10307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10308. *) ac_try_echo=$ac_try;;
  10309. esac
  10310. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10311. $as_echo "$ac_try_echo") >&5
  10312. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10313. ac_status=$?
  10314. grep -v '^ *+' conftest.er1 >conftest.err
  10315. rm -f conftest.er1
  10316. cat conftest.err >&5
  10317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10318. (exit $ac_status); } >/dev/null && {
  10319. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10320. test ! -s conftest.err
  10321. }; then
  10322. ac_header_preproc=yes
  10323. else
  10324. $as_echo "$as_me: failed program was:" >&5
  10325. sed 's/^/| /' conftest.$ac_ext >&5
  10326. ac_header_preproc=no
  10327. fi
  10328. rm -f conftest.err conftest.$ac_ext
  10329. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10330. $as_echo "$ac_header_preproc" >&6; }
  10331. # So? What about this header?
  10332. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10333. yes:no: )
  10334. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10335. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10336. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10337. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10338. ac_header_preproc=yes
  10339. ;;
  10340. no:yes:* )
  10341. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10342. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10343. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10344. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10345. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10346. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10347. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10348. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10349. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10350. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10351. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10352. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10353. ( cat <<\_ASBOX
  10354. ## ------------------------------------------ ##
  10355. ## Report this to https://issues.asterisk.org ##
  10356. ## ------------------------------------------ ##
  10357. _ASBOX
  10358. ) | sed "s/^/$as_me: WARNING: /" >&2
  10359. ;;
  10360. esac
  10361. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10362. $as_echo_n "checking for $ac_header... " >&6; }
  10363. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. eval "$as_ac_Header=\$ac_header_preproc"
  10367. fi
  10368. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10369. $as_echo "$as_val"'`
  10370. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10371. $as_echo "$ac_res" >&6; }
  10372. fi
  10373. as_val=`eval 'as_val=${'$as_ac_Header'}
  10374. $as_echo "$as_val"'`
  10375. if test "x$as_val" = x""yes; then
  10376. cat >>confdefs.h <<_ACEOF
  10377. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10378. _ACEOF
  10379. fi
  10380. done
  10381. # Any one of these 4 packages support a mandatory requirement, so we want to check on them as early as possible.
  10382. if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
  10383. pbxlibdir=""
  10384. # if --with-TERMCAP=DIR has been specified, use it.
  10385. if test "x${TERMCAP_DIR}" != "x"; then
  10386. if test -d ${TERMCAP_DIR}/lib; then
  10387. pbxlibdir="-L${TERMCAP_DIR}/lib"
  10388. else
  10389. pbxlibdir="-L${TERMCAP_DIR}"
  10390. fi
  10391. fi
  10392. pbxfuncname="tgetent"
  10393. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10394. AST_TERMCAP_FOUND=yes
  10395. else
  10396. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10397. CFLAGS="${CFLAGS} "
  10398. as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
  10399. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
  10400. $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
  10401. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  10402. $as_echo_n "(cached) " >&6
  10403. else
  10404. ac_check_lib_save_LIBS=$LIBS
  10405. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  10406. cat >conftest.$ac_ext <<_ACEOF
  10407. /* confdefs.h. */
  10408. _ACEOF
  10409. cat confdefs.h >>conftest.$ac_ext
  10410. cat >>conftest.$ac_ext <<_ACEOF
  10411. /* end confdefs.h. */
  10412. /* Override any GCC internal prototype to avoid an error.
  10413. Use char because int might match the return type of a GCC
  10414. builtin and then its argument prototype would still apply. */
  10415. #ifdef __cplusplus
  10416. extern "C"
  10417. #endif
  10418. char ${pbxfuncname} ();
  10419. int
  10420. main ()
  10421. {
  10422. return ${pbxfuncname} ();
  10423. ;
  10424. return 0;
  10425. }
  10426. _ACEOF
  10427. rm -f conftest.$ac_objext conftest$ac_exeext
  10428. if { (ac_try="$ac_link"
  10429. case "(($ac_try" in
  10430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10431. *) ac_try_echo=$ac_try;;
  10432. esac
  10433. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10434. $as_echo "$ac_try_echo") >&5
  10435. (eval "$ac_link") 2>conftest.er1
  10436. ac_status=$?
  10437. grep -v '^ *+' conftest.er1 >conftest.err
  10438. rm -f conftest.er1
  10439. cat conftest.err >&5
  10440. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10441. (exit $ac_status); } && {
  10442. test -z "$ac_c_werror_flag" ||
  10443. test ! -s conftest.err
  10444. } && test -s conftest$ac_exeext && {
  10445. test "$cross_compiling" = yes ||
  10446. $as_test_x conftest$ac_exeext
  10447. }; then
  10448. eval "$as_ac_Lib=yes"
  10449. else
  10450. $as_echo "$as_me: failed program was:" >&5
  10451. sed 's/^/| /' conftest.$ac_ext >&5
  10452. eval "$as_ac_Lib=no"
  10453. fi
  10454. rm -rf conftest.dSYM
  10455. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10456. conftest$ac_exeext conftest.$ac_ext
  10457. LIBS=$ac_check_lib_save_LIBS
  10458. fi
  10459. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  10460. $as_echo "$as_val"'`
  10461. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10462. $as_echo "$ac_res" >&6; }
  10463. as_val=`eval 'as_val=${'$as_ac_Lib'}
  10464. $as_echo "$as_val"'`
  10465. if test "x$as_val" = x""yes; then
  10466. AST_TERMCAP_FOUND=yes
  10467. else
  10468. AST_TERMCAP_FOUND=no
  10469. fi
  10470. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10471. fi
  10472. # now check for the header.
  10473. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  10474. TERMCAP_LIB="${pbxlibdir} -ltermcap "
  10475. # if --with-TERMCAP=DIR has been specified, use it.
  10476. if test "x${TERMCAP_DIR}" != "x"; then
  10477. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  10478. fi
  10479. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  10480. if test "x" = "x" ; then # no header, assume found
  10481. TERMCAP_HEADER_FOUND="1"
  10482. else # check for the header
  10483. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10484. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  10485. if test "${ac_cv_header_+set}" = set; then
  10486. { $as_echo "$as_me:$LINENO: checking for " >&5
  10487. $as_echo_n "checking for ... " >&6; }
  10488. if test "${ac_cv_header_+set}" = set; then
  10489. $as_echo_n "(cached) " >&6
  10490. fi
  10491. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  10492. $as_echo "$ac_cv_header_" >&6; }
  10493. else
  10494. # Is the header compilable?
  10495. { $as_echo "$as_me:$LINENO: checking usability" >&5
  10496. $as_echo_n "checking usability... " >&6; }
  10497. cat >conftest.$ac_ext <<_ACEOF
  10498. /* confdefs.h. */
  10499. _ACEOF
  10500. cat confdefs.h >>conftest.$ac_ext
  10501. cat >>conftest.$ac_ext <<_ACEOF
  10502. /* end confdefs.h. */
  10503. $ac_includes_default
  10504. #include <>
  10505. _ACEOF
  10506. rm -f conftest.$ac_objext
  10507. if { (ac_try="$ac_compile"
  10508. case "(($ac_try" in
  10509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10510. *) ac_try_echo=$ac_try;;
  10511. esac
  10512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10513. $as_echo "$ac_try_echo") >&5
  10514. (eval "$ac_compile") 2>conftest.er1
  10515. ac_status=$?
  10516. grep -v '^ *+' conftest.er1 >conftest.err
  10517. rm -f conftest.er1
  10518. cat conftest.err >&5
  10519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. (exit $ac_status); } && {
  10521. test -z "$ac_c_werror_flag" ||
  10522. test ! -s conftest.err
  10523. } && test -s conftest.$ac_objext; then
  10524. ac_header_compiler=yes
  10525. else
  10526. $as_echo "$as_me: failed program was:" >&5
  10527. sed 's/^/| /' conftest.$ac_ext >&5
  10528. ac_header_compiler=no
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10532. $as_echo "$ac_header_compiler" >&6; }
  10533. # Is the header present?
  10534. { $as_echo "$as_me:$LINENO: checking presence" >&5
  10535. $as_echo_n "checking presence... " >&6; }
  10536. cat >conftest.$ac_ext <<_ACEOF
  10537. /* confdefs.h. */
  10538. _ACEOF
  10539. cat confdefs.h >>conftest.$ac_ext
  10540. cat >>conftest.$ac_ext <<_ACEOF
  10541. /* end confdefs.h. */
  10542. #include <>
  10543. _ACEOF
  10544. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10545. case "(($ac_try" in
  10546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10547. *) ac_try_echo=$ac_try;;
  10548. esac
  10549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10550. $as_echo "$ac_try_echo") >&5
  10551. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10552. ac_status=$?
  10553. grep -v '^ *+' conftest.er1 >conftest.err
  10554. rm -f conftest.er1
  10555. cat conftest.err >&5
  10556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10557. (exit $ac_status); } >/dev/null && {
  10558. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10559. test ! -s conftest.err
  10560. }; then
  10561. ac_header_preproc=yes
  10562. else
  10563. $as_echo "$as_me: failed program was:" >&5
  10564. sed 's/^/| /' conftest.$ac_ext >&5
  10565. ac_header_preproc=no
  10566. fi
  10567. rm -f conftest.err conftest.$ac_ext
  10568. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10569. $as_echo "$ac_header_preproc" >&6; }
  10570. # So? What about this header?
  10571. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10572. yes:no: )
  10573. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  10574. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  10575. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  10576. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  10577. ac_header_preproc=yes
  10578. ;;
  10579. no:yes:* )
  10580. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  10581. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  10582. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  10583. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  10584. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  10585. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  10586. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  10587. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  10588. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  10589. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  10590. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  10591. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  10592. ( cat <<\_ASBOX
  10593. ## ------------------------------------------ ##
  10594. ## Report this to https://issues.asterisk.org ##
  10595. ## ------------------------------------------ ##
  10596. _ASBOX
  10597. ) | sed "s/^/$as_me: WARNING: /" >&2
  10598. ;;
  10599. esac
  10600. { $as_echo "$as_me:$LINENO: checking for " >&5
  10601. $as_echo_n "checking for ... " >&6; }
  10602. if test "${ac_cv_header_+set}" = set; then
  10603. $as_echo_n "(cached) " >&6
  10604. else
  10605. ac_cv_header_=$ac_header_preproc
  10606. fi
  10607. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  10608. $as_echo "$ac_cv_header_" >&6; }
  10609. fi
  10610. if test "x$ac_cv_header_" = x""yes; then
  10611. TERMCAP_HEADER_FOUND=1
  10612. else
  10613. TERMCAP_HEADER_FOUND=0
  10614. fi
  10615. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10616. fi
  10617. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  10618. TERMCAP_LIB=""
  10619. TERMCAP_INCLUDE=""
  10620. else
  10621. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10622. TERMCAP_LIB=""
  10623. fi
  10624. PBX_TERMCAP=1
  10625. cat >>confdefs.h <<_ACEOF
  10626. #define HAVE_TERMCAP 1
  10627. _ACEOF
  10628. fi
  10629. fi
  10630. fi
  10631. if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
  10632. pbxlibdir=""
  10633. # if --with-TINFO=DIR has been specified, use it.
  10634. if test "x${TINFO_DIR}" != "x"; then
  10635. if test -d ${TINFO_DIR}/lib; then
  10636. pbxlibdir="-L${TINFO_DIR}/lib"
  10637. else
  10638. pbxlibdir="-L${TINFO_DIR}"
  10639. fi
  10640. fi
  10641. pbxfuncname="tgetent"
  10642. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10643. AST_TINFO_FOUND=yes
  10644. else
  10645. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10646. CFLAGS="${CFLAGS} "
  10647. as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
  10648. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
  10649. $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
  10650. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  10651. $as_echo_n "(cached) " >&6
  10652. else
  10653. ac_check_lib_save_LIBS=$LIBS
  10654. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  10655. cat >conftest.$ac_ext <<_ACEOF
  10656. /* confdefs.h. */
  10657. _ACEOF
  10658. cat confdefs.h >>conftest.$ac_ext
  10659. cat >>conftest.$ac_ext <<_ACEOF
  10660. /* end confdefs.h. */
  10661. /* Override any GCC internal prototype to avoid an error.
  10662. Use char because int might match the return type of a GCC
  10663. builtin and then its argument prototype would still apply. */
  10664. #ifdef __cplusplus
  10665. extern "C"
  10666. #endif
  10667. char ${pbxfuncname} ();
  10668. int
  10669. main ()
  10670. {
  10671. return ${pbxfuncname} ();
  10672. ;
  10673. return 0;
  10674. }
  10675. _ACEOF
  10676. rm -f conftest.$ac_objext conftest$ac_exeext
  10677. if { (ac_try="$ac_link"
  10678. case "(($ac_try" in
  10679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10680. *) ac_try_echo=$ac_try;;
  10681. esac
  10682. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10683. $as_echo "$ac_try_echo") >&5
  10684. (eval "$ac_link") 2>conftest.er1
  10685. ac_status=$?
  10686. grep -v '^ *+' conftest.er1 >conftest.err
  10687. rm -f conftest.er1
  10688. cat conftest.err >&5
  10689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10690. (exit $ac_status); } && {
  10691. test -z "$ac_c_werror_flag" ||
  10692. test ! -s conftest.err
  10693. } && test -s conftest$ac_exeext && {
  10694. test "$cross_compiling" = yes ||
  10695. $as_test_x conftest$ac_exeext
  10696. }; then
  10697. eval "$as_ac_Lib=yes"
  10698. else
  10699. $as_echo "$as_me: failed program was:" >&5
  10700. sed 's/^/| /' conftest.$ac_ext >&5
  10701. eval "$as_ac_Lib=no"
  10702. fi
  10703. rm -rf conftest.dSYM
  10704. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10705. conftest$ac_exeext conftest.$ac_ext
  10706. LIBS=$ac_check_lib_save_LIBS
  10707. fi
  10708. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  10709. $as_echo "$as_val"'`
  10710. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10711. $as_echo "$ac_res" >&6; }
  10712. as_val=`eval 'as_val=${'$as_ac_Lib'}
  10713. $as_echo "$as_val"'`
  10714. if test "x$as_val" = x""yes; then
  10715. AST_TINFO_FOUND=yes
  10716. else
  10717. AST_TINFO_FOUND=no
  10718. fi
  10719. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10720. fi
  10721. # now check for the header.
  10722. if test "${AST_TINFO_FOUND}" = "yes"; then
  10723. TINFO_LIB="${pbxlibdir} -ltinfo "
  10724. # if --with-TINFO=DIR has been specified, use it.
  10725. if test "x${TINFO_DIR}" != "x"; then
  10726. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  10727. fi
  10728. TINFO_INCLUDE="${TINFO_INCLUDE} "
  10729. if test "x" = "x" ; then # no header, assume found
  10730. TINFO_HEADER_FOUND="1"
  10731. else # check for the header
  10732. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10733. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  10734. if test "${ac_cv_header_+set}" = set; then
  10735. { $as_echo "$as_me:$LINENO: checking for " >&5
  10736. $as_echo_n "checking for ... " >&6; }
  10737. if test "${ac_cv_header_+set}" = set; then
  10738. $as_echo_n "(cached) " >&6
  10739. fi
  10740. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  10741. $as_echo "$ac_cv_header_" >&6; }
  10742. else
  10743. # Is the header compilable?
  10744. { $as_echo "$as_me:$LINENO: checking usability" >&5
  10745. $as_echo_n "checking usability... " >&6; }
  10746. cat >conftest.$ac_ext <<_ACEOF
  10747. /* confdefs.h. */
  10748. _ACEOF
  10749. cat confdefs.h >>conftest.$ac_ext
  10750. cat >>conftest.$ac_ext <<_ACEOF
  10751. /* end confdefs.h. */
  10752. $ac_includes_default
  10753. #include <>
  10754. _ACEOF
  10755. rm -f conftest.$ac_objext
  10756. if { (ac_try="$ac_compile"
  10757. case "(($ac_try" in
  10758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10759. *) ac_try_echo=$ac_try;;
  10760. esac
  10761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10762. $as_echo "$ac_try_echo") >&5
  10763. (eval "$ac_compile") 2>conftest.er1
  10764. ac_status=$?
  10765. grep -v '^ *+' conftest.er1 >conftest.err
  10766. rm -f conftest.er1
  10767. cat conftest.err >&5
  10768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10769. (exit $ac_status); } && {
  10770. test -z "$ac_c_werror_flag" ||
  10771. test ! -s conftest.err
  10772. } && test -s conftest.$ac_objext; then
  10773. ac_header_compiler=yes
  10774. else
  10775. $as_echo "$as_me: failed program was:" >&5
  10776. sed 's/^/| /' conftest.$ac_ext >&5
  10777. ac_header_compiler=no
  10778. fi
  10779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10780. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10781. $as_echo "$ac_header_compiler" >&6; }
  10782. # Is the header present?
  10783. { $as_echo "$as_me:$LINENO: checking presence" >&5
  10784. $as_echo_n "checking presence... " >&6; }
  10785. cat >conftest.$ac_ext <<_ACEOF
  10786. /* confdefs.h. */
  10787. _ACEOF
  10788. cat confdefs.h >>conftest.$ac_ext
  10789. cat >>conftest.$ac_ext <<_ACEOF
  10790. /* end confdefs.h. */
  10791. #include <>
  10792. _ACEOF
  10793. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10794. case "(($ac_try" in
  10795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10796. *) ac_try_echo=$ac_try;;
  10797. esac
  10798. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10799. $as_echo "$ac_try_echo") >&5
  10800. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10801. ac_status=$?
  10802. grep -v '^ *+' conftest.er1 >conftest.err
  10803. rm -f conftest.er1
  10804. cat conftest.err >&5
  10805. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10806. (exit $ac_status); } >/dev/null && {
  10807. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10808. test ! -s conftest.err
  10809. }; then
  10810. ac_header_preproc=yes
  10811. else
  10812. $as_echo "$as_me: failed program was:" >&5
  10813. sed 's/^/| /' conftest.$ac_ext >&5
  10814. ac_header_preproc=no
  10815. fi
  10816. rm -f conftest.err conftest.$ac_ext
  10817. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10818. $as_echo "$ac_header_preproc" >&6; }
  10819. # So? What about this header?
  10820. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10821. yes:no: )
  10822. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  10823. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  10824. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  10825. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  10826. ac_header_preproc=yes
  10827. ;;
  10828. no:yes:* )
  10829. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  10830. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  10831. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  10832. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  10833. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  10834. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  10835. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  10836. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  10837. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  10838. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  10839. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  10840. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  10841. ( cat <<\_ASBOX
  10842. ## ------------------------------------------ ##
  10843. ## Report this to https://issues.asterisk.org ##
  10844. ## ------------------------------------------ ##
  10845. _ASBOX
  10846. ) | sed "s/^/$as_me: WARNING: /" >&2
  10847. ;;
  10848. esac
  10849. { $as_echo "$as_me:$LINENO: checking for " >&5
  10850. $as_echo_n "checking for ... " >&6; }
  10851. if test "${ac_cv_header_+set}" = set; then
  10852. $as_echo_n "(cached) " >&6
  10853. else
  10854. ac_cv_header_=$ac_header_preproc
  10855. fi
  10856. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  10857. $as_echo "$ac_cv_header_" >&6; }
  10858. fi
  10859. if test "x$ac_cv_header_" = x""yes; then
  10860. TINFO_HEADER_FOUND=1
  10861. else
  10862. TINFO_HEADER_FOUND=0
  10863. fi
  10864. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10865. fi
  10866. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  10867. TINFO_LIB=""
  10868. TINFO_INCLUDE=""
  10869. else
  10870. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10871. TINFO_LIB=""
  10872. fi
  10873. PBX_TINFO=1
  10874. cat >>confdefs.h <<_ACEOF
  10875. #define HAVE_TINFO 1
  10876. _ACEOF
  10877. fi
  10878. fi
  10879. fi
  10880. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  10881. pbxlibdir=""
  10882. # if --with-CURSES=DIR has been specified, use it.
  10883. if test "x${CURSES_DIR}" != "x"; then
  10884. if test -d ${CURSES_DIR}/lib; then
  10885. pbxlibdir="-L${CURSES_DIR}/lib"
  10886. else
  10887. pbxlibdir="-L${CURSES_DIR}"
  10888. fi
  10889. fi
  10890. pbxfuncname="initscr"
  10891. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10892. AST_CURSES_FOUND=yes
  10893. else
  10894. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10895. CFLAGS="${CFLAGS} "
  10896. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  10897. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
  10898. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  10899. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  10900. $as_echo_n "(cached) " >&6
  10901. else
  10902. ac_check_lib_save_LIBS=$LIBS
  10903. LIBS="-lcurses ${pbxlibdir} $LIBS"
  10904. cat >conftest.$ac_ext <<_ACEOF
  10905. /* confdefs.h. */
  10906. _ACEOF
  10907. cat confdefs.h >>conftest.$ac_ext
  10908. cat >>conftest.$ac_ext <<_ACEOF
  10909. /* end confdefs.h. */
  10910. /* Override any GCC internal prototype to avoid an error.
  10911. Use char because int might match the return type of a GCC
  10912. builtin and then its argument prototype would still apply. */
  10913. #ifdef __cplusplus
  10914. extern "C"
  10915. #endif
  10916. char ${pbxfuncname} ();
  10917. int
  10918. main ()
  10919. {
  10920. return ${pbxfuncname} ();
  10921. ;
  10922. return 0;
  10923. }
  10924. _ACEOF
  10925. rm -f conftest.$ac_objext conftest$ac_exeext
  10926. if { (ac_try="$ac_link"
  10927. case "(($ac_try" in
  10928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10929. *) ac_try_echo=$ac_try;;
  10930. esac
  10931. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10932. $as_echo "$ac_try_echo") >&5
  10933. (eval "$ac_link") 2>conftest.er1
  10934. ac_status=$?
  10935. grep -v '^ *+' conftest.er1 >conftest.err
  10936. rm -f conftest.er1
  10937. cat conftest.err >&5
  10938. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10939. (exit $ac_status); } && {
  10940. test -z "$ac_c_werror_flag" ||
  10941. test ! -s conftest.err
  10942. } && test -s conftest$ac_exeext && {
  10943. test "$cross_compiling" = yes ||
  10944. $as_test_x conftest$ac_exeext
  10945. }; then
  10946. eval "$as_ac_Lib=yes"
  10947. else
  10948. $as_echo "$as_me: failed program was:" >&5
  10949. sed 's/^/| /' conftest.$ac_ext >&5
  10950. eval "$as_ac_Lib=no"
  10951. fi
  10952. rm -rf conftest.dSYM
  10953. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10954. conftest$ac_exeext conftest.$ac_ext
  10955. LIBS=$ac_check_lib_save_LIBS
  10956. fi
  10957. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  10958. $as_echo "$as_val"'`
  10959. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10960. $as_echo "$ac_res" >&6; }
  10961. as_val=`eval 'as_val=${'$as_ac_Lib'}
  10962. $as_echo "$as_val"'`
  10963. if test "x$as_val" = x""yes; then
  10964. AST_CURSES_FOUND=yes
  10965. else
  10966. AST_CURSES_FOUND=no
  10967. fi
  10968. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10969. fi
  10970. # now check for the header.
  10971. if test "${AST_CURSES_FOUND}" = "yes"; then
  10972. CURSES_LIB="${pbxlibdir} -lcurses "
  10973. # if --with-CURSES=DIR has been specified, use it.
  10974. if test "x${CURSES_DIR}" != "x"; then
  10975. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  10976. fi
  10977. CURSES_INCLUDE="${CURSES_INCLUDE} "
  10978. if test "xcurses.h" = "x" ; then # no header, assume found
  10979. CURSES_HEADER_FOUND="1"
  10980. else # check for the header
  10981. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10982. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  10983. if test "${ac_cv_header_curses_h+set}" = set; then
  10984. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  10985. $as_echo_n "checking for curses.h... " >&6; }
  10986. if test "${ac_cv_header_curses_h+set}" = set; then
  10987. $as_echo_n "(cached) " >&6
  10988. fi
  10989. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  10990. $as_echo "$ac_cv_header_curses_h" >&6; }
  10991. else
  10992. # Is the header compilable?
  10993. { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
  10994. $as_echo_n "checking curses.h usability... " >&6; }
  10995. cat >conftest.$ac_ext <<_ACEOF
  10996. /* confdefs.h. */
  10997. _ACEOF
  10998. cat confdefs.h >>conftest.$ac_ext
  10999. cat >>conftest.$ac_ext <<_ACEOF
  11000. /* end confdefs.h. */
  11001. $ac_includes_default
  11002. #include <curses.h>
  11003. _ACEOF
  11004. rm -f conftest.$ac_objext
  11005. if { (ac_try="$ac_compile"
  11006. case "(($ac_try" in
  11007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11008. *) ac_try_echo=$ac_try;;
  11009. esac
  11010. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11011. $as_echo "$ac_try_echo") >&5
  11012. (eval "$ac_compile") 2>conftest.er1
  11013. ac_status=$?
  11014. grep -v '^ *+' conftest.er1 >conftest.err
  11015. rm -f conftest.er1
  11016. cat conftest.err >&5
  11017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11018. (exit $ac_status); } && {
  11019. test -z "$ac_c_werror_flag" ||
  11020. test ! -s conftest.err
  11021. } && test -s conftest.$ac_objext; then
  11022. ac_header_compiler=yes
  11023. else
  11024. $as_echo "$as_me: failed program was:" >&5
  11025. sed 's/^/| /' conftest.$ac_ext >&5
  11026. ac_header_compiler=no
  11027. fi
  11028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11029. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11030. $as_echo "$ac_header_compiler" >&6; }
  11031. # Is the header present?
  11032. { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
  11033. $as_echo_n "checking curses.h presence... " >&6; }
  11034. cat >conftest.$ac_ext <<_ACEOF
  11035. /* confdefs.h. */
  11036. _ACEOF
  11037. cat confdefs.h >>conftest.$ac_ext
  11038. cat >>conftest.$ac_ext <<_ACEOF
  11039. /* end confdefs.h. */
  11040. #include <curses.h>
  11041. _ACEOF
  11042. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11043. case "(($ac_try" in
  11044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11045. *) ac_try_echo=$ac_try;;
  11046. esac
  11047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11048. $as_echo "$ac_try_echo") >&5
  11049. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11050. ac_status=$?
  11051. grep -v '^ *+' conftest.er1 >conftest.err
  11052. rm -f conftest.er1
  11053. cat conftest.err >&5
  11054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11055. (exit $ac_status); } >/dev/null && {
  11056. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11057. test ! -s conftest.err
  11058. }; then
  11059. ac_header_preproc=yes
  11060. else
  11061. $as_echo "$as_me: failed program was:" >&5
  11062. sed 's/^/| /' conftest.$ac_ext >&5
  11063. ac_header_preproc=no
  11064. fi
  11065. rm -f conftest.err conftest.$ac_ext
  11066. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11067. $as_echo "$ac_header_preproc" >&6; }
  11068. # So? What about this header?
  11069. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11070. yes:no: )
  11071. { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11072. $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11073. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
  11074. $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
  11075. ac_header_preproc=yes
  11076. ;;
  11077. no:yes:* )
  11078. { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
  11079. $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
  11080. { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
  11081. $as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
  11082. { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
  11083. $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
  11084. { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
  11085. $as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11086. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
  11087. $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
  11088. { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
  11089. $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
  11090. ( cat <<\_ASBOX
  11091. ## ------------------------------------------ ##
  11092. ## Report this to https://issues.asterisk.org ##
  11093. ## ------------------------------------------ ##
  11094. _ASBOX
  11095. ) | sed "s/^/$as_me: WARNING: /" >&2
  11096. ;;
  11097. esac
  11098. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  11099. $as_echo_n "checking for curses.h... " >&6; }
  11100. if test "${ac_cv_header_curses_h+set}" = set; then
  11101. $as_echo_n "(cached) " >&6
  11102. else
  11103. ac_cv_header_curses_h=$ac_header_preproc
  11104. fi
  11105. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  11106. $as_echo "$ac_cv_header_curses_h" >&6; }
  11107. fi
  11108. if test "x$ac_cv_header_curses_h" = x""yes; then
  11109. CURSES_HEADER_FOUND=1
  11110. else
  11111. CURSES_HEADER_FOUND=0
  11112. fi
  11113. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11114. fi
  11115. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  11116. CURSES_LIB=""
  11117. CURSES_INCLUDE=""
  11118. else
  11119. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11120. CURSES_LIB=""
  11121. fi
  11122. PBX_CURSES=1
  11123. cat >>confdefs.h <<_ACEOF
  11124. #define HAVE_CURSES 1
  11125. _ACEOF
  11126. fi
  11127. fi
  11128. fi
  11129. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  11130. pbxlibdir=""
  11131. # if --with-NCURSES=DIR has been specified, use it.
  11132. if test "x${NCURSES_DIR}" != "x"; then
  11133. if test -d ${NCURSES_DIR}/lib; then
  11134. pbxlibdir="-L${NCURSES_DIR}/lib"
  11135. else
  11136. pbxlibdir="-L${NCURSES_DIR}"
  11137. fi
  11138. fi
  11139. pbxfuncname="initscr"
  11140. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11141. AST_NCURSES_FOUND=yes
  11142. else
  11143. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11144. CFLAGS="${CFLAGS} "
  11145. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  11146. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
  11147. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  11148. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  11149. $as_echo_n "(cached) " >&6
  11150. else
  11151. ac_check_lib_save_LIBS=$LIBS
  11152. LIBS="-lncurses ${pbxlibdir} $LIBS"
  11153. cat >conftest.$ac_ext <<_ACEOF
  11154. /* confdefs.h. */
  11155. _ACEOF
  11156. cat confdefs.h >>conftest.$ac_ext
  11157. cat >>conftest.$ac_ext <<_ACEOF
  11158. /* end confdefs.h. */
  11159. /* Override any GCC internal prototype to avoid an error.
  11160. Use char because int might match the return type of a GCC
  11161. builtin and then its argument prototype would still apply. */
  11162. #ifdef __cplusplus
  11163. extern "C"
  11164. #endif
  11165. char ${pbxfuncname} ();
  11166. int
  11167. main ()
  11168. {
  11169. return ${pbxfuncname} ();
  11170. ;
  11171. return 0;
  11172. }
  11173. _ACEOF
  11174. rm -f conftest.$ac_objext conftest$ac_exeext
  11175. if { (ac_try="$ac_link"
  11176. case "(($ac_try" in
  11177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11178. *) ac_try_echo=$ac_try;;
  11179. esac
  11180. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11181. $as_echo "$ac_try_echo") >&5
  11182. (eval "$ac_link") 2>conftest.er1
  11183. ac_status=$?
  11184. grep -v '^ *+' conftest.er1 >conftest.err
  11185. rm -f conftest.er1
  11186. cat conftest.err >&5
  11187. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11188. (exit $ac_status); } && {
  11189. test -z "$ac_c_werror_flag" ||
  11190. test ! -s conftest.err
  11191. } && test -s conftest$ac_exeext && {
  11192. test "$cross_compiling" = yes ||
  11193. $as_test_x conftest$ac_exeext
  11194. }; then
  11195. eval "$as_ac_Lib=yes"
  11196. else
  11197. $as_echo "$as_me: failed program was:" >&5
  11198. sed 's/^/| /' conftest.$ac_ext >&5
  11199. eval "$as_ac_Lib=no"
  11200. fi
  11201. rm -rf conftest.dSYM
  11202. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11203. conftest$ac_exeext conftest.$ac_ext
  11204. LIBS=$ac_check_lib_save_LIBS
  11205. fi
  11206. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  11207. $as_echo "$as_val"'`
  11208. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11209. $as_echo "$ac_res" >&6; }
  11210. as_val=`eval 'as_val=${'$as_ac_Lib'}
  11211. $as_echo "$as_val"'`
  11212. if test "x$as_val" = x""yes; then
  11213. AST_NCURSES_FOUND=yes
  11214. else
  11215. AST_NCURSES_FOUND=no
  11216. fi
  11217. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11218. fi
  11219. # now check for the header.
  11220. if test "${AST_NCURSES_FOUND}" = "yes"; then
  11221. NCURSES_LIB="${pbxlibdir} -lncurses "
  11222. # if --with-NCURSES=DIR has been specified, use it.
  11223. if test "x${NCURSES_DIR}" != "x"; then
  11224. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  11225. fi
  11226. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  11227. if test "xcurses.h" = "x" ; then # no header, assume found
  11228. NCURSES_HEADER_FOUND="1"
  11229. else # check for the header
  11230. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11231. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  11232. if test "${ac_cv_header_curses_h+set}" = set; then
  11233. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  11234. $as_echo_n "checking for curses.h... " >&6; }
  11235. if test "${ac_cv_header_curses_h+set}" = set; then
  11236. $as_echo_n "(cached) " >&6
  11237. fi
  11238. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  11239. $as_echo "$ac_cv_header_curses_h" >&6; }
  11240. else
  11241. # Is the header compilable?
  11242. { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
  11243. $as_echo_n "checking curses.h usability... " >&6; }
  11244. cat >conftest.$ac_ext <<_ACEOF
  11245. /* confdefs.h. */
  11246. _ACEOF
  11247. cat confdefs.h >>conftest.$ac_ext
  11248. cat >>conftest.$ac_ext <<_ACEOF
  11249. /* end confdefs.h. */
  11250. $ac_includes_default
  11251. #include <curses.h>
  11252. _ACEOF
  11253. rm -f conftest.$ac_objext
  11254. if { (ac_try="$ac_compile"
  11255. case "(($ac_try" in
  11256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11257. *) ac_try_echo=$ac_try;;
  11258. esac
  11259. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11260. $as_echo "$ac_try_echo") >&5
  11261. (eval "$ac_compile") 2>conftest.er1
  11262. ac_status=$?
  11263. grep -v '^ *+' conftest.er1 >conftest.err
  11264. rm -f conftest.er1
  11265. cat conftest.err >&5
  11266. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11267. (exit $ac_status); } && {
  11268. test -z "$ac_c_werror_flag" ||
  11269. test ! -s conftest.err
  11270. } && test -s conftest.$ac_objext; then
  11271. ac_header_compiler=yes
  11272. else
  11273. $as_echo "$as_me: failed program was:" >&5
  11274. sed 's/^/| /' conftest.$ac_ext >&5
  11275. ac_header_compiler=no
  11276. fi
  11277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11278. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11279. $as_echo "$ac_header_compiler" >&6; }
  11280. # Is the header present?
  11281. { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
  11282. $as_echo_n "checking curses.h presence... " >&6; }
  11283. cat >conftest.$ac_ext <<_ACEOF
  11284. /* confdefs.h. */
  11285. _ACEOF
  11286. cat confdefs.h >>conftest.$ac_ext
  11287. cat >>conftest.$ac_ext <<_ACEOF
  11288. /* end confdefs.h. */
  11289. #include <curses.h>
  11290. _ACEOF
  11291. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11292. case "(($ac_try" in
  11293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11294. *) ac_try_echo=$ac_try;;
  11295. esac
  11296. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11297. $as_echo "$ac_try_echo") >&5
  11298. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11299. ac_status=$?
  11300. grep -v '^ *+' conftest.er1 >conftest.err
  11301. rm -f conftest.er1
  11302. cat conftest.err >&5
  11303. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11304. (exit $ac_status); } >/dev/null && {
  11305. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11306. test ! -s conftest.err
  11307. }; then
  11308. ac_header_preproc=yes
  11309. else
  11310. $as_echo "$as_me: failed program was:" >&5
  11311. sed 's/^/| /' conftest.$ac_ext >&5
  11312. ac_header_preproc=no
  11313. fi
  11314. rm -f conftest.err conftest.$ac_ext
  11315. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11316. $as_echo "$ac_header_preproc" >&6; }
  11317. # So? What about this header?
  11318. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11319. yes:no: )
  11320. { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11321. $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11322. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
  11323. $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
  11324. ac_header_preproc=yes
  11325. ;;
  11326. no:yes:* )
  11327. { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
  11328. $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
  11329. { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
  11330. $as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
  11331. { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
  11332. $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
  11333. { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
  11334. $as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11335. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
  11336. $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
  11337. { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
  11338. $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
  11339. ( cat <<\_ASBOX
  11340. ## ------------------------------------------ ##
  11341. ## Report this to https://issues.asterisk.org ##
  11342. ## ------------------------------------------ ##
  11343. _ASBOX
  11344. ) | sed "s/^/$as_me: WARNING: /" >&2
  11345. ;;
  11346. esac
  11347. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  11348. $as_echo_n "checking for curses.h... " >&6; }
  11349. if test "${ac_cv_header_curses_h+set}" = set; then
  11350. $as_echo_n "(cached) " >&6
  11351. else
  11352. ac_cv_header_curses_h=$ac_header_preproc
  11353. fi
  11354. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  11355. $as_echo "$ac_cv_header_curses_h" >&6; }
  11356. fi
  11357. if test "x$ac_cv_header_curses_h" = x""yes; then
  11358. NCURSES_HEADER_FOUND=1
  11359. else
  11360. NCURSES_HEADER_FOUND=0
  11361. fi
  11362. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11363. fi
  11364. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  11365. NCURSES_LIB=""
  11366. NCURSES_INCLUDE=""
  11367. else
  11368. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11369. NCURSES_LIB=""
  11370. fi
  11371. PBX_NCURSES=1
  11372. cat >>confdefs.h <<_ACEOF
  11373. #define HAVE_NCURSES 1
  11374. _ACEOF
  11375. fi
  11376. fi
  11377. fi
  11378. EDITLINE_LIB=""
  11379. if test "x$TERMCAP_LIB" != "x" ; then
  11380. EDITLINE_LIB="$TERMCAP_LIB"
  11381. elif test "x$TINFO_LIB" != "x" ; then
  11382. EDITLINE_LIB="$TINFO_LIB"
  11383. elif test "x$CURSES_LIB" != "x" ; then
  11384. EDITLINE_LIB="$CURSES_LIB"
  11385. elif test "x$NCURSES_LIB" != "x" ; then
  11386. EDITLINE_LIB="$NCURSES_LIB"
  11387. else
  11388. { { $as_echo "$as_me:$LINENO: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" >&5
  11389. $as_echo "$as_me: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" >&2;}
  11390. { (exit 1); exit 1; }; }
  11391. fi
  11392. # Another mandatory item (unless it's explicitly disabled)
  11393. # Check whether --enable-xmldoc was given.
  11394. if test "${enable_xmldoc+set}" = set; then
  11395. enableval=$enable_xmldoc; case "${enableval}" in
  11396. y|ye|yes) disable_xmldoc=no ;;
  11397. n|no) disable_xmldoc=yes ;;
  11398. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-xmldoc" >&5
  11399. $as_echo "$as_me: error: bad value ${enableval} for --disable-xmldoc" >&2;}
  11400. { (exit 1); exit 1; }; } ;;
  11401. esac
  11402. else
  11403. disable_xmldoc=no
  11404. fi
  11405. if test "${disable_xmldoc}" != "yes"; then
  11406. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  11407. PBX_LIBXML2=0
  11408. if test -n "$ac_tool_prefix"; then
  11409. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  11410. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  11411. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11412. $as_echo_n "checking for $ac_word... " >&6; }
  11413. if test "${ac_cv_path_CONFIG_LIBXML2+set}" = set; then
  11414. $as_echo_n "(cached) " >&6
  11415. else
  11416. case $CONFIG_LIBXML2 in
  11417. [\\/]* | ?:[\\/]*)
  11418. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  11419. ;;
  11420. *)
  11421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11422. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  11423. for as_dir in $as_dummy
  11424. do
  11425. IFS=$as_save_IFS
  11426. test -z "$as_dir" && as_dir=.
  11427. for ac_exec_ext in '' $ac_executable_extensions; do
  11428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11429. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  11430. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11431. break 2
  11432. fi
  11433. done
  11434. done
  11435. IFS=$as_save_IFS
  11436. ;;
  11437. esac
  11438. fi
  11439. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  11440. if test -n "$CONFIG_LIBXML2"; then
  11441. { $as_echo "$as_me:$LINENO: result: $CONFIG_LIBXML2" >&5
  11442. $as_echo "$CONFIG_LIBXML2" >&6; }
  11443. else
  11444. { $as_echo "$as_me:$LINENO: result: no" >&5
  11445. $as_echo "no" >&6; }
  11446. fi
  11447. fi
  11448. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  11449. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  11450. # Extract the first word of "xml2-config", so it can be a program name with args.
  11451. set dummy xml2-config; ac_word=$2
  11452. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11453. $as_echo_n "checking for $ac_word... " >&6; }
  11454. if test "${ac_cv_path_ac_pt_CONFIG_LIBXML2+set}" = set; then
  11455. $as_echo_n "(cached) " >&6
  11456. else
  11457. case $ac_pt_CONFIG_LIBXML2 in
  11458. [\\/]* | ?:[\\/]*)
  11459. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  11460. ;;
  11461. *)
  11462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11463. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  11464. for as_dir in $as_dummy
  11465. do
  11466. IFS=$as_save_IFS
  11467. test -z "$as_dir" && as_dir=.
  11468. for ac_exec_ext in '' $ac_executable_extensions; do
  11469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11470. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  11471. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11472. break 2
  11473. fi
  11474. done
  11475. done
  11476. IFS=$as_save_IFS
  11477. ;;
  11478. esac
  11479. fi
  11480. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  11481. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  11482. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_LIBXML2" >&5
  11483. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  11484. else
  11485. { $as_echo "$as_me:$LINENO: result: no" >&5
  11486. $as_echo "no" >&6; }
  11487. fi
  11488. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  11489. CONFIG_LIBXML2="No"
  11490. else
  11491. case $cross_compiling:$ac_tool_warned in
  11492. yes:)
  11493. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  11494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11495. ac_tool_warned=yes ;;
  11496. esac
  11497. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  11498. fi
  11499. else
  11500. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  11501. fi
  11502. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  11503. if test x"" = x ; then A=--cflags ; else A="" ; fi
  11504. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  11505. if test x"" = x ; then A=--libs ; else A="" ; fi
  11506. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  11507. if test x"#include <libxml/tree.h>
  11508. #include <libxml/parser.h>" != x ; then
  11509. saved_cppflags="${CPPFLAGS}"
  11510. if test "x${LIBXML2_DIR}" != "x"; then
  11511. LIBXML2_INCLUDE="-I${LIBXML2_DIR}/include"
  11512. fi
  11513. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  11514. saved_libs="${LIBS}"
  11515. LIBS="${LIBXML2_LIB}"
  11516. cat >conftest.$ac_ext <<_ACEOF
  11517. /* confdefs.h. */
  11518. _ACEOF
  11519. cat confdefs.h >>conftest.$ac_ext
  11520. cat >>conftest.$ac_ext <<_ACEOF
  11521. /* end confdefs.h. */
  11522. #include <libxml/tree.h>
  11523. #include <libxml/parser.h>
  11524. int
  11525. main ()
  11526. {
  11527. LIBXML_TEST_VERSION;
  11528. ;
  11529. return 0;
  11530. }
  11531. _ACEOF
  11532. rm -f conftest.$ac_objext conftest$ac_exeext
  11533. if { (ac_try="$ac_link"
  11534. case "(($ac_try" in
  11535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11536. *) ac_try_echo=$ac_try;;
  11537. esac
  11538. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11539. $as_echo "$ac_try_echo") >&5
  11540. (eval "$ac_link") 2>conftest.er1
  11541. ac_status=$?
  11542. grep -v '^ *+' conftest.er1 >conftest.err
  11543. rm -f conftest.er1
  11544. cat conftest.err >&5
  11545. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11546. (exit $ac_status); } && {
  11547. test -z "$ac_c_werror_flag" ||
  11548. test ! -s conftest.err
  11549. } && test -s conftest$ac_exeext && {
  11550. test "$cross_compiling" = yes ||
  11551. $as_test_x conftest$ac_exeext
  11552. }; then
  11553. PBX_LIBXML2=1
  11554. cat >>confdefs.h <<\_ACEOF
  11555. #define HAVE_LIBXML2 1
  11556. _ACEOF
  11557. else
  11558. $as_echo "$as_me: failed program was:" >&5
  11559. sed 's/^/| /' conftest.$ac_ext >&5
  11560. fi
  11561. rm -rf conftest.dSYM
  11562. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11563. conftest$ac_exeext conftest.$ac_ext
  11564. CPPFLAGS="${saved_cppflags}"
  11565. LIBS="${saved_libs}"
  11566. else
  11567. PBX_LIBXML2=1
  11568. cat >>confdefs.h <<\_ACEOF
  11569. #define HAVE_LIBXML2 1
  11570. _ACEOF
  11571. fi
  11572. fi
  11573. fi
  11574. if test "${PBX_LIBXML2}" != 1; then
  11575. { $as_echo "$as_me:$LINENO: *** XML documentation will not be available because the 'libxml2' development package is missing." >&5
  11576. $as_echo "$as_me: *** XML documentation will not be available because the 'libxml2' development package is missing." >&6;}
  11577. { $as_echo "$as_me:$LINENO: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&5
  11578. $as_echo "$as_me: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&6;}
  11579. { $as_echo "$as_me:$LINENO: *** or install the 'libxml2' development package." >&5
  11580. $as_echo "$as_me: *** or install the 'libxml2' development package." >&6;}
  11581. exit 1
  11582. fi
  11583. fi
  11584. # some embedded systems omit internationalization (locale) support
  11585. for ac_header in xlocale.h
  11586. do
  11587. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11588. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11589. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11590. $as_echo_n "checking for $ac_header... " >&6; }
  11591. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11592. $as_echo_n "(cached) " >&6
  11593. fi
  11594. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11595. $as_echo "$as_val"'`
  11596. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11597. $as_echo "$ac_res" >&6; }
  11598. else
  11599. # Is the header compilable?
  11600. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11601. $as_echo_n "checking $ac_header usability... " >&6; }
  11602. cat >conftest.$ac_ext <<_ACEOF
  11603. /* confdefs.h. */
  11604. _ACEOF
  11605. cat confdefs.h >>conftest.$ac_ext
  11606. cat >>conftest.$ac_ext <<_ACEOF
  11607. /* end confdefs.h. */
  11608. $ac_includes_default
  11609. #include <$ac_header>
  11610. _ACEOF
  11611. rm -f conftest.$ac_objext
  11612. if { (ac_try="$ac_compile"
  11613. case "(($ac_try" in
  11614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11615. *) ac_try_echo=$ac_try;;
  11616. esac
  11617. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11618. $as_echo "$ac_try_echo") >&5
  11619. (eval "$ac_compile") 2>conftest.er1
  11620. ac_status=$?
  11621. grep -v '^ *+' conftest.er1 >conftest.err
  11622. rm -f conftest.er1
  11623. cat conftest.err >&5
  11624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11625. (exit $ac_status); } && {
  11626. test -z "$ac_c_werror_flag" ||
  11627. test ! -s conftest.err
  11628. } && test -s conftest.$ac_objext; then
  11629. ac_header_compiler=yes
  11630. else
  11631. $as_echo "$as_me: failed program was:" >&5
  11632. sed 's/^/| /' conftest.$ac_ext >&5
  11633. ac_header_compiler=no
  11634. fi
  11635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11636. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11637. $as_echo "$ac_header_compiler" >&6; }
  11638. # Is the header present?
  11639. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11640. $as_echo_n "checking $ac_header presence... " >&6; }
  11641. cat >conftest.$ac_ext <<_ACEOF
  11642. /* confdefs.h. */
  11643. _ACEOF
  11644. cat confdefs.h >>conftest.$ac_ext
  11645. cat >>conftest.$ac_ext <<_ACEOF
  11646. /* end confdefs.h. */
  11647. #include <$ac_header>
  11648. _ACEOF
  11649. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11650. case "(($ac_try" in
  11651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11652. *) ac_try_echo=$ac_try;;
  11653. esac
  11654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11655. $as_echo "$ac_try_echo") >&5
  11656. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11657. ac_status=$?
  11658. grep -v '^ *+' conftest.er1 >conftest.err
  11659. rm -f conftest.er1
  11660. cat conftest.err >&5
  11661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11662. (exit $ac_status); } >/dev/null && {
  11663. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11664. test ! -s conftest.err
  11665. }; then
  11666. ac_header_preproc=yes
  11667. else
  11668. $as_echo "$as_me: failed program was:" >&5
  11669. sed 's/^/| /' conftest.$ac_ext >&5
  11670. ac_header_preproc=no
  11671. fi
  11672. rm -f conftest.err conftest.$ac_ext
  11673. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11674. $as_echo "$ac_header_preproc" >&6; }
  11675. # So? What about this header?
  11676. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11677. yes:no: )
  11678. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11679. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11680. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11681. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11682. ac_header_preproc=yes
  11683. ;;
  11684. no:yes:* )
  11685. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11686. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11687. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11688. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11689. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11690. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11691. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11692. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11693. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11694. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11695. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11696. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11697. ( cat <<\_ASBOX
  11698. ## ------------------------------------------ ##
  11699. ## Report this to https://issues.asterisk.org ##
  11700. ## ------------------------------------------ ##
  11701. _ASBOX
  11702. ) | sed "s/^/$as_me: WARNING: /" >&2
  11703. ;;
  11704. esac
  11705. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11706. $as_echo_n "checking for $ac_header... " >&6; }
  11707. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11708. $as_echo_n "(cached) " >&6
  11709. else
  11710. eval "$as_ac_Header=\$ac_header_preproc"
  11711. fi
  11712. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11713. $as_echo "$as_val"'`
  11714. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11715. $as_echo "$ac_res" >&6; }
  11716. fi
  11717. as_val=`eval 'as_val=${'$as_ac_Header'}
  11718. $as_echo "$as_val"'`
  11719. if test "x$as_val" = x""yes; then
  11720. cat >>confdefs.h <<_ACEOF
  11721. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11722. _ACEOF
  11723. fi
  11724. done
  11725. for ac_header in winsock.h winsock2.h
  11726. do
  11727. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11728. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11729. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11730. $as_echo_n "checking for $ac_header... " >&6; }
  11731. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11732. $as_echo_n "(cached) " >&6
  11733. fi
  11734. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11735. $as_echo "$as_val"'`
  11736. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11737. $as_echo "$ac_res" >&6; }
  11738. else
  11739. # Is the header compilable?
  11740. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11741. $as_echo_n "checking $ac_header usability... " >&6; }
  11742. cat >conftest.$ac_ext <<_ACEOF
  11743. /* confdefs.h. */
  11744. _ACEOF
  11745. cat confdefs.h >>conftest.$ac_ext
  11746. cat >>conftest.$ac_ext <<_ACEOF
  11747. /* end confdefs.h. */
  11748. $ac_includes_default
  11749. #include <$ac_header>
  11750. _ACEOF
  11751. rm -f conftest.$ac_objext
  11752. if { (ac_try="$ac_compile"
  11753. case "(($ac_try" in
  11754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11755. *) ac_try_echo=$ac_try;;
  11756. esac
  11757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11758. $as_echo "$ac_try_echo") >&5
  11759. (eval "$ac_compile") 2>conftest.er1
  11760. ac_status=$?
  11761. grep -v '^ *+' conftest.er1 >conftest.err
  11762. rm -f conftest.er1
  11763. cat conftest.err >&5
  11764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11765. (exit $ac_status); } && {
  11766. test -z "$ac_c_werror_flag" ||
  11767. test ! -s conftest.err
  11768. } && test -s conftest.$ac_objext; then
  11769. ac_header_compiler=yes
  11770. else
  11771. $as_echo "$as_me: failed program was:" >&5
  11772. sed 's/^/| /' conftest.$ac_ext >&5
  11773. ac_header_compiler=no
  11774. fi
  11775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11776. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11777. $as_echo "$ac_header_compiler" >&6; }
  11778. # Is the header present?
  11779. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11780. $as_echo_n "checking $ac_header presence... " >&6; }
  11781. cat >conftest.$ac_ext <<_ACEOF
  11782. /* confdefs.h. */
  11783. _ACEOF
  11784. cat confdefs.h >>conftest.$ac_ext
  11785. cat >>conftest.$ac_ext <<_ACEOF
  11786. /* end confdefs.h. */
  11787. #include <$ac_header>
  11788. _ACEOF
  11789. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11790. case "(($ac_try" in
  11791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11792. *) ac_try_echo=$ac_try;;
  11793. esac
  11794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11795. $as_echo "$ac_try_echo") >&5
  11796. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11797. ac_status=$?
  11798. grep -v '^ *+' conftest.er1 >conftest.err
  11799. rm -f conftest.er1
  11800. cat conftest.err >&5
  11801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11802. (exit $ac_status); } >/dev/null && {
  11803. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11804. test ! -s conftest.err
  11805. }; then
  11806. ac_header_preproc=yes
  11807. else
  11808. $as_echo "$as_me: failed program was:" >&5
  11809. sed 's/^/| /' conftest.$ac_ext >&5
  11810. ac_header_preproc=no
  11811. fi
  11812. rm -f conftest.err conftest.$ac_ext
  11813. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11814. $as_echo "$ac_header_preproc" >&6; }
  11815. # So? What about this header?
  11816. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11817. yes:no: )
  11818. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11819. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11820. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11821. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11822. ac_header_preproc=yes
  11823. ;;
  11824. no:yes:* )
  11825. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11826. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11827. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11828. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11829. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11830. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11831. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11832. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11833. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11834. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11835. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11836. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11837. ( cat <<\_ASBOX
  11838. ## ------------------------------------------ ##
  11839. ## Report this to https://issues.asterisk.org ##
  11840. ## ------------------------------------------ ##
  11841. _ASBOX
  11842. ) | sed "s/^/$as_me: WARNING: /" >&2
  11843. ;;
  11844. esac
  11845. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11846. $as_echo_n "checking for $ac_header... " >&6; }
  11847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11848. $as_echo_n "(cached) " >&6
  11849. else
  11850. eval "$as_ac_Header=\$ac_header_preproc"
  11851. fi
  11852. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11853. $as_echo "$as_val"'`
  11854. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11855. $as_echo "$ac_res" >&6; }
  11856. fi
  11857. as_val=`eval 'as_val=${'$as_ac_Header'}
  11858. $as_echo "$as_val"'`
  11859. if test "x$as_val" = x""yes; then
  11860. cat >>confdefs.h <<_ACEOF
  11861. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11862. _ACEOF
  11863. fi
  11864. done
  11865. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  11866. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  11867. $as_echo_n "checking for sys/poll.h... " >&6; }
  11868. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  11869. $as_echo_n "(cached) " >&6
  11870. fi
  11871. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  11872. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  11873. else
  11874. # Is the header compilable?
  11875. { $as_echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
  11876. $as_echo_n "checking sys/poll.h usability... " >&6; }
  11877. cat >conftest.$ac_ext <<_ACEOF
  11878. /* confdefs.h. */
  11879. _ACEOF
  11880. cat confdefs.h >>conftest.$ac_ext
  11881. cat >>conftest.$ac_ext <<_ACEOF
  11882. /* end confdefs.h. */
  11883. $ac_includes_default
  11884. #include <sys/poll.h>
  11885. _ACEOF
  11886. rm -f conftest.$ac_objext
  11887. if { (ac_try="$ac_compile"
  11888. case "(($ac_try" in
  11889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11890. *) ac_try_echo=$ac_try;;
  11891. esac
  11892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11893. $as_echo "$ac_try_echo") >&5
  11894. (eval "$ac_compile") 2>conftest.er1
  11895. ac_status=$?
  11896. grep -v '^ *+' conftest.er1 >conftest.err
  11897. rm -f conftest.er1
  11898. cat conftest.err >&5
  11899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11900. (exit $ac_status); } && {
  11901. test -z "$ac_c_werror_flag" ||
  11902. test ! -s conftest.err
  11903. } && test -s conftest.$ac_objext; then
  11904. ac_header_compiler=yes
  11905. else
  11906. $as_echo "$as_me: failed program was:" >&5
  11907. sed 's/^/| /' conftest.$ac_ext >&5
  11908. ac_header_compiler=no
  11909. fi
  11910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11911. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11912. $as_echo "$ac_header_compiler" >&6; }
  11913. # Is the header present?
  11914. { $as_echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
  11915. $as_echo_n "checking sys/poll.h presence... " >&6; }
  11916. cat >conftest.$ac_ext <<_ACEOF
  11917. /* confdefs.h. */
  11918. _ACEOF
  11919. cat confdefs.h >>conftest.$ac_ext
  11920. cat >>conftest.$ac_ext <<_ACEOF
  11921. /* end confdefs.h. */
  11922. #include <sys/poll.h>
  11923. _ACEOF
  11924. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11925. case "(($ac_try" in
  11926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11927. *) ac_try_echo=$ac_try;;
  11928. esac
  11929. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11930. $as_echo "$ac_try_echo") >&5
  11931. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11932. ac_status=$?
  11933. grep -v '^ *+' conftest.er1 >conftest.err
  11934. rm -f conftest.er1
  11935. cat conftest.err >&5
  11936. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11937. (exit $ac_status); } >/dev/null && {
  11938. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11939. test ! -s conftest.err
  11940. }; then
  11941. ac_header_preproc=yes
  11942. else
  11943. $as_echo "$as_me: failed program was:" >&5
  11944. sed 's/^/| /' conftest.$ac_ext >&5
  11945. ac_header_preproc=no
  11946. fi
  11947. rm -f conftest.err conftest.$ac_ext
  11948. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11949. $as_echo "$ac_header_preproc" >&6; }
  11950. # So? What about this header?
  11951. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11952. yes:no: )
  11953. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11954. $as_echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11955. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
  11956. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
  11957. ac_header_preproc=yes
  11958. ;;
  11959. no:yes:* )
  11960. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
  11961. $as_echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
  11962. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
  11963. $as_echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
  11964. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
  11965. $as_echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
  11966. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
  11967. $as_echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11968. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
  11969. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
  11970. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
  11971. $as_echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
  11972. ( cat <<\_ASBOX
  11973. ## ------------------------------------------ ##
  11974. ## Report this to https://issues.asterisk.org ##
  11975. ## ------------------------------------------ ##
  11976. _ASBOX
  11977. ) | sed "s/^/$as_me: WARNING: /" >&2
  11978. ;;
  11979. esac
  11980. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  11981. $as_echo_n "checking for sys/poll.h... " >&6; }
  11982. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  11983. $as_echo_n "(cached) " >&6
  11984. else
  11985. ac_cv_header_sys_poll_h=$ac_header_preproc
  11986. fi
  11987. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  11988. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  11989. fi
  11990. if test "x$ac_cv_header_sys_poll_h" = x""yes; then
  11991. :
  11992. else
  11993. cat >>confdefs.h <<\_ACEOF
  11994. #define AST_POLL_COMPAT 1
  11995. _ACEOF
  11996. fi
  11997. # Check whether --enable-largefile was given.
  11998. if test "${enable_largefile+set}" = set; then
  11999. enableval=$enable_largefile;
  12000. fi
  12001. if test "$enable_largefile" != no; then
  12002. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  12003. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12004. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  12005. $as_echo_n "(cached) " >&6
  12006. else
  12007. ac_cv_sys_largefile_CC=no
  12008. if test "$GCC" != yes; then
  12009. ac_save_CC=$CC
  12010. while :; do
  12011. # IRIX 6.2 and later do not support large files by default,
  12012. # so use the C compiler's -n32 option if that helps.
  12013. cat >conftest.$ac_ext <<_ACEOF
  12014. /* confdefs.h. */
  12015. _ACEOF
  12016. cat confdefs.h >>conftest.$ac_ext
  12017. cat >>conftest.$ac_ext <<_ACEOF
  12018. /* end confdefs.h. */
  12019. #include <sys/types.h>
  12020. /* Check that off_t can represent 2**63 - 1 correctly.
  12021. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12022. since some C++ compilers masquerading as C compilers
  12023. incorrectly reject 9223372036854775807. */
  12024. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12025. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12026. && LARGE_OFF_T % 2147483647 == 1)
  12027. ? 1 : -1];
  12028. int
  12029. main ()
  12030. {
  12031. ;
  12032. return 0;
  12033. }
  12034. _ACEOF
  12035. rm -f conftest.$ac_objext
  12036. if { (ac_try="$ac_compile"
  12037. case "(($ac_try" in
  12038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12039. *) ac_try_echo=$ac_try;;
  12040. esac
  12041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12042. $as_echo "$ac_try_echo") >&5
  12043. (eval "$ac_compile") 2>conftest.er1
  12044. ac_status=$?
  12045. grep -v '^ *+' conftest.er1 >conftest.err
  12046. rm -f conftest.er1
  12047. cat conftest.err >&5
  12048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12049. (exit $ac_status); } && {
  12050. test -z "$ac_c_werror_flag" ||
  12051. test ! -s conftest.err
  12052. } && test -s conftest.$ac_objext; then
  12053. break
  12054. else
  12055. $as_echo "$as_me: failed program was:" >&5
  12056. sed 's/^/| /' conftest.$ac_ext >&5
  12057. fi
  12058. rm -f core conftest.err conftest.$ac_objext
  12059. CC="$CC -n32"
  12060. rm -f conftest.$ac_objext
  12061. if { (ac_try="$ac_compile"
  12062. case "(($ac_try" in
  12063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12064. *) ac_try_echo=$ac_try;;
  12065. esac
  12066. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12067. $as_echo "$ac_try_echo") >&5
  12068. (eval "$ac_compile") 2>conftest.er1
  12069. ac_status=$?
  12070. grep -v '^ *+' conftest.er1 >conftest.err
  12071. rm -f conftest.er1
  12072. cat conftest.err >&5
  12073. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12074. (exit $ac_status); } && {
  12075. test -z "$ac_c_werror_flag" ||
  12076. test ! -s conftest.err
  12077. } && test -s conftest.$ac_objext; then
  12078. ac_cv_sys_largefile_CC=' -n32'; break
  12079. else
  12080. $as_echo "$as_me: failed program was:" >&5
  12081. sed 's/^/| /' conftest.$ac_ext >&5
  12082. fi
  12083. rm -f core conftest.err conftest.$ac_objext
  12084. break
  12085. done
  12086. CC=$ac_save_CC
  12087. rm -f conftest.$ac_ext
  12088. fi
  12089. fi
  12090. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  12091. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12092. if test "$ac_cv_sys_largefile_CC" != no; then
  12093. CC=$CC$ac_cv_sys_largefile_CC
  12094. fi
  12095. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12096. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12097. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  12098. $as_echo_n "(cached) " >&6
  12099. else
  12100. while :; do
  12101. cat >conftest.$ac_ext <<_ACEOF
  12102. /* confdefs.h. */
  12103. _ACEOF
  12104. cat confdefs.h >>conftest.$ac_ext
  12105. cat >>conftest.$ac_ext <<_ACEOF
  12106. /* end confdefs.h. */
  12107. #include <sys/types.h>
  12108. /* Check that off_t can represent 2**63 - 1 correctly.
  12109. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12110. since some C++ compilers masquerading as C compilers
  12111. incorrectly reject 9223372036854775807. */
  12112. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12113. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12114. && LARGE_OFF_T % 2147483647 == 1)
  12115. ? 1 : -1];
  12116. int
  12117. main ()
  12118. {
  12119. ;
  12120. return 0;
  12121. }
  12122. _ACEOF
  12123. rm -f conftest.$ac_objext
  12124. if { (ac_try="$ac_compile"
  12125. case "(($ac_try" in
  12126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12127. *) ac_try_echo=$ac_try;;
  12128. esac
  12129. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12130. $as_echo "$ac_try_echo") >&5
  12131. (eval "$ac_compile") 2>conftest.er1
  12132. ac_status=$?
  12133. grep -v '^ *+' conftest.er1 >conftest.err
  12134. rm -f conftest.er1
  12135. cat conftest.err >&5
  12136. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12137. (exit $ac_status); } && {
  12138. test -z "$ac_c_werror_flag" ||
  12139. test ! -s conftest.err
  12140. } && test -s conftest.$ac_objext; then
  12141. ac_cv_sys_file_offset_bits=no; break
  12142. else
  12143. $as_echo "$as_me: failed program was:" >&5
  12144. sed 's/^/| /' conftest.$ac_ext >&5
  12145. fi
  12146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12147. cat >conftest.$ac_ext <<_ACEOF
  12148. /* confdefs.h. */
  12149. _ACEOF
  12150. cat confdefs.h >>conftest.$ac_ext
  12151. cat >>conftest.$ac_ext <<_ACEOF
  12152. /* end confdefs.h. */
  12153. #define _FILE_OFFSET_BITS 64
  12154. #include <sys/types.h>
  12155. /* Check that off_t can represent 2**63 - 1 correctly.
  12156. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12157. since some C++ compilers masquerading as C compilers
  12158. incorrectly reject 9223372036854775807. */
  12159. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12160. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12161. && LARGE_OFF_T % 2147483647 == 1)
  12162. ? 1 : -1];
  12163. int
  12164. main ()
  12165. {
  12166. ;
  12167. return 0;
  12168. }
  12169. _ACEOF
  12170. rm -f conftest.$ac_objext
  12171. if { (ac_try="$ac_compile"
  12172. case "(($ac_try" in
  12173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12174. *) ac_try_echo=$ac_try;;
  12175. esac
  12176. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12177. $as_echo "$ac_try_echo") >&5
  12178. (eval "$ac_compile") 2>conftest.er1
  12179. ac_status=$?
  12180. grep -v '^ *+' conftest.er1 >conftest.err
  12181. rm -f conftest.er1
  12182. cat conftest.err >&5
  12183. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12184. (exit $ac_status); } && {
  12185. test -z "$ac_c_werror_flag" ||
  12186. test ! -s conftest.err
  12187. } && test -s conftest.$ac_objext; then
  12188. ac_cv_sys_file_offset_bits=64; break
  12189. else
  12190. $as_echo "$as_me: failed program was:" >&5
  12191. sed 's/^/| /' conftest.$ac_ext >&5
  12192. fi
  12193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12194. ac_cv_sys_file_offset_bits=unknown
  12195. break
  12196. done
  12197. fi
  12198. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  12199. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12200. case $ac_cv_sys_file_offset_bits in #(
  12201. no | unknown) ;;
  12202. *)
  12203. cat >>confdefs.h <<_ACEOF
  12204. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12205. _ACEOF
  12206. ;;
  12207. esac
  12208. rm -rf conftest*
  12209. if test $ac_cv_sys_file_offset_bits = unknown; then
  12210. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  12211. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12212. if test "${ac_cv_sys_large_files+set}" = set; then
  12213. $as_echo_n "(cached) " >&6
  12214. else
  12215. while :; do
  12216. cat >conftest.$ac_ext <<_ACEOF
  12217. /* confdefs.h. */
  12218. _ACEOF
  12219. cat confdefs.h >>conftest.$ac_ext
  12220. cat >>conftest.$ac_ext <<_ACEOF
  12221. /* end confdefs.h. */
  12222. #include <sys/types.h>
  12223. /* Check that off_t can represent 2**63 - 1 correctly.
  12224. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12225. since some C++ compilers masquerading as C compilers
  12226. incorrectly reject 9223372036854775807. */
  12227. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12228. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12229. && LARGE_OFF_T % 2147483647 == 1)
  12230. ? 1 : -1];
  12231. int
  12232. main ()
  12233. {
  12234. ;
  12235. return 0;
  12236. }
  12237. _ACEOF
  12238. rm -f conftest.$ac_objext
  12239. if { (ac_try="$ac_compile"
  12240. case "(($ac_try" in
  12241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12242. *) ac_try_echo=$ac_try;;
  12243. esac
  12244. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12245. $as_echo "$ac_try_echo") >&5
  12246. (eval "$ac_compile") 2>conftest.er1
  12247. ac_status=$?
  12248. grep -v '^ *+' conftest.er1 >conftest.err
  12249. rm -f conftest.er1
  12250. cat conftest.err >&5
  12251. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12252. (exit $ac_status); } && {
  12253. test -z "$ac_c_werror_flag" ||
  12254. test ! -s conftest.err
  12255. } && test -s conftest.$ac_objext; then
  12256. ac_cv_sys_large_files=no; break
  12257. else
  12258. $as_echo "$as_me: failed program was:" >&5
  12259. sed 's/^/| /' conftest.$ac_ext >&5
  12260. fi
  12261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12262. cat >conftest.$ac_ext <<_ACEOF
  12263. /* confdefs.h. */
  12264. _ACEOF
  12265. cat confdefs.h >>conftest.$ac_ext
  12266. cat >>conftest.$ac_ext <<_ACEOF
  12267. /* end confdefs.h. */
  12268. #define _LARGE_FILES 1
  12269. #include <sys/types.h>
  12270. /* Check that off_t can represent 2**63 - 1 correctly.
  12271. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12272. since some C++ compilers masquerading as C compilers
  12273. incorrectly reject 9223372036854775807. */
  12274. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12275. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12276. && LARGE_OFF_T % 2147483647 == 1)
  12277. ? 1 : -1];
  12278. int
  12279. main ()
  12280. {
  12281. ;
  12282. return 0;
  12283. }
  12284. _ACEOF
  12285. rm -f conftest.$ac_objext
  12286. if { (ac_try="$ac_compile"
  12287. case "(($ac_try" in
  12288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12289. *) ac_try_echo=$ac_try;;
  12290. esac
  12291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12292. $as_echo "$ac_try_echo") >&5
  12293. (eval "$ac_compile") 2>conftest.er1
  12294. ac_status=$?
  12295. grep -v '^ *+' conftest.er1 >conftest.err
  12296. rm -f conftest.er1
  12297. cat conftest.err >&5
  12298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12299. (exit $ac_status); } && {
  12300. test -z "$ac_c_werror_flag" ||
  12301. test ! -s conftest.err
  12302. } && test -s conftest.$ac_objext; then
  12303. ac_cv_sys_large_files=1; break
  12304. else
  12305. $as_echo "$as_me: failed program was:" >&5
  12306. sed 's/^/| /' conftest.$ac_ext >&5
  12307. fi
  12308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12309. ac_cv_sys_large_files=unknown
  12310. break
  12311. done
  12312. fi
  12313. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  12314. $as_echo "$ac_cv_sys_large_files" >&6; }
  12315. case $ac_cv_sys_large_files in #(
  12316. no | unknown) ;;
  12317. *)
  12318. cat >>confdefs.h <<_ACEOF
  12319. #define _LARGE_FILES $ac_cv_sys_large_files
  12320. _ACEOF
  12321. ;;
  12322. esac
  12323. rm -rf conftest*
  12324. fi
  12325. fi
  12326. # Checks for typedefs, structures, and compiler characteristics.
  12327. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  12328. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  12329. if test "${ac_cv_header_stdbool_h+set}" = set; then
  12330. $as_echo_n "(cached) " >&6
  12331. else
  12332. cat >conftest.$ac_ext <<_ACEOF
  12333. /* confdefs.h. */
  12334. _ACEOF
  12335. cat confdefs.h >>conftest.$ac_ext
  12336. cat >>conftest.$ac_ext <<_ACEOF
  12337. /* end confdefs.h. */
  12338. #include <stdbool.h>
  12339. #ifndef bool
  12340. "error: bool is not defined"
  12341. #endif
  12342. #ifndef false
  12343. "error: false is not defined"
  12344. #endif
  12345. #if false
  12346. "error: false is not 0"
  12347. #endif
  12348. #ifndef true
  12349. "error: true is not defined"
  12350. #endif
  12351. #if true != 1
  12352. "error: true is not 1"
  12353. #endif
  12354. #ifndef __bool_true_false_are_defined
  12355. "error: __bool_true_false_are_defined is not defined"
  12356. #endif
  12357. struct s { _Bool s: 1; _Bool t; } s;
  12358. char a[true == 1 ? 1 : -1];
  12359. char b[false == 0 ? 1 : -1];
  12360. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  12361. char d[(bool) 0.5 == true ? 1 : -1];
  12362. bool e = &s;
  12363. char f[(_Bool) 0.0 == false ? 1 : -1];
  12364. char g[true];
  12365. char h[sizeof (_Bool)];
  12366. char i[sizeof s.t];
  12367. enum { j = false, k = true, l = false * true, m = true * 256 };
  12368. /* The following fails for
  12369. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  12370. _Bool n[m];
  12371. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  12372. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  12373. # if defined __xlc__ || defined __GNUC__
  12374. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  12375. reported by James Lemley on 2005-10-05; see
  12376. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  12377. This test is not quite right, since xlc is allowed to
  12378. reject this program, as the initializer for xlcbug is
  12379. not one of the forms that C requires support for.
  12380. However, doing the test right would require a runtime
  12381. test, and that would make cross-compilation harder.
  12382. Let us hope that IBM fixes the xlc bug, and also adds
  12383. support for this kind of constant expression. In the
  12384. meantime, this test will reject xlc, which is OK, since
  12385. our stdbool.h substitute should suffice. We also test
  12386. this with GCC, where it should work, to detect more
  12387. quickly whether someone messes up the test in the
  12388. future. */
  12389. char digs[] = "0123456789";
  12390. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  12391. # endif
  12392. /* Catch a bug in an HP-UX C compiler. See
  12393. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  12394. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  12395. */
  12396. _Bool q = true;
  12397. _Bool *pq = &q;
  12398. int
  12399. main ()
  12400. {
  12401. *pq |= q;
  12402. *pq |= ! q;
  12403. /* Refer to every declared value, to avoid compiler optimizations. */
  12404. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  12405. + !m + !n + !o + !p + !q + !pq);
  12406. ;
  12407. return 0;
  12408. }
  12409. _ACEOF
  12410. rm -f conftest.$ac_objext
  12411. if { (ac_try="$ac_compile"
  12412. case "(($ac_try" in
  12413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12414. *) ac_try_echo=$ac_try;;
  12415. esac
  12416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12417. $as_echo "$ac_try_echo") >&5
  12418. (eval "$ac_compile") 2>conftest.er1
  12419. ac_status=$?
  12420. grep -v '^ *+' conftest.er1 >conftest.err
  12421. rm -f conftest.er1
  12422. cat conftest.err >&5
  12423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12424. (exit $ac_status); } && {
  12425. test -z "$ac_c_werror_flag" ||
  12426. test ! -s conftest.err
  12427. } && test -s conftest.$ac_objext; then
  12428. ac_cv_header_stdbool_h=yes
  12429. else
  12430. $as_echo "$as_me: failed program was:" >&5
  12431. sed 's/^/| /' conftest.$ac_ext >&5
  12432. ac_cv_header_stdbool_h=no
  12433. fi
  12434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12435. fi
  12436. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  12437. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  12438. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  12439. $as_echo_n "checking for _Bool... " >&6; }
  12440. if test "${ac_cv_type__Bool+set}" = set; then
  12441. $as_echo_n "(cached) " >&6
  12442. else
  12443. ac_cv_type__Bool=no
  12444. cat >conftest.$ac_ext <<_ACEOF
  12445. /* confdefs.h. */
  12446. _ACEOF
  12447. cat confdefs.h >>conftest.$ac_ext
  12448. cat >>conftest.$ac_ext <<_ACEOF
  12449. /* end confdefs.h. */
  12450. $ac_includes_default
  12451. int
  12452. main ()
  12453. {
  12454. if (sizeof (_Bool))
  12455. return 0;
  12456. ;
  12457. return 0;
  12458. }
  12459. _ACEOF
  12460. rm -f conftest.$ac_objext
  12461. if { (ac_try="$ac_compile"
  12462. case "(($ac_try" in
  12463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12464. *) ac_try_echo=$ac_try;;
  12465. esac
  12466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12467. $as_echo "$ac_try_echo") >&5
  12468. (eval "$ac_compile") 2>conftest.er1
  12469. ac_status=$?
  12470. grep -v '^ *+' conftest.er1 >conftest.err
  12471. rm -f conftest.er1
  12472. cat conftest.err >&5
  12473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12474. (exit $ac_status); } && {
  12475. test -z "$ac_c_werror_flag" ||
  12476. test ! -s conftest.err
  12477. } && test -s conftest.$ac_objext; then
  12478. cat >conftest.$ac_ext <<_ACEOF
  12479. /* confdefs.h. */
  12480. _ACEOF
  12481. cat confdefs.h >>conftest.$ac_ext
  12482. cat >>conftest.$ac_ext <<_ACEOF
  12483. /* end confdefs.h. */
  12484. $ac_includes_default
  12485. int
  12486. main ()
  12487. {
  12488. if (sizeof ((_Bool)))
  12489. return 0;
  12490. ;
  12491. return 0;
  12492. }
  12493. _ACEOF
  12494. rm -f conftest.$ac_objext
  12495. if { (ac_try="$ac_compile"
  12496. case "(($ac_try" in
  12497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12498. *) ac_try_echo=$ac_try;;
  12499. esac
  12500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12501. $as_echo "$ac_try_echo") >&5
  12502. (eval "$ac_compile") 2>conftest.er1
  12503. ac_status=$?
  12504. grep -v '^ *+' conftest.er1 >conftest.err
  12505. rm -f conftest.er1
  12506. cat conftest.err >&5
  12507. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12508. (exit $ac_status); } && {
  12509. test -z "$ac_c_werror_flag" ||
  12510. test ! -s conftest.err
  12511. } && test -s conftest.$ac_objext; then
  12512. :
  12513. else
  12514. $as_echo "$as_me: failed program was:" >&5
  12515. sed 's/^/| /' conftest.$ac_ext >&5
  12516. ac_cv_type__Bool=yes
  12517. fi
  12518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12519. else
  12520. $as_echo "$as_me: failed program was:" >&5
  12521. sed 's/^/| /' conftest.$ac_ext >&5
  12522. fi
  12523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12524. fi
  12525. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  12526. $as_echo "$ac_cv_type__Bool" >&6; }
  12527. if test "x$ac_cv_type__Bool" = x""yes; then
  12528. cat >>confdefs.h <<_ACEOF
  12529. #define HAVE__BOOL 1
  12530. _ACEOF
  12531. fi
  12532. if test $ac_cv_header_stdbool_h = yes; then
  12533. cat >>confdefs.h <<\_ACEOF
  12534. #define HAVE_STDBOOL_H 1
  12535. _ACEOF
  12536. fi
  12537. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  12538. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  12539. if test "${ac_cv_c_const+set}" = set; then
  12540. $as_echo_n "(cached) " >&6
  12541. else
  12542. cat >conftest.$ac_ext <<_ACEOF
  12543. /* confdefs.h. */
  12544. _ACEOF
  12545. cat confdefs.h >>conftest.$ac_ext
  12546. cat >>conftest.$ac_ext <<_ACEOF
  12547. /* end confdefs.h. */
  12548. int
  12549. main ()
  12550. {
  12551. /* FIXME: Include the comments suggested by Paul. */
  12552. #ifndef __cplusplus
  12553. /* Ultrix mips cc rejects this. */
  12554. typedef int charset[2];
  12555. const charset cs;
  12556. /* SunOS 4.1.1 cc rejects this. */
  12557. char const *const *pcpcc;
  12558. char **ppc;
  12559. /* NEC SVR4.0.2 mips cc rejects this. */
  12560. struct point {int x, y;};
  12561. static struct point const zero = {0,0};
  12562. /* AIX XL C 1.02.0.0 rejects this.
  12563. It does not let you subtract one const X* pointer from another in
  12564. an arm of an if-expression whose if-part is not a constant
  12565. expression */
  12566. const char *g = "string";
  12567. pcpcc = &g + (g ? g-g : 0);
  12568. /* HPUX 7.0 cc rejects these. */
  12569. ++pcpcc;
  12570. ppc = (char**) pcpcc;
  12571. pcpcc = (char const *const *) ppc;
  12572. { /* SCO 3.2v4 cc rejects this. */
  12573. char *t;
  12574. char const *s = 0 ? (char *) 0 : (char const *) 0;
  12575. *t++ = 0;
  12576. if (s) return 0;
  12577. }
  12578. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  12579. int x[] = {25, 17};
  12580. const int *foo = &x[0];
  12581. ++foo;
  12582. }
  12583. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  12584. typedef const int *iptr;
  12585. iptr p = 0;
  12586. ++p;
  12587. }
  12588. { /* AIX XL C 1.02.0.0 rejects this saying
  12589. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  12590. struct s { int j; const int *ap[3]; };
  12591. struct s *b; b->j = 5;
  12592. }
  12593. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  12594. const int foo = 10;
  12595. if (!foo) return 0;
  12596. }
  12597. return !cs[0] && !zero.x;
  12598. #endif
  12599. ;
  12600. return 0;
  12601. }
  12602. _ACEOF
  12603. rm -f conftest.$ac_objext
  12604. if { (ac_try="$ac_compile"
  12605. case "(($ac_try" in
  12606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12607. *) ac_try_echo=$ac_try;;
  12608. esac
  12609. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12610. $as_echo "$ac_try_echo") >&5
  12611. (eval "$ac_compile") 2>conftest.er1
  12612. ac_status=$?
  12613. grep -v '^ *+' conftest.er1 >conftest.err
  12614. rm -f conftest.er1
  12615. cat conftest.err >&5
  12616. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12617. (exit $ac_status); } && {
  12618. test -z "$ac_c_werror_flag" ||
  12619. test ! -s conftest.err
  12620. } && test -s conftest.$ac_objext; then
  12621. ac_cv_c_const=yes
  12622. else
  12623. $as_echo "$as_me: failed program was:" >&5
  12624. sed 's/^/| /' conftest.$ac_ext >&5
  12625. ac_cv_c_const=no
  12626. fi
  12627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12628. fi
  12629. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  12630. $as_echo "$ac_cv_c_const" >&6; }
  12631. if test $ac_cv_c_const = no; then
  12632. cat >>confdefs.h <<\_ACEOF
  12633. #define const /**/
  12634. _ACEOF
  12635. fi
  12636. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  12637. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  12638. if test "${ac_cv_type_uid_t+set}" = set; then
  12639. $as_echo_n "(cached) " >&6
  12640. else
  12641. cat >conftest.$ac_ext <<_ACEOF
  12642. /* confdefs.h. */
  12643. _ACEOF
  12644. cat confdefs.h >>conftest.$ac_ext
  12645. cat >>conftest.$ac_ext <<_ACEOF
  12646. /* end confdefs.h. */
  12647. #include <sys/types.h>
  12648. _ACEOF
  12649. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12650. $EGREP "uid_t" >/dev/null 2>&1; then
  12651. ac_cv_type_uid_t=yes
  12652. else
  12653. ac_cv_type_uid_t=no
  12654. fi
  12655. rm -f conftest*
  12656. fi
  12657. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  12658. $as_echo "$ac_cv_type_uid_t" >&6; }
  12659. if test $ac_cv_type_uid_t = no; then
  12660. cat >>confdefs.h <<\_ACEOF
  12661. #define uid_t int
  12662. _ACEOF
  12663. cat >>confdefs.h <<\_ACEOF
  12664. #define gid_t int
  12665. _ACEOF
  12666. fi
  12667. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  12668. $as_echo_n "checking for inline... " >&6; }
  12669. if test "${ac_cv_c_inline+set}" = set; then
  12670. $as_echo_n "(cached) " >&6
  12671. else
  12672. ac_cv_c_inline=no
  12673. for ac_kw in inline __inline__ __inline; do
  12674. cat >conftest.$ac_ext <<_ACEOF
  12675. /* confdefs.h. */
  12676. _ACEOF
  12677. cat confdefs.h >>conftest.$ac_ext
  12678. cat >>conftest.$ac_ext <<_ACEOF
  12679. /* end confdefs.h. */
  12680. #ifndef __cplusplus
  12681. typedef int foo_t;
  12682. static $ac_kw foo_t static_foo () {return 0; }
  12683. $ac_kw foo_t foo () {return 0; }
  12684. #endif
  12685. _ACEOF
  12686. rm -f conftest.$ac_objext
  12687. if { (ac_try="$ac_compile"
  12688. case "(($ac_try" in
  12689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12690. *) ac_try_echo=$ac_try;;
  12691. esac
  12692. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12693. $as_echo "$ac_try_echo") >&5
  12694. (eval "$ac_compile") 2>conftest.er1
  12695. ac_status=$?
  12696. grep -v '^ *+' conftest.er1 >conftest.err
  12697. rm -f conftest.er1
  12698. cat conftest.err >&5
  12699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12700. (exit $ac_status); } && {
  12701. test -z "$ac_c_werror_flag" ||
  12702. test ! -s conftest.err
  12703. } && test -s conftest.$ac_objext; then
  12704. ac_cv_c_inline=$ac_kw
  12705. else
  12706. $as_echo "$as_me: failed program was:" >&5
  12707. sed 's/^/| /' conftest.$ac_ext >&5
  12708. fi
  12709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12710. test "$ac_cv_c_inline" != no && break
  12711. done
  12712. fi
  12713. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  12714. $as_echo "$ac_cv_c_inline" >&6; }
  12715. case $ac_cv_c_inline in
  12716. inline | yes) ;;
  12717. *)
  12718. case $ac_cv_c_inline in
  12719. no) ac_val=;;
  12720. *) ac_val=$ac_cv_c_inline;;
  12721. esac
  12722. cat >>confdefs.h <<_ACEOF
  12723. #ifndef __cplusplus
  12724. #define inline $ac_val
  12725. #endif
  12726. _ACEOF
  12727. ;;
  12728. esac
  12729. { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
  12730. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  12731. if test "${ac_cv_type_long_double_wider+set}" = set; then
  12732. $as_echo_n "(cached) " >&6
  12733. else
  12734. cat >conftest.$ac_ext <<_ACEOF
  12735. /* confdefs.h. */
  12736. _ACEOF
  12737. cat confdefs.h >>conftest.$ac_ext
  12738. cat >>conftest.$ac_ext <<_ACEOF
  12739. /* end confdefs.h. */
  12740. #include <float.h>
  12741. long double const a[] =
  12742. {
  12743. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  12744. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  12745. };
  12746. long double
  12747. f (long double x)
  12748. {
  12749. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  12750. + (x ? f (x) : 'c'));
  12751. }
  12752. int
  12753. main ()
  12754. {
  12755. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  12756. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  12757. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  12758. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  12759. && (int) LDBL_EPSILON == 0
  12760. )];
  12761. test_array [0] = 0
  12762. ;
  12763. return 0;
  12764. }
  12765. _ACEOF
  12766. rm -f conftest.$ac_objext
  12767. if { (ac_try="$ac_compile"
  12768. case "(($ac_try" in
  12769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12770. *) ac_try_echo=$ac_try;;
  12771. esac
  12772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12773. $as_echo "$ac_try_echo") >&5
  12774. (eval "$ac_compile") 2>conftest.er1
  12775. ac_status=$?
  12776. grep -v '^ *+' conftest.er1 >conftest.err
  12777. rm -f conftest.er1
  12778. cat conftest.err >&5
  12779. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12780. (exit $ac_status); } && {
  12781. test -z "$ac_c_werror_flag" ||
  12782. test ! -s conftest.err
  12783. } && test -s conftest.$ac_objext; then
  12784. ac_cv_type_long_double_wider=yes
  12785. else
  12786. $as_echo "$as_me: failed program was:" >&5
  12787. sed 's/^/| /' conftest.$ac_ext >&5
  12788. ac_cv_type_long_double_wider=no
  12789. fi
  12790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12791. fi
  12792. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
  12793. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  12794. if test $ac_cv_type_long_double_wider = yes; then
  12795. cat >>confdefs.h <<\_ACEOF
  12796. #define HAVE_LONG_DOUBLE_WIDER 1
  12797. _ACEOF
  12798. fi
  12799. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  12800. $as_echo_n "checking for mode_t... " >&6; }
  12801. if test "${ac_cv_type_mode_t+set}" = set; then
  12802. $as_echo_n "(cached) " >&6
  12803. else
  12804. ac_cv_type_mode_t=no
  12805. cat >conftest.$ac_ext <<_ACEOF
  12806. /* confdefs.h. */
  12807. _ACEOF
  12808. cat confdefs.h >>conftest.$ac_ext
  12809. cat >>conftest.$ac_ext <<_ACEOF
  12810. /* end confdefs.h. */
  12811. $ac_includes_default
  12812. int
  12813. main ()
  12814. {
  12815. if (sizeof (mode_t))
  12816. return 0;
  12817. ;
  12818. return 0;
  12819. }
  12820. _ACEOF
  12821. rm -f conftest.$ac_objext
  12822. if { (ac_try="$ac_compile"
  12823. case "(($ac_try" in
  12824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12825. *) ac_try_echo=$ac_try;;
  12826. esac
  12827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12828. $as_echo "$ac_try_echo") >&5
  12829. (eval "$ac_compile") 2>conftest.er1
  12830. ac_status=$?
  12831. grep -v '^ *+' conftest.er1 >conftest.err
  12832. rm -f conftest.er1
  12833. cat conftest.err >&5
  12834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12835. (exit $ac_status); } && {
  12836. test -z "$ac_c_werror_flag" ||
  12837. test ! -s conftest.err
  12838. } && test -s conftest.$ac_objext; then
  12839. cat >conftest.$ac_ext <<_ACEOF
  12840. /* confdefs.h. */
  12841. _ACEOF
  12842. cat confdefs.h >>conftest.$ac_ext
  12843. cat >>conftest.$ac_ext <<_ACEOF
  12844. /* end confdefs.h. */
  12845. $ac_includes_default
  12846. int
  12847. main ()
  12848. {
  12849. if (sizeof ((mode_t)))
  12850. return 0;
  12851. ;
  12852. return 0;
  12853. }
  12854. _ACEOF
  12855. rm -f conftest.$ac_objext
  12856. if { (ac_try="$ac_compile"
  12857. case "(($ac_try" in
  12858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12859. *) ac_try_echo=$ac_try;;
  12860. esac
  12861. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12862. $as_echo "$ac_try_echo") >&5
  12863. (eval "$ac_compile") 2>conftest.er1
  12864. ac_status=$?
  12865. grep -v '^ *+' conftest.er1 >conftest.err
  12866. rm -f conftest.er1
  12867. cat conftest.err >&5
  12868. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12869. (exit $ac_status); } && {
  12870. test -z "$ac_c_werror_flag" ||
  12871. test ! -s conftest.err
  12872. } && test -s conftest.$ac_objext; then
  12873. :
  12874. else
  12875. $as_echo "$as_me: failed program was:" >&5
  12876. sed 's/^/| /' conftest.$ac_ext >&5
  12877. ac_cv_type_mode_t=yes
  12878. fi
  12879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12880. else
  12881. $as_echo "$as_me: failed program was:" >&5
  12882. sed 's/^/| /' conftest.$ac_ext >&5
  12883. fi
  12884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12885. fi
  12886. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  12887. $as_echo "$ac_cv_type_mode_t" >&6; }
  12888. if test "x$ac_cv_type_mode_t" = x""yes; then
  12889. :
  12890. else
  12891. cat >>confdefs.h <<_ACEOF
  12892. #define mode_t int
  12893. _ACEOF
  12894. fi
  12895. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  12896. $as_echo_n "checking for off_t... " >&6; }
  12897. if test "${ac_cv_type_off_t+set}" = set; then
  12898. $as_echo_n "(cached) " >&6
  12899. else
  12900. ac_cv_type_off_t=no
  12901. cat >conftest.$ac_ext <<_ACEOF
  12902. /* confdefs.h. */
  12903. _ACEOF
  12904. cat confdefs.h >>conftest.$ac_ext
  12905. cat >>conftest.$ac_ext <<_ACEOF
  12906. /* end confdefs.h. */
  12907. $ac_includes_default
  12908. int
  12909. main ()
  12910. {
  12911. if (sizeof (off_t))
  12912. return 0;
  12913. ;
  12914. return 0;
  12915. }
  12916. _ACEOF
  12917. rm -f conftest.$ac_objext
  12918. if { (ac_try="$ac_compile"
  12919. case "(($ac_try" in
  12920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12921. *) ac_try_echo=$ac_try;;
  12922. esac
  12923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12924. $as_echo "$ac_try_echo") >&5
  12925. (eval "$ac_compile") 2>conftest.er1
  12926. ac_status=$?
  12927. grep -v '^ *+' conftest.er1 >conftest.err
  12928. rm -f conftest.er1
  12929. cat conftest.err >&5
  12930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12931. (exit $ac_status); } && {
  12932. test -z "$ac_c_werror_flag" ||
  12933. test ! -s conftest.err
  12934. } && test -s conftest.$ac_objext; then
  12935. cat >conftest.$ac_ext <<_ACEOF
  12936. /* confdefs.h. */
  12937. _ACEOF
  12938. cat confdefs.h >>conftest.$ac_ext
  12939. cat >>conftest.$ac_ext <<_ACEOF
  12940. /* end confdefs.h. */
  12941. $ac_includes_default
  12942. int
  12943. main ()
  12944. {
  12945. if (sizeof ((off_t)))
  12946. return 0;
  12947. ;
  12948. return 0;
  12949. }
  12950. _ACEOF
  12951. rm -f conftest.$ac_objext
  12952. if { (ac_try="$ac_compile"
  12953. case "(($ac_try" in
  12954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12955. *) ac_try_echo=$ac_try;;
  12956. esac
  12957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12958. $as_echo "$ac_try_echo") >&5
  12959. (eval "$ac_compile") 2>conftest.er1
  12960. ac_status=$?
  12961. grep -v '^ *+' conftest.er1 >conftest.err
  12962. rm -f conftest.er1
  12963. cat conftest.err >&5
  12964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12965. (exit $ac_status); } && {
  12966. test -z "$ac_c_werror_flag" ||
  12967. test ! -s conftest.err
  12968. } && test -s conftest.$ac_objext; then
  12969. :
  12970. else
  12971. $as_echo "$as_me: failed program was:" >&5
  12972. sed 's/^/| /' conftest.$ac_ext >&5
  12973. ac_cv_type_off_t=yes
  12974. fi
  12975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12976. else
  12977. $as_echo "$as_me: failed program was:" >&5
  12978. sed 's/^/| /' conftest.$ac_ext >&5
  12979. fi
  12980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12981. fi
  12982. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  12983. $as_echo "$ac_cv_type_off_t" >&6; }
  12984. if test "x$ac_cv_type_off_t" = x""yes; then
  12985. :
  12986. else
  12987. cat >>confdefs.h <<_ACEOF
  12988. #define off_t long int
  12989. _ACEOF
  12990. fi
  12991. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  12992. $as_echo_n "checking for pid_t... " >&6; }
  12993. if test "${ac_cv_type_pid_t+set}" = set; then
  12994. $as_echo_n "(cached) " >&6
  12995. else
  12996. ac_cv_type_pid_t=no
  12997. cat >conftest.$ac_ext <<_ACEOF
  12998. /* confdefs.h. */
  12999. _ACEOF
  13000. cat confdefs.h >>conftest.$ac_ext
  13001. cat >>conftest.$ac_ext <<_ACEOF
  13002. /* end confdefs.h. */
  13003. $ac_includes_default
  13004. int
  13005. main ()
  13006. {
  13007. if (sizeof (pid_t))
  13008. return 0;
  13009. ;
  13010. return 0;
  13011. }
  13012. _ACEOF
  13013. rm -f conftest.$ac_objext
  13014. if { (ac_try="$ac_compile"
  13015. case "(($ac_try" in
  13016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13017. *) ac_try_echo=$ac_try;;
  13018. esac
  13019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13020. $as_echo "$ac_try_echo") >&5
  13021. (eval "$ac_compile") 2>conftest.er1
  13022. ac_status=$?
  13023. grep -v '^ *+' conftest.er1 >conftest.err
  13024. rm -f conftest.er1
  13025. cat conftest.err >&5
  13026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13027. (exit $ac_status); } && {
  13028. test -z "$ac_c_werror_flag" ||
  13029. test ! -s conftest.err
  13030. } && test -s conftest.$ac_objext; then
  13031. cat >conftest.$ac_ext <<_ACEOF
  13032. /* confdefs.h. */
  13033. _ACEOF
  13034. cat confdefs.h >>conftest.$ac_ext
  13035. cat >>conftest.$ac_ext <<_ACEOF
  13036. /* end confdefs.h. */
  13037. $ac_includes_default
  13038. int
  13039. main ()
  13040. {
  13041. if (sizeof ((pid_t)))
  13042. return 0;
  13043. ;
  13044. return 0;
  13045. }
  13046. _ACEOF
  13047. rm -f conftest.$ac_objext
  13048. if { (ac_try="$ac_compile"
  13049. case "(($ac_try" in
  13050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13051. *) ac_try_echo=$ac_try;;
  13052. esac
  13053. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13054. $as_echo "$ac_try_echo") >&5
  13055. (eval "$ac_compile") 2>conftest.er1
  13056. ac_status=$?
  13057. grep -v '^ *+' conftest.er1 >conftest.err
  13058. rm -f conftest.er1
  13059. cat conftest.err >&5
  13060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13061. (exit $ac_status); } && {
  13062. test -z "$ac_c_werror_flag" ||
  13063. test ! -s conftest.err
  13064. } && test -s conftest.$ac_objext; then
  13065. :
  13066. else
  13067. $as_echo "$as_me: failed program was:" >&5
  13068. sed 's/^/| /' conftest.$ac_ext >&5
  13069. ac_cv_type_pid_t=yes
  13070. fi
  13071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13072. else
  13073. $as_echo "$as_me: failed program was:" >&5
  13074. sed 's/^/| /' conftest.$ac_ext >&5
  13075. fi
  13076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13077. fi
  13078. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  13079. $as_echo "$ac_cv_type_pid_t" >&6; }
  13080. if test "x$ac_cv_type_pid_t" = x""yes; then
  13081. :
  13082. else
  13083. cat >>confdefs.h <<_ACEOF
  13084. #define pid_t int
  13085. _ACEOF
  13086. fi
  13087. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  13088. $as_echo_n "checking for size_t... " >&6; }
  13089. if test "${ac_cv_type_size_t+set}" = set; then
  13090. $as_echo_n "(cached) " >&6
  13091. else
  13092. ac_cv_type_size_t=no
  13093. cat >conftest.$ac_ext <<_ACEOF
  13094. /* confdefs.h. */
  13095. _ACEOF
  13096. cat confdefs.h >>conftest.$ac_ext
  13097. cat >>conftest.$ac_ext <<_ACEOF
  13098. /* end confdefs.h. */
  13099. $ac_includes_default
  13100. int
  13101. main ()
  13102. {
  13103. if (sizeof (size_t))
  13104. return 0;
  13105. ;
  13106. return 0;
  13107. }
  13108. _ACEOF
  13109. rm -f conftest.$ac_objext
  13110. if { (ac_try="$ac_compile"
  13111. case "(($ac_try" in
  13112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13113. *) ac_try_echo=$ac_try;;
  13114. esac
  13115. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13116. $as_echo "$ac_try_echo") >&5
  13117. (eval "$ac_compile") 2>conftest.er1
  13118. ac_status=$?
  13119. grep -v '^ *+' conftest.er1 >conftest.err
  13120. rm -f conftest.er1
  13121. cat conftest.err >&5
  13122. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13123. (exit $ac_status); } && {
  13124. test -z "$ac_c_werror_flag" ||
  13125. test ! -s conftest.err
  13126. } && test -s conftest.$ac_objext; then
  13127. cat >conftest.$ac_ext <<_ACEOF
  13128. /* confdefs.h. */
  13129. _ACEOF
  13130. cat confdefs.h >>conftest.$ac_ext
  13131. cat >>conftest.$ac_ext <<_ACEOF
  13132. /* end confdefs.h. */
  13133. $ac_includes_default
  13134. int
  13135. main ()
  13136. {
  13137. if (sizeof ((size_t)))
  13138. return 0;
  13139. ;
  13140. return 0;
  13141. }
  13142. _ACEOF
  13143. rm -f conftest.$ac_objext
  13144. if { (ac_try="$ac_compile"
  13145. case "(($ac_try" in
  13146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13147. *) ac_try_echo=$ac_try;;
  13148. esac
  13149. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13150. $as_echo "$ac_try_echo") >&5
  13151. (eval "$ac_compile") 2>conftest.er1
  13152. ac_status=$?
  13153. grep -v '^ *+' conftest.er1 >conftest.err
  13154. rm -f conftest.er1
  13155. cat conftest.err >&5
  13156. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13157. (exit $ac_status); } && {
  13158. test -z "$ac_c_werror_flag" ||
  13159. test ! -s conftest.err
  13160. } && test -s conftest.$ac_objext; then
  13161. :
  13162. else
  13163. $as_echo "$as_me: failed program was:" >&5
  13164. sed 's/^/| /' conftest.$ac_ext >&5
  13165. ac_cv_type_size_t=yes
  13166. fi
  13167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13168. else
  13169. $as_echo "$as_me: failed program was:" >&5
  13170. sed 's/^/| /' conftest.$ac_ext >&5
  13171. fi
  13172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13173. fi
  13174. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  13175. $as_echo "$ac_cv_type_size_t" >&6; }
  13176. if test "x$ac_cv_type_size_t" = x""yes; then
  13177. :
  13178. else
  13179. cat >>confdefs.h <<_ACEOF
  13180. #define size_t unsigned int
  13181. _ACEOF
  13182. fi
  13183. { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
  13184. $as_echo_n "checking for struct stat.st_blksize... " >&6; }
  13185. if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  13186. $as_echo_n "(cached) " >&6
  13187. else
  13188. cat >conftest.$ac_ext <<_ACEOF
  13189. /* confdefs.h. */
  13190. _ACEOF
  13191. cat confdefs.h >>conftest.$ac_ext
  13192. cat >>conftest.$ac_ext <<_ACEOF
  13193. /* end confdefs.h. */
  13194. $ac_includes_default
  13195. int
  13196. main ()
  13197. {
  13198. static struct stat ac_aggr;
  13199. if (ac_aggr.st_blksize)
  13200. return 0;
  13201. ;
  13202. return 0;
  13203. }
  13204. _ACEOF
  13205. rm -f conftest.$ac_objext
  13206. if { (ac_try="$ac_compile"
  13207. case "(($ac_try" in
  13208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13209. *) ac_try_echo=$ac_try;;
  13210. esac
  13211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13212. $as_echo "$ac_try_echo") >&5
  13213. (eval "$ac_compile") 2>conftest.er1
  13214. ac_status=$?
  13215. grep -v '^ *+' conftest.er1 >conftest.err
  13216. rm -f conftest.er1
  13217. cat conftest.err >&5
  13218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13219. (exit $ac_status); } && {
  13220. test -z "$ac_c_werror_flag" ||
  13221. test ! -s conftest.err
  13222. } && test -s conftest.$ac_objext; then
  13223. ac_cv_member_struct_stat_st_blksize=yes
  13224. else
  13225. $as_echo "$as_me: failed program was:" >&5
  13226. sed 's/^/| /' conftest.$ac_ext >&5
  13227. cat >conftest.$ac_ext <<_ACEOF
  13228. /* confdefs.h. */
  13229. _ACEOF
  13230. cat confdefs.h >>conftest.$ac_ext
  13231. cat >>conftest.$ac_ext <<_ACEOF
  13232. /* end confdefs.h. */
  13233. $ac_includes_default
  13234. int
  13235. main ()
  13236. {
  13237. static struct stat ac_aggr;
  13238. if (sizeof ac_aggr.st_blksize)
  13239. return 0;
  13240. ;
  13241. return 0;
  13242. }
  13243. _ACEOF
  13244. rm -f conftest.$ac_objext
  13245. if { (ac_try="$ac_compile"
  13246. case "(($ac_try" in
  13247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13248. *) ac_try_echo=$ac_try;;
  13249. esac
  13250. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13251. $as_echo "$ac_try_echo") >&5
  13252. (eval "$ac_compile") 2>conftest.er1
  13253. ac_status=$?
  13254. grep -v '^ *+' conftest.er1 >conftest.err
  13255. rm -f conftest.er1
  13256. cat conftest.err >&5
  13257. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13258. (exit $ac_status); } && {
  13259. test -z "$ac_c_werror_flag" ||
  13260. test ! -s conftest.err
  13261. } && test -s conftest.$ac_objext; then
  13262. ac_cv_member_struct_stat_st_blksize=yes
  13263. else
  13264. $as_echo "$as_me: failed program was:" >&5
  13265. sed 's/^/| /' conftest.$ac_ext >&5
  13266. ac_cv_member_struct_stat_st_blksize=no
  13267. fi
  13268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13269. fi
  13270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13271. fi
  13272. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
  13273. $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
  13274. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
  13275. cat >>confdefs.h <<_ACEOF
  13276. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  13277. _ACEOF
  13278. fi
  13279. { $as_echo "$as_me:$LINENO: checking for struct ucred.uid" >&5
  13280. $as_echo_n "checking for struct ucred.uid... " >&6; }
  13281. if test "${ac_cv_member_struct_ucred_uid+set}" = set; then
  13282. $as_echo_n "(cached) " >&6
  13283. else
  13284. cat >conftest.$ac_ext <<_ACEOF
  13285. /* confdefs.h. */
  13286. _ACEOF
  13287. cat confdefs.h >>conftest.$ac_ext
  13288. cat >>conftest.$ac_ext <<_ACEOF
  13289. /* end confdefs.h. */
  13290. #include <sys/types.h>
  13291. #include <sys/socket.h>
  13292. int
  13293. main ()
  13294. {
  13295. static struct ucred ac_aggr;
  13296. if (ac_aggr.uid)
  13297. return 0;
  13298. ;
  13299. return 0;
  13300. }
  13301. _ACEOF
  13302. rm -f conftest.$ac_objext
  13303. if { (ac_try="$ac_compile"
  13304. case "(($ac_try" in
  13305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13306. *) ac_try_echo=$ac_try;;
  13307. esac
  13308. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13309. $as_echo "$ac_try_echo") >&5
  13310. (eval "$ac_compile") 2>conftest.er1
  13311. ac_status=$?
  13312. grep -v '^ *+' conftest.er1 >conftest.err
  13313. rm -f conftest.er1
  13314. cat conftest.err >&5
  13315. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13316. (exit $ac_status); } && {
  13317. test -z "$ac_c_werror_flag" ||
  13318. test ! -s conftest.err
  13319. } && test -s conftest.$ac_objext; then
  13320. ac_cv_member_struct_ucred_uid=yes
  13321. else
  13322. $as_echo "$as_me: failed program was:" >&5
  13323. sed 's/^/| /' conftest.$ac_ext >&5
  13324. cat >conftest.$ac_ext <<_ACEOF
  13325. /* confdefs.h. */
  13326. _ACEOF
  13327. cat confdefs.h >>conftest.$ac_ext
  13328. cat >>conftest.$ac_ext <<_ACEOF
  13329. /* end confdefs.h. */
  13330. #include <sys/types.h>
  13331. #include <sys/socket.h>
  13332. int
  13333. main ()
  13334. {
  13335. static struct ucred ac_aggr;
  13336. if (sizeof ac_aggr.uid)
  13337. return 0;
  13338. ;
  13339. return 0;
  13340. }
  13341. _ACEOF
  13342. rm -f conftest.$ac_objext
  13343. if { (ac_try="$ac_compile"
  13344. case "(($ac_try" in
  13345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13346. *) ac_try_echo=$ac_try;;
  13347. esac
  13348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13349. $as_echo "$ac_try_echo") >&5
  13350. (eval "$ac_compile") 2>conftest.er1
  13351. ac_status=$?
  13352. grep -v '^ *+' conftest.er1 >conftest.err
  13353. rm -f conftest.er1
  13354. cat conftest.err >&5
  13355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13356. (exit $ac_status); } && {
  13357. test -z "$ac_c_werror_flag" ||
  13358. test ! -s conftest.err
  13359. } && test -s conftest.$ac_objext; then
  13360. ac_cv_member_struct_ucred_uid=yes
  13361. else
  13362. $as_echo "$as_me: failed program was:" >&5
  13363. sed 's/^/| /' conftest.$ac_ext >&5
  13364. ac_cv_member_struct_ucred_uid=no
  13365. fi
  13366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13367. fi
  13368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13369. fi
  13370. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ucred_uid" >&5
  13371. $as_echo "$ac_cv_member_struct_ucred_uid" >&6; }
  13372. if test "x$ac_cv_member_struct_ucred_uid" = x""yes; then
  13373. cat >>confdefs.h <<_ACEOF
  13374. #define HAVE_STRUCT_UCRED_UID 1
  13375. _ACEOF
  13376. fi
  13377. { $as_echo "$as_me:$LINENO: checking for struct ucred.cr_uid" >&5
  13378. $as_echo_n "checking for struct ucred.cr_uid... " >&6; }
  13379. if test "${ac_cv_member_struct_ucred_cr_uid+set}" = set; then
  13380. $as_echo_n "(cached) " >&6
  13381. else
  13382. cat >conftest.$ac_ext <<_ACEOF
  13383. /* confdefs.h. */
  13384. _ACEOF
  13385. cat confdefs.h >>conftest.$ac_ext
  13386. cat >>conftest.$ac_ext <<_ACEOF
  13387. /* end confdefs.h. */
  13388. #include <sys/types.h>
  13389. #include <sys/socket.h>
  13390. int
  13391. main ()
  13392. {
  13393. static struct ucred ac_aggr;
  13394. if (ac_aggr.cr_uid)
  13395. return 0;
  13396. ;
  13397. return 0;
  13398. }
  13399. _ACEOF
  13400. rm -f conftest.$ac_objext
  13401. if { (ac_try="$ac_compile"
  13402. case "(($ac_try" in
  13403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13404. *) ac_try_echo=$ac_try;;
  13405. esac
  13406. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13407. $as_echo "$ac_try_echo") >&5
  13408. (eval "$ac_compile") 2>conftest.er1
  13409. ac_status=$?
  13410. grep -v '^ *+' conftest.er1 >conftest.err
  13411. rm -f conftest.er1
  13412. cat conftest.err >&5
  13413. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13414. (exit $ac_status); } && {
  13415. test -z "$ac_c_werror_flag" ||
  13416. test ! -s conftest.err
  13417. } && test -s conftest.$ac_objext; then
  13418. ac_cv_member_struct_ucred_cr_uid=yes
  13419. else
  13420. $as_echo "$as_me: failed program was:" >&5
  13421. sed 's/^/| /' conftest.$ac_ext >&5
  13422. cat >conftest.$ac_ext <<_ACEOF
  13423. /* confdefs.h. */
  13424. _ACEOF
  13425. cat confdefs.h >>conftest.$ac_ext
  13426. cat >>conftest.$ac_ext <<_ACEOF
  13427. /* end confdefs.h. */
  13428. #include <sys/types.h>
  13429. #include <sys/socket.h>
  13430. int
  13431. main ()
  13432. {
  13433. static struct ucred ac_aggr;
  13434. if (sizeof ac_aggr.cr_uid)
  13435. return 0;
  13436. ;
  13437. return 0;
  13438. }
  13439. _ACEOF
  13440. rm -f conftest.$ac_objext
  13441. if { (ac_try="$ac_compile"
  13442. case "(($ac_try" in
  13443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13444. *) ac_try_echo=$ac_try;;
  13445. esac
  13446. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13447. $as_echo "$ac_try_echo") >&5
  13448. (eval "$ac_compile") 2>conftest.er1
  13449. ac_status=$?
  13450. grep -v '^ *+' conftest.er1 >conftest.err
  13451. rm -f conftest.er1
  13452. cat conftest.err >&5
  13453. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13454. (exit $ac_status); } && {
  13455. test -z "$ac_c_werror_flag" ||
  13456. test ! -s conftest.err
  13457. } && test -s conftest.$ac_objext; then
  13458. ac_cv_member_struct_ucred_cr_uid=yes
  13459. else
  13460. $as_echo "$as_me: failed program was:" >&5
  13461. sed 's/^/| /' conftest.$ac_ext >&5
  13462. ac_cv_member_struct_ucred_cr_uid=no
  13463. fi
  13464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13465. fi
  13466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13467. fi
  13468. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ucred_cr_uid" >&5
  13469. $as_echo "$ac_cv_member_struct_ucred_cr_uid" >&6; }
  13470. if test "x$ac_cv_member_struct_ucred_cr_uid" = x""yes; then
  13471. cat >>confdefs.h <<_ACEOF
  13472. #define HAVE_STRUCT_UCRED_CR_UID 1
  13473. _ACEOF
  13474. fi
  13475. { $as_echo "$as_me:$LINENO: checking for struct sockpeercred.uid" >&5
  13476. $as_echo_n "checking for struct sockpeercred.uid... " >&6; }
  13477. if test "${ac_cv_member_struct_sockpeercred_uid+set}" = set; then
  13478. $as_echo_n "(cached) " >&6
  13479. else
  13480. cat >conftest.$ac_ext <<_ACEOF
  13481. /* confdefs.h. */
  13482. _ACEOF
  13483. cat confdefs.h >>conftest.$ac_ext
  13484. cat >>conftest.$ac_ext <<_ACEOF
  13485. /* end confdefs.h. */
  13486. #include <sys/types.h>
  13487. #include <sys/socket.h>
  13488. int
  13489. main ()
  13490. {
  13491. static struct sockpeercred ac_aggr;
  13492. if (ac_aggr.uid)
  13493. return 0;
  13494. ;
  13495. return 0;
  13496. }
  13497. _ACEOF
  13498. rm -f conftest.$ac_objext
  13499. if { (ac_try="$ac_compile"
  13500. case "(($ac_try" in
  13501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13502. *) ac_try_echo=$ac_try;;
  13503. esac
  13504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13505. $as_echo "$ac_try_echo") >&5
  13506. (eval "$ac_compile") 2>conftest.er1
  13507. ac_status=$?
  13508. grep -v '^ *+' conftest.er1 >conftest.err
  13509. rm -f conftest.er1
  13510. cat conftest.err >&5
  13511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13512. (exit $ac_status); } && {
  13513. test -z "$ac_c_werror_flag" ||
  13514. test ! -s conftest.err
  13515. } && test -s conftest.$ac_objext; then
  13516. ac_cv_member_struct_sockpeercred_uid=yes
  13517. else
  13518. $as_echo "$as_me: failed program was:" >&5
  13519. sed 's/^/| /' conftest.$ac_ext >&5
  13520. cat >conftest.$ac_ext <<_ACEOF
  13521. /* confdefs.h. */
  13522. _ACEOF
  13523. cat confdefs.h >>conftest.$ac_ext
  13524. cat >>conftest.$ac_ext <<_ACEOF
  13525. /* end confdefs.h. */
  13526. #include <sys/types.h>
  13527. #include <sys/socket.h>
  13528. int
  13529. main ()
  13530. {
  13531. static struct sockpeercred ac_aggr;
  13532. if (sizeof ac_aggr.uid)
  13533. return 0;
  13534. ;
  13535. return 0;
  13536. }
  13537. _ACEOF
  13538. rm -f conftest.$ac_objext
  13539. if { (ac_try="$ac_compile"
  13540. case "(($ac_try" in
  13541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13542. *) ac_try_echo=$ac_try;;
  13543. esac
  13544. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13545. $as_echo "$ac_try_echo") >&5
  13546. (eval "$ac_compile") 2>conftest.er1
  13547. ac_status=$?
  13548. grep -v '^ *+' conftest.er1 >conftest.err
  13549. rm -f conftest.er1
  13550. cat conftest.err >&5
  13551. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13552. (exit $ac_status); } && {
  13553. test -z "$ac_c_werror_flag" ||
  13554. test ! -s conftest.err
  13555. } && test -s conftest.$ac_objext; then
  13556. ac_cv_member_struct_sockpeercred_uid=yes
  13557. else
  13558. $as_echo "$as_me: failed program was:" >&5
  13559. sed 's/^/| /' conftest.$ac_ext >&5
  13560. ac_cv_member_struct_sockpeercred_uid=no
  13561. fi
  13562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13563. fi
  13564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13565. fi
  13566. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockpeercred_uid" >&5
  13567. $as_echo "$ac_cv_member_struct_sockpeercred_uid" >&6; }
  13568. if test "x$ac_cv_member_struct_sockpeercred_uid" = x""yes; then
  13569. cat >>confdefs.h <<_ACEOF
  13570. #define HAVE_STRUCT_SOCKPEERCRED_UID 1
  13571. _ACEOF
  13572. fi
  13573. { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_ifru.ifru_hwaddr" >&5
  13574. $as_echo_n "checking for struct ifreq.ifr_ifru.ifru_hwaddr... " >&6; }
  13575. if test "${ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr+set}" = set; then
  13576. $as_echo_n "(cached) " >&6
  13577. else
  13578. cat >conftest.$ac_ext <<_ACEOF
  13579. /* confdefs.h. */
  13580. _ACEOF
  13581. cat confdefs.h >>conftest.$ac_ext
  13582. cat >>conftest.$ac_ext <<_ACEOF
  13583. /* end confdefs.h. */
  13584. #include <net/if.h>
  13585. int
  13586. main ()
  13587. {
  13588. static struct ifreq ac_aggr;
  13589. if (ac_aggr.ifr_ifru.ifru_hwaddr)
  13590. return 0;
  13591. ;
  13592. return 0;
  13593. }
  13594. _ACEOF
  13595. rm -f conftest.$ac_objext
  13596. if { (ac_try="$ac_compile"
  13597. case "(($ac_try" in
  13598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13599. *) ac_try_echo=$ac_try;;
  13600. esac
  13601. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13602. $as_echo "$ac_try_echo") >&5
  13603. (eval "$ac_compile") 2>conftest.er1
  13604. ac_status=$?
  13605. grep -v '^ *+' conftest.er1 >conftest.err
  13606. rm -f conftest.er1
  13607. cat conftest.err >&5
  13608. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13609. (exit $ac_status); } && {
  13610. test -z "$ac_c_werror_flag" ||
  13611. test ! -s conftest.err
  13612. } && test -s conftest.$ac_objext; then
  13613. ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr=yes
  13614. else
  13615. $as_echo "$as_me: failed program was:" >&5
  13616. sed 's/^/| /' conftest.$ac_ext >&5
  13617. cat >conftest.$ac_ext <<_ACEOF
  13618. /* confdefs.h. */
  13619. _ACEOF
  13620. cat confdefs.h >>conftest.$ac_ext
  13621. cat >>conftest.$ac_ext <<_ACEOF
  13622. /* end confdefs.h. */
  13623. #include <net/if.h>
  13624. int
  13625. main ()
  13626. {
  13627. static struct ifreq ac_aggr;
  13628. if (sizeof ac_aggr.ifr_ifru.ifru_hwaddr)
  13629. return 0;
  13630. ;
  13631. return 0;
  13632. }
  13633. _ACEOF
  13634. rm -f conftest.$ac_objext
  13635. if { (ac_try="$ac_compile"
  13636. case "(($ac_try" in
  13637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13638. *) ac_try_echo=$ac_try;;
  13639. esac
  13640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13641. $as_echo "$ac_try_echo") >&5
  13642. (eval "$ac_compile") 2>conftest.er1
  13643. ac_status=$?
  13644. grep -v '^ *+' conftest.er1 >conftest.err
  13645. rm -f conftest.er1
  13646. cat conftest.err >&5
  13647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13648. (exit $ac_status); } && {
  13649. test -z "$ac_c_werror_flag" ||
  13650. test ! -s conftest.err
  13651. } && test -s conftest.$ac_objext; then
  13652. ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr=yes
  13653. else
  13654. $as_echo "$as_me: failed program was:" >&5
  13655. sed 's/^/| /' conftest.$ac_ext >&5
  13656. ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr=no
  13657. fi
  13658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13659. fi
  13660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13661. fi
  13662. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" >&5
  13663. $as_echo "$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" >&6; }
  13664. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = x""yes; then
  13665. cat >>confdefs.h <<_ACEOF
  13666. #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
  13667. _ACEOF
  13668. fi
  13669. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  13670. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13671. if test "${ac_cv_header_time+set}" = set; then
  13672. $as_echo_n "(cached) " >&6
  13673. else
  13674. cat >conftest.$ac_ext <<_ACEOF
  13675. /* confdefs.h. */
  13676. _ACEOF
  13677. cat confdefs.h >>conftest.$ac_ext
  13678. cat >>conftest.$ac_ext <<_ACEOF
  13679. /* end confdefs.h. */
  13680. #include <sys/types.h>
  13681. #include <sys/time.h>
  13682. #include <time.h>
  13683. int
  13684. main ()
  13685. {
  13686. if ((struct tm *) 0)
  13687. return 0;
  13688. ;
  13689. return 0;
  13690. }
  13691. _ACEOF
  13692. rm -f conftest.$ac_objext
  13693. if { (ac_try="$ac_compile"
  13694. case "(($ac_try" in
  13695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13696. *) ac_try_echo=$ac_try;;
  13697. esac
  13698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13699. $as_echo "$ac_try_echo") >&5
  13700. (eval "$ac_compile") 2>conftest.er1
  13701. ac_status=$?
  13702. grep -v '^ *+' conftest.er1 >conftest.err
  13703. rm -f conftest.er1
  13704. cat conftest.err >&5
  13705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13706. (exit $ac_status); } && {
  13707. test -z "$ac_c_werror_flag" ||
  13708. test ! -s conftest.err
  13709. } && test -s conftest.$ac_objext; then
  13710. ac_cv_header_time=yes
  13711. else
  13712. $as_echo "$as_me: failed program was:" >&5
  13713. sed 's/^/| /' conftest.$ac_ext >&5
  13714. ac_cv_header_time=no
  13715. fi
  13716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13717. fi
  13718. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  13719. $as_echo "$ac_cv_header_time" >&6; }
  13720. if test $ac_cv_header_time = yes; then
  13721. cat >>confdefs.h <<\_ACEOF
  13722. #define TIME_WITH_SYS_TIME 1
  13723. _ACEOF
  13724. fi
  13725. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  13726. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  13727. if test "${ac_cv_struct_tm+set}" = set; then
  13728. $as_echo_n "(cached) " >&6
  13729. else
  13730. cat >conftest.$ac_ext <<_ACEOF
  13731. /* confdefs.h. */
  13732. _ACEOF
  13733. cat confdefs.h >>conftest.$ac_ext
  13734. cat >>conftest.$ac_ext <<_ACEOF
  13735. /* end confdefs.h. */
  13736. #include <sys/types.h>
  13737. #include <time.h>
  13738. int
  13739. main ()
  13740. {
  13741. struct tm tm;
  13742. int *p = &tm.tm_sec;
  13743. return !p;
  13744. ;
  13745. return 0;
  13746. }
  13747. _ACEOF
  13748. rm -f conftest.$ac_objext
  13749. if { (ac_try="$ac_compile"
  13750. case "(($ac_try" in
  13751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13752. *) ac_try_echo=$ac_try;;
  13753. esac
  13754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13755. $as_echo "$ac_try_echo") >&5
  13756. (eval "$ac_compile") 2>conftest.er1
  13757. ac_status=$?
  13758. grep -v '^ *+' conftest.er1 >conftest.err
  13759. rm -f conftest.er1
  13760. cat conftest.err >&5
  13761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13762. (exit $ac_status); } && {
  13763. test -z "$ac_c_werror_flag" ||
  13764. test ! -s conftest.err
  13765. } && test -s conftest.$ac_objext; then
  13766. ac_cv_struct_tm=time.h
  13767. else
  13768. $as_echo "$as_me: failed program was:" >&5
  13769. sed 's/^/| /' conftest.$ac_ext >&5
  13770. ac_cv_struct_tm=sys/time.h
  13771. fi
  13772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13773. fi
  13774. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  13775. $as_echo "$ac_cv_struct_tm" >&6; }
  13776. if test $ac_cv_struct_tm = sys/time.h; then
  13777. cat >>confdefs.h <<\_ACEOF
  13778. #define TM_IN_SYS_TIME 1
  13779. _ACEOF
  13780. fi
  13781. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  13782. $as_echo_n "checking for working volatile... " >&6; }
  13783. if test "${ac_cv_c_volatile+set}" = set; then
  13784. $as_echo_n "(cached) " >&6
  13785. else
  13786. cat >conftest.$ac_ext <<_ACEOF
  13787. /* confdefs.h. */
  13788. _ACEOF
  13789. cat confdefs.h >>conftest.$ac_ext
  13790. cat >>conftest.$ac_ext <<_ACEOF
  13791. /* end confdefs.h. */
  13792. int
  13793. main ()
  13794. {
  13795. volatile int x;
  13796. int * volatile y = (int *) 0;
  13797. return !x && !y;
  13798. ;
  13799. return 0;
  13800. }
  13801. _ACEOF
  13802. rm -f conftest.$ac_objext
  13803. if { (ac_try="$ac_compile"
  13804. case "(($ac_try" in
  13805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13806. *) ac_try_echo=$ac_try;;
  13807. esac
  13808. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13809. $as_echo "$ac_try_echo") >&5
  13810. (eval "$ac_compile") 2>conftest.er1
  13811. ac_status=$?
  13812. grep -v '^ *+' conftest.er1 >conftest.err
  13813. rm -f conftest.er1
  13814. cat conftest.err >&5
  13815. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13816. (exit $ac_status); } && {
  13817. test -z "$ac_c_werror_flag" ||
  13818. test ! -s conftest.err
  13819. } && test -s conftest.$ac_objext; then
  13820. ac_cv_c_volatile=yes
  13821. else
  13822. $as_echo "$as_me: failed program was:" >&5
  13823. sed 's/^/| /' conftest.$ac_ext >&5
  13824. ac_cv_c_volatile=no
  13825. fi
  13826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13827. fi
  13828. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  13829. $as_echo "$ac_cv_c_volatile" >&6; }
  13830. if test $ac_cv_c_volatile = no; then
  13831. cat >>confdefs.h <<\_ACEOF
  13832. #define volatile /**/
  13833. _ACEOF
  13834. fi
  13835. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  13836. $as_echo_n "checking for ptrdiff_t... " >&6; }
  13837. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  13838. $as_echo_n "(cached) " >&6
  13839. else
  13840. ac_cv_type_ptrdiff_t=no
  13841. cat >conftest.$ac_ext <<_ACEOF
  13842. /* confdefs.h. */
  13843. _ACEOF
  13844. cat confdefs.h >>conftest.$ac_ext
  13845. cat >>conftest.$ac_ext <<_ACEOF
  13846. /* end confdefs.h. */
  13847. $ac_includes_default
  13848. int
  13849. main ()
  13850. {
  13851. if (sizeof (ptrdiff_t))
  13852. return 0;
  13853. ;
  13854. return 0;
  13855. }
  13856. _ACEOF
  13857. rm -f conftest.$ac_objext
  13858. if { (ac_try="$ac_compile"
  13859. case "(($ac_try" in
  13860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13861. *) ac_try_echo=$ac_try;;
  13862. esac
  13863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13864. $as_echo "$ac_try_echo") >&5
  13865. (eval "$ac_compile") 2>conftest.er1
  13866. ac_status=$?
  13867. grep -v '^ *+' conftest.er1 >conftest.err
  13868. rm -f conftest.er1
  13869. cat conftest.err >&5
  13870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13871. (exit $ac_status); } && {
  13872. test -z "$ac_c_werror_flag" ||
  13873. test ! -s conftest.err
  13874. } && test -s conftest.$ac_objext; then
  13875. cat >conftest.$ac_ext <<_ACEOF
  13876. /* confdefs.h. */
  13877. _ACEOF
  13878. cat confdefs.h >>conftest.$ac_ext
  13879. cat >>conftest.$ac_ext <<_ACEOF
  13880. /* end confdefs.h. */
  13881. $ac_includes_default
  13882. int
  13883. main ()
  13884. {
  13885. if (sizeof ((ptrdiff_t)))
  13886. return 0;
  13887. ;
  13888. return 0;
  13889. }
  13890. _ACEOF
  13891. rm -f conftest.$ac_objext
  13892. if { (ac_try="$ac_compile"
  13893. case "(($ac_try" in
  13894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13895. *) ac_try_echo=$ac_try;;
  13896. esac
  13897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13898. $as_echo "$ac_try_echo") >&5
  13899. (eval "$ac_compile") 2>conftest.er1
  13900. ac_status=$?
  13901. grep -v '^ *+' conftest.er1 >conftest.err
  13902. rm -f conftest.er1
  13903. cat conftest.err >&5
  13904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13905. (exit $ac_status); } && {
  13906. test -z "$ac_c_werror_flag" ||
  13907. test ! -s conftest.err
  13908. } && test -s conftest.$ac_objext; then
  13909. :
  13910. else
  13911. $as_echo "$as_me: failed program was:" >&5
  13912. sed 's/^/| /' conftest.$ac_ext >&5
  13913. ac_cv_type_ptrdiff_t=yes
  13914. fi
  13915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13916. else
  13917. $as_echo "$as_me: failed program was:" >&5
  13918. sed 's/^/| /' conftest.$ac_ext >&5
  13919. fi
  13920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13921. fi
  13922. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  13923. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  13924. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  13925. cat >>confdefs.h <<_ACEOF
  13926. #define HAVE_PTRDIFF_T 1
  13927. _ACEOF
  13928. fi
  13929. # Checks for library functions.
  13930. for ac_header in unistd.h
  13931. do
  13932. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13933. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13934. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13935. $as_echo_n "checking for $ac_header... " >&6; }
  13936. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13937. $as_echo_n "(cached) " >&6
  13938. fi
  13939. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13940. $as_echo "$as_val"'`
  13941. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13942. $as_echo "$ac_res" >&6; }
  13943. else
  13944. # Is the header compilable?
  13945. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13946. $as_echo_n "checking $ac_header usability... " >&6; }
  13947. cat >conftest.$ac_ext <<_ACEOF
  13948. /* confdefs.h. */
  13949. _ACEOF
  13950. cat confdefs.h >>conftest.$ac_ext
  13951. cat >>conftest.$ac_ext <<_ACEOF
  13952. /* end confdefs.h. */
  13953. $ac_includes_default
  13954. #include <$ac_header>
  13955. _ACEOF
  13956. rm -f conftest.$ac_objext
  13957. if { (ac_try="$ac_compile"
  13958. case "(($ac_try" in
  13959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13960. *) ac_try_echo=$ac_try;;
  13961. esac
  13962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13963. $as_echo "$ac_try_echo") >&5
  13964. (eval "$ac_compile") 2>conftest.er1
  13965. ac_status=$?
  13966. grep -v '^ *+' conftest.er1 >conftest.err
  13967. rm -f conftest.er1
  13968. cat conftest.err >&5
  13969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13970. (exit $ac_status); } && {
  13971. test -z "$ac_c_werror_flag" ||
  13972. test ! -s conftest.err
  13973. } && test -s conftest.$ac_objext; then
  13974. ac_header_compiler=yes
  13975. else
  13976. $as_echo "$as_me: failed program was:" >&5
  13977. sed 's/^/| /' conftest.$ac_ext >&5
  13978. ac_header_compiler=no
  13979. fi
  13980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13981. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13982. $as_echo "$ac_header_compiler" >&6; }
  13983. # Is the header present?
  13984. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13985. $as_echo_n "checking $ac_header presence... " >&6; }
  13986. cat >conftest.$ac_ext <<_ACEOF
  13987. /* confdefs.h. */
  13988. _ACEOF
  13989. cat confdefs.h >>conftest.$ac_ext
  13990. cat >>conftest.$ac_ext <<_ACEOF
  13991. /* end confdefs.h. */
  13992. #include <$ac_header>
  13993. _ACEOF
  13994. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13995. case "(($ac_try" in
  13996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13997. *) ac_try_echo=$ac_try;;
  13998. esac
  13999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14000. $as_echo "$ac_try_echo") >&5
  14001. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14002. ac_status=$?
  14003. grep -v '^ *+' conftest.er1 >conftest.err
  14004. rm -f conftest.er1
  14005. cat conftest.err >&5
  14006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14007. (exit $ac_status); } >/dev/null && {
  14008. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14009. test ! -s conftest.err
  14010. }; then
  14011. ac_header_preproc=yes
  14012. else
  14013. $as_echo "$as_me: failed program was:" >&5
  14014. sed 's/^/| /' conftest.$ac_ext >&5
  14015. ac_header_preproc=no
  14016. fi
  14017. rm -f conftest.err conftest.$ac_ext
  14018. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14019. $as_echo "$ac_header_preproc" >&6; }
  14020. # So? What about this header?
  14021. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14022. yes:no: )
  14023. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14024. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14025. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14026. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14027. ac_header_preproc=yes
  14028. ;;
  14029. no:yes:* )
  14030. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14031. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14032. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14033. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14034. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14035. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14036. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14037. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14038. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14039. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14040. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14041. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14042. ( cat <<\_ASBOX
  14043. ## ------------------------------------------ ##
  14044. ## Report this to https://issues.asterisk.org ##
  14045. ## ------------------------------------------ ##
  14046. _ASBOX
  14047. ) | sed "s/^/$as_me: WARNING: /" >&2
  14048. ;;
  14049. esac
  14050. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14051. $as_echo_n "checking for $ac_header... " >&6; }
  14052. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14053. $as_echo_n "(cached) " >&6
  14054. else
  14055. eval "$as_ac_Header=\$ac_header_preproc"
  14056. fi
  14057. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14058. $as_echo "$as_val"'`
  14059. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14060. $as_echo "$ac_res" >&6; }
  14061. fi
  14062. as_val=`eval 'as_val=${'$as_ac_Header'}
  14063. $as_echo "$as_val"'`
  14064. if test "x$as_val" = x""yes; then
  14065. cat >>confdefs.h <<_ACEOF
  14066. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14067. _ACEOF
  14068. fi
  14069. done
  14070. { $as_echo "$as_me:$LINENO: checking for working chown" >&5
  14071. $as_echo_n "checking for working chown... " >&6; }
  14072. if test "${ac_cv_func_chown_works+set}" = set; then
  14073. $as_echo_n "(cached) " >&6
  14074. else
  14075. if test "$cross_compiling" = yes; then
  14076. ac_cv_func_chown_works=no
  14077. else
  14078. cat >conftest.$ac_ext <<_ACEOF
  14079. /* confdefs.h. */
  14080. _ACEOF
  14081. cat confdefs.h >>conftest.$ac_ext
  14082. cat >>conftest.$ac_ext <<_ACEOF
  14083. /* end confdefs.h. */
  14084. $ac_includes_default
  14085. #include <fcntl.h>
  14086. int
  14087. main ()
  14088. {
  14089. char *f = "conftest.chown";
  14090. struct stat before, after;
  14091. if (creat (f, 0600) < 0)
  14092. return 1;
  14093. if (stat (f, &before) < 0)
  14094. return 1;
  14095. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14096. return 1;
  14097. if (stat (f, &after) < 0)
  14098. return 1;
  14099. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14100. ;
  14101. return 0;
  14102. }
  14103. _ACEOF
  14104. rm -f conftest$ac_exeext
  14105. if { (ac_try="$ac_link"
  14106. case "(($ac_try" in
  14107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14108. *) ac_try_echo=$ac_try;;
  14109. esac
  14110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14111. $as_echo "$ac_try_echo") >&5
  14112. (eval "$ac_link") 2>&5
  14113. ac_status=$?
  14114. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14115. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14116. { (case "(($ac_try" in
  14117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14118. *) ac_try_echo=$ac_try;;
  14119. esac
  14120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14121. $as_echo "$ac_try_echo") >&5
  14122. (eval "$ac_try") 2>&5
  14123. ac_status=$?
  14124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14125. (exit $ac_status); }; }; then
  14126. ac_cv_func_chown_works=yes
  14127. else
  14128. $as_echo "$as_me: program exited with status $ac_status" >&5
  14129. $as_echo "$as_me: failed program was:" >&5
  14130. sed 's/^/| /' conftest.$ac_ext >&5
  14131. ( exit $ac_status )
  14132. ac_cv_func_chown_works=no
  14133. fi
  14134. rm -rf conftest.dSYM
  14135. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14136. fi
  14137. rm -f conftest.chown
  14138. fi
  14139. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  14140. $as_echo "$ac_cv_func_chown_works" >&6; }
  14141. if test $ac_cv_func_chown_works = yes; then
  14142. cat >>confdefs.h <<\_ACEOF
  14143. #define HAVE_CHOWN 1
  14144. _ACEOF
  14145. fi
  14146. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  14147. $as_echo_n "checking whether closedir returns void... " >&6; }
  14148. if test "${ac_cv_func_closedir_void+set}" = set; then
  14149. $as_echo_n "(cached) " >&6
  14150. else
  14151. if test "$cross_compiling" = yes; then
  14152. ac_cv_func_closedir_void=yes
  14153. else
  14154. cat >conftest.$ac_ext <<_ACEOF
  14155. /* confdefs.h. */
  14156. _ACEOF
  14157. cat confdefs.h >>conftest.$ac_ext
  14158. cat >>conftest.$ac_ext <<_ACEOF
  14159. /* end confdefs.h. */
  14160. $ac_includes_default
  14161. #include <$ac_header_dirent>
  14162. #ifndef __cplusplus
  14163. int closedir ();
  14164. #endif
  14165. int
  14166. main ()
  14167. {
  14168. return closedir (opendir (".")) != 0;
  14169. ;
  14170. return 0;
  14171. }
  14172. _ACEOF
  14173. rm -f conftest$ac_exeext
  14174. if { (ac_try="$ac_link"
  14175. case "(($ac_try" in
  14176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14177. *) ac_try_echo=$ac_try;;
  14178. esac
  14179. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14180. $as_echo "$ac_try_echo") >&5
  14181. (eval "$ac_link") 2>&5
  14182. ac_status=$?
  14183. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14184. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14185. { (case "(($ac_try" in
  14186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14187. *) ac_try_echo=$ac_try;;
  14188. esac
  14189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14190. $as_echo "$ac_try_echo") >&5
  14191. (eval "$ac_try") 2>&5
  14192. ac_status=$?
  14193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14194. (exit $ac_status); }; }; then
  14195. ac_cv_func_closedir_void=no
  14196. else
  14197. $as_echo "$as_me: program exited with status $ac_status" >&5
  14198. $as_echo "$as_me: failed program was:" >&5
  14199. sed 's/^/| /' conftest.$ac_ext >&5
  14200. ( exit $ac_status )
  14201. ac_cv_func_closedir_void=yes
  14202. fi
  14203. rm -rf conftest.dSYM
  14204. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14205. fi
  14206. fi
  14207. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  14208. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14209. if test $ac_cv_func_closedir_void = yes; then
  14210. cat >>confdefs.h <<\_ACEOF
  14211. #define CLOSEDIR_VOID 1
  14212. _ACEOF
  14213. fi
  14214. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  14215. $as_echo_n "checking for error_at_line... " >&6; }
  14216. if test "${ac_cv_lib_error_at_line+set}" = set; then
  14217. $as_echo_n "(cached) " >&6
  14218. else
  14219. cat >conftest.$ac_ext <<_ACEOF
  14220. /* confdefs.h. */
  14221. _ACEOF
  14222. cat confdefs.h >>conftest.$ac_ext
  14223. cat >>conftest.$ac_ext <<_ACEOF
  14224. /* end confdefs.h. */
  14225. #include <error.h>
  14226. int
  14227. main ()
  14228. {
  14229. error_at_line (0, 0, "", 0, "an error occurred");
  14230. ;
  14231. return 0;
  14232. }
  14233. _ACEOF
  14234. rm -f conftest.$ac_objext conftest$ac_exeext
  14235. if { (ac_try="$ac_link"
  14236. case "(($ac_try" in
  14237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14238. *) ac_try_echo=$ac_try;;
  14239. esac
  14240. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14241. $as_echo "$ac_try_echo") >&5
  14242. (eval "$ac_link") 2>conftest.er1
  14243. ac_status=$?
  14244. grep -v '^ *+' conftest.er1 >conftest.err
  14245. rm -f conftest.er1
  14246. cat conftest.err >&5
  14247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14248. (exit $ac_status); } && {
  14249. test -z "$ac_c_werror_flag" ||
  14250. test ! -s conftest.err
  14251. } && test -s conftest$ac_exeext && {
  14252. test "$cross_compiling" = yes ||
  14253. $as_test_x conftest$ac_exeext
  14254. }; then
  14255. ac_cv_lib_error_at_line=yes
  14256. else
  14257. $as_echo "$as_me: failed program was:" >&5
  14258. sed 's/^/| /' conftest.$ac_ext >&5
  14259. ac_cv_lib_error_at_line=no
  14260. fi
  14261. rm -rf conftest.dSYM
  14262. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14263. conftest$ac_exeext conftest.$ac_ext
  14264. fi
  14265. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  14266. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14267. if test $ac_cv_lib_error_at_line = no; then
  14268. case " $LIBOBJS " in
  14269. *" error.$ac_objext "* ) ;;
  14270. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14271. ;;
  14272. esac
  14273. fi
  14274. for ac_header in vfork.h
  14275. do
  14276. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14277. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14278. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14279. $as_echo_n "checking for $ac_header... " >&6; }
  14280. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14281. $as_echo_n "(cached) " >&6
  14282. fi
  14283. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14284. $as_echo "$as_val"'`
  14285. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14286. $as_echo "$ac_res" >&6; }
  14287. else
  14288. # Is the header compilable?
  14289. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14290. $as_echo_n "checking $ac_header usability... " >&6; }
  14291. cat >conftest.$ac_ext <<_ACEOF
  14292. /* confdefs.h. */
  14293. _ACEOF
  14294. cat confdefs.h >>conftest.$ac_ext
  14295. cat >>conftest.$ac_ext <<_ACEOF
  14296. /* end confdefs.h. */
  14297. $ac_includes_default
  14298. #include <$ac_header>
  14299. _ACEOF
  14300. rm -f conftest.$ac_objext
  14301. if { (ac_try="$ac_compile"
  14302. case "(($ac_try" in
  14303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14304. *) ac_try_echo=$ac_try;;
  14305. esac
  14306. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14307. $as_echo "$ac_try_echo") >&5
  14308. (eval "$ac_compile") 2>conftest.er1
  14309. ac_status=$?
  14310. grep -v '^ *+' conftest.er1 >conftest.err
  14311. rm -f conftest.er1
  14312. cat conftest.err >&5
  14313. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14314. (exit $ac_status); } && {
  14315. test -z "$ac_c_werror_flag" ||
  14316. test ! -s conftest.err
  14317. } && test -s conftest.$ac_objext; then
  14318. ac_header_compiler=yes
  14319. else
  14320. $as_echo "$as_me: failed program was:" >&5
  14321. sed 's/^/| /' conftest.$ac_ext >&5
  14322. ac_header_compiler=no
  14323. fi
  14324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14325. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14326. $as_echo "$ac_header_compiler" >&6; }
  14327. # Is the header present?
  14328. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14329. $as_echo_n "checking $ac_header presence... " >&6; }
  14330. cat >conftest.$ac_ext <<_ACEOF
  14331. /* confdefs.h. */
  14332. _ACEOF
  14333. cat confdefs.h >>conftest.$ac_ext
  14334. cat >>conftest.$ac_ext <<_ACEOF
  14335. /* end confdefs.h. */
  14336. #include <$ac_header>
  14337. _ACEOF
  14338. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14339. case "(($ac_try" in
  14340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14341. *) ac_try_echo=$ac_try;;
  14342. esac
  14343. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14344. $as_echo "$ac_try_echo") >&5
  14345. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14346. ac_status=$?
  14347. grep -v '^ *+' conftest.er1 >conftest.err
  14348. rm -f conftest.er1
  14349. cat conftest.err >&5
  14350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14351. (exit $ac_status); } >/dev/null && {
  14352. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14353. test ! -s conftest.err
  14354. }; then
  14355. ac_header_preproc=yes
  14356. else
  14357. $as_echo "$as_me: failed program was:" >&5
  14358. sed 's/^/| /' conftest.$ac_ext >&5
  14359. ac_header_preproc=no
  14360. fi
  14361. rm -f conftest.err conftest.$ac_ext
  14362. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14363. $as_echo "$ac_header_preproc" >&6; }
  14364. # So? What about this header?
  14365. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14366. yes:no: )
  14367. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14368. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14369. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14370. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14371. ac_header_preproc=yes
  14372. ;;
  14373. no:yes:* )
  14374. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14375. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14376. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14377. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14378. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14379. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14380. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14381. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14382. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14383. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14384. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14385. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14386. ( cat <<\_ASBOX
  14387. ## ------------------------------------------ ##
  14388. ## Report this to https://issues.asterisk.org ##
  14389. ## ------------------------------------------ ##
  14390. _ASBOX
  14391. ) | sed "s/^/$as_me: WARNING: /" >&2
  14392. ;;
  14393. esac
  14394. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14395. $as_echo_n "checking for $ac_header... " >&6; }
  14396. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14397. $as_echo_n "(cached) " >&6
  14398. else
  14399. eval "$as_ac_Header=\$ac_header_preproc"
  14400. fi
  14401. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14402. $as_echo "$as_val"'`
  14403. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14404. $as_echo "$ac_res" >&6; }
  14405. fi
  14406. as_val=`eval 'as_val=${'$as_ac_Header'}
  14407. $as_echo "$as_val"'`
  14408. if test "x$as_val" = x""yes; then
  14409. cat >>confdefs.h <<_ACEOF
  14410. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14411. _ACEOF
  14412. fi
  14413. done
  14414. for ac_func in fork vfork
  14415. do
  14416. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14417. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  14418. $as_echo_n "checking for $ac_func... " >&6; }
  14419. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14420. $as_echo_n "(cached) " >&6
  14421. else
  14422. cat >conftest.$ac_ext <<_ACEOF
  14423. /* confdefs.h. */
  14424. _ACEOF
  14425. cat confdefs.h >>conftest.$ac_ext
  14426. cat >>conftest.$ac_ext <<_ACEOF
  14427. /* end confdefs.h. */
  14428. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14429. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14430. #define $ac_func innocuous_$ac_func
  14431. /* System header to define __stub macros and hopefully few prototypes,
  14432. which can conflict with char $ac_func (); below.
  14433. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14434. <limits.h> exists even on freestanding compilers. */
  14435. #ifdef __STDC__
  14436. # include <limits.h>
  14437. #else
  14438. # include <assert.h>
  14439. #endif
  14440. #undef $ac_func
  14441. /* Override any GCC internal prototype to avoid an error.
  14442. Use char because int might match the return type of a GCC
  14443. builtin and then its argument prototype would still apply. */
  14444. #ifdef __cplusplus
  14445. extern "C"
  14446. #endif
  14447. char $ac_func ();
  14448. /* The GNU C library defines this for functions which it implements
  14449. to always fail with ENOSYS. Some functions are actually named
  14450. something starting with __ and the normal name is an alias. */
  14451. #if defined __stub_$ac_func || defined __stub___$ac_func
  14452. choke me
  14453. #endif
  14454. int
  14455. main ()
  14456. {
  14457. return $ac_func ();
  14458. ;
  14459. return 0;
  14460. }
  14461. _ACEOF
  14462. rm -f conftest.$ac_objext conftest$ac_exeext
  14463. if { (ac_try="$ac_link"
  14464. case "(($ac_try" in
  14465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14466. *) ac_try_echo=$ac_try;;
  14467. esac
  14468. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14469. $as_echo "$ac_try_echo") >&5
  14470. (eval "$ac_link") 2>conftest.er1
  14471. ac_status=$?
  14472. grep -v '^ *+' conftest.er1 >conftest.err
  14473. rm -f conftest.er1
  14474. cat conftest.err >&5
  14475. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14476. (exit $ac_status); } && {
  14477. test -z "$ac_c_werror_flag" ||
  14478. test ! -s conftest.err
  14479. } && test -s conftest$ac_exeext && {
  14480. test "$cross_compiling" = yes ||
  14481. $as_test_x conftest$ac_exeext
  14482. }; then
  14483. eval "$as_ac_var=yes"
  14484. else
  14485. $as_echo "$as_me: failed program was:" >&5
  14486. sed 's/^/| /' conftest.$ac_ext >&5
  14487. eval "$as_ac_var=no"
  14488. fi
  14489. rm -rf conftest.dSYM
  14490. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14491. conftest$ac_exeext conftest.$ac_ext
  14492. fi
  14493. ac_res=`eval 'as_val=${'$as_ac_var'}
  14494. $as_echo "$as_val"'`
  14495. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14496. $as_echo "$ac_res" >&6; }
  14497. as_val=`eval 'as_val=${'$as_ac_var'}
  14498. $as_echo "$as_val"'`
  14499. if test "x$as_val" = x""yes; then
  14500. cat >>confdefs.h <<_ACEOF
  14501. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14502. _ACEOF
  14503. fi
  14504. done
  14505. if test "x$ac_cv_func_fork" = xyes; then
  14506. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  14507. $as_echo_n "checking for working fork... " >&6; }
  14508. if test "${ac_cv_func_fork_works+set}" = set; then
  14509. $as_echo_n "(cached) " >&6
  14510. else
  14511. if test "$cross_compiling" = yes; then
  14512. ac_cv_func_fork_works=cross
  14513. else
  14514. cat >conftest.$ac_ext <<_ACEOF
  14515. /* confdefs.h. */
  14516. _ACEOF
  14517. cat confdefs.h >>conftest.$ac_ext
  14518. cat >>conftest.$ac_ext <<_ACEOF
  14519. /* end confdefs.h. */
  14520. $ac_includes_default
  14521. int
  14522. main ()
  14523. {
  14524. /* By Ruediger Kuhlmann. */
  14525. return fork () < 0;
  14526. ;
  14527. return 0;
  14528. }
  14529. _ACEOF
  14530. rm -f conftest$ac_exeext
  14531. if { (ac_try="$ac_link"
  14532. case "(($ac_try" in
  14533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14534. *) ac_try_echo=$ac_try;;
  14535. esac
  14536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14537. $as_echo "$ac_try_echo") >&5
  14538. (eval "$ac_link") 2>&5
  14539. ac_status=$?
  14540. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14541. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14542. { (case "(($ac_try" in
  14543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14544. *) ac_try_echo=$ac_try;;
  14545. esac
  14546. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14547. $as_echo "$ac_try_echo") >&5
  14548. (eval "$ac_try") 2>&5
  14549. ac_status=$?
  14550. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14551. (exit $ac_status); }; }; then
  14552. ac_cv_func_fork_works=yes
  14553. else
  14554. $as_echo "$as_me: program exited with status $ac_status" >&5
  14555. $as_echo "$as_me: failed program was:" >&5
  14556. sed 's/^/| /' conftest.$ac_ext >&5
  14557. ( exit $ac_status )
  14558. ac_cv_func_fork_works=no
  14559. fi
  14560. rm -rf conftest.dSYM
  14561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14562. fi
  14563. fi
  14564. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  14565. $as_echo "$ac_cv_func_fork_works" >&6; }
  14566. else
  14567. ac_cv_func_fork_works=$ac_cv_func_fork
  14568. fi
  14569. if test "x$ac_cv_func_fork_works" = xcross; then
  14570. case $host in
  14571. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  14572. # Override, as these systems have only a dummy fork() stub
  14573. ac_cv_func_fork_works=no
  14574. ;;
  14575. *)
  14576. ac_cv_func_fork_works=yes
  14577. ;;
  14578. esac
  14579. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14580. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14581. fi
  14582. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14583. if test "x$ac_cv_func_vfork" = xyes; then
  14584. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  14585. $as_echo_n "checking for working vfork... " >&6; }
  14586. if test "${ac_cv_func_vfork_works+set}" = set; then
  14587. $as_echo_n "(cached) " >&6
  14588. else
  14589. if test "$cross_compiling" = yes; then
  14590. ac_cv_func_vfork_works=cross
  14591. else
  14592. cat >conftest.$ac_ext <<_ACEOF
  14593. /* confdefs.h. */
  14594. _ACEOF
  14595. cat confdefs.h >>conftest.$ac_ext
  14596. cat >>conftest.$ac_ext <<_ACEOF
  14597. /* end confdefs.h. */
  14598. /* Thanks to Paul Eggert for this test. */
  14599. $ac_includes_default
  14600. #include <sys/wait.h>
  14601. #ifdef HAVE_VFORK_H
  14602. # include <vfork.h>
  14603. #endif
  14604. /* On some sparc systems, changes by the child to local and incoming
  14605. argument registers are propagated back to the parent. The compiler
  14606. is told about this with #include <vfork.h>, but some compilers
  14607. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14608. static variable whose address is put into a register that is
  14609. clobbered by the vfork. */
  14610. static void
  14611. #ifdef __cplusplus
  14612. sparc_address_test (int arg)
  14613. # else
  14614. sparc_address_test (arg) int arg;
  14615. #endif
  14616. {
  14617. static pid_t child;
  14618. if (!child) {
  14619. child = vfork ();
  14620. if (child < 0) {
  14621. perror ("vfork");
  14622. _exit(2);
  14623. }
  14624. if (!child) {
  14625. arg = getpid();
  14626. write(-1, "", 0);
  14627. _exit (arg);
  14628. }
  14629. }
  14630. }
  14631. int
  14632. main ()
  14633. {
  14634. pid_t parent = getpid ();
  14635. pid_t child;
  14636. sparc_address_test (0);
  14637. child = vfork ();
  14638. if (child == 0) {
  14639. /* Here is another test for sparc vfork register problems. This
  14640. test uses lots of local variables, at least as many local
  14641. variables as main has allocated so far including compiler
  14642. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14643. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14644. reuse the register of parent for one of the local variables,
  14645. since it will think that parent can't possibly be used any more
  14646. in this routine. Assigning to the local variable will thus
  14647. munge parent in the parent process. */
  14648. pid_t
  14649. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14650. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14651. /* Convince the compiler that p..p7 are live; otherwise, it might
  14652. use the same hardware register for all 8 local variables. */
  14653. if (p != p1 || p != p2 || p != p3 || p != p4
  14654. || p != p5 || p != p6 || p != p7)
  14655. _exit(1);
  14656. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14657. from child file descriptors. If the child closes a descriptor
  14658. before it execs or exits, this munges the parent's descriptor
  14659. as well. Test for this by closing stdout in the child. */
  14660. _exit(close(fileno(stdout)) != 0);
  14661. } else {
  14662. int status;
  14663. struct stat st;
  14664. while (wait(&status) != child)
  14665. ;
  14666. return (
  14667. /* Was there some problem with vforking? */
  14668. child < 0
  14669. /* Did the child fail? (This shouldn't happen.) */
  14670. || status
  14671. /* Did the vfork/compiler bug occur? */
  14672. || parent != getpid()
  14673. /* Did the file descriptor bug occur? */
  14674. || fstat(fileno(stdout), &st) != 0
  14675. );
  14676. }
  14677. }
  14678. _ACEOF
  14679. rm -f conftest$ac_exeext
  14680. if { (ac_try="$ac_link"
  14681. case "(($ac_try" in
  14682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14683. *) ac_try_echo=$ac_try;;
  14684. esac
  14685. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14686. $as_echo "$ac_try_echo") >&5
  14687. (eval "$ac_link") 2>&5
  14688. ac_status=$?
  14689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14690. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14691. { (case "(($ac_try" in
  14692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14693. *) ac_try_echo=$ac_try;;
  14694. esac
  14695. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14696. $as_echo "$ac_try_echo") >&5
  14697. (eval "$ac_try") 2>&5
  14698. ac_status=$?
  14699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14700. (exit $ac_status); }; }; then
  14701. ac_cv_func_vfork_works=yes
  14702. else
  14703. $as_echo "$as_me: program exited with status $ac_status" >&5
  14704. $as_echo "$as_me: failed program was:" >&5
  14705. sed 's/^/| /' conftest.$ac_ext >&5
  14706. ( exit $ac_status )
  14707. ac_cv_func_vfork_works=no
  14708. fi
  14709. rm -rf conftest.dSYM
  14710. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14711. fi
  14712. fi
  14713. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  14714. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14715. fi;
  14716. if test "x$ac_cv_func_fork_works" = xcross; then
  14717. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14718. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14719. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14720. fi
  14721. if test "x$ac_cv_func_vfork_works" = xyes; then
  14722. cat >>confdefs.h <<\_ACEOF
  14723. #define HAVE_WORKING_VFORK 1
  14724. _ACEOF
  14725. else
  14726. cat >>confdefs.h <<\_ACEOF
  14727. #define vfork fork
  14728. _ACEOF
  14729. fi
  14730. if test "x$ac_cv_func_fork_works" = xyes; then
  14731. cat >>confdefs.h <<\_ACEOF
  14732. #define HAVE_WORKING_FORK 1
  14733. _ACEOF
  14734. PBX_WORKING_FORK=1
  14735. fi
  14736. { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  14737. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  14738. if test "${ac_cv_sys_largefile_source+set}" = set; then
  14739. $as_echo_n "(cached) " >&6
  14740. else
  14741. while :; do
  14742. cat >conftest.$ac_ext <<_ACEOF
  14743. /* confdefs.h. */
  14744. _ACEOF
  14745. cat confdefs.h >>conftest.$ac_ext
  14746. cat >>conftest.$ac_ext <<_ACEOF
  14747. /* end confdefs.h. */
  14748. #include <sys/types.h> /* for off_t */
  14749. #include <stdio.h>
  14750. int
  14751. main ()
  14752. {
  14753. int (*fp) (FILE *, off_t, int) = fseeko;
  14754. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  14755. ;
  14756. return 0;
  14757. }
  14758. _ACEOF
  14759. rm -f conftest.$ac_objext conftest$ac_exeext
  14760. if { (ac_try="$ac_link"
  14761. case "(($ac_try" in
  14762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14763. *) ac_try_echo=$ac_try;;
  14764. esac
  14765. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14766. $as_echo "$ac_try_echo") >&5
  14767. (eval "$ac_link") 2>conftest.er1
  14768. ac_status=$?
  14769. grep -v '^ *+' conftest.er1 >conftest.err
  14770. rm -f conftest.er1
  14771. cat conftest.err >&5
  14772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14773. (exit $ac_status); } && {
  14774. test -z "$ac_c_werror_flag" ||
  14775. test ! -s conftest.err
  14776. } && test -s conftest$ac_exeext && {
  14777. test "$cross_compiling" = yes ||
  14778. $as_test_x conftest$ac_exeext
  14779. }; then
  14780. ac_cv_sys_largefile_source=no; break
  14781. else
  14782. $as_echo "$as_me: failed program was:" >&5
  14783. sed 's/^/| /' conftest.$ac_ext >&5
  14784. fi
  14785. rm -rf conftest.dSYM
  14786. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14787. conftest$ac_exeext conftest.$ac_ext
  14788. cat >conftest.$ac_ext <<_ACEOF
  14789. /* confdefs.h. */
  14790. _ACEOF
  14791. cat confdefs.h >>conftest.$ac_ext
  14792. cat >>conftest.$ac_ext <<_ACEOF
  14793. /* end confdefs.h. */
  14794. #define _LARGEFILE_SOURCE 1
  14795. #include <sys/types.h> /* for off_t */
  14796. #include <stdio.h>
  14797. int
  14798. main ()
  14799. {
  14800. int (*fp) (FILE *, off_t, int) = fseeko;
  14801. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  14802. ;
  14803. return 0;
  14804. }
  14805. _ACEOF
  14806. rm -f conftest.$ac_objext conftest$ac_exeext
  14807. if { (ac_try="$ac_link"
  14808. case "(($ac_try" in
  14809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14810. *) ac_try_echo=$ac_try;;
  14811. esac
  14812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14813. $as_echo "$ac_try_echo") >&5
  14814. (eval "$ac_link") 2>conftest.er1
  14815. ac_status=$?
  14816. grep -v '^ *+' conftest.er1 >conftest.err
  14817. rm -f conftest.er1
  14818. cat conftest.err >&5
  14819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14820. (exit $ac_status); } && {
  14821. test -z "$ac_c_werror_flag" ||
  14822. test ! -s conftest.err
  14823. } && test -s conftest$ac_exeext && {
  14824. test "$cross_compiling" = yes ||
  14825. $as_test_x conftest$ac_exeext
  14826. }; then
  14827. ac_cv_sys_largefile_source=1; break
  14828. else
  14829. $as_echo "$as_me: failed program was:" >&5
  14830. sed 's/^/| /' conftest.$ac_ext >&5
  14831. fi
  14832. rm -rf conftest.dSYM
  14833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14834. conftest$ac_exeext conftest.$ac_ext
  14835. ac_cv_sys_largefile_source=unknown
  14836. break
  14837. done
  14838. fi
  14839. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  14840. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  14841. case $ac_cv_sys_largefile_source in #(
  14842. no | unknown) ;;
  14843. *)
  14844. cat >>confdefs.h <<_ACEOF
  14845. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  14846. _ACEOF
  14847. ;;
  14848. esac
  14849. rm -rf conftest*
  14850. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  14851. # in glibc 2.1.3, but that breaks too many other things.
  14852. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  14853. if test $ac_cv_sys_largefile_source != unknown; then
  14854. cat >>confdefs.h <<\_ACEOF
  14855. #define HAVE_FSEEKO 1
  14856. _ACEOF
  14857. fi
  14858. if test $ac_cv_c_compiler_gnu = yes; then
  14859. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  14860. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  14861. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  14862. $as_echo_n "(cached) " >&6
  14863. else
  14864. ac_pattern="Autoconf.*'x'"
  14865. cat >conftest.$ac_ext <<_ACEOF
  14866. /* confdefs.h. */
  14867. _ACEOF
  14868. cat confdefs.h >>conftest.$ac_ext
  14869. cat >>conftest.$ac_ext <<_ACEOF
  14870. /* end confdefs.h. */
  14871. #include <sgtty.h>
  14872. Autoconf TIOCGETP
  14873. _ACEOF
  14874. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14875. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  14876. ac_cv_prog_gcc_traditional=yes
  14877. else
  14878. ac_cv_prog_gcc_traditional=no
  14879. fi
  14880. rm -f conftest*
  14881. if test $ac_cv_prog_gcc_traditional = no; then
  14882. cat >conftest.$ac_ext <<_ACEOF
  14883. /* confdefs.h. */
  14884. _ACEOF
  14885. cat confdefs.h >>conftest.$ac_ext
  14886. cat >>conftest.$ac_ext <<_ACEOF
  14887. /* end confdefs.h. */
  14888. #include <termio.h>
  14889. Autoconf TCGETA
  14890. _ACEOF
  14891. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14892. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  14893. ac_cv_prog_gcc_traditional=yes
  14894. fi
  14895. rm -f conftest*
  14896. fi
  14897. fi
  14898. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  14899. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  14900. if test $ac_cv_prog_gcc_traditional = yes; then
  14901. CC="$CC -traditional"
  14902. fi
  14903. fi
  14904. # XXX: these are commented out until we determine whether it matters if our malloc()
  14905. # acts exactly like glibc's or not
  14906. # AC_FUNC_MALLOC
  14907. # AC_FUNC_REALLOC
  14908. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  14909. $as_echo_n "checking for working memcmp... " >&6; }
  14910. if test "${ac_cv_func_memcmp_working+set}" = set; then
  14911. $as_echo_n "(cached) " >&6
  14912. else
  14913. if test "$cross_compiling" = yes; then
  14914. ac_cv_func_memcmp_working=no
  14915. else
  14916. cat >conftest.$ac_ext <<_ACEOF
  14917. /* confdefs.h. */
  14918. _ACEOF
  14919. cat confdefs.h >>conftest.$ac_ext
  14920. cat >>conftest.$ac_ext <<_ACEOF
  14921. /* end confdefs.h. */
  14922. $ac_includes_default
  14923. int
  14924. main ()
  14925. {
  14926. /* Some versions of memcmp are not 8-bit clean. */
  14927. char c0 = '\100', c1 = '\200', c2 = '\201';
  14928. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14929. return 1;
  14930. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14931. or more and with at least one buffer not starting on a 4-byte boundary.
  14932. William Lewis provided this test program. */
  14933. {
  14934. char foo[21];
  14935. char bar[21];
  14936. int i;
  14937. for (i = 0; i < 4; i++)
  14938. {
  14939. char *a = foo + i;
  14940. char *b = bar + i;
  14941. strcpy (a, "--------01111111");
  14942. strcpy (b, "--------10000000");
  14943. if (memcmp (a, b, 16) >= 0)
  14944. return 1;
  14945. }
  14946. return 0;
  14947. }
  14948. ;
  14949. return 0;
  14950. }
  14951. _ACEOF
  14952. rm -f conftest$ac_exeext
  14953. if { (ac_try="$ac_link"
  14954. case "(($ac_try" in
  14955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14956. *) ac_try_echo=$ac_try;;
  14957. esac
  14958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14959. $as_echo "$ac_try_echo") >&5
  14960. (eval "$ac_link") 2>&5
  14961. ac_status=$?
  14962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14963. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14964. { (case "(($ac_try" in
  14965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14966. *) ac_try_echo=$ac_try;;
  14967. esac
  14968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14969. $as_echo "$ac_try_echo") >&5
  14970. (eval "$ac_try") 2>&5
  14971. ac_status=$?
  14972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14973. (exit $ac_status); }; }; then
  14974. ac_cv_func_memcmp_working=yes
  14975. else
  14976. $as_echo "$as_me: program exited with status $ac_status" >&5
  14977. $as_echo "$as_me: failed program was:" >&5
  14978. sed 's/^/| /' conftest.$ac_ext >&5
  14979. ( exit $ac_status )
  14980. ac_cv_func_memcmp_working=no
  14981. fi
  14982. rm -rf conftest.dSYM
  14983. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14984. fi
  14985. fi
  14986. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  14987. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14988. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14989. *" memcmp.$ac_objext "* ) ;;
  14990. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14991. ;;
  14992. esac
  14993. for ac_header in stdlib.h unistd.h
  14994. do
  14995. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14996. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14997. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14998. $as_echo_n "checking for $ac_header... " >&6; }
  14999. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15000. $as_echo_n "(cached) " >&6
  15001. fi
  15002. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15003. $as_echo "$as_val"'`
  15004. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15005. $as_echo "$ac_res" >&6; }
  15006. else
  15007. # Is the header compilable?
  15008. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15009. $as_echo_n "checking $ac_header usability... " >&6; }
  15010. cat >conftest.$ac_ext <<_ACEOF
  15011. /* confdefs.h. */
  15012. _ACEOF
  15013. cat confdefs.h >>conftest.$ac_ext
  15014. cat >>conftest.$ac_ext <<_ACEOF
  15015. /* end confdefs.h. */
  15016. $ac_includes_default
  15017. #include <$ac_header>
  15018. _ACEOF
  15019. rm -f conftest.$ac_objext
  15020. if { (ac_try="$ac_compile"
  15021. case "(($ac_try" in
  15022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15023. *) ac_try_echo=$ac_try;;
  15024. esac
  15025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15026. $as_echo "$ac_try_echo") >&5
  15027. (eval "$ac_compile") 2>conftest.er1
  15028. ac_status=$?
  15029. grep -v '^ *+' conftest.er1 >conftest.err
  15030. rm -f conftest.er1
  15031. cat conftest.err >&5
  15032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15033. (exit $ac_status); } && {
  15034. test -z "$ac_c_werror_flag" ||
  15035. test ! -s conftest.err
  15036. } && test -s conftest.$ac_objext; then
  15037. ac_header_compiler=yes
  15038. else
  15039. $as_echo "$as_me: failed program was:" >&5
  15040. sed 's/^/| /' conftest.$ac_ext >&5
  15041. ac_header_compiler=no
  15042. fi
  15043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15044. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15045. $as_echo "$ac_header_compiler" >&6; }
  15046. # Is the header present?
  15047. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15048. $as_echo_n "checking $ac_header presence... " >&6; }
  15049. cat >conftest.$ac_ext <<_ACEOF
  15050. /* confdefs.h. */
  15051. _ACEOF
  15052. cat confdefs.h >>conftest.$ac_ext
  15053. cat >>conftest.$ac_ext <<_ACEOF
  15054. /* end confdefs.h. */
  15055. #include <$ac_header>
  15056. _ACEOF
  15057. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15058. case "(($ac_try" in
  15059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15060. *) ac_try_echo=$ac_try;;
  15061. esac
  15062. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15063. $as_echo "$ac_try_echo") >&5
  15064. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15065. ac_status=$?
  15066. grep -v '^ *+' conftest.er1 >conftest.err
  15067. rm -f conftest.er1
  15068. cat conftest.err >&5
  15069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15070. (exit $ac_status); } >/dev/null && {
  15071. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15072. test ! -s conftest.err
  15073. }; then
  15074. ac_header_preproc=yes
  15075. else
  15076. $as_echo "$as_me: failed program was:" >&5
  15077. sed 's/^/| /' conftest.$ac_ext >&5
  15078. ac_header_preproc=no
  15079. fi
  15080. rm -f conftest.err conftest.$ac_ext
  15081. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15082. $as_echo "$ac_header_preproc" >&6; }
  15083. # So? What about this header?
  15084. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15085. yes:no: )
  15086. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15087. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15088. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15089. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15090. ac_header_preproc=yes
  15091. ;;
  15092. no:yes:* )
  15093. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15094. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15095. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15096. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15097. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15098. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15099. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15100. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15101. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15102. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15103. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15104. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15105. ( cat <<\_ASBOX
  15106. ## ------------------------------------------ ##
  15107. ## Report this to https://issues.asterisk.org ##
  15108. ## ------------------------------------------ ##
  15109. _ASBOX
  15110. ) | sed "s/^/$as_me: WARNING: /" >&2
  15111. ;;
  15112. esac
  15113. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15114. $as_echo_n "checking for $ac_header... " >&6; }
  15115. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15116. $as_echo_n "(cached) " >&6
  15117. else
  15118. eval "$as_ac_Header=\$ac_header_preproc"
  15119. fi
  15120. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15121. $as_echo "$as_val"'`
  15122. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15123. $as_echo "$ac_res" >&6; }
  15124. fi
  15125. as_val=`eval 'as_val=${'$as_ac_Header'}
  15126. $as_echo "$as_val"'`
  15127. if test "x$as_val" = x""yes; then
  15128. cat >>confdefs.h <<_ACEOF
  15129. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15130. _ACEOF
  15131. fi
  15132. done
  15133. for ac_func in getpagesize
  15134. do
  15135. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15136. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15137. $as_echo_n "checking for $ac_func... " >&6; }
  15138. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15139. $as_echo_n "(cached) " >&6
  15140. else
  15141. cat >conftest.$ac_ext <<_ACEOF
  15142. /* confdefs.h. */
  15143. _ACEOF
  15144. cat confdefs.h >>conftest.$ac_ext
  15145. cat >>conftest.$ac_ext <<_ACEOF
  15146. /* end confdefs.h. */
  15147. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15148. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15149. #define $ac_func innocuous_$ac_func
  15150. /* System header to define __stub macros and hopefully few prototypes,
  15151. which can conflict with char $ac_func (); below.
  15152. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15153. <limits.h> exists even on freestanding compilers. */
  15154. #ifdef __STDC__
  15155. # include <limits.h>
  15156. #else
  15157. # include <assert.h>
  15158. #endif
  15159. #undef $ac_func
  15160. /* Override any GCC internal prototype to avoid an error.
  15161. Use char because int might match the return type of a GCC
  15162. builtin and then its argument prototype would still apply. */
  15163. #ifdef __cplusplus
  15164. extern "C"
  15165. #endif
  15166. char $ac_func ();
  15167. /* The GNU C library defines this for functions which it implements
  15168. to always fail with ENOSYS. Some functions are actually named
  15169. something starting with __ and the normal name is an alias. */
  15170. #if defined __stub_$ac_func || defined __stub___$ac_func
  15171. choke me
  15172. #endif
  15173. int
  15174. main ()
  15175. {
  15176. return $ac_func ();
  15177. ;
  15178. return 0;
  15179. }
  15180. _ACEOF
  15181. rm -f conftest.$ac_objext conftest$ac_exeext
  15182. if { (ac_try="$ac_link"
  15183. case "(($ac_try" in
  15184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15185. *) ac_try_echo=$ac_try;;
  15186. esac
  15187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15188. $as_echo "$ac_try_echo") >&5
  15189. (eval "$ac_link") 2>conftest.er1
  15190. ac_status=$?
  15191. grep -v '^ *+' conftest.er1 >conftest.err
  15192. rm -f conftest.er1
  15193. cat conftest.err >&5
  15194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15195. (exit $ac_status); } && {
  15196. test -z "$ac_c_werror_flag" ||
  15197. test ! -s conftest.err
  15198. } && test -s conftest$ac_exeext && {
  15199. test "$cross_compiling" = yes ||
  15200. $as_test_x conftest$ac_exeext
  15201. }; then
  15202. eval "$as_ac_var=yes"
  15203. else
  15204. $as_echo "$as_me: failed program was:" >&5
  15205. sed 's/^/| /' conftest.$ac_ext >&5
  15206. eval "$as_ac_var=no"
  15207. fi
  15208. rm -rf conftest.dSYM
  15209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15210. conftest$ac_exeext conftest.$ac_ext
  15211. fi
  15212. ac_res=`eval 'as_val=${'$as_ac_var'}
  15213. $as_echo "$as_val"'`
  15214. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15215. $as_echo "$ac_res" >&6; }
  15216. as_val=`eval 'as_val=${'$as_ac_var'}
  15217. $as_echo "$as_val"'`
  15218. if test "x$as_val" = x""yes; then
  15219. cat >>confdefs.h <<_ACEOF
  15220. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15221. _ACEOF
  15222. fi
  15223. done
  15224. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  15225. $as_echo_n "checking for working mmap... " >&6; }
  15226. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  15227. $as_echo_n "(cached) " >&6
  15228. else
  15229. if test "$cross_compiling" = yes; then
  15230. ac_cv_func_mmap_fixed_mapped=no
  15231. else
  15232. cat >conftest.$ac_ext <<_ACEOF
  15233. /* confdefs.h. */
  15234. _ACEOF
  15235. cat confdefs.h >>conftest.$ac_ext
  15236. cat >>conftest.$ac_ext <<_ACEOF
  15237. /* end confdefs.h. */
  15238. $ac_includes_default
  15239. /* malloc might have been renamed as rpl_malloc. */
  15240. #undef malloc
  15241. /* Thanks to Mike Haertel and Jim Avera for this test.
  15242. Here is a matrix of mmap possibilities:
  15243. mmap private not fixed
  15244. mmap private fixed at somewhere currently unmapped
  15245. mmap private fixed at somewhere already mapped
  15246. mmap shared not fixed
  15247. mmap shared fixed at somewhere currently unmapped
  15248. mmap shared fixed at somewhere already mapped
  15249. For private mappings, we should verify that changes cannot be read()
  15250. back from the file, nor mmap's back from the file at a different
  15251. address. (There have been systems where private was not correctly
  15252. implemented like the infamous i386 svr4.0, and systems where the
  15253. VM page cache was not coherent with the file system buffer cache
  15254. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15255. For shared mappings, we should conversely verify that changes get
  15256. propagated back to all the places they're supposed to be.
  15257. Grep wants private fixed already mapped.
  15258. The main things grep needs to know about mmap are:
  15259. * does it exist and is it safe to write into the mmap'd area
  15260. * how to use it (BSD variants) */
  15261. #include <fcntl.h>
  15262. #include <sys/mman.h>
  15263. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  15264. char *malloc ();
  15265. #endif
  15266. /* This mess was copied from the GNU getpagesize.h. */
  15267. #ifndef HAVE_GETPAGESIZE
  15268. /* Assume that all systems that can run configure have sys/param.h. */
  15269. # ifndef HAVE_SYS_PARAM_H
  15270. # define HAVE_SYS_PARAM_H 1
  15271. # endif
  15272. # ifdef _SC_PAGESIZE
  15273. # define getpagesize() sysconf(_SC_PAGESIZE)
  15274. # else /* no _SC_PAGESIZE */
  15275. # ifdef HAVE_SYS_PARAM_H
  15276. # include <sys/param.h>
  15277. # ifdef EXEC_PAGESIZE
  15278. # define getpagesize() EXEC_PAGESIZE
  15279. # else /* no EXEC_PAGESIZE */
  15280. # ifdef NBPG
  15281. # define getpagesize() NBPG * CLSIZE
  15282. # ifndef CLSIZE
  15283. # define CLSIZE 1
  15284. # endif /* no CLSIZE */
  15285. # else /* no NBPG */
  15286. # ifdef NBPC
  15287. # define getpagesize() NBPC
  15288. # else /* no NBPC */
  15289. # ifdef PAGESIZE
  15290. # define getpagesize() PAGESIZE
  15291. # endif /* PAGESIZE */
  15292. # endif /* no NBPC */
  15293. # endif /* no NBPG */
  15294. # endif /* no EXEC_PAGESIZE */
  15295. # else /* no HAVE_SYS_PARAM_H */
  15296. # define getpagesize() 8192 /* punt totally */
  15297. # endif /* no HAVE_SYS_PARAM_H */
  15298. # endif /* no _SC_PAGESIZE */
  15299. #endif /* no HAVE_GETPAGESIZE */
  15300. int
  15301. main ()
  15302. {
  15303. char *data, *data2, *data3;
  15304. int i, pagesize;
  15305. int fd;
  15306. pagesize = getpagesize ();
  15307. /* First, make a file with some known garbage in it. */
  15308. data = (char *) malloc (pagesize);
  15309. if (!data)
  15310. return 1;
  15311. for (i = 0; i < pagesize; ++i)
  15312. *(data + i) = rand ();
  15313. umask (0);
  15314. fd = creat ("conftest.mmap", 0600);
  15315. if (fd < 0)
  15316. return 1;
  15317. if (write (fd, data, pagesize) != pagesize)
  15318. return 1;
  15319. close (fd);
  15320. /* Next, try to mmap the file at a fixed address which already has
  15321. something else allocated at it. If we can, also make sure that
  15322. we see the same garbage. */
  15323. fd = open ("conftest.mmap", O_RDWR);
  15324. if (fd < 0)
  15325. return 1;
  15326. data2 = (char *) malloc (2 * pagesize);
  15327. if (!data2)
  15328. return 1;
  15329. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  15330. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15331. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15332. return 1;
  15333. for (i = 0; i < pagesize; ++i)
  15334. if (*(data + i) != *(data2 + i))
  15335. return 1;
  15336. /* Finally, make sure that changes to the mapped area do not
  15337. percolate back to the file as seen by read(). (This is a bug on
  15338. some variants of i386 svr4.0.) */
  15339. for (i = 0; i < pagesize; ++i)
  15340. *(data2 + i) = *(data2 + i) + 1;
  15341. data3 = (char *) malloc (pagesize);
  15342. if (!data3)
  15343. return 1;
  15344. if (read (fd, data3, pagesize) != pagesize)
  15345. return 1;
  15346. for (i = 0; i < pagesize; ++i)
  15347. if (*(data + i) != *(data3 + i))
  15348. return 1;
  15349. close (fd);
  15350. return 0;
  15351. }
  15352. _ACEOF
  15353. rm -f conftest$ac_exeext
  15354. if { (ac_try="$ac_link"
  15355. case "(($ac_try" in
  15356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15357. *) ac_try_echo=$ac_try;;
  15358. esac
  15359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15360. $as_echo "$ac_try_echo") >&5
  15361. (eval "$ac_link") 2>&5
  15362. ac_status=$?
  15363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15364. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15365. { (case "(($ac_try" in
  15366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15367. *) ac_try_echo=$ac_try;;
  15368. esac
  15369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15370. $as_echo "$ac_try_echo") >&5
  15371. (eval "$ac_try") 2>&5
  15372. ac_status=$?
  15373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15374. (exit $ac_status); }; }; then
  15375. ac_cv_func_mmap_fixed_mapped=yes
  15376. else
  15377. $as_echo "$as_me: program exited with status $ac_status" >&5
  15378. $as_echo "$as_me: failed program was:" >&5
  15379. sed 's/^/| /' conftest.$ac_ext >&5
  15380. ( exit $ac_status )
  15381. ac_cv_func_mmap_fixed_mapped=no
  15382. fi
  15383. rm -rf conftest.dSYM
  15384. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15385. fi
  15386. fi
  15387. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15388. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15389. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15390. cat >>confdefs.h <<\_ACEOF
  15391. #define HAVE_MMAP 1
  15392. _ACEOF
  15393. fi
  15394. rm -f conftest.mmap
  15395. for ac_header in sys/select.h sys/socket.h
  15396. do
  15397. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15398. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15399. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15400. $as_echo_n "checking for $ac_header... " >&6; }
  15401. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15402. $as_echo_n "(cached) " >&6
  15403. fi
  15404. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15405. $as_echo "$as_val"'`
  15406. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15407. $as_echo "$ac_res" >&6; }
  15408. else
  15409. # Is the header compilable?
  15410. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15411. $as_echo_n "checking $ac_header usability... " >&6; }
  15412. cat >conftest.$ac_ext <<_ACEOF
  15413. /* confdefs.h. */
  15414. _ACEOF
  15415. cat confdefs.h >>conftest.$ac_ext
  15416. cat >>conftest.$ac_ext <<_ACEOF
  15417. /* end confdefs.h. */
  15418. $ac_includes_default
  15419. #include <$ac_header>
  15420. _ACEOF
  15421. rm -f conftest.$ac_objext
  15422. if { (ac_try="$ac_compile"
  15423. case "(($ac_try" in
  15424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15425. *) ac_try_echo=$ac_try;;
  15426. esac
  15427. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15428. $as_echo "$ac_try_echo") >&5
  15429. (eval "$ac_compile") 2>conftest.er1
  15430. ac_status=$?
  15431. grep -v '^ *+' conftest.er1 >conftest.err
  15432. rm -f conftest.er1
  15433. cat conftest.err >&5
  15434. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15435. (exit $ac_status); } && {
  15436. test -z "$ac_c_werror_flag" ||
  15437. test ! -s conftest.err
  15438. } && test -s conftest.$ac_objext; then
  15439. ac_header_compiler=yes
  15440. else
  15441. $as_echo "$as_me: failed program was:" >&5
  15442. sed 's/^/| /' conftest.$ac_ext >&5
  15443. ac_header_compiler=no
  15444. fi
  15445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15446. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15447. $as_echo "$ac_header_compiler" >&6; }
  15448. # Is the header present?
  15449. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15450. $as_echo_n "checking $ac_header presence... " >&6; }
  15451. cat >conftest.$ac_ext <<_ACEOF
  15452. /* confdefs.h. */
  15453. _ACEOF
  15454. cat confdefs.h >>conftest.$ac_ext
  15455. cat >>conftest.$ac_ext <<_ACEOF
  15456. /* end confdefs.h. */
  15457. #include <$ac_header>
  15458. _ACEOF
  15459. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15460. case "(($ac_try" in
  15461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15462. *) ac_try_echo=$ac_try;;
  15463. esac
  15464. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15465. $as_echo "$ac_try_echo") >&5
  15466. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15467. ac_status=$?
  15468. grep -v '^ *+' conftest.er1 >conftest.err
  15469. rm -f conftest.er1
  15470. cat conftest.err >&5
  15471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15472. (exit $ac_status); } >/dev/null && {
  15473. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15474. test ! -s conftest.err
  15475. }; then
  15476. ac_header_preproc=yes
  15477. else
  15478. $as_echo "$as_me: failed program was:" >&5
  15479. sed 's/^/| /' conftest.$ac_ext >&5
  15480. ac_header_preproc=no
  15481. fi
  15482. rm -f conftest.err conftest.$ac_ext
  15483. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15484. $as_echo "$ac_header_preproc" >&6; }
  15485. # So? What about this header?
  15486. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15487. yes:no: )
  15488. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15489. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15490. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15491. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15492. ac_header_preproc=yes
  15493. ;;
  15494. no:yes:* )
  15495. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15496. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15497. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15498. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15499. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15500. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15501. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15502. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15503. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15504. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15505. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15506. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15507. ( cat <<\_ASBOX
  15508. ## ------------------------------------------ ##
  15509. ## Report this to https://issues.asterisk.org ##
  15510. ## ------------------------------------------ ##
  15511. _ASBOX
  15512. ) | sed "s/^/$as_me: WARNING: /" >&2
  15513. ;;
  15514. esac
  15515. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15516. $as_echo_n "checking for $ac_header... " >&6; }
  15517. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15518. $as_echo_n "(cached) " >&6
  15519. else
  15520. eval "$as_ac_Header=\$ac_header_preproc"
  15521. fi
  15522. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15523. $as_echo "$as_val"'`
  15524. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15525. $as_echo "$ac_res" >&6; }
  15526. fi
  15527. as_val=`eval 'as_val=${'$as_ac_Header'}
  15528. $as_echo "$as_val"'`
  15529. if test "x$as_val" = x""yes; then
  15530. cat >>confdefs.h <<_ACEOF
  15531. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15532. _ACEOF
  15533. fi
  15534. done
  15535. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  15536. $as_echo_n "checking types of arguments for select... " >&6; }
  15537. if test "${ac_cv_func_select_args+set}" = set; then
  15538. $as_echo_n "(cached) " >&6
  15539. else
  15540. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  15541. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  15542. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  15543. cat >conftest.$ac_ext <<_ACEOF
  15544. /* confdefs.h. */
  15545. _ACEOF
  15546. cat confdefs.h >>conftest.$ac_ext
  15547. cat >>conftest.$ac_ext <<_ACEOF
  15548. /* end confdefs.h. */
  15549. $ac_includes_default
  15550. #ifdef HAVE_SYS_SELECT_H
  15551. # include <sys/select.h>
  15552. #endif
  15553. #ifdef HAVE_SYS_SOCKET_H
  15554. # include <sys/socket.h>
  15555. #endif
  15556. int
  15557. main ()
  15558. {
  15559. extern int select ($ac_arg1,
  15560. $ac_arg234, $ac_arg234, $ac_arg234,
  15561. $ac_arg5);
  15562. ;
  15563. return 0;
  15564. }
  15565. _ACEOF
  15566. rm -f conftest.$ac_objext
  15567. if { (ac_try="$ac_compile"
  15568. case "(($ac_try" in
  15569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15570. *) ac_try_echo=$ac_try;;
  15571. esac
  15572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15573. $as_echo "$ac_try_echo") >&5
  15574. (eval "$ac_compile") 2>conftest.er1
  15575. ac_status=$?
  15576. grep -v '^ *+' conftest.er1 >conftest.err
  15577. rm -f conftest.er1
  15578. cat conftest.err >&5
  15579. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15580. (exit $ac_status); } && {
  15581. test -z "$ac_c_werror_flag" ||
  15582. test ! -s conftest.err
  15583. } && test -s conftest.$ac_objext; then
  15584. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  15585. else
  15586. $as_echo "$as_me: failed program was:" >&5
  15587. sed 's/^/| /' conftest.$ac_ext >&5
  15588. fi
  15589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15590. done
  15591. done
  15592. done
  15593. # Provide a safe default value.
  15594. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  15595. fi
  15596. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  15597. $as_echo "$ac_cv_func_select_args" >&6; }
  15598. ac_save_IFS=$IFS; IFS=','
  15599. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  15600. IFS=$ac_save_IFS
  15601. shift
  15602. cat >>confdefs.h <<_ACEOF
  15603. #define SELECT_TYPE_ARG1 $1
  15604. _ACEOF
  15605. cat >>confdefs.h <<_ACEOF
  15606. #define SELECT_TYPE_ARG234 ($2)
  15607. _ACEOF
  15608. cat >>confdefs.h <<_ACEOF
  15609. #define SELECT_TYPE_ARG5 ($3)
  15610. _ACEOF
  15611. rm -f conftest*
  15612. if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
  15613. $as_echo_n "(cached) " >&6
  15614. else
  15615. ac_cv_func_setvbuf_reversed=no
  15616. fi
  15617. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  15618. $as_echo_n "checking return type of signal handlers... " >&6; }
  15619. if test "${ac_cv_type_signal+set}" = set; then
  15620. $as_echo_n "(cached) " >&6
  15621. else
  15622. cat >conftest.$ac_ext <<_ACEOF
  15623. /* confdefs.h. */
  15624. _ACEOF
  15625. cat confdefs.h >>conftest.$ac_ext
  15626. cat >>conftest.$ac_ext <<_ACEOF
  15627. /* end confdefs.h. */
  15628. #include <sys/types.h>
  15629. #include <signal.h>
  15630. int
  15631. main ()
  15632. {
  15633. return *(signal (0, 0)) (0) == 1;
  15634. ;
  15635. return 0;
  15636. }
  15637. _ACEOF
  15638. rm -f conftest.$ac_objext
  15639. if { (ac_try="$ac_compile"
  15640. case "(($ac_try" in
  15641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15642. *) ac_try_echo=$ac_try;;
  15643. esac
  15644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15645. $as_echo "$ac_try_echo") >&5
  15646. (eval "$ac_compile") 2>conftest.er1
  15647. ac_status=$?
  15648. grep -v '^ *+' conftest.er1 >conftest.err
  15649. rm -f conftest.er1
  15650. cat conftest.err >&5
  15651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15652. (exit $ac_status); } && {
  15653. test -z "$ac_c_werror_flag" ||
  15654. test ! -s conftest.err
  15655. } && test -s conftest.$ac_objext; then
  15656. ac_cv_type_signal=int
  15657. else
  15658. $as_echo "$as_me: failed program was:" >&5
  15659. sed 's/^/| /' conftest.$ac_ext >&5
  15660. ac_cv_type_signal=void
  15661. fi
  15662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15663. fi
  15664. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  15665. $as_echo "$ac_cv_type_signal" >&6; }
  15666. cat >>confdefs.h <<_ACEOF
  15667. #define RETSIGTYPE $ac_cv_type_signal
  15668. _ACEOF
  15669. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15670. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15671. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15672. $as_echo_n "(cached) " >&6
  15673. else
  15674. rm -f conftest.sym conftest.file
  15675. echo >conftest.file
  15676. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15677. if test "$cross_compiling" = yes; then
  15678. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15679. else
  15680. cat >conftest.$ac_ext <<_ACEOF
  15681. /* confdefs.h. */
  15682. _ACEOF
  15683. cat confdefs.h >>conftest.$ac_ext
  15684. cat >>conftest.$ac_ext <<_ACEOF
  15685. /* end confdefs.h. */
  15686. $ac_includes_default
  15687. int
  15688. main ()
  15689. {
  15690. struct stat sbuf;
  15691. /* Linux will dereference the symlink and fail.
  15692. That is better in the sense that it means we will not
  15693. have to compile and use the lstat wrapper. */
  15694. return lstat ("conftest.sym/", &sbuf) == 0;
  15695. ;
  15696. return 0;
  15697. }
  15698. _ACEOF
  15699. rm -f conftest$ac_exeext
  15700. if { (ac_try="$ac_link"
  15701. case "(($ac_try" in
  15702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15703. *) ac_try_echo=$ac_try;;
  15704. esac
  15705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15706. $as_echo "$ac_try_echo") >&5
  15707. (eval "$ac_link") 2>&5
  15708. ac_status=$?
  15709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15710. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15711. { (case "(($ac_try" in
  15712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15713. *) ac_try_echo=$ac_try;;
  15714. esac
  15715. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15716. $as_echo "$ac_try_echo") >&5
  15717. (eval "$ac_try") 2>&5
  15718. ac_status=$?
  15719. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15720. (exit $ac_status); }; }; then
  15721. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15722. else
  15723. $as_echo "$as_me: program exited with status $ac_status" >&5
  15724. $as_echo "$as_me: failed program was:" >&5
  15725. sed 's/^/| /' conftest.$ac_ext >&5
  15726. ( exit $ac_status )
  15727. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15728. fi
  15729. rm -rf conftest.dSYM
  15730. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15731. fi
  15732. else
  15733. # If the `ln -s' command failed, then we probably don't even
  15734. # have an lstat function.
  15735. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15736. fi
  15737. rm -f conftest.sym conftest.file
  15738. fi
  15739. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15740. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15741. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15742. cat >>confdefs.h <<_ACEOF
  15743. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15744. _ACEOF
  15745. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15746. case " $LIBOBJS " in
  15747. *" lstat.$ac_objext "* ) ;;
  15748. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15749. ;;
  15750. esac
  15751. fi
  15752. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  15753. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  15754. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  15755. $as_echo_n "(cached) " >&6
  15756. else
  15757. if test "$cross_compiling" = yes; then
  15758. ac_cv_func_stat_empty_string_bug=yes
  15759. else
  15760. cat >conftest.$ac_ext <<_ACEOF
  15761. /* confdefs.h. */
  15762. _ACEOF
  15763. cat confdefs.h >>conftest.$ac_ext
  15764. cat >>conftest.$ac_ext <<_ACEOF
  15765. /* end confdefs.h. */
  15766. $ac_includes_default
  15767. int
  15768. main ()
  15769. {
  15770. struct stat sbuf;
  15771. return stat ("", &sbuf) == 0;
  15772. ;
  15773. return 0;
  15774. }
  15775. _ACEOF
  15776. rm -f conftest$ac_exeext
  15777. if { (ac_try="$ac_link"
  15778. case "(($ac_try" in
  15779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15780. *) ac_try_echo=$ac_try;;
  15781. esac
  15782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15783. $as_echo "$ac_try_echo") >&5
  15784. (eval "$ac_link") 2>&5
  15785. ac_status=$?
  15786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15787. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15788. { (case "(($ac_try" in
  15789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15790. *) ac_try_echo=$ac_try;;
  15791. esac
  15792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15793. $as_echo "$ac_try_echo") >&5
  15794. (eval "$ac_try") 2>&5
  15795. ac_status=$?
  15796. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15797. (exit $ac_status); }; }; then
  15798. ac_cv_func_stat_empty_string_bug=no
  15799. else
  15800. $as_echo "$as_me: program exited with status $ac_status" >&5
  15801. $as_echo "$as_me: failed program was:" >&5
  15802. sed 's/^/| /' conftest.$ac_ext >&5
  15803. ( exit $ac_status )
  15804. ac_cv_func_stat_empty_string_bug=yes
  15805. fi
  15806. rm -rf conftest.dSYM
  15807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15808. fi
  15809. fi
  15810. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  15811. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15812. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15813. case " $LIBOBJS " in
  15814. *" stat.$ac_objext "* ) ;;
  15815. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15816. ;;
  15817. esac
  15818. cat >>confdefs.h <<_ACEOF
  15819. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15820. _ACEOF
  15821. fi
  15822. { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
  15823. $as_echo_n "checking for working strcoll... " >&6; }
  15824. if test "${ac_cv_func_strcoll_works+set}" = set; then
  15825. $as_echo_n "(cached) " >&6
  15826. else
  15827. if test "$cross_compiling" = yes; then
  15828. ac_cv_func_strcoll_works=no
  15829. else
  15830. cat >conftest.$ac_ext <<_ACEOF
  15831. /* confdefs.h. */
  15832. _ACEOF
  15833. cat confdefs.h >>conftest.$ac_ext
  15834. cat >>conftest.$ac_ext <<_ACEOF
  15835. /* end confdefs.h. */
  15836. $ac_includes_default
  15837. int
  15838. main ()
  15839. {
  15840. return (strcoll ("abc", "def") >= 0 ||
  15841. strcoll ("ABC", "DEF") >= 0 ||
  15842. strcoll ("123", "456") >= 0)
  15843. ;
  15844. return 0;
  15845. }
  15846. _ACEOF
  15847. rm -f conftest$ac_exeext
  15848. if { (ac_try="$ac_link"
  15849. case "(($ac_try" in
  15850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15851. *) ac_try_echo=$ac_try;;
  15852. esac
  15853. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15854. $as_echo "$ac_try_echo") >&5
  15855. (eval "$ac_link") 2>&5
  15856. ac_status=$?
  15857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15858. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15859. { (case "(($ac_try" in
  15860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15861. *) ac_try_echo=$ac_try;;
  15862. esac
  15863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15864. $as_echo "$ac_try_echo") >&5
  15865. (eval "$ac_try") 2>&5
  15866. ac_status=$?
  15867. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15868. (exit $ac_status); }; }; then
  15869. ac_cv_func_strcoll_works=yes
  15870. else
  15871. $as_echo "$as_me: program exited with status $ac_status" >&5
  15872. $as_echo "$as_me: failed program was:" >&5
  15873. sed 's/^/| /' conftest.$ac_ext >&5
  15874. ( exit $ac_status )
  15875. ac_cv_func_strcoll_works=no
  15876. fi
  15877. rm -rf conftest.dSYM
  15878. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15879. fi
  15880. fi
  15881. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
  15882. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  15883. if test $ac_cv_func_strcoll_works = yes; then
  15884. cat >>confdefs.h <<\_ACEOF
  15885. #define HAVE_STRCOLL 1
  15886. _ACEOF
  15887. fi
  15888. for ac_func in strftime
  15889. do
  15890. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15891. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15892. $as_echo_n "checking for $ac_func... " >&6; }
  15893. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15894. $as_echo_n "(cached) " >&6
  15895. else
  15896. cat >conftest.$ac_ext <<_ACEOF
  15897. /* confdefs.h. */
  15898. _ACEOF
  15899. cat confdefs.h >>conftest.$ac_ext
  15900. cat >>conftest.$ac_ext <<_ACEOF
  15901. /* end confdefs.h. */
  15902. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15903. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15904. #define $ac_func innocuous_$ac_func
  15905. /* System header to define __stub macros and hopefully few prototypes,
  15906. which can conflict with char $ac_func (); below.
  15907. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15908. <limits.h> exists even on freestanding compilers. */
  15909. #ifdef __STDC__
  15910. # include <limits.h>
  15911. #else
  15912. # include <assert.h>
  15913. #endif
  15914. #undef $ac_func
  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 $ac_func ();
  15922. /* The GNU C library defines this for functions which it implements
  15923. to always fail with ENOSYS. Some functions are actually named
  15924. something starting with __ and the normal name is an alias. */
  15925. #if defined __stub_$ac_func || defined __stub___$ac_func
  15926. choke me
  15927. #endif
  15928. int
  15929. main ()
  15930. {
  15931. return $ac_func ();
  15932. ;
  15933. return 0;
  15934. }
  15935. _ACEOF
  15936. rm -f conftest.$ac_objext conftest$ac_exeext
  15937. if { (ac_try="$ac_link"
  15938. case "(($ac_try" in
  15939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15940. *) ac_try_echo=$ac_try;;
  15941. esac
  15942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15943. $as_echo "$ac_try_echo") >&5
  15944. (eval "$ac_link") 2>conftest.er1
  15945. ac_status=$?
  15946. grep -v '^ *+' conftest.er1 >conftest.err
  15947. rm -f conftest.er1
  15948. cat conftest.err >&5
  15949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15950. (exit $ac_status); } && {
  15951. test -z "$ac_c_werror_flag" ||
  15952. test ! -s conftest.err
  15953. } && test -s conftest$ac_exeext && {
  15954. test "$cross_compiling" = yes ||
  15955. $as_test_x conftest$ac_exeext
  15956. }; then
  15957. eval "$as_ac_var=yes"
  15958. else
  15959. $as_echo "$as_me: failed program was:" >&5
  15960. sed 's/^/| /' conftest.$ac_ext >&5
  15961. eval "$as_ac_var=no"
  15962. fi
  15963. rm -rf conftest.dSYM
  15964. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15965. conftest$ac_exeext conftest.$ac_ext
  15966. fi
  15967. ac_res=`eval 'as_val=${'$as_ac_var'}
  15968. $as_echo "$as_val"'`
  15969. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15970. $as_echo "$ac_res" >&6; }
  15971. as_val=`eval 'as_val=${'$as_ac_var'}
  15972. $as_echo "$as_val"'`
  15973. if test "x$as_val" = x""yes; then
  15974. cat >>confdefs.h <<_ACEOF
  15975. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15976. _ACEOF
  15977. else
  15978. # strftime is in -lintl on SCO UNIX.
  15979. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  15980. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15981. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  15982. $as_echo_n "(cached) " >&6
  15983. else
  15984. ac_check_lib_save_LIBS=$LIBS
  15985. LIBS="-lintl $LIBS"
  15986. cat >conftest.$ac_ext <<_ACEOF
  15987. /* confdefs.h. */
  15988. _ACEOF
  15989. cat confdefs.h >>conftest.$ac_ext
  15990. cat >>conftest.$ac_ext <<_ACEOF
  15991. /* end confdefs.h. */
  15992. /* Override any GCC internal prototype to avoid an error.
  15993. Use char because int might match the return type of a GCC
  15994. builtin and then its argument prototype would still apply. */
  15995. #ifdef __cplusplus
  15996. extern "C"
  15997. #endif
  15998. char strftime ();
  15999. int
  16000. main ()
  16001. {
  16002. return strftime ();
  16003. ;
  16004. return 0;
  16005. }
  16006. _ACEOF
  16007. rm -f conftest.$ac_objext conftest$ac_exeext
  16008. if { (ac_try="$ac_link"
  16009. case "(($ac_try" in
  16010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16011. *) ac_try_echo=$ac_try;;
  16012. esac
  16013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16014. $as_echo "$ac_try_echo") >&5
  16015. (eval "$ac_link") 2>conftest.er1
  16016. ac_status=$?
  16017. grep -v '^ *+' conftest.er1 >conftest.err
  16018. rm -f conftest.er1
  16019. cat conftest.err >&5
  16020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16021. (exit $ac_status); } && {
  16022. test -z "$ac_c_werror_flag" ||
  16023. test ! -s conftest.err
  16024. } && test -s conftest$ac_exeext && {
  16025. test "$cross_compiling" = yes ||
  16026. $as_test_x conftest$ac_exeext
  16027. }; then
  16028. ac_cv_lib_intl_strftime=yes
  16029. else
  16030. $as_echo "$as_me: failed program was:" >&5
  16031. sed 's/^/| /' conftest.$ac_ext >&5
  16032. ac_cv_lib_intl_strftime=no
  16033. fi
  16034. rm -rf conftest.dSYM
  16035. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16036. conftest$ac_exeext conftest.$ac_ext
  16037. LIBS=$ac_check_lib_save_LIBS
  16038. fi
  16039. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  16040. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  16041. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  16042. cat >>confdefs.h <<\_ACEOF
  16043. #define HAVE_STRFTIME 1
  16044. _ACEOF
  16045. LIBS="-lintl $LIBS"
  16046. fi
  16047. fi
  16048. done
  16049. { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
  16050. $as_echo_n "checking for working strnlen... " >&6; }
  16051. if test "${ac_cv_func_strnlen_working+set}" = set; then
  16052. $as_echo_n "(cached) " >&6
  16053. else
  16054. if test "$cross_compiling" = yes; then
  16055. ac_cv_func_strnlen_working=no
  16056. else
  16057. cat >conftest.$ac_ext <<_ACEOF
  16058. /* confdefs.h. */
  16059. _ACEOF
  16060. cat confdefs.h >>conftest.$ac_ext
  16061. cat >>conftest.$ac_ext <<_ACEOF
  16062. /* end confdefs.h. */
  16063. $ac_includes_default
  16064. int
  16065. main ()
  16066. {
  16067. #define S "foobar"
  16068. #define S_LEN (sizeof S - 1)
  16069. /* At least one implementation is buggy: that of AIX 4.3 would
  16070. give strnlen (S, 1) == 3. */
  16071. int i;
  16072. for (i = 0; i < S_LEN + 1; ++i)
  16073. {
  16074. int expected = i <= S_LEN ? i : S_LEN;
  16075. if (strnlen (S, i) != expected)
  16076. return 1;
  16077. }
  16078. return 0;
  16079. ;
  16080. return 0;
  16081. }
  16082. _ACEOF
  16083. rm -f conftest$ac_exeext
  16084. if { (ac_try="$ac_link"
  16085. case "(($ac_try" in
  16086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16087. *) ac_try_echo=$ac_try;;
  16088. esac
  16089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16090. $as_echo "$ac_try_echo") >&5
  16091. (eval "$ac_link") 2>&5
  16092. ac_status=$?
  16093. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16094. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16095. { (case "(($ac_try" in
  16096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16097. *) ac_try_echo=$ac_try;;
  16098. esac
  16099. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16100. $as_echo "$ac_try_echo") >&5
  16101. (eval "$ac_try") 2>&5
  16102. ac_status=$?
  16103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16104. (exit $ac_status); }; }; then
  16105. ac_cv_func_strnlen_working=yes
  16106. else
  16107. $as_echo "$as_me: program exited with status $ac_status" >&5
  16108. $as_echo "$as_me: failed program was:" >&5
  16109. sed 's/^/| /' conftest.$ac_ext >&5
  16110. ( exit $ac_status )
  16111. ac_cv_func_strnlen_working=no
  16112. fi
  16113. rm -rf conftest.dSYM
  16114. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16115. fi
  16116. fi
  16117. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
  16118. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  16119. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  16120. *" strnlen.$ac_objext "* ) ;;
  16121. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  16122. ;;
  16123. esac
  16124. { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
  16125. $as_echo_n "checking for working strtod... " >&6; }
  16126. if test "${ac_cv_func_strtod+set}" = set; then
  16127. $as_echo_n "(cached) " >&6
  16128. else
  16129. if test "$cross_compiling" = yes; then
  16130. ac_cv_func_strtod=no
  16131. else
  16132. cat >conftest.$ac_ext <<_ACEOF
  16133. /* confdefs.h. */
  16134. _ACEOF
  16135. cat confdefs.h >>conftest.$ac_ext
  16136. cat >>conftest.$ac_ext <<_ACEOF
  16137. /* end confdefs.h. */
  16138. $ac_includes_default
  16139. #ifndef strtod
  16140. double strtod ();
  16141. #endif
  16142. int
  16143. main()
  16144. {
  16145. {
  16146. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  16147. char *string = " +69";
  16148. char *term;
  16149. double value;
  16150. value = strtod (string, &term);
  16151. if (value != 69 || term != (string + 4))
  16152. return 1;
  16153. }
  16154. {
  16155. /* Under Solaris 2.4, strtod returns the wrong value for the
  16156. terminating character under some conditions. */
  16157. char *string = "NaN";
  16158. char *term;
  16159. strtod (string, &term);
  16160. if (term != string && *(term - 1) == 0)
  16161. return 1;
  16162. }
  16163. return 0;
  16164. }
  16165. _ACEOF
  16166. rm -f conftest$ac_exeext
  16167. if { (ac_try="$ac_link"
  16168. case "(($ac_try" in
  16169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16170. *) ac_try_echo=$ac_try;;
  16171. esac
  16172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16173. $as_echo "$ac_try_echo") >&5
  16174. (eval "$ac_link") 2>&5
  16175. ac_status=$?
  16176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16177. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16178. { (case "(($ac_try" in
  16179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16180. *) ac_try_echo=$ac_try;;
  16181. esac
  16182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16183. $as_echo "$ac_try_echo") >&5
  16184. (eval "$ac_try") 2>&5
  16185. ac_status=$?
  16186. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16187. (exit $ac_status); }; }; then
  16188. ac_cv_func_strtod=yes
  16189. else
  16190. $as_echo "$as_me: program exited with status $ac_status" >&5
  16191. $as_echo "$as_me: failed program was:" >&5
  16192. sed 's/^/| /' conftest.$ac_ext >&5
  16193. ( exit $ac_status )
  16194. ac_cv_func_strtod=no
  16195. fi
  16196. rm -rf conftest.dSYM
  16197. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16198. fi
  16199. fi
  16200. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
  16201. $as_echo "$ac_cv_func_strtod" >&6; }
  16202. if test $ac_cv_func_strtod = no; then
  16203. case " $LIBOBJS " in
  16204. *" strtod.$ac_objext "* ) ;;
  16205. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  16206. ;;
  16207. esac
  16208. { $as_echo "$as_me:$LINENO: checking for pow" >&5
  16209. $as_echo_n "checking for pow... " >&6; }
  16210. if test "${ac_cv_func_pow+set}" = set; then
  16211. $as_echo_n "(cached) " >&6
  16212. else
  16213. cat >conftest.$ac_ext <<_ACEOF
  16214. /* confdefs.h. */
  16215. _ACEOF
  16216. cat confdefs.h >>conftest.$ac_ext
  16217. cat >>conftest.$ac_ext <<_ACEOF
  16218. /* end confdefs.h. */
  16219. /* Define pow to an innocuous variant, in case <limits.h> declares pow.
  16220. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16221. #define pow innocuous_pow
  16222. /* System header to define __stub macros and hopefully few prototypes,
  16223. which can conflict with char pow (); below.
  16224. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16225. <limits.h> exists even on freestanding compilers. */
  16226. #ifdef __STDC__
  16227. # include <limits.h>
  16228. #else
  16229. # include <assert.h>
  16230. #endif
  16231. #undef pow
  16232. /* Override any GCC internal prototype to avoid an error.
  16233. Use char because int might match the return type of a GCC
  16234. builtin and then its argument prototype would still apply. */
  16235. #ifdef __cplusplus
  16236. extern "C"
  16237. #endif
  16238. char pow ();
  16239. /* The GNU C library defines this for functions which it implements
  16240. to always fail with ENOSYS. Some functions are actually named
  16241. something starting with __ and the normal name is an alias. */
  16242. #if defined __stub_pow || defined __stub___pow
  16243. choke me
  16244. #endif
  16245. int
  16246. main ()
  16247. {
  16248. return pow ();
  16249. ;
  16250. return 0;
  16251. }
  16252. _ACEOF
  16253. rm -f conftest.$ac_objext conftest$ac_exeext
  16254. if { (ac_try="$ac_link"
  16255. case "(($ac_try" in
  16256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16257. *) ac_try_echo=$ac_try;;
  16258. esac
  16259. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16260. $as_echo "$ac_try_echo") >&5
  16261. (eval "$ac_link") 2>conftest.er1
  16262. ac_status=$?
  16263. grep -v '^ *+' conftest.er1 >conftest.err
  16264. rm -f conftest.er1
  16265. cat conftest.err >&5
  16266. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16267. (exit $ac_status); } && {
  16268. test -z "$ac_c_werror_flag" ||
  16269. test ! -s conftest.err
  16270. } && test -s conftest$ac_exeext && {
  16271. test "$cross_compiling" = yes ||
  16272. $as_test_x conftest$ac_exeext
  16273. }; then
  16274. ac_cv_func_pow=yes
  16275. else
  16276. $as_echo "$as_me: failed program was:" >&5
  16277. sed 's/^/| /' conftest.$ac_ext >&5
  16278. ac_cv_func_pow=no
  16279. fi
  16280. rm -rf conftest.dSYM
  16281. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16282. conftest$ac_exeext conftest.$ac_ext
  16283. fi
  16284. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
  16285. $as_echo "$ac_cv_func_pow" >&6; }
  16286. if test $ac_cv_func_pow = no; then
  16287. { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
  16288. $as_echo_n "checking for pow in -lm... " >&6; }
  16289. if test "${ac_cv_lib_m_pow+set}" = set; then
  16290. $as_echo_n "(cached) " >&6
  16291. else
  16292. ac_check_lib_save_LIBS=$LIBS
  16293. LIBS="-lm $LIBS"
  16294. cat >conftest.$ac_ext <<_ACEOF
  16295. /* confdefs.h. */
  16296. _ACEOF
  16297. cat confdefs.h >>conftest.$ac_ext
  16298. cat >>conftest.$ac_ext <<_ACEOF
  16299. /* end confdefs.h. */
  16300. /* Override any GCC internal prototype to avoid an error.
  16301. Use char because int might match the return type of a GCC
  16302. builtin and then its argument prototype would still apply. */
  16303. #ifdef __cplusplus
  16304. extern "C"
  16305. #endif
  16306. char pow ();
  16307. int
  16308. main ()
  16309. {
  16310. return pow ();
  16311. ;
  16312. return 0;
  16313. }
  16314. _ACEOF
  16315. rm -f conftest.$ac_objext conftest$ac_exeext
  16316. if { (ac_try="$ac_link"
  16317. case "(($ac_try" in
  16318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16319. *) ac_try_echo=$ac_try;;
  16320. esac
  16321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16322. $as_echo "$ac_try_echo") >&5
  16323. (eval "$ac_link") 2>conftest.er1
  16324. ac_status=$?
  16325. grep -v '^ *+' conftest.er1 >conftest.err
  16326. rm -f conftest.er1
  16327. cat conftest.err >&5
  16328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16329. (exit $ac_status); } && {
  16330. test -z "$ac_c_werror_flag" ||
  16331. test ! -s conftest.err
  16332. } && test -s conftest$ac_exeext && {
  16333. test "$cross_compiling" = yes ||
  16334. $as_test_x conftest$ac_exeext
  16335. }; then
  16336. ac_cv_lib_m_pow=yes
  16337. else
  16338. $as_echo "$as_me: failed program was:" >&5
  16339. sed 's/^/| /' conftest.$ac_ext >&5
  16340. ac_cv_lib_m_pow=no
  16341. fi
  16342. rm -rf conftest.dSYM
  16343. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16344. conftest$ac_exeext conftest.$ac_ext
  16345. LIBS=$ac_check_lib_save_LIBS
  16346. fi
  16347. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
  16348. $as_echo "$ac_cv_lib_m_pow" >&6; }
  16349. if test "x$ac_cv_lib_m_pow" = x""yes; then
  16350. POW_LIB=-lm
  16351. else
  16352. { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
  16353. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  16354. fi
  16355. fi
  16356. fi
  16357. for ac_header in $ac_header_list
  16358. do
  16359. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16360. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16361. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16362. $as_echo_n "checking for $ac_header... " >&6; }
  16363. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16364. $as_echo_n "(cached) " >&6
  16365. fi
  16366. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16367. $as_echo "$as_val"'`
  16368. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16369. $as_echo "$ac_res" >&6; }
  16370. else
  16371. # Is the header compilable?
  16372. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16373. $as_echo_n "checking $ac_header usability... " >&6; }
  16374. cat >conftest.$ac_ext <<_ACEOF
  16375. /* confdefs.h. */
  16376. _ACEOF
  16377. cat confdefs.h >>conftest.$ac_ext
  16378. cat >>conftest.$ac_ext <<_ACEOF
  16379. /* end confdefs.h. */
  16380. $ac_includes_default
  16381. #include <$ac_header>
  16382. _ACEOF
  16383. rm -f conftest.$ac_objext
  16384. if { (ac_try="$ac_compile"
  16385. case "(($ac_try" in
  16386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16387. *) ac_try_echo=$ac_try;;
  16388. esac
  16389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16390. $as_echo "$ac_try_echo") >&5
  16391. (eval "$ac_compile") 2>conftest.er1
  16392. ac_status=$?
  16393. grep -v '^ *+' conftest.er1 >conftest.err
  16394. rm -f conftest.er1
  16395. cat conftest.err >&5
  16396. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16397. (exit $ac_status); } && {
  16398. test -z "$ac_c_werror_flag" ||
  16399. test ! -s conftest.err
  16400. } && test -s conftest.$ac_objext; then
  16401. ac_header_compiler=yes
  16402. else
  16403. $as_echo "$as_me: failed program was:" >&5
  16404. sed 's/^/| /' conftest.$ac_ext >&5
  16405. ac_header_compiler=no
  16406. fi
  16407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16408. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16409. $as_echo "$ac_header_compiler" >&6; }
  16410. # Is the header present?
  16411. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16412. $as_echo_n "checking $ac_header presence... " >&6; }
  16413. cat >conftest.$ac_ext <<_ACEOF
  16414. /* confdefs.h. */
  16415. _ACEOF
  16416. cat confdefs.h >>conftest.$ac_ext
  16417. cat >>conftest.$ac_ext <<_ACEOF
  16418. /* end confdefs.h. */
  16419. #include <$ac_header>
  16420. _ACEOF
  16421. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16422. case "(($ac_try" in
  16423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16424. *) ac_try_echo=$ac_try;;
  16425. esac
  16426. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16427. $as_echo "$ac_try_echo") >&5
  16428. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16429. ac_status=$?
  16430. grep -v '^ *+' conftest.er1 >conftest.err
  16431. rm -f conftest.er1
  16432. cat conftest.err >&5
  16433. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16434. (exit $ac_status); } >/dev/null && {
  16435. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16436. test ! -s conftest.err
  16437. }; then
  16438. ac_header_preproc=yes
  16439. else
  16440. $as_echo "$as_me: failed program was:" >&5
  16441. sed 's/^/| /' conftest.$ac_ext >&5
  16442. ac_header_preproc=no
  16443. fi
  16444. rm -f conftest.err conftest.$ac_ext
  16445. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16446. $as_echo "$ac_header_preproc" >&6; }
  16447. # So? What about this header?
  16448. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16449. yes:no: )
  16450. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16451. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16452. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16453. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16454. ac_header_preproc=yes
  16455. ;;
  16456. no:yes:* )
  16457. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16458. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16459. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16460. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16461. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16462. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16463. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16464. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16465. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16466. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16467. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16468. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16469. ( cat <<\_ASBOX
  16470. ## ------------------------------------------ ##
  16471. ## Report this to https://issues.asterisk.org ##
  16472. ## ------------------------------------------ ##
  16473. _ASBOX
  16474. ) | sed "s/^/$as_me: WARNING: /" >&2
  16475. ;;
  16476. esac
  16477. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16478. $as_echo_n "checking for $ac_header... " >&6; }
  16479. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16480. $as_echo_n "(cached) " >&6
  16481. else
  16482. eval "$as_ac_Header=\$ac_header_preproc"
  16483. fi
  16484. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16485. $as_echo "$as_val"'`
  16486. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16487. $as_echo "$ac_res" >&6; }
  16488. fi
  16489. as_val=`eval 'as_val=${'$as_ac_Header'}
  16490. $as_echo "$as_val"'`
  16491. if test "x$as_val" = x""yes; then
  16492. cat >>confdefs.h <<_ACEOF
  16493. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16494. _ACEOF
  16495. fi
  16496. done
  16497. { $as_echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
  16498. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  16499. if test "${ac_cv_func_utime_null+set}" = set; then
  16500. $as_echo_n "(cached) " >&6
  16501. else
  16502. rm -f conftest.data; >conftest.data
  16503. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  16504. if test "$cross_compiling" = yes; then
  16505. ac_cv_func_utime_null=no
  16506. else
  16507. cat >conftest.$ac_ext <<_ACEOF
  16508. /* confdefs.h. */
  16509. _ACEOF
  16510. cat confdefs.h >>conftest.$ac_ext
  16511. cat >>conftest.$ac_ext <<_ACEOF
  16512. /* end confdefs.h. */
  16513. $ac_includes_default
  16514. #ifdef HAVE_UTIME_H
  16515. # include <utime.h>
  16516. #endif
  16517. int
  16518. main ()
  16519. {
  16520. struct stat s, t;
  16521. return ! (stat ("conftest.data", &s) == 0
  16522. && utime ("conftest.data", 0) == 0
  16523. && stat ("conftest.data", &t) == 0
  16524. && t.st_mtime >= s.st_mtime
  16525. && t.st_mtime - s.st_mtime < 120);
  16526. ;
  16527. return 0;
  16528. }
  16529. _ACEOF
  16530. rm -f conftest$ac_exeext
  16531. if { (ac_try="$ac_link"
  16532. case "(($ac_try" in
  16533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16534. *) ac_try_echo=$ac_try;;
  16535. esac
  16536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16537. $as_echo "$ac_try_echo") >&5
  16538. (eval "$ac_link") 2>&5
  16539. ac_status=$?
  16540. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16541. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16542. { (case "(($ac_try" in
  16543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16544. *) ac_try_echo=$ac_try;;
  16545. esac
  16546. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16547. $as_echo "$ac_try_echo") >&5
  16548. (eval "$ac_try") 2>&5
  16549. ac_status=$?
  16550. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16551. (exit $ac_status); }; }; then
  16552. ac_cv_func_utime_null=yes
  16553. else
  16554. $as_echo "$as_me: program exited with status $ac_status" >&5
  16555. $as_echo "$as_me: failed program was:" >&5
  16556. sed 's/^/| /' conftest.$ac_ext >&5
  16557. ( exit $ac_status )
  16558. ac_cv_func_utime_null=no
  16559. fi
  16560. rm -rf conftest.dSYM
  16561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16562. fi
  16563. fi
  16564. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
  16565. $as_echo "$ac_cv_func_utime_null" >&6; }
  16566. if test $ac_cv_func_utime_null = yes; then
  16567. cat >>confdefs.h <<\_ACEOF
  16568. #define HAVE_UTIME_NULL 1
  16569. _ACEOF
  16570. fi
  16571. rm -f conftest.data
  16572. for ac_func in vprintf
  16573. do
  16574. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16575. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16576. $as_echo_n "checking for $ac_func... " >&6; }
  16577. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16578. $as_echo_n "(cached) " >&6
  16579. else
  16580. cat >conftest.$ac_ext <<_ACEOF
  16581. /* confdefs.h. */
  16582. _ACEOF
  16583. cat confdefs.h >>conftest.$ac_ext
  16584. cat >>conftest.$ac_ext <<_ACEOF
  16585. /* end confdefs.h. */
  16586. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16587. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16588. #define $ac_func innocuous_$ac_func
  16589. /* System header to define __stub macros and hopefully few prototypes,
  16590. which can conflict with char $ac_func (); below.
  16591. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16592. <limits.h> exists even on freestanding compilers. */
  16593. #ifdef __STDC__
  16594. # include <limits.h>
  16595. #else
  16596. # include <assert.h>
  16597. #endif
  16598. #undef $ac_func
  16599. /* Override any GCC internal prototype to avoid an error.
  16600. Use char because int might match the return type of a GCC
  16601. builtin and then its argument prototype would still apply. */
  16602. #ifdef __cplusplus
  16603. extern "C"
  16604. #endif
  16605. char $ac_func ();
  16606. /* The GNU C library defines this for functions which it implements
  16607. to always fail with ENOSYS. Some functions are actually named
  16608. something starting with __ and the normal name is an alias. */
  16609. #if defined __stub_$ac_func || defined __stub___$ac_func
  16610. choke me
  16611. #endif
  16612. int
  16613. main ()
  16614. {
  16615. return $ac_func ();
  16616. ;
  16617. return 0;
  16618. }
  16619. _ACEOF
  16620. rm -f conftest.$ac_objext conftest$ac_exeext
  16621. if { (ac_try="$ac_link"
  16622. case "(($ac_try" in
  16623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16624. *) ac_try_echo=$ac_try;;
  16625. esac
  16626. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16627. $as_echo "$ac_try_echo") >&5
  16628. (eval "$ac_link") 2>conftest.er1
  16629. ac_status=$?
  16630. grep -v '^ *+' conftest.er1 >conftest.err
  16631. rm -f conftest.er1
  16632. cat conftest.err >&5
  16633. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16634. (exit $ac_status); } && {
  16635. test -z "$ac_c_werror_flag" ||
  16636. test ! -s conftest.err
  16637. } && test -s conftest$ac_exeext && {
  16638. test "$cross_compiling" = yes ||
  16639. $as_test_x conftest$ac_exeext
  16640. }; then
  16641. eval "$as_ac_var=yes"
  16642. else
  16643. $as_echo "$as_me: failed program was:" >&5
  16644. sed 's/^/| /' conftest.$ac_ext >&5
  16645. eval "$as_ac_var=no"
  16646. fi
  16647. rm -rf conftest.dSYM
  16648. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16649. conftest$ac_exeext conftest.$ac_ext
  16650. fi
  16651. ac_res=`eval 'as_val=${'$as_ac_var'}
  16652. $as_echo "$as_val"'`
  16653. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16654. $as_echo "$ac_res" >&6; }
  16655. as_val=`eval 'as_val=${'$as_ac_var'}
  16656. $as_echo "$as_val"'`
  16657. if test "x$as_val" = x""yes; then
  16658. cat >>confdefs.h <<_ACEOF
  16659. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16660. _ACEOF
  16661. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  16662. $as_echo_n "checking for _doprnt... " >&6; }
  16663. if test "${ac_cv_func__doprnt+set}" = set; then
  16664. $as_echo_n "(cached) " >&6
  16665. else
  16666. cat >conftest.$ac_ext <<_ACEOF
  16667. /* confdefs.h. */
  16668. _ACEOF
  16669. cat confdefs.h >>conftest.$ac_ext
  16670. cat >>conftest.$ac_ext <<_ACEOF
  16671. /* end confdefs.h. */
  16672. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  16673. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16674. #define _doprnt innocuous__doprnt
  16675. /* System header to define __stub macros and hopefully few prototypes,
  16676. which can conflict with char _doprnt (); below.
  16677. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16678. <limits.h> exists even on freestanding compilers. */
  16679. #ifdef __STDC__
  16680. # include <limits.h>
  16681. #else
  16682. # include <assert.h>
  16683. #endif
  16684. #undef _doprnt
  16685. /* Override any GCC internal prototype to avoid an error.
  16686. Use char because int might match the return type of a GCC
  16687. builtin and then its argument prototype would still apply. */
  16688. #ifdef __cplusplus
  16689. extern "C"
  16690. #endif
  16691. char _doprnt ();
  16692. /* The GNU C library defines this for functions which it implements
  16693. to always fail with ENOSYS. Some functions are actually named
  16694. something starting with __ and the normal name is an alias. */
  16695. #if defined __stub__doprnt || defined __stub____doprnt
  16696. choke me
  16697. #endif
  16698. int
  16699. main ()
  16700. {
  16701. return _doprnt ();
  16702. ;
  16703. return 0;
  16704. }
  16705. _ACEOF
  16706. rm -f conftest.$ac_objext conftest$ac_exeext
  16707. if { (ac_try="$ac_link"
  16708. case "(($ac_try" in
  16709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16710. *) ac_try_echo=$ac_try;;
  16711. esac
  16712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16713. $as_echo "$ac_try_echo") >&5
  16714. (eval "$ac_link") 2>conftest.er1
  16715. ac_status=$?
  16716. grep -v '^ *+' conftest.er1 >conftest.err
  16717. rm -f conftest.er1
  16718. cat conftest.err >&5
  16719. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16720. (exit $ac_status); } && {
  16721. test -z "$ac_c_werror_flag" ||
  16722. test ! -s conftest.err
  16723. } && test -s conftest$ac_exeext && {
  16724. test "$cross_compiling" = yes ||
  16725. $as_test_x conftest$ac_exeext
  16726. }; then
  16727. ac_cv_func__doprnt=yes
  16728. else
  16729. $as_echo "$as_me: failed program was:" >&5
  16730. sed 's/^/| /' conftest.$ac_ext >&5
  16731. ac_cv_func__doprnt=no
  16732. fi
  16733. rm -rf conftest.dSYM
  16734. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16735. conftest$ac_exeext conftest.$ac_ext
  16736. fi
  16737. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  16738. $as_echo "$ac_cv_func__doprnt" >&6; }
  16739. if test "x$ac_cv_func__doprnt" = x""yes; then
  16740. cat >>confdefs.h <<\_ACEOF
  16741. #define HAVE_DOPRNT 1
  16742. _ACEOF
  16743. fi
  16744. fi
  16745. done
  16746. 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
  16747. do
  16748. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16749. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16750. $as_echo_n "checking for $ac_func... " >&6; }
  16751. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16752. $as_echo_n "(cached) " >&6
  16753. else
  16754. cat >conftest.$ac_ext <<_ACEOF
  16755. /* confdefs.h. */
  16756. _ACEOF
  16757. cat confdefs.h >>conftest.$ac_ext
  16758. cat >>conftest.$ac_ext <<_ACEOF
  16759. /* end confdefs.h. */
  16760. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16761. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16762. #define $ac_func innocuous_$ac_func
  16763. /* System header to define __stub macros and hopefully few prototypes,
  16764. which can conflict with char $ac_func (); below.
  16765. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16766. <limits.h> exists even on freestanding compilers. */
  16767. #ifdef __STDC__
  16768. # include <limits.h>
  16769. #else
  16770. # include <assert.h>
  16771. #endif
  16772. #undef $ac_func
  16773. /* Override any GCC internal prototype to avoid an error.
  16774. Use char because int might match the return type of a GCC
  16775. builtin and then its argument prototype would still apply. */
  16776. #ifdef __cplusplus
  16777. extern "C"
  16778. #endif
  16779. char $ac_func ();
  16780. /* The GNU C library defines this for functions which it implements
  16781. to always fail with ENOSYS. Some functions are actually named
  16782. something starting with __ and the normal name is an alias. */
  16783. #if defined __stub_$ac_func || defined __stub___$ac_func
  16784. choke me
  16785. #endif
  16786. int
  16787. main ()
  16788. {
  16789. return $ac_func ();
  16790. ;
  16791. return 0;
  16792. }
  16793. _ACEOF
  16794. rm -f conftest.$ac_objext conftest$ac_exeext
  16795. if { (ac_try="$ac_link"
  16796. case "(($ac_try" in
  16797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16798. *) ac_try_echo=$ac_try;;
  16799. esac
  16800. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16801. $as_echo "$ac_try_echo") >&5
  16802. (eval "$ac_link") 2>conftest.er1
  16803. ac_status=$?
  16804. grep -v '^ *+' conftest.er1 >conftest.err
  16805. rm -f conftest.er1
  16806. cat conftest.err >&5
  16807. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16808. (exit $ac_status); } && {
  16809. test -z "$ac_c_werror_flag" ||
  16810. test ! -s conftest.err
  16811. } && test -s conftest$ac_exeext && {
  16812. test "$cross_compiling" = yes ||
  16813. $as_test_x conftest$ac_exeext
  16814. }; then
  16815. eval "$as_ac_var=yes"
  16816. else
  16817. $as_echo "$as_me: failed program was:" >&5
  16818. sed 's/^/| /' conftest.$ac_ext >&5
  16819. eval "$as_ac_var=no"
  16820. fi
  16821. rm -rf conftest.dSYM
  16822. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16823. conftest$ac_exeext conftest.$ac_ext
  16824. fi
  16825. ac_res=`eval 'as_val=${'$as_ac_var'}
  16826. $as_echo "$as_val"'`
  16827. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16828. $as_echo "$ac_res" >&6; }
  16829. as_val=`eval 'as_val=${'$as_ac_var'}
  16830. $as_echo "$as_val"'`
  16831. if test "x$as_val" = x""yes; then
  16832. cat >>confdefs.h <<_ACEOF
  16833. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16834. _ACEOF
  16835. fi
  16836. done
  16837. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  16838. # so that AC_CHECK_FUNCS can detect functions in that library.
  16839. { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
  16840. $as_echo_n "checking for sqrt in -lm... " >&6; }
  16841. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  16842. $as_echo_n "(cached) " >&6
  16843. else
  16844. ac_check_lib_save_LIBS=$LIBS
  16845. LIBS="-lm $LIBS"
  16846. cat >conftest.$ac_ext <<_ACEOF
  16847. /* confdefs.h. */
  16848. _ACEOF
  16849. cat confdefs.h >>conftest.$ac_ext
  16850. cat >>conftest.$ac_ext <<_ACEOF
  16851. /* end confdefs.h. */
  16852. /* Override any GCC internal prototype to avoid an error.
  16853. Use char because int might match the return type of a GCC
  16854. builtin and then its argument prototype would still apply. */
  16855. #ifdef __cplusplus
  16856. extern "C"
  16857. #endif
  16858. char sqrt ();
  16859. int
  16860. main ()
  16861. {
  16862. return sqrt ();
  16863. ;
  16864. return 0;
  16865. }
  16866. _ACEOF
  16867. rm -f conftest.$ac_objext conftest$ac_exeext
  16868. if { (ac_try="$ac_link"
  16869. case "(($ac_try" in
  16870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16871. *) ac_try_echo=$ac_try;;
  16872. esac
  16873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16874. $as_echo "$ac_try_echo") >&5
  16875. (eval "$ac_link") 2>conftest.er1
  16876. ac_status=$?
  16877. grep -v '^ *+' conftest.er1 >conftest.err
  16878. rm -f conftest.er1
  16879. cat conftest.err >&5
  16880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16881. (exit $ac_status); } && {
  16882. test -z "$ac_c_werror_flag" ||
  16883. test ! -s conftest.err
  16884. } && test -s conftest$ac_exeext && {
  16885. test "$cross_compiling" = yes ||
  16886. $as_test_x conftest$ac_exeext
  16887. }; then
  16888. ac_cv_lib_m_sqrt=yes
  16889. else
  16890. $as_echo "$as_me: failed program was:" >&5
  16891. sed 's/^/| /' conftest.$ac_ext >&5
  16892. ac_cv_lib_m_sqrt=no
  16893. fi
  16894. rm -rf conftest.dSYM
  16895. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16896. conftest$ac_exeext conftest.$ac_ext
  16897. LIBS=$ac_check_lib_save_LIBS
  16898. fi
  16899. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
  16900. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  16901. if test "x$ac_cv_lib_m_sqrt" = x""yes; then
  16902. cat >>confdefs.h <<_ACEOF
  16903. #define HAVE_LIBM 1
  16904. _ACEOF
  16905. LIBS="-lm $LIBS"
  16906. fi
  16907. # BSD might not have exp2, and/or log2
  16908. 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
  16909. do
  16910. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16911. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16912. $as_echo_n "checking for $ac_func... " >&6; }
  16913. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16914. $as_echo_n "(cached) " >&6
  16915. else
  16916. cat >conftest.$ac_ext <<_ACEOF
  16917. /* confdefs.h. */
  16918. _ACEOF
  16919. cat confdefs.h >>conftest.$ac_ext
  16920. cat >>conftest.$ac_ext <<_ACEOF
  16921. /* end confdefs.h. */
  16922. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16923. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16924. #define $ac_func innocuous_$ac_func
  16925. /* System header to define __stub macros and hopefully few prototypes,
  16926. which can conflict with char $ac_func (); below.
  16927. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16928. <limits.h> exists even on freestanding compilers. */
  16929. #ifdef __STDC__
  16930. # include <limits.h>
  16931. #else
  16932. # include <assert.h>
  16933. #endif
  16934. #undef $ac_func
  16935. /* Override any GCC internal prototype to avoid an error.
  16936. Use char because int might match the return type of a GCC
  16937. builtin and then its argument prototype would still apply. */
  16938. #ifdef __cplusplus
  16939. extern "C"
  16940. #endif
  16941. char $ac_func ();
  16942. /* The GNU C library defines this for functions which it implements
  16943. to always fail with ENOSYS. Some functions are actually named
  16944. something starting with __ and the normal name is an alias. */
  16945. #if defined __stub_$ac_func || defined __stub___$ac_func
  16946. choke me
  16947. #endif
  16948. int
  16949. main ()
  16950. {
  16951. return $ac_func ();
  16952. ;
  16953. return 0;
  16954. }
  16955. _ACEOF
  16956. rm -f conftest.$ac_objext conftest$ac_exeext
  16957. if { (ac_try="$ac_link"
  16958. case "(($ac_try" in
  16959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16960. *) ac_try_echo=$ac_try;;
  16961. esac
  16962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16963. $as_echo "$ac_try_echo") >&5
  16964. (eval "$ac_link") 2>conftest.er1
  16965. ac_status=$?
  16966. grep -v '^ *+' conftest.er1 >conftest.err
  16967. rm -f conftest.er1
  16968. cat conftest.err >&5
  16969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16970. (exit $ac_status); } && {
  16971. test -z "$ac_c_werror_flag" ||
  16972. test ! -s conftest.err
  16973. } && test -s conftest$ac_exeext && {
  16974. test "$cross_compiling" = yes ||
  16975. $as_test_x conftest$ac_exeext
  16976. }; then
  16977. eval "$as_ac_var=yes"
  16978. else
  16979. $as_echo "$as_me: failed program was:" >&5
  16980. sed 's/^/| /' conftest.$ac_ext >&5
  16981. eval "$as_ac_var=no"
  16982. fi
  16983. rm -rf conftest.dSYM
  16984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16985. conftest$ac_exeext conftest.$ac_ext
  16986. fi
  16987. ac_res=`eval 'as_val=${'$as_ac_var'}
  16988. $as_echo "$as_val"'`
  16989. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16990. $as_echo "$ac_res" >&6; }
  16991. as_val=`eval 'as_val=${'$as_ac_var'}
  16992. $as_echo "$as_val"'`
  16993. if test "x$as_val" = x""yes; then
  16994. cat >>confdefs.h <<_ACEOF
  16995. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16996. _ACEOF
  16997. fi
  16998. done
  16999. # Certain architectures don't really have long double, even though
  17000. # AC_CHECK_FUNCS would otherwise find the following functions.
  17001. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  17002. 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
  17003. do
  17004. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17005. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17006. $as_echo_n "checking for $ac_func... " >&6; }
  17007. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17008. $as_echo_n "(cached) " >&6
  17009. else
  17010. cat >conftest.$ac_ext <<_ACEOF
  17011. /* confdefs.h. */
  17012. _ACEOF
  17013. cat confdefs.h >>conftest.$ac_ext
  17014. cat >>conftest.$ac_ext <<_ACEOF
  17015. /* end confdefs.h. */
  17016. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17017. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17018. #define $ac_func innocuous_$ac_func
  17019. /* System header to define __stub macros and hopefully few prototypes,
  17020. which can conflict with char $ac_func (); below.
  17021. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17022. <limits.h> exists even on freestanding compilers. */
  17023. #ifdef __STDC__
  17024. # include <limits.h>
  17025. #else
  17026. # include <assert.h>
  17027. #endif
  17028. #undef $ac_func
  17029. /* Override any GCC internal prototype to avoid an error.
  17030. Use char because int might match the return type of a GCC
  17031. builtin and then its argument prototype would still apply. */
  17032. #ifdef __cplusplus
  17033. extern "C"
  17034. #endif
  17035. char $ac_func ();
  17036. /* The GNU C library defines this for functions which it implements
  17037. to always fail with ENOSYS. Some functions are actually named
  17038. something starting with __ and the normal name is an alias. */
  17039. #if defined __stub_$ac_func || defined __stub___$ac_func
  17040. choke me
  17041. #endif
  17042. int
  17043. main ()
  17044. {
  17045. return $ac_func ();
  17046. ;
  17047. return 0;
  17048. }
  17049. _ACEOF
  17050. rm -f conftest.$ac_objext conftest$ac_exeext
  17051. if { (ac_try="$ac_link"
  17052. case "(($ac_try" in
  17053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17054. *) ac_try_echo=$ac_try;;
  17055. esac
  17056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17057. $as_echo "$ac_try_echo") >&5
  17058. (eval "$ac_link") 2>conftest.er1
  17059. ac_status=$?
  17060. grep -v '^ *+' conftest.er1 >conftest.err
  17061. rm -f conftest.er1
  17062. cat conftest.err >&5
  17063. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17064. (exit $ac_status); } && {
  17065. test -z "$ac_c_werror_flag" ||
  17066. test ! -s conftest.err
  17067. } && test -s conftest$ac_exeext && {
  17068. test "$cross_compiling" = yes ||
  17069. $as_test_x conftest$ac_exeext
  17070. }; then
  17071. eval "$as_ac_var=yes"
  17072. else
  17073. $as_echo "$as_me: failed program was:" >&5
  17074. sed 's/^/| /' conftest.$ac_ext >&5
  17075. eval "$as_ac_var=no"
  17076. fi
  17077. rm -rf conftest.dSYM
  17078. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17079. conftest$ac_exeext conftest.$ac_ext
  17080. fi
  17081. ac_res=`eval 'as_val=${'$as_ac_var'}
  17082. $as_echo "$as_val"'`
  17083. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17084. $as_echo "$ac_res" >&6; }
  17085. as_val=`eval 'as_val=${'$as_ac_var'}
  17086. $as_echo "$as_val"'`
  17087. if test "x$as_val" = x""yes; then
  17088. cat >>confdefs.h <<_ACEOF
  17089. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17090. _ACEOF
  17091. fi
  17092. done
  17093. fi
  17094. { $as_echo "$as_me:$LINENO: checking for LLONG_MAX in limits.h" >&5
  17095. $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
  17096. cat >conftest.$ac_ext <<_ACEOF
  17097. /* confdefs.h. */
  17098. _ACEOF
  17099. cat confdefs.h >>conftest.$ac_ext
  17100. cat >>conftest.$ac_ext <<_ACEOF
  17101. /* end confdefs.h. */
  17102. #include <limits.h>
  17103. int
  17104. main ()
  17105. {
  17106. long long foo = LLONG_MAX
  17107. ;
  17108. return 0;
  17109. }
  17110. _ACEOF
  17111. rm -f conftest.$ac_objext conftest$ac_exeext
  17112. if { (ac_try="$ac_link"
  17113. case "(($ac_try" in
  17114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17115. *) ac_try_echo=$ac_try;;
  17116. esac
  17117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17118. $as_echo "$ac_try_echo") >&5
  17119. (eval "$ac_link") 2>conftest.er1
  17120. ac_status=$?
  17121. grep -v '^ *+' conftest.er1 >conftest.err
  17122. rm -f conftest.er1
  17123. cat conftest.err >&5
  17124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17125. (exit $ac_status); } && {
  17126. test -z "$ac_c_werror_flag" ||
  17127. test ! -s conftest.err
  17128. } && test -s conftest$ac_exeext && {
  17129. test "$cross_compiling" = yes ||
  17130. $as_test_x conftest$ac_exeext
  17131. }; then
  17132. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17133. $as_echo "yes" >&6; }
  17134. cat >>confdefs.h <<\_ACEOF
  17135. #define HAVE_LLONG_MAX 1
  17136. _ACEOF
  17137. else
  17138. $as_echo "$as_me: failed program was:" >&5
  17139. sed 's/^/| /' conftest.$ac_ext >&5
  17140. { $as_echo "$as_me:$LINENO: result: no" >&5
  17141. $as_echo "no" >&6; }
  17142. fi
  17143. rm -rf conftest.dSYM
  17144. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17145. conftest$ac_exeext conftest.$ac_ext
  17146. { $as_echo "$as_me:$LINENO: checking for timersub in time.h" >&5
  17147. $as_echo_n "checking for timersub in time.h... " >&6; }
  17148. cat >conftest.$ac_ext <<_ACEOF
  17149. /* confdefs.h. */
  17150. _ACEOF
  17151. cat confdefs.h >>conftest.$ac_ext
  17152. cat >>conftest.$ac_ext <<_ACEOF
  17153. /* end confdefs.h. */
  17154. #include <sys/time.h>
  17155. int
  17156. main ()
  17157. {
  17158. struct timeval *a; timersub(a, a, a);
  17159. ;
  17160. return 0;
  17161. }
  17162. _ACEOF
  17163. rm -f conftest.$ac_objext conftest$ac_exeext
  17164. if { (ac_try="$ac_link"
  17165. case "(($ac_try" in
  17166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17167. *) ac_try_echo=$ac_try;;
  17168. esac
  17169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17170. $as_echo "$ac_try_echo") >&5
  17171. (eval "$ac_link") 2>conftest.er1
  17172. ac_status=$?
  17173. grep -v '^ *+' conftest.er1 >conftest.err
  17174. rm -f conftest.er1
  17175. cat conftest.err >&5
  17176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17177. (exit $ac_status); } && {
  17178. test -z "$ac_c_werror_flag" ||
  17179. test ! -s conftest.err
  17180. } && test -s conftest$ac_exeext && {
  17181. test "$cross_compiling" = yes ||
  17182. $as_test_x conftest$ac_exeext
  17183. }; then
  17184. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17185. $as_echo "yes" >&6; }
  17186. cat >>confdefs.h <<\_ACEOF
  17187. #define HAVE_TIMERSUB 1
  17188. _ACEOF
  17189. else
  17190. $as_echo "$as_me: failed program was:" >&5
  17191. sed 's/^/| /' conftest.$ac_ext >&5
  17192. { $as_echo "$as_me:$LINENO: result: no" >&5
  17193. $as_echo "no" >&6; }
  17194. fi
  17195. rm -rf conftest.dSYM
  17196. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17197. conftest$ac_exeext conftest.$ac_ext
  17198. { $as_echo "$as_me:$LINENO: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  17199. $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  17200. old_LDFLAGS=${LDFLAGS}
  17201. cat >conftest.dynamics <<_ACEOF
  17202. {
  17203. *ast_*;
  17204. };
  17205. _ACEOF
  17206. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  17207. PBX_DYNAMIC_LIST=0
  17208. cat >conftest.$ac_ext <<_ACEOF
  17209. /* confdefs.h. */
  17210. _ACEOF
  17211. cat confdefs.h >>conftest.$ac_ext
  17212. cat >>conftest.$ac_ext <<_ACEOF
  17213. /* end confdefs.h. */
  17214. int
  17215. main ()
  17216. {
  17217. ;
  17218. return 0;
  17219. }
  17220. _ACEOF
  17221. rm -f conftest.$ac_objext conftest$ac_exeext
  17222. if { (ac_try="$ac_link"
  17223. case "(($ac_try" in
  17224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17225. *) ac_try_echo=$ac_try;;
  17226. esac
  17227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17228. $as_echo "$ac_try_echo") >&5
  17229. (eval "$ac_link") 2>conftest.er1
  17230. ac_status=$?
  17231. grep -v '^ *+' conftest.er1 >conftest.err
  17232. rm -f conftest.er1
  17233. cat conftest.err >&5
  17234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17235. (exit $ac_status); } && {
  17236. test -z "$ac_c_werror_flag" ||
  17237. test ! -s conftest.err
  17238. } && test -s conftest$ac_exeext && {
  17239. test "$cross_compiling" = yes ||
  17240. $as_test_x conftest$ac_exeext
  17241. }; then
  17242. PBX_DYNAMIC_LIST=1
  17243. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17244. $as_echo "yes" >&6; }
  17245. else
  17246. $as_echo "$as_me: failed program was:" >&5
  17247. sed 's/^/| /' conftest.$ac_ext >&5
  17248. { $as_echo "$as_me:$LINENO: result: no" >&5
  17249. $as_echo "no" >&6; }
  17250. fi
  17251. rm -rf conftest.dSYM
  17252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17253. conftest$ac_exeext conftest.$ac_ext
  17254. LDFLAGS=${old_LDFLAGS}
  17255. rm -f conftest.dynamics
  17256. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  17257. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  17258. $as_echo_n "checking for sys/poll.h... " >&6; }
  17259. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  17260. $as_echo_n "(cached) " >&6
  17261. fi
  17262. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  17263. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  17264. else
  17265. # Is the header compilable?
  17266. { $as_echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
  17267. $as_echo_n "checking sys/poll.h usability... " >&6; }
  17268. cat >conftest.$ac_ext <<_ACEOF
  17269. /* confdefs.h. */
  17270. _ACEOF
  17271. cat confdefs.h >>conftest.$ac_ext
  17272. cat >>conftest.$ac_ext <<_ACEOF
  17273. /* end confdefs.h. */
  17274. $ac_includes_default
  17275. #include <sys/poll.h>
  17276. _ACEOF
  17277. rm -f conftest.$ac_objext
  17278. if { (ac_try="$ac_compile"
  17279. case "(($ac_try" in
  17280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17281. *) ac_try_echo=$ac_try;;
  17282. esac
  17283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17284. $as_echo "$ac_try_echo") >&5
  17285. (eval "$ac_compile") 2>conftest.er1
  17286. ac_status=$?
  17287. grep -v '^ *+' conftest.er1 >conftest.err
  17288. rm -f conftest.er1
  17289. cat conftest.err >&5
  17290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17291. (exit $ac_status); } && {
  17292. test -z "$ac_c_werror_flag" ||
  17293. test ! -s conftest.err
  17294. } && test -s conftest.$ac_objext; then
  17295. ac_header_compiler=yes
  17296. else
  17297. $as_echo "$as_me: failed program was:" >&5
  17298. sed 's/^/| /' conftest.$ac_ext >&5
  17299. ac_header_compiler=no
  17300. fi
  17301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17302. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17303. $as_echo "$ac_header_compiler" >&6; }
  17304. # Is the header present?
  17305. { $as_echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
  17306. $as_echo_n "checking sys/poll.h presence... " >&6; }
  17307. cat >conftest.$ac_ext <<_ACEOF
  17308. /* confdefs.h. */
  17309. _ACEOF
  17310. cat confdefs.h >>conftest.$ac_ext
  17311. cat >>conftest.$ac_ext <<_ACEOF
  17312. /* end confdefs.h. */
  17313. #include <sys/poll.h>
  17314. _ACEOF
  17315. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17316. case "(($ac_try" in
  17317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17318. *) ac_try_echo=$ac_try;;
  17319. esac
  17320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17321. $as_echo "$ac_try_echo") >&5
  17322. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17323. ac_status=$?
  17324. grep -v '^ *+' conftest.er1 >conftest.err
  17325. rm -f conftest.er1
  17326. cat conftest.err >&5
  17327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17328. (exit $ac_status); } >/dev/null && {
  17329. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17330. test ! -s conftest.err
  17331. }; then
  17332. ac_header_preproc=yes
  17333. else
  17334. $as_echo "$as_me: failed program was:" >&5
  17335. sed 's/^/| /' conftest.$ac_ext >&5
  17336. ac_header_preproc=no
  17337. fi
  17338. rm -f conftest.err conftest.$ac_ext
  17339. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17340. $as_echo "$ac_header_preproc" >&6; }
  17341. # So? What about this header?
  17342. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17343. yes:no: )
  17344. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17345. $as_echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17346. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
  17347. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
  17348. ac_header_preproc=yes
  17349. ;;
  17350. no:yes:* )
  17351. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
  17352. $as_echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
  17353. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
  17354. $as_echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
  17355. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
  17356. $as_echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
  17357. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
  17358. $as_echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17359. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
  17360. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
  17361. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
  17362. $as_echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
  17363. ( cat <<\_ASBOX
  17364. ## ------------------------------------------ ##
  17365. ## Report this to https://issues.asterisk.org ##
  17366. ## ------------------------------------------ ##
  17367. _ASBOX
  17368. ) | sed "s/^/$as_me: WARNING: /" >&2
  17369. ;;
  17370. esac
  17371. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  17372. $as_echo_n "checking for sys/poll.h... " >&6; }
  17373. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  17374. $as_echo_n "(cached) " >&6
  17375. else
  17376. ac_cv_header_sys_poll_h=$ac_header_preproc
  17377. fi
  17378. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  17379. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  17380. fi
  17381. if test "x$ac_cv_header_sys_poll_h" = x""yes; then
  17382. HAS_POLL=1
  17383. cat >>confdefs.h <<\_ACEOF
  17384. #define HAVE_SYS_POLL_H 1
  17385. _ACEOF
  17386. fi
  17387. # Check whether --enable-internal-poll was given.
  17388. if test "${enable_internal_poll+set}" = set; then
  17389. enableval=$enable_internal_poll; case "${enableval}" in
  17390. y|ye|yes) HAS_POLL="";;
  17391. n|no) HAS_POLL="${HAS_POLL}" ;;
  17392. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-internal-poll" >&5
  17393. $as_echo "$as_me: error: bad value ${enableval} for --enable-internal-poll" >&2;}
  17394. { (exit 1); exit 1; }; } ;;
  17395. esac
  17396. fi
  17397. # https support (in main/http.c) uses funopen on BSD systems,
  17398. # fopencookie on linux
  17399. for ac_func in funopen fopencookie
  17400. do
  17401. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17402. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17403. $as_echo_n "checking for $ac_func... " >&6; }
  17404. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17405. $as_echo_n "(cached) " >&6
  17406. else
  17407. cat >conftest.$ac_ext <<_ACEOF
  17408. /* confdefs.h. */
  17409. _ACEOF
  17410. cat confdefs.h >>conftest.$ac_ext
  17411. cat >>conftest.$ac_ext <<_ACEOF
  17412. /* end confdefs.h. */
  17413. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17414. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17415. #define $ac_func innocuous_$ac_func
  17416. /* System header to define __stub macros and hopefully few prototypes,
  17417. which can conflict with char $ac_func (); below.
  17418. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17419. <limits.h> exists even on freestanding compilers. */
  17420. #ifdef __STDC__
  17421. # include <limits.h>
  17422. #else
  17423. # include <assert.h>
  17424. #endif
  17425. #undef $ac_func
  17426. /* Override any GCC internal prototype to avoid an error.
  17427. Use char because int might match the return type of a GCC
  17428. builtin and then its argument prototype would still apply. */
  17429. #ifdef __cplusplus
  17430. extern "C"
  17431. #endif
  17432. char $ac_func ();
  17433. /* The GNU C library defines this for functions which it implements
  17434. to always fail with ENOSYS. Some functions are actually named
  17435. something starting with __ and the normal name is an alias. */
  17436. #if defined __stub_$ac_func || defined __stub___$ac_func
  17437. choke me
  17438. #endif
  17439. int
  17440. main ()
  17441. {
  17442. return $ac_func ();
  17443. ;
  17444. return 0;
  17445. }
  17446. _ACEOF
  17447. rm -f conftest.$ac_objext conftest$ac_exeext
  17448. if { (ac_try="$ac_link"
  17449. case "(($ac_try" in
  17450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17451. *) ac_try_echo=$ac_try;;
  17452. esac
  17453. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17454. $as_echo "$ac_try_echo") >&5
  17455. (eval "$ac_link") 2>conftest.er1
  17456. ac_status=$?
  17457. grep -v '^ *+' conftest.er1 >conftest.err
  17458. rm -f conftest.er1
  17459. cat conftest.err >&5
  17460. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17461. (exit $ac_status); } && {
  17462. test -z "$ac_c_werror_flag" ||
  17463. test ! -s conftest.err
  17464. } && test -s conftest$ac_exeext && {
  17465. test "$cross_compiling" = yes ||
  17466. $as_test_x conftest$ac_exeext
  17467. }; then
  17468. eval "$as_ac_var=yes"
  17469. else
  17470. $as_echo "$as_me: failed program was:" >&5
  17471. sed 's/^/| /' conftest.$ac_ext >&5
  17472. eval "$as_ac_var=no"
  17473. fi
  17474. rm -rf conftest.dSYM
  17475. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17476. conftest$ac_exeext conftest.$ac_ext
  17477. fi
  17478. ac_res=`eval 'as_val=${'$as_ac_var'}
  17479. $as_echo "$as_val"'`
  17480. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17481. $as_echo "$ac_res" >&6; }
  17482. as_val=`eval 'as_val=${'$as_ac_var'}
  17483. $as_echo "$as_val"'`
  17484. if test "x$as_val" = x""yes; then
  17485. cat >>confdefs.h <<_ACEOF
  17486. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17487. _ACEOF
  17488. fi
  17489. done
  17490. for ac_func in inet_aton
  17491. do
  17492. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17493. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17494. $as_echo_n "checking for $ac_func... " >&6; }
  17495. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17496. $as_echo_n "(cached) " >&6
  17497. else
  17498. cat >conftest.$ac_ext <<_ACEOF
  17499. /* confdefs.h. */
  17500. _ACEOF
  17501. cat confdefs.h >>conftest.$ac_ext
  17502. cat >>conftest.$ac_ext <<_ACEOF
  17503. /* end confdefs.h. */
  17504. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17505. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17506. #define $ac_func innocuous_$ac_func
  17507. /* System header to define __stub macros and hopefully few prototypes,
  17508. which can conflict with char $ac_func (); below.
  17509. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17510. <limits.h> exists even on freestanding compilers. */
  17511. #ifdef __STDC__
  17512. # include <limits.h>
  17513. #else
  17514. # include <assert.h>
  17515. #endif
  17516. #undef $ac_func
  17517. /* Override any GCC internal prototype to avoid an error.
  17518. Use char because int might match the return type of a GCC
  17519. builtin and then its argument prototype would still apply. */
  17520. #ifdef __cplusplus
  17521. extern "C"
  17522. #endif
  17523. char $ac_func ();
  17524. /* The GNU C library defines this for functions which it implements
  17525. to always fail with ENOSYS. Some functions are actually named
  17526. something starting with __ and the normal name is an alias. */
  17527. #if defined __stub_$ac_func || defined __stub___$ac_func
  17528. choke me
  17529. #endif
  17530. int
  17531. main ()
  17532. {
  17533. return $ac_func ();
  17534. ;
  17535. return 0;
  17536. }
  17537. _ACEOF
  17538. rm -f conftest.$ac_objext conftest$ac_exeext
  17539. if { (ac_try="$ac_link"
  17540. case "(($ac_try" in
  17541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17542. *) ac_try_echo=$ac_try;;
  17543. esac
  17544. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17545. $as_echo "$ac_try_echo") >&5
  17546. (eval "$ac_link") 2>conftest.er1
  17547. ac_status=$?
  17548. grep -v '^ *+' conftest.er1 >conftest.err
  17549. rm -f conftest.er1
  17550. cat conftest.err >&5
  17551. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17552. (exit $ac_status); } && {
  17553. test -z "$ac_c_werror_flag" ||
  17554. test ! -s conftest.err
  17555. } && test -s conftest$ac_exeext && {
  17556. test "$cross_compiling" = yes ||
  17557. $as_test_x conftest$ac_exeext
  17558. }; then
  17559. eval "$as_ac_var=yes"
  17560. else
  17561. $as_echo "$as_me: failed program was:" >&5
  17562. sed 's/^/| /' conftest.$ac_ext >&5
  17563. eval "$as_ac_var=no"
  17564. fi
  17565. rm -rf conftest.dSYM
  17566. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17567. conftest$ac_exeext conftest.$ac_ext
  17568. fi
  17569. ac_res=`eval 'as_val=${'$as_ac_var'}
  17570. $as_echo "$as_val"'`
  17571. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17572. $as_echo "$ac_res" >&6; }
  17573. as_val=`eval 'as_val=${'$as_ac_var'}
  17574. $as_echo "$as_val"'`
  17575. if test "x$as_val" = x""yes; then
  17576. cat >>confdefs.h <<_ACEOF
  17577. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17578. _ACEOF
  17579. fi
  17580. done
  17581. # check if we have IP_PKTINFO constant defined
  17582. { $as_echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
  17583. $as_echo_n "checking for IP_PKTINFO... " >&6; }
  17584. cat >conftest.$ac_ext <<_ACEOF
  17585. /* confdefs.h. */
  17586. _ACEOF
  17587. cat confdefs.h >>conftest.$ac_ext
  17588. cat >>conftest.$ac_ext <<_ACEOF
  17589. /* end confdefs.h. */
  17590. #include <netinet/in.h>
  17591. int
  17592. main ()
  17593. {
  17594. int pi = IP_PKTINFO;
  17595. ;
  17596. return 0;
  17597. }
  17598. _ACEOF
  17599. rm -f conftest.$ac_objext conftest$ac_exeext
  17600. if { (ac_try="$ac_link"
  17601. case "(($ac_try" in
  17602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17603. *) ac_try_echo=$ac_try;;
  17604. esac
  17605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17606. $as_echo "$ac_try_echo") >&5
  17607. (eval "$ac_link") 2>conftest.er1
  17608. ac_status=$?
  17609. grep -v '^ *+' conftest.er1 >conftest.err
  17610. rm -f conftest.er1
  17611. cat conftest.err >&5
  17612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17613. (exit $ac_status); } && {
  17614. test -z "$ac_c_werror_flag" ||
  17615. test ! -s conftest.err
  17616. } && test -s conftest$ac_exeext && {
  17617. test "$cross_compiling" = yes ||
  17618. $as_test_x conftest$ac_exeext
  17619. }; then
  17620. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17621. $as_echo "yes" >&6; }
  17622. cat >>confdefs.h <<\_ACEOF
  17623. #define HAVE_PKTINFO 1
  17624. _ACEOF
  17625. else
  17626. $as_echo "$as_me: failed program was:" >&5
  17627. sed 's/^/| /' conftest.$ac_ext >&5
  17628. { $as_echo "$as_me:$LINENO: result: no" >&5
  17629. $as_echo "no" >&6; }
  17630. fi
  17631. rm -rf conftest.dSYM
  17632. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17633. conftest$ac_exeext conftest.$ac_ext
  17634. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  17635. { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
  17636. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  17637. if test "${ac_cv_search_gethostbyname_r+set}" = set; then
  17638. $as_echo_n "(cached) " >&6
  17639. else
  17640. ac_func_search_save_LIBS=$LIBS
  17641. cat >conftest.$ac_ext <<_ACEOF
  17642. /* confdefs.h. */
  17643. _ACEOF
  17644. cat confdefs.h >>conftest.$ac_ext
  17645. cat >>conftest.$ac_ext <<_ACEOF
  17646. /* end confdefs.h. */
  17647. /* Override any GCC internal prototype to avoid an error.
  17648. Use char because int might match the return type of a GCC
  17649. builtin and then its argument prototype would still apply. */
  17650. #ifdef __cplusplus
  17651. extern "C"
  17652. #endif
  17653. char gethostbyname_r ();
  17654. int
  17655. main ()
  17656. {
  17657. return gethostbyname_r ();
  17658. ;
  17659. return 0;
  17660. }
  17661. _ACEOF
  17662. for ac_lib in '' socket nsl; do
  17663. if test -z "$ac_lib"; then
  17664. ac_res="none required"
  17665. else
  17666. ac_res=-l$ac_lib
  17667. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17668. fi
  17669. rm -f conftest.$ac_objext conftest$ac_exeext
  17670. if { (ac_try="$ac_link"
  17671. case "(($ac_try" in
  17672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17673. *) ac_try_echo=$ac_try;;
  17674. esac
  17675. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17676. $as_echo "$ac_try_echo") >&5
  17677. (eval "$ac_link") 2>conftest.er1
  17678. ac_status=$?
  17679. grep -v '^ *+' conftest.er1 >conftest.err
  17680. rm -f conftest.er1
  17681. cat conftest.err >&5
  17682. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17683. (exit $ac_status); } && {
  17684. test -z "$ac_c_werror_flag" ||
  17685. test ! -s conftest.err
  17686. } && test -s conftest$ac_exeext && {
  17687. test "$cross_compiling" = yes ||
  17688. $as_test_x conftest$ac_exeext
  17689. }; then
  17690. ac_cv_search_gethostbyname_r=$ac_res
  17691. else
  17692. $as_echo "$as_me: failed program was:" >&5
  17693. sed 's/^/| /' conftest.$ac_ext >&5
  17694. fi
  17695. rm -rf conftest.dSYM
  17696. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17697. conftest$ac_exeext
  17698. if test "${ac_cv_search_gethostbyname_r+set}" = set; then
  17699. break
  17700. fi
  17701. done
  17702. if test "${ac_cv_search_gethostbyname_r+set}" = set; then
  17703. :
  17704. else
  17705. ac_cv_search_gethostbyname_r=no
  17706. fi
  17707. rm conftest.$ac_ext
  17708. LIBS=$ac_func_search_save_LIBS
  17709. fi
  17710. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
  17711. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  17712. ac_res=$ac_cv_search_gethostbyname_r
  17713. if test "$ac_res" != no; then
  17714. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17715. fi
  17716. { $as_echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
  17717. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  17718. cat >conftest.$ac_ext <<_ACEOF
  17719. /* confdefs.h. */
  17720. _ACEOF
  17721. cat confdefs.h >>conftest.$ac_ext
  17722. cat >>conftest.$ac_ext <<_ACEOF
  17723. /* end confdefs.h. */
  17724. #include <stdlib.h>
  17725. #include <netdb.h>
  17726. int
  17727. main ()
  17728. {
  17729. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  17730. ;
  17731. return 0;
  17732. }
  17733. _ACEOF
  17734. rm -f conftest.$ac_objext conftest$ac_exeext
  17735. if { (ac_try="$ac_link"
  17736. case "(($ac_try" in
  17737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17738. *) ac_try_echo=$ac_try;;
  17739. esac
  17740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17741. $as_echo "$ac_try_echo") >&5
  17742. (eval "$ac_link") 2>conftest.er1
  17743. ac_status=$?
  17744. grep -v '^ *+' conftest.er1 >conftest.err
  17745. rm -f conftest.er1
  17746. cat conftest.err >&5
  17747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17748. (exit $ac_status); } && {
  17749. test -z "$ac_c_werror_flag" ||
  17750. test ! -s conftest.err
  17751. } && test -s conftest$ac_exeext && {
  17752. test "$cross_compiling" = yes ||
  17753. $as_test_x conftest$ac_exeext
  17754. }; then
  17755. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17756. $as_echo "yes" >&6; }
  17757. cat >>confdefs.h <<\_ACEOF
  17758. #define HAVE_GETHOSTBYNAME_R_6 1
  17759. _ACEOF
  17760. else
  17761. $as_echo "$as_me: failed program was:" >&5
  17762. sed 's/^/| /' conftest.$ac_ext >&5
  17763. { $as_echo "$as_me:$LINENO: result: no" >&5
  17764. $as_echo "no" >&6; }
  17765. fi
  17766. rm -rf conftest.dSYM
  17767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17768. conftest$ac_exeext conftest.$ac_ext
  17769. { $as_echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
  17770. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  17771. cat >conftest.$ac_ext <<_ACEOF
  17772. /* confdefs.h. */
  17773. _ACEOF
  17774. cat confdefs.h >>conftest.$ac_ext
  17775. cat >>conftest.$ac_ext <<_ACEOF
  17776. /* end confdefs.h. */
  17777. #include <stdlib.h>
  17778. #include <netdb.h>
  17779. int
  17780. main ()
  17781. {
  17782. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  17783. ;
  17784. return 0;
  17785. }
  17786. _ACEOF
  17787. rm -f conftest.$ac_objext conftest$ac_exeext
  17788. if { (ac_try="$ac_link"
  17789. case "(($ac_try" in
  17790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17791. *) ac_try_echo=$ac_try;;
  17792. esac
  17793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17794. $as_echo "$ac_try_echo") >&5
  17795. (eval "$ac_link") 2>conftest.er1
  17796. ac_status=$?
  17797. grep -v '^ *+' conftest.er1 >conftest.err
  17798. rm -f conftest.er1
  17799. cat conftest.err >&5
  17800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17801. (exit $ac_status); } && {
  17802. test -z "$ac_c_werror_flag" ||
  17803. test ! -s conftest.err
  17804. } && test -s conftest$ac_exeext && {
  17805. test "$cross_compiling" = yes ||
  17806. $as_test_x conftest$ac_exeext
  17807. }; then
  17808. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17809. $as_echo "yes" >&6; }
  17810. cat >>confdefs.h <<\_ACEOF
  17811. #define HAVE_GETHOSTBYNAME_R_5 1
  17812. _ACEOF
  17813. else
  17814. $as_echo "$as_me: failed program was:" >&5
  17815. sed 's/^/| /' conftest.$ac_ext >&5
  17816. { $as_echo "$as_me:$LINENO: result: no" >&5
  17817. $as_echo "no" >&6; }
  17818. fi
  17819. rm -rf conftest.dSYM
  17820. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17821. conftest$ac_exeext conftest.$ac_ext
  17822. if test "${ac_cv_header_byteswap_h+set}" = set; then
  17823. { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
  17824. $as_echo_n "checking for byteswap.h... " >&6; }
  17825. if test "${ac_cv_header_byteswap_h+set}" = set; then
  17826. $as_echo_n "(cached) " >&6
  17827. fi
  17828. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
  17829. $as_echo "$ac_cv_header_byteswap_h" >&6; }
  17830. else
  17831. # Is the header compilable?
  17832. { $as_echo "$as_me:$LINENO: checking byteswap.h usability" >&5
  17833. $as_echo_n "checking byteswap.h usability... " >&6; }
  17834. cat >conftest.$ac_ext <<_ACEOF
  17835. /* confdefs.h. */
  17836. _ACEOF
  17837. cat confdefs.h >>conftest.$ac_ext
  17838. cat >>conftest.$ac_ext <<_ACEOF
  17839. /* end confdefs.h. */
  17840. $ac_includes_default
  17841. #include <byteswap.h>
  17842. _ACEOF
  17843. rm -f conftest.$ac_objext
  17844. if { (ac_try="$ac_compile"
  17845. case "(($ac_try" in
  17846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17847. *) ac_try_echo=$ac_try;;
  17848. esac
  17849. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17850. $as_echo "$ac_try_echo") >&5
  17851. (eval "$ac_compile") 2>conftest.er1
  17852. ac_status=$?
  17853. grep -v '^ *+' conftest.er1 >conftest.err
  17854. rm -f conftest.er1
  17855. cat conftest.err >&5
  17856. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17857. (exit $ac_status); } && {
  17858. test -z "$ac_c_werror_flag" ||
  17859. test ! -s conftest.err
  17860. } && test -s conftest.$ac_objext; then
  17861. ac_header_compiler=yes
  17862. else
  17863. $as_echo "$as_me: failed program was:" >&5
  17864. sed 's/^/| /' conftest.$ac_ext >&5
  17865. ac_header_compiler=no
  17866. fi
  17867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17868. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17869. $as_echo "$ac_header_compiler" >&6; }
  17870. # Is the header present?
  17871. { $as_echo "$as_me:$LINENO: checking byteswap.h presence" >&5
  17872. $as_echo_n "checking byteswap.h presence... " >&6; }
  17873. cat >conftest.$ac_ext <<_ACEOF
  17874. /* confdefs.h. */
  17875. _ACEOF
  17876. cat confdefs.h >>conftest.$ac_ext
  17877. cat >>conftest.$ac_ext <<_ACEOF
  17878. /* end confdefs.h. */
  17879. #include <byteswap.h>
  17880. _ACEOF
  17881. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17882. case "(($ac_try" in
  17883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17884. *) ac_try_echo=$ac_try;;
  17885. esac
  17886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17887. $as_echo "$ac_try_echo") >&5
  17888. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17889. ac_status=$?
  17890. grep -v '^ *+' conftest.er1 >conftest.err
  17891. rm -f conftest.er1
  17892. cat conftest.err >&5
  17893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17894. (exit $ac_status); } >/dev/null && {
  17895. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17896. test ! -s conftest.err
  17897. }; then
  17898. ac_header_preproc=yes
  17899. else
  17900. $as_echo "$as_me: failed program was:" >&5
  17901. sed 's/^/| /' conftest.$ac_ext >&5
  17902. ac_header_preproc=no
  17903. fi
  17904. rm -f conftest.err conftest.$ac_ext
  17905. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17906. $as_echo "$ac_header_preproc" >&6; }
  17907. # So? What about this header?
  17908. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17909. yes:no: )
  17910. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17911. $as_echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17912. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
  17913. $as_echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
  17914. ac_header_preproc=yes
  17915. ;;
  17916. no:yes:* )
  17917. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
  17918. $as_echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
  17919. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
  17920. $as_echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
  17921. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
  17922. $as_echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
  17923. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
  17924. $as_echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17925. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
  17926. $as_echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
  17927. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
  17928. $as_echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
  17929. ( cat <<\_ASBOX
  17930. ## ------------------------------------------ ##
  17931. ## Report this to https://issues.asterisk.org ##
  17932. ## ------------------------------------------ ##
  17933. _ASBOX
  17934. ) | sed "s/^/$as_me: WARNING: /" >&2
  17935. ;;
  17936. esac
  17937. { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
  17938. $as_echo_n "checking for byteswap.h... " >&6; }
  17939. if test "${ac_cv_header_byteswap_h+set}" = set; then
  17940. $as_echo_n "(cached) " >&6
  17941. else
  17942. ac_cv_header_byteswap_h=$ac_header_preproc
  17943. fi
  17944. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
  17945. $as_echo "$ac_cv_header_byteswap_h" >&6; }
  17946. fi
  17947. if test "x$ac_cv_header_byteswap_h" = x""yes; then
  17948. cat >>confdefs.h <<_ACEOF
  17949. #define HAVE_BYTESWAP_H 1
  17950. _ACEOF
  17951. fi
  17952. { $as_echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  17953. $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  17954. cat >conftest.$ac_ext <<_ACEOF
  17955. /* confdefs.h. */
  17956. _ACEOF
  17957. cat confdefs.h >>conftest.$ac_ext
  17958. cat >>conftest.$ac_ext <<_ACEOF
  17959. /* end confdefs.h. */
  17960. #include <sys/endian.h>
  17961. int
  17962. main ()
  17963. {
  17964. int a = 1; int b = __swap16(a);
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. rm -f conftest.$ac_objext conftest$ac_exeext
  17970. if { (ac_try="$ac_link"
  17971. case "(($ac_try" in
  17972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17973. *) ac_try_echo=$ac_try;;
  17974. esac
  17975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17976. $as_echo "$ac_try_echo") >&5
  17977. (eval "$ac_link") 2>conftest.er1
  17978. ac_status=$?
  17979. grep -v '^ *+' conftest.er1 >conftest.err
  17980. rm -f conftest.er1
  17981. cat conftest.err >&5
  17982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17983. (exit $ac_status); } && {
  17984. test -z "$ac_c_werror_flag" ||
  17985. test ! -s conftest.err
  17986. } && test -s conftest$ac_exeext && {
  17987. test "$cross_compiling" = yes ||
  17988. $as_test_x conftest$ac_exeext
  17989. }; then
  17990. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17991. $as_echo "yes" >&6; }
  17992. cat >>confdefs.h <<\_ACEOF
  17993. #define HAVE_SYS_ENDIAN_SWAP16 1
  17994. _ACEOF
  17995. else
  17996. $as_echo "$as_me: failed program was:" >&5
  17997. sed 's/^/| /' conftest.$ac_ext >&5
  17998. { $as_echo "$as_me:$LINENO: result: no" >&5
  17999. $as_echo "no" >&6; }
  18000. fi
  18001. rm -rf conftest.dSYM
  18002. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18003. conftest$ac_exeext conftest.$ac_ext
  18004. { $as_echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  18005. $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  18006. cat >conftest.$ac_ext <<_ACEOF
  18007. /* confdefs.h. */
  18008. _ACEOF
  18009. cat confdefs.h >>conftest.$ac_ext
  18010. cat >>conftest.$ac_ext <<_ACEOF
  18011. /* end confdefs.h. */
  18012. #include <sys/endian.h>
  18013. int
  18014. main ()
  18015. {
  18016. int a = 1; int b = bswap16(a);
  18017. ;
  18018. return 0;
  18019. }
  18020. _ACEOF
  18021. rm -f conftest.$ac_objext conftest$ac_exeext
  18022. if { (ac_try="$ac_link"
  18023. case "(($ac_try" in
  18024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18025. *) ac_try_echo=$ac_try;;
  18026. esac
  18027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18028. $as_echo "$ac_try_echo") >&5
  18029. (eval "$ac_link") 2>conftest.er1
  18030. ac_status=$?
  18031. grep -v '^ *+' conftest.er1 >conftest.err
  18032. rm -f conftest.er1
  18033. cat conftest.err >&5
  18034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18035. (exit $ac_status); } && {
  18036. test -z "$ac_c_werror_flag" ||
  18037. test ! -s conftest.err
  18038. } && test -s conftest$ac_exeext && {
  18039. test "$cross_compiling" = yes ||
  18040. $as_test_x conftest$ac_exeext
  18041. }; then
  18042. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18043. $as_echo "yes" >&6; }
  18044. cat >>confdefs.h <<\_ACEOF
  18045. #define HAVE_SYS_ENDIAN_BSWAP16 1
  18046. _ACEOF
  18047. else
  18048. $as_echo "$as_me: failed program was:" >&5
  18049. sed 's/^/| /' conftest.$ac_ext >&5
  18050. { $as_echo "$as_me:$LINENO: result: no" >&5
  18051. $as_echo "no" >&6; }
  18052. fi
  18053. rm -rf conftest.dSYM
  18054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18055. conftest$ac_exeext conftest.$ac_ext
  18056. if test "${cross_compiling}" = "no";
  18057. then
  18058. { $as_echo "$as_me:$LINENO: checking for /dev/urandom" >&5
  18059. $as_echo_n "checking for /dev/urandom... " >&6; }
  18060. if test "${ac_cv_file__dev_urandom+set}" = set; then
  18061. $as_echo_n "(cached) " >&6
  18062. else
  18063. test "$cross_compiling" = yes &&
  18064. { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  18065. $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  18066. { (exit 1); exit 1; }; }
  18067. if test -r "/dev/urandom"; then
  18068. ac_cv_file__dev_urandom=yes
  18069. else
  18070. ac_cv_file__dev_urandom=no
  18071. fi
  18072. fi
  18073. { $as_echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
  18074. $as_echo "$ac_cv_file__dev_urandom" >&6; }
  18075. if test "x$ac_cv_file__dev_urandom" = x""yes; then
  18076. cat >>confdefs.h <<\_ACEOF
  18077. #define HAVE_DEV_URANDOM 1
  18078. _ACEOF
  18079. fi
  18080. fi
  18081. { $as_echo "$as_me:$LINENO: checking for locale_t in locale.h" >&5
  18082. $as_echo_n "checking for locale_t in locale.h... " >&6; }
  18083. cat >conftest.$ac_ext <<_ACEOF
  18084. /* confdefs.h. */
  18085. _ACEOF
  18086. cat confdefs.h >>conftest.$ac_ext
  18087. cat >>conftest.$ac_ext <<_ACEOF
  18088. /* end confdefs.h. */
  18089. #include <locale.h>
  18090. int
  18091. main ()
  18092. {
  18093. locale_t lt = NULL
  18094. ;
  18095. return 0;
  18096. }
  18097. _ACEOF
  18098. rm -f conftest.$ac_objext conftest$ac_exeext
  18099. if { (ac_try="$ac_link"
  18100. case "(($ac_try" in
  18101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18102. *) ac_try_echo=$ac_try;;
  18103. esac
  18104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18105. $as_echo "$ac_try_echo") >&5
  18106. (eval "$ac_link") 2>conftest.er1
  18107. ac_status=$?
  18108. grep -v '^ *+' conftest.er1 >conftest.err
  18109. rm -f conftest.er1
  18110. cat conftest.err >&5
  18111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18112. (exit $ac_status); } && {
  18113. test -z "$ac_c_werror_flag" ||
  18114. test ! -s conftest.err
  18115. } && test -s conftest$ac_exeext && {
  18116. test "$cross_compiling" = yes ||
  18117. $as_test_x conftest$ac_exeext
  18118. }; then
  18119. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18120. $as_echo "yes" >&6; }
  18121. cat >>confdefs.h <<\_ACEOF
  18122. #define HAVE_LOCALE_T_IN_LOCALE_H 1
  18123. _ACEOF
  18124. else
  18125. $as_echo "$as_me: failed program was:" >&5
  18126. sed 's/^/| /' conftest.$ac_ext >&5
  18127. { $as_echo "$as_me:$LINENO: result: no" >&5
  18128. $as_echo "no" >&6; }
  18129. { $as_echo "$as_me:$LINENO: checking for locale_t in xlocale.h" >&5
  18130. $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
  18131. cat >conftest.$ac_ext <<_ACEOF
  18132. /* confdefs.h. */
  18133. _ACEOF
  18134. cat confdefs.h >>conftest.$ac_ext
  18135. cat >>conftest.$ac_ext <<_ACEOF
  18136. /* end confdefs.h. */
  18137. #include <xlocale.h>
  18138. int
  18139. main ()
  18140. {
  18141. locale_t lt = NULL
  18142. ;
  18143. return 0;
  18144. }
  18145. _ACEOF
  18146. rm -f conftest.$ac_objext conftest$ac_exeext
  18147. if { (ac_try="$ac_link"
  18148. case "(($ac_try" in
  18149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18150. *) ac_try_echo=$ac_try;;
  18151. esac
  18152. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18153. $as_echo "$ac_try_echo") >&5
  18154. (eval "$ac_link") 2>conftest.er1
  18155. ac_status=$?
  18156. grep -v '^ *+' conftest.er1 >conftest.err
  18157. rm -f conftest.er1
  18158. cat conftest.err >&5
  18159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18160. (exit $ac_status); } && {
  18161. test -z "$ac_c_werror_flag" ||
  18162. test ! -s conftest.err
  18163. } && test -s conftest$ac_exeext && {
  18164. test "$cross_compiling" = yes ||
  18165. $as_test_x conftest$ac_exeext
  18166. }; then
  18167. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18168. $as_echo "yes" >&6; }
  18169. cat >>confdefs.h <<\_ACEOF
  18170. #define HAVE_LOCALE_T_IN_XLOCALE_H 1
  18171. _ACEOF
  18172. else
  18173. $as_echo "$as_me: failed program was:" >&5
  18174. sed 's/^/| /' conftest.$ac_ext >&5
  18175. { $as_echo "$as_me:$LINENO: result: no" >&5
  18176. $as_echo "no" >&6; }
  18177. fi
  18178. rm -rf conftest.dSYM
  18179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18180. conftest$ac_exeext conftest.$ac_ext
  18181. fi
  18182. rm -rf conftest.dSYM
  18183. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18184. conftest$ac_exeext conftest.$ac_ext
  18185. { $as_echo "$as_me:$LINENO: checking for O_EVTONLY in fcntl.h" >&5
  18186. $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
  18187. cat >conftest.$ac_ext <<_ACEOF
  18188. /* confdefs.h. */
  18189. _ACEOF
  18190. cat confdefs.h >>conftest.$ac_ext
  18191. cat >>conftest.$ac_ext <<_ACEOF
  18192. /* end confdefs.h. */
  18193. #include <fcntl.h>
  18194. int
  18195. main ()
  18196. {
  18197. int a = O_EVTONLY;
  18198. ;
  18199. return 0;
  18200. }
  18201. _ACEOF
  18202. rm -f conftest.$ac_objext conftest$ac_exeext
  18203. if { (ac_try="$ac_link"
  18204. case "(($ac_try" in
  18205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18206. *) ac_try_echo=$ac_try;;
  18207. esac
  18208. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18209. $as_echo "$ac_try_echo") >&5
  18210. (eval "$ac_link") 2>conftest.er1
  18211. ac_status=$?
  18212. grep -v '^ *+' conftest.er1 >conftest.err
  18213. rm -f conftest.er1
  18214. cat conftest.err >&5
  18215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18216. (exit $ac_status); } && {
  18217. test -z "$ac_c_werror_flag" ||
  18218. test ! -s conftest.err
  18219. } && test -s conftest$ac_exeext && {
  18220. test "$cross_compiling" = yes ||
  18221. $as_test_x conftest$ac_exeext
  18222. }; then
  18223. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18224. $as_echo "yes" >&6; }
  18225. cat >>confdefs.h <<\_ACEOF
  18226. #define HAVE_O_EVTONLY 1
  18227. _ACEOF
  18228. else
  18229. $as_echo "$as_me: failed program was:" >&5
  18230. sed 's/^/| /' conftest.$ac_ext >&5
  18231. { $as_echo "$as_me:$LINENO: result: no" >&5
  18232. $as_echo "no" >&6; }
  18233. fi
  18234. rm -rf conftest.dSYM
  18235. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18236. conftest$ac_exeext conftest.$ac_ext
  18237. { $as_echo "$as_me:$LINENO: checking for O_SYMLINK in fcntl.h" >&5
  18238. $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
  18239. cat >conftest.$ac_ext <<_ACEOF
  18240. /* confdefs.h. */
  18241. _ACEOF
  18242. cat confdefs.h >>conftest.$ac_ext
  18243. cat >>conftest.$ac_ext <<_ACEOF
  18244. /* end confdefs.h. */
  18245. #include <fcntl.h>
  18246. int
  18247. main ()
  18248. {
  18249. int a = O_SYMLINK;
  18250. ;
  18251. return 0;
  18252. }
  18253. _ACEOF
  18254. rm -f conftest.$ac_objext conftest$ac_exeext
  18255. if { (ac_try="$ac_link"
  18256. case "(($ac_try" in
  18257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18258. *) ac_try_echo=$ac_try;;
  18259. esac
  18260. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18261. $as_echo "$ac_try_echo") >&5
  18262. (eval "$ac_link") 2>conftest.er1
  18263. ac_status=$?
  18264. grep -v '^ *+' conftest.er1 >conftest.err
  18265. rm -f conftest.er1
  18266. cat conftest.err >&5
  18267. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18268. (exit $ac_status); } && {
  18269. test -z "$ac_c_werror_flag" ||
  18270. test ! -s conftest.err
  18271. } && test -s conftest$ac_exeext && {
  18272. test "$cross_compiling" = yes ||
  18273. $as_test_x conftest$ac_exeext
  18274. }; then
  18275. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18276. $as_echo "yes" >&6; }
  18277. cat >>confdefs.h <<\_ACEOF
  18278. #define HAVE_O_SYMLINK 1
  18279. _ACEOF
  18280. else
  18281. $as_echo "$as_me: failed program was:" >&5
  18282. sed 's/^/| /' conftest.$ac_ext >&5
  18283. { $as_echo "$as_me:$LINENO: result: no" >&5
  18284. $as_echo "no" >&6; }
  18285. fi
  18286. rm -rf conftest.dSYM
  18287. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18288. conftest$ac_exeext conftest.$ac_ext
  18289. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  18290. { $as_echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  18291. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  18292. saved_cppflags="${CPPFLAGS}"
  18293. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  18294. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  18295. fi
  18296. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  18297. cat >conftest.$ac_ext <<_ACEOF
  18298. /* confdefs.h. */
  18299. _ACEOF
  18300. cat confdefs.h >>conftest.$ac_ext
  18301. cat >>conftest.$ac_ext <<_ACEOF
  18302. /* end confdefs.h. */
  18303. #include <pthread.h>
  18304. int
  18305. main ()
  18306. {
  18307. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  18308. int foo = 0;
  18309. #else
  18310. int foo = bar;
  18311. #endif
  18312. 0
  18313. ;
  18314. return 0;
  18315. }
  18316. _ACEOF
  18317. rm -f conftest.$ac_objext
  18318. if { (ac_try="$ac_compile"
  18319. case "(($ac_try" in
  18320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18321. *) ac_try_echo=$ac_try;;
  18322. esac
  18323. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18324. $as_echo "$ac_try_echo") >&5
  18325. (eval "$ac_compile") 2>conftest.er1
  18326. ac_status=$?
  18327. grep -v '^ *+' conftest.er1 >conftest.err
  18328. rm -f conftest.er1
  18329. cat conftest.err >&5
  18330. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18331. (exit $ac_status); } && {
  18332. test -z "$ac_c_werror_flag" ||
  18333. test ! -s conftest.err
  18334. } && test -s conftest.$ac_objext; then
  18335. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18336. $as_echo "yes" >&6; }
  18337. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  18338. cat >>confdefs.h <<\_ACEOF
  18339. #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
  18340. _ACEOF
  18341. else
  18342. $as_echo "$as_me: failed program was:" >&5
  18343. sed 's/^/| /' conftest.$ac_ext >&5
  18344. { $as_echo "$as_me:$LINENO: result: no" >&5
  18345. $as_echo "no" >&6; }
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18348. CPPFLAGS="${saved_cppflags}"
  18349. fi
  18350. { $as_echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  18351. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  18352. cat >conftest.$ac_ext <<_ACEOF
  18353. /* confdefs.h. */
  18354. _ACEOF
  18355. cat confdefs.h >>conftest.$ac_ext
  18356. cat >>conftest.$ac_ext <<_ACEOF
  18357. /* end confdefs.h. */
  18358. #include <pthread.h>
  18359. int
  18360. main ()
  18361. {
  18362. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  18363. ;
  18364. return 0;
  18365. }
  18366. _ACEOF
  18367. rm -f conftest.$ac_objext conftest$ac_exeext
  18368. if { (ac_try="$ac_link"
  18369. case "(($ac_try" in
  18370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18371. *) ac_try_echo=$ac_try;;
  18372. esac
  18373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18374. $as_echo "$ac_try_echo") >&5
  18375. (eval "$ac_link") 2>conftest.er1
  18376. ac_status=$?
  18377. grep -v '^ *+' conftest.er1 >conftest.err
  18378. rm -f conftest.er1
  18379. cat conftest.err >&5
  18380. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18381. (exit $ac_status); } && {
  18382. test -z "$ac_c_werror_flag" ||
  18383. test ! -s conftest.err
  18384. } && test -s conftest$ac_exeext && {
  18385. test "$cross_compiling" = yes ||
  18386. $as_test_x conftest$ac_exeext
  18387. }; then
  18388. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18389. $as_echo "yes" >&6; }
  18390. cat >>confdefs.h <<\_ACEOF
  18391. #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
  18392. _ACEOF
  18393. else
  18394. $as_echo "$as_me: failed program was:" >&5
  18395. sed 's/^/| /' conftest.$ac_ext >&5
  18396. { $as_echo "$as_me:$LINENO: result: no" >&5
  18397. $as_echo "no" >&6; }
  18398. fi
  18399. rm -rf conftest.dSYM
  18400. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18401. conftest$ac_exeext conftest.$ac_ext
  18402. { $as_echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  18403. $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  18404. cat >conftest.$ac_ext <<_ACEOF
  18405. /* confdefs.h. */
  18406. _ACEOF
  18407. cat confdefs.h >>conftest.$ac_ext
  18408. cat >>conftest.$ac_ext <<_ACEOF
  18409. /* end confdefs.h. */
  18410. #include <pthread.h>
  18411. int
  18412. main ()
  18413. {
  18414. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  18415. ;
  18416. return 0;
  18417. }
  18418. _ACEOF
  18419. rm -f conftest.$ac_objext conftest$ac_exeext
  18420. if { (ac_try="$ac_link"
  18421. case "(($ac_try" in
  18422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18423. *) ac_try_echo=$ac_try;;
  18424. esac
  18425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18426. $as_echo "$ac_try_echo") >&5
  18427. (eval "$ac_link") 2>conftest.er1
  18428. ac_status=$?
  18429. grep -v '^ *+' conftest.er1 >conftest.err
  18430. rm -f conftest.er1
  18431. cat conftest.err >&5
  18432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18433. (exit $ac_status); } && {
  18434. test -z "$ac_c_werror_flag" ||
  18435. test ! -s conftest.err
  18436. } && test -s conftest$ac_exeext && {
  18437. test "$cross_compiling" = yes ||
  18438. $as_test_x conftest$ac_exeext
  18439. }; then
  18440. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18441. $as_echo "yes" >&6; }
  18442. cat >>confdefs.h <<\_ACEOF
  18443. #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
  18444. _ACEOF
  18445. else
  18446. $as_echo "$as_me: failed program was:" >&5
  18447. sed 's/^/| /' conftest.$ac_ext >&5
  18448. { $as_echo "$as_me:$LINENO: result: no" >&5
  18449. $as_echo "no" >&6; }
  18450. fi
  18451. rm -rf conftest.dSYM
  18452. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18453. conftest$ac_exeext conftest.$ac_ext
  18454. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  18455. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  18456. save_LIBS="$LIBS"
  18457. save_CFLAGS="$CFLAGS"
  18458. LIBS="$PTHREAD_LIBS $LIBS"
  18459. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  18460. cat >conftest.$ac_ext <<_ACEOF
  18461. /* confdefs.h. */
  18462. _ACEOF
  18463. cat confdefs.h >>conftest.$ac_ext
  18464. cat >>conftest.$ac_ext <<_ACEOF
  18465. /* end confdefs.h. */
  18466. #include <pthread.h>
  18467. #include <time.h>
  18468. int
  18469. main ()
  18470. {
  18471. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  18472. ;
  18473. return 0;
  18474. }
  18475. _ACEOF
  18476. rm -f conftest.$ac_objext conftest$ac_exeext
  18477. if { (ac_try="$ac_link"
  18478. case "(($ac_try" in
  18479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18480. *) ac_try_echo=$ac_try;;
  18481. esac
  18482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18483. $as_echo "$ac_try_echo") >&5
  18484. (eval "$ac_link") 2>conftest.er1
  18485. ac_status=$?
  18486. grep -v '^ *+' conftest.er1 >conftest.err
  18487. rm -f conftest.er1
  18488. cat conftest.err >&5
  18489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18490. (exit $ac_status); } && {
  18491. test -z "$ac_c_werror_flag" ||
  18492. test ! -s conftest.err
  18493. } && test -s conftest$ac_exeext && {
  18494. test "$cross_compiling" = yes ||
  18495. $as_test_x conftest$ac_exeext
  18496. }; then
  18497. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18498. $as_echo "yes" >&6; }
  18499. ac_cv_pthread_rwlock_timedwrlock="yes"
  18500. else
  18501. $as_echo "$as_me: failed program was:" >&5
  18502. sed 's/^/| /' conftest.$ac_ext >&5
  18503. { $as_echo "$as_me:$LINENO: result: no" >&5
  18504. $as_echo "no" >&6; }
  18505. ac_cv_pthread_rwlock_timedwrlock="no"
  18506. fi
  18507. rm -rf conftest.dSYM
  18508. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18509. conftest$ac_exeext conftest.$ac_ext
  18510. LIBS="$save_LIBS"
  18511. CFLAGS="$save_CFLAGS"
  18512. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  18513. cat >>confdefs.h <<\_ACEOF
  18514. #define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1
  18515. _ACEOF
  18516. fi
  18517. { $as_echo "$as_me:$LINENO: checking if PTHREAD_ONCE_INIT needs braces" >&5
  18518. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  18519. saved_CFLAGS="${CFLAGS}"
  18520. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  18521. cat >conftest.$ac_ext <<_ACEOF
  18522. /* confdefs.h. */
  18523. _ACEOF
  18524. cat confdefs.h >>conftest.$ac_ext
  18525. cat >>conftest.$ac_ext <<_ACEOF
  18526. /* end confdefs.h. */
  18527. #include <pthread.h>
  18528. void empty(){}
  18529. int
  18530. main ()
  18531. {
  18532. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  18533. ;
  18534. return 0;
  18535. }
  18536. _ACEOF
  18537. rm -f conftest.$ac_objext
  18538. if { (ac_try="$ac_compile"
  18539. case "(($ac_try" in
  18540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18541. *) ac_try_echo=$ac_try;;
  18542. esac
  18543. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18544. $as_echo "$ac_try_echo") >&5
  18545. (eval "$ac_compile") 2>conftest.er1
  18546. ac_status=$?
  18547. grep -v '^ *+' conftest.er1 >conftest.err
  18548. rm -f conftest.er1
  18549. cat conftest.err >&5
  18550. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18551. (exit $ac_status); } && {
  18552. test -z "$ac_c_werror_flag" ||
  18553. test ! -s conftest.err
  18554. } && test -s conftest.$ac_objext; then
  18555. { $as_echo "$as_me:$LINENO: result: no" >&5
  18556. $as_echo "no" >&6; }
  18557. ac_cv_pthread_once_needsbraces="no"
  18558. else
  18559. $as_echo "$as_me: failed program was:" >&5
  18560. sed 's/^/| /' conftest.$ac_ext >&5
  18561. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18562. $as_echo "yes" >&6; }
  18563. ac_cv_pthread_once_needsbraces="yes"
  18564. fi
  18565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18566. CFLAGS="${saved_CFLAGS}"
  18567. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  18568. cat >>confdefs.h <<\_ACEOF
  18569. #define PTHREAD_ONCE_INIT_NEEDS_BRACES 1
  18570. _ACEOF
  18571. fi
  18572. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  18573. { $as_echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  18574. $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  18575. saved_cppflags="${CPPFLAGS}"
  18576. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  18577. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  18578. fi
  18579. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  18580. cat >conftest.$ac_ext <<_ACEOF
  18581. /* confdefs.h. */
  18582. _ACEOF
  18583. cat confdefs.h >>conftest.$ac_ext
  18584. cat >>conftest.$ac_ext <<_ACEOF
  18585. /* end confdefs.h. */
  18586. #include <pthread.h>
  18587. int
  18588. main ()
  18589. {
  18590. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  18591. int foo = 0;
  18592. #else
  18593. int foo = bar;
  18594. #endif
  18595. 0
  18596. ;
  18597. return 0;
  18598. }
  18599. _ACEOF
  18600. rm -f conftest.$ac_objext
  18601. if { (ac_try="$ac_compile"
  18602. case "(($ac_try" in
  18603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18604. *) ac_try_echo=$ac_try;;
  18605. esac
  18606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18607. $as_echo "$ac_try_echo") >&5
  18608. (eval "$ac_compile") 2>conftest.er1
  18609. ac_status=$?
  18610. grep -v '^ *+' conftest.er1 >conftest.err
  18611. rm -f conftest.er1
  18612. cat conftest.err >&5
  18613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18614. (exit $ac_status); } && {
  18615. test -z "$ac_c_werror_flag" ||
  18616. test ! -s conftest.err
  18617. } && test -s conftest.$ac_objext; then
  18618. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18619. $as_echo "yes" >&6; }
  18620. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  18621. cat >>confdefs.h <<\_ACEOF
  18622. #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
  18623. _ACEOF
  18624. else
  18625. $as_echo "$as_me: failed program was:" >&5
  18626. sed 's/^/| /' conftest.$ac_ext >&5
  18627. { $as_echo "$as_me:$LINENO: result: no" >&5
  18628. $as_echo "no" >&6; }
  18629. fi
  18630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18631. CPPFLAGS="${saved_cppflags}"
  18632. fi
  18633. # Can we compare a mutex to its initial value?
  18634. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  18635. { $as_echo "$as_me:$LINENO: checking whether we can compare a mutex to its initial value" >&5
  18636. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  18637. cat >conftest.$ac_ext <<_ACEOF
  18638. /* confdefs.h. */
  18639. _ACEOF
  18640. cat confdefs.h >>conftest.$ac_ext
  18641. cat >>conftest.$ac_ext <<_ACEOF
  18642. /* end confdefs.h. */
  18643. #include <pthread.h>
  18644. int
  18645. main ()
  18646. {
  18647. pthread_mutex_t lock;
  18648. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  18649. return 0;
  18650. }
  18651. return 0
  18652. ;
  18653. return 0;
  18654. }
  18655. _ACEOF
  18656. rm -f conftest.$ac_objext conftest$ac_exeext
  18657. if { (ac_try="$ac_link"
  18658. case "(($ac_try" in
  18659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18660. *) ac_try_echo=$ac_try;;
  18661. esac
  18662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18663. $as_echo "$ac_try_echo") >&5
  18664. (eval "$ac_link") 2>conftest.er1
  18665. ac_status=$?
  18666. grep -v '^ *+' conftest.er1 >conftest.err
  18667. rm -f conftest.er1
  18668. cat conftest.err >&5
  18669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18670. (exit $ac_status); } && {
  18671. test -z "$ac_c_werror_flag" ||
  18672. test ! -s conftest.err
  18673. } && test -s conftest$ac_exeext && {
  18674. test "$cross_compiling" = yes ||
  18675. $as_test_x conftest$ac_exeext
  18676. }; then
  18677. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18678. $as_echo "yes" >&6; }
  18679. cat >>confdefs.h <<\_ACEOF
  18680. #define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1
  18681. _ACEOF
  18682. else
  18683. $as_echo "$as_me: failed program was:" >&5
  18684. sed 's/^/| /' conftest.$ac_ext >&5
  18685. { $as_echo "$as_me:$LINENO: result: no" >&5
  18686. $as_echo "no" >&6; }
  18687. fi
  18688. rm -rf conftest.dSYM
  18689. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18690. conftest$ac_exeext conftest.$ac_ext
  18691. #if test "${cross_compiling}" = "no";
  18692. #then
  18693. #AC_MSG_CHECKING(for working epoll support)
  18694. #AC_LINK_IFELSE(
  18695. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  18696. # if (res < 0)
  18697. # return 1;
  18698. # close (res);
  18699. # return 0;]),
  18700. #AC_MSG_RESULT(yes)
  18701. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  18702. #AC_MSG_RESULT(no)
  18703. #)
  18704. #fi
  18705. # for FreeBSD thr_self
  18706. for ac_header in sys/thr.h
  18707. do
  18708. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18709. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18710. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18711. $as_echo_n "checking for $ac_header... " >&6; }
  18712. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18713. $as_echo_n "(cached) " >&6
  18714. fi
  18715. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18716. $as_echo "$as_val"'`
  18717. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18718. $as_echo "$ac_res" >&6; }
  18719. else
  18720. # Is the header compilable?
  18721. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18722. $as_echo_n "checking $ac_header usability... " >&6; }
  18723. cat >conftest.$ac_ext <<_ACEOF
  18724. /* confdefs.h. */
  18725. _ACEOF
  18726. cat confdefs.h >>conftest.$ac_ext
  18727. cat >>conftest.$ac_ext <<_ACEOF
  18728. /* end confdefs.h. */
  18729. $ac_includes_default
  18730. #include <$ac_header>
  18731. _ACEOF
  18732. rm -f conftest.$ac_objext
  18733. if { (ac_try="$ac_compile"
  18734. case "(($ac_try" in
  18735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18736. *) ac_try_echo=$ac_try;;
  18737. esac
  18738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18739. $as_echo "$ac_try_echo") >&5
  18740. (eval "$ac_compile") 2>conftest.er1
  18741. ac_status=$?
  18742. grep -v '^ *+' conftest.er1 >conftest.err
  18743. rm -f conftest.er1
  18744. cat conftest.err >&5
  18745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18746. (exit $ac_status); } && {
  18747. test -z "$ac_c_werror_flag" ||
  18748. test ! -s conftest.err
  18749. } && test -s conftest.$ac_objext; then
  18750. ac_header_compiler=yes
  18751. else
  18752. $as_echo "$as_me: failed program was:" >&5
  18753. sed 's/^/| /' conftest.$ac_ext >&5
  18754. ac_header_compiler=no
  18755. fi
  18756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18757. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18758. $as_echo "$ac_header_compiler" >&6; }
  18759. # Is the header present?
  18760. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18761. $as_echo_n "checking $ac_header presence... " >&6; }
  18762. cat >conftest.$ac_ext <<_ACEOF
  18763. /* confdefs.h. */
  18764. _ACEOF
  18765. cat confdefs.h >>conftest.$ac_ext
  18766. cat >>conftest.$ac_ext <<_ACEOF
  18767. /* end confdefs.h. */
  18768. #include <$ac_header>
  18769. _ACEOF
  18770. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18771. case "(($ac_try" in
  18772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18773. *) ac_try_echo=$ac_try;;
  18774. esac
  18775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18776. $as_echo "$ac_try_echo") >&5
  18777. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18778. ac_status=$?
  18779. grep -v '^ *+' conftest.er1 >conftest.err
  18780. rm -f conftest.er1
  18781. cat conftest.err >&5
  18782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18783. (exit $ac_status); } >/dev/null && {
  18784. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18785. test ! -s conftest.err
  18786. }; then
  18787. ac_header_preproc=yes
  18788. else
  18789. $as_echo "$as_me: failed program was:" >&5
  18790. sed 's/^/| /' conftest.$ac_ext >&5
  18791. ac_header_preproc=no
  18792. fi
  18793. rm -f conftest.err conftest.$ac_ext
  18794. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18795. $as_echo "$ac_header_preproc" >&6; }
  18796. # So? What about this header?
  18797. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18798. yes:no: )
  18799. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18800. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18801. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18802. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18803. ac_header_preproc=yes
  18804. ;;
  18805. no:yes:* )
  18806. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18807. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18808. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18809. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18810. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18811. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18812. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18813. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18814. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18815. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18816. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18817. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18818. ( cat <<\_ASBOX
  18819. ## ------------------------------------------ ##
  18820. ## Report this to https://issues.asterisk.org ##
  18821. ## ------------------------------------------ ##
  18822. _ASBOX
  18823. ) | sed "s/^/$as_me: WARNING: /" >&2
  18824. ;;
  18825. esac
  18826. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18827. $as_echo_n "checking for $ac_header... " >&6; }
  18828. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18829. $as_echo_n "(cached) " >&6
  18830. else
  18831. eval "$as_ac_Header=\$ac_header_preproc"
  18832. fi
  18833. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18834. $as_echo "$as_val"'`
  18835. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18836. $as_echo "$ac_res" >&6; }
  18837. fi
  18838. as_val=`eval 'as_val=${'$as_ac_Header'}
  18839. $as_echo "$as_val"'`
  18840. if test "x$as_val" = x""yes; then
  18841. cat >>confdefs.h <<_ACEOF
  18842. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18843. _ACEOF
  18844. fi
  18845. done
  18846. { $as_echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
  18847. $as_echo_n "checking for compiler atomic operations... " >&6; }
  18848. cat >conftest.$ac_ext <<_ACEOF
  18849. /* confdefs.h. */
  18850. _ACEOF
  18851. cat confdefs.h >>conftest.$ac_ext
  18852. cat >>conftest.$ac_ext <<_ACEOF
  18853. /* end confdefs.h. */
  18854. int
  18855. main ()
  18856. {
  18857. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  18858. ;
  18859. return 0;
  18860. }
  18861. _ACEOF
  18862. rm -f conftest.$ac_objext conftest$ac_exeext
  18863. if { (ac_try="$ac_link"
  18864. case "(($ac_try" in
  18865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18866. *) ac_try_echo=$ac_try;;
  18867. esac
  18868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18869. $as_echo "$ac_try_echo") >&5
  18870. (eval "$ac_link") 2>conftest.er1
  18871. ac_status=$?
  18872. grep -v '^ *+' conftest.er1 >conftest.err
  18873. rm -f conftest.er1
  18874. cat conftest.err >&5
  18875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18876. (exit $ac_status); } && {
  18877. test -z "$ac_c_werror_flag" ||
  18878. test ! -s conftest.err
  18879. } && test -s conftest$ac_exeext && {
  18880. test "$cross_compiling" = yes ||
  18881. $as_test_x conftest$ac_exeext
  18882. }; then
  18883. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18884. $as_echo "yes" >&6; }
  18885. cat >>confdefs.h <<\_ACEOF
  18886. #define HAVE_GCC_ATOMICS 1
  18887. _ACEOF
  18888. else
  18889. $as_echo "$as_me: failed program was:" >&5
  18890. sed 's/^/| /' conftest.$ac_ext >&5
  18891. { $as_echo "$as_me:$LINENO: result: no" >&5
  18892. $as_echo "no" >&6; }
  18893. fi
  18894. rm -rf conftest.dSYM
  18895. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18896. conftest$ac_exeext conftest.$ac_ext
  18897. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  18898. { $as_echo "$as_me:$LINENO: checking if your system printf is NULL-safe." >&5
  18899. $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
  18900. if test "$cross_compiling" = yes; then
  18901. # It's unlikely an embedded system will have this.
  18902. { $as_echo "$as_me:$LINENO: result: unknown" >&5
  18903. $as_echo "unknown" >&6; }
  18904. else
  18905. cat >conftest.$ac_ext <<_ACEOF
  18906. /* confdefs.h. */
  18907. _ACEOF
  18908. cat confdefs.h >>conftest.$ac_ext
  18909. cat >>conftest.$ac_ext <<_ACEOF
  18910. /* end confdefs.h. */
  18911. #include <stdio.h>
  18912. int
  18913. main ()
  18914. {
  18915. printf("%s", NULL)
  18916. ;
  18917. return 0;
  18918. }
  18919. _ACEOF
  18920. rm -f conftest$ac_exeext
  18921. if { (ac_try="$ac_link"
  18922. case "(($ac_try" in
  18923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18924. *) ac_try_echo=$ac_try;;
  18925. esac
  18926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18927. $as_echo "$ac_try_echo") >&5
  18928. (eval "$ac_link") 2>&5
  18929. ac_status=$?
  18930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18931. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18932. { (case "(($ac_try" in
  18933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18934. *) ac_try_echo=$ac_try;;
  18935. esac
  18936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18937. $as_echo "$ac_try_echo") >&5
  18938. (eval "$ac_try") 2>&5
  18939. ac_status=$?
  18940. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18941. (exit $ac_status); }; }; then
  18942. cat >>confdefs.h <<\_ACEOF
  18943. #define HAVE_NULLSAFE_PRINTF 1
  18944. _ACEOF
  18945. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18946. $as_echo "yes" >&6; }
  18947. else
  18948. $as_echo "$as_me: program exited with status $ac_status" >&5
  18949. $as_echo "$as_me: failed program was:" >&5
  18950. sed 's/^/| /' conftest.$ac_ext >&5
  18951. ( exit $ac_status )
  18952. { $as_echo "$as_me:$LINENO: result: no" >&5
  18953. $as_echo "no" >&6; }
  18954. fi
  18955. rm -rf conftest.dSYM
  18956. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18957. fi
  18958. { $as_echo "$as_me:$LINENO: checking if we can increase the maximum select-able file descriptor" >&5
  18959. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  18960. if test "$cross_compiling" = yes; then
  18961. { $as_echo "$as_me:$LINENO: result: cross-compile" >&5
  18962. $as_echo "cross-compile" >&6; }
  18963. else
  18964. cat >conftest.$ac_ext <<_ACEOF
  18965. /* confdefs.h. */
  18966. _ACEOF
  18967. cat confdefs.h >>conftest.$ac_ext
  18968. cat >>conftest.$ac_ext <<_ACEOF
  18969. /* end confdefs.h. */
  18970. #include <stdio.h>
  18971. #include <sys/select.h>
  18972. #include <sys/time.h>
  18973. #include <sys/resource.h>
  18974. #include <string.h>
  18975. #include <errno.h>
  18976. #include <stdlib.h>
  18977. #include <sys/types.h>
  18978. #include <sys/stat.h>
  18979. #include <fcntl.h>
  18980. #include <unistd.h>
  18981. int
  18982. main ()
  18983. {
  18984. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  18985. int fd0, fd1;
  18986. struct timeval tv = { 0, };
  18987. struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
  18988. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  18989. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  18990. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  18991. FD_SET(fd0, (fd_set *) &fds);
  18992. FD_SET(fd1, (fd_set *) &fds);
  18993. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  18994. exit(0)
  18995. ;
  18996. return 0;
  18997. }
  18998. _ACEOF
  18999. rm -f conftest$ac_exeext
  19000. if { (ac_try="$ac_link"
  19001. case "(($ac_try" in
  19002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19003. *) ac_try_echo=$ac_try;;
  19004. esac
  19005. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19006. $as_echo "$ac_try_echo") >&5
  19007. (eval "$ac_link") 2>&5
  19008. ac_status=$?
  19009. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19010. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19011. { (case "(($ac_try" in
  19012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19013. *) ac_try_echo=$ac_try;;
  19014. esac
  19015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19016. $as_echo "$ac_try_echo") >&5
  19017. (eval "$ac_try") 2>&5
  19018. ac_status=$?
  19019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19020. (exit $ac_status); }; }; then
  19021. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19022. $as_echo "yes" >&6; }
  19023. cat >>confdefs.h <<\_ACEOF
  19024. #define HAVE_VARIABLE_FDSET 1
  19025. _ACEOF
  19026. else
  19027. $as_echo "$as_me: program exited with status $ac_status" >&5
  19028. $as_echo "$as_me: failed program was:" >&5
  19029. sed 's/^/| /' conftest.$ac_ext >&5
  19030. ( exit $ac_status )
  19031. { $as_echo "$as_me:$LINENO: result: no" >&5
  19032. $as_echo "no" >&6; }
  19033. fi
  19034. rm -rf conftest.dSYM
  19035. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19036. fi
  19037. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  19038. if test "$cross_compiling" = yes; then
  19039. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19040. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19041. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19042. See \`config.log' for more details." >&5
  19043. $as_echo "$as_me: error: cannot run test program while cross compiling
  19044. See \`config.log' for more details." >&2;}
  19045. { (exit 1); exit 1; }; }; }
  19046. else
  19047. cat >conftest.$ac_ext <<_ACEOF
  19048. /* confdefs.h. */
  19049. _ACEOF
  19050. cat confdefs.h >>conftest.$ac_ext
  19051. cat >>conftest.$ac_ext <<_ACEOF
  19052. /* end confdefs.h. */
  19053. #include <unistd.h>
  19054. #include <sys/types.h>
  19055. #include <stdlib.h>
  19056. int
  19057. main ()
  19058. {
  19059. if (getuid() != 0) { exit(1); }
  19060. ;
  19061. return 0;
  19062. }
  19063. _ACEOF
  19064. rm -f conftest$ac_exeext
  19065. if { (ac_try="$ac_link"
  19066. case "(($ac_try" in
  19067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19068. *) ac_try_echo=$ac_try;;
  19069. esac
  19070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19071. $as_echo "$ac_try_echo") >&5
  19072. (eval "$ac_link") 2>&5
  19073. ac_status=$?
  19074. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19075. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19076. { (case "(($ac_try" in
  19077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19078. *) ac_try_echo=$ac_try;;
  19079. esac
  19080. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19081. $as_echo "$ac_try_echo") >&5
  19082. (eval "$ac_try") 2>&5
  19083. ac_status=$?
  19084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19085. (exit $ac_status); }; }; then
  19086. cat >>confdefs.h <<\_ACEOF
  19087. #define CONFIGURE_RAN_AS_ROOT 1
  19088. _ACEOF
  19089. else
  19090. $as_echo "$as_me: program exited with status $ac_status" >&5
  19091. $as_echo "$as_me: failed program was:" >&5
  19092. sed 's/^/| /' conftest.$ac_ext >&5
  19093. fi
  19094. rm -rf conftest.dSYM
  19095. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19096. fi
  19097. fi
  19098. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
  19099. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  19100. saved_CFLAGS="$CFLAGS"
  19101. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19102. if test "x" = "x"
  19103. then
  19104. cat >conftest.$ac_ext <<_ACEOF
  19105. /* confdefs.h. */
  19106. _ACEOF
  19107. cat confdefs.h >>conftest.$ac_ext
  19108. cat >>conftest.$ac_ext <<_ACEOF
  19109. /* end confdefs.h. */
  19110. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  19111. int
  19112. main ()
  19113. {
  19114. ;
  19115. return 0;
  19116. }
  19117. _ACEOF
  19118. rm -f conftest.$ac_objext
  19119. if { (ac_try="$ac_compile"
  19120. case "(($ac_try" in
  19121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19122. *) ac_try_echo=$ac_try;;
  19123. esac
  19124. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19125. $as_echo "$ac_try_echo") >&5
  19126. (eval "$ac_compile") 2>conftest.er1
  19127. ac_status=$?
  19128. grep -v '^ *+' conftest.er1 >conftest.err
  19129. rm -f conftest.er1
  19130. cat conftest.err >&5
  19131. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19132. (exit $ac_status); } && {
  19133. test -z "$ac_c_werror_flag" ||
  19134. test ! -s conftest.err
  19135. } && test -s conftest.$ac_objext; then
  19136. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19137. $as_echo "yes" >&6; }
  19138. cat >>confdefs.h <<_ACEOF
  19139. #define HAVE_ATTRIBUTE_pure 1
  19140. _ACEOF
  19141. else
  19142. $as_echo "$as_me: failed program was:" >&5
  19143. sed 's/^/| /' conftest.$ac_ext >&5
  19144. { $as_echo "$as_me:$LINENO: result: no" >&5
  19145. $as_echo "no" >&6; }
  19146. fi
  19147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19148. else
  19149. cat >conftest.$ac_ext <<_ACEOF
  19150. /* confdefs.h. */
  19151. _ACEOF
  19152. cat confdefs.h >>conftest.$ac_ext
  19153. cat >>conftest.$ac_ext <<_ACEOF
  19154. /* end confdefs.h. */
  19155. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19156. int
  19157. main ()
  19158. {
  19159. ;
  19160. return 0;
  19161. }
  19162. _ACEOF
  19163. rm -f conftest.$ac_objext
  19164. if { (ac_try="$ac_compile"
  19165. case "(($ac_try" in
  19166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19167. *) ac_try_echo=$ac_try;;
  19168. esac
  19169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19170. $as_echo "$ac_try_echo") >&5
  19171. (eval "$ac_compile") 2>conftest.er1
  19172. ac_status=$?
  19173. grep -v '^ *+' conftest.er1 >conftest.err
  19174. rm -f conftest.er1
  19175. cat conftest.err >&5
  19176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19177. (exit $ac_status); } && {
  19178. test -z "$ac_c_werror_flag" ||
  19179. test ! -s conftest.err
  19180. } && test -s conftest.$ac_objext; then
  19181. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19182. $as_echo "yes" >&6; }
  19183. cat >>confdefs.h <<_ACEOF
  19184. #define HAVE_ATTRIBUTE_pure 1
  19185. _ACEOF
  19186. else
  19187. $as_echo "$as_me: failed program was:" >&5
  19188. sed 's/^/| /' conftest.$ac_ext >&5
  19189. { $as_echo "$as_me:$LINENO: result: no" >&5
  19190. $as_echo "no" >&6; }
  19191. fi
  19192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19193. fi
  19194. CFLAGS="$saved_CFLAGS"
  19195. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
  19196. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  19197. saved_CFLAGS="$CFLAGS"
  19198. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19199. if test "x" = "x"
  19200. then
  19201. cat >conftest.$ac_ext <<_ACEOF
  19202. /* confdefs.h. */
  19203. _ACEOF
  19204. cat confdefs.h >>conftest.$ac_ext
  19205. cat >>conftest.$ac_ext <<_ACEOF
  19206. /* end confdefs.h. */
  19207. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  19208. int
  19209. main ()
  19210. {
  19211. ;
  19212. return 0;
  19213. }
  19214. _ACEOF
  19215. rm -f conftest.$ac_objext
  19216. if { (ac_try="$ac_compile"
  19217. case "(($ac_try" in
  19218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19219. *) ac_try_echo=$ac_try;;
  19220. esac
  19221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19222. $as_echo "$ac_try_echo") >&5
  19223. (eval "$ac_compile") 2>conftest.er1
  19224. ac_status=$?
  19225. grep -v '^ *+' conftest.er1 >conftest.err
  19226. rm -f conftest.er1
  19227. cat conftest.err >&5
  19228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19229. (exit $ac_status); } && {
  19230. test -z "$ac_c_werror_flag" ||
  19231. test ! -s conftest.err
  19232. } && test -s conftest.$ac_objext; then
  19233. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19234. $as_echo "yes" >&6; }
  19235. cat >>confdefs.h <<_ACEOF
  19236. #define HAVE_ATTRIBUTE_malloc 1
  19237. _ACEOF
  19238. else
  19239. $as_echo "$as_me: failed program was:" >&5
  19240. sed 's/^/| /' conftest.$ac_ext >&5
  19241. { $as_echo "$as_me:$LINENO: result: no" >&5
  19242. $as_echo "no" >&6; }
  19243. fi
  19244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19245. else
  19246. cat >conftest.$ac_ext <<_ACEOF
  19247. /* confdefs.h. */
  19248. _ACEOF
  19249. cat confdefs.h >>conftest.$ac_ext
  19250. cat >>conftest.$ac_ext <<_ACEOF
  19251. /* end confdefs.h. */
  19252. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19253. int
  19254. main ()
  19255. {
  19256. ;
  19257. return 0;
  19258. }
  19259. _ACEOF
  19260. rm -f conftest.$ac_objext
  19261. if { (ac_try="$ac_compile"
  19262. case "(($ac_try" in
  19263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19264. *) ac_try_echo=$ac_try;;
  19265. esac
  19266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19267. $as_echo "$ac_try_echo") >&5
  19268. (eval "$ac_compile") 2>conftest.er1
  19269. ac_status=$?
  19270. grep -v '^ *+' conftest.er1 >conftest.err
  19271. rm -f conftest.er1
  19272. cat conftest.err >&5
  19273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19274. (exit $ac_status); } && {
  19275. test -z "$ac_c_werror_flag" ||
  19276. test ! -s conftest.err
  19277. } && test -s conftest.$ac_objext; then
  19278. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19279. $as_echo "yes" >&6; }
  19280. cat >>confdefs.h <<_ACEOF
  19281. #define HAVE_ATTRIBUTE_malloc 1
  19282. _ACEOF
  19283. else
  19284. $as_echo "$as_me: failed program was:" >&5
  19285. sed 's/^/| /' conftest.$ac_ext >&5
  19286. { $as_echo "$as_me:$LINENO: result: no" >&5
  19287. $as_echo "no" >&6; }
  19288. fi
  19289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19290. fi
  19291. CFLAGS="$saved_CFLAGS"
  19292. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
  19293. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  19294. saved_CFLAGS="$CFLAGS"
  19295. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19296. if test "x" = "x"
  19297. then
  19298. cat >conftest.$ac_ext <<_ACEOF
  19299. /* confdefs.h. */
  19300. _ACEOF
  19301. cat confdefs.h >>conftest.$ac_ext
  19302. cat >>conftest.$ac_ext <<_ACEOF
  19303. /* end confdefs.h. */
  19304. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  19305. int
  19306. main ()
  19307. {
  19308. ;
  19309. return 0;
  19310. }
  19311. _ACEOF
  19312. rm -f conftest.$ac_objext
  19313. if { (ac_try="$ac_compile"
  19314. case "(($ac_try" in
  19315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19316. *) ac_try_echo=$ac_try;;
  19317. esac
  19318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19319. $as_echo "$ac_try_echo") >&5
  19320. (eval "$ac_compile") 2>conftest.er1
  19321. ac_status=$?
  19322. grep -v '^ *+' conftest.er1 >conftest.err
  19323. rm -f conftest.er1
  19324. cat conftest.err >&5
  19325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19326. (exit $ac_status); } && {
  19327. test -z "$ac_c_werror_flag" ||
  19328. test ! -s conftest.err
  19329. } && test -s conftest.$ac_objext; then
  19330. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19331. $as_echo "yes" >&6; }
  19332. cat >>confdefs.h <<_ACEOF
  19333. #define HAVE_ATTRIBUTE_const 1
  19334. _ACEOF
  19335. else
  19336. $as_echo "$as_me: failed program was:" >&5
  19337. sed 's/^/| /' conftest.$ac_ext >&5
  19338. { $as_echo "$as_me:$LINENO: result: no" >&5
  19339. $as_echo "no" >&6; }
  19340. fi
  19341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19342. else
  19343. cat >conftest.$ac_ext <<_ACEOF
  19344. /* confdefs.h. */
  19345. _ACEOF
  19346. cat confdefs.h >>conftest.$ac_ext
  19347. cat >>conftest.$ac_ext <<_ACEOF
  19348. /* end confdefs.h. */
  19349. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19350. int
  19351. main ()
  19352. {
  19353. ;
  19354. return 0;
  19355. }
  19356. _ACEOF
  19357. rm -f conftest.$ac_objext
  19358. if { (ac_try="$ac_compile"
  19359. case "(($ac_try" in
  19360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19361. *) ac_try_echo=$ac_try;;
  19362. esac
  19363. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19364. $as_echo "$ac_try_echo") >&5
  19365. (eval "$ac_compile") 2>conftest.er1
  19366. ac_status=$?
  19367. grep -v '^ *+' conftest.er1 >conftest.err
  19368. rm -f conftest.er1
  19369. cat conftest.err >&5
  19370. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19371. (exit $ac_status); } && {
  19372. test -z "$ac_c_werror_flag" ||
  19373. test ! -s conftest.err
  19374. } && test -s conftest.$ac_objext; then
  19375. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19376. $as_echo "yes" >&6; }
  19377. cat >>confdefs.h <<_ACEOF
  19378. #define HAVE_ATTRIBUTE_const 1
  19379. _ACEOF
  19380. else
  19381. $as_echo "$as_me: failed program was:" >&5
  19382. sed 's/^/| /' conftest.$ac_ext >&5
  19383. { $as_echo "$as_me:$LINENO: result: no" >&5
  19384. $as_echo "no" >&6; }
  19385. fi
  19386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19387. fi
  19388. CFLAGS="$saved_CFLAGS"
  19389. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
  19390. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  19391. saved_CFLAGS="$CFLAGS"
  19392. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19393. if test "x" = "x"
  19394. then
  19395. cat >conftest.$ac_ext <<_ACEOF
  19396. /* confdefs.h. */
  19397. _ACEOF
  19398. cat confdefs.h >>conftest.$ac_ext
  19399. cat >>conftest.$ac_ext <<_ACEOF
  19400. /* end confdefs.h. */
  19401. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  19402. int
  19403. main ()
  19404. {
  19405. ;
  19406. return 0;
  19407. }
  19408. _ACEOF
  19409. rm -f conftest.$ac_objext
  19410. if { (ac_try="$ac_compile"
  19411. case "(($ac_try" in
  19412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19413. *) ac_try_echo=$ac_try;;
  19414. esac
  19415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19416. $as_echo "$ac_try_echo") >&5
  19417. (eval "$ac_compile") 2>conftest.er1
  19418. ac_status=$?
  19419. grep -v '^ *+' conftest.er1 >conftest.err
  19420. rm -f conftest.er1
  19421. cat conftest.err >&5
  19422. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19423. (exit $ac_status); } && {
  19424. test -z "$ac_c_werror_flag" ||
  19425. test ! -s conftest.err
  19426. } && test -s conftest.$ac_objext; then
  19427. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19428. $as_echo "yes" >&6; }
  19429. cat >>confdefs.h <<_ACEOF
  19430. #define HAVE_ATTRIBUTE_unused 1
  19431. _ACEOF
  19432. else
  19433. $as_echo "$as_me: failed program was:" >&5
  19434. sed 's/^/| /' conftest.$ac_ext >&5
  19435. { $as_echo "$as_me:$LINENO: result: no" >&5
  19436. $as_echo "no" >&6; }
  19437. fi
  19438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19439. else
  19440. cat >conftest.$ac_ext <<_ACEOF
  19441. /* confdefs.h. */
  19442. _ACEOF
  19443. cat confdefs.h >>conftest.$ac_ext
  19444. cat >>conftest.$ac_ext <<_ACEOF
  19445. /* end confdefs.h. */
  19446. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19447. int
  19448. main ()
  19449. {
  19450. ;
  19451. return 0;
  19452. }
  19453. _ACEOF
  19454. rm -f conftest.$ac_objext
  19455. if { (ac_try="$ac_compile"
  19456. case "(($ac_try" in
  19457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19458. *) ac_try_echo=$ac_try;;
  19459. esac
  19460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19461. $as_echo "$ac_try_echo") >&5
  19462. (eval "$ac_compile") 2>conftest.er1
  19463. ac_status=$?
  19464. grep -v '^ *+' conftest.er1 >conftest.err
  19465. rm -f conftest.er1
  19466. cat conftest.err >&5
  19467. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19468. (exit $ac_status); } && {
  19469. test -z "$ac_c_werror_flag" ||
  19470. test ! -s conftest.err
  19471. } && test -s conftest.$ac_objext; then
  19472. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19473. $as_echo "yes" >&6; }
  19474. cat >>confdefs.h <<_ACEOF
  19475. #define HAVE_ATTRIBUTE_unused 1
  19476. _ACEOF
  19477. else
  19478. $as_echo "$as_me: failed program was:" >&5
  19479. sed 's/^/| /' conftest.$ac_ext >&5
  19480. { $as_echo "$as_me:$LINENO: result: no" >&5
  19481. $as_echo "no" >&6; }
  19482. fi
  19483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19484. fi
  19485. CFLAGS="$saved_CFLAGS"
  19486. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
  19487. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  19488. saved_CFLAGS="$CFLAGS"
  19489. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19490. if test "x" = "x"
  19491. then
  19492. cat >conftest.$ac_ext <<_ACEOF
  19493. /* confdefs.h. */
  19494. _ACEOF
  19495. cat confdefs.h >>conftest.$ac_ext
  19496. cat >>conftest.$ac_ext <<_ACEOF
  19497. /* end confdefs.h. */
  19498. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  19499. int
  19500. main ()
  19501. {
  19502. ;
  19503. return 0;
  19504. }
  19505. _ACEOF
  19506. rm -f conftest.$ac_objext
  19507. if { (ac_try="$ac_compile"
  19508. case "(($ac_try" in
  19509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19510. *) ac_try_echo=$ac_try;;
  19511. esac
  19512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19513. $as_echo "$ac_try_echo") >&5
  19514. (eval "$ac_compile") 2>conftest.er1
  19515. ac_status=$?
  19516. grep -v '^ *+' conftest.er1 >conftest.err
  19517. rm -f conftest.er1
  19518. cat conftest.err >&5
  19519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19520. (exit $ac_status); } && {
  19521. test -z "$ac_c_werror_flag" ||
  19522. test ! -s conftest.err
  19523. } && test -s conftest.$ac_objext; then
  19524. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19525. $as_echo "yes" >&6; }
  19526. cat >>confdefs.h <<_ACEOF
  19527. #define HAVE_ATTRIBUTE_always_inline 1
  19528. _ACEOF
  19529. else
  19530. $as_echo "$as_me: failed program was:" >&5
  19531. sed 's/^/| /' conftest.$ac_ext >&5
  19532. { $as_echo "$as_me:$LINENO: result: no" >&5
  19533. $as_echo "no" >&6; }
  19534. fi
  19535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19536. else
  19537. cat >conftest.$ac_ext <<_ACEOF
  19538. /* confdefs.h. */
  19539. _ACEOF
  19540. cat confdefs.h >>conftest.$ac_ext
  19541. cat >>conftest.$ac_ext <<_ACEOF
  19542. /* end confdefs.h. */
  19543. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19544. int
  19545. main ()
  19546. {
  19547. ;
  19548. return 0;
  19549. }
  19550. _ACEOF
  19551. rm -f conftest.$ac_objext
  19552. if { (ac_try="$ac_compile"
  19553. case "(($ac_try" in
  19554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19555. *) ac_try_echo=$ac_try;;
  19556. esac
  19557. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19558. $as_echo "$ac_try_echo") >&5
  19559. (eval "$ac_compile") 2>conftest.er1
  19560. ac_status=$?
  19561. grep -v '^ *+' conftest.er1 >conftest.err
  19562. rm -f conftest.er1
  19563. cat conftest.err >&5
  19564. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19565. (exit $ac_status); } && {
  19566. test -z "$ac_c_werror_flag" ||
  19567. test ! -s conftest.err
  19568. } && test -s conftest.$ac_objext; then
  19569. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19570. $as_echo "yes" >&6; }
  19571. cat >>confdefs.h <<_ACEOF
  19572. #define HAVE_ATTRIBUTE_always_inline 1
  19573. _ACEOF
  19574. else
  19575. $as_echo "$as_me: failed program was:" >&5
  19576. sed 's/^/| /' conftest.$ac_ext >&5
  19577. { $as_echo "$as_me:$LINENO: result: no" >&5
  19578. $as_echo "no" >&6; }
  19579. fi
  19580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19581. fi
  19582. CFLAGS="$saved_CFLAGS"
  19583. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
  19584. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  19585. saved_CFLAGS="$CFLAGS"
  19586. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19587. if test "x" = "x"
  19588. then
  19589. cat >conftest.$ac_ext <<_ACEOF
  19590. /* confdefs.h. */
  19591. _ACEOF
  19592. cat confdefs.h >>conftest.$ac_ext
  19593. cat >>conftest.$ac_ext <<_ACEOF
  19594. /* end confdefs.h. */
  19595. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  19596. int
  19597. main ()
  19598. {
  19599. ;
  19600. return 0;
  19601. }
  19602. _ACEOF
  19603. rm -f conftest.$ac_objext
  19604. if { (ac_try="$ac_compile"
  19605. case "(($ac_try" in
  19606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19607. *) ac_try_echo=$ac_try;;
  19608. esac
  19609. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19610. $as_echo "$ac_try_echo") >&5
  19611. (eval "$ac_compile") 2>conftest.er1
  19612. ac_status=$?
  19613. grep -v '^ *+' conftest.er1 >conftest.err
  19614. rm -f conftest.er1
  19615. cat conftest.err >&5
  19616. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19617. (exit $ac_status); } && {
  19618. test -z "$ac_c_werror_flag" ||
  19619. test ! -s conftest.err
  19620. } && test -s conftest.$ac_objext; then
  19621. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19622. $as_echo "yes" >&6; }
  19623. cat >>confdefs.h <<_ACEOF
  19624. #define HAVE_ATTRIBUTE_deprecated 1
  19625. _ACEOF
  19626. else
  19627. $as_echo "$as_me: failed program was:" >&5
  19628. sed 's/^/| /' conftest.$ac_ext >&5
  19629. { $as_echo "$as_me:$LINENO: result: no" >&5
  19630. $as_echo "no" >&6; }
  19631. fi
  19632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19633. else
  19634. cat >conftest.$ac_ext <<_ACEOF
  19635. /* confdefs.h. */
  19636. _ACEOF
  19637. cat confdefs.h >>conftest.$ac_ext
  19638. cat >>conftest.$ac_ext <<_ACEOF
  19639. /* end confdefs.h. */
  19640. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19641. int
  19642. main ()
  19643. {
  19644. ;
  19645. return 0;
  19646. }
  19647. _ACEOF
  19648. rm -f conftest.$ac_objext
  19649. if { (ac_try="$ac_compile"
  19650. case "(($ac_try" in
  19651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19652. *) ac_try_echo=$ac_try;;
  19653. esac
  19654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19655. $as_echo "$ac_try_echo") >&5
  19656. (eval "$ac_compile") 2>conftest.er1
  19657. ac_status=$?
  19658. grep -v '^ *+' conftest.er1 >conftest.err
  19659. rm -f conftest.er1
  19660. cat conftest.err >&5
  19661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19662. (exit $ac_status); } && {
  19663. test -z "$ac_c_werror_flag" ||
  19664. test ! -s conftest.err
  19665. } && test -s conftest.$ac_objext; then
  19666. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19667. $as_echo "yes" >&6; }
  19668. cat >>confdefs.h <<_ACEOF
  19669. #define HAVE_ATTRIBUTE_deprecated 1
  19670. _ACEOF
  19671. else
  19672. $as_echo "$as_me: failed program was:" >&5
  19673. sed 's/^/| /' conftest.$ac_ext >&5
  19674. { $as_echo "$as_me:$LINENO: result: no" >&5
  19675. $as_echo "no" >&6; }
  19676. fi
  19677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19678. fi
  19679. CFLAGS="$saved_CFLAGS"
  19680. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
  19681. $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
  19682. saved_CFLAGS="$CFLAGS"
  19683. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19684. if test "x" = "x"
  19685. then
  19686. cat >conftest.$ac_ext <<_ACEOF
  19687. /* confdefs.h. */
  19688. _ACEOF
  19689. cat confdefs.h >>conftest.$ac_ext
  19690. cat >>conftest.$ac_ext <<_ACEOF
  19691. /* end confdefs.h. */
  19692. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  19693. int
  19694. main ()
  19695. {
  19696. ;
  19697. return 0;
  19698. }
  19699. _ACEOF
  19700. rm -f conftest.$ac_objext
  19701. if { (ac_try="$ac_compile"
  19702. case "(($ac_try" in
  19703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19704. *) ac_try_echo=$ac_try;;
  19705. esac
  19706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19707. $as_echo "$ac_try_echo") >&5
  19708. (eval "$ac_compile") 2>conftest.er1
  19709. ac_status=$?
  19710. grep -v '^ *+' conftest.er1 >conftest.err
  19711. rm -f conftest.er1
  19712. cat conftest.err >&5
  19713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19714. (exit $ac_status); } && {
  19715. test -z "$ac_c_werror_flag" ||
  19716. test ! -s conftest.err
  19717. } && test -s conftest.$ac_objext; then
  19718. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19719. $as_echo "yes" >&6; }
  19720. cat >>confdefs.h <<_ACEOF
  19721. #define HAVE_ATTRIBUTE_sentinel 1
  19722. _ACEOF
  19723. else
  19724. $as_echo "$as_me: failed program was:" >&5
  19725. sed 's/^/| /' conftest.$ac_ext >&5
  19726. { $as_echo "$as_me:$LINENO: result: no" >&5
  19727. $as_echo "no" >&6; }
  19728. fi
  19729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19730. else
  19731. cat >conftest.$ac_ext <<_ACEOF
  19732. /* confdefs.h. */
  19733. _ACEOF
  19734. cat confdefs.h >>conftest.$ac_ext
  19735. cat >>conftest.$ac_ext <<_ACEOF
  19736. /* end confdefs.h. */
  19737. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19738. int
  19739. main ()
  19740. {
  19741. ;
  19742. return 0;
  19743. }
  19744. _ACEOF
  19745. rm -f conftest.$ac_objext
  19746. if { (ac_try="$ac_compile"
  19747. case "(($ac_try" in
  19748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19749. *) ac_try_echo=$ac_try;;
  19750. esac
  19751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19752. $as_echo "$ac_try_echo") >&5
  19753. (eval "$ac_compile") 2>conftest.er1
  19754. ac_status=$?
  19755. grep -v '^ *+' conftest.er1 >conftest.err
  19756. rm -f conftest.er1
  19757. cat conftest.err >&5
  19758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19759. (exit $ac_status); } && {
  19760. test -z "$ac_c_werror_flag" ||
  19761. test ! -s conftest.err
  19762. } && test -s conftest.$ac_objext; then
  19763. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19764. $as_echo "yes" >&6; }
  19765. cat >>confdefs.h <<_ACEOF
  19766. #define HAVE_ATTRIBUTE_sentinel 1
  19767. _ACEOF
  19768. else
  19769. $as_echo "$as_me: failed program was:" >&5
  19770. sed 's/^/| /' conftest.$ac_ext >&5
  19771. { $as_echo "$as_me:$LINENO: result: no" >&5
  19772. $as_echo "no" >&6; }
  19773. fi
  19774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19775. fi
  19776. CFLAGS="$saved_CFLAGS"
  19777. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute warn_unused_result' support" >&5
  19778. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  19779. saved_CFLAGS="$CFLAGS"
  19780. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19781. if test "x" = "x"
  19782. then
  19783. cat >conftest.$ac_ext <<_ACEOF
  19784. /* confdefs.h. */
  19785. _ACEOF
  19786. cat confdefs.h >>conftest.$ac_ext
  19787. cat >>conftest.$ac_ext <<_ACEOF
  19788. /* end confdefs.h. */
  19789. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  19790. int
  19791. main ()
  19792. {
  19793. ;
  19794. return 0;
  19795. }
  19796. _ACEOF
  19797. rm -f conftest.$ac_objext
  19798. if { (ac_try="$ac_compile"
  19799. case "(($ac_try" in
  19800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19801. *) ac_try_echo=$ac_try;;
  19802. esac
  19803. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19804. $as_echo "$ac_try_echo") >&5
  19805. (eval "$ac_compile") 2>conftest.er1
  19806. ac_status=$?
  19807. grep -v '^ *+' conftest.er1 >conftest.err
  19808. rm -f conftest.er1
  19809. cat conftest.err >&5
  19810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19811. (exit $ac_status); } && {
  19812. test -z "$ac_c_werror_flag" ||
  19813. test ! -s conftest.err
  19814. } && test -s conftest.$ac_objext; then
  19815. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19816. $as_echo "yes" >&6; }
  19817. cat >>confdefs.h <<_ACEOF
  19818. #define HAVE_ATTRIBUTE_warn_unused_result 1
  19819. _ACEOF
  19820. else
  19821. $as_echo "$as_me: failed program was:" >&5
  19822. sed 's/^/| /' conftest.$ac_ext >&5
  19823. { $as_echo "$as_me:$LINENO: result: no" >&5
  19824. $as_echo "no" >&6; }
  19825. fi
  19826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19827. else
  19828. cat >conftest.$ac_ext <<_ACEOF
  19829. /* confdefs.h. */
  19830. _ACEOF
  19831. cat confdefs.h >>conftest.$ac_ext
  19832. cat >>conftest.$ac_ext <<_ACEOF
  19833. /* end confdefs.h. */
  19834. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19835. int
  19836. main ()
  19837. {
  19838. ;
  19839. return 0;
  19840. }
  19841. _ACEOF
  19842. rm -f conftest.$ac_objext
  19843. if { (ac_try="$ac_compile"
  19844. case "(($ac_try" in
  19845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19846. *) ac_try_echo=$ac_try;;
  19847. esac
  19848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19849. $as_echo "$ac_try_echo") >&5
  19850. (eval "$ac_compile") 2>conftest.er1
  19851. ac_status=$?
  19852. grep -v '^ *+' conftest.er1 >conftest.err
  19853. rm -f conftest.er1
  19854. cat conftest.err >&5
  19855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19856. (exit $ac_status); } && {
  19857. test -z "$ac_c_werror_flag" ||
  19858. test ! -s conftest.err
  19859. } && test -s conftest.$ac_objext; then
  19860. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19861. $as_echo "yes" >&6; }
  19862. cat >>confdefs.h <<_ACEOF
  19863. #define HAVE_ATTRIBUTE_warn_unused_result 1
  19864. _ACEOF
  19865. else
  19866. $as_echo "$as_me: failed program was:" >&5
  19867. sed 's/^/| /' conftest.$ac_ext >&5
  19868. { $as_echo "$as_me:$LINENO: result: no" >&5
  19869. $as_echo "no" >&6; }
  19870. fi
  19871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19872. fi
  19873. CFLAGS="$saved_CFLAGS"
  19874. # Support weak symbols on a platform specific basis. The Mac OS X
  19875. # (Darwin) support must be isolated from the other platforms because
  19876. # it has caused other platforms to fail.
  19877. #
  19878. case "${OSARCH}" in
  19879. darwin*)
  19880. # Allow weak symbol support on Darwin platforms only because there
  19881. # is active community support for it.
  19882. # However, Darwin seems to break weak symbols for each new version.
  19883. #
  19884. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weak_import' support" >&5
  19885. $as_echo_n "checking for compiler 'attribute weak_import' support... " >&6; }
  19886. saved_CFLAGS="$CFLAGS"
  19887. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19888. PBX_WEAKREF=0
  19889. if test "x" = "x"
  19890. then
  19891. cat >conftest.$ac_ext <<_ACEOF
  19892. /* confdefs.h. */
  19893. _ACEOF
  19894. cat confdefs.h >>conftest.$ac_ext
  19895. cat >>conftest.$ac_ext <<_ACEOF
  19896. /* end confdefs.h. */
  19897. void __attribute__((weak_import)) *test(void *muffin, ...) {return (void *) 0;}
  19898. int
  19899. main ()
  19900. {
  19901. ;
  19902. return 0;
  19903. }
  19904. _ACEOF
  19905. rm -f conftest.$ac_objext
  19906. if { (ac_try="$ac_compile"
  19907. case "(($ac_try" in
  19908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19909. *) ac_try_echo=$ac_try;;
  19910. esac
  19911. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19912. $as_echo "$ac_try_echo") >&5
  19913. (eval "$ac_compile") 2>conftest.er1
  19914. ac_status=$?
  19915. grep -v '^ *+' conftest.er1 >conftest.err
  19916. rm -f conftest.er1
  19917. cat conftest.err >&5
  19918. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19919. (exit $ac_status); } && {
  19920. test -z "$ac_c_werror_flag" ||
  19921. test ! -s conftest.err
  19922. } && test -s conftest.$ac_objext; then
  19923. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19924. $as_echo "yes" >&6; }
  19925. PBX_WEAKREF=1
  19926. cat >>confdefs.h <<_ACEOF
  19927. #define HAVE_ATTRIBUTE_weak_import 1
  19928. _ACEOF
  19929. else
  19930. $as_echo "$as_me: failed program was:" >&5
  19931. sed 's/^/| /' conftest.$ac_ext >&5
  19932. { $as_echo "$as_me:$LINENO: result: no" >&5
  19933. $as_echo "no" >&6; }
  19934. fi
  19935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19936. else
  19937. cat >conftest.$ac_ext <<_ACEOF
  19938. /* confdefs.h. */
  19939. _ACEOF
  19940. cat confdefs.h >>conftest.$ac_ext
  19941. cat >>conftest.$ac_ext <<_ACEOF
  19942. /* end confdefs.h. */
  19943. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19944. int
  19945. main ()
  19946. {
  19947. ;
  19948. return 0;
  19949. }
  19950. _ACEOF
  19951. rm -f conftest.$ac_objext
  19952. if { (ac_try="$ac_compile"
  19953. case "(($ac_try" in
  19954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19955. *) ac_try_echo=$ac_try;;
  19956. esac
  19957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19958. $as_echo "$ac_try_echo") >&5
  19959. (eval "$ac_compile") 2>conftest.er1
  19960. ac_status=$?
  19961. grep -v '^ *+' conftest.er1 >conftest.err
  19962. rm -f conftest.er1
  19963. cat conftest.err >&5
  19964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19965. (exit $ac_status); } && {
  19966. test -z "$ac_c_werror_flag" ||
  19967. test ! -s conftest.err
  19968. } && test -s conftest.$ac_objext; then
  19969. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19970. $as_echo "yes" >&6; }
  19971. PBX_WEAKREF=1
  19972. cat >>confdefs.h <<_ACEOF
  19973. #define HAVE_ATTRIBUTE_weak_import 1
  19974. _ACEOF
  19975. else
  19976. $as_echo "$as_me: failed program was:" >&5
  19977. sed 's/^/| /' conftest.$ac_ext >&5
  19978. { $as_echo "$as_me:$LINENO: result: no" >&5
  19979. $as_echo "no" >&6; }
  19980. fi
  19981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19982. fi
  19983. CFLAGS="$saved_CFLAGS"
  19984. # Several other platforms including Linux have GCC versions that
  19985. # define the weak attribute. However, this attribute is only
  19986. # setup for use in the code by Darwin.
  19987. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weak' support" >&5
  19988. $as_echo_n "checking for compiler 'attribute weak' support... " >&6; }
  19989. saved_CFLAGS="$CFLAGS"
  19990. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19991. PBX_WEAKREF=0
  19992. if test "x" = "x"
  19993. then
  19994. cat >conftest.$ac_ext <<_ACEOF
  19995. /* confdefs.h. */
  19996. _ACEOF
  19997. cat confdefs.h >>conftest.$ac_ext
  19998. cat >>conftest.$ac_ext <<_ACEOF
  19999. /* end confdefs.h. */
  20000. void __attribute__((weak)) *test(void *muffin, ...) {return (void *) 0;}
  20001. int
  20002. main ()
  20003. {
  20004. ;
  20005. return 0;
  20006. }
  20007. _ACEOF
  20008. rm -f conftest.$ac_objext
  20009. if { (ac_try="$ac_compile"
  20010. case "(($ac_try" in
  20011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20012. *) ac_try_echo=$ac_try;;
  20013. esac
  20014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20015. $as_echo "$ac_try_echo") >&5
  20016. (eval "$ac_compile") 2>conftest.er1
  20017. ac_status=$?
  20018. grep -v '^ *+' conftest.er1 >conftest.err
  20019. rm -f conftest.er1
  20020. cat conftest.err >&5
  20021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20022. (exit $ac_status); } && {
  20023. test -z "$ac_c_werror_flag" ||
  20024. test ! -s conftest.err
  20025. } && test -s conftest.$ac_objext; then
  20026. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20027. $as_echo "yes" >&6; }
  20028. PBX_WEAKREF=1
  20029. cat >>confdefs.h <<_ACEOF
  20030. #define HAVE_ATTRIBUTE_weak 1
  20031. _ACEOF
  20032. else
  20033. $as_echo "$as_me: failed program was:" >&5
  20034. sed 's/^/| /' conftest.$ac_ext >&5
  20035. { $as_echo "$as_me:$LINENO: result: no" >&5
  20036. $as_echo "no" >&6; }
  20037. fi
  20038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20039. else
  20040. cat >conftest.$ac_ext <<_ACEOF
  20041. /* confdefs.h. */
  20042. _ACEOF
  20043. cat confdefs.h >>conftest.$ac_ext
  20044. cat >>conftest.$ac_ext <<_ACEOF
  20045. /* end confdefs.h. */
  20046. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20047. int
  20048. main ()
  20049. {
  20050. ;
  20051. return 0;
  20052. }
  20053. _ACEOF
  20054. rm -f conftest.$ac_objext
  20055. if { (ac_try="$ac_compile"
  20056. case "(($ac_try" in
  20057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20058. *) ac_try_echo=$ac_try;;
  20059. esac
  20060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20061. $as_echo "$ac_try_echo") >&5
  20062. (eval "$ac_compile") 2>conftest.er1
  20063. ac_status=$?
  20064. grep -v '^ *+' conftest.er1 >conftest.err
  20065. rm -f conftest.er1
  20066. cat conftest.err >&5
  20067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20068. (exit $ac_status); } && {
  20069. test -z "$ac_c_werror_flag" ||
  20070. test ! -s conftest.err
  20071. } && test -s conftest.$ac_objext; then
  20072. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20073. $as_echo "yes" >&6; }
  20074. PBX_WEAKREF=1
  20075. cat >>confdefs.h <<_ACEOF
  20076. #define HAVE_ATTRIBUTE_weak 1
  20077. _ACEOF
  20078. else
  20079. $as_echo "$as_me: failed program was:" >&5
  20080. sed 's/^/| /' conftest.$ac_ext >&5
  20081. { $as_echo "$as_me:$LINENO: result: no" >&5
  20082. $as_echo "no" >&6; }
  20083. fi
  20084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20085. fi
  20086. CFLAGS="$saved_CFLAGS"
  20087. ;;
  20088. linux-gnu)
  20089. # Primarily support weak symbols on Linux platforms.
  20090. #
  20091. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weakref' support" >&5
  20092. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  20093. saved_CFLAGS="$CFLAGS"
  20094. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20095. PBX_WEAKREF=0
  20096. if test "xweakref("foo")" = "x"
  20097. then
  20098. cat >conftest.$ac_ext <<_ACEOF
  20099. /* confdefs.h. */
  20100. _ACEOF
  20101. cat confdefs.h >>conftest.$ac_ext
  20102. cat >>conftest.$ac_ext <<_ACEOF
  20103. /* end confdefs.h. */
  20104. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  20105. int
  20106. main ()
  20107. {
  20108. ;
  20109. return 0;
  20110. }
  20111. _ACEOF
  20112. rm -f conftest.$ac_objext
  20113. if { (ac_try="$ac_compile"
  20114. case "(($ac_try" in
  20115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20116. *) ac_try_echo=$ac_try;;
  20117. esac
  20118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20119. $as_echo "$ac_try_echo") >&5
  20120. (eval "$ac_compile") 2>conftest.er1
  20121. ac_status=$?
  20122. grep -v '^ *+' conftest.er1 >conftest.err
  20123. rm -f conftest.er1
  20124. cat conftest.err >&5
  20125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20126. (exit $ac_status); } && {
  20127. test -z "$ac_c_werror_flag" ||
  20128. test ! -s conftest.err
  20129. } && test -s conftest.$ac_objext; then
  20130. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20131. $as_echo "yes" >&6; }
  20132. PBX_WEAKREF=1
  20133. cat >>confdefs.h <<_ACEOF
  20134. #define HAVE_ATTRIBUTE_weakref 1
  20135. _ACEOF
  20136. else
  20137. $as_echo "$as_me: failed program was:" >&5
  20138. sed 's/^/| /' conftest.$ac_ext >&5
  20139. { $as_echo "$as_me:$LINENO: result: no" >&5
  20140. $as_echo "no" >&6; }
  20141. fi
  20142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20143. else
  20144. cat >conftest.$ac_ext <<_ACEOF
  20145. /* confdefs.h. */
  20146. _ACEOF
  20147. cat confdefs.h >>conftest.$ac_ext
  20148. cat >>conftest.$ac_ext <<_ACEOF
  20149. /* end confdefs.h. */
  20150. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  20151. int
  20152. main ()
  20153. {
  20154. ;
  20155. return 0;
  20156. }
  20157. _ACEOF
  20158. rm -f conftest.$ac_objext
  20159. if { (ac_try="$ac_compile"
  20160. case "(($ac_try" in
  20161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20162. *) ac_try_echo=$ac_try;;
  20163. esac
  20164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20165. $as_echo "$ac_try_echo") >&5
  20166. (eval "$ac_compile") 2>conftest.er1
  20167. ac_status=$?
  20168. grep -v '^ *+' conftest.er1 >conftest.err
  20169. rm -f conftest.er1
  20170. cat conftest.err >&5
  20171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20172. (exit $ac_status); } && {
  20173. test -z "$ac_c_werror_flag" ||
  20174. test ! -s conftest.err
  20175. } && test -s conftest.$ac_objext; then
  20176. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20177. $as_echo "yes" >&6; }
  20178. PBX_WEAKREF=1
  20179. cat >>confdefs.h <<_ACEOF
  20180. #define HAVE_ATTRIBUTE_weakref 1
  20181. _ACEOF
  20182. else
  20183. $as_echo "$as_me: failed program was:" >&5
  20184. sed 's/^/| /' conftest.$ac_ext >&5
  20185. { $as_echo "$as_me:$LINENO: result: no" >&5
  20186. $as_echo "no" >&6; }
  20187. fi
  20188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20189. fi
  20190. CFLAGS="$saved_CFLAGS"
  20191. ;;
  20192. *)
  20193. # Allow weak symbols on other platforms. However, any problems
  20194. # with this feature on other platforms must be fixed by the
  20195. # community.
  20196. #
  20197. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weakref' support" >&5
  20198. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  20199. saved_CFLAGS="$CFLAGS"
  20200. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20201. PBX_WEAKREF=0
  20202. if test "xweakref("foo")" = "x"
  20203. then
  20204. cat >conftest.$ac_ext <<_ACEOF
  20205. /* confdefs.h. */
  20206. _ACEOF
  20207. cat confdefs.h >>conftest.$ac_ext
  20208. cat >>conftest.$ac_ext <<_ACEOF
  20209. /* end confdefs.h. */
  20210. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  20211. int
  20212. main ()
  20213. {
  20214. ;
  20215. return 0;
  20216. }
  20217. _ACEOF
  20218. rm -f conftest.$ac_objext
  20219. if { (ac_try="$ac_compile"
  20220. case "(($ac_try" in
  20221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20222. *) ac_try_echo=$ac_try;;
  20223. esac
  20224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20225. $as_echo "$ac_try_echo") >&5
  20226. (eval "$ac_compile") 2>conftest.er1
  20227. ac_status=$?
  20228. grep -v '^ *+' conftest.er1 >conftest.err
  20229. rm -f conftest.er1
  20230. cat conftest.err >&5
  20231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20232. (exit $ac_status); } && {
  20233. test -z "$ac_c_werror_flag" ||
  20234. test ! -s conftest.err
  20235. } && test -s conftest.$ac_objext; then
  20236. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20237. $as_echo "yes" >&6; }
  20238. PBX_WEAKREF=1
  20239. cat >>confdefs.h <<_ACEOF
  20240. #define HAVE_ATTRIBUTE_weakref 1
  20241. _ACEOF
  20242. else
  20243. $as_echo "$as_me: failed program was:" >&5
  20244. sed 's/^/| /' conftest.$ac_ext >&5
  20245. { $as_echo "$as_me:$LINENO: result: no" >&5
  20246. $as_echo "no" >&6; }
  20247. fi
  20248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20249. else
  20250. cat >conftest.$ac_ext <<_ACEOF
  20251. /* confdefs.h. */
  20252. _ACEOF
  20253. cat confdefs.h >>conftest.$ac_ext
  20254. cat >>conftest.$ac_ext <<_ACEOF
  20255. /* end confdefs.h. */
  20256. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  20257. int
  20258. main ()
  20259. {
  20260. ;
  20261. return 0;
  20262. }
  20263. _ACEOF
  20264. rm -f conftest.$ac_objext
  20265. if { (ac_try="$ac_compile"
  20266. case "(($ac_try" in
  20267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20268. *) ac_try_echo=$ac_try;;
  20269. esac
  20270. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20271. $as_echo "$ac_try_echo") >&5
  20272. (eval "$ac_compile") 2>conftest.er1
  20273. ac_status=$?
  20274. grep -v '^ *+' conftest.er1 >conftest.err
  20275. rm -f conftest.er1
  20276. cat conftest.err >&5
  20277. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20278. (exit $ac_status); } && {
  20279. test -z "$ac_c_werror_flag" ||
  20280. test ! -s conftest.err
  20281. } && test -s conftest.$ac_objext; then
  20282. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20283. $as_echo "yes" >&6; }
  20284. PBX_WEAKREF=1
  20285. cat >>confdefs.h <<_ACEOF
  20286. #define HAVE_ATTRIBUTE_weakref 1
  20287. _ACEOF
  20288. else
  20289. $as_echo "$as_me: failed program was:" >&5
  20290. sed 's/^/| /' conftest.$ac_ext >&5
  20291. { $as_echo "$as_me:$LINENO: result: no" >&5
  20292. $as_echo "no" >&6; }
  20293. fi
  20294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20295. fi
  20296. CFLAGS="$saved_CFLAGS"
  20297. ;;
  20298. esac
  20299. { $as_echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
  20300. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  20301. saved_CFLAGS="${CFLAGS}"
  20302. CFLAGS="${CFLAGS} -ffunction-sections"
  20303. cat >conftest.$ac_ext <<_ACEOF
  20304. /* confdefs.h. */
  20305. _ACEOF
  20306. cat confdefs.h >>conftest.$ac_ext
  20307. cat >>conftest.$ac_ext <<_ACEOF
  20308. /* end confdefs.h. */
  20309. int
  20310. main ()
  20311. {
  20312. int x = 1;
  20313. ;
  20314. return 0;
  20315. }
  20316. _ACEOF
  20317. rm -f conftest.$ac_objext
  20318. if { (ac_try="$ac_compile"
  20319. case "(($ac_try" in
  20320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20321. *) ac_try_echo=$ac_try;;
  20322. esac
  20323. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20324. $as_echo "$ac_try_echo") >&5
  20325. (eval "$ac_compile") 2>conftest.er1
  20326. ac_status=$?
  20327. grep -v '^ *+' conftest.er1 >conftest.err
  20328. rm -f conftest.er1
  20329. cat conftest.err >&5
  20330. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20331. (exit $ac_status); } && {
  20332. test -z "$ac_c_werror_flag" ||
  20333. test ! -s conftest.err
  20334. } && test -s conftest.$ac_objext; then
  20335. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20336. $as_echo "yes" >&6; }
  20337. saved_LDFLAGS="${LDFLAGS}"
  20338. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  20339. { $as_echo "$as_me:$LINENO: checking for --gc-sections support" >&5
  20340. $as_echo_n "checking for --gc-sections support... " >&6; }
  20341. cat >conftest.$ac_ext <<_ACEOF
  20342. /* confdefs.h. */
  20343. _ACEOF
  20344. cat confdefs.h >>conftest.$ac_ext
  20345. cat >>conftest.$ac_ext <<_ACEOF
  20346. /* end confdefs.h. */
  20347. int
  20348. main ()
  20349. {
  20350. int x = 1;
  20351. ;
  20352. return 0;
  20353. }
  20354. _ACEOF
  20355. rm -f conftest.$ac_objext conftest$ac_exeext
  20356. if { (ac_try="$ac_link"
  20357. case "(($ac_try" in
  20358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20359. *) ac_try_echo=$ac_try;;
  20360. esac
  20361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20362. $as_echo "$ac_try_echo") >&5
  20363. (eval "$ac_link") 2>conftest.er1
  20364. ac_status=$?
  20365. grep -v '^ *+' conftest.er1 >conftest.err
  20366. rm -f conftest.er1
  20367. cat conftest.err >&5
  20368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20369. (exit $ac_status); } && {
  20370. test -z "$ac_c_werror_flag" ||
  20371. test ! -s conftest.err
  20372. } && test -s conftest$ac_exeext && {
  20373. test "$cross_compiling" = yes ||
  20374. $as_test_x conftest$ac_exeext
  20375. }; then
  20376. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20377. $as_echo "yes" >&6; }
  20378. GC_CFLAGS="-ffunction-sections"
  20379. GC_LDFLAGS="-Wl,--gc-sections"
  20380. else
  20381. $as_echo "$as_me: failed program was:" >&5
  20382. sed 's/^/| /' conftest.$ac_ext >&5
  20383. { $as_echo "$as_me:$LINENO: result: no" >&5
  20384. $as_echo "no" >&6; }
  20385. fi
  20386. rm -rf conftest.dSYM
  20387. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20388. conftest$ac_exeext conftest.$ac_ext
  20389. LDFLAGS="${saved_LDFLAGS}"
  20390. else
  20391. $as_echo "$as_me: failed program was:" >&5
  20392. sed 's/^/| /' conftest.$ac_ext >&5
  20393. { $as_echo "$as_me:$LINENO: result: no" >&5
  20394. $as_echo "no" >&6; }
  20395. fi
  20396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20397. CFLAGS="${saved_CFLAGS}"
  20398. { $as_echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
  20399. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  20400. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  20401. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20402. $as_echo "yes" >&6; }
  20403. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  20404. else
  20405. { $as_echo "$as_me:$LINENO: result: no" >&5
  20406. $as_echo "no" >&6; }
  20407. AST_DECLARATION_AFTER_STATEMENT=
  20408. fi
  20409. { $as_echo "$as_me:$LINENO: checking for _FORTIFY_SOURCE support" >&5
  20410. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  20411. if $(${CC} -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  20412. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20413. $as_echo "yes" >&6; }
  20414. AST_FORTIFY_SOURCE=-D_FORTIFY_SOURCE=2
  20415. else
  20416. { $as_echo "$as_me:$LINENO: result: no" >&5
  20417. $as_echo "no" >&6; }
  20418. AST_FORTIFY_SOURCE=
  20419. fi
  20420. { $as_echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
  20421. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  20422. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  20423. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20424. $as_echo "yes" >&6; }
  20425. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  20426. else
  20427. { $as_echo "$as_me:$LINENO: result: no" >&5
  20428. $as_echo "no" >&6; }
  20429. AST_NO_STRICT_OVERFLOW=
  20430. fi
  20431. { $as_echo "$as_me:$LINENO: checking for -Wshadow" >&5
  20432. $as_echo_n "checking for -Wshadow... " >&6; }
  20433. if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  20434. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20435. $as_echo "yes" >&6; }
  20436. AST_SHADOW_WARNINGS=-Wshadow
  20437. else
  20438. { $as_echo "$as_me:$LINENO: result: no" >&5
  20439. $as_echo "no" >&6; }
  20440. AST_SHADOW_WARNINGS=
  20441. fi
  20442. { $as_echo "$as_me:$LINENO: checking for -march=native support" >&5
  20443. $as_echo_n "checking for -march=native support... " >&6; }
  20444. if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  20445. if test "${CONFIG_CFLAGS}" = ""; then
  20446. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20447. $as_echo "yes" >&6; }
  20448. AST_NATIVE_ARCH=1
  20449. else
  20450. { $as_echo "$as_me:$LINENO: result: user CFLAGS present" >&5
  20451. $as_echo "user CFLAGS present" >&6; }
  20452. AST_NATIVE_ARCH=
  20453. fi
  20454. else
  20455. { $as_echo "$as_me:$LINENO: result: no" >&5
  20456. $as_echo "no" >&6; }
  20457. AST_NATIVE_ARCH=
  20458. fi
  20459. { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
  20460. $as_echo_n "checking for sysinfo... " >&6; }
  20461. cat >conftest.$ac_ext <<_ACEOF
  20462. /* confdefs.h. */
  20463. _ACEOF
  20464. cat confdefs.h >>conftest.$ac_ext
  20465. cat >>conftest.$ac_ext <<_ACEOF
  20466. /* end confdefs.h. */
  20467. #include <sys/sysinfo.h>
  20468. int
  20469. main ()
  20470. {
  20471. struct sysinfo sys_info; int uptime = sys_info.uptime
  20472. ;
  20473. return 0;
  20474. }
  20475. _ACEOF
  20476. rm -f conftest.$ac_objext conftest$ac_exeext
  20477. if { (ac_try="$ac_link"
  20478. case "(($ac_try" in
  20479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20480. *) ac_try_echo=$ac_try;;
  20481. esac
  20482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20483. $as_echo "$ac_try_echo") >&5
  20484. (eval "$ac_link") 2>conftest.er1
  20485. ac_status=$?
  20486. grep -v '^ *+' conftest.er1 >conftest.err
  20487. rm -f conftest.er1
  20488. cat conftest.err >&5
  20489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20490. (exit $ac_status); } && {
  20491. test -z "$ac_c_werror_flag" ||
  20492. test ! -s conftest.err
  20493. } && test -s conftest$ac_exeext && {
  20494. test "$cross_compiling" = yes ||
  20495. $as_test_x conftest$ac_exeext
  20496. }; then
  20497. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20498. $as_echo "yes" >&6; }
  20499. cat >>confdefs.h <<\_ACEOF
  20500. #define HAVE_SYSINFO 1
  20501. _ACEOF
  20502. else
  20503. $as_echo "$as_me: failed program was:" >&5
  20504. sed 's/^/| /' conftest.$ac_ext >&5
  20505. { $as_echo "$as_me:$LINENO: result: no" >&5
  20506. $as_echo "no" >&6; }
  20507. fi
  20508. rm -rf conftest.dSYM
  20509. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20510. conftest$ac_exeext conftest.$ac_ext
  20511. { $as_echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
  20512. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  20513. if test "${ac_cv_search_res_9_ninit+set}" = set; then
  20514. $as_echo_n "(cached) " >&6
  20515. else
  20516. ac_func_search_save_LIBS=$LIBS
  20517. cat >conftest.$ac_ext <<_ACEOF
  20518. /* confdefs.h. */
  20519. _ACEOF
  20520. cat confdefs.h >>conftest.$ac_ext
  20521. cat >>conftest.$ac_ext <<_ACEOF
  20522. /* end confdefs.h. */
  20523. /* Override any GCC internal prototype to avoid an error.
  20524. Use char because int might match the return type of a GCC
  20525. builtin and then its argument prototype would still apply. */
  20526. #ifdef __cplusplus
  20527. extern "C"
  20528. #endif
  20529. char res_9_ninit ();
  20530. int
  20531. main ()
  20532. {
  20533. return res_9_ninit ();
  20534. ;
  20535. return 0;
  20536. }
  20537. _ACEOF
  20538. for ac_lib in '' resolv; do
  20539. if test -z "$ac_lib"; then
  20540. ac_res="none required"
  20541. else
  20542. ac_res=-l$ac_lib
  20543. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20544. fi
  20545. rm -f conftest.$ac_objext conftest$ac_exeext
  20546. if { (ac_try="$ac_link"
  20547. case "(($ac_try" in
  20548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20549. *) ac_try_echo=$ac_try;;
  20550. esac
  20551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20552. $as_echo "$ac_try_echo") >&5
  20553. (eval "$ac_link") 2>conftest.er1
  20554. ac_status=$?
  20555. grep -v '^ *+' conftest.er1 >conftest.err
  20556. rm -f conftest.er1
  20557. cat conftest.err >&5
  20558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20559. (exit $ac_status); } && {
  20560. test -z "$ac_c_werror_flag" ||
  20561. test ! -s conftest.err
  20562. } && test -s conftest$ac_exeext && {
  20563. test "$cross_compiling" = yes ||
  20564. $as_test_x conftest$ac_exeext
  20565. }; then
  20566. ac_cv_search_res_9_ninit=$ac_res
  20567. else
  20568. $as_echo "$as_me: failed program was:" >&5
  20569. sed 's/^/| /' conftest.$ac_ext >&5
  20570. fi
  20571. rm -rf conftest.dSYM
  20572. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20573. conftest$ac_exeext
  20574. if test "${ac_cv_search_res_9_ninit+set}" = set; then
  20575. break
  20576. fi
  20577. done
  20578. if test "${ac_cv_search_res_9_ninit+set}" = set; then
  20579. :
  20580. else
  20581. ac_cv_search_res_9_ninit=no
  20582. fi
  20583. rm conftest.$ac_ext
  20584. LIBS=$ac_func_search_save_LIBS
  20585. fi
  20586. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
  20587. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  20588. ac_res=$ac_cv_search_res_9_ninit
  20589. if test "$ac_res" != no; then
  20590. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20591. fi
  20592. { $as_echo "$as_me:$LINENO: checking for res_ninit" >&5
  20593. $as_echo_n "checking for res_ninit... " >&6; }
  20594. cat >conftest.$ac_ext <<_ACEOF
  20595. /* confdefs.h. */
  20596. _ACEOF
  20597. cat confdefs.h >>conftest.$ac_ext
  20598. cat >>conftest.$ac_ext <<_ACEOF
  20599. /* end confdefs.h. */
  20600. #ifdef HAVE_SYS_SOCKET_H
  20601. #include <sys/socket.h>
  20602. #endif
  20603. #ifdef HAVE_NETINET_IN_H
  20604. #include <netinet/in.h>
  20605. #endif
  20606. #ifdef HAVE_ARPA_NAMESER_H
  20607. #include <arpa/nameser.h>
  20608. #endif
  20609. #include <resolv.h>
  20610. int
  20611. main ()
  20612. {
  20613. int foo = res_ninit(NULL);
  20614. ;
  20615. return 0;
  20616. }
  20617. _ACEOF
  20618. rm -f conftest.$ac_objext conftest$ac_exeext
  20619. if { (ac_try="$ac_link"
  20620. case "(($ac_try" in
  20621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20622. *) ac_try_echo=$ac_try;;
  20623. esac
  20624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20625. $as_echo "$ac_try_echo") >&5
  20626. (eval "$ac_link") 2>conftest.er1
  20627. ac_status=$?
  20628. grep -v '^ *+' conftest.er1 >conftest.err
  20629. rm -f conftest.er1
  20630. cat conftest.err >&5
  20631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20632. (exit $ac_status); } && {
  20633. test -z "$ac_c_werror_flag" ||
  20634. test ! -s conftest.err
  20635. } && test -s conftest$ac_exeext && {
  20636. test "$cross_compiling" = yes ||
  20637. $as_test_x conftest$ac_exeext
  20638. }; then
  20639. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20640. $as_echo "yes" >&6; }
  20641. cat >>confdefs.h <<\_ACEOF
  20642. #define HAVE_RES_NINIT 1
  20643. _ACEOF
  20644. { $as_echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
  20645. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  20646. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
  20647. $as_echo_n "(cached) " >&6
  20648. else
  20649. ac_func_search_save_LIBS=$LIBS
  20650. cat >conftest.$ac_ext <<_ACEOF
  20651. /* confdefs.h. */
  20652. _ACEOF
  20653. cat confdefs.h >>conftest.$ac_ext
  20654. cat >>conftest.$ac_ext <<_ACEOF
  20655. /* end confdefs.h. */
  20656. /* Override any GCC internal prototype to avoid an error.
  20657. Use char because int might match the return type of a GCC
  20658. builtin and then its argument prototype would still apply. */
  20659. #ifdef __cplusplus
  20660. extern "C"
  20661. #endif
  20662. char res_9_ndestroy ();
  20663. int
  20664. main ()
  20665. {
  20666. return res_9_ndestroy ();
  20667. ;
  20668. return 0;
  20669. }
  20670. _ACEOF
  20671. for ac_lib in '' resolv; do
  20672. if test -z "$ac_lib"; then
  20673. ac_res="none required"
  20674. else
  20675. ac_res=-l$ac_lib
  20676. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20677. fi
  20678. rm -f conftest.$ac_objext conftest$ac_exeext
  20679. if { (ac_try="$ac_link"
  20680. case "(($ac_try" in
  20681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20682. *) ac_try_echo=$ac_try;;
  20683. esac
  20684. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20685. $as_echo "$ac_try_echo") >&5
  20686. (eval "$ac_link") 2>conftest.er1
  20687. ac_status=$?
  20688. grep -v '^ *+' conftest.er1 >conftest.err
  20689. rm -f conftest.er1
  20690. cat conftest.err >&5
  20691. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20692. (exit $ac_status); } && {
  20693. test -z "$ac_c_werror_flag" ||
  20694. test ! -s conftest.err
  20695. } && test -s conftest$ac_exeext && {
  20696. test "$cross_compiling" = yes ||
  20697. $as_test_x conftest$ac_exeext
  20698. }; then
  20699. ac_cv_search_res_9_ndestroy=$ac_res
  20700. else
  20701. $as_echo "$as_me: failed program was:" >&5
  20702. sed 's/^/| /' conftest.$ac_ext >&5
  20703. fi
  20704. rm -rf conftest.dSYM
  20705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20706. conftest$ac_exeext
  20707. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
  20708. break
  20709. fi
  20710. done
  20711. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
  20712. :
  20713. else
  20714. ac_cv_search_res_9_ndestroy=no
  20715. fi
  20716. rm conftest.$ac_ext
  20717. LIBS=$ac_func_search_save_LIBS
  20718. fi
  20719. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
  20720. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  20721. ac_res=$ac_cv_search_res_9_ndestroy
  20722. if test "$ac_res" != no; then
  20723. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20724. fi
  20725. { $as_echo "$as_me:$LINENO: checking for res_ndestroy" >&5
  20726. $as_echo_n "checking for res_ndestroy... " >&6; }
  20727. cat >conftest.$ac_ext <<_ACEOF
  20728. /* confdefs.h. */
  20729. _ACEOF
  20730. cat confdefs.h >>conftest.$ac_ext
  20731. cat >>conftest.$ac_ext <<_ACEOF
  20732. /* end confdefs.h. */
  20733. #ifdef HAVE_SYS_SOCKET_H
  20734. #include <sys/socket.h>
  20735. #endif
  20736. #ifdef HAVE_NETINET_IN_H
  20737. #include <netinet/in.h>
  20738. #endif
  20739. #ifdef HAVE_ARPA_NAMESER_H
  20740. #include <arpa/nameser.h>
  20741. #endif
  20742. #include <resolv.h>
  20743. int
  20744. main ()
  20745. {
  20746. res_ndestroy(NULL);
  20747. ;
  20748. return 0;
  20749. }
  20750. _ACEOF
  20751. rm -f conftest.$ac_objext conftest$ac_exeext
  20752. if { (ac_try="$ac_link"
  20753. case "(($ac_try" in
  20754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20755. *) ac_try_echo=$ac_try;;
  20756. esac
  20757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20758. $as_echo "$ac_try_echo") >&5
  20759. (eval "$ac_link") 2>conftest.er1
  20760. ac_status=$?
  20761. grep -v '^ *+' conftest.er1 >conftest.err
  20762. rm -f conftest.er1
  20763. cat conftest.err >&5
  20764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20765. (exit $ac_status); } && {
  20766. test -z "$ac_c_werror_flag" ||
  20767. test ! -s conftest.err
  20768. } && test -s conftest$ac_exeext && {
  20769. test "$cross_compiling" = yes ||
  20770. $as_test_x conftest$ac_exeext
  20771. }; then
  20772. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20773. $as_echo "yes" >&6; }
  20774. cat >>confdefs.h <<\_ACEOF
  20775. #define HAVE_RES_NDESTROY 1
  20776. _ACEOF
  20777. else
  20778. $as_echo "$as_me: failed program was:" >&5
  20779. sed 's/^/| /' conftest.$ac_ext >&5
  20780. { $as_echo "$as_me:$LINENO: result: no" >&5
  20781. $as_echo "no" >&6; }
  20782. fi
  20783. rm -rf conftest.dSYM
  20784. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20785. conftest$ac_exeext conftest.$ac_ext
  20786. { $as_echo "$as_me:$LINENO: checking for library containing res_9_close" >&5
  20787. $as_echo_n "checking for library containing res_9_close... " >&6; }
  20788. if test "${ac_cv_search_res_9_close+set}" = set; then
  20789. $as_echo_n "(cached) " >&6
  20790. else
  20791. ac_func_search_save_LIBS=$LIBS
  20792. cat >conftest.$ac_ext <<_ACEOF
  20793. /* confdefs.h. */
  20794. _ACEOF
  20795. cat confdefs.h >>conftest.$ac_ext
  20796. cat >>conftest.$ac_ext <<_ACEOF
  20797. /* end confdefs.h. */
  20798. /* Override any GCC internal prototype to avoid an error.
  20799. Use char because int might match the return type of a GCC
  20800. builtin and then its argument prototype would still apply. */
  20801. #ifdef __cplusplus
  20802. extern "C"
  20803. #endif
  20804. char res_9_close ();
  20805. int
  20806. main ()
  20807. {
  20808. return res_9_close ();
  20809. ;
  20810. return 0;
  20811. }
  20812. _ACEOF
  20813. for ac_lib in '' resolv; do
  20814. if test -z "$ac_lib"; then
  20815. ac_res="none required"
  20816. else
  20817. ac_res=-l$ac_lib
  20818. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20819. fi
  20820. rm -f conftest.$ac_objext conftest$ac_exeext
  20821. if { (ac_try="$ac_link"
  20822. case "(($ac_try" in
  20823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20824. *) ac_try_echo=$ac_try;;
  20825. esac
  20826. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20827. $as_echo "$ac_try_echo") >&5
  20828. (eval "$ac_link") 2>conftest.er1
  20829. ac_status=$?
  20830. grep -v '^ *+' conftest.er1 >conftest.err
  20831. rm -f conftest.er1
  20832. cat conftest.err >&5
  20833. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20834. (exit $ac_status); } && {
  20835. test -z "$ac_c_werror_flag" ||
  20836. test ! -s conftest.err
  20837. } && test -s conftest$ac_exeext && {
  20838. test "$cross_compiling" = yes ||
  20839. $as_test_x conftest$ac_exeext
  20840. }; then
  20841. ac_cv_search_res_9_close=$ac_res
  20842. else
  20843. $as_echo "$as_me: failed program was:" >&5
  20844. sed 's/^/| /' conftest.$ac_ext >&5
  20845. fi
  20846. rm -rf conftest.dSYM
  20847. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20848. conftest$ac_exeext
  20849. if test "${ac_cv_search_res_9_close+set}" = set; then
  20850. break
  20851. fi
  20852. done
  20853. if test "${ac_cv_search_res_9_close+set}" = set; then
  20854. :
  20855. else
  20856. ac_cv_search_res_9_close=no
  20857. fi
  20858. rm conftest.$ac_ext
  20859. LIBS=$ac_func_search_save_LIBS
  20860. fi
  20861. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_9_close" >&5
  20862. $as_echo "$ac_cv_search_res_9_close" >&6; }
  20863. ac_res=$ac_cv_search_res_9_close
  20864. if test "$ac_res" != no; then
  20865. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20866. fi
  20867. { $as_echo "$as_me:$LINENO: checking for res_close" >&5
  20868. $as_echo_n "checking for res_close... " >&6; }
  20869. cat >conftest.$ac_ext <<_ACEOF
  20870. /* confdefs.h. */
  20871. _ACEOF
  20872. cat confdefs.h >>conftest.$ac_ext
  20873. cat >>conftest.$ac_ext <<_ACEOF
  20874. /* end confdefs.h. */
  20875. #ifdef HAVE_SYS_SOCKET_H
  20876. #include <sys/socket.h>
  20877. #endif
  20878. #ifdef HAVE_NETINET_IN_H
  20879. #include <netinet/in.h>
  20880. #endif
  20881. #ifdef HAVE_ARPA_NAMESER_H
  20882. #include <arpa/nameser.h>
  20883. #endif
  20884. #include <resolv.h>
  20885. int
  20886. main ()
  20887. {
  20888. res_close();
  20889. ;
  20890. return 0;
  20891. }
  20892. _ACEOF
  20893. rm -f conftest.$ac_objext conftest$ac_exeext
  20894. if { (ac_try="$ac_link"
  20895. case "(($ac_try" in
  20896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20897. *) ac_try_echo=$ac_try;;
  20898. esac
  20899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20900. $as_echo "$ac_try_echo") >&5
  20901. (eval "$ac_link") 2>conftest.er1
  20902. ac_status=$?
  20903. grep -v '^ *+' conftest.er1 >conftest.err
  20904. rm -f conftest.er1
  20905. cat conftest.err >&5
  20906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20907. (exit $ac_status); } && {
  20908. test -z "$ac_c_werror_flag" ||
  20909. test ! -s conftest.err
  20910. } && test -s conftest$ac_exeext && {
  20911. test "$cross_compiling" = yes ||
  20912. $as_test_x conftest$ac_exeext
  20913. }; then
  20914. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20915. $as_echo "yes" >&6; }
  20916. cat >>confdefs.h <<\_ACEOF
  20917. #define HAVE_RES_CLOSE 1
  20918. _ACEOF
  20919. else
  20920. $as_echo "$as_me: failed program was:" >&5
  20921. sed 's/^/| /' conftest.$ac_ext >&5
  20922. { $as_echo "$as_me:$LINENO: result: no" >&5
  20923. $as_echo "no" >&6; }
  20924. fi
  20925. rm -rf conftest.dSYM
  20926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20927. conftest$ac_exeext conftest.$ac_ext
  20928. else
  20929. $as_echo "$as_me: failed program was:" >&5
  20930. sed 's/^/| /' conftest.$ac_ext >&5
  20931. { $as_echo "$as_me:$LINENO: result: no" >&5
  20932. $as_echo "no" >&6; }
  20933. fi
  20934. rm -rf conftest.dSYM
  20935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20936. conftest$ac_exeext conftest.$ac_ext
  20937. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  20938. { $as_echo "$as_me:$LINENO: checking for GLOB_NOMAGIC in glob.h" >&5
  20939. $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  20940. saved_cppflags="${CPPFLAGS}"
  20941. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  20942. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  20943. fi
  20944. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  20945. cat >conftest.$ac_ext <<_ACEOF
  20946. /* confdefs.h. */
  20947. _ACEOF
  20948. cat confdefs.h >>conftest.$ac_ext
  20949. cat >>conftest.$ac_ext <<_ACEOF
  20950. /* end confdefs.h. */
  20951. #include <glob.h>
  20952. int
  20953. main ()
  20954. {
  20955. #if defined(GLOB_NOMAGIC)
  20956. int foo = 0;
  20957. #else
  20958. int foo = bar;
  20959. #endif
  20960. 0
  20961. ;
  20962. return 0;
  20963. }
  20964. _ACEOF
  20965. rm -f conftest.$ac_objext
  20966. if { (ac_try="$ac_compile"
  20967. case "(($ac_try" in
  20968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20969. *) ac_try_echo=$ac_try;;
  20970. esac
  20971. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20972. $as_echo "$ac_try_echo") >&5
  20973. (eval "$ac_compile") 2>conftest.er1
  20974. ac_status=$?
  20975. grep -v '^ *+' conftest.er1 >conftest.err
  20976. rm -f conftest.er1
  20977. cat conftest.err >&5
  20978. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20979. (exit $ac_status); } && {
  20980. test -z "$ac_c_werror_flag" ||
  20981. test ! -s conftest.err
  20982. } && test -s conftest.$ac_objext; then
  20983. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20984. $as_echo "yes" >&6; }
  20985. PBX_GLOB_NOMAGIC=1
  20986. cat >>confdefs.h <<\_ACEOF
  20987. #define HAVE_GLOB_NOMAGIC 1
  20988. _ACEOF
  20989. else
  20990. $as_echo "$as_me: failed program was:" >&5
  20991. sed 's/^/| /' conftest.$ac_ext >&5
  20992. { $as_echo "$as_me:$LINENO: result: no" >&5
  20993. $as_echo "no" >&6; }
  20994. fi
  20995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20996. CPPFLAGS="${saved_cppflags}"
  20997. fi
  20998. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  20999. { $as_echo "$as_me:$LINENO: checking for GLOB_BRACE in glob.h" >&5
  21000. $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
  21001. saved_cppflags="${CPPFLAGS}"
  21002. if test "x${GLOB_BRACE_DIR}" != "x"; then
  21003. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  21004. fi
  21005. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  21006. cat >conftest.$ac_ext <<_ACEOF
  21007. /* confdefs.h. */
  21008. _ACEOF
  21009. cat confdefs.h >>conftest.$ac_ext
  21010. cat >>conftest.$ac_ext <<_ACEOF
  21011. /* end confdefs.h. */
  21012. #include <glob.h>
  21013. int
  21014. main ()
  21015. {
  21016. #if defined(GLOB_BRACE)
  21017. int foo = 0;
  21018. #else
  21019. int foo = bar;
  21020. #endif
  21021. 0
  21022. ;
  21023. return 0;
  21024. }
  21025. _ACEOF
  21026. rm -f conftest.$ac_objext
  21027. if { (ac_try="$ac_compile"
  21028. case "(($ac_try" in
  21029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21030. *) ac_try_echo=$ac_try;;
  21031. esac
  21032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21033. $as_echo "$ac_try_echo") >&5
  21034. (eval "$ac_compile") 2>conftest.er1
  21035. ac_status=$?
  21036. grep -v '^ *+' conftest.er1 >conftest.err
  21037. rm -f conftest.er1
  21038. cat conftest.err >&5
  21039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21040. (exit $ac_status); } && {
  21041. test -z "$ac_c_werror_flag" ||
  21042. test ! -s conftest.err
  21043. } && test -s conftest.$ac_objext; then
  21044. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21045. $as_echo "yes" >&6; }
  21046. PBX_GLOB_BRACE=1
  21047. cat >>confdefs.h <<\_ACEOF
  21048. #define HAVE_GLOB_BRACE 1
  21049. _ACEOF
  21050. else
  21051. $as_echo "$as_me: failed program was:" >&5
  21052. sed 's/^/| /' conftest.$ac_ext >&5
  21053. { $as_echo "$as_me:$LINENO: result: no" >&5
  21054. $as_echo "no" >&6; }
  21055. fi
  21056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21057. CPPFLAGS="${saved_cppflags}"
  21058. fi
  21059. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  21060. { $as_echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  21061. $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  21062. saved_cppflags="${CPPFLAGS}"
  21063. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  21064. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  21065. fi
  21066. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  21067. cat >conftest.$ac_ext <<_ACEOF
  21068. /* confdefs.h. */
  21069. _ACEOF
  21070. cat confdefs.h >>conftest.$ac_ext
  21071. cat >>conftest.$ac_ext <<_ACEOF
  21072. /* end confdefs.h. */
  21073. #include <netinet/in.h>
  21074. int
  21075. main ()
  21076. {
  21077. #if defined(IP_MTU_DISCOVER)
  21078. int foo = 0;
  21079. #else
  21080. int foo = bar;
  21081. #endif
  21082. 0
  21083. ;
  21084. return 0;
  21085. }
  21086. _ACEOF
  21087. rm -f conftest.$ac_objext
  21088. if { (ac_try="$ac_compile"
  21089. case "(($ac_try" in
  21090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21091. *) ac_try_echo=$ac_try;;
  21092. esac
  21093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21094. $as_echo "$ac_try_echo") >&5
  21095. (eval "$ac_compile") 2>conftest.er1
  21096. ac_status=$?
  21097. grep -v '^ *+' conftest.er1 >conftest.err
  21098. rm -f conftest.er1
  21099. cat conftest.err >&5
  21100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21101. (exit $ac_status); } && {
  21102. test -z "$ac_c_werror_flag" ||
  21103. test ! -s conftest.err
  21104. } && test -s conftest.$ac_objext; then
  21105. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21106. $as_echo "yes" >&6; }
  21107. PBX_IP_MTU_DISCOVER=1
  21108. cat >>confdefs.h <<\_ACEOF
  21109. #define HAVE_IP_MTU_DISCOVER 1
  21110. _ACEOF
  21111. else
  21112. $as_echo "$as_me: failed program was:" >&5
  21113. sed 's/^/| /' conftest.$ac_ext >&5
  21114. { $as_echo "$as_me:$LINENO: result: no" >&5
  21115. $as_echo "no" >&6; }
  21116. fi
  21117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21118. CPPFLAGS="${saved_cppflags}"
  21119. fi
  21120. if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
  21121. { $as_echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
  21122. $as_echo_n "checking for libkern/OSAtomic.h... " >&6; }
  21123. if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
  21124. $as_echo_n "(cached) " >&6
  21125. fi
  21126. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
  21127. $as_echo "$ac_cv_header_libkern_OSAtomic_h" >&6; }
  21128. else
  21129. # Is the header compilable?
  21130. { $as_echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
  21131. $as_echo_n "checking libkern/OSAtomic.h usability... " >&6; }
  21132. cat >conftest.$ac_ext <<_ACEOF
  21133. /* confdefs.h. */
  21134. _ACEOF
  21135. cat confdefs.h >>conftest.$ac_ext
  21136. cat >>conftest.$ac_ext <<_ACEOF
  21137. /* end confdefs.h. */
  21138. $ac_includes_default
  21139. #include <libkern/OSAtomic.h>
  21140. _ACEOF
  21141. rm -f conftest.$ac_objext
  21142. if { (ac_try="$ac_compile"
  21143. case "(($ac_try" in
  21144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21145. *) ac_try_echo=$ac_try;;
  21146. esac
  21147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21148. $as_echo "$ac_try_echo") >&5
  21149. (eval "$ac_compile") 2>conftest.er1
  21150. ac_status=$?
  21151. grep -v '^ *+' conftest.er1 >conftest.err
  21152. rm -f conftest.er1
  21153. cat conftest.err >&5
  21154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21155. (exit $ac_status); } && {
  21156. test -z "$ac_c_werror_flag" ||
  21157. test ! -s conftest.err
  21158. } && test -s conftest.$ac_objext; then
  21159. ac_header_compiler=yes
  21160. else
  21161. $as_echo "$as_me: failed program was:" >&5
  21162. sed 's/^/| /' conftest.$ac_ext >&5
  21163. ac_header_compiler=no
  21164. fi
  21165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21166. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21167. $as_echo "$ac_header_compiler" >&6; }
  21168. # Is the header present?
  21169. { $as_echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
  21170. $as_echo_n "checking libkern/OSAtomic.h presence... " >&6; }
  21171. cat >conftest.$ac_ext <<_ACEOF
  21172. /* confdefs.h. */
  21173. _ACEOF
  21174. cat confdefs.h >>conftest.$ac_ext
  21175. cat >>conftest.$ac_ext <<_ACEOF
  21176. /* end confdefs.h. */
  21177. #include <libkern/OSAtomic.h>
  21178. _ACEOF
  21179. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21180. case "(($ac_try" in
  21181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21182. *) ac_try_echo=$ac_try;;
  21183. esac
  21184. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21185. $as_echo "$ac_try_echo") >&5
  21186. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21187. ac_status=$?
  21188. grep -v '^ *+' conftest.er1 >conftest.err
  21189. rm -f conftest.er1
  21190. cat conftest.err >&5
  21191. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21192. (exit $ac_status); } >/dev/null && {
  21193. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21194. test ! -s conftest.err
  21195. }; then
  21196. ac_header_preproc=yes
  21197. else
  21198. $as_echo "$as_me: failed program was:" >&5
  21199. sed 's/^/| /' conftest.$ac_ext >&5
  21200. ac_header_preproc=no
  21201. fi
  21202. rm -f conftest.err conftest.$ac_ext
  21203. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21204. $as_echo "$ac_header_preproc" >&6; }
  21205. # So? What about this header?
  21206. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21207. yes:no: )
  21208. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21209. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21210. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
  21211. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
  21212. ac_header_preproc=yes
  21213. ;;
  21214. no:yes:* )
  21215. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
  21216. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
  21217. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
  21218. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
  21219. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
  21220. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
  21221. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
  21222. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21223. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
  21224. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
  21225. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
  21226. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
  21227. ( cat <<\_ASBOX
  21228. ## ------------------------------------------ ##
  21229. ## Report this to https://issues.asterisk.org ##
  21230. ## ------------------------------------------ ##
  21231. _ASBOX
  21232. ) | sed "s/^/$as_me: WARNING: /" >&2
  21233. ;;
  21234. esac
  21235. { $as_echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
  21236. $as_echo_n "checking for libkern/OSAtomic.h... " >&6; }
  21237. if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
  21238. $as_echo_n "(cached) " >&6
  21239. else
  21240. ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
  21241. fi
  21242. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
  21243. $as_echo "$ac_cv_header_libkern_OSAtomic_h" >&6; }
  21244. fi
  21245. if test "x$ac_cv_header_libkern_OSAtomic_h" = x""yes; then
  21246. cat >>confdefs.h <<_ACEOF
  21247. #define HAVE_OSX_ATOMICS 1
  21248. _ACEOF
  21249. fi
  21250. # The cast to long int works around a bug in the HP C Compiler
  21251. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21252. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21253. # This bug is HP SR number 8606223364.
  21254. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  21255. $as_echo_n "checking size of int... " >&6; }
  21256. if test "${ac_cv_sizeof_int+set}" = set; then
  21257. $as_echo_n "(cached) " >&6
  21258. else
  21259. if test "$cross_compiling" = yes; then
  21260. # Depending upon the size, compute the lo and hi bounds.
  21261. cat >conftest.$ac_ext <<_ACEOF
  21262. /* confdefs.h. */
  21263. _ACEOF
  21264. cat confdefs.h >>conftest.$ac_ext
  21265. cat >>conftest.$ac_ext <<_ACEOF
  21266. /* end confdefs.h. */
  21267. $ac_includes_default
  21268. int
  21269. main ()
  21270. {
  21271. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  21272. test_array [0] = 0
  21273. ;
  21274. return 0;
  21275. }
  21276. _ACEOF
  21277. rm -f conftest.$ac_objext
  21278. if { (ac_try="$ac_compile"
  21279. case "(($ac_try" in
  21280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21281. *) ac_try_echo=$ac_try;;
  21282. esac
  21283. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21284. $as_echo "$ac_try_echo") >&5
  21285. (eval "$ac_compile") 2>conftest.er1
  21286. ac_status=$?
  21287. grep -v '^ *+' conftest.er1 >conftest.err
  21288. rm -f conftest.er1
  21289. cat conftest.err >&5
  21290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21291. (exit $ac_status); } && {
  21292. test -z "$ac_c_werror_flag" ||
  21293. test ! -s conftest.err
  21294. } && test -s conftest.$ac_objext; then
  21295. ac_lo=0 ac_mid=0
  21296. while :; do
  21297. cat >conftest.$ac_ext <<_ACEOF
  21298. /* confdefs.h. */
  21299. _ACEOF
  21300. cat confdefs.h >>conftest.$ac_ext
  21301. cat >>conftest.$ac_ext <<_ACEOF
  21302. /* end confdefs.h. */
  21303. $ac_includes_default
  21304. int
  21305. main ()
  21306. {
  21307. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  21308. test_array [0] = 0
  21309. ;
  21310. return 0;
  21311. }
  21312. _ACEOF
  21313. rm -f conftest.$ac_objext
  21314. if { (ac_try="$ac_compile"
  21315. case "(($ac_try" in
  21316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21317. *) ac_try_echo=$ac_try;;
  21318. esac
  21319. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21320. $as_echo "$ac_try_echo") >&5
  21321. (eval "$ac_compile") 2>conftest.er1
  21322. ac_status=$?
  21323. grep -v '^ *+' conftest.er1 >conftest.err
  21324. rm -f conftest.er1
  21325. cat conftest.err >&5
  21326. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21327. (exit $ac_status); } && {
  21328. test -z "$ac_c_werror_flag" ||
  21329. test ! -s conftest.err
  21330. } && test -s conftest.$ac_objext; then
  21331. ac_hi=$ac_mid; break
  21332. else
  21333. $as_echo "$as_me: failed program was:" >&5
  21334. sed 's/^/| /' conftest.$ac_ext >&5
  21335. ac_lo=`expr $ac_mid + 1`
  21336. if test $ac_lo -le $ac_mid; then
  21337. ac_lo= ac_hi=
  21338. break
  21339. fi
  21340. ac_mid=`expr 2 '*' $ac_mid + 1`
  21341. fi
  21342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21343. done
  21344. else
  21345. $as_echo "$as_me: failed program was:" >&5
  21346. sed 's/^/| /' conftest.$ac_ext >&5
  21347. cat >conftest.$ac_ext <<_ACEOF
  21348. /* confdefs.h. */
  21349. _ACEOF
  21350. cat confdefs.h >>conftest.$ac_ext
  21351. cat >>conftest.$ac_ext <<_ACEOF
  21352. /* end confdefs.h. */
  21353. $ac_includes_default
  21354. int
  21355. main ()
  21356. {
  21357. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  21358. test_array [0] = 0
  21359. ;
  21360. return 0;
  21361. }
  21362. _ACEOF
  21363. rm -f conftest.$ac_objext
  21364. if { (ac_try="$ac_compile"
  21365. case "(($ac_try" in
  21366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21367. *) ac_try_echo=$ac_try;;
  21368. esac
  21369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21370. $as_echo "$ac_try_echo") >&5
  21371. (eval "$ac_compile") 2>conftest.er1
  21372. ac_status=$?
  21373. grep -v '^ *+' conftest.er1 >conftest.err
  21374. rm -f conftest.er1
  21375. cat conftest.err >&5
  21376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21377. (exit $ac_status); } && {
  21378. test -z "$ac_c_werror_flag" ||
  21379. test ! -s conftest.err
  21380. } && test -s conftest.$ac_objext; then
  21381. ac_hi=-1 ac_mid=-1
  21382. while :; do
  21383. cat >conftest.$ac_ext <<_ACEOF
  21384. /* confdefs.h. */
  21385. _ACEOF
  21386. cat confdefs.h >>conftest.$ac_ext
  21387. cat >>conftest.$ac_ext <<_ACEOF
  21388. /* end confdefs.h. */
  21389. $ac_includes_default
  21390. int
  21391. main ()
  21392. {
  21393. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  21394. test_array [0] = 0
  21395. ;
  21396. return 0;
  21397. }
  21398. _ACEOF
  21399. rm -f conftest.$ac_objext
  21400. if { (ac_try="$ac_compile"
  21401. case "(($ac_try" in
  21402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21403. *) ac_try_echo=$ac_try;;
  21404. esac
  21405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21406. $as_echo "$ac_try_echo") >&5
  21407. (eval "$ac_compile") 2>conftest.er1
  21408. ac_status=$?
  21409. grep -v '^ *+' conftest.er1 >conftest.err
  21410. rm -f conftest.er1
  21411. cat conftest.err >&5
  21412. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21413. (exit $ac_status); } && {
  21414. test -z "$ac_c_werror_flag" ||
  21415. test ! -s conftest.err
  21416. } && test -s conftest.$ac_objext; then
  21417. ac_lo=$ac_mid; break
  21418. else
  21419. $as_echo "$as_me: failed program was:" >&5
  21420. sed 's/^/| /' conftest.$ac_ext >&5
  21421. ac_hi=`expr '(' $ac_mid ')' - 1`
  21422. if test $ac_mid -le $ac_hi; then
  21423. ac_lo= ac_hi=
  21424. break
  21425. fi
  21426. ac_mid=`expr 2 '*' $ac_mid`
  21427. fi
  21428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21429. done
  21430. else
  21431. $as_echo "$as_me: failed program was:" >&5
  21432. sed 's/^/| /' conftest.$ac_ext >&5
  21433. ac_lo= ac_hi=
  21434. fi
  21435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21436. fi
  21437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21438. # Binary search between lo and hi bounds.
  21439. while test "x$ac_lo" != "x$ac_hi"; do
  21440. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  21441. cat >conftest.$ac_ext <<_ACEOF
  21442. /* confdefs.h. */
  21443. _ACEOF
  21444. cat confdefs.h >>conftest.$ac_ext
  21445. cat >>conftest.$ac_ext <<_ACEOF
  21446. /* end confdefs.h. */
  21447. $ac_includes_default
  21448. int
  21449. main ()
  21450. {
  21451. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  21452. test_array [0] = 0
  21453. ;
  21454. return 0;
  21455. }
  21456. _ACEOF
  21457. rm -f conftest.$ac_objext
  21458. if { (ac_try="$ac_compile"
  21459. case "(($ac_try" in
  21460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21461. *) ac_try_echo=$ac_try;;
  21462. esac
  21463. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21464. $as_echo "$ac_try_echo") >&5
  21465. (eval "$ac_compile") 2>conftest.er1
  21466. ac_status=$?
  21467. grep -v '^ *+' conftest.er1 >conftest.err
  21468. rm -f conftest.er1
  21469. cat conftest.err >&5
  21470. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21471. (exit $ac_status); } && {
  21472. test -z "$ac_c_werror_flag" ||
  21473. test ! -s conftest.err
  21474. } && test -s conftest.$ac_objext; then
  21475. ac_hi=$ac_mid
  21476. else
  21477. $as_echo "$as_me: failed program was:" >&5
  21478. sed 's/^/| /' conftest.$ac_ext >&5
  21479. ac_lo=`expr '(' $ac_mid ')' + 1`
  21480. fi
  21481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21482. done
  21483. case $ac_lo in
  21484. ?*) ac_cv_sizeof_int=$ac_lo;;
  21485. '') if test "$ac_cv_type_int" = yes; then
  21486. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  21487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21488. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  21489. See \`config.log' for more details." >&5
  21490. $as_echo "$as_me: error: cannot compute sizeof (int)
  21491. See \`config.log' for more details." >&2;}
  21492. { (exit 77); exit 77; }; }; }
  21493. else
  21494. ac_cv_sizeof_int=0
  21495. fi ;;
  21496. esac
  21497. else
  21498. cat >conftest.$ac_ext <<_ACEOF
  21499. /* confdefs.h. */
  21500. _ACEOF
  21501. cat confdefs.h >>conftest.$ac_ext
  21502. cat >>conftest.$ac_ext <<_ACEOF
  21503. /* end confdefs.h. */
  21504. $ac_includes_default
  21505. static long int longval () { return (long int) (sizeof (int)); }
  21506. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  21507. #include <stdio.h>
  21508. #include <stdlib.h>
  21509. int
  21510. main ()
  21511. {
  21512. FILE *f = fopen ("conftest.val", "w");
  21513. if (! f)
  21514. return 1;
  21515. if (((long int) (sizeof (int))) < 0)
  21516. {
  21517. long int i = longval ();
  21518. if (i != ((long int) (sizeof (int))))
  21519. return 1;
  21520. fprintf (f, "%ld", i);
  21521. }
  21522. else
  21523. {
  21524. unsigned long int i = ulongval ();
  21525. if (i != ((long int) (sizeof (int))))
  21526. return 1;
  21527. fprintf (f, "%lu", i);
  21528. }
  21529. /* Do not output a trailing newline, as this causes \r\n confusion
  21530. on some platforms. */
  21531. return ferror (f) || fclose (f) != 0;
  21532. ;
  21533. return 0;
  21534. }
  21535. _ACEOF
  21536. rm -f conftest$ac_exeext
  21537. if { (ac_try="$ac_link"
  21538. case "(($ac_try" in
  21539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21540. *) ac_try_echo=$ac_try;;
  21541. esac
  21542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21543. $as_echo "$ac_try_echo") >&5
  21544. (eval "$ac_link") 2>&5
  21545. ac_status=$?
  21546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21547. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21548. { (case "(($ac_try" in
  21549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21550. *) ac_try_echo=$ac_try;;
  21551. esac
  21552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21553. $as_echo "$ac_try_echo") >&5
  21554. (eval "$ac_try") 2>&5
  21555. ac_status=$?
  21556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21557. (exit $ac_status); }; }; then
  21558. ac_cv_sizeof_int=`cat conftest.val`
  21559. else
  21560. $as_echo "$as_me: program exited with status $ac_status" >&5
  21561. $as_echo "$as_me: failed program was:" >&5
  21562. sed 's/^/| /' conftest.$ac_ext >&5
  21563. ( exit $ac_status )
  21564. if test "$ac_cv_type_int" = yes; then
  21565. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  21566. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21567. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  21568. See \`config.log' for more details." >&5
  21569. $as_echo "$as_me: error: cannot compute sizeof (int)
  21570. See \`config.log' for more details." >&2;}
  21571. { (exit 77); exit 77; }; }; }
  21572. else
  21573. ac_cv_sizeof_int=0
  21574. fi
  21575. fi
  21576. rm -rf conftest.dSYM
  21577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21578. fi
  21579. rm -f conftest.val
  21580. fi
  21581. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  21582. $as_echo "$ac_cv_sizeof_int" >&6; }
  21583. cat >>confdefs.h <<_ACEOF
  21584. #define SIZEOF_INT $ac_cv_sizeof_int
  21585. _ACEOF
  21586. # The cast to long int works around a bug in the HP C Compiler
  21587. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21588. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21589. # This bug is HP SR number 8606223364.
  21590. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  21591. $as_echo_n "checking size of long... " >&6; }
  21592. if test "${ac_cv_sizeof_long+set}" = set; then
  21593. $as_echo_n "(cached) " >&6
  21594. else
  21595. if test "$cross_compiling" = yes; then
  21596. # Depending upon the size, compute the lo and hi bounds.
  21597. cat >conftest.$ac_ext <<_ACEOF
  21598. /* confdefs.h. */
  21599. _ACEOF
  21600. cat confdefs.h >>conftest.$ac_ext
  21601. cat >>conftest.$ac_ext <<_ACEOF
  21602. /* end confdefs.h. */
  21603. $ac_includes_default
  21604. int
  21605. main ()
  21606. {
  21607. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  21608. test_array [0] = 0
  21609. ;
  21610. return 0;
  21611. }
  21612. _ACEOF
  21613. rm -f conftest.$ac_objext
  21614. if { (ac_try="$ac_compile"
  21615. case "(($ac_try" in
  21616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21617. *) ac_try_echo=$ac_try;;
  21618. esac
  21619. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21620. $as_echo "$ac_try_echo") >&5
  21621. (eval "$ac_compile") 2>conftest.er1
  21622. ac_status=$?
  21623. grep -v '^ *+' conftest.er1 >conftest.err
  21624. rm -f conftest.er1
  21625. cat conftest.err >&5
  21626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21627. (exit $ac_status); } && {
  21628. test -z "$ac_c_werror_flag" ||
  21629. test ! -s conftest.err
  21630. } && test -s conftest.$ac_objext; then
  21631. ac_lo=0 ac_mid=0
  21632. while :; do
  21633. cat >conftest.$ac_ext <<_ACEOF
  21634. /* confdefs.h. */
  21635. _ACEOF
  21636. cat confdefs.h >>conftest.$ac_ext
  21637. cat >>conftest.$ac_ext <<_ACEOF
  21638. /* end confdefs.h. */
  21639. $ac_includes_default
  21640. int
  21641. main ()
  21642. {
  21643. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  21644. test_array [0] = 0
  21645. ;
  21646. return 0;
  21647. }
  21648. _ACEOF
  21649. rm -f conftest.$ac_objext
  21650. if { (ac_try="$ac_compile"
  21651. case "(($ac_try" in
  21652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21653. *) ac_try_echo=$ac_try;;
  21654. esac
  21655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21656. $as_echo "$ac_try_echo") >&5
  21657. (eval "$ac_compile") 2>conftest.er1
  21658. ac_status=$?
  21659. grep -v '^ *+' conftest.er1 >conftest.err
  21660. rm -f conftest.er1
  21661. cat conftest.err >&5
  21662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21663. (exit $ac_status); } && {
  21664. test -z "$ac_c_werror_flag" ||
  21665. test ! -s conftest.err
  21666. } && test -s conftest.$ac_objext; then
  21667. ac_hi=$ac_mid; break
  21668. else
  21669. $as_echo "$as_me: failed program was:" >&5
  21670. sed 's/^/| /' conftest.$ac_ext >&5
  21671. ac_lo=`expr $ac_mid + 1`
  21672. if test $ac_lo -le $ac_mid; then
  21673. ac_lo= ac_hi=
  21674. break
  21675. fi
  21676. ac_mid=`expr 2 '*' $ac_mid + 1`
  21677. fi
  21678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21679. done
  21680. else
  21681. $as_echo "$as_me: failed program was:" >&5
  21682. sed 's/^/| /' conftest.$ac_ext >&5
  21683. cat >conftest.$ac_ext <<_ACEOF
  21684. /* confdefs.h. */
  21685. _ACEOF
  21686. cat confdefs.h >>conftest.$ac_ext
  21687. cat >>conftest.$ac_ext <<_ACEOF
  21688. /* end confdefs.h. */
  21689. $ac_includes_default
  21690. int
  21691. main ()
  21692. {
  21693. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  21694. test_array [0] = 0
  21695. ;
  21696. return 0;
  21697. }
  21698. _ACEOF
  21699. rm -f conftest.$ac_objext
  21700. if { (ac_try="$ac_compile"
  21701. case "(($ac_try" in
  21702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21703. *) ac_try_echo=$ac_try;;
  21704. esac
  21705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21706. $as_echo "$ac_try_echo") >&5
  21707. (eval "$ac_compile") 2>conftest.er1
  21708. ac_status=$?
  21709. grep -v '^ *+' conftest.er1 >conftest.err
  21710. rm -f conftest.er1
  21711. cat conftest.err >&5
  21712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21713. (exit $ac_status); } && {
  21714. test -z "$ac_c_werror_flag" ||
  21715. test ! -s conftest.err
  21716. } && test -s conftest.$ac_objext; then
  21717. ac_hi=-1 ac_mid=-1
  21718. while :; do
  21719. cat >conftest.$ac_ext <<_ACEOF
  21720. /* confdefs.h. */
  21721. _ACEOF
  21722. cat confdefs.h >>conftest.$ac_ext
  21723. cat >>conftest.$ac_ext <<_ACEOF
  21724. /* end confdefs.h. */
  21725. $ac_includes_default
  21726. int
  21727. main ()
  21728. {
  21729. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  21730. test_array [0] = 0
  21731. ;
  21732. return 0;
  21733. }
  21734. _ACEOF
  21735. rm -f conftest.$ac_objext
  21736. if { (ac_try="$ac_compile"
  21737. case "(($ac_try" in
  21738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21739. *) ac_try_echo=$ac_try;;
  21740. esac
  21741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21742. $as_echo "$ac_try_echo") >&5
  21743. (eval "$ac_compile") 2>conftest.er1
  21744. ac_status=$?
  21745. grep -v '^ *+' conftest.er1 >conftest.err
  21746. rm -f conftest.er1
  21747. cat conftest.err >&5
  21748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21749. (exit $ac_status); } && {
  21750. test -z "$ac_c_werror_flag" ||
  21751. test ! -s conftest.err
  21752. } && test -s conftest.$ac_objext; then
  21753. ac_lo=$ac_mid; break
  21754. else
  21755. $as_echo "$as_me: failed program was:" >&5
  21756. sed 's/^/| /' conftest.$ac_ext >&5
  21757. ac_hi=`expr '(' $ac_mid ')' - 1`
  21758. if test $ac_mid -le $ac_hi; then
  21759. ac_lo= ac_hi=
  21760. break
  21761. fi
  21762. ac_mid=`expr 2 '*' $ac_mid`
  21763. fi
  21764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21765. done
  21766. else
  21767. $as_echo "$as_me: failed program was:" >&5
  21768. sed 's/^/| /' conftest.$ac_ext >&5
  21769. ac_lo= ac_hi=
  21770. fi
  21771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21772. fi
  21773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21774. # Binary search between lo and hi bounds.
  21775. while test "x$ac_lo" != "x$ac_hi"; do
  21776. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  21777. cat >conftest.$ac_ext <<_ACEOF
  21778. /* confdefs.h. */
  21779. _ACEOF
  21780. cat confdefs.h >>conftest.$ac_ext
  21781. cat >>conftest.$ac_ext <<_ACEOF
  21782. /* end confdefs.h. */
  21783. $ac_includes_default
  21784. int
  21785. main ()
  21786. {
  21787. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  21788. test_array [0] = 0
  21789. ;
  21790. return 0;
  21791. }
  21792. _ACEOF
  21793. rm -f conftest.$ac_objext
  21794. if { (ac_try="$ac_compile"
  21795. case "(($ac_try" in
  21796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21797. *) ac_try_echo=$ac_try;;
  21798. esac
  21799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21800. $as_echo "$ac_try_echo") >&5
  21801. (eval "$ac_compile") 2>conftest.er1
  21802. ac_status=$?
  21803. grep -v '^ *+' conftest.er1 >conftest.err
  21804. rm -f conftest.er1
  21805. cat conftest.err >&5
  21806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21807. (exit $ac_status); } && {
  21808. test -z "$ac_c_werror_flag" ||
  21809. test ! -s conftest.err
  21810. } && test -s conftest.$ac_objext; then
  21811. ac_hi=$ac_mid
  21812. else
  21813. $as_echo "$as_me: failed program was:" >&5
  21814. sed 's/^/| /' conftest.$ac_ext >&5
  21815. ac_lo=`expr '(' $ac_mid ')' + 1`
  21816. fi
  21817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21818. done
  21819. case $ac_lo in
  21820. ?*) ac_cv_sizeof_long=$ac_lo;;
  21821. '') if test "$ac_cv_type_long" = yes; then
  21822. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  21823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21824. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  21825. See \`config.log' for more details." >&5
  21826. $as_echo "$as_me: error: cannot compute sizeof (long)
  21827. See \`config.log' for more details." >&2;}
  21828. { (exit 77); exit 77; }; }; }
  21829. else
  21830. ac_cv_sizeof_long=0
  21831. fi ;;
  21832. esac
  21833. else
  21834. cat >conftest.$ac_ext <<_ACEOF
  21835. /* confdefs.h. */
  21836. _ACEOF
  21837. cat confdefs.h >>conftest.$ac_ext
  21838. cat >>conftest.$ac_ext <<_ACEOF
  21839. /* end confdefs.h. */
  21840. $ac_includes_default
  21841. static long int longval () { return (long int) (sizeof (long)); }
  21842. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  21843. #include <stdio.h>
  21844. #include <stdlib.h>
  21845. int
  21846. main ()
  21847. {
  21848. FILE *f = fopen ("conftest.val", "w");
  21849. if (! f)
  21850. return 1;
  21851. if (((long int) (sizeof (long))) < 0)
  21852. {
  21853. long int i = longval ();
  21854. if (i != ((long int) (sizeof (long))))
  21855. return 1;
  21856. fprintf (f, "%ld", i);
  21857. }
  21858. else
  21859. {
  21860. unsigned long int i = ulongval ();
  21861. if (i != ((long int) (sizeof (long))))
  21862. return 1;
  21863. fprintf (f, "%lu", i);
  21864. }
  21865. /* Do not output a trailing newline, as this causes \r\n confusion
  21866. on some platforms. */
  21867. return ferror (f) || fclose (f) != 0;
  21868. ;
  21869. return 0;
  21870. }
  21871. _ACEOF
  21872. rm -f conftest$ac_exeext
  21873. if { (ac_try="$ac_link"
  21874. case "(($ac_try" in
  21875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21876. *) ac_try_echo=$ac_try;;
  21877. esac
  21878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21879. $as_echo "$ac_try_echo") >&5
  21880. (eval "$ac_link") 2>&5
  21881. ac_status=$?
  21882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21883. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21884. { (case "(($ac_try" in
  21885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21886. *) ac_try_echo=$ac_try;;
  21887. esac
  21888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21889. $as_echo "$ac_try_echo") >&5
  21890. (eval "$ac_try") 2>&5
  21891. ac_status=$?
  21892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21893. (exit $ac_status); }; }; then
  21894. ac_cv_sizeof_long=`cat conftest.val`
  21895. else
  21896. $as_echo "$as_me: program exited with status $ac_status" >&5
  21897. $as_echo "$as_me: failed program was:" >&5
  21898. sed 's/^/| /' conftest.$ac_ext >&5
  21899. ( exit $ac_status )
  21900. if test "$ac_cv_type_long" = yes; then
  21901. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  21902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21903. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  21904. See \`config.log' for more details." >&5
  21905. $as_echo "$as_me: error: cannot compute sizeof (long)
  21906. See \`config.log' for more details." >&2;}
  21907. { (exit 77); exit 77; }; }; }
  21908. else
  21909. ac_cv_sizeof_long=0
  21910. fi
  21911. fi
  21912. rm -rf conftest.dSYM
  21913. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21914. fi
  21915. rm -f conftest.val
  21916. fi
  21917. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  21918. $as_echo "$ac_cv_sizeof_long" >&6; }
  21919. cat >>confdefs.h <<_ACEOF
  21920. #define SIZEOF_LONG $ac_cv_sizeof_long
  21921. _ACEOF
  21922. # The cast to long int works around a bug in the HP C Compiler
  21923. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21924. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21925. # This bug is HP SR number 8606223364.
  21926. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  21927. $as_echo_n "checking size of long long... " >&6; }
  21928. if test "${ac_cv_sizeof_long_long+set}" = set; then
  21929. $as_echo_n "(cached) " >&6
  21930. else
  21931. if test "$cross_compiling" = yes; then
  21932. # Depending upon the size, compute the lo and hi bounds.
  21933. cat >conftest.$ac_ext <<_ACEOF
  21934. /* confdefs.h. */
  21935. _ACEOF
  21936. cat confdefs.h >>conftest.$ac_ext
  21937. cat >>conftest.$ac_ext <<_ACEOF
  21938. /* end confdefs.h. */
  21939. $ac_includes_default
  21940. int
  21941. main ()
  21942. {
  21943. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  21944. test_array [0] = 0
  21945. ;
  21946. return 0;
  21947. }
  21948. _ACEOF
  21949. rm -f conftest.$ac_objext
  21950. if { (ac_try="$ac_compile"
  21951. case "(($ac_try" in
  21952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21953. *) ac_try_echo=$ac_try;;
  21954. esac
  21955. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21956. $as_echo "$ac_try_echo") >&5
  21957. (eval "$ac_compile") 2>conftest.er1
  21958. ac_status=$?
  21959. grep -v '^ *+' conftest.er1 >conftest.err
  21960. rm -f conftest.er1
  21961. cat conftest.err >&5
  21962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21963. (exit $ac_status); } && {
  21964. test -z "$ac_c_werror_flag" ||
  21965. test ! -s conftest.err
  21966. } && test -s conftest.$ac_objext; then
  21967. ac_lo=0 ac_mid=0
  21968. while :; do
  21969. cat >conftest.$ac_ext <<_ACEOF
  21970. /* confdefs.h. */
  21971. _ACEOF
  21972. cat confdefs.h >>conftest.$ac_ext
  21973. cat >>conftest.$ac_ext <<_ACEOF
  21974. /* end confdefs.h. */
  21975. $ac_includes_default
  21976. int
  21977. main ()
  21978. {
  21979. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  21980. test_array [0] = 0
  21981. ;
  21982. return 0;
  21983. }
  21984. _ACEOF
  21985. rm -f conftest.$ac_objext
  21986. if { (ac_try="$ac_compile"
  21987. case "(($ac_try" in
  21988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21989. *) ac_try_echo=$ac_try;;
  21990. esac
  21991. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21992. $as_echo "$ac_try_echo") >&5
  21993. (eval "$ac_compile") 2>conftest.er1
  21994. ac_status=$?
  21995. grep -v '^ *+' conftest.er1 >conftest.err
  21996. rm -f conftest.er1
  21997. cat conftest.err >&5
  21998. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21999. (exit $ac_status); } && {
  22000. test -z "$ac_c_werror_flag" ||
  22001. test ! -s conftest.err
  22002. } && test -s conftest.$ac_objext; then
  22003. ac_hi=$ac_mid; break
  22004. else
  22005. $as_echo "$as_me: failed program was:" >&5
  22006. sed 's/^/| /' conftest.$ac_ext >&5
  22007. ac_lo=`expr $ac_mid + 1`
  22008. if test $ac_lo -le $ac_mid; then
  22009. ac_lo= ac_hi=
  22010. break
  22011. fi
  22012. ac_mid=`expr 2 '*' $ac_mid + 1`
  22013. fi
  22014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22015. done
  22016. else
  22017. $as_echo "$as_me: failed program was:" >&5
  22018. sed 's/^/| /' conftest.$ac_ext >&5
  22019. cat >conftest.$ac_ext <<_ACEOF
  22020. /* confdefs.h. */
  22021. _ACEOF
  22022. cat confdefs.h >>conftest.$ac_ext
  22023. cat >>conftest.$ac_ext <<_ACEOF
  22024. /* end confdefs.h. */
  22025. $ac_includes_default
  22026. int
  22027. main ()
  22028. {
  22029. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  22030. test_array [0] = 0
  22031. ;
  22032. return 0;
  22033. }
  22034. _ACEOF
  22035. rm -f conftest.$ac_objext
  22036. if { (ac_try="$ac_compile"
  22037. case "(($ac_try" in
  22038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22039. *) ac_try_echo=$ac_try;;
  22040. esac
  22041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22042. $as_echo "$ac_try_echo") >&5
  22043. (eval "$ac_compile") 2>conftest.er1
  22044. ac_status=$?
  22045. grep -v '^ *+' conftest.er1 >conftest.err
  22046. rm -f conftest.er1
  22047. cat conftest.err >&5
  22048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22049. (exit $ac_status); } && {
  22050. test -z "$ac_c_werror_flag" ||
  22051. test ! -s conftest.err
  22052. } && test -s conftest.$ac_objext; then
  22053. ac_hi=-1 ac_mid=-1
  22054. while :; do
  22055. cat >conftest.$ac_ext <<_ACEOF
  22056. /* confdefs.h. */
  22057. _ACEOF
  22058. cat confdefs.h >>conftest.$ac_ext
  22059. cat >>conftest.$ac_ext <<_ACEOF
  22060. /* end confdefs.h. */
  22061. $ac_includes_default
  22062. int
  22063. main ()
  22064. {
  22065. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  22066. test_array [0] = 0
  22067. ;
  22068. return 0;
  22069. }
  22070. _ACEOF
  22071. rm -f conftest.$ac_objext
  22072. if { (ac_try="$ac_compile"
  22073. case "(($ac_try" in
  22074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22075. *) ac_try_echo=$ac_try;;
  22076. esac
  22077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22078. $as_echo "$ac_try_echo") >&5
  22079. (eval "$ac_compile") 2>conftest.er1
  22080. ac_status=$?
  22081. grep -v '^ *+' conftest.er1 >conftest.err
  22082. rm -f conftest.er1
  22083. cat conftest.err >&5
  22084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22085. (exit $ac_status); } && {
  22086. test -z "$ac_c_werror_flag" ||
  22087. test ! -s conftest.err
  22088. } && test -s conftest.$ac_objext; then
  22089. ac_lo=$ac_mid; break
  22090. else
  22091. $as_echo "$as_me: failed program was:" >&5
  22092. sed 's/^/| /' conftest.$ac_ext >&5
  22093. ac_hi=`expr '(' $ac_mid ')' - 1`
  22094. if test $ac_mid -le $ac_hi; then
  22095. ac_lo= ac_hi=
  22096. break
  22097. fi
  22098. ac_mid=`expr 2 '*' $ac_mid`
  22099. fi
  22100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22101. done
  22102. else
  22103. $as_echo "$as_me: failed program was:" >&5
  22104. sed 's/^/| /' conftest.$ac_ext >&5
  22105. ac_lo= ac_hi=
  22106. fi
  22107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22108. fi
  22109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22110. # Binary search between lo and hi bounds.
  22111. while test "x$ac_lo" != "x$ac_hi"; do
  22112. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22113. cat >conftest.$ac_ext <<_ACEOF
  22114. /* confdefs.h. */
  22115. _ACEOF
  22116. cat confdefs.h >>conftest.$ac_ext
  22117. cat >>conftest.$ac_ext <<_ACEOF
  22118. /* end confdefs.h. */
  22119. $ac_includes_default
  22120. int
  22121. main ()
  22122. {
  22123. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  22124. test_array [0] = 0
  22125. ;
  22126. return 0;
  22127. }
  22128. _ACEOF
  22129. rm -f conftest.$ac_objext
  22130. if { (ac_try="$ac_compile"
  22131. case "(($ac_try" in
  22132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22133. *) ac_try_echo=$ac_try;;
  22134. esac
  22135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22136. $as_echo "$ac_try_echo") >&5
  22137. (eval "$ac_compile") 2>conftest.er1
  22138. ac_status=$?
  22139. grep -v '^ *+' conftest.er1 >conftest.err
  22140. rm -f conftest.er1
  22141. cat conftest.err >&5
  22142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22143. (exit $ac_status); } && {
  22144. test -z "$ac_c_werror_flag" ||
  22145. test ! -s conftest.err
  22146. } && test -s conftest.$ac_objext; then
  22147. ac_hi=$ac_mid
  22148. else
  22149. $as_echo "$as_me: failed program was:" >&5
  22150. sed 's/^/| /' conftest.$ac_ext >&5
  22151. ac_lo=`expr '(' $ac_mid ')' + 1`
  22152. fi
  22153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22154. done
  22155. case $ac_lo in
  22156. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  22157. '') if test "$ac_cv_type_long_long" = yes; then
  22158. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22159. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22160. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  22161. See \`config.log' for more details." >&5
  22162. $as_echo "$as_me: error: cannot compute sizeof (long long)
  22163. See \`config.log' for more details." >&2;}
  22164. { (exit 77); exit 77; }; }; }
  22165. else
  22166. ac_cv_sizeof_long_long=0
  22167. fi ;;
  22168. esac
  22169. else
  22170. cat >conftest.$ac_ext <<_ACEOF
  22171. /* confdefs.h. */
  22172. _ACEOF
  22173. cat confdefs.h >>conftest.$ac_ext
  22174. cat >>conftest.$ac_ext <<_ACEOF
  22175. /* end confdefs.h. */
  22176. $ac_includes_default
  22177. static long int longval () { return (long int) (sizeof (long long)); }
  22178. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  22179. #include <stdio.h>
  22180. #include <stdlib.h>
  22181. int
  22182. main ()
  22183. {
  22184. FILE *f = fopen ("conftest.val", "w");
  22185. if (! f)
  22186. return 1;
  22187. if (((long int) (sizeof (long long))) < 0)
  22188. {
  22189. long int i = longval ();
  22190. if (i != ((long int) (sizeof (long long))))
  22191. return 1;
  22192. fprintf (f, "%ld", i);
  22193. }
  22194. else
  22195. {
  22196. unsigned long int i = ulongval ();
  22197. if (i != ((long int) (sizeof (long long))))
  22198. return 1;
  22199. fprintf (f, "%lu", i);
  22200. }
  22201. /* Do not output a trailing newline, as this causes \r\n confusion
  22202. on some platforms. */
  22203. return ferror (f) || fclose (f) != 0;
  22204. ;
  22205. return 0;
  22206. }
  22207. _ACEOF
  22208. rm -f conftest$ac_exeext
  22209. if { (ac_try="$ac_link"
  22210. case "(($ac_try" in
  22211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22212. *) ac_try_echo=$ac_try;;
  22213. esac
  22214. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22215. $as_echo "$ac_try_echo") >&5
  22216. (eval "$ac_link") 2>&5
  22217. ac_status=$?
  22218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22219. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22220. { (case "(($ac_try" in
  22221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22222. *) ac_try_echo=$ac_try;;
  22223. esac
  22224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22225. $as_echo "$ac_try_echo") >&5
  22226. (eval "$ac_try") 2>&5
  22227. ac_status=$?
  22228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22229. (exit $ac_status); }; }; then
  22230. ac_cv_sizeof_long_long=`cat conftest.val`
  22231. else
  22232. $as_echo "$as_me: program exited with status $ac_status" >&5
  22233. $as_echo "$as_me: failed program was:" >&5
  22234. sed 's/^/| /' conftest.$ac_ext >&5
  22235. ( exit $ac_status )
  22236. if test "$ac_cv_type_long_long" = yes; then
  22237. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22239. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  22240. See \`config.log' for more details." >&5
  22241. $as_echo "$as_me: error: cannot compute sizeof (long long)
  22242. See \`config.log' for more details." >&2;}
  22243. { (exit 77); exit 77; }; }; }
  22244. else
  22245. ac_cv_sizeof_long_long=0
  22246. fi
  22247. fi
  22248. rm -rf conftest.dSYM
  22249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22250. fi
  22251. rm -f conftest.val
  22252. fi
  22253. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  22254. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  22255. cat >>confdefs.h <<_ACEOF
  22256. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  22257. _ACEOF
  22258. # The cast to long int works around a bug in the HP C Compiler
  22259. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22260. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22261. # This bug is HP SR number 8606223364.
  22262. { $as_echo "$as_me:$LINENO: checking size of char *" >&5
  22263. $as_echo_n "checking size of char *... " >&6; }
  22264. if test "${ac_cv_sizeof_char_p+set}" = set; then
  22265. $as_echo_n "(cached) " >&6
  22266. else
  22267. if test "$cross_compiling" = yes; then
  22268. # Depending upon the size, compute the lo and hi bounds.
  22269. cat >conftest.$ac_ext <<_ACEOF
  22270. /* confdefs.h. */
  22271. _ACEOF
  22272. cat confdefs.h >>conftest.$ac_ext
  22273. cat >>conftest.$ac_ext <<_ACEOF
  22274. /* end confdefs.h. */
  22275. $ac_includes_default
  22276. int
  22277. main ()
  22278. {
  22279. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
  22280. test_array [0] = 0
  22281. ;
  22282. return 0;
  22283. }
  22284. _ACEOF
  22285. rm -f conftest.$ac_objext
  22286. if { (ac_try="$ac_compile"
  22287. case "(($ac_try" in
  22288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22289. *) ac_try_echo=$ac_try;;
  22290. esac
  22291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22292. $as_echo "$ac_try_echo") >&5
  22293. (eval "$ac_compile") 2>conftest.er1
  22294. ac_status=$?
  22295. grep -v '^ *+' conftest.er1 >conftest.err
  22296. rm -f conftest.er1
  22297. cat conftest.err >&5
  22298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22299. (exit $ac_status); } && {
  22300. test -z "$ac_c_werror_flag" ||
  22301. test ! -s conftest.err
  22302. } && test -s conftest.$ac_objext; then
  22303. ac_lo=0 ac_mid=0
  22304. while :; do
  22305. cat >conftest.$ac_ext <<_ACEOF
  22306. /* confdefs.h. */
  22307. _ACEOF
  22308. cat confdefs.h >>conftest.$ac_ext
  22309. cat >>conftest.$ac_ext <<_ACEOF
  22310. /* end confdefs.h. */
  22311. $ac_includes_default
  22312. int
  22313. main ()
  22314. {
  22315. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
  22316. test_array [0] = 0
  22317. ;
  22318. return 0;
  22319. }
  22320. _ACEOF
  22321. rm -f conftest.$ac_objext
  22322. if { (ac_try="$ac_compile"
  22323. case "(($ac_try" in
  22324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22325. *) ac_try_echo=$ac_try;;
  22326. esac
  22327. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22328. $as_echo "$ac_try_echo") >&5
  22329. (eval "$ac_compile") 2>conftest.er1
  22330. ac_status=$?
  22331. grep -v '^ *+' conftest.er1 >conftest.err
  22332. rm -f conftest.er1
  22333. cat conftest.err >&5
  22334. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22335. (exit $ac_status); } && {
  22336. test -z "$ac_c_werror_flag" ||
  22337. test ! -s conftest.err
  22338. } && test -s conftest.$ac_objext; then
  22339. ac_hi=$ac_mid; break
  22340. else
  22341. $as_echo "$as_me: failed program was:" >&5
  22342. sed 's/^/| /' conftest.$ac_ext >&5
  22343. ac_lo=`expr $ac_mid + 1`
  22344. if test $ac_lo -le $ac_mid; then
  22345. ac_lo= ac_hi=
  22346. break
  22347. fi
  22348. ac_mid=`expr 2 '*' $ac_mid + 1`
  22349. fi
  22350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22351. done
  22352. else
  22353. $as_echo "$as_me: failed program was:" >&5
  22354. sed 's/^/| /' conftest.$ac_ext >&5
  22355. cat >conftest.$ac_ext <<_ACEOF
  22356. /* confdefs.h. */
  22357. _ACEOF
  22358. cat confdefs.h >>conftest.$ac_ext
  22359. cat >>conftest.$ac_ext <<_ACEOF
  22360. /* end confdefs.h. */
  22361. $ac_includes_default
  22362. int
  22363. main ()
  22364. {
  22365. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
  22366. test_array [0] = 0
  22367. ;
  22368. return 0;
  22369. }
  22370. _ACEOF
  22371. rm -f conftest.$ac_objext
  22372. if { (ac_try="$ac_compile"
  22373. case "(($ac_try" in
  22374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22375. *) ac_try_echo=$ac_try;;
  22376. esac
  22377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22378. $as_echo "$ac_try_echo") >&5
  22379. (eval "$ac_compile") 2>conftest.er1
  22380. ac_status=$?
  22381. grep -v '^ *+' conftest.er1 >conftest.err
  22382. rm -f conftest.er1
  22383. cat conftest.err >&5
  22384. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22385. (exit $ac_status); } && {
  22386. test -z "$ac_c_werror_flag" ||
  22387. test ! -s conftest.err
  22388. } && test -s conftest.$ac_objext; then
  22389. ac_hi=-1 ac_mid=-1
  22390. while :; do
  22391. cat >conftest.$ac_ext <<_ACEOF
  22392. /* confdefs.h. */
  22393. _ACEOF
  22394. cat confdefs.h >>conftest.$ac_ext
  22395. cat >>conftest.$ac_ext <<_ACEOF
  22396. /* end confdefs.h. */
  22397. $ac_includes_default
  22398. int
  22399. main ()
  22400. {
  22401. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
  22402. test_array [0] = 0
  22403. ;
  22404. return 0;
  22405. }
  22406. _ACEOF
  22407. rm -f conftest.$ac_objext
  22408. if { (ac_try="$ac_compile"
  22409. case "(($ac_try" in
  22410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22411. *) ac_try_echo=$ac_try;;
  22412. esac
  22413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22414. $as_echo "$ac_try_echo") >&5
  22415. (eval "$ac_compile") 2>conftest.er1
  22416. ac_status=$?
  22417. grep -v '^ *+' conftest.er1 >conftest.err
  22418. rm -f conftest.er1
  22419. cat conftest.err >&5
  22420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22421. (exit $ac_status); } && {
  22422. test -z "$ac_c_werror_flag" ||
  22423. test ! -s conftest.err
  22424. } && test -s conftest.$ac_objext; then
  22425. ac_lo=$ac_mid; break
  22426. else
  22427. $as_echo "$as_me: failed program was:" >&5
  22428. sed 's/^/| /' conftest.$ac_ext >&5
  22429. ac_hi=`expr '(' $ac_mid ')' - 1`
  22430. if test $ac_mid -le $ac_hi; then
  22431. ac_lo= ac_hi=
  22432. break
  22433. fi
  22434. ac_mid=`expr 2 '*' $ac_mid`
  22435. fi
  22436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22437. done
  22438. else
  22439. $as_echo "$as_me: failed program was:" >&5
  22440. sed 's/^/| /' conftest.$ac_ext >&5
  22441. ac_lo= ac_hi=
  22442. fi
  22443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22444. fi
  22445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22446. # Binary search between lo and hi bounds.
  22447. while test "x$ac_lo" != "x$ac_hi"; do
  22448. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22449. cat >conftest.$ac_ext <<_ACEOF
  22450. /* confdefs.h. */
  22451. _ACEOF
  22452. cat confdefs.h >>conftest.$ac_ext
  22453. cat >>conftest.$ac_ext <<_ACEOF
  22454. /* end confdefs.h. */
  22455. $ac_includes_default
  22456. int
  22457. main ()
  22458. {
  22459. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
  22460. test_array [0] = 0
  22461. ;
  22462. return 0;
  22463. }
  22464. _ACEOF
  22465. rm -f conftest.$ac_objext
  22466. if { (ac_try="$ac_compile"
  22467. case "(($ac_try" in
  22468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22469. *) ac_try_echo=$ac_try;;
  22470. esac
  22471. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22472. $as_echo "$ac_try_echo") >&5
  22473. (eval "$ac_compile") 2>conftest.er1
  22474. ac_status=$?
  22475. grep -v '^ *+' conftest.er1 >conftest.err
  22476. rm -f conftest.er1
  22477. cat conftest.err >&5
  22478. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22479. (exit $ac_status); } && {
  22480. test -z "$ac_c_werror_flag" ||
  22481. test ! -s conftest.err
  22482. } && test -s conftest.$ac_objext; then
  22483. ac_hi=$ac_mid
  22484. else
  22485. $as_echo "$as_me: failed program was:" >&5
  22486. sed 's/^/| /' conftest.$ac_ext >&5
  22487. ac_lo=`expr '(' $ac_mid ')' + 1`
  22488. fi
  22489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22490. done
  22491. case $ac_lo in
  22492. ?*) ac_cv_sizeof_char_p=$ac_lo;;
  22493. '') if test "$ac_cv_type_char_p" = yes; then
  22494. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22496. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
  22497. See \`config.log' for more details." >&5
  22498. $as_echo "$as_me: error: cannot compute sizeof (char *)
  22499. See \`config.log' for more details." >&2;}
  22500. { (exit 77); exit 77; }; }; }
  22501. else
  22502. ac_cv_sizeof_char_p=0
  22503. fi ;;
  22504. esac
  22505. else
  22506. cat >conftest.$ac_ext <<_ACEOF
  22507. /* confdefs.h. */
  22508. _ACEOF
  22509. cat confdefs.h >>conftest.$ac_ext
  22510. cat >>conftest.$ac_ext <<_ACEOF
  22511. /* end confdefs.h. */
  22512. $ac_includes_default
  22513. static long int longval () { return (long int) (sizeof (char *)); }
  22514. static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
  22515. #include <stdio.h>
  22516. #include <stdlib.h>
  22517. int
  22518. main ()
  22519. {
  22520. FILE *f = fopen ("conftest.val", "w");
  22521. if (! f)
  22522. return 1;
  22523. if (((long int) (sizeof (char *))) < 0)
  22524. {
  22525. long int i = longval ();
  22526. if (i != ((long int) (sizeof (char *))))
  22527. return 1;
  22528. fprintf (f, "%ld", i);
  22529. }
  22530. else
  22531. {
  22532. unsigned long int i = ulongval ();
  22533. if (i != ((long int) (sizeof (char *))))
  22534. return 1;
  22535. fprintf (f, "%lu", i);
  22536. }
  22537. /* Do not output a trailing newline, as this causes \r\n confusion
  22538. on some platforms. */
  22539. return ferror (f) || fclose (f) != 0;
  22540. ;
  22541. return 0;
  22542. }
  22543. _ACEOF
  22544. rm -f conftest$ac_exeext
  22545. if { (ac_try="$ac_link"
  22546. case "(($ac_try" in
  22547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22548. *) ac_try_echo=$ac_try;;
  22549. esac
  22550. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22551. $as_echo "$ac_try_echo") >&5
  22552. (eval "$ac_link") 2>&5
  22553. ac_status=$?
  22554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22555. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22556. { (case "(($ac_try" in
  22557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22558. *) ac_try_echo=$ac_try;;
  22559. esac
  22560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22561. $as_echo "$ac_try_echo") >&5
  22562. (eval "$ac_try") 2>&5
  22563. ac_status=$?
  22564. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22565. (exit $ac_status); }; }; then
  22566. ac_cv_sizeof_char_p=`cat conftest.val`
  22567. else
  22568. $as_echo "$as_me: program exited with status $ac_status" >&5
  22569. $as_echo "$as_me: failed program was:" >&5
  22570. sed 's/^/| /' conftest.$ac_ext >&5
  22571. ( exit $ac_status )
  22572. if test "$ac_cv_type_char_p" = yes; then
  22573. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22575. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
  22576. See \`config.log' for more details." >&5
  22577. $as_echo "$as_me: error: cannot compute sizeof (char *)
  22578. See \`config.log' for more details." >&2;}
  22579. { (exit 77); exit 77; }; }; }
  22580. else
  22581. ac_cv_sizeof_char_p=0
  22582. fi
  22583. fi
  22584. rm -rf conftest.dSYM
  22585. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22586. fi
  22587. rm -f conftest.val
  22588. fi
  22589. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
  22590. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  22591. cat >>confdefs.h <<_ACEOF
  22592. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  22593. _ACEOF
  22594. # The cast to long int works around a bug in the HP C Compiler
  22595. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22596. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22597. # This bug is HP SR number 8606223364.
  22598. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  22599. $as_echo_n "checking size of long... " >&6; }
  22600. if test "${ac_cv_sizeof_long+set}" = set; then
  22601. $as_echo_n "(cached) " >&6
  22602. else
  22603. if test "$cross_compiling" = yes; then
  22604. # Depending upon the size, compute the lo and hi bounds.
  22605. cat >conftest.$ac_ext <<_ACEOF
  22606. /* confdefs.h. */
  22607. _ACEOF
  22608. cat confdefs.h >>conftest.$ac_ext
  22609. cat >>conftest.$ac_ext <<_ACEOF
  22610. /* end confdefs.h. */
  22611. $ac_includes_default
  22612. int
  22613. main ()
  22614. {
  22615. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  22616. test_array [0] = 0
  22617. ;
  22618. return 0;
  22619. }
  22620. _ACEOF
  22621. rm -f conftest.$ac_objext
  22622. if { (ac_try="$ac_compile"
  22623. case "(($ac_try" in
  22624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22625. *) ac_try_echo=$ac_try;;
  22626. esac
  22627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22628. $as_echo "$ac_try_echo") >&5
  22629. (eval "$ac_compile") 2>conftest.er1
  22630. ac_status=$?
  22631. grep -v '^ *+' conftest.er1 >conftest.err
  22632. rm -f conftest.er1
  22633. cat conftest.err >&5
  22634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22635. (exit $ac_status); } && {
  22636. test -z "$ac_c_werror_flag" ||
  22637. test ! -s conftest.err
  22638. } && test -s conftest.$ac_objext; then
  22639. ac_lo=0 ac_mid=0
  22640. while :; do
  22641. cat >conftest.$ac_ext <<_ACEOF
  22642. /* confdefs.h. */
  22643. _ACEOF
  22644. cat confdefs.h >>conftest.$ac_ext
  22645. cat >>conftest.$ac_ext <<_ACEOF
  22646. /* end confdefs.h. */
  22647. $ac_includes_default
  22648. int
  22649. main ()
  22650. {
  22651. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  22652. test_array [0] = 0
  22653. ;
  22654. return 0;
  22655. }
  22656. _ACEOF
  22657. rm -f conftest.$ac_objext
  22658. if { (ac_try="$ac_compile"
  22659. case "(($ac_try" in
  22660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22661. *) ac_try_echo=$ac_try;;
  22662. esac
  22663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22664. $as_echo "$ac_try_echo") >&5
  22665. (eval "$ac_compile") 2>conftest.er1
  22666. ac_status=$?
  22667. grep -v '^ *+' conftest.er1 >conftest.err
  22668. rm -f conftest.er1
  22669. cat conftest.err >&5
  22670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22671. (exit $ac_status); } && {
  22672. test -z "$ac_c_werror_flag" ||
  22673. test ! -s conftest.err
  22674. } && test -s conftest.$ac_objext; then
  22675. ac_hi=$ac_mid; break
  22676. else
  22677. $as_echo "$as_me: failed program was:" >&5
  22678. sed 's/^/| /' conftest.$ac_ext >&5
  22679. ac_lo=`expr $ac_mid + 1`
  22680. if test $ac_lo -le $ac_mid; then
  22681. ac_lo= ac_hi=
  22682. break
  22683. fi
  22684. ac_mid=`expr 2 '*' $ac_mid + 1`
  22685. fi
  22686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22687. done
  22688. else
  22689. $as_echo "$as_me: failed program was:" >&5
  22690. sed 's/^/| /' conftest.$ac_ext >&5
  22691. cat >conftest.$ac_ext <<_ACEOF
  22692. /* confdefs.h. */
  22693. _ACEOF
  22694. cat confdefs.h >>conftest.$ac_ext
  22695. cat >>conftest.$ac_ext <<_ACEOF
  22696. /* end confdefs.h. */
  22697. $ac_includes_default
  22698. int
  22699. main ()
  22700. {
  22701. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  22702. test_array [0] = 0
  22703. ;
  22704. return 0;
  22705. }
  22706. _ACEOF
  22707. rm -f conftest.$ac_objext
  22708. if { (ac_try="$ac_compile"
  22709. case "(($ac_try" in
  22710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22711. *) ac_try_echo=$ac_try;;
  22712. esac
  22713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22714. $as_echo "$ac_try_echo") >&5
  22715. (eval "$ac_compile") 2>conftest.er1
  22716. ac_status=$?
  22717. grep -v '^ *+' conftest.er1 >conftest.err
  22718. rm -f conftest.er1
  22719. cat conftest.err >&5
  22720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22721. (exit $ac_status); } && {
  22722. test -z "$ac_c_werror_flag" ||
  22723. test ! -s conftest.err
  22724. } && test -s conftest.$ac_objext; then
  22725. ac_hi=-1 ac_mid=-1
  22726. while :; do
  22727. cat >conftest.$ac_ext <<_ACEOF
  22728. /* confdefs.h. */
  22729. _ACEOF
  22730. cat confdefs.h >>conftest.$ac_ext
  22731. cat >>conftest.$ac_ext <<_ACEOF
  22732. /* end confdefs.h. */
  22733. $ac_includes_default
  22734. int
  22735. main ()
  22736. {
  22737. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  22738. test_array [0] = 0
  22739. ;
  22740. return 0;
  22741. }
  22742. _ACEOF
  22743. rm -f conftest.$ac_objext
  22744. if { (ac_try="$ac_compile"
  22745. case "(($ac_try" in
  22746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22747. *) ac_try_echo=$ac_try;;
  22748. esac
  22749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22750. $as_echo "$ac_try_echo") >&5
  22751. (eval "$ac_compile") 2>conftest.er1
  22752. ac_status=$?
  22753. grep -v '^ *+' conftest.er1 >conftest.err
  22754. rm -f conftest.er1
  22755. cat conftest.err >&5
  22756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22757. (exit $ac_status); } && {
  22758. test -z "$ac_c_werror_flag" ||
  22759. test ! -s conftest.err
  22760. } && test -s conftest.$ac_objext; then
  22761. ac_lo=$ac_mid; break
  22762. else
  22763. $as_echo "$as_me: failed program was:" >&5
  22764. sed 's/^/| /' conftest.$ac_ext >&5
  22765. ac_hi=`expr '(' $ac_mid ')' - 1`
  22766. if test $ac_mid -le $ac_hi; then
  22767. ac_lo= ac_hi=
  22768. break
  22769. fi
  22770. ac_mid=`expr 2 '*' $ac_mid`
  22771. fi
  22772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22773. done
  22774. else
  22775. $as_echo "$as_me: failed program was:" >&5
  22776. sed 's/^/| /' conftest.$ac_ext >&5
  22777. ac_lo= ac_hi=
  22778. fi
  22779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22780. fi
  22781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22782. # Binary search between lo and hi bounds.
  22783. while test "x$ac_lo" != "x$ac_hi"; do
  22784. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22785. cat >conftest.$ac_ext <<_ACEOF
  22786. /* confdefs.h. */
  22787. _ACEOF
  22788. cat confdefs.h >>conftest.$ac_ext
  22789. cat >>conftest.$ac_ext <<_ACEOF
  22790. /* end confdefs.h. */
  22791. $ac_includes_default
  22792. int
  22793. main ()
  22794. {
  22795. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  22796. test_array [0] = 0
  22797. ;
  22798. return 0;
  22799. }
  22800. _ACEOF
  22801. rm -f conftest.$ac_objext
  22802. if { (ac_try="$ac_compile"
  22803. case "(($ac_try" in
  22804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22805. *) ac_try_echo=$ac_try;;
  22806. esac
  22807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22808. $as_echo "$ac_try_echo") >&5
  22809. (eval "$ac_compile") 2>conftest.er1
  22810. ac_status=$?
  22811. grep -v '^ *+' conftest.er1 >conftest.err
  22812. rm -f conftest.er1
  22813. cat conftest.err >&5
  22814. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22815. (exit $ac_status); } && {
  22816. test -z "$ac_c_werror_flag" ||
  22817. test ! -s conftest.err
  22818. } && test -s conftest.$ac_objext; then
  22819. ac_hi=$ac_mid
  22820. else
  22821. $as_echo "$as_me: failed program was:" >&5
  22822. sed 's/^/| /' conftest.$ac_ext >&5
  22823. ac_lo=`expr '(' $ac_mid ')' + 1`
  22824. fi
  22825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22826. done
  22827. case $ac_lo in
  22828. ?*) ac_cv_sizeof_long=$ac_lo;;
  22829. '') if test "$ac_cv_type_long" = yes; then
  22830. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22831. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22832. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  22833. See \`config.log' for more details." >&5
  22834. $as_echo "$as_me: error: cannot compute sizeof (long)
  22835. See \`config.log' for more details." >&2;}
  22836. { (exit 77); exit 77; }; }; }
  22837. else
  22838. ac_cv_sizeof_long=0
  22839. fi ;;
  22840. esac
  22841. else
  22842. cat >conftest.$ac_ext <<_ACEOF
  22843. /* confdefs.h. */
  22844. _ACEOF
  22845. cat confdefs.h >>conftest.$ac_ext
  22846. cat >>conftest.$ac_ext <<_ACEOF
  22847. /* end confdefs.h. */
  22848. $ac_includes_default
  22849. static long int longval () { return (long int) (sizeof (long)); }
  22850. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  22851. #include <stdio.h>
  22852. #include <stdlib.h>
  22853. int
  22854. main ()
  22855. {
  22856. FILE *f = fopen ("conftest.val", "w");
  22857. if (! f)
  22858. return 1;
  22859. if (((long int) (sizeof (long))) < 0)
  22860. {
  22861. long int i = longval ();
  22862. if (i != ((long int) (sizeof (long))))
  22863. return 1;
  22864. fprintf (f, "%ld", i);
  22865. }
  22866. else
  22867. {
  22868. unsigned long int i = ulongval ();
  22869. if (i != ((long int) (sizeof (long))))
  22870. return 1;
  22871. fprintf (f, "%lu", i);
  22872. }
  22873. /* Do not output a trailing newline, as this causes \r\n confusion
  22874. on some platforms. */
  22875. return ferror (f) || fclose (f) != 0;
  22876. ;
  22877. return 0;
  22878. }
  22879. _ACEOF
  22880. rm -f conftest$ac_exeext
  22881. if { (ac_try="$ac_link"
  22882. case "(($ac_try" in
  22883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22884. *) ac_try_echo=$ac_try;;
  22885. esac
  22886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22887. $as_echo "$ac_try_echo") >&5
  22888. (eval "$ac_link") 2>&5
  22889. ac_status=$?
  22890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22891. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22892. { (case "(($ac_try" in
  22893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22894. *) ac_try_echo=$ac_try;;
  22895. esac
  22896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22897. $as_echo "$ac_try_echo") >&5
  22898. (eval "$ac_try") 2>&5
  22899. ac_status=$?
  22900. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22901. (exit $ac_status); }; }; then
  22902. ac_cv_sizeof_long=`cat conftest.val`
  22903. else
  22904. $as_echo "$as_me: program exited with status $ac_status" >&5
  22905. $as_echo "$as_me: failed program was:" >&5
  22906. sed 's/^/| /' conftest.$ac_ext >&5
  22907. ( exit $ac_status )
  22908. if test "$ac_cv_type_long" = yes; then
  22909. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22910. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22911. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  22912. See \`config.log' for more details." >&5
  22913. $as_echo "$as_me: error: cannot compute sizeof (long)
  22914. See \`config.log' for more details." >&2;}
  22915. { (exit 77); exit 77; }; }; }
  22916. else
  22917. ac_cv_sizeof_long=0
  22918. fi
  22919. fi
  22920. rm -rf conftest.dSYM
  22921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22922. fi
  22923. rm -f conftest.val
  22924. fi
  22925. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  22926. $as_echo "$ac_cv_sizeof_long" >&6; }
  22927. cat >>confdefs.h <<_ACEOF
  22928. #define SIZEOF_LONG $ac_cv_sizeof_long
  22929. _ACEOF
  22930. # The cast to long int works around a bug in the HP C Compiler
  22931. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22932. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22933. # This bug is HP SR number 8606223364.
  22934. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  22935. $as_echo_n "checking size of long long... " >&6; }
  22936. if test "${ac_cv_sizeof_long_long+set}" = set; then
  22937. $as_echo_n "(cached) " >&6
  22938. else
  22939. if test "$cross_compiling" = yes; then
  22940. # Depending upon the size, compute the lo and hi bounds.
  22941. cat >conftest.$ac_ext <<_ACEOF
  22942. /* confdefs.h. */
  22943. _ACEOF
  22944. cat confdefs.h >>conftest.$ac_ext
  22945. cat >>conftest.$ac_ext <<_ACEOF
  22946. /* end confdefs.h. */
  22947. $ac_includes_default
  22948. int
  22949. main ()
  22950. {
  22951. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  22952. test_array [0] = 0
  22953. ;
  22954. return 0;
  22955. }
  22956. _ACEOF
  22957. rm -f conftest.$ac_objext
  22958. if { (ac_try="$ac_compile"
  22959. case "(($ac_try" in
  22960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22961. *) ac_try_echo=$ac_try;;
  22962. esac
  22963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22964. $as_echo "$ac_try_echo") >&5
  22965. (eval "$ac_compile") 2>conftest.er1
  22966. ac_status=$?
  22967. grep -v '^ *+' conftest.er1 >conftest.err
  22968. rm -f conftest.er1
  22969. cat conftest.err >&5
  22970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22971. (exit $ac_status); } && {
  22972. test -z "$ac_c_werror_flag" ||
  22973. test ! -s conftest.err
  22974. } && test -s conftest.$ac_objext; then
  22975. ac_lo=0 ac_mid=0
  22976. while :; do
  22977. cat >conftest.$ac_ext <<_ACEOF
  22978. /* confdefs.h. */
  22979. _ACEOF
  22980. cat confdefs.h >>conftest.$ac_ext
  22981. cat >>conftest.$ac_ext <<_ACEOF
  22982. /* end confdefs.h. */
  22983. $ac_includes_default
  22984. int
  22985. main ()
  22986. {
  22987. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  22988. test_array [0] = 0
  22989. ;
  22990. return 0;
  22991. }
  22992. _ACEOF
  22993. rm -f conftest.$ac_objext
  22994. if { (ac_try="$ac_compile"
  22995. case "(($ac_try" in
  22996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22997. *) ac_try_echo=$ac_try;;
  22998. esac
  22999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23000. $as_echo "$ac_try_echo") >&5
  23001. (eval "$ac_compile") 2>conftest.er1
  23002. ac_status=$?
  23003. grep -v '^ *+' conftest.er1 >conftest.err
  23004. rm -f conftest.er1
  23005. cat conftest.err >&5
  23006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23007. (exit $ac_status); } && {
  23008. test -z "$ac_c_werror_flag" ||
  23009. test ! -s conftest.err
  23010. } && test -s conftest.$ac_objext; then
  23011. ac_hi=$ac_mid; break
  23012. else
  23013. $as_echo "$as_me: failed program was:" >&5
  23014. sed 's/^/| /' conftest.$ac_ext >&5
  23015. ac_lo=`expr $ac_mid + 1`
  23016. if test $ac_lo -le $ac_mid; then
  23017. ac_lo= ac_hi=
  23018. break
  23019. fi
  23020. ac_mid=`expr 2 '*' $ac_mid + 1`
  23021. fi
  23022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23023. done
  23024. else
  23025. $as_echo "$as_me: failed program was:" >&5
  23026. sed 's/^/| /' conftest.$ac_ext >&5
  23027. cat >conftest.$ac_ext <<_ACEOF
  23028. /* confdefs.h. */
  23029. _ACEOF
  23030. cat confdefs.h >>conftest.$ac_ext
  23031. cat >>conftest.$ac_ext <<_ACEOF
  23032. /* end confdefs.h. */
  23033. $ac_includes_default
  23034. int
  23035. main ()
  23036. {
  23037. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  23038. test_array [0] = 0
  23039. ;
  23040. return 0;
  23041. }
  23042. _ACEOF
  23043. rm -f conftest.$ac_objext
  23044. if { (ac_try="$ac_compile"
  23045. case "(($ac_try" in
  23046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23047. *) ac_try_echo=$ac_try;;
  23048. esac
  23049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23050. $as_echo "$ac_try_echo") >&5
  23051. (eval "$ac_compile") 2>conftest.er1
  23052. ac_status=$?
  23053. grep -v '^ *+' conftest.er1 >conftest.err
  23054. rm -f conftest.er1
  23055. cat conftest.err >&5
  23056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23057. (exit $ac_status); } && {
  23058. test -z "$ac_c_werror_flag" ||
  23059. test ! -s conftest.err
  23060. } && test -s conftest.$ac_objext; then
  23061. ac_hi=-1 ac_mid=-1
  23062. while :; do
  23063. cat >conftest.$ac_ext <<_ACEOF
  23064. /* confdefs.h. */
  23065. _ACEOF
  23066. cat confdefs.h >>conftest.$ac_ext
  23067. cat >>conftest.$ac_ext <<_ACEOF
  23068. /* end confdefs.h. */
  23069. $ac_includes_default
  23070. int
  23071. main ()
  23072. {
  23073. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  23074. test_array [0] = 0
  23075. ;
  23076. return 0;
  23077. }
  23078. _ACEOF
  23079. rm -f conftest.$ac_objext
  23080. if { (ac_try="$ac_compile"
  23081. case "(($ac_try" in
  23082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23083. *) ac_try_echo=$ac_try;;
  23084. esac
  23085. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23086. $as_echo "$ac_try_echo") >&5
  23087. (eval "$ac_compile") 2>conftest.er1
  23088. ac_status=$?
  23089. grep -v '^ *+' conftest.er1 >conftest.err
  23090. rm -f conftest.er1
  23091. cat conftest.err >&5
  23092. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23093. (exit $ac_status); } && {
  23094. test -z "$ac_c_werror_flag" ||
  23095. test ! -s conftest.err
  23096. } && test -s conftest.$ac_objext; then
  23097. ac_lo=$ac_mid; break
  23098. else
  23099. $as_echo "$as_me: failed program was:" >&5
  23100. sed 's/^/| /' conftest.$ac_ext >&5
  23101. ac_hi=`expr '(' $ac_mid ')' - 1`
  23102. if test $ac_mid -le $ac_hi; then
  23103. ac_lo= ac_hi=
  23104. break
  23105. fi
  23106. ac_mid=`expr 2 '*' $ac_mid`
  23107. fi
  23108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23109. done
  23110. else
  23111. $as_echo "$as_me: failed program was:" >&5
  23112. sed 's/^/| /' conftest.$ac_ext >&5
  23113. ac_lo= ac_hi=
  23114. fi
  23115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23116. fi
  23117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23118. # Binary search between lo and hi bounds.
  23119. while test "x$ac_lo" != "x$ac_hi"; do
  23120. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23121. cat >conftest.$ac_ext <<_ACEOF
  23122. /* confdefs.h. */
  23123. _ACEOF
  23124. cat confdefs.h >>conftest.$ac_ext
  23125. cat >>conftest.$ac_ext <<_ACEOF
  23126. /* end confdefs.h. */
  23127. $ac_includes_default
  23128. int
  23129. main ()
  23130. {
  23131. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  23132. test_array [0] = 0
  23133. ;
  23134. return 0;
  23135. }
  23136. _ACEOF
  23137. rm -f conftest.$ac_objext
  23138. if { (ac_try="$ac_compile"
  23139. case "(($ac_try" in
  23140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23141. *) ac_try_echo=$ac_try;;
  23142. esac
  23143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23144. $as_echo "$ac_try_echo") >&5
  23145. (eval "$ac_compile") 2>conftest.er1
  23146. ac_status=$?
  23147. grep -v '^ *+' conftest.er1 >conftest.err
  23148. rm -f conftest.er1
  23149. cat conftest.err >&5
  23150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23151. (exit $ac_status); } && {
  23152. test -z "$ac_c_werror_flag" ||
  23153. test ! -s conftest.err
  23154. } && test -s conftest.$ac_objext; then
  23155. ac_hi=$ac_mid
  23156. else
  23157. $as_echo "$as_me: failed program was:" >&5
  23158. sed 's/^/| /' conftest.$ac_ext >&5
  23159. ac_lo=`expr '(' $ac_mid ')' + 1`
  23160. fi
  23161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23162. done
  23163. case $ac_lo in
  23164. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  23165. '') if test "$ac_cv_type_long_long" = yes; then
  23166. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23167. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23168. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  23169. See \`config.log' for more details." >&5
  23170. $as_echo "$as_me: error: cannot compute sizeof (long long)
  23171. See \`config.log' for more details." >&2;}
  23172. { (exit 77); exit 77; }; }; }
  23173. else
  23174. ac_cv_sizeof_long_long=0
  23175. fi ;;
  23176. esac
  23177. else
  23178. cat >conftest.$ac_ext <<_ACEOF
  23179. /* confdefs.h. */
  23180. _ACEOF
  23181. cat confdefs.h >>conftest.$ac_ext
  23182. cat >>conftest.$ac_ext <<_ACEOF
  23183. /* end confdefs.h. */
  23184. $ac_includes_default
  23185. static long int longval () { return (long int) (sizeof (long long)); }
  23186. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  23187. #include <stdio.h>
  23188. #include <stdlib.h>
  23189. int
  23190. main ()
  23191. {
  23192. FILE *f = fopen ("conftest.val", "w");
  23193. if (! f)
  23194. return 1;
  23195. if (((long int) (sizeof (long long))) < 0)
  23196. {
  23197. long int i = longval ();
  23198. if (i != ((long int) (sizeof (long long))))
  23199. return 1;
  23200. fprintf (f, "%ld", i);
  23201. }
  23202. else
  23203. {
  23204. unsigned long int i = ulongval ();
  23205. if (i != ((long int) (sizeof (long long))))
  23206. return 1;
  23207. fprintf (f, "%lu", i);
  23208. }
  23209. /* Do not output a trailing newline, as this causes \r\n confusion
  23210. on some platforms. */
  23211. return ferror (f) || fclose (f) != 0;
  23212. ;
  23213. return 0;
  23214. }
  23215. _ACEOF
  23216. rm -f conftest$ac_exeext
  23217. if { (ac_try="$ac_link"
  23218. case "(($ac_try" in
  23219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23220. *) ac_try_echo=$ac_try;;
  23221. esac
  23222. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23223. $as_echo "$ac_try_echo") >&5
  23224. (eval "$ac_link") 2>&5
  23225. ac_status=$?
  23226. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23227. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23228. { (case "(($ac_try" in
  23229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23230. *) ac_try_echo=$ac_try;;
  23231. esac
  23232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23233. $as_echo "$ac_try_echo") >&5
  23234. (eval "$ac_try") 2>&5
  23235. ac_status=$?
  23236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23237. (exit $ac_status); }; }; then
  23238. ac_cv_sizeof_long_long=`cat conftest.val`
  23239. else
  23240. $as_echo "$as_me: program exited with status $ac_status" >&5
  23241. $as_echo "$as_me: failed program was:" >&5
  23242. sed 's/^/| /' conftest.$ac_ext >&5
  23243. ( exit $ac_status )
  23244. if test "$ac_cv_type_long_long" = yes; then
  23245. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23246. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23247. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  23248. See \`config.log' for more details." >&5
  23249. $as_echo "$as_me: error: cannot compute sizeof (long long)
  23250. See \`config.log' for more details." >&2;}
  23251. { (exit 77); exit 77; }; }; }
  23252. else
  23253. ac_cv_sizeof_long_long=0
  23254. fi
  23255. fi
  23256. rm -rf conftest.dSYM
  23257. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23258. fi
  23259. rm -f conftest.val
  23260. fi
  23261. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  23262. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  23263. cat >>confdefs.h <<_ACEOF
  23264. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  23265. _ACEOF
  23266. if test "$cross_compiling" = yes; then
  23267. # Depending upon the size, compute the lo and hi bounds.
  23268. cat >conftest.$ac_ext <<_ACEOF
  23269. /* confdefs.h. */
  23270. _ACEOF
  23271. cat confdefs.h >>conftest.$ac_ext
  23272. cat >>conftest.$ac_ext <<_ACEOF
  23273. /* end confdefs.h. */
  23274. $ac_includes_default
  23275. fd_set foo;
  23276. int
  23277. main ()
  23278. {
  23279. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) >= 0)];
  23280. test_array [0] = 0
  23281. ;
  23282. return 0;
  23283. }
  23284. _ACEOF
  23285. rm -f conftest.$ac_objext
  23286. if { (ac_try="$ac_compile"
  23287. case "(($ac_try" in
  23288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23289. *) ac_try_echo=$ac_try;;
  23290. esac
  23291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23292. $as_echo "$ac_try_echo") >&5
  23293. (eval "$ac_compile") 2>conftest.er1
  23294. ac_status=$?
  23295. grep -v '^ *+' conftest.er1 >conftest.err
  23296. rm -f conftest.er1
  23297. cat conftest.err >&5
  23298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23299. (exit $ac_status); } && {
  23300. test -z "$ac_c_werror_flag" ||
  23301. test ! -s conftest.err
  23302. } && test -s conftest.$ac_objext; then
  23303. ac_lo=0 ac_mid=0
  23304. while :; do
  23305. cat >conftest.$ac_ext <<_ACEOF
  23306. /* confdefs.h. */
  23307. _ACEOF
  23308. cat confdefs.h >>conftest.$ac_ext
  23309. cat >>conftest.$ac_ext <<_ACEOF
  23310. /* end confdefs.h. */
  23311. $ac_includes_default
  23312. fd_set foo;
  23313. int
  23314. main ()
  23315. {
  23316. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) <= $ac_mid)];
  23317. test_array [0] = 0
  23318. ;
  23319. return 0;
  23320. }
  23321. _ACEOF
  23322. rm -f conftest.$ac_objext
  23323. if { (ac_try="$ac_compile"
  23324. case "(($ac_try" in
  23325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23326. *) ac_try_echo=$ac_try;;
  23327. esac
  23328. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23329. $as_echo "$ac_try_echo") >&5
  23330. (eval "$ac_compile") 2>conftest.er1
  23331. ac_status=$?
  23332. grep -v '^ *+' conftest.er1 >conftest.err
  23333. rm -f conftest.er1
  23334. cat conftest.err >&5
  23335. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23336. (exit $ac_status); } && {
  23337. test -z "$ac_c_werror_flag" ||
  23338. test ! -s conftest.err
  23339. } && test -s conftest.$ac_objext; then
  23340. ac_hi=$ac_mid; break
  23341. else
  23342. $as_echo "$as_me: failed program was:" >&5
  23343. sed 's/^/| /' conftest.$ac_ext >&5
  23344. ac_lo=`expr $ac_mid + 1`
  23345. if test $ac_lo -le $ac_mid; then
  23346. ac_lo= ac_hi=
  23347. break
  23348. fi
  23349. ac_mid=`expr 2 '*' $ac_mid + 1`
  23350. fi
  23351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23352. done
  23353. else
  23354. $as_echo "$as_me: failed program was:" >&5
  23355. sed 's/^/| /' conftest.$ac_ext >&5
  23356. cat >conftest.$ac_ext <<_ACEOF
  23357. /* confdefs.h. */
  23358. _ACEOF
  23359. cat confdefs.h >>conftest.$ac_ext
  23360. cat >>conftest.$ac_ext <<_ACEOF
  23361. /* end confdefs.h. */
  23362. $ac_includes_default
  23363. fd_set foo;
  23364. int
  23365. main ()
  23366. {
  23367. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) < 0)];
  23368. test_array [0] = 0
  23369. ;
  23370. return 0;
  23371. }
  23372. _ACEOF
  23373. rm -f conftest.$ac_objext
  23374. if { (ac_try="$ac_compile"
  23375. case "(($ac_try" in
  23376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23377. *) ac_try_echo=$ac_try;;
  23378. esac
  23379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23380. $as_echo "$ac_try_echo") >&5
  23381. (eval "$ac_compile") 2>conftest.er1
  23382. ac_status=$?
  23383. grep -v '^ *+' conftest.er1 >conftest.err
  23384. rm -f conftest.er1
  23385. cat conftest.err >&5
  23386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23387. (exit $ac_status); } && {
  23388. test -z "$ac_c_werror_flag" ||
  23389. test ! -s conftest.err
  23390. } && test -s conftest.$ac_objext; then
  23391. ac_hi=-1 ac_mid=-1
  23392. while :; do
  23393. cat >conftest.$ac_ext <<_ACEOF
  23394. /* confdefs.h. */
  23395. _ACEOF
  23396. cat confdefs.h >>conftest.$ac_ext
  23397. cat >>conftest.$ac_ext <<_ACEOF
  23398. /* end confdefs.h. */
  23399. $ac_includes_default
  23400. fd_set foo;
  23401. int
  23402. main ()
  23403. {
  23404. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) >= $ac_mid)];
  23405. test_array [0] = 0
  23406. ;
  23407. return 0;
  23408. }
  23409. _ACEOF
  23410. rm -f conftest.$ac_objext
  23411. if { (ac_try="$ac_compile"
  23412. case "(($ac_try" in
  23413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23414. *) ac_try_echo=$ac_try;;
  23415. esac
  23416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23417. $as_echo "$ac_try_echo") >&5
  23418. (eval "$ac_compile") 2>conftest.er1
  23419. ac_status=$?
  23420. grep -v '^ *+' conftest.er1 >conftest.err
  23421. rm -f conftest.er1
  23422. cat conftest.err >&5
  23423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23424. (exit $ac_status); } && {
  23425. test -z "$ac_c_werror_flag" ||
  23426. test ! -s conftest.err
  23427. } && test -s conftest.$ac_objext; then
  23428. ac_lo=$ac_mid; break
  23429. else
  23430. $as_echo "$as_me: failed program was:" >&5
  23431. sed 's/^/| /' conftest.$ac_ext >&5
  23432. ac_hi=`expr '(' $ac_mid ')' - 1`
  23433. if test $ac_mid -le $ac_hi; then
  23434. ac_lo= ac_hi=
  23435. break
  23436. fi
  23437. ac_mid=`expr 2 '*' $ac_mid`
  23438. fi
  23439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23440. done
  23441. else
  23442. $as_echo "$as_me: failed program was:" >&5
  23443. sed 's/^/| /' conftest.$ac_ext >&5
  23444. ac_lo= ac_hi=
  23445. fi
  23446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23447. fi
  23448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23449. # Binary search between lo and hi bounds.
  23450. while test "x$ac_lo" != "x$ac_hi"; do
  23451. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23452. cat >conftest.$ac_ext <<_ACEOF
  23453. /* confdefs.h. */
  23454. _ACEOF
  23455. cat confdefs.h >>conftest.$ac_ext
  23456. cat >>conftest.$ac_ext <<_ACEOF
  23457. /* end confdefs.h. */
  23458. $ac_includes_default
  23459. fd_set foo;
  23460. int
  23461. main ()
  23462. {
  23463. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) <= $ac_mid)];
  23464. test_array [0] = 0
  23465. ;
  23466. return 0;
  23467. }
  23468. _ACEOF
  23469. rm -f conftest.$ac_objext
  23470. if { (ac_try="$ac_compile"
  23471. case "(($ac_try" in
  23472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23473. *) ac_try_echo=$ac_try;;
  23474. esac
  23475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23476. $as_echo "$ac_try_echo") >&5
  23477. (eval "$ac_compile") 2>conftest.er1
  23478. ac_status=$?
  23479. grep -v '^ *+' conftest.er1 >conftest.err
  23480. rm -f conftest.er1
  23481. cat conftest.err >&5
  23482. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23483. (exit $ac_status); } && {
  23484. test -z "$ac_c_werror_flag" ||
  23485. test ! -s conftest.err
  23486. } && test -s conftest.$ac_objext; then
  23487. ac_hi=$ac_mid
  23488. else
  23489. $as_echo "$as_me: failed program was:" >&5
  23490. sed 's/^/| /' conftest.$ac_ext >&5
  23491. ac_lo=`expr '(' $ac_mid ')' + 1`
  23492. fi
  23493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23494. done
  23495. case $ac_lo in
  23496. ?*) ac_cv_sizeof_fd_set_fds_bits=$ac_lo;;
  23497. '') ;;
  23498. esac
  23499. else
  23500. cat >conftest.$ac_ext <<_ACEOF
  23501. /* confdefs.h. */
  23502. _ACEOF
  23503. cat confdefs.h >>conftest.$ac_ext
  23504. cat >>conftest.$ac_ext <<_ACEOF
  23505. /* end confdefs.h. */
  23506. $ac_includes_default
  23507. fd_set foo;
  23508. static long int longval () { return sizeof(foo.fds_bits[0]); }
  23509. static unsigned long int ulongval () { return sizeof(foo.fds_bits[0]); }
  23510. #include <stdio.h>
  23511. #include <stdlib.h>
  23512. int
  23513. main ()
  23514. {
  23515. FILE *f = fopen ("conftest.val", "w");
  23516. if (! f)
  23517. return 1;
  23518. if ((sizeof(foo.fds_bits[0])) < 0)
  23519. {
  23520. long int i = longval ();
  23521. if (i != (sizeof(foo.fds_bits[0])))
  23522. return 1;
  23523. fprintf (f, "%ld", i);
  23524. }
  23525. else
  23526. {
  23527. unsigned long int i = ulongval ();
  23528. if (i != (sizeof(foo.fds_bits[0])))
  23529. return 1;
  23530. fprintf (f, "%lu", i);
  23531. }
  23532. /* Do not output a trailing newline, as this causes \r\n confusion
  23533. on some platforms. */
  23534. return ferror (f) || fclose (f) != 0;
  23535. ;
  23536. return 0;
  23537. }
  23538. _ACEOF
  23539. rm -f conftest$ac_exeext
  23540. if { (ac_try="$ac_link"
  23541. case "(($ac_try" in
  23542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23543. *) ac_try_echo=$ac_try;;
  23544. esac
  23545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23546. $as_echo "$ac_try_echo") >&5
  23547. (eval "$ac_link") 2>&5
  23548. ac_status=$?
  23549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23550. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23551. { (case "(($ac_try" in
  23552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23553. *) ac_try_echo=$ac_try;;
  23554. esac
  23555. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23556. $as_echo "$ac_try_echo") >&5
  23557. (eval "$ac_try") 2>&5
  23558. ac_status=$?
  23559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23560. (exit $ac_status); }; }; then
  23561. ac_cv_sizeof_fd_set_fds_bits=`cat conftest.val`
  23562. else
  23563. $as_echo "$as_me: program exited with status $ac_status" >&5
  23564. $as_echo "$as_me: failed program was:" >&5
  23565. sed 's/^/| /' conftest.$ac_ext >&5
  23566. fi
  23567. rm -rf conftest.dSYM
  23568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23569. fi
  23570. rm -f conftest.val
  23571. # This doesn't actually work; what it does is to use the variable set in the
  23572. # previous test as a cached value to set the right output variables.
  23573. # The cast to long int works around a bug in the HP C Compiler
  23574. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23575. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23576. # This bug is HP SR number 8606223364.
  23577. { $as_echo "$as_me:$LINENO: checking size of fd_set.fds_bits" >&5
  23578. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  23579. if test "${ac_cv_sizeof_fd_set_fds_bits+set}" = set; then
  23580. $as_echo_n "(cached) " >&6
  23581. else
  23582. if test "$cross_compiling" = yes; then
  23583. # Depending upon the size, compute the lo and hi bounds.
  23584. cat >conftest.$ac_ext <<_ACEOF
  23585. /* confdefs.h. */
  23586. _ACEOF
  23587. cat confdefs.h >>conftest.$ac_ext
  23588. cat >>conftest.$ac_ext <<_ACEOF
  23589. /* end confdefs.h. */
  23590. $ac_includes_default
  23591. int
  23592. main ()
  23593. {
  23594. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) >= 0)];
  23595. test_array [0] = 0
  23596. ;
  23597. return 0;
  23598. }
  23599. _ACEOF
  23600. rm -f conftest.$ac_objext
  23601. if { (ac_try="$ac_compile"
  23602. case "(($ac_try" in
  23603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23604. *) ac_try_echo=$ac_try;;
  23605. esac
  23606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23607. $as_echo "$ac_try_echo") >&5
  23608. (eval "$ac_compile") 2>conftest.er1
  23609. ac_status=$?
  23610. grep -v '^ *+' conftest.er1 >conftest.err
  23611. rm -f conftest.er1
  23612. cat conftest.err >&5
  23613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23614. (exit $ac_status); } && {
  23615. test -z "$ac_c_werror_flag" ||
  23616. test ! -s conftest.err
  23617. } && test -s conftest.$ac_objext; then
  23618. ac_lo=0 ac_mid=0
  23619. while :; do
  23620. cat >conftest.$ac_ext <<_ACEOF
  23621. /* confdefs.h. */
  23622. _ACEOF
  23623. cat confdefs.h >>conftest.$ac_ext
  23624. cat >>conftest.$ac_ext <<_ACEOF
  23625. /* end confdefs.h. */
  23626. $ac_includes_default
  23627. int
  23628. main ()
  23629. {
  23630. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) <= $ac_mid)];
  23631. test_array [0] = 0
  23632. ;
  23633. return 0;
  23634. }
  23635. _ACEOF
  23636. rm -f conftest.$ac_objext
  23637. if { (ac_try="$ac_compile"
  23638. case "(($ac_try" in
  23639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23640. *) ac_try_echo=$ac_try;;
  23641. esac
  23642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23643. $as_echo "$ac_try_echo") >&5
  23644. (eval "$ac_compile") 2>conftest.er1
  23645. ac_status=$?
  23646. grep -v '^ *+' conftest.er1 >conftest.err
  23647. rm -f conftest.er1
  23648. cat conftest.err >&5
  23649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23650. (exit $ac_status); } && {
  23651. test -z "$ac_c_werror_flag" ||
  23652. test ! -s conftest.err
  23653. } && test -s conftest.$ac_objext; then
  23654. ac_hi=$ac_mid; break
  23655. else
  23656. $as_echo "$as_me: failed program was:" >&5
  23657. sed 's/^/| /' conftest.$ac_ext >&5
  23658. ac_lo=`expr $ac_mid + 1`
  23659. if test $ac_lo -le $ac_mid; then
  23660. ac_lo= ac_hi=
  23661. break
  23662. fi
  23663. ac_mid=`expr 2 '*' $ac_mid + 1`
  23664. fi
  23665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23666. done
  23667. else
  23668. $as_echo "$as_me: failed program was:" >&5
  23669. sed 's/^/| /' conftest.$ac_ext >&5
  23670. cat >conftest.$ac_ext <<_ACEOF
  23671. /* confdefs.h. */
  23672. _ACEOF
  23673. cat confdefs.h >>conftest.$ac_ext
  23674. cat >>conftest.$ac_ext <<_ACEOF
  23675. /* end confdefs.h. */
  23676. $ac_includes_default
  23677. int
  23678. main ()
  23679. {
  23680. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) < 0)];
  23681. test_array [0] = 0
  23682. ;
  23683. return 0;
  23684. }
  23685. _ACEOF
  23686. rm -f conftest.$ac_objext
  23687. if { (ac_try="$ac_compile"
  23688. case "(($ac_try" in
  23689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23690. *) ac_try_echo=$ac_try;;
  23691. esac
  23692. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23693. $as_echo "$ac_try_echo") >&5
  23694. (eval "$ac_compile") 2>conftest.er1
  23695. ac_status=$?
  23696. grep -v '^ *+' conftest.er1 >conftest.err
  23697. rm -f conftest.er1
  23698. cat conftest.err >&5
  23699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23700. (exit $ac_status); } && {
  23701. test -z "$ac_c_werror_flag" ||
  23702. test ! -s conftest.err
  23703. } && test -s conftest.$ac_objext; then
  23704. ac_hi=-1 ac_mid=-1
  23705. while :; do
  23706. cat >conftest.$ac_ext <<_ACEOF
  23707. /* confdefs.h. */
  23708. _ACEOF
  23709. cat confdefs.h >>conftest.$ac_ext
  23710. cat >>conftest.$ac_ext <<_ACEOF
  23711. /* end confdefs.h. */
  23712. $ac_includes_default
  23713. int
  23714. main ()
  23715. {
  23716. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) >= $ac_mid)];
  23717. test_array [0] = 0
  23718. ;
  23719. return 0;
  23720. }
  23721. _ACEOF
  23722. rm -f conftest.$ac_objext
  23723. if { (ac_try="$ac_compile"
  23724. case "(($ac_try" in
  23725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23726. *) ac_try_echo=$ac_try;;
  23727. esac
  23728. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23729. $as_echo "$ac_try_echo") >&5
  23730. (eval "$ac_compile") 2>conftest.er1
  23731. ac_status=$?
  23732. grep -v '^ *+' conftest.er1 >conftest.err
  23733. rm -f conftest.er1
  23734. cat conftest.err >&5
  23735. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23736. (exit $ac_status); } && {
  23737. test -z "$ac_c_werror_flag" ||
  23738. test ! -s conftest.err
  23739. } && test -s conftest.$ac_objext; then
  23740. ac_lo=$ac_mid; break
  23741. else
  23742. $as_echo "$as_me: failed program was:" >&5
  23743. sed 's/^/| /' conftest.$ac_ext >&5
  23744. ac_hi=`expr '(' $ac_mid ')' - 1`
  23745. if test $ac_mid -le $ac_hi; then
  23746. ac_lo= ac_hi=
  23747. break
  23748. fi
  23749. ac_mid=`expr 2 '*' $ac_mid`
  23750. fi
  23751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23752. done
  23753. else
  23754. $as_echo "$as_me: failed program was:" >&5
  23755. sed 's/^/| /' conftest.$ac_ext >&5
  23756. ac_lo= ac_hi=
  23757. fi
  23758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23759. fi
  23760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23761. # Binary search between lo and hi bounds.
  23762. while test "x$ac_lo" != "x$ac_hi"; do
  23763. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23764. cat >conftest.$ac_ext <<_ACEOF
  23765. /* confdefs.h. */
  23766. _ACEOF
  23767. cat confdefs.h >>conftest.$ac_ext
  23768. cat >>conftest.$ac_ext <<_ACEOF
  23769. /* end confdefs.h. */
  23770. $ac_includes_default
  23771. int
  23772. main ()
  23773. {
  23774. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) <= $ac_mid)];
  23775. test_array [0] = 0
  23776. ;
  23777. return 0;
  23778. }
  23779. _ACEOF
  23780. rm -f conftest.$ac_objext
  23781. if { (ac_try="$ac_compile"
  23782. case "(($ac_try" in
  23783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23784. *) ac_try_echo=$ac_try;;
  23785. esac
  23786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23787. $as_echo "$ac_try_echo") >&5
  23788. (eval "$ac_compile") 2>conftest.er1
  23789. ac_status=$?
  23790. grep -v '^ *+' conftest.er1 >conftest.err
  23791. rm -f conftest.er1
  23792. cat conftest.err >&5
  23793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23794. (exit $ac_status); } && {
  23795. test -z "$ac_c_werror_flag" ||
  23796. test ! -s conftest.err
  23797. } && test -s conftest.$ac_objext; then
  23798. ac_hi=$ac_mid
  23799. else
  23800. $as_echo "$as_me: failed program was:" >&5
  23801. sed 's/^/| /' conftest.$ac_ext >&5
  23802. ac_lo=`expr '(' $ac_mid ')' + 1`
  23803. fi
  23804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23805. done
  23806. case $ac_lo in
  23807. ?*) ac_cv_sizeof_fd_set_fds_bits=$ac_lo;;
  23808. '') if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  23809. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23810. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23811. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fd_set.fds_bits)
  23812. See \`config.log' for more details." >&5
  23813. $as_echo "$as_me: error: cannot compute sizeof (fd_set.fds_bits)
  23814. See \`config.log' for more details." >&2;}
  23815. { (exit 77); exit 77; }; }; }
  23816. else
  23817. ac_cv_sizeof_fd_set_fds_bits=0
  23818. fi ;;
  23819. esac
  23820. else
  23821. cat >conftest.$ac_ext <<_ACEOF
  23822. /* confdefs.h. */
  23823. _ACEOF
  23824. cat confdefs.h >>conftest.$ac_ext
  23825. cat >>conftest.$ac_ext <<_ACEOF
  23826. /* end confdefs.h. */
  23827. $ac_includes_default
  23828. static long int longval () { return (long int) (sizeof (fd_set.fds_bits)); }
  23829. static unsigned long int ulongval () { return (long int) (sizeof (fd_set.fds_bits)); }
  23830. #include <stdio.h>
  23831. #include <stdlib.h>
  23832. int
  23833. main ()
  23834. {
  23835. FILE *f = fopen ("conftest.val", "w");
  23836. if (! f)
  23837. return 1;
  23838. if (((long int) (sizeof (fd_set.fds_bits))) < 0)
  23839. {
  23840. long int i = longval ();
  23841. if (i != ((long int) (sizeof (fd_set.fds_bits))))
  23842. return 1;
  23843. fprintf (f, "%ld", i);
  23844. }
  23845. else
  23846. {
  23847. unsigned long int i = ulongval ();
  23848. if (i != ((long int) (sizeof (fd_set.fds_bits))))
  23849. return 1;
  23850. fprintf (f, "%lu", i);
  23851. }
  23852. /* Do not output a trailing newline, as this causes \r\n confusion
  23853. on some platforms. */
  23854. return ferror (f) || fclose (f) != 0;
  23855. ;
  23856. return 0;
  23857. }
  23858. _ACEOF
  23859. rm -f conftest$ac_exeext
  23860. if { (ac_try="$ac_link"
  23861. case "(($ac_try" in
  23862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23863. *) ac_try_echo=$ac_try;;
  23864. esac
  23865. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23866. $as_echo "$ac_try_echo") >&5
  23867. (eval "$ac_link") 2>&5
  23868. ac_status=$?
  23869. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23870. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23871. { (case "(($ac_try" in
  23872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23873. *) ac_try_echo=$ac_try;;
  23874. esac
  23875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23876. $as_echo "$ac_try_echo") >&5
  23877. (eval "$ac_try") 2>&5
  23878. ac_status=$?
  23879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23880. (exit $ac_status); }; }; then
  23881. ac_cv_sizeof_fd_set_fds_bits=`cat conftest.val`
  23882. else
  23883. $as_echo "$as_me: program exited with status $ac_status" >&5
  23884. $as_echo "$as_me: failed program was:" >&5
  23885. sed 's/^/| /' conftest.$ac_ext >&5
  23886. ( exit $ac_status )
  23887. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  23888. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23889. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23890. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fd_set.fds_bits)
  23891. See \`config.log' for more details." >&5
  23892. $as_echo "$as_me: error: cannot compute sizeof (fd_set.fds_bits)
  23893. See \`config.log' for more details." >&2;}
  23894. { (exit 77); exit 77; }; }; }
  23895. else
  23896. ac_cv_sizeof_fd_set_fds_bits=0
  23897. fi
  23898. fi
  23899. rm -rf conftest.dSYM
  23900. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23901. fi
  23902. rm -f conftest.val
  23903. fi
  23904. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  23905. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  23906. cat >>confdefs.h <<_ACEOF
  23907. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  23908. _ACEOF
  23909. # Set a type compatible with the previous. We cannot just use a generic type
  23910. # for these bits, because on big-endian systems, the bits won't match up
  23911. # correctly if the size is wrong.
  23912. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  23913. cat >>confdefs.h <<\_ACEOF
  23914. #define TYPEOF_FD_SET_FDS_BITS int
  23915. _ACEOF
  23916. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  23917. cat >>confdefs.h <<\_ACEOF
  23918. #define TYPEOF_FD_SET_FDS_BITS long
  23919. _ACEOF
  23920. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  23921. cat >>confdefs.h <<\_ACEOF
  23922. #define TYPEOF_FD_SET_FDS_BITS long long
  23923. _ACEOF
  23924. fi ; fi ; fi
  23925. { $as_echo "$as_me:$LINENO: checking for dladdr in dlfcn.h" >&5
  23926. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  23927. PBX_DLADDR=0
  23928. old_LIBS=${LIBS}
  23929. LIBS="${LIBS} -ldl"
  23930. cat >conftest.$ac_ext <<_ACEOF
  23931. /* confdefs.h. */
  23932. _ACEOF
  23933. cat confdefs.h >>conftest.$ac_ext
  23934. cat >>conftest.$ac_ext <<_ACEOF
  23935. /* end confdefs.h. */
  23936. #define _GNU_SOURCE 1
  23937. #include <dlfcn.h>
  23938. int
  23939. main ()
  23940. {
  23941. dladdr((void *)0, (void *)0)
  23942. ;
  23943. return 0;
  23944. }
  23945. _ACEOF
  23946. rm -f conftest.$ac_objext conftest$ac_exeext
  23947. if { (ac_try="$ac_link"
  23948. case "(($ac_try" in
  23949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23950. *) ac_try_echo=$ac_try;;
  23951. esac
  23952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23953. $as_echo "$ac_try_echo") >&5
  23954. (eval "$ac_link") 2>conftest.er1
  23955. ac_status=$?
  23956. grep -v '^ *+' conftest.er1 >conftest.err
  23957. rm -f conftest.er1
  23958. cat conftest.err >&5
  23959. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23960. (exit $ac_status); } && {
  23961. test -z "$ac_c_werror_flag" ||
  23962. test ! -s conftest.err
  23963. } && test -s conftest$ac_exeext && {
  23964. test "$cross_compiling" = yes ||
  23965. $as_test_x conftest$ac_exeext
  23966. }; then
  23967. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23968. $as_echo "yes" >&6; }
  23969. PBX_DLADDR=1
  23970. cat >>confdefs.h <<\_ACEOF
  23971. #define HAVE_DLADDR 1
  23972. _ACEOF
  23973. else
  23974. $as_echo "$as_me: failed program was:" >&5
  23975. sed 's/^/| /' conftest.$ac_ext >&5
  23976. { $as_echo "$as_me:$LINENO: result: no" >&5
  23977. $as_echo "no" >&6; }
  23978. fi
  23979. rm -rf conftest.dSYM
  23980. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23981. conftest$ac_exeext conftest.$ac_ext
  23982. LIBS=${old_LIBS}
  23983. # PKGCONFIG is used in later tests
  23984. if test -n "$ac_tool_prefix"; then
  23985. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  23986. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  23987. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  23988. $as_echo_n "checking for $ac_word... " >&6; }
  23989. if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
  23990. $as_echo_n "(cached) " >&6
  23991. else
  23992. if test -n "$PKGCONFIG"; then
  23993. ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
  23994. else
  23995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23996. for as_dir in $PATH
  23997. do
  23998. IFS=$as_save_IFS
  23999. test -z "$as_dir" && as_dir=.
  24000. for ac_exec_ext in '' $ac_executable_extensions; do
  24001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24002. ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
  24003. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24004. break 2
  24005. fi
  24006. done
  24007. done
  24008. IFS=$as_save_IFS
  24009. fi
  24010. fi
  24011. PKGCONFIG=$ac_cv_prog_PKGCONFIG
  24012. if test -n "$PKGCONFIG"; then
  24013. { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
  24014. $as_echo "$PKGCONFIG" >&6; }
  24015. else
  24016. { $as_echo "$as_me:$LINENO: result: no" >&5
  24017. $as_echo "no" >&6; }
  24018. fi
  24019. fi
  24020. if test -z "$ac_cv_prog_PKGCONFIG"; then
  24021. ac_ct_PKGCONFIG=$PKGCONFIG
  24022. # Extract the first word of "pkg-config", so it can be a program name with args.
  24023. set dummy pkg-config; ac_word=$2
  24024. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24025. $as_echo_n "checking for $ac_word... " >&6; }
  24026. if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
  24027. $as_echo_n "(cached) " >&6
  24028. else
  24029. if test -n "$ac_ct_PKGCONFIG"; then
  24030. ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
  24031. else
  24032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24033. for as_dir in $PATH
  24034. do
  24035. IFS=$as_save_IFS
  24036. test -z "$as_dir" && as_dir=.
  24037. for ac_exec_ext in '' $ac_executable_extensions; do
  24038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24039. ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
  24040. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24041. break 2
  24042. fi
  24043. done
  24044. done
  24045. IFS=$as_save_IFS
  24046. fi
  24047. fi
  24048. ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
  24049. if test -n "$ac_ct_PKGCONFIG"; then
  24050. { $as_echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
  24051. $as_echo "$ac_ct_PKGCONFIG" >&6; }
  24052. else
  24053. { $as_echo "$as_me:$LINENO: result: no" >&5
  24054. $as_echo "no" >&6; }
  24055. fi
  24056. if test "x$ac_ct_PKGCONFIG" = x; then
  24057. PKGCONFIG="No"
  24058. else
  24059. case $cross_compiling:$ac_tool_warned in
  24060. yes:)
  24061. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  24062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24063. ac_tool_warned=yes ;;
  24064. esac
  24065. PKGCONFIG=$ac_ct_PKGCONFIG
  24066. fi
  24067. else
  24068. PKGCONFIG="$ac_cv_prog_PKGCONFIG"
  24069. fi
  24070. # do the package library checks now
  24071. if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
  24072. pbxlibdir=""
  24073. # if --with-ALSA=DIR has been specified, use it.
  24074. if test "x${ALSA_DIR}" != "x"; then
  24075. if test -d ${ALSA_DIR}/lib; then
  24076. pbxlibdir="-L${ALSA_DIR}/lib"
  24077. else
  24078. pbxlibdir="-L${ALSA_DIR}"
  24079. fi
  24080. fi
  24081. pbxfuncname="snd_spcm_init"
  24082. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24083. AST_ALSA_FOUND=yes
  24084. else
  24085. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24086. CFLAGS="${CFLAGS} "
  24087. as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
  24088. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
  24089. $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
  24090. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  24091. $as_echo_n "(cached) " >&6
  24092. else
  24093. ac_check_lib_save_LIBS=$LIBS
  24094. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  24095. cat >conftest.$ac_ext <<_ACEOF
  24096. /* confdefs.h. */
  24097. _ACEOF
  24098. cat confdefs.h >>conftest.$ac_ext
  24099. cat >>conftest.$ac_ext <<_ACEOF
  24100. /* end confdefs.h. */
  24101. /* Override any GCC internal prototype to avoid an error.
  24102. Use char because int might match the return type of a GCC
  24103. builtin and then its argument prototype would still apply. */
  24104. #ifdef __cplusplus
  24105. extern "C"
  24106. #endif
  24107. char ${pbxfuncname} ();
  24108. int
  24109. main ()
  24110. {
  24111. return ${pbxfuncname} ();
  24112. ;
  24113. return 0;
  24114. }
  24115. _ACEOF
  24116. rm -f conftest.$ac_objext conftest$ac_exeext
  24117. if { (ac_try="$ac_link"
  24118. case "(($ac_try" in
  24119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24120. *) ac_try_echo=$ac_try;;
  24121. esac
  24122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24123. $as_echo "$ac_try_echo") >&5
  24124. (eval "$ac_link") 2>conftest.er1
  24125. ac_status=$?
  24126. grep -v '^ *+' conftest.er1 >conftest.err
  24127. rm -f conftest.er1
  24128. cat conftest.err >&5
  24129. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24130. (exit $ac_status); } && {
  24131. test -z "$ac_c_werror_flag" ||
  24132. test ! -s conftest.err
  24133. } && test -s conftest$ac_exeext && {
  24134. test "$cross_compiling" = yes ||
  24135. $as_test_x conftest$ac_exeext
  24136. }; then
  24137. eval "$as_ac_Lib=yes"
  24138. else
  24139. $as_echo "$as_me: failed program was:" >&5
  24140. sed 's/^/| /' conftest.$ac_ext >&5
  24141. eval "$as_ac_Lib=no"
  24142. fi
  24143. rm -rf conftest.dSYM
  24144. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24145. conftest$ac_exeext conftest.$ac_ext
  24146. LIBS=$ac_check_lib_save_LIBS
  24147. fi
  24148. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  24149. $as_echo "$as_val"'`
  24150. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24151. $as_echo "$ac_res" >&6; }
  24152. as_val=`eval 'as_val=${'$as_ac_Lib'}
  24153. $as_echo "$as_val"'`
  24154. if test "x$as_val" = x""yes; then
  24155. AST_ALSA_FOUND=yes
  24156. else
  24157. AST_ALSA_FOUND=no
  24158. fi
  24159. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24160. fi
  24161. # now check for the header.
  24162. if test "${AST_ALSA_FOUND}" = "yes"; then
  24163. ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
  24164. # if --with-ALSA=DIR has been specified, use it.
  24165. if test "x${ALSA_DIR}" != "x"; then
  24166. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  24167. fi
  24168. ALSA_INCLUDE="${ALSA_INCLUDE} "
  24169. if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
  24170. ALSA_HEADER_FOUND="1"
  24171. else # check for the header
  24172. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24173. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  24174. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  24175. { $as_echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
  24176. $as_echo_n "checking for alsa/asoundlib.h... " >&6; }
  24177. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  24178. $as_echo_n "(cached) " >&6
  24179. fi
  24180. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
  24181. $as_echo "$ac_cv_header_alsa_asoundlib_h" >&6; }
  24182. else
  24183. # Is the header compilable?
  24184. { $as_echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
  24185. $as_echo_n "checking alsa/asoundlib.h usability... " >&6; }
  24186. cat >conftest.$ac_ext <<_ACEOF
  24187. /* confdefs.h. */
  24188. _ACEOF
  24189. cat confdefs.h >>conftest.$ac_ext
  24190. cat >>conftest.$ac_ext <<_ACEOF
  24191. /* end confdefs.h. */
  24192. $ac_includes_default
  24193. #include <alsa/asoundlib.h>
  24194. _ACEOF
  24195. rm -f conftest.$ac_objext
  24196. if { (ac_try="$ac_compile"
  24197. case "(($ac_try" in
  24198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24199. *) ac_try_echo=$ac_try;;
  24200. esac
  24201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24202. $as_echo "$ac_try_echo") >&5
  24203. (eval "$ac_compile") 2>conftest.er1
  24204. ac_status=$?
  24205. grep -v '^ *+' conftest.er1 >conftest.err
  24206. rm -f conftest.er1
  24207. cat conftest.err >&5
  24208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24209. (exit $ac_status); } && {
  24210. test -z "$ac_c_werror_flag" ||
  24211. test ! -s conftest.err
  24212. } && test -s conftest.$ac_objext; then
  24213. ac_header_compiler=yes
  24214. else
  24215. $as_echo "$as_me: failed program was:" >&5
  24216. sed 's/^/| /' conftest.$ac_ext >&5
  24217. ac_header_compiler=no
  24218. fi
  24219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24220. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24221. $as_echo "$ac_header_compiler" >&6; }
  24222. # Is the header present?
  24223. { $as_echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
  24224. $as_echo_n "checking alsa/asoundlib.h presence... " >&6; }
  24225. cat >conftest.$ac_ext <<_ACEOF
  24226. /* confdefs.h. */
  24227. _ACEOF
  24228. cat confdefs.h >>conftest.$ac_ext
  24229. cat >>conftest.$ac_ext <<_ACEOF
  24230. /* end confdefs.h. */
  24231. #include <alsa/asoundlib.h>
  24232. _ACEOF
  24233. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24234. case "(($ac_try" in
  24235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24236. *) ac_try_echo=$ac_try;;
  24237. esac
  24238. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24239. $as_echo "$ac_try_echo") >&5
  24240. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24241. ac_status=$?
  24242. grep -v '^ *+' conftest.er1 >conftest.err
  24243. rm -f conftest.er1
  24244. cat conftest.err >&5
  24245. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24246. (exit $ac_status); } >/dev/null && {
  24247. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24248. test ! -s conftest.err
  24249. }; then
  24250. ac_header_preproc=yes
  24251. else
  24252. $as_echo "$as_me: failed program was:" >&5
  24253. sed 's/^/| /' conftest.$ac_ext >&5
  24254. ac_header_preproc=no
  24255. fi
  24256. rm -f conftest.err conftest.$ac_ext
  24257. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24258. $as_echo "$ac_header_preproc" >&6; }
  24259. # So? What about this header?
  24260. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24261. yes:no: )
  24262. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  24263. $as_echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24264. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
  24265. $as_echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
  24266. ac_header_preproc=yes
  24267. ;;
  24268. no:yes:* )
  24269. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
  24270. $as_echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
  24271. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
  24272. $as_echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
  24273. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
  24274. $as_echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
  24275. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
  24276. $as_echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  24277. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
  24278. $as_echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
  24279. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
  24280. $as_echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
  24281. ( cat <<\_ASBOX
  24282. ## ------------------------------------------ ##
  24283. ## Report this to https://issues.asterisk.org ##
  24284. ## ------------------------------------------ ##
  24285. _ASBOX
  24286. ) | sed "s/^/$as_me: WARNING: /" >&2
  24287. ;;
  24288. esac
  24289. { $as_echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
  24290. $as_echo_n "checking for alsa/asoundlib.h... " >&6; }
  24291. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  24292. $as_echo_n "(cached) " >&6
  24293. else
  24294. ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
  24295. fi
  24296. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
  24297. $as_echo "$ac_cv_header_alsa_asoundlib_h" >&6; }
  24298. fi
  24299. if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then
  24300. ALSA_HEADER_FOUND=1
  24301. else
  24302. ALSA_HEADER_FOUND=0
  24303. fi
  24304. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24305. fi
  24306. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  24307. ALSA_LIB=""
  24308. ALSA_INCLUDE=""
  24309. else
  24310. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24311. ALSA_LIB=""
  24312. fi
  24313. PBX_ALSA=1
  24314. cat >>confdefs.h <<_ACEOF
  24315. #define HAVE_ALSA 1
  24316. _ACEOF
  24317. fi
  24318. fi
  24319. fi
  24320. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  24321. pbxlibdir=""
  24322. # if --with-BFD=DIR has been specified, use it.
  24323. if test "x${BFD_DIR}" != "x"; then
  24324. if test -d ${BFD_DIR}/lib; then
  24325. pbxlibdir="-L${BFD_DIR}/lib"
  24326. else
  24327. pbxlibdir="-L${BFD_DIR}"
  24328. fi
  24329. fi
  24330. pbxfuncname="bfd_openr"
  24331. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24332. AST_BFD_FOUND=yes
  24333. else
  24334. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24335. CFLAGS="${CFLAGS} "
  24336. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  24337. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lbfd" >&5
  24338. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  24339. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  24340. $as_echo_n "(cached) " >&6
  24341. else
  24342. ac_check_lib_save_LIBS=$LIBS
  24343. LIBS="-lbfd ${pbxlibdir} $LIBS"
  24344. cat >conftest.$ac_ext <<_ACEOF
  24345. /* confdefs.h. */
  24346. _ACEOF
  24347. cat confdefs.h >>conftest.$ac_ext
  24348. cat >>conftest.$ac_ext <<_ACEOF
  24349. /* end confdefs.h. */
  24350. /* Override any GCC internal prototype to avoid an error.
  24351. Use char because int might match the return type of a GCC
  24352. builtin and then its argument prototype would still apply. */
  24353. #ifdef __cplusplus
  24354. extern "C"
  24355. #endif
  24356. char ${pbxfuncname} ();
  24357. int
  24358. main ()
  24359. {
  24360. return ${pbxfuncname} ();
  24361. ;
  24362. return 0;
  24363. }
  24364. _ACEOF
  24365. rm -f conftest.$ac_objext conftest$ac_exeext
  24366. if { (ac_try="$ac_link"
  24367. case "(($ac_try" in
  24368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24369. *) ac_try_echo=$ac_try;;
  24370. esac
  24371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24372. $as_echo "$ac_try_echo") >&5
  24373. (eval "$ac_link") 2>conftest.er1
  24374. ac_status=$?
  24375. grep -v '^ *+' conftest.er1 >conftest.err
  24376. rm -f conftest.er1
  24377. cat conftest.err >&5
  24378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24379. (exit $ac_status); } && {
  24380. test -z "$ac_c_werror_flag" ||
  24381. test ! -s conftest.err
  24382. } && test -s conftest$ac_exeext && {
  24383. test "$cross_compiling" = yes ||
  24384. $as_test_x conftest$ac_exeext
  24385. }; then
  24386. eval "$as_ac_Lib=yes"
  24387. else
  24388. $as_echo "$as_me: failed program was:" >&5
  24389. sed 's/^/| /' conftest.$ac_ext >&5
  24390. eval "$as_ac_Lib=no"
  24391. fi
  24392. rm -rf conftest.dSYM
  24393. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24394. conftest$ac_exeext conftest.$ac_ext
  24395. LIBS=$ac_check_lib_save_LIBS
  24396. fi
  24397. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  24398. $as_echo "$as_val"'`
  24399. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24400. $as_echo "$ac_res" >&6; }
  24401. as_val=`eval 'as_val=${'$as_ac_Lib'}
  24402. $as_echo "$as_val"'`
  24403. if test "x$as_val" = x""yes; then
  24404. AST_BFD_FOUND=yes
  24405. else
  24406. AST_BFD_FOUND=no
  24407. fi
  24408. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24409. fi
  24410. # now check for the header.
  24411. if test "${AST_BFD_FOUND}" = "yes"; then
  24412. BFD_LIB="${pbxlibdir} -lbfd "
  24413. # if --with-BFD=DIR has been specified, use it.
  24414. if test "x${BFD_DIR}" != "x"; then
  24415. BFD_INCLUDE="-I${BFD_DIR}/include"
  24416. fi
  24417. BFD_INCLUDE="${BFD_INCLUDE} "
  24418. if test "xbfd.h" = "x" ; then # no header, assume found
  24419. BFD_HEADER_FOUND="1"
  24420. else # check for the header
  24421. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24422. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  24423. if test "${ac_cv_header_bfd_h+set}" = set; then
  24424. { $as_echo "$as_me:$LINENO: checking for bfd.h" >&5
  24425. $as_echo_n "checking for bfd.h... " >&6; }
  24426. if test "${ac_cv_header_bfd_h+set}" = set; then
  24427. $as_echo_n "(cached) " >&6
  24428. fi
  24429. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
  24430. $as_echo "$ac_cv_header_bfd_h" >&6; }
  24431. else
  24432. # Is the header compilable?
  24433. { $as_echo "$as_me:$LINENO: checking bfd.h usability" >&5
  24434. $as_echo_n "checking bfd.h usability... " >&6; }
  24435. cat >conftest.$ac_ext <<_ACEOF
  24436. /* confdefs.h. */
  24437. _ACEOF
  24438. cat confdefs.h >>conftest.$ac_ext
  24439. cat >>conftest.$ac_ext <<_ACEOF
  24440. /* end confdefs.h. */
  24441. $ac_includes_default
  24442. #include <bfd.h>
  24443. _ACEOF
  24444. rm -f conftest.$ac_objext
  24445. if { (ac_try="$ac_compile"
  24446. case "(($ac_try" in
  24447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24448. *) ac_try_echo=$ac_try;;
  24449. esac
  24450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24451. $as_echo "$ac_try_echo") >&5
  24452. (eval "$ac_compile") 2>conftest.er1
  24453. ac_status=$?
  24454. grep -v '^ *+' conftest.er1 >conftest.err
  24455. rm -f conftest.er1
  24456. cat conftest.err >&5
  24457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24458. (exit $ac_status); } && {
  24459. test -z "$ac_c_werror_flag" ||
  24460. test ! -s conftest.err
  24461. } && test -s conftest.$ac_objext; then
  24462. ac_header_compiler=yes
  24463. else
  24464. $as_echo "$as_me: failed program was:" >&5
  24465. sed 's/^/| /' conftest.$ac_ext >&5
  24466. ac_header_compiler=no
  24467. fi
  24468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24469. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24470. $as_echo "$ac_header_compiler" >&6; }
  24471. # Is the header present?
  24472. { $as_echo "$as_me:$LINENO: checking bfd.h presence" >&5
  24473. $as_echo_n "checking bfd.h presence... " >&6; }
  24474. cat >conftest.$ac_ext <<_ACEOF
  24475. /* confdefs.h. */
  24476. _ACEOF
  24477. cat confdefs.h >>conftest.$ac_ext
  24478. cat >>conftest.$ac_ext <<_ACEOF
  24479. /* end confdefs.h. */
  24480. #include <bfd.h>
  24481. _ACEOF
  24482. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24483. case "(($ac_try" in
  24484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24485. *) ac_try_echo=$ac_try;;
  24486. esac
  24487. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24488. $as_echo "$ac_try_echo") >&5
  24489. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24490. ac_status=$?
  24491. grep -v '^ *+' conftest.er1 >conftest.err
  24492. rm -f conftest.er1
  24493. cat conftest.err >&5
  24494. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24495. (exit $ac_status); } >/dev/null && {
  24496. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24497. test ! -s conftest.err
  24498. }; then
  24499. ac_header_preproc=yes
  24500. else
  24501. $as_echo "$as_me: failed program was:" >&5
  24502. sed 's/^/| /' conftest.$ac_ext >&5
  24503. ac_header_preproc=no
  24504. fi
  24505. rm -f conftest.err conftest.$ac_ext
  24506. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24507. $as_echo "$ac_header_preproc" >&6; }
  24508. # So? What about this header?
  24509. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24510. yes:no: )
  24511. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
  24512. $as_echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24513. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the compiler's result" >&5
  24514. $as_echo "$as_me: WARNING: bfd.h: proceeding with the compiler's result" >&2;}
  24515. ac_header_preproc=yes
  24516. ;;
  24517. no:yes:* )
  24518. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
  24519. $as_echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
  24520. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
  24521. $as_echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
  24522. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: see the Autoconf documentation" >&5
  24523. $as_echo "$as_me: WARNING: bfd.h: see the Autoconf documentation" >&2;}
  24524. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: section \"Present But Cannot Be Compiled\"" >&5
  24525. $as_echo "$as_me: WARNING: bfd.h: section \"Present But Cannot Be Compiled\"" >&2;}
  24526. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
  24527. $as_echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
  24528. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: in the future, the compiler will take precedence" >&5
  24529. $as_echo "$as_me: WARNING: bfd.h: in the future, the compiler will take precedence" >&2;}
  24530. ( cat <<\_ASBOX
  24531. ## ------------------------------------------ ##
  24532. ## Report this to https://issues.asterisk.org ##
  24533. ## ------------------------------------------ ##
  24534. _ASBOX
  24535. ) | sed "s/^/$as_me: WARNING: /" >&2
  24536. ;;
  24537. esac
  24538. { $as_echo "$as_me:$LINENO: checking for bfd.h" >&5
  24539. $as_echo_n "checking for bfd.h... " >&6; }
  24540. if test "${ac_cv_header_bfd_h+set}" = set; then
  24541. $as_echo_n "(cached) " >&6
  24542. else
  24543. ac_cv_header_bfd_h=$ac_header_preproc
  24544. fi
  24545. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
  24546. $as_echo "$ac_cv_header_bfd_h" >&6; }
  24547. fi
  24548. if test "x$ac_cv_header_bfd_h" = x""yes; then
  24549. BFD_HEADER_FOUND=1
  24550. else
  24551. BFD_HEADER_FOUND=0
  24552. fi
  24553. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24554. fi
  24555. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  24556. BFD_LIB=""
  24557. BFD_INCLUDE=""
  24558. else
  24559. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24560. BFD_LIB=""
  24561. fi
  24562. PBX_BFD=1
  24563. cat >>confdefs.h <<_ACEOF
  24564. #define HAVE_BFD 1
  24565. _ACEOF
  24566. fi
  24567. fi
  24568. fi
  24569. if test "${PBX_BFD}" = "0"; then
  24570. # Fedora/RedHat/CentOS require extra libraries
  24571. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  24572. pbxlibdir=""
  24573. # if --with-BFD=DIR has been specified, use it.
  24574. if test "x${BFD_DIR}" != "x"; then
  24575. if test -d ${BFD_DIR}/lib; then
  24576. pbxlibdir="-L${BFD_DIR}/lib"
  24577. else
  24578. pbxlibdir="-L${BFD_DIR}"
  24579. fi
  24580. fi
  24581. pbxfuncname="bfd_check_format"
  24582. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24583. AST_BFD_FOUND=yes
  24584. else
  24585. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24586. CFLAGS="${CFLAGS} "
  24587. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  24588. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lbfd" >&5
  24589. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  24590. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  24591. $as_echo_n "(cached) " >&6
  24592. else
  24593. ac_check_lib_save_LIBS=$LIBS
  24594. LIBS="-lbfd ${pbxlibdir} -ldl -liberty $LIBS"
  24595. cat >conftest.$ac_ext <<_ACEOF
  24596. /* confdefs.h. */
  24597. _ACEOF
  24598. cat confdefs.h >>conftest.$ac_ext
  24599. cat >>conftest.$ac_ext <<_ACEOF
  24600. /* end confdefs.h. */
  24601. /* Override any GCC internal prototype to avoid an error.
  24602. Use char because int might match the return type of a GCC
  24603. builtin and then its argument prototype would still apply. */
  24604. #ifdef __cplusplus
  24605. extern "C"
  24606. #endif
  24607. char ${pbxfuncname} ();
  24608. int
  24609. main ()
  24610. {
  24611. return ${pbxfuncname} ();
  24612. ;
  24613. return 0;
  24614. }
  24615. _ACEOF
  24616. rm -f conftest.$ac_objext conftest$ac_exeext
  24617. if { (ac_try="$ac_link"
  24618. case "(($ac_try" in
  24619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24620. *) ac_try_echo=$ac_try;;
  24621. esac
  24622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24623. $as_echo "$ac_try_echo") >&5
  24624. (eval "$ac_link") 2>conftest.er1
  24625. ac_status=$?
  24626. grep -v '^ *+' conftest.er1 >conftest.err
  24627. rm -f conftest.er1
  24628. cat conftest.err >&5
  24629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24630. (exit $ac_status); } && {
  24631. test -z "$ac_c_werror_flag" ||
  24632. test ! -s conftest.err
  24633. } && test -s conftest$ac_exeext && {
  24634. test "$cross_compiling" = yes ||
  24635. $as_test_x conftest$ac_exeext
  24636. }; then
  24637. eval "$as_ac_Lib=yes"
  24638. else
  24639. $as_echo "$as_me: failed program was:" >&5
  24640. sed 's/^/| /' conftest.$ac_ext >&5
  24641. eval "$as_ac_Lib=no"
  24642. fi
  24643. rm -rf conftest.dSYM
  24644. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24645. conftest$ac_exeext conftest.$ac_ext
  24646. LIBS=$ac_check_lib_save_LIBS
  24647. fi
  24648. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  24649. $as_echo "$as_val"'`
  24650. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24651. $as_echo "$ac_res" >&6; }
  24652. as_val=`eval 'as_val=${'$as_ac_Lib'}
  24653. $as_echo "$as_val"'`
  24654. if test "x$as_val" = x""yes; then
  24655. AST_BFD_FOUND=yes
  24656. else
  24657. AST_BFD_FOUND=no
  24658. fi
  24659. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24660. fi
  24661. # now check for the header.
  24662. if test "${AST_BFD_FOUND}" = "yes"; then
  24663. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty"
  24664. # if --with-BFD=DIR has been specified, use it.
  24665. if test "x${BFD_DIR}" != "x"; then
  24666. BFD_INCLUDE="-I${BFD_DIR}/include"
  24667. fi
  24668. BFD_INCLUDE="${BFD_INCLUDE} "
  24669. if test "xbfd.h" = "x" ; then # no header, assume found
  24670. BFD_HEADER_FOUND="1"
  24671. else # check for the header
  24672. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24673. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  24674. if test "${ac_cv_header_bfd_h+set}" = set; then
  24675. { $as_echo "$as_me:$LINENO: checking for bfd.h" >&5
  24676. $as_echo_n "checking for bfd.h... " >&6; }
  24677. if test "${ac_cv_header_bfd_h+set}" = set; then
  24678. $as_echo_n "(cached) " >&6
  24679. fi
  24680. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
  24681. $as_echo "$ac_cv_header_bfd_h" >&6; }
  24682. else
  24683. # Is the header compilable?
  24684. { $as_echo "$as_me:$LINENO: checking bfd.h usability" >&5
  24685. $as_echo_n "checking bfd.h usability... " >&6; }
  24686. cat >conftest.$ac_ext <<_ACEOF
  24687. /* confdefs.h. */
  24688. _ACEOF
  24689. cat confdefs.h >>conftest.$ac_ext
  24690. cat >>conftest.$ac_ext <<_ACEOF
  24691. /* end confdefs.h. */
  24692. $ac_includes_default
  24693. #include <bfd.h>
  24694. _ACEOF
  24695. rm -f conftest.$ac_objext
  24696. if { (ac_try="$ac_compile"
  24697. case "(($ac_try" in
  24698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24699. *) ac_try_echo=$ac_try;;
  24700. esac
  24701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24702. $as_echo "$ac_try_echo") >&5
  24703. (eval "$ac_compile") 2>conftest.er1
  24704. ac_status=$?
  24705. grep -v '^ *+' conftest.er1 >conftest.err
  24706. rm -f conftest.er1
  24707. cat conftest.err >&5
  24708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24709. (exit $ac_status); } && {
  24710. test -z "$ac_c_werror_flag" ||
  24711. test ! -s conftest.err
  24712. } && test -s conftest.$ac_objext; then
  24713. ac_header_compiler=yes
  24714. else
  24715. $as_echo "$as_me: failed program was:" >&5
  24716. sed 's/^/| /' conftest.$ac_ext >&5
  24717. ac_header_compiler=no
  24718. fi
  24719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24720. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24721. $as_echo "$ac_header_compiler" >&6; }
  24722. # Is the header present?
  24723. { $as_echo "$as_me:$LINENO: checking bfd.h presence" >&5
  24724. $as_echo_n "checking bfd.h presence... " >&6; }
  24725. cat >conftest.$ac_ext <<_ACEOF
  24726. /* confdefs.h. */
  24727. _ACEOF
  24728. cat confdefs.h >>conftest.$ac_ext
  24729. cat >>conftest.$ac_ext <<_ACEOF
  24730. /* end confdefs.h. */
  24731. #include <bfd.h>
  24732. _ACEOF
  24733. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24734. case "(($ac_try" in
  24735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24736. *) ac_try_echo=$ac_try;;
  24737. esac
  24738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24739. $as_echo "$ac_try_echo") >&5
  24740. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24741. ac_status=$?
  24742. grep -v '^ *+' conftest.er1 >conftest.err
  24743. rm -f conftest.er1
  24744. cat conftest.err >&5
  24745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24746. (exit $ac_status); } >/dev/null && {
  24747. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24748. test ! -s conftest.err
  24749. }; then
  24750. ac_header_preproc=yes
  24751. else
  24752. $as_echo "$as_me: failed program was:" >&5
  24753. sed 's/^/| /' conftest.$ac_ext >&5
  24754. ac_header_preproc=no
  24755. fi
  24756. rm -f conftest.err conftest.$ac_ext
  24757. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24758. $as_echo "$ac_header_preproc" >&6; }
  24759. # So? What about this header?
  24760. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24761. yes:no: )
  24762. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
  24763. $as_echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24764. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the compiler's result" >&5
  24765. $as_echo "$as_me: WARNING: bfd.h: proceeding with the compiler's result" >&2;}
  24766. ac_header_preproc=yes
  24767. ;;
  24768. no:yes:* )
  24769. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
  24770. $as_echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
  24771. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
  24772. $as_echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
  24773. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: see the Autoconf documentation" >&5
  24774. $as_echo "$as_me: WARNING: bfd.h: see the Autoconf documentation" >&2;}
  24775. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: section \"Present But Cannot Be Compiled\"" >&5
  24776. $as_echo "$as_me: WARNING: bfd.h: section \"Present But Cannot Be Compiled\"" >&2;}
  24777. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
  24778. $as_echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
  24779. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: in the future, the compiler will take precedence" >&5
  24780. $as_echo "$as_me: WARNING: bfd.h: in the future, the compiler will take precedence" >&2;}
  24781. ( cat <<\_ASBOX
  24782. ## ------------------------------------------ ##
  24783. ## Report this to https://issues.asterisk.org ##
  24784. ## ------------------------------------------ ##
  24785. _ASBOX
  24786. ) | sed "s/^/$as_me: WARNING: /" >&2
  24787. ;;
  24788. esac
  24789. { $as_echo "$as_me:$LINENO: checking for bfd.h" >&5
  24790. $as_echo_n "checking for bfd.h... " >&6; }
  24791. if test "${ac_cv_header_bfd_h+set}" = set; then
  24792. $as_echo_n "(cached) " >&6
  24793. else
  24794. ac_cv_header_bfd_h=$ac_header_preproc
  24795. fi
  24796. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
  24797. $as_echo "$ac_cv_header_bfd_h" >&6; }
  24798. fi
  24799. if test "x$ac_cv_header_bfd_h" = x""yes; then
  24800. BFD_HEADER_FOUND=1
  24801. else
  24802. BFD_HEADER_FOUND=0
  24803. fi
  24804. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24805. fi
  24806. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  24807. BFD_LIB=""
  24808. BFD_INCLUDE=""
  24809. else
  24810. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24811. BFD_LIB=""
  24812. fi
  24813. PBX_BFD=1
  24814. cat >>confdefs.h <<_ACEOF
  24815. #define HAVE_BFD 1
  24816. _ACEOF
  24817. fi
  24818. fi
  24819. fi
  24820. fi
  24821. if test "x${OSARCH}" = "xlinux-gnu" ; then
  24822. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  24823. pbxlibdir=""
  24824. # if --with-CAP=DIR has been specified, use it.
  24825. if test "x${CAP_DIR}" != "x"; then
  24826. if test -d ${CAP_DIR}/lib; then
  24827. pbxlibdir="-L${CAP_DIR}/lib"
  24828. else
  24829. pbxlibdir="-L${CAP_DIR}"
  24830. fi
  24831. fi
  24832. pbxfuncname="cap_from_text"
  24833. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24834. AST_CAP_FOUND=yes
  24835. else
  24836. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24837. CFLAGS="${CFLAGS} "
  24838. as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
  24839. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
  24840. $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
  24841. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  24842. $as_echo_n "(cached) " >&6
  24843. else
  24844. ac_check_lib_save_LIBS=$LIBS
  24845. LIBS="-lcap ${pbxlibdir} $LIBS"
  24846. cat >conftest.$ac_ext <<_ACEOF
  24847. /* confdefs.h. */
  24848. _ACEOF
  24849. cat confdefs.h >>conftest.$ac_ext
  24850. cat >>conftest.$ac_ext <<_ACEOF
  24851. /* end confdefs.h. */
  24852. /* Override any GCC internal prototype to avoid an error.
  24853. Use char because int might match the return type of a GCC
  24854. builtin and then its argument prototype would still apply. */
  24855. #ifdef __cplusplus
  24856. extern "C"
  24857. #endif
  24858. char ${pbxfuncname} ();
  24859. int
  24860. main ()
  24861. {
  24862. return ${pbxfuncname} ();
  24863. ;
  24864. return 0;
  24865. }
  24866. _ACEOF
  24867. rm -f conftest.$ac_objext conftest$ac_exeext
  24868. if { (ac_try="$ac_link"
  24869. case "(($ac_try" in
  24870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24871. *) ac_try_echo=$ac_try;;
  24872. esac
  24873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24874. $as_echo "$ac_try_echo") >&5
  24875. (eval "$ac_link") 2>conftest.er1
  24876. ac_status=$?
  24877. grep -v '^ *+' conftest.er1 >conftest.err
  24878. rm -f conftest.er1
  24879. cat conftest.err >&5
  24880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24881. (exit $ac_status); } && {
  24882. test -z "$ac_c_werror_flag" ||
  24883. test ! -s conftest.err
  24884. } && test -s conftest$ac_exeext && {
  24885. test "$cross_compiling" = yes ||
  24886. $as_test_x conftest$ac_exeext
  24887. }; then
  24888. eval "$as_ac_Lib=yes"
  24889. else
  24890. $as_echo "$as_me: failed program was:" >&5
  24891. sed 's/^/| /' conftest.$ac_ext >&5
  24892. eval "$as_ac_Lib=no"
  24893. fi
  24894. rm -rf conftest.dSYM
  24895. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24896. conftest$ac_exeext conftest.$ac_ext
  24897. LIBS=$ac_check_lib_save_LIBS
  24898. fi
  24899. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  24900. $as_echo "$as_val"'`
  24901. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24902. $as_echo "$ac_res" >&6; }
  24903. as_val=`eval 'as_val=${'$as_ac_Lib'}
  24904. $as_echo "$as_val"'`
  24905. if test "x$as_val" = x""yes; then
  24906. AST_CAP_FOUND=yes
  24907. else
  24908. AST_CAP_FOUND=no
  24909. fi
  24910. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24911. fi
  24912. # now check for the header.
  24913. if test "${AST_CAP_FOUND}" = "yes"; then
  24914. CAP_LIB="${pbxlibdir} -lcap "
  24915. # if --with-CAP=DIR has been specified, use it.
  24916. if test "x${CAP_DIR}" != "x"; then
  24917. CAP_INCLUDE="-I${CAP_DIR}/include"
  24918. fi
  24919. CAP_INCLUDE="${CAP_INCLUDE} "
  24920. if test "xsys/capability.h" = "x" ; then # no header, assume found
  24921. CAP_HEADER_FOUND="1"
  24922. else # check for the header
  24923. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24924. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  24925. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  24926. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  24927. $as_echo_n "checking for sys/capability.h... " >&6; }
  24928. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  24929. $as_echo_n "(cached) " >&6
  24930. fi
  24931. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  24932. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  24933. else
  24934. # Is the header compilable?
  24935. { $as_echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
  24936. $as_echo_n "checking sys/capability.h usability... " >&6; }
  24937. cat >conftest.$ac_ext <<_ACEOF
  24938. /* confdefs.h. */
  24939. _ACEOF
  24940. cat confdefs.h >>conftest.$ac_ext
  24941. cat >>conftest.$ac_ext <<_ACEOF
  24942. /* end confdefs.h. */
  24943. $ac_includes_default
  24944. #include <sys/capability.h>
  24945. _ACEOF
  24946. rm -f conftest.$ac_objext
  24947. if { (ac_try="$ac_compile"
  24948. case "(($ac_try" in
  24949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24950. *) ac_try_echo=$ac_try;;
  24951. esac
  24952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24953. $as_echo "$ac_try_echo") >&5
  24954. (eval "$ac_compile") 2>conftest.er1
  24955. ac_status=$?
  24956. grep -v '^ *+' conftest.er1 >conftest.err
  24957. rm -f conftest.er1
  24958. cat conftest.err >&5
  24959. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24960. (exit $ac_status); } && {
  24961. test -z "$ac_c_werror_flag" ||
  24962. test ! -s conftest.err
  24963. } && test -s conftest.$ac_objext; then
  24964. ac_header_compiler=yes
  24965. else
  24966. $as_echo "$as_me: failed program was:" >&5
  24967. sed 's/^/| /' conftest.$ac_ext >&5
  24968. ac_header_compiler=no
  24969. fi
  24970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24971. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24972. $as_echo "$ac_header_compiler" >&6; }
  24973. # Is the header present?
  24974. { $as_echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
  24975. $as_echo_n "checking sys/capability.h presence... " >&6; }
  24976. cat >conftest.$ac_ext <<_ACEOF
  24977. /* confdefs.h. */
  24978. _ACEOF
  24979. cat confdefs.h >>conftest.$ac_ext
  24980. cat >>conftest.$ac_ext <<_ACEOF
  24981. /* end confdefs.h. */
  24982. #include <sys/capability.h>
  24983. _ACEOF
  24984. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24985. case "(($ac_try" in
  24986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24987. *) ac_try_echo=$ac_try;;
  24988. esac
  24989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24990. $as_echo "$ac_try_echo") >&5
  24991. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24992. ac_status=$?
  24993. grep -v '^ *+' conftest.er1 >conftest.err
  24994. rm -f conftest.er1
  24995. cat conftest.err >&5
  24996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24997. (exit $ac_status); } >/dev/null && {
  24998. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24999. test ! -s conftest.err
  25000. }; then
  25001. ac_header_preproc=yes
  25002. else
  25003. $as_echo "$as_me: failed program was:" >&5
  25004. sed 's/^/| /' conftest.$ac_ext >&5
  25005. ac_header_preproc=no
  25006. fi
  25007. rm -f conftest.err conftest.$ac_ext
  25008. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25009. $as_echo "$ac_header_preproc" >&6; }
  25010. # So? What about this header?
  25011. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25012. yes:no: )
  25013. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25014. $as_echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25015. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
  25016. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
  25017. ac_header_preproc=yes
  25018. ;;
  25019. no:yes:* )
  25020. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
  25021. $as_echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
  25022. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
  25023. $as_echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
  25024. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
  25025. $as_echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
  25026. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
  25027. $as_echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25028. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
  25029. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
  25030. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
  25031. $as_echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
  25032. ( cat <<\_ASBOX
  25033. ## ------------------------------------------ ##
  25034. ## Report this to https://issues.asterisk.org ##
  25035. ## ------------------------------------------ ##
  25036. _ASBOX
  25037. ) | sed "s/^/$as_me: WARNING: /" >&2
  25038. ;;
  25039. esac
  25040. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  25041. $as_echo_n "checking for sys/capability.h... " >&6; }
  25042. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  25043. $as_echo_n "(cached) " >&6
  25044. else
  25045. ac_cv_header_sys_capability_h=$ac_header_preproc
  25046. fi
  25047. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  25048. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  25049. fi
  25050. if test "x$ac_cv_header_sys_capability_h" = x""yes; then
  25051. CAP_HEADER_FOUND=1
  25052. else
  25053. CAP_HEADER_FOUND=0
  25054. fi
  25055. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25056. fi
  25057. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  25058. CAP_LIB=""
  25059. CAP_INCLUDE=""
  25060. else
  25061. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25062. CAP_LIB=""
  25063. fi
  25064. PBX_CAP=1
  25065. cat >>confdefs.h <<_ACEOF
  25066. #define HAVE_CAP 1
  25067. _ACEOF
  25068. fi
  25069. fi
  25070. fi
  25071. fi
  25072. if test "x${PBX_DAHDI}" != "x1"; then
  25073. { $as_echo "$as_me:$LINENO: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  25074. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  25075. saved_cppflags="${CPPFLAGS}"
  25076. if test "x${DAHDI_DIR}" != "x"; then
  25077. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  25078. fi
  25079. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  25080. cat >conftest.$ac_ext <<_ACEOF
  25081. /* confdefs.h. */
  25082. _ACEOF
  25083. cat confdefs.h >>conftest.$ac_ext
  25084. cat >>conftest.$ac_ext <<_ACEOF
  25085. /* end confdefs.h. */
  25086. #include <dahdi/user.h>
  25087. int
  25088. main ()
  25089. {
  25090. #if defined(DAHDI_RESET_COUNTERS)
  25091. int foo = 0;
  25092. #else
  25093. int foo = bar;
  25094. #endif
  25095. 0
  25096. ;
  25097. return 0;
  25098. }
  25099. _ACEOF
  25100. rm -f conftest.$ac_objext
  25101. if { (ac_try="$ac_compile"
  25102. case "(($ac_try" in
  25103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25104. *) ac_try_echo=$ac_try;;
  25105. esac
  25106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25107. $as_echo "$ac_try_echo") >&5
  25108. (eval "$ac_compile") 2>conftest.er1
  25109. ac_status=$?
  25110. grep -v '^ *+' conftest.er1 >conftest.err
  25111. rm -f conftest.er1
  25112. cat conftest.err >&5
  25113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25114. (exit $ac_status); } && {
  25115. test -z "$ac_c_werror_flag" ||
  25116. test ! -s conftest.err
  25117. } && test -s conftest.$ac_objext; then
  25118. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25119. $as_echo "yes" >&6; }
  25120. PBX_DAHDI=1
  25121. cat >>confdefs.h <<\_ACEOF
  25122. #define HAVE_DAHDI 1
  25123. _ACEOF
  25124. cat >>confdefs.h <<\_ACEOF
  25125. #define HAVE_DAHDI_VERSION 230
  25126. _ACEOF
  25127. else
  25128. $as_echo "$as_me: failed program was:" >&5
  25129. sed 's/^/| /' conftest.$ac_ext >&5
  25130. { $as_echo "$as_me:$LINENO: result: no" >&5
  25131. $as_echo "no" >&6; }
  25132. fi
  25133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25134. CPPFLAGS="${saved_cppflags}"
  25135. fi
  25136. if test "x${PBX_DAHDI}" != "x1"; then
  25137. { $as_echo "$as_me:$LINENO: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  25138. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  25139. saved_cppflags="${CPPFLAGS}"
  25140. if test "x${DAHDI_DIR}" != "x"; then
  25141. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  25142. fi
  25143. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  25144. cat >conftest.$ac_ext <<_ACEOF
  25145. /* confdefs.h. */
  25146. _ACEOF
  25147. cat confdefs.h >>conftest.$ac_ext
  25148. cat >>conftest.$ac_ext <<_ACEOF
  25149. /* end confdefs.h. */
  25150. #include <dahdi/user.h>
  25151. int
  25152. main ()
  25153. {
  25154. #if defined(DAHDI_DEFAULT_MTU_MRU)
  25155. int foo = 0;
  25156. #else
  25157. int foo = bar;
  25158. #endif
  25159. 0
  25160. ;
  25161. return 0;
  25162. }
  25163. _ACEOF
  25164. rm -f conftest.$ac_objext
  25165. if { (ac_try="$ac_compile"
  25166. case "(($ac_try" in
  25167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25168. *) ac_try_echo=$ac_try;;
  25169. esac
  25170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25171. $as_echo "$ac_try_echo") >&5
  25172. (eval "$ac_compile") 2>conftest.er1
  25173. ac_status=$?
  25174. grep -v '^ *+' conftest.er1 >conftest.err
  25175. rm -f conftest.er1
  25176. cat conftest.err >&5
  25177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25178. (exit $ac_status); } && {
  25179. test -z "$ac_c_werror_flag" ||
  25180. test ! -s conftest.err
  25181. } && test -s conftest.$ac_objext; then
  25182. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25183. $as_echo "yes" >&6; }
  25184. PBX_DAHDI=1
  25185. cat >>confdefs.h <<\_ACEOF
  25186. #define HAVE_DAHDI 1
  25187. _ACEOF
  25188. cat >>confdefs.h <<\_ACEOF
  25189. #define HAVE_DAHDI_VERSION 220
  25190. _ACEOF
  25191. else
  25192. $as_echo "$as_me: failed program was:" >&5
  25193. sed 's/^/| /' conftest.$ac_ext >&5
  25194. { $as_echo "$as_me:$LINENO: result: no" >&5
  25195. $as_echo "no" >&6; }
  25196. fi
  25197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25198. CPPFLAGS="${saved_cppflags}"
  25199. fi
  25200. if test "x${PBX_DAHDI}" != "x1"; then
  25201. { $as_echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
  25202. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  25203. saved_cppflags="${CPPFLAGS}"
  25204. if test "x${DAHDI_DIR}" != "x"; then
  25205. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  25206. fi
  25207. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  25208. cat >conftest.$ac_ext <<_ACEOF
  25209. /* confdefs.h. */
  25210. _ACEOF
  25211. cat confdefs.h >>conftest.$ac_ext
  25212. cat >>conftest.$ac_ext <<_ACEOF
  25213. /* end confdefs.h. */
  25214. #include <dahdi/user.h>
  25215. int
  25216. main ()
  25217. {
  25218. #if defined(DAHDI_CODE)
  25219. int foo = 0;
  25220. #else
  25221. int foo = bar;
  25222. #endif
  25223. 0
  25224. ;
  25225. return 0;
  25226. }
  25227. _ACEOF
  25228. rm -f conftest.$ac_objext
  25229. if { (ac_try="$ac_compile"
  25230. case "(($ac_try" in
  25231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25232. *) ac_try_echo=$ac_try;;
  25233. esac
  25234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25235. $as_echo "$ac_try_echo") >&5
  25236. (eval "$ac_compile") 2>conftest.er1
  25237. ac_status=$?
  25238. grep -v '^ *+' conftest.er1 >conftest.err
  25239. rm -f conftest.er1
  25240. cat conftest.err >&5
  25241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25242. (exit $ac_status); } && {
  25243. test -z "$ac_c_werror_flag" ||
  25244. test ! -s conftest.err
  25245. } && test -s conftest.$ac_objext; then
  25246. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25247. $as_echo "yes" >&6; }
  25248. PBX_DAHDI=1
  25249. cat >>confdefs.h <<\_ACEOF
  25250. #define HAVE_DAHDI 1
  25251. _ACEOF
  25252. cat >>confdefs.h <<\_ACEOF
  25253. #define HAVE_DAHDI_VERSION 200
  25254. _ACEOF
  25255. else
  25256. $as_echo "$as_me: failed program was:" >&5
  25257. sed 's/^/| /' conftest.$ac_ext >&5
  25258. { $as_echo "$as_me:$LINENO: result: no" >&5
  25259. $as_echo "no" >&6; }
  25260. fi
  25261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25262. CPPFLAGS="${saved_cppflags}"
  25263. fi
  25264. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  25265. { $as_echo "$as_me:$LINENO: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  25266. $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  25267. saved_cppflags="${CPPFLAGS}"
  25268. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  25269. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  25270. fi
  25271. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  25272. cat >conftest.$ac_ext <<_ACEOF
  25273. /* confdefs.h. */
  25274. _ACEOF
  25275. cat confdefs.h >>conftest.$ac_ext
  25276. cat >>conftest.$ac_ext <<_ACEOF
  25277. /* end confdefs.h. */
  25278. #include <dahdi/user.h>
  25279. int
  25280. main ()
  25281. {
  25282. #if defined(DAHDI_POLICY_HALF_FULL)
  25283. int foo = 0;
  25284. #else
  25285. int foo = bar;
  25286. #endif
  25287. 0
  25288. ;
  25289. return 0;
  25290. }
  25291. _ACEOF
  25292. rm -f conftest.$ac_objext
  25293. if { (ac_try="$ac_compile"
  25294. case "(($ac_try" in
  25295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25296. *) ac_try_echo=$ac_try;;
  25297. esac
  25298. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25299. $as_echo "$ac_try_echo") >&5
  25300. (eval "$ac_compile") 2>conftest.er1
  25301. ac_status=$?
  25302. grep -v '^ *+' conftest.er1 >conftest.err
  25303. rm -f conftest.er1
  25304. cat conftest.err >&5
  25305. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25306. (exit $ac_status); } && {
  25307. test -z "$ac_c_werror_flag" ||
  25308. test ! -s conftest.err
  25309. } && test -s conftest.$ac_objext; then
  25310. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25311. $as_echo "yes" >&6; }
  25312. PBX_DAHDI_HALF_FULL=1
  25313. cat >>confdefs.h <<\_ACEOF
  25314. #define HAVE_DAHDI_HALF_FULL 1
  25315. _ACEOF
  25316. else
  25317. $as_echo "$as_me: failed program was:" >&5
  25318. sed 's/^/| /' conftest.$ac_ext >&5
  25319. { $as_echo "$as_me:$LINENO: result: no" >&5
  25320. $as_echo "no" >&6; }
  25321. fi
  25322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25323. CPPFLAGS="${saved_cppflags}"
  25324. fi
  25325. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  25326. if test "xenhanced dahdi vmwi support" != "x"; then
  25327. { $as_echo "$as_me:$LINENO: checking for enhanced dahdi vmwi support" >&5
  25328. $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
  25329. else
  25330. { $as_echo "$as_me:$LINENO: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
  25331. $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
  25332. fi
  25333. saved_cppflags="${CPPFLAGS}"
  25334. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  25335. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  25336. fi
  25337. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  25338. cat >conftest.$ac_ext <<_ACEOF
  25339. /* confdefs.h. */
  25340. _ACEOF
  25341. cat confdefs.h >>conftest.$ac_ext
  25342. cat >>conftest.$ac_ext <<_ACEOF
  25343. /* end confdefs.h. */
  25344. #include <dahdi/user.h>
  25345. int
  25346. main ()
  25347. {
  25348. struct dahdi_vmwi_info booger;
  25349. ;
  25350. return 0;
  25351. }
  25352. _ACEOF
  25353. rm -f conftest.$ac_objext
  25354. if { (ac_try="$ac_compile"
  25355. case "(($ac_try" in
  25356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25357. *) ac_try_echo=$ac_try;;
  25358. esac
  25359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25360. $as_echo "$ac_try_echo") >&5
  25361. (eval "$ac_compile") 2>conftest.er1
  25362. ac_status=$?
  25363. grep -v '^ *+' conftest.er1 >conftest.err
  25364. rm -f conftest.er1
  25365. cat conftest.err >&5
  25366. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25367. (exit $ac_status); } && {
  25368. test -z "$ac_c_werror_flag" ||
  25369. test ! -s conftest.err
  25370. } && test -s conftest.$ac_objext; then
  25371. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25372. $as_echo "yes" >&6; }
  25373. PBX_DAHDI_LINEREVERSE_VMWI=1
  25374. cat >>confdefs.h <<\_ACEOF
  25375. #define HAVE_DAHDI_LINEREVERSE_VMWI 1
  25376. _ACEOF
  25377. else
  25378. $as_echo "$as_me: failed program was:" >&5
  25379. sed 's/^/| /' conftest.$ac_ext >&5
  25380. { $as_echo "$as_me:$LINENO: result: no" >&5
  25381. $as_echo "no" >&6; }
  25382. fi
  25383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25384. CPPFLAGS="${saved_cppflags}"
  25385. fi
  25386. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  25387. if test "x" != "x"; then
  25388. { $as_echo "$as_me:$LINENO: checking for " >&5
  25389. $as_echo_n "checking for ... " >&6; }
  25390. else
  25391. { $as_echo "$as_me:$LINENO: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  25392. $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  25393. fi
  25394. saved_cppflags="${CPPFLAGS}"
  25395. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  25396. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  25397. fi
  25398. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  25399. cat >conftest.$ac_ext <<_ACEOF
  25400. /* confdefs.h. */
  25401. _ACEOF
  25402. cat confdefs.h >>conftest.$ac_ext
  25403. cat >>conftest.$ac_ext <<_ACEOF
  25404. /* end confdefs.h. */
  25405. #include <dahdi/user.h>
  25406. int
  25407. main ()
  25408. {
  25409. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  25410. ;
  25411. return 0;
  25412. }
  25413. _ACEOF
  25414. rm -f conftest.$ac_objext
  25415. if { (ac_try="$ac_compile"
  25416. case "(($ac_try" in
  25417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25418. *) ac_try_echo=$ac_try;;
  25419. esac
  25420. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25421. $as_echo "$ac_try_echo") >&5
  25422. (eval "$ac_compile") 2>conftest.er1
  25423. ac_status=$?
  25424. grep -v '^ *+' conftest.er1 >conftest.err
  25425. rm -f conftest.er1
  25426. cat conftest.err >&5
  25427. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25428. (exit $ac_status); } && {
  25429. test -z "$ac_c_werror_flag" ||
  25430. test ! -s conftest.err
  25431. } && test -s conftest.$ac_objext; then
  25432. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25433. $as_echo "yes" >&6; }
  25434. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  25435. cat >>confdefs.h <<\_ACEOF
  25436. #define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1
  25437. _ACEOF
  25438. else
  25439. $as_echo "$as_me: failed program was:" >&5
  25440. sed 's/^/| /' conftest.$ac_ext >&5
  25441. { $as_echo "$as_me:$LINENO: result: no" >&5
  25442. $as_echo "no" >&6; }
  25443. fi
  25444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25445. CPPFLAGS="${saved_cppflags}"
  25446. fi
  25447. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  25448. if test "xgetifaddrs() support" != "x"; then
  25449. { $as_echo "$as_me:$LINENO: checking for getifaddrs() support" >&5
  25450. $as_echo_n "checking for getifaddrs() support... " >&6; }
  25451. else
  25452. { $as_echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  25453. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  25454. fi
  25455. saved_cppflags="${CPPFLAGS}"
  25456. if test "x${GETIFADDRS_DIR}" != "x"; then
  25457. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  25458. fi
  25459. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  25460. cat >conftest.$ac_ext <<_ACEOF
  25461. /* confdefs.h. */
  25462. _ACEOF
  25463. cat confdefs.h >>conftest.$ac_ext
  25464. cat >>conftest.$ac_ext <<_ACEOF
  25465. /* end confdefs.h. */
  25466. #include <ifaddrs.h>
  25467. int
  25468. main ()
  25469. {
  25470. struct ifaddrs *p; getifaddrs(&p);
  25471. ;
  25472. return 0;
  25473. }
  25474. _ACEOF
  25475. rm -f conftest.$ac_objext
  25476. if { (ac_try="$ac_compile"
  25477. case "(($ac_try" in
  25478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25479. *) ac_try_echo=$ac_try;;
  25480. esac
  25481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25482. $as_echo "$ac_try_echo") >&5
  25483. (eval "$ac_compile") 2>conftest.er1
  25484. ac_status=$?
  25485. grep -v '^ *+' conftest.er1 >conftest.err
  25486. rm -f conftest.er1
  25487. cat conftest.err >&5
  25488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25489. (exit $ac_status); } && {
  25490. test -z "$ac_c_werror_flag" ||
  25491. test ! -s conftest.err
  25492. } && test -s conftest.$ac_objext; then
  25493. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25494. $as_echo "yes" >&6; }
  25495. PBX_GETIFADDRS=1
  25496. cat >>confdefs.h <<\_ACEOF
  25497. #define HAVE_GETIFADDRS 1
  25498. _ACEOF
  25499. else
  25500. $as_echo "$as_me: failed program was:" >&5
  25501. sed 's/^/| /' conftest.$ac_ext >&5
  25502. { $as_echo "$as_me:$LINENO: result: no" >&5
  25503. $as_echo "no" >&6; }
  25504. fi
  25505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25506. CPPFLAGS="${saved_cppflags}"
  25507. fi
  25508. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  25509. if test "xtimerfd support" != "x"; then
  25510. { $as_echo "$as_me:$LINENO: checking for timerfd support" >&5
  25511. $as_echo_n "checking for timerfd support... " >&6; }
  25512. else
  25513. { $as_echo "$as_me:$LINENO: checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h" >&5
  25514. $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
  25515. fi
  25516. saved_cppflags="${CPPFLAGS}"
  25517. if test "x${TIMERFD_DIR}" != "x"; then
  25518. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  25519. fi
  25520. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  25521. cat >conftest.$ac_ext <<_ACEOF
  25522. /* confdefs.h. */
  25523. _ACEOF
  25524. cat confdefs.h >>conftest.$ac_ext
  25525. cat >>conftest.$ac_ext <<_ACEOF
  25526. /* end confdefs.h. */
  25527. #include <sys/timerfd.h>
  25528. int
  25529. main ()
  25530. {
  25531. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  25532. ;
  25533. return 0;
  25534. }
  25535. _ACEOF
  25536. rm -f conftest.$ac_objext
  25537. if { (ac_try="$ac_compile"
  25538. case "(($ac_try" in
  25539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25540. *) ac_try_echo=$ac_try;;
  25541. esac
  25542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25543. $as_echo "$ac_try_echo") >&5
  25544. (eval "$ac_compile") 2>conftest.er1
  25545. ac_status=$?
  25546. grep -v '^ *+' conftest.er1 >conftest.err
  25547. rm -f conftest.er1
  25548. cat conftest.err >&5
  25549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25550. (exit $ac_status); } && {
  25551. test -z "$ac_c_werror_flag" ||
  25552. test ! -s conftest.err
  25553. } && test -s conftest.$ac_objext; then
  25554. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25555. $as_echo "yes" >&6; }
  25556. PBX_TIMERFD=1
  25557. cat >>confdefs.h <<\_ACEOF
  25558. #define HAVE_TIMERFD 1
  25559. _ACEOF
  25560. else
  25561. $as_echo "$as_me: failed program was:" >&5
  25562. sed 's/^/| /' conftest.$ac_ext >&5
  25563. { $as_echo "$as_me:$LINENO: result: no" >&5
  25564. $as_echo "no" >&6; }
  25565. fi
  25566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25567. CPPFLAGS="${saved_cppflags}"
  25568. fi
  25569. GSM_INTERNAL="yes"
  25570. GSM_SYSTEM="yes"
  25571. if test "${USE_GSM}" != "no"; then
  25572. if test "${GSM_DIR}" = "internal"; then
  25573. GSM_SYSTEM="no"
  25574. elif test "${GSM_DIR}" != ""; then
  25575. GSM_INTERNAL="no"
  25576. fi
  25577. if test "${GSM_SYSTEM}" = "yes"; then
  25578. gsmlibdir=""
  25579. if test "x${GSM_DIR}" != "x"; then
  25580. if test -d ${GSM_DIR}/lib; then
  25581. gsmlibdir="-L${GSM_DIR}/lib"
  25582. else
  25583. gsmlibdir="-L${GSM_DIR}"
  25584. fi
  25585. fi
  25586. { $as_echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
  25587. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  25588. if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
  25589. $as_echo_n "(cached) " >&6
  25590. else
  25591. ac_check_lib_save_LIBS=$LIBS
  25592. LIBS="-lgsm ${gsmlibdir} $LIBS"
  25593. cat >conftest.$ac_ext <<_ACEOF
  25594. /* confdefs.h. */
  25595. _ACEOF
  25596. cat confdefs.h >>conftest.$ac_ext
  25597. cat >>conftest.$ac_ext <<_ACEOF
  25598. /* end confdefs.h. */
  25599. /* Override any GCC internal prototype to avoid an error.
  25600. Use char because int might match the return type of a GCC
  25601. builtin and then its argument prototype would still apply. */
  25602. #ifdef __cplusplus
  25603. extern "C"
  25604. #endif
  25605. char gsm_create ();
  25606. int
  25607. main ()
  25608. {
  25609. return gsm_create ();
  25610. ;
  25611. return 0;
  25612. }
  25613. _ACEOF
  25614. rm -f conftest.$ac_objext conftest$ac_exeext
  25615. if { (ac_try="$ac_link"
  25616. case "(($ac_try" in
  25617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25618. *) ac_try_echo=$ac_try;;
  25619. esac
  25620. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25621. $as_echo "$ac_try_echo") >&5
  25622. (eval "$ac_link") 2>conftest.er1
  25623. ac_status=$?
  25624. grep -v '^ *+' conftest.er1 >conftest.err
  25625. rm -f conftest.er1
  25626. cat conftest.err >&5
  25627. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25628. (exit $ac_status); } && {
  25629. test -z "$ac_c_werror_flag" ||
  25630. test ! -s conftest.err
  25631. } && test -s conftest$ac_exeext && {
  25632. test "$cross_compiling" = yes ||
  25633. $as_test_x conftest$ac_exeext
  25634. }; then
  25635. ac_cv_lib_gsm_gsm_create=yes
  25636. else
  25637. $as_echo "$as_me: failed program was:" >&5
  25638. sed 's/^/| /' conftest.$ac_ext >&5
  25639. ac_cv_lib_gsm_gsm_create=no
  25640. fi
  25641. rm -rf conftest.dSYM
  25642. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25643. conftest$ac_exeext conftest.$ac_ext
  25644. LIBS=$ac_check_lib_save_LIBS
  25645. fi
  25646. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
  25647. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  25648. if test "x$ac_cv_lib_gsm_gsm_create" = x""yes; then
  25649. cat >>confdefs.h <<_ACEOF
  25650. #define HAVE_GSM 1
  25651. _ACEOF
  25652. fi
  25653. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  25654. if test "x${GSM_DIR}" != "x" ; then
  25655. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  25656. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25657. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
  25658. $as_echo_n "checking for ${GSM_DIR}/include/gsm.h... " >&6; }
  25659. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25660. $as_echo_n "(cached) " >&6
  25661. fi
  25662. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25663. $as_echo "$as_val"'`
  25664. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25665. $as_echo "$ac_res" >&6; }
  25666. else
  25667. # Is the header compilable?
  25668. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
  25669. $as_echo_n "checking ${GSM_DIR}/include/gsm.h usability... " >&6; }
  25670. cat >conftest.$ac_ext <<_ACEOF
  25671. /* confdefs.h. */
  25672. _ACEOF
  25673. cat confdefs.h >>conftest.$ac_ext
  25674. cat >>conftest.$ac_ext <<_ACEOF
  25675. /* end confdefs.h. */
  25676. $ac_includes_default
  25677. #include <${GSM_DIR}/include/gsm.h>
  25678. _ACEOF
  25679. rm -f conftest.$ac_objext
  25680. if { (ac_try="$ac_compile"
  25681. case "(($ac_try" in
  25682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25683. *) ac_try_echo=$ac_try;;
  25684. esac
  25685. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25686. $as_echo "$ac_try_echo") >&5
  25687. (eval "$ac_compile") 2>conftest.er1
  25688. ac_status=$?
  25689. grep -v '^ *+' conftest.er1 >conftest.err
  25690. rm -f conftest.er1
  25691. cat conftest.err >&5
  25692. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25693. (exit $ac_status); } && {
  25694. test -z "$ac_c_werror_flag" ||
  25695. test ! -s conftest.err
  25696. } && test -s conftest.$ac_objext; then
  25697. ac_header_compiler=yes
  25698. else
  25699. $as_echo "$as_me: failed program was:" >&5
  25700. sed 's/^/| /' conftest.$ac_ext >&5
  25701. ac_header_compiler=no
  25702. fi
  25703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25704. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25705. $as_echo "$ac_header_compiler" >&6; }
  25706. # Is the header present?
  25707. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
  25708. $as_echo_n "checking ${GSM_DIR}/include/gsm.h presence... " >&6; }
  25709. cat >conftest.$ac_ext <<_ACEOF
  25710. /* confdefs.h. */
  25711. _ACEOF
  25712. cat confdefs.h >>conftest.$ac_ext
  25713. cat >>conftest.$ac_ext <<_ACEOF
  25714. /* end confdefs.h. */
  25715. #include <${GSM_DIR}/include/gsm.h>
  25716. _ACEOF
  25717. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25718. case "(($ac_try" in
  25719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25720. *) ac_try_echo=$ac_try;;
  25721. esac
  25722. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25723. $as_echo "$ac_try_echo") >&5
  25724. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25725. ac_status=$?
  25726. grep -v '^ *+' conftest.er1 >conftest.err
  25727. rm -f conftest.er1
  25728. cat conftest.err >&5
  25729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25730. (exit $ac_status); } >/dev/null && {
  25731. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25732. test ! -s conftest.err
  25733. }; then
  25734. ac_header_preproc=yes
  25735. else
  25736. $as_echo "$as_me: failed program was:" >&5
  25737. sed 's/^/| /' conftest.$ac_ext >&5
  25738. ac_header_preproc=no
  25739. fi
  25740. rm -f conftest.err conftest.$ac_ext
  25741. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25742. $as_echo "$ac_header_preproc" >&6; }
  25743. # So? What about this header?
  25744. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25745. yes:no: )
  25746. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25747. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25748. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
  25749. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
  25750. ac_header_preproc=yes
  25751. ;;
  25752. no:yes:* )
  25753. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
  25754. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
  25755. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
  25756. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
  25757. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
  25758. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
  25759. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  25760. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25761. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
  25762. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
  25763. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
  25764. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
  25765. ( cat <<\_ASBOX
  25766. ## ------------------------------------------ ##
  25767. ## Report this to https://issues.asterisk.org ##
  25768. ## ------------------------------------------ ##
  25769. _ASBOX
  25770. ) | sed "s/^/$as_me: WARNING: /" >&2
  25771. ;;
  25772. esac
  25773. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
  25774. $as_echo_n "checking for ${GSM_DIR}/include/gsm.h... " >&6; }
  25775. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25776. $as_echo_n "(cached) " >&6
  25777. else
  25778. eval "$as_ac_Header=\$ac_header_preproc"
  25779. fi
  25780. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25781. $as_echo "$as_val"'`
  25782. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25783. $as_echo "$ac_res" >&6; }
  25784. fi
  25785. as_val=`eval 'as_val=${'$as_ac_Header'}
  25786. $as_echo "$as_val"'`
  25787. if test "x$as_val" = x""yes; then
  25788. GSM_HEADER_FOUND=1
  25789. else
  25790. GSM_HEADER_FOUND=0
  25791. fi
  25792. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  25793. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25794. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
  25795. $as_echo_n "checking for ${GSM_DIR}/include/gsm/gsm.h... " >&6; }
  25796. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25797. $as_echo_n "(cached) " >&6
  25798. fi
  25799. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25800. $as_echo "$as_val"'`
  25801. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25802. $as_echo "$ac_res" >&6; }
  25803. else
  25804. # Is the header compilable?
  25805. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
  25806. $as_echo_n "checking ${GSM_DIR}/include/gsm/gsm.h usability... " >&6; }
  25807. cat >conftest.$ac_ext <<_ACEOF
  25808. /* confdefs.h. */
  25809. _ACEOF
  25810. cat confdefs.h >>conftest.$ac_ext
  25811. cat >>conftest.$ac_ext <<_ACEOF
  25812. /* end confdefs.h. */
  25813. $ac_includes_default
  25814. #include <${GSM_DIR}/include/gsm/gsm.h>
  25815. _ACEOF
  25816. rm -f conftest.$ac_objext
  25817. if { (ac_try="$ac_compile"
  25818. case "(($ac_try" in
  25819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25820. *) ac_try_echo=$ac_try;;
  25821. esac
  25822. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25823. $as_echo "$ac_try_echo") >&5
  25824. (eval "$ac_compile") 2>conftest.er1
  25825. ac_status=$?
  25826. grep -v '^ *+' conftest.er1 >conftest.err
  25827. rm -f conftest.er1
  25828. cat conftest.err >&5
  25829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25830. (exit $ac_status); } && {
  25831. test -z "$ac_c_werror_flag" ||
  25832. test ! -s conftest.err
  25833. } && test -s conftest.$ac_objext; then
  25834. ac_header_compiler=yes
  25835. else
  25836. $as_echo "$as_me: failed program was:" >&5
  25837. sed 's/^/| /' conftest.$ac_ext >&5
  25838. ac_header_compiler=no
  25839. fi
  25840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25841. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25842. $as_echo "$ac_header_compiler" >&6; }
  25843. # Is the header present?
  25844. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
  25845. $as_echo_n "checking ${GSM_DIR}/include/gsm/gsm.h presence... " >&6; }
  25846. cat >conftest.$ac_ext <<_ACEOF
  25847. /* confdefs.h. */
  25848. _ACEOF
  25849. cat confdefs.h >>conftest.$ac_ext
  25850. cat >>conftest.$ac_ext <<_ACEOF
  25851. /* end confdefs.h. */
  25852. #include <${GSM_DIR}/include/gsm/gsm.h>
  25853. _ACEOF
  25854. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25855. case "(($ac_try" in
  25856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25857. *) ac_try_echo=$ac_try;;
  25858. esac
  25859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25860. $as_echo "$ac_try_echo") >&5
  25861. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25862. ac_status=$?
  25863. grep -v '^ *+' conftest.er1 >conftest.err
  25864. rm -f conftest.er1
  25865. cat conftest.err >&5
  25866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25867. (exit $ac_status); } >/dev/null && {
  25868. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25869. test ! -s conftest.err
  25870. }; then
  25871. ac_header_preproc=yes
  25872. else
  25873. $as_echo "$as_me: failed program was:" >&5
  25874. sed 's/^/| /' conftest.$ac_ext >&5
  25875. ac_header_preproc=no
  25876. fi
  25877. rm -f conftest.err conftest.$ac_ext
  25878. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25879. $as_echo "$ac_header_preproc" >&6; }
  25880. # So? What about this header?
  25881. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25882. yes:no: )
  25883. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25884. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25885. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
  25886. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
  25887. ac_header_preproc=yes
  25888. ;;
  25889. no:yes:* )
  25890. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
  25891. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
  25892. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
  25893. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
  25894. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
  25895. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
  25896. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  25897. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25898. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
  25899. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
  25900. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
  25901. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
  25902. ( cat <<\_ASBOX
  25903. ## ------------------------------------------ ##
  25904. ## Report this to https://issues.asterisk.org ##
  25905. ## ------------------------------------------ ##
  25906. _ASBOX
  25907. ) | sed "s/^/$as_me: WARNING: /" >&2
  25908. ;;
  25909. esac
  25910. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
  25911. $as_echo_n "checking for ${GSM_DIR}/include/gsm/gsm.h... " >&6; }
  25912. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25913. $as_echo_n "(cached) " >&6
  25914. else
  25915. eval "$as_ac_Header=\$ac_header_preproc"
  25916. fi
  25917. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25918. $as_echo "$as_val"'`
  25919. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25920. $as_echo "$ac_res" >&6; }
  25921. fi
  25922. as_val=`eval 'as_val=${'$as_ac_Header'}
  25923. $as_echo "$as_val"'`
  25924. if test "x$as_val" = x""yes; then
  25925. GSM_GSM_HEADER_FOUND=1
  25926. else
  25927. GSM_GSM_HEADER_FOUND=0
  25928. fi
  25929. else
  25930. if test "${ac_cv_header_gsm_h+set}" = set; then
  25931. { $as_echo "$as_me:$LINENO: checking for gsm.h" >&5
  25932. $as_echo_n "checking for gsm.h... " >&6; }
  25933. if test "${ac_cv_header_gsm_h+set}" = set; then
  25934. $as_echo_n "(cached) " >&6
  25935. fi
  25936. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
  25937. $as_echo "$ac_cv_header_gsm_h" >&6; }
  25938. else
  25939. # Is the header compilable?
  25940. { $as_echo "$as_me:$LINENO: checking gsm.h usability" >&5
  25941. $as_echo_n "checking gsm.h usability... " >&6; }
  25942. cat >conftest.$ac_ext <<_ACEOF
  25943. /* confdefs.h. */
  25944. _ACEOF
  25945. cat confdefs.h >>conftest.$ac_ext
  25946. cat >>conftest.$ac_ext <<_ACEOF
  25947. /* end confdefs.h. */
  25948. $ac_includes_default
  25949. #include <gsm.h>
  25950. _ACEOF
  25951. rm -f conftest.$ac_objext
  25952. if { (ac_try="$ac_compile"
  25953. case "(($ac_try" in
  25954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25955. *) ac_try_echo=$ac_try;;
  25956. esac
  25957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25958. $as_echo "$ac_try_echo") >&5
  25959. (eval "$ac_compile") 2>conftest.er1
  25960. ac_status=$?
  25961. grep -v '^ *+' conftest.er1 >conftest.err
  25962. rm -f conftest.er1
  25963. cat conftest.err >&5
  25964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25965. (exit $ac_status); } && {
  25966. test -z "$ac_c_werror_flag" ||
  25967. test ! -s conftest.err
  25968. } && test -s conftest.$ac_objext; then
  25969. ac_header_compiler=yes
  25970. else
  25971. $as_echo "$as_me: failed program was:" >&5
  25972. sed 's/^/| /' conftest.$ac_ext >&5
  25973. ac_header_compiler=no
  25974. fi
  25975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25976. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25977. $as_echo "$ac_header_compiler" >&6; }
  25978. # Is the header present?
  25979. { $as_echo "$as_me:$LINENO: checking gsm.h presence" >&5
  25980. $as_echo_n "checking gsm.h presence... " >&6; }
  25981. cat >conftest.$ac_ext <<_ACEOF
  25982. /* confdefs.h. */
  25983. _ACEOF
  25984. cat confdefs.h >>conftest.$ac_ext
  25985. cat >>conftest.$ac_ext <<_ACEOF
  25986. /* end confdefs.h. */
  25987. #include <gsm.h>
  25988. _ACEOF
  25989. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25990. case "(($ac_try" in
  25991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25992. *) ac_try_echo=$ac_try;;
  25993. esac
  25994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25995. $as_echo "$ac_try_echo") >&5
  25996. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25997. ac_status=$?
  25998. grep -v '^ *+' conftest.er1 >conftest.err
  25999. rm -f conftest.er1
  26000. cat conftest.err >&5
  26001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26002. (exit $ac_status); } >/dev/null && {
  26003. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26004. test ! -s conftest.err
  26005. }; then
  26006. ac_header_preproc=yes
  26007. else
  26008. $as_echo "$as_me: failed program was:" >&5
  26009. sed 's/^/| /' conftest.$ac_ext >&5
  26010. ac_header_preproc=no
  26011. fi
  26012. rm -f conftest.err conftest.$ac_ext
  26013. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26014. $as_echo "$ac_header_preproc" >&6; }
  26015. # So? What about this header?
  26016. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26017. yes:no: )
  26018. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26019. $as_echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26020. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
  26021. $as_echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
  26022. ac_header_preproc=yes
  26023. ;;
  26024. no:yes:* )
  26025. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
  26026. $as_echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
  26027. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
  26028. $as_echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
  26029. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
  26030. $as_echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
  26031. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  26032. $as_echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26033. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
  26034. $as_echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
  26035. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
  26036. $as_echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
  26037. ( cat <<\_ASBOX
  26038. ## ------------------------------------------ ##
  26039. ## Report this to https://issues.asterisk.org ##
  26040. ## ------------------------------------------ ##
  26041. _ASBOX
  26042. ) | sed "s/^/$as_me: WARNING: /" >&2
  26043. ;;
  26044. esac
  26045. { $as_echo "$as_me:$LINENO: checking for gsm.h" >&5
  26046. $as_echo_n "checking for gsm.h... " >&6; }
  26047. if test "${ac_cv_header_gsm_h+set}" = set; then
  26048. $as_echo_n "(cached) " >&6
  26049. else
  26050. ac_cv_header_gsm_h=$ac_header_preproc
  26051. fi
  26052. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
  26053. $as_echo "$ac_cv_header_gsm_h" >&6; }
  26054. fi
  26055. if test "x$ac_cv_header_gsm_h" = x""yes; then
  26056. GSM_HEADER_FOUND=1
  26057. else
  26058. GSM_HEADER_FOUND=0
  26059. fi
  26060. if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
  26061. { $as_echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
  26062. $as_echo_n "checking for gsm/gsm.h... " >&6; }
  26063. if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
  26064. $as_echo_n "(cached) " >&6
  26065. fi
  26066. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
  26067. $as_echo "$ac_cv_header_gsm_gsm_h" >&6; }
  26068. else
  26069. # Is the header compilable?
  26070. { $as_echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
  26071. $as_echo_n "checking gsm/gsm.h usability... " >&6; }
  26072. cat >conftest.$ac_ext <<_ACEOF
  26073. /* confdefs.h. */
  26074. _ACEOF
  26075. cat confdefs.h >>conftest.$ac_ext
  26076. cat >>conftest.$ac_ext <<_ACEOF
  26077. /* end confdefs.h. */
  26078. $ac_includes_default
  26079. #include <gsm/gsm.h>
  26080. _ACEOF
  26081. rm -f conftest.$ac_objext
  26082. if { (ac_try="$ac_compile"
  26083. case "(($ac_try" in
  26084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26085. *) ac_try_echo=$ac_try;;
  26086. esac
  26087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26088. $as_echo "$ac_try_echo") >&5
  26089. (eval "$ac_compile") 2>conftest.er1
  26090. ac_status=$?
  26091. grep -v '^ *+' conftest.er1 >conftest.err
  26092. rm -f conftest.er1
  26093. cat conftest.err >&5
  26094. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26095. (exit $ac_status); } && {
  26096. test -z "$ac_c_werror_flag" ||
  26097. test ! -s conftest.err
  26098. } && test -s conftest.$ac_objext; then
  26099. ac_header_compiler=yes
  26100. else
  26101. $as_echo "$as_me: failed program was:" >&5
  26102. sed 's/^/| /' conftest.$ac_ext >&5
  26103. ac_header_compiler=no
  26104. fi
  26105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26106. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26107. $as_echo "$ac_header_compiler" >&6; }
  26108. # Is the header present?
  26109. { $as_echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
  26110. $as_echo_n "checking gsm/gsm.h presence... " >&6; }
  26111. cat >conftest.$ac_ext <<_ACEOF
  26112. /* confdefs.h. */
  26113. _ACEOF
  26114. cat confdefs.h >>conftest.$ac_ext
  26115. cat >>conftest.$ac_ext <<_ACEOF
  26116. /* end confdefs.h. */
  26117. #include <gsm/gsm.h>
  26118. _ACEOF
  26119. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26120. case "(($ac_try" in
  26121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26122. *) ac_try_echo=$ac_try;;
  26123. esac
  26124. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26125. $as_echo "$ac_try_echo") >&5
  26126. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26127. ac_status=$?
  26128. grep -v '^ *+' conftest.er1 >conftest.err
  26129. rm -f conftest.er1
  26130. cat conftest.err >&5
  26131. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26132. (exit $ac_status); } >/dev/null && {
  26133. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26134. test ! -s conftest.err
  26135. }; then
  26136. ac_header_preproc=yes
  26137. else
  26138. $as_echo "$as_me: failed program was:" >&5
  26139. sed 's/^/| /' conftest.$ac_ext >&5
  26140. ac_header_preproc=no
  26141. fi
  26142. rm -f conftest.err conftest.$ac_ext
  26143. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26144. $as_echo "$ac_header_preproc" >&6; }
  26145. # So? What about this header?
  26146. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26147. yes:no: )
  26148. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26149. $as_echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26150. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
  26151. $as_echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
  26152. ac_header_preproc=yes
  26153. ;;
  26154. no:yes:* )
  26155. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
  26156. $as_echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
  26157. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
  26158. $as_echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
  26159. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
  26160. $as_echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
  26161. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  26162. $as_echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26163. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
  26164. $as_echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
  26165. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
  26166. $as_echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
  26167. ( cat <<\_ASBOX
  26168. ## ------------------------------------------ ##
  26169. ## Report this to https://issues.asterisk.org ##
  26170. ## ------------------------------------------ ##
  26171. _ASBOX
  26172. ) | sed "s/^/$as_me: WARNING: /" >&2
  26173. ;;
  26174. esac
  26175. { $as_echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
  26176. $as_echo_n "checking for gsm/gsm.h... " >&6; }
  26177. if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
  26178. $as_echo_n "(cached) " >&6
  26179. else
  26180. ac_cv_header_gsm_gsm_h=$ac_header_preproc
  26181. fi
  26182. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
  26183. $as_echo "$ac_cv_header_gsm_gsm_h" >&6; }
  26184. fi
  26185. if test "x$ac_cv_header_gsm_gsm_h" = x""yes; then
  26186. GSM_GSM_HEADER_FOUND=1
  26187. else
  26188. GSM_GSM_HEADER_FOUND=0
  26189. fi
  26190. fi
  26191. if test "${GSM_HEADER_FOUND}" = "0" ; then
  26192. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  26193. if test "x${GSM_MANDATORY}" = "xyes" ; then
  26194. { $as_echo "$as_me:$LINENO: ***" >&5
  26195. $as_echo "$as_me: ***" >&6;}
  26196. { $as_echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
  26197. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  26198. { $as_echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  26199. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  26200. { $as_echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  26201. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  26202. exit 1
  26203. fi
  26204. fi
  26205. fi
  26206. GSM_OK=0
  26207. if test "${GSM_HEADER_FOUND}" = "1" ; then
  26208. cat >>confdefs.h <<_ACEOF
  26209. #define HAVE_GSM_HEADER 1
  26210. _ACEOF
  26211. GSM_OK=1
  26212. else
  26213. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  26214. cat >>confdefs.h <<_ACEOF
  26215. #define HAVE_GSM_GSM_HEADER 1
  26216. _ACEOF
  26217. GSM_OK=1
  26218. fi
  26219. fi
  26220. if test "${GSM_OK}" = "1" ; then
  26221. GSM_LIB="-lgsm"
  26222. if test "x${GSM_DIR}" != "x"; then
  26223. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  26224. GSM_INCLUDE="-I${GSM_DIR}/include"
  26225. fi
  26226. PBX_GSM=1
  26227. GSM_INTERNAL="no"
  26228. fi
  26229. fi
  26230. fi
  26231. if test "${GSM_INTERNAL}" = "yes"; then
  26232. PBX_GSM=1
  26233. cat >>confdefs.h <<_ACEOF
  26234. #define HAVE_GSM_HEADER 1
  26235. _ACEOF
  26236. fi
  26237. fi
  26238. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  26239. pbxlibdir=""
  26240. # if --with-ICONV=DIR has been specified, use it.
  26241. if test "x${ICONV_DIR}" != "x"; then
  26242. if test -d ${ICONV_DIR}/lib; then
  26243. pbxlibdir="-L${ICONV_DIR}/lib"
  26244. else
  26245. pbxlibdir="-L${ICONV_DIR}"
  26246. fi
  26247. fi
  26248. pbxfuncname="iconv_open"
  26249. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26250. AST_ICONV_FOUND=yes
  26251. else
  26252. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26253. CFLAGS="${CFLAGS} "
  26254. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  26255. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
  26256. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  26257. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  26258. $as_echo_n "(cached) " >&6
  26259. else
  26260. ac_check_lib_save_LIBS=$LIBS
  26261. LIBS="-liconv ${pbxlibdir} $LIBS"
  26262. cat >conftest.$ac_ext <<_ACEOF
  26263. /* confdefs.h. */
  26264. _ACEOF
  26265. cat confdefs.h >>conftest.$ac_ext
  26266. cat >>conftest.$ac_ext <<_ACEOF
  26267. /* end confdefs.h. */
  26268. /* Override any GCC internal prototype to avoid an error.
  26269. Use char because int might match the return type of a GCC
  26270. builtin and then its argument prototype would still apply. */
  26271. #ifdef __cplusplus
  26272. extern "C"
  26273. #endif
  26274. char ${pbxfuncname} ();
  26275. int
  26276. main ()
  26277. {
  26278. return ${pbxfuncname} ();
  26279. ;
  26280. return 0;
  26281. }
  26282. _ACEOF
  26283. rm -f conftest.$ac_objext conftest$ac_exeext
  26284. if { (ac_try="$ac_link"
  26285. case "(($ac_try" in
  26286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26287. *) ac_try_echo=$ac_try;;
  26288. esac
  26289. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26290. $as_echo "$ac_try_echo") >&5
  26291. (eval "$ac_link") 2>conftest.er1
  26292. ac_status=$?
  26293. grep -v '^ *+' conftest.er1 >conftest.err
  26294. rm -f conftest.er1
  26295. cat conftest.err >&5
  26296. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26297. (exit $ac_status); } && {
  26298. test -z "$ac_c_werror_flag" ||
  26299. test ! -s conftest.err
  26300. } && test -s conftest$ac_exeext && {
  26301. test "$cross_compiling" = yes ||
  26302. $as_test_x conftest$ac_exeext
  26303. }; then
  26304. eval "$as_ac_Lib=yes"
  26305. else
  26306. $as_echo "$as_me: failed program was:" >&5
  26307. sed 's/^/| /' conftest.$ac_ext >&5
  26308. eval "$as_ac_Lib=no"
  26309. fi
  26310. rm -rf conftest.dSYM
  26311. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26312. conftest$ac_exeext conftest.$ac_ext
  26313. LIBS=$ac_check_lib_save_LIBS
  26314. fi
  26315. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  26316. $as_echo "$as_val"'`
  26317. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26318. $as_echo "$ac_res" >&6; }
  26319. as_val=`eval 'as_val=${'$as_ac_Lib'}
  26320. $as_echo "$as_val"'`
  26321. if test "x$as_val" = x""yes; then
  26322. AST_ICONV_FOUND=yes
  26323. else
  26324. AST_ICONV_FOUND=no
  26325. fi
  26326. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26327. fi
  26328. # now check for the header.
  26329. if test "${AST_ICONV_FOUND}" = "yes"; then
  26330. ICONV_LIB="${pbxlibdir} -liconv "
  26331. # if --with-ICONV=DIR has been specified, use it.
  26332. if test "x${ICONV_DIR}" != "x"; then
  26333. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  26334. fi
  26335. ICONV_INCLUDE="${ICONV_INCLUDE} "
  26336. if test "xiconv.h" = "x" ; then # no header, assume found
  26337. ICONV_HEADER_FOUND="1"
  26338. else # check for the header
  26339. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26340. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  26341. if test "${ac_cv_header_iconv_h+set}" = set; then
  26342. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26343. $as_echo_n "checking for iconv.h... " >&6; }
  26344. if test "${ac_cv_header_iconv_h+set}" = set; then
  26345. $as_echo_n "(cached) " >&6
  26346. fi
  26347. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26348. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26349. else
  26350. # Is the header compilable?
  26351. { $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
  26352. $as_echo_n "checking iconv.h usability... " >&6; }
  26353. cat >conftest.$ac_ext <<_ACEOF
  26354. /* confdefs.h. */
  26355. _ACEOF
  26356. cat confdefs.h >>conftest.$ac_ext
  26357. cat >>conftest.$ac_ext <<_ACEOF
  26358. /* end confdefs.h. */
  26359. $ac_includes_default
  26360. #include <iconv.h>
  26361. _ACEOF
  26362. rm -f conftest.$ac_objext
  26363. if { (ac_try="$ac_compile"
  26364. case "(($ac_try" in
  26365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26366. *) ac_try_echo=$ac_try;;
  26367. esac
  26368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26369. $as_echo "$ac_try_echo") >&5
  26370. (eval "$ac_compile") 2>conftest.er1
  26371. ac_status=$?
  26372. grep -v '^ *+' conftest.er1 >conftest.err
  26373. rm -f conftest.er1
  26374. cat conftest.err >&5
  26375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26376. (exit $ac_status); } && {
  26377. test -z "$ac_c_werror_flag" ||
  26378. test ! -s conftest.err
  26379. } && test -s conftest.$ac_objext; then
  26380. ac_header_compiler=yes
  26381. else
  26382. $as_echo "$as_me: failed program was:" >&5
  26383. sed 's/^/| /' conftest.$ac_ext >&5
  26384. ac_header_compiler=no
  26385. fi
  26386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26387. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26388. $as_echo "$ac_header_compiler" >&6; }
  26389. # Is the header present?
  26390. { $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
  26391. $as_echo_n "checking iconv.h presence... " >&6; }
  26392. cat >conftest.$ac_ext <<_ACEOF
  26393. /* confdefs.h. */
  26394. _ACEOF
  26395. cat confdefs.h >>conftest.$ac_ext
  26396. cat >>conftest.$ac_ext <<_ACEOF
  26397. /* end confdefs.h. */
  26398. #include <iconv.h>
  26399. _ACEOF
  26400. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26401. case "(($ac_try" in
  26402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26403. *) ac_try_echo=$ac_try;;
  26404. esac
  26405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26406. $as_echo "$ac_try_echo") >&5
  26407. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26408. ac_status=$?
  26409. grep -v '^ *+' conftest.er1 >conftest.err
  26410. rm -f conftest.er1
  26411. cat conftest.err >&5
  26412. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26413. (exit $ac_status); } >/dev/null && {
  26414. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26415. test ! -s conftest.err
  26416. }; then
  26417. ac_header_preproc=yes
  26418. else
  26419. $as_echo "$as_me: failed program was:" >&5
  26420. sed 's/^/| /' conftest.$ac_ext >&5
  26421. ac_header_preproc=no
  26422. fi
  26423. rm -f conftest.err conftest.$ac_ext
  26424. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26425. $as_echo "$ac_header_preproc" >&6; }
  26426. # So? What about this header?
  26427. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26428. yes:no: )
  26429. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26430. $as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26431. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
  26432. $as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
  26433. ac_header_preproc=yes
  26434. ;;
  26435. no:yes:* )
  26436. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
  26437. $as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
  26438. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
  26439. $as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
  26440. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
  26441. $as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
  26442. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
  26443. $as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26444. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
  26445. $as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
  26446. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
  26447. $as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
  26448. ( cat <<\_ASBOX
  26449. ## ------------------------------------------ ##
  26450. ## Report this to https://issues.asterisk.org ##
  26451. ## ------------------------------------------ ##
  26452. _ASBOX
  26453. ) | sed "s/^/$as_me: WARNING: /" >&2
  26454. ;;
  26455. esac
  26456. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26457. $as_echo_n "checking for iconv.h... " >&6; }
  26458. if test "${ac_cv_header_iconv_h+set}" = set; then
  26459. $as_echo_n "(cached) " >&6
  26460. else
  26461. ac_cv_header_iconv_h=$ac_header_preproc
  26462. fi
  26463. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26464. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26465. fi
  26466. if test "x$ac_cv_header_iconv_h" = x""yes; then
  26467. ICONV_HEADER_FOUND=1
  26468. else
  26469. ICONV_HEADER_FOUND=0
  26470. fi
  26471. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26472. fi
  26473. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  26474. ICONV_LIB=""
  26475. ICONV_INCLUDE=""
  26476. else
  26477. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26478. ICONV_LIB=""
  26479. fi
  26480. PBX_ICONV=1
  26481. cat >>confdefs.h <<_ACEOF
  26482. #define HAVE_ICONV 1
  26483. _ACEOF
  26484. fi
  26485. fi
  26486. fi
  26487. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  26488. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  26489. pbxlibdir=""
  26490. # if --with-ICONV=DIR has been specified, use it.
  26491. if test "x${ICONV_DIR}" != "x"; then
  26492. if test -d ${ICONV_DIR}/lib; then
  26493. pbxlibdir="-L${ICONV_DIR}/lib"
  26494. else
  26495. pbxlibdir="-L${ICONV_DIR}"
  26496. fi
  26497. fi
  26498. pbxfuncname="libiconv_open"
  26499. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26500. AST_ICONV_FOUND=yes
  26501. else
  26502. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26503. CFLAGS="${CFLAGS} "
  26504. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  26505. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
  26506. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  26507. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  26508. $as_echo_n "(cached) " >&6
  26509. else
  26510. ac_check_lib_save_LIBS=$LIBS
  26511. LIBS="-liconv ${pbxlibdir} $LIBS"
  26512. cat >conftest.$ac_ext <<_ACEOF
  26513. /* confdefs.h. */
  26514. _ACEOF
  26515. cat confdefs.h >>conftest.$ac_ext
  26516. cat >>conftest.$ac_ext <<_ACEOF
  26517. /* end confdefs.h. */
  26518. /* Override any GCC internal prototype to avoid an error.
  26519. Use char because int might match the return type of a GCC
  26520. builtin and then its argument prototype would still apply. */
  26521. #ifdef __cplusplus
  26522. extern "C"
  26523. #endif
  26524. char ${pbxfuncname} ();
  26525. int
  26526. main ()
  26527. {
  26528. return ${pbxfuncname} ();
  26529. ;
  26530. return 0;
  26531. }
  26532. _ACEOF
  26533. rm -f conftest.$ac_objext conftest$ac_exeext
  26534. if { (ac_try="$ac_link"
  26535. case "(($ac_try" in
  26536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26537. *) ac_try_echo=$ac_try;;
  26538. esac
  26539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26540. $as_echo "$ac_try_echo") >&5
  26541. (eval "$ac_link") 2>conftest.er1
  26542. ac_status=$?
  26543. grep -v '^ *+' conftest.er1 >conftest.err
  26544. rm -f conftest.er1
  26545. cat conftest.err >&5
  26546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26547. (exit $ac_status); } && {
  26548. test -z "$ac_c_werror_flag" ||
  26549. test ! -s conftest.err
  26550. } && test -s conftest$ac_exeext && {
  26551. test "$cross_compiling" = yes ||
  26552. $as_test_x conftest$ac_exeext
  26553. }; then
  26554. eval "$as_ac_Lib=yes"
  26555. else
  26556. $as_echo "$as_me: failed program was:" >&5
  26557. sed 's/^/| /' conftest.$ac_ext >&5
  26558. eval "$as_ac_Lib=no"
  26559. fi
  26560. rm -rf conftest.dSYM
  26561. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26562. conftest$ac_exeext conftest.$ac_ext
  26563. LIBS=$ac_check_lib_save_LIBS
  26564. fi
  26565. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  26566. $as_echo "$as_val"'`
  26567. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26568. $as_echo "$ac_res" >&6; }
  26569. as_val=`eval 'as_val=${'$as_ac_Lib'}
  26570. $as_echo "$as_val"'`
  26571. if test "x$as_val" = x""yes; then
  26572. AST_ICONV_FOUND=yes
  26573. else
  26574. AST_ICONV_FOUND=no
  26575. fi
  26576. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26577. fi
  26578. # now check for the header.
  26579. if test "${AST_ICONV_FOUND}" = "yes"; then
  26580. ICONV_LIB="${pbxlibdir} -liconv "
  26581. # if --with-ICONV=DIR has been specified, use it.
  26582. if test "x${ICONV_DIR}" != "x"; then
  26583. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  26584. fi
  26585. ICONV_INCLUDE="${ICONV_INCLUDE} "
  26586. if test "xiconv.h" = "x" ; then # no header, assume found
  26587. ICONV_HEADER_FOUND="1"
  26588. else # check for the header
  26589. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26590. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  26591. if test "${ac_cv_header_iconv_h+set}" = set; then
  26592. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26593. $as_echo_n "checking for iconv.h... " >&6; }
  26594. if test "${ac_cv_header_iconv_h+set}" = set; then
  26595. $as_echo_n "(cached) " >&6
  26596. fi
  26597. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26598. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26599. else
  26600. # Is the header compilable?
  26601. { $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
  26602. $as_echo_n "checking iconv.h usability... " >&6; }
  26603. cat >conftest.$ac_ext <<_ACEOF
  26604. /* confdefs.h. */
  26605. _ACEOF
  26606. cat confdefs.h >>conftest.$ac_ext
  26607. cat >>conftest.$ac_ext <<_ACEOF
  26608. /* end confdefs.h. */
  26609. $ac_includes_default
  26610. #include <iconv.h>
  26611. _ACEOF
  26612. rm -f conftest.$ac_objext
  26613. if { (ac_try="$ac_compile"
  26614. case "(($ac_try" in
  26615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26616. *) ac_try_echo=$ac_try;;
  26617. esac
  26618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26619. $as_echo "$ac_try_echo") >&5
  26620. (eval "$ac_compile") 2>conftest.er1
  26621. ac_status=$?
  26622. grep -v '^ *+' conftest.er1 >conftest.err
  26623. rm -f conftest.er1
  26624. cat conftest.err >&5
  26625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26626. (exit $ac_status); } && {
  26627. test -z "$ac_c_werror_flag" ||
  26628. test ! -s conftest.err
  26629. } && test -s conftest.$ac_objext; then
  26630. ac_header_compiler=yes
  26631. else
  26632. $as_echo "$as_me: failed program was:" >&5
  26633. sed 's/^/| /' conftest.$ac_ext >&5
  26634. ac_header_compiler=no
  26635. fi
  26636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26637. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26638. $as_echo "$ac_header_compiler" >&6; }
  26639. # Is the header present?
  26640. { $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
  26641. $as_echo_n "checking iconv.h presence... " >&6; }
  26642. cat >conftest.$ac_ext <<_ACEOF
  26643. /* confdefs.h. */
  26644. _ACEOF
  26645. cat confdefs.h >>conftest.$ac_ext
  26646. cat >>conftest.$ac_ext <<_ACEOF
  26647. /* end confdefs.h. */
  26648. #include <iconv.h>
  26649. _ACEOF
  26650. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26651. case "(($ac_try" in
  26652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26653. *) ac_try_echo=$ac_try;;
  26654. esac
  26655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26656. $as_echo "$ac_try_echo") >&5
  26657. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26658. ac_status=$?
  26659. grep -v '^ *+' conftest.er1 >conftest.err
  26660. rm -f conftest.er1
  26661. cat conftest.err >&5
  26662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26663. (exit $ac_status); } >/dev/null && {
  26664. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26665. test ! -s conftest.err
  26666. }; then
  26667. ac_header_preproc=yes
  26668. else
  26669. $as_echo "$as_me: failed program was:" >&5
  26670. sed 's/^/| /' conftest.$ac_ext >&5
  26671. ac_header_preproc=no
  26672. fi
  26673. rm -f conftest.err conftest.$ac_ext
  26674. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26675. $as_echo "$ac_header_preproc" >&6; }
  26676. # So? What about this header?
  26677. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26678. yes:no: )
  26679. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26680. $as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26681. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
  26682. $as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
  26683. ac_header_preproc=yes
  26684. ;;
  26685. no:yes:* )
  26686. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
  26687. $as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
  26688. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
  26689. $as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
  26690. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
  26691. $as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
  26692. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
  26693. $as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26694. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
  26695. $as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
  26696. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
  26697. $as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
  26698. ( cat <<\_ASBOX
  26699. ## ------------------------------------------ ##
  26700. ## Report this to https://issues.asterisk.org ##
  26701. ## ------------------------------------------ ##
  26702. _ASBOX
  26703. ) | sed "s/^/$as_me: WARNING: /" >&2
  26704. ;;
  26705. esac
  26706. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26707. $as_echo_n "checking for iconv.h... " >&6; }
  26708. if test "${ac_cv_header_iconv_h+set}" = set; then
  26709. $as_echo_n "(cached) " >&6
  26710. else
  26711. ac_cv_header_iconv_h=$ac_header_preproc
  26712. fi
  26713. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26714. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26715. fi
  26716. if test "x$ac_cv_header_iconv_h" = x""yes; then
  26717. ICONV_HEADER_FOUND=1
  26718. else
  26719. ICONV_HEADER_FOUND=0
  26720. fi
  26721. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26722. fi
  26723. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  26724. ICONV_LIB=""
  26725. ICONV_INCLUDE=""
  26726. else
  26727. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26728. ICONV_LIB=""
  26729. fi
  26730. PBX_ICONV=1
  26731. cat >>confdefs.h <<_ACEOF
  26732. #define HAVE_ICONV 1
  26733. _ACEOF
  26734. fi
  26735. fi
  26736. fi
  26737. # Some versions of Linux package iconv in glibc
  26738. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  26739. pbxlibdir=""
  26740. # if --with-ICONV=DIR has been specified, use it.
  26741. if test "x${ICONV_DIR}" != "x"; then
  26742. if test -d ${ICONV_DIR}/lib; then
  26743. pbxlibdir="-L${ICONV_DIR}/lib"
  26744. else
  26745. pbxlibdir="-L${ICONV_DIR}"
  26746. fi
  26747. fi
  26748. pbxfuncname="iconv_close"
  26749. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26750. AST_ICONV_FOUND=yes
  26751. else
  26752. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26753. CFLAGS="${CFLAGS} "
  26754. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  26755. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  26756. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  26757. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  26758. $as_echo_n "(cached) " >&6
  26759. else
  26760. ac_check_lib_save_LIBS=$LIBS
  26761. LIBS="-lc ${pbxlibdir} $LIBS"
  26762. cat >conftest.$ac_ext <<_ACEOF
  26763. /* confdefs.h. */
  26764. _ACEOF
  26765. cat confdefs.h >>conftest.$ac_ext
  26766. cat >>conftest.$ac_ext <<_ACEOF
  26767. /* end confdefs.h. */
  26768. /* Override any GCC internal prototype to avoid an error.
  26769. Use char because int might match the return type of a GCC
  26770. builtin and then its argument prototype would still apply. */
  26771. #ifdef __cplusplus
  26772. extern "C"
  26773. #endif
  26774. char ${pbxfuncname} ();
  26775. int
  26776. main ()
  26777. {
  26778. return ${pbxfuncname} ();
  26779. ;
  26780. return 0;
  26781. }
  26782. _ACEOF
  26783. rm -f conftest.$ac_objext conftest$ac_exeext
  26784. if { (ac_try="$ac_link"
  26785. case "(($ac_try" in
  26786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26787. *) ac_try_echo=$ac_try;;
  26788. esac
  26789. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26790. $as_echo "$ac_try_echo") >&5
  26791. (eval "$ac_link") 2>conftest.er1
  26792. ac_status=$?
  26793. grep -v '^ *+' conftest.er1 >conftest.err
  26794. rm -f conftest.er1
  26795. cat conftest.err >&5
  26796. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26797. (exit $ac_status); } && {
  26798. test -z "$ac_c_werror_flag" ||
  26799. test ! -s conftest.err
  26800. } && test -s conftest$ac_exeext && {
  26801. test "$cross_compiling" = yes ||
  26802. $as_test_x conftest$ac_exeext
  26803. }; then
  26804. eval "$as_ac_Lib=yes"
  26805. else
  26806. $as_echo "$as_me: failed program was:" >&5
  26807. sed 's/^/| /' conftest.$ac_ext >&5
  26808. eval "$as_ac_Lib=no"
  26809. fi
  26810. rm -rf conftest.dSYM
  26811. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26812. conftest$ac_exeext conftest.$ac_ext
  26813. LIBS=$ac_check_lib_save_LIBS
  26814. fi
  26815. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  26816. $as_echo "$as_val"'`
  26817. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26818. $as_echo "$ac_res" >&6; }
  26819. as_val=`eval 'as_val=${'$as_ac_Lib'}
  26820. $as_echo "$as_val"'`
  26821. if test "x$as_val" = x""yes; then
  26822. AST_ICONV_FOUND=yes
  26823. else
  26824. AST_ICONV_FOUND=no
  26825. fi
  26826. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26827. fi
  26828. # now check for the header.
  26829. if test "${AST_ICONV_FOUND}" = "yes"; then
  26830. ICONV_LIB="${pbxlibdir} -lc "
  26831. # if --with-ICONV=DIR has been specified, use it.
  26832. if test "x${ICONV_DIR}" != "x"; then
  26833. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  26834. fi
  26835. ICONV_INCLUDE="${ICONV_INCLUDE} "
  26836. if test "xiconv.h" = "x" ; then # no header, assume found
  26837. ICONV_HEADER_FOUND="1"
  26838. else # check for the header
  26839. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26840. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  26841. if test "${ac_cv_header_iconv_h+set}" = set; then
  26842. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26843. $as_echo_n "checking for iconv.h... " >&6; }
  26844. if test "${ac_cv_header_iconv_h+set}" = set; then
  26845. $as_echo_n "(cached) " >&6
  26846. fi
  26847. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26848. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26849. else
  26850. # Is the header compilable?
  26851. { $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
  26852. $as_echo_n "checking iconv.h usability... " >&6; }
  26853. cat >conftest.$ac_ext <<_ACEOF
  26854. /* confdefs.h. */
  26855. _ACEOF
  26856. cat confdefs.h >>conftest.$ac_ext
  26857. cat >>conftest.$ac_ext <<_ACEOF
  26858. /* end confdefs.h. */
  26859. $ac_includes_default
  26860. #include <iconv.h>
  26861. _ACEOF
  26862. rm -f conftest.$ac_objext
  26863. if { (ac_try="$ac_compile"
  26864. case "(($ac_try" in
  26865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26866. *) ac_try_echo=$ac_try;;
  26867. esac
  26868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26869. $as_echo "$ac_try_echo") >&5
  26870. (eval "$ac_compile") 2>conftest.er1
  26871. ac_status=$?
  26872. grep -v '^ *+' conftest.er1 >conftest.err
  26873. rm -f conftest.er1
  26874. cat conftest.err >&5
  26875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26876. (exit $ac_status); } && {
  26877. test -z "$ac_c_werror_flag" ||
  26878. test ! -s conftest.err
  26879. } && test -s conftest.$ac_objext; then
  26880. ac_header_compiler=yes
  26881. else
  26882. $as_echo "$as_me: failed program was:" >&5
  26883. sed 's/^/| /' conftest.$ac_ext >&5
  26884. ac_header_compiler=no
  26885. fi
  26886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26887. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26888. $as_echo "$ac_header_compiler" >&6; }
  26889. # Is the header present?
  26890. { $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
  26891. $as_echo_n "checking iconv.h presence... " >&6; }
  26892. cat >conftest.$ac_ext <<_ACEOF
  26893. /* confdefs.h. */
  26894. _ACEOF
  26895. cat confdefs.h >>conftest.$ac_ext
  26896. cat >>conftest.$ac_ext <<_ACEOF
  26897. /* end confdefs.h. */
  26898. #include <iconv.h>
  26899. _ACEOF
  26900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26901. case "(($ac_try" in
  26902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26903. *) ac_try_echo=$ac_try;;
  26904. esac
  26905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26906. $as_echo "$ac_try_echo") >&5
  26907. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26908. ac_status=$?
  26909. grep -v '^ *+' conftest.er1 >conftest.err
  26910. rm -f conftest.er1
  26911. cat conftest.err >&5
  26912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26913. (exit $ac_status); } >/dev/null && {
  26914. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26915. test ! -s conftest.err
  26916. }; then
  26917. ac_header_preproc=yes
  26918. else
  26919. $as_echo "$as_me: failed program was:" >&5
  26920. sed 's/^/| /' conftest.$ac_ext >&5
  26921. ac_header_preproc=no
  26922. fi
  26923. rm -f conftest.err conftest.$ac_ext
  26924. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26925. $as_echo "$ac_header_preproc" >&6; }
  26926. # So? What about this header?
  26927. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26928. yes:no: )
  26929. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26930. $as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26931. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
  26932. $as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
  26933. ac_header_preproc=yes
  26934. ;;
  26935. no:yes:* )
  26936. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
  26937. $as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
  26938. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
  26939. $as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
  26940. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
  26941. $as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
  26942. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
  26943. $as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26944. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
  26945. $as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
  26946. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
  26947. $as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
  26948. ( cat <<\_ASBOX
  26949. ## ------------------------------------------ ##
  26950. ## Report this to https://issues.asterisk.org ##
  26951. ## ------------------------------------------ ##
  26952. _ASBOX
  26953. ) | sed "s/^/$as_me: WARNING: /" >&2
  26954. ;;
  26955. esac
  26956. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26957. $as_echo_n "checking for iconv.h... " >&6; }
  26958. if test "${ac_cv_header_iconv_h+set}" = set; then
  26959. $as_echo_n "(cached) " >&6
  26960. else
  26961. ac_cv_header_iconv_h=$ac_header_preproc
  26962. fi
  26963. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26964. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26965. fi
  26966. if test "x$ac_cv_header_iconv_h" = x""yes; then
  26967. ICONV_HEADER_FOUND=1
  26968. else
  26969. ICONV_HEADER_FOUND=0
  26970. fi
  26971. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26972. fi
  26973. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  26974. ICONV_LIB=""
  26975. ICONV_INCLUDE=""
  26976. else
  26977. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26978. ICONV_LIB=""
  26979. fi
  26980. PBX_ICONV=1
  26981. cat >>confdefs.h <<_ACEOF
  26982. #define HAVE_ICONV 1
  26983. _ACEOF
  26984. fi
  26985. fi
  26986. fi
  26987. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  26988. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  26989. pbxlibdir=""
  26990. # if --with-ICAL=DIR has been specified, use it.
  26991. if test "x${ICAL_DIR}" != "x"; then
  26992. if test -d ${ICAL_DIR}/lib; then
  26993. pbxlibdir="-L${ICAL_DIR}/lib"
  26994. else
  26995. pbxlibdir="-L${ICAL_DIR}"
  26996. fi
  26997. fi
  26998. pbxfuncname="icaltimezone_get_utc_timezone"
  26999. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27000. AST_ICAL_FOUND=yes
  27001. else
  27002. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27003. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  27004. as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
  27005. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lical" >&5
  27006. $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
  27007. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  27008. $as_echo_n "(cached) " >&6
  27009. else
  27010. ac_check_lib_save_LIBS=$LIBS
  27011. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  27012. cat >conftest.$ac_ext <<_ACEOF
  27013. /* confdefs.h. */
  27014. _ACEOF
  27015. cat confdefs.h >>conftest.$ac_ext
  27016. cat >>conftest.$ac_ext <<_ACEOF
  27017. /* end confdefs.h. */
  27018. /* Override any GCC internal prototype to avoid an error.
  27019. Use char because int might match the return type of a GCC
  27020. builtin and then its argument prototype would still apply. */
  27021. #ifdef __cplusplus
  27022. extern "C"
  27023. #endif
  27024. char ${pbxfuncname} ();
  27025. int
  27026. main ()
  27027. {
  27028. return ${pbxfuncname} ();
  27029. ;
  27030. return 0;
  27031. }
  27032. _ACEOF
  27033. rm -f conftest.$ac_objext conftest$ac_exeext
  27034. if { (ac_try="$ac_link"
  27035. case "(($ac_try" in
  27036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27037. *) ac_try_echo=$ac_try;;
  27038. esac
  27039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27040. $as_echo "$ac_try_echo") >&5
  27041. (eval "$ac_link") 2>conftest.er1
  27042. ac_status=$?
  27043. grep -v '^ *+' conftest.er1 >conftest.err
  27044. rm -f conftest.er1
  27045. cat conftest.err >&5
  27046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27047. (exit $ac_status); } && {
  27048. test -z "$ac_c_werror_flag" ||
  27049. test ! -s conftest.err
  27050. } && test -s conftest$ac_exeext && {
  27051. test "$cross_compiling" = yes ||
  27052. $as_test_x conftest$ac_exeext
  27053. }; then
  27054. eval "$as_ac_Lib=yes"
  27055. else
  27056. $as_echo "$as_me: failed program was:" >&5
  27057. sed 's/^/| /' conftest.$ac_ext >&5
  27058. eval "$as_ac_Lib=no"
  27059. fi
  27060. rm -rf conftest.dSYM
  27061. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27062. conftest$ac_exeext conftest.$ac_ext
  27063. LIBS=$ac_check_lib_save_LIBS
  27064. fi
  27065. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  27066. $as_echo "$as_val"'`
  27067. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  27068. $as_echo "$ac_res" >&6; }
  27069. as_val=`eval 'as_val=${'$as_ac_Lib'}
  27070. $as_echo "$as_val"'`
  27071. if test "x$as_val" = x""yes; then
  27072. AST_ICAL_FOUND=yes
  27073. else
  27074. AST_ICAL_FOUND=no
  27075. fi
  27076. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27077. fi
  27078. # now check for the header.
  27079. if test "${AST_ICAL_FOUND}" = "yes"; then
  27080. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  27081. # if --with-ICAL=DIR has been specified, use it.
  27082. if test "x${ICAL_DIR}" != "x"; then
  27083. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  27084. fi
  27085. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  27086. if test "xlibical/ical.h" = "x" ; then # no header, assume found
  27087. ICAL_HEADER_FOUND="1"
  27088. else # check for the header
  27089. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27090. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  27091. if test "${ac_cv_header_libical_ical_h+set}" = set; then
  27092. { $as_echo "$as_me:$LINENO: checking for libical/ical.h" >&5
  27093. $as_echo_n "checking for libical/ical.h... " >&6; }
  27094. if test "${ac_cv_header_libical_ical_h+set}" = set; then
  27095. $as_echo_n "(cached) " >&6
  27096. fi
  27097. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libical_ical_h" >&5
  27098. $as_echo "$ac_cv_header_libical_ical_h" >&6; }
  27099. else
  27100. # Is the header compilable?
  27101. { $as_echo "$as_me:$LINENO: checking libical/ical.h usability" >&5
  27102. $as_echo_n "checking libical/ical.h usability... " >&6; }
  27103. cat >conftest.$ac_ext <<_ACEOF
  27104. /* confdefs.h. */
  27105. _ACEOF
  27106. cat confdefs.h >>conftest.$ac_ext
  27107. cat >>conftest.$ac_ext <<_ACEOF
  27108. /* end confdefs.h. */
  27109. $ac_includes_default
  27110. #include <libical/ical.h>
  27111. _ACEOF
  27112. rm -f conftest.$ac_objext
  27113. if { (ac_try="$ac_compile"
  27114. case "(($ac_try" in
  27115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27116. *) ac_try_echo=$ac_try;;
  27117. esac
  27118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27119. $as_echo "$ac_try_echo") >&5
  27120. (eval "$ac_compile") 2>conftest.er1
  27121. ac_status=$?
  27122. grep -v '^ *+' conftest.er1 >conftest.err
  27123. rm -f conftest.er1
  27124. cat conftest.err >&5
  27125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27126. (exit $ac_status); } && {
  27127. test -z "$ac_c_werror_flag" ||
  27128. test ! -s conftest.err
  27129. } && test -s conftest.$ac_objext; then
  27130. ac_header_compiler=yes
  27131. else
  27132. $as_echo "$as_me: failed program was:" >&5
  27133. sed 's/^/| /' conftest.$ac_ext >&5
  27134. ac_header_compiler=no
  27135. fi
  27136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27137. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27138. $as_echo "$ac_header_compiler" >&6; }
  27139. # Is the header present?
  27140. { $as_echo "$as_me:$LINENO: checking libical/ical.h presence" >&5
  27141. $as_echo_n "checking libical/ical.h presence... " >&6; }
  27142. cat >conftest.$ac_ext <<_ACEOF
  27143. /* confdefs.h. */
  27144. _ACEOF
  27145. cat confdefs.h >>conftest.$ac_ext
  27146. cat >>conftest.$ac_ext <<_ACEOF
  27147. /* end confdefs.h. */
  27148. #include <libical/ical.h>
  27149. _ACEOF
  27150. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27151. case "(($ac_try" in
  27152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27153. *) ac_try_echo=$ac_try;;
  27154. esac
  27155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27156. $as_echo "$ac_try_echo") >&5
  27157. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27158. ac_status=$?
  27159. grep -v '^ *+' conftest.er1 >conftest.err
  27160. rm -f conftest.er1
  27161. cat conftest.err >&5
  27162. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27163. (exit $ac_status); } >/dev/null && {
  27164. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27165. test ! -s conftest.err
  27166. }; then
  27167. ac_header_preproc=yes
  27168. else
  27169. $as_echo "$as_me: failed program was:" >&5
  27170. sed 's/^/| /' conftest.$ac_ext >&5
  27171. ac_header_preproc=no
  27172. fi
  27173. rm -f conftest.err conftest.$ac_ext
  27174. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27175. $as_echo "$ac_header_preproc" >&6; }
  27176. # So? What about this header?
  27177. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27178. yes:no: )
  27179. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27180. $as_echo "$as_me: WARNING: libical/ical.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27181. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: proceeding with the compiler's result" >&5
  27182. $as_echo "$as_me: WARNING: libical/ical.h: proceeding with the compiler's result" >&2;}
  27183. ac_header_preproc=yes
  27184. ;;
  27185. no:yes:* )
  27186. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: present but cannot be compiled" >&5
  27187. $as_echo "$as_me: WARNING: libical/ical.h: present but cannot be compiled" >&2;}
  27188. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: check for missing prerequisite headers?" >&5
  27189. $as_echo "$as_me: WARNING: libical/ical.h: check for missing prerequisite headers?" >&2;}
  27190. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: see the Autoconf documentation" >&5
  27191. $as_echo "$as_me: WARNING: libical/ical.h: see the Autoconf documentation" >&2;}
  27192. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: section \"Present But Cannot Be Compiled\"" >&5
  27193. $as_echo "$as_me: WARNING: libical/ical.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27194. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: proceeding with the preprocessor's result" >&5
  27195. $as_echo "$as_me: WARNING: libical/ical.h: proceeding with the preprocessor's result" >&2;}
  27196. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: in the future, the compiler will take precedence" >&5
  27197. $as_echo "$as_me: WARNING: libical/ical.h: in the future, the compiler will take precedence" >&2;}
  27198. ( cat <<\_ASBOX
  27199. ## ------------------------------------------ ##
  27200. ## Report this to https://issues.asterisk.org ##
  27201. ## ------------------------------------------ ##
  27202. _ASBOX
  27203. ) | sed "s/^/$as_me: WARNING: /" >&2
  27204. ;;
  27205. esac
  27206. { $as_echo "$as_me:$LINENO: checking for libical/ical.h" >&5
  27207. $as_echo_n "checking for libical/ical.h... " >&6; }
  27208. if test "${ac_cv_header_libical_ical_h+set}" = set; then
  27209. $as_echo_n "(cached) " >&6
  27210. else
  27211. ac_cv_header_libical_ical_h=$ac_header_preproc
  27212. fi
  27213. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libical_ical_h" >&5
  27214. $as_echo "$ac_cv_header_libical_ical_h" >&6; }
  27215. fi
  27216. if test "x$ac_cv_header_libical_ical_h" = x""yes; then
  27217. ICAL_HEADER_FOUND=1
  27218. else
  27219. ICAL_HEADER_FOUND=0
  27220. fi
  27221. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27222. fi
  27223. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  27224. ICAL_LIB=""
  27225. ICAL_INCLUDE=""
  27226. else
  27227. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27228. ICAL_LIB=""
  27229. fi
  27230. PBX_ICAL=1
  27231. cat >>confdefs.h <<_ACEOF
  27232. #define HAVE_ICAL 1
  27233. _ACEOF
  27234. fi
  27235. fi
  27236. fi
  27237. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  27238. pbxlibdir=""
  27239. # if --with-IKSEMEL=DIR has been specified, use it.
  27240. if test "x${IKSEMEL_DIR}" != "x"; then
  27241. if test -d ${IKSEMEL_DIR}/lib; then
  27242. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  27243. else
  27244. pbxlibdir="-L${IKSEMEL_DIR}"
  27245. fi
  27246. fi
  27247. pbxfuncname="iks_start_sasl"
  27248. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27249. AST_IKSEMEL_FOUND=yes
  27250. else
  27251. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27252. CFLAGS="${CFLAGS} "
  27253. as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
  27254. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
  27255. $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
  27256. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  27257. $as_echo_n "(cached) " >&6
  27258. else
  27259. ac_check_lib_save_LIBS=$LIBS
  27260. LIBS="-liksemel ${pbxlibdir} $LIBS"
  27261. cat >conftest.$ac_ext <<_ACEOF
  27262. /* confdefs.h. */
  27263. _ACEOF
  27264. cat confdefs.h >>conftest.$ac_ext
  27265. cat >>conftest.$ac_ext <<_ACEOF
  27266. /* end confdefs.h. */
  27267. /* Override any GCC internal prototype to avoid an error.
  27268. Use char because int might match the return type of a GCC
  27269. builtin and then its argument prototype would still apply. */
  27270. #ifdef __cplusplus
  27271. extern "C"
  27272. #endif
  27273. char ${pbxfuncname} ();
  27274. int
  27275. main ()
  27276. {
  27277. return ${pbxfuncname} ();
  27278. ;
  27279. return 0;
  27280. }
  27281. _ACEOF
  27282. rm -f conftest.$ac_objext conftest$ac_exeext
  27283. if { (ac_try="$ac_link"
  27284. case "(($ac_try" in
  27285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27286. *) ac_try_echo=$ac_try;;
  27287. esac
  27288. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27289. $as_echo "$ac_try_echo") >&5
  27290. (eval "$ac_link") 2>conftest.er1
  27291. ac_status=$?
  27292. grep -v '^ *+' conftest.er1 >conftest.err
  27293. rm -f conftest.er1
  27294. cat conftest.err >&5
  27295. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27296. (exit $ac_status); } && {
  27297. test -z "$ac_c_werror_flag" ||
  27298. test ! -s conftest.err
  27299. } && test -s conftest$ac_exeext && {
  27300. test "$cross_compiling" = yes ||
  27301. $as_test_x conftest$ac_exeext
  27302. }; then
  27303. eval "$as_ac_Lib=yes"
  27304. else
  27305. $as_echo "$as_me: failed program was:" >&5
  27306. sed 's/^/| /' conftest.$ac_ext >&5
  27307. eval "$as_ac_Lib=no"
  27308. fi
  27309. rm -rf conftest.dSYM
  27310. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27311. conftest$ac_exeext conftest.$ac_ext
  27312. LIBS=$ac_check_lib_save_LIBS
  27313. fi
  27314. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  27315. $as_echo "$as_val"'`
  27316. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  27317. $as_echo "$ac_res" >&6; }
  27318. as_val=`eval 'as_val=${'$as_ac_Lib'}
  27319. $as_echo "$as_val"'`
  27320. if test "x$as_val" = x""yes; then
  27321. AST_IKSEMEL_FOUND=yes
  27322. else
  27323. AST_IKSEMEL_FOUND=no
  27324. fi
  27325. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27326. fi
  27327. # now check for the header.
  27328. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  27329. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  27330. # if --with-IKSEMEL=DIR has been specified, use it.
  27331. if test "x${IKSEMEL_DIR}" != "x"; then
  27332. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  27333. fi
  27334. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  27335. if test "xiksemel.h" = "x" ; then # no header, assume found
  27336. IKSEMEL_HEADER_FOUND="1"
  27337. else # check for the header
  27338. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27339. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  27340. if test "${ac_cv_header_iksemel_h+set}" = set; then
  27341. { $as_echo "$as_me:$LINENO: checking for iksemel.h" >&5
  27342. $as_echo_n "checking for iksemel.h... " >&6; }
  27343. if test "${ac_cv_header_iksemel_h+set}" = set; then
  27344. $as_echo_n "(cached) " >&6
  27345. fi
  27346. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
  27347. $as_echo "$ac_cv_header_iksemel_h" >&6; }
  27348. else
  27349. # Is the header compilable?
  27350. { $as_echo "$as_me:$LINENO: checking iksemel.h usability" >&5
  27351. $as_echo_n "checking iksemel.h usability... " >&6; }
  27352. cat >conftest.$ac_ext <<_ACEOF
  27353. /* confdefs.h. */
  27354. _ACEOF
  27355. cat confdefs.h >>conftest.$ac_ext
  27356. cat >>conftest.$ac_ext <<_ACEOF
  27357. /* end confdefs.h. */
  27358. $ac_includes_default
  27359. #include <iksemel.h>
  27360. _ACEOF
  27361. rm -f conftest.$ac_objext
  27362. if { (ac_try="$ac_compile"
  27363. case "(($ac_try" in
  27364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27365. *) ac_try_echo=$ac_try;;
  27366. esac
  27367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27368. $as_echo "$ac_try_echo") >&5
  27369. (eval "$ac_compile") 2>conftest.er1
  27370. ac_status=$?
  27371. grep -v '^ *+' conftest.er1 >conftest.err
  27372. rm -f conftest.er1
  27373. cat conftest.err >&5
  27374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27375. (exit $ac_status); } && {
  27376. test -z "$ac_c_werror_flag" ||
  27377. test ! -s conftest.err
  27378. } && test -s conftest.$ac_objext; then
  27379. ac_header_compiler=yes
  27380. else
  27381. $as_echo "$as_me: failed program was:" >&5
  27382. sed 's/^/| /' conftest.$ac_ext >&5
  27383. ac_header_compiler=no
  27384. fi
  27385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27386. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27387. $as_echo "$ac_header_compiler" >&6; }
  27388. # Is the header present?
  27389. { $as_echo "$as_me:$LINENO: checking iksemel.h presence" >&5
  27390. $as_echo_n "checking iksemel.h presence... " >&6; }
  27391. cat >conftest.$ac_ext <<_ACEOF
  27392. /* confdefs.h. */
  27393. _ACEOF
  27394. cat confdefs.h >>conftest.$ac_ext
  27395. cat >>conftest.$ac_ext <<_ACEOF
  27396. /* end confdefs.h. */
  27397. #include <iksemel.h>
  27398. _ACEOF
  27399. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27400. case "(($ac_try" in
  27401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27402. *) ac_try_echo=$ac_try;;
  27403. esac
  27404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27405. $as_echo "$ac_try_echo") >&5
  27406. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27407. ac_status=$?
  27408. grep -v '^ *+' conftest.er1 >conftest.err
  27409. rm -f conftest.er1
  27410. cat conftest.err >&5
  27411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27412. (exit $ac_status); } >/dev/null && {
  27413. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27414. test ! -s conftest.err
  27415. }; then
  27416. ac_header_preproc=yes
  27417. else
  27418. $as_echo "$as_me: failed program was:" >&5
  27419. sed 's/^/| /' conftest.$ac_ext >&5
  27420. ac_header_preproc=no
  27421. fi
  27422. rm -f conftest.err conftest.$ac_ext
  27423. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27424. $as_echo "$ac_header_preproc" >&6; }
  27425. # So? What about this header?
  27426. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27427. yes:no: )
  27428. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27429. $as_echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27430. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
  27431. $as_echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
  27432. ac_header_preproc=yes
  27433. ;;
  27434. no:yes:* )
  27435. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
  27436. $as_echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
  27437. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
  27438. $as_echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
  27439. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
  27440. $as_echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
  27441. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
  27442. $as_echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27443. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
  27444. $as_echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
  27445. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
  27446. $as_echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
  27447. ( cat <<\_ASBOX
  27448. ## ------------------------------------------ ##
  27449. ## Report this to https://issues.asterisk.org ##
  27450. ## ------------------------------------------ ##
  27451. _ASBOX
  27452. ) | sed "s/^/$as_me: WARNING: /" >&2
  27453. ;;
  27454. esac
  27455. { $as_echo "$as_me:$LINENO: checking for iksemel.h" >&5
  27456. $as_echo_n "checking for iksemel.h... " >&6; }
  27457. if test "${ac_cv_header_iksemel_h+set}" = set; then
  27458. $as_echo_n "(cached) " >&6
  27459. else
  27460. ac_cv_header_iksemel_h=$ac_header_preproc
  27461. fi
  27462. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
  27463. $as_echo "$ac_cv_header_iksemel_h" >&6; }
  27464. fi
  27465. if test "x$ac_cv_header_iksemel_h" = x""yes; then
  27466. IKSEMEL_HEADER_FOUND=1
  27467. else
  27468. IKSEMEL_HEADER_FOUND=0
  27469. fi
  27470. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27471. fi
  27472. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  27473. IKSEMEL_LIB=""
  27474. IKSEMEL_INCLUDE=""
  27475. else
  27476. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27477. IKSEMEL_LIB=""
  27478. fi
  27479. PBX_IKSEMEL=1
  27480. cat >>confdefs.h <<_ACEOF
  27481. #define HAVE_IKSEMEL 1
  27482. _ACEOF
  27483. fi
  27484. fi
  27485. fi
  27486. if test "${USE_IMAP_TK}" != "no"; then
  27487. saved_cppflags="${CPPFLAGS}"
  27488. saved_libs="${LIBS}"
  27489. switch_to_system_on_failure="no"
  27490. if test "${IMAP_TK_DIR}" = ""; then
  27491. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  27492. switch_to_system_on_failure="yes"
  27493. fi
  27494. if test "${IMAP_TK_DIR}" != "system"; then
  27495. { $as_echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
  27496. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  27497. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  27498. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  27499. fi
  27500. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  27501. imap_include="-I${IMAP_TK_DIR}/c-client"
  27502. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  27503. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  27504. cat >conftest.$ac_ext <<_ACEOF
  27505. /* confdefs.h. */
  27506. _ACEOF
  27507. cat confdefs.h >>conftest.$ac_ext
  27508. cat >>conftest.$ac_ext <<_ACEOF
  27509. /* end confdefs.h. */
  27510. #include "c-client.h"
  27511. void mm_searched (MAILSTREAM *stream,unsigned long number)
  27512. {
  27513. }
  27514. void mm_exists (MAILSTREAM *stream,unsigned long number)
  27515. {
  27516. }
  27517. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  27518. {
  27519. }
  27520. void mm_flags (MAILSTREAM *stream,unsigned long number)
  27521. {
  27522. }
  27523. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  27524. {
  27525. }
  27526. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27527. {
  27528. }
  27529. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27530. {
  27531. }
  27532. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  27533. {
  27534. }
  27535. void mm_log (char *string,long errflg)
  27536. {
  27537. }
  27538. void mm_dlog (char *string)
  27539. {
  27540. }
  27541. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  27542. {
  27543. }
  27544. void mm_critical (MAILSTREAM *stream)
  27545. {
  27546. }
  27547. void mm_nocritical (MAILSTREAM *stream)
  27548. {
  27549. }
  27550. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  27551. {
  27552. }
  27553. void mm_fatal (char *string)
  27554. {
  27555. }
  27556. int
  27557. main ()
  27558. {
  27559. MAILSTREAM *foo = mail_open(NULL, "", 0);
  27560. ;
  27561. return 0;
  27562. }
  27563. _ACEOF
  27564. rm -f conftest.$ac_objext conftest$ac_exeext
  27565. if { (ac_try="$ac_link"
  27566. case "(($ac_try" in
  27567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27568. *) ac_try_echo=$ac_try;;
  27569. esac
  27570. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27571. $as_echo "$ac_try_echo") >&5
  27572. (eval "$ac_link") 2>conftest.er1
  27573. ac_status=$?
  27574. grep -v '^ *+' conftest.er1 >conftest.err
  27575. rm -f conftest.er1
  27576. cat conftest.err >&5
  27577. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27578. (exit $ac_status); } && {
  27579. test -z "$ac_c_werror_flag" ||
  27580. test ! -s conftest.err
  27581. } && test -s conftest$ac_exeext && {
  27582. test "$cross_compiling" = yes ||
  27583. $as_test_x conftest$ac_exeext
  27584. }; then
  27585. ac_cv_imap_tk="yes"
  27586. else
  27587. $as_echo "$as_me: failed program was:" >&5
  27588. sed 's/^/| /' conftest.$ac_ext >&5
  27589. ac_cv_imap_tk="no"
  27590. fi
  27591. rm -rf conftest.dSYM
  27592. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27593. conftest$ac_exeext conftest.$ac_ext
  27594. if test "${ac_cv_imap_tk}" = "yes"; then
  27595. cat >conftest.$ac_ext <<_ACEOF
  27596. /* confdefs.h. */
  27597. _ACEOF
  27598. cat confdefs.h >>conftest.$ac_ext
  27599. cat >>conftest.$ac_ext <<_ACEOF
  27600. /* end confdefs.h. */
  27601. #include "c-client.h"
  27602. void mm_searched (MAILSTREAM *stream,unsigned long number)
  27603. {
  27604. }
  27605. void mm_exists (MAILSTREAM *stream,unsigned long number)
  27606. {
  27607. }
  27608. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  27609. {
  27610. }
  27611. void mm_flags (MAILSTREAM *stream,unsigned long number)
  27612. {
  27613. }
  27614. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  27615. {
  27616. }
  27617. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27618. {
  27619. }
  27620. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27621. {
  27622. }
  27623. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  27624. {
  27625. }
  27626. void mm_log (char *string,long errflg)
  27627. {
  27628. }
  27629. void mm_dlog (char *string)
  27630. {
  27631. }
  27632. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  27633. {
  27634. }
  27635. void mm_critical (MAILSTREAM *stream)
  27636. {
  27637. }
  27638. void mm_nocritical (MAILSTREAM *stream)
  27639. {
  27640. }
  27641. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  27642. {
  27643. }
  27644. void mm_fatal (char *string)
  27645. {
  27646. }
  27647. int
  27648. main ()
  27649. {
  27650. long check = mail_expunge_full(NULL, "", 0);
  27651. ;
  27652. return 0;
  27653. }
  27654. _ACEOF
  27655. rm -f conftest.$ac_objext conftest$ac_exeext
  27656. if { (ac_try="$ac_link"
  27657. case "(($ac_try" in
  27658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27659. *) ac_try_echo=$ac_try;;
  27660. esac
  27661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27662. $as_echo "$ac_try_echo") >&5
  27663. (eval "$ac_link") 2>conftest.er1
  27664. ac_status=$?
  27665. grep -v '^ *+' conftest.er1 >conftest.err
  27666. rm -f conftest.er1
  27667. cat conftest.err >&5
  27668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27669. (exit $ac_status); } && {
  27670. test -z "$ac_c_werror_flag" ||
  27671. test ! -s conftest.err
  27672. } && test -s conftest$ac_exeext && {
  27673. test "$cross_compiling" = yes ||
  27674. $as_test_x conftest$ac_exeext
  27675. }; then
  27676. ac_cv_imap_tk2006="yes"
  27677. else
  27678. $as_echo "$as_me: failed program was:" >&5
  27679. sed 's/^/| /' conftest.$ac_ext >&5
  27680. ac_cv_imap_tk2006="no"
  27681. fi
  27682. rm -rf conftest.dSYM
  27683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27684. conftest$ac_exeext conftest.$ac_ext
  27685. fi
  27686. CPPFLAGS="${saved_cppflags}"
  27687. LIBS="${saved_libs}"
  27688. if test "${ac_cv_imap_tk}" = "no"; then
  27689. { $as_echo "$as_me:$LINENO: result: no" >&5
  27690. $as_echo "no" >&6; }
  27691. if test "${switch_to_system_on_failure}" = "yes"; then
  27692. IMAP_TK_DIR="system"
  27693. else #This means they specified a directory. Search for a package installation there too
  27694. { $as_echo "$as_me:$LINENO: checking for system c-client library..." >&5
  27695. $as_echo_n "checking for system c-client library...... " >&6; }
  27696. CPPFLAGS="${saved_cppflags}"
  27697. LIBS="${saved_libs}"
  27698. imap_include="-I${IMAP_TK_DIR}/include"
  27699. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  27700. imap_libs="-lc-client"
  27701. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  27702. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  27703. cat >conftest.$ac_ext <<_ACEOF
  27704. /* confdefs.h. */
  27705. _ACEOF
  27706. cat confdefs.h >>conftest.$ac_ext
  27707. cat >>conftest.$ac_ext <<_ACEOF
  27708. /* end confdefs.h. */
  27709. #include "c-client.h"
  27710. void mm_searched (MAILSTREAM *stream,unsigned long number)
  27711. {
  27712. }
  27713. void mm_exists (MAILSTREAM *stream,unsigned long number)
  27714. {
  27715. }
  27716. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  27717. {
  27718. }
  27719. void mm_flags (MAILSTREAM *stream,unsigned long number)
  27720. {
  27721. }
  27722. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  27723. {
  27724. }
  27725. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27726. {
  27727. }
  27728. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27729. {
  27730. }
  27731. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  27732. {
  27733. }
  27734. void mm_log (char *string,long errflg)
  27735. {
  27736. }
  27737. void mm_dlog (char *string)
  27738. {
  27739. }
  27740. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  27741. {
  27742. }
  27743. void mm_critical (MAILSTREAM *stream)
  27744. {
  27745. }
  27746. void mm_nocritical (MAILSTREAM *stream)
  27747. {
  27748. }
  27749. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  27750. {
  27751. }
  27752. void mm_fatal (char *string)
  27753. {
  27754. }
  27755. int
  27756. main ()
  27757. {
  27758. MAILSTREAM *foo = mail_open(NULL, "", 0);
  27759. ;
  27760. return 0;
  27761. }
  27762. _ACEOF
  27763. rm -f conftest.$ac_objext conftest$ac_exeext
  27764. if { (ac_try="$ac_link"
  27765. case "(($ac_try" in
  27766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27767. *) ac_try_echo=$ac_try;;
  27768. esac
  27769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27770. $as_echo "$ac_try_echo") >&5
  27771. (eval "$ac_link") 2>conftest.er1
  27772. ac_status=$?
  27773. grep -v '^ *+' conftest.er1 >conftest.err
  27774. rm -f conftest.er1
  27775. cat conftest.err >&5
  27776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27777. (exit $ac_status); } && {
  27778. test -z "$ac_c_werror_flag" ||
  27779. test ! -s conftest.err
  27780. } && test -s conftest$ac_exeext && {
  27781. test "$cross_compiling" = yes ||
  27782. $as_test_x conftest$ac_exeext
  27783. }; then
  27784. ac_cv_imap_tk="yes"
  27785. else
  27786. $as_echo "$as_me: failed program was:" >&5
  27787. sed 's/^/| /' conftest.$ac_ext >&5
  27788. ac_cv_imap_tk="no"
  27789. fi
  27790. rm -rf conftest.dSYM
  27791. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27792. conftest$ac_exeext conftest.$ac_ext
  27793. if test "${ac_cv_imap_tk}" = "yes"; then
  27794. cat >conftest.$ac_ext <<_ACEOF
  27795. /* confdefs.h. */
  27796. _ACEOF
  27797. cat confdefs.h >>conftest.$ac_ext
  27798. cat >>conftest.$ac_ext <<_ACEOF
  27799. /* end confdefs.h. */
  27800. #include "c-client.h"
  27801. void mm_searched (MAILSTREAM *stream,unsigned long number)
  27802. {
  27803. }
  27804. void mm_exists (MAILSTREAM *stream,unsigned long number)
  27805. {
  27806. }
  27807. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  27808. {
  27809. }
  27810. void mm_flags (MAILSTREAM *stream,unsigned long number)
  27811. {
  27812. }
  27813. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  27814. {
  27815. }
  27816. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27817. {
  27818. }
  27819. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27820. {
  27821. }
  27822. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  27823. {
  27824. }
  27825. void mm_log (char *string,long errflg)
  27826. {
  27827. }
  27828. void mm_dlog (char *string)
  27829. {
  27830. }
  27831. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  27832. {
  27833. }
  27834. void mm_critical (MAILSTREAM *stream)
  27835. {
  27836. }
  27837. void mm_nocritical (MAILSTREAM *stream)
  27838. {
  27839. }
  27840. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  27841. {
  27842. }
  27843. void mm_fatal (char *string)
  27844. {
  27845. }
  27846. int
  27847. main ()
  27848. {
  27849. long check = mail_expunge_full(NULL, "", 0);
  27850. ;
  27851. return 0;
  27852. }
  27853. _ACEOF
  27854. rm -f conftest.$ac_objext conftest$ac_exeext
  27855. if { (ac_try="$ac_link"
  27856. case "(($ac_try" in
  27857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27858. *) ac_try_echo=$ac_try;;
  27859. esac
  27860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27861. $as_echo "$ac_try_echo") >&5
  27862. (eval "$ac_link") 2>conftest.er1
  27863. ac_status=$?
  27864. grep -v '^ *+' conftest.er1 >conftest.err
  27865. rm -f conftest.er1
  27866. cat conftest.err >&5
  27867. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27868. (exit $ac_status); } && {
  27869. test -z "$ac_c_werror_flag" ||
  27870. test ! -s conftest.err
  27871. } && test -s conftest$ac_exeext && {
  27872. test "$cross_compiling" = yes ||
  27873. $as_test_x conftest$ac_exeext
  27874. }; then
  27875. ac_cv_imap_tk2006="yes"
  27876. else
  27877. $as_echo "$as_me: failed program was:" >&5
  27878. sed 's/^/| /' conftest.$ac_ext >&5
  27879. ac_cv_imap_tk2006="no"
  27880. fi
  27881. rm -rf conftest.dSYM
  27882. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27883. conftest$ac_exeext conftest.$ac_ext
  27884. fi
  27885. fi
  27886. fi
  27887. fi
  27888. if test "${IMAP_TK_DIR}" = "system"; then
  27889. #We will enter here if user specified "system" or if any of above checks failed
  27890. { $as_echo "$as_me:$LINENO: checking for system c-client library..." >&5
  27891. $as_echo_n "checking for system c-client library...... " >&6; }
  27892. CPPFLAGS="${saved_cppflags}"
  27893. LIBS="${saved_libs}"
  27894. imap_ldflags=""
  27895. imap_libs="-lc-client"
  27896. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  27897. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  27898. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  27899. cat >conftest.$ac_ext <<_ACEOF
  27900. /* confdefs.h. */
  27901. _ACEOF
  27902. cat confdefs.h >>conftest.$ac_ext
  27903. cat >>conftest.$ac_ext <<_ACEOF
  27904. /* end confdefs.h. */
  27905. #include <stdio.h>
  27906. #include <imap/c-client.h>
  27907. void mm_searched (MAILSTREAM *stream,unsigned long number)
  27908. {
  27909. }
  27910. void mm_exists (MAILSTREAM *stream,unsigned long number)
  27911. {
  27912. }
  27913. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  27914. {
  27915. }
  27916. void mm_flags (MAILSTREAM *stream,unsigned long number)
  27917. {
  27918. }
  27919. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  27920. {
  27921. }
  27922. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27923. {
  27924. }
  27925. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27926. {
  27927. }
  27928. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  27929. {
  27930. }
  27931. void mm_log (char *string,long errflg)
  27932. {
  27933. }
  27934. void mm_dlog (char *string)
  27935. {
  27936. }
  27937. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  27938. {
  27939. }
  27940. void mm_critical (MAILSTREAM *stream)
  27941. {
  27942. }
  27943. void mm_nocritical (MAILSTREAM *stream)
  27944. {
  27945. }
  27946. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  27947. {
  27948. }
  27949. void mm_fatal (char *string)
  27950. {
  27951. }
  27952. int
  27953. main ()
  27954. {
  27955. MAILSTREAM *foo = mail_open(NULL, "", 0);
  27956. ;
  27957. return 0;
  27958. }
  27959. _ACEOF
  27960. rm -f conftest.$ac_objext conftest$ac_exeext
  27961. if { (ac_try="$ac_link"
  27962. case "(($ac_try" in
  27963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27964. *) ac_try_echo=$ac_try;;
  27965. esac
  27966. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27967. $as_echo "$ac_try_echo") >&5
  27968. (eval "$ac_link") 2>conftest.er1
  27969. ac_status=$?
  27970. grep -v '^ *+' conftest.er1 >conftest.err
  27971. rm -f conftest.er1
  27972. cat conftest.err >&5
  27973. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27974. (exit $ac_status); } && {
  27975. test -z "$ac_c_werror_flag" ||
  27976. test ! -s conftest.err
  27977. } && test -s conftest$ac_exeext && {
  27978. test "$cross_compiling" = yes ||
  27979. $as_test_x conftest$ac_exeext
  27980. }; then
  27981. ac_cv_imap_tk="yes"
  27982. else
  27983. $as_echo "$as_me: failed program was:" >&5
  27984. sed 's/^/| /' conftest.$ac_ext >&5
  27985. ac_cv_imap_tk="no"
  27986. fi
  27987. rm -rf conftest.dSYM
  27988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27989. conftest$ac_exeext conftest.$ac_ext
  27990. if test "${ac_cv_imap_tk}" = "yes"; then
  27991. cat >conftest.$ac_ext <<_ACEOF
  27992. /* confdefs.h. */
  27993. _ACEOF
  27994. cat confdefs.h >>conftest.$ac_ext
  27995. cat >>conftest.$ac_ext <<_ACEOF
  27996. /* end confdefs.h. */
  27997. #include <stdio.h>
  27998. #include <imap/c-client.h>
  27999. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28000. {
  28001. }
  28002. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28003. {
  28004. }
  28005. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28006. {
  28007. }
  28008. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28009. {
  28010. }
  28011. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28012. {
  28013. }
  28014. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28015. {
  28016. }
  28017. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28018. {
  28019. }
  28020. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28021. {
  28022. }
  28023. void mm_log (char *string,long errflg)
  28024. {
  28025. }
  28026. void mm_dlog (char *string)
  28027. {
  28028. }
  28029. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28030. {
  28031. }
  28032. void mm_critical (MAILSTREAM *stream)
  28033. {
  28034. }
  28035. void mm_nocritical (MAILSTREAM *stream)
  28036. {
  28037. }
  28038. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28039. {
  28040. }
  28041. void mm_fatal (char *string)
  28042. {
  28043. }
  28044. int
  28045. main ()
  28046. {
  28047. long check = mail_expunge_full(NULL, "", 0);
  28048. ;
  28049. return 0;
  28050. }
  28051. _ACEOF
  28052. rm -f conftest.$ac_objext conftest$ac_exeext
  28053. if { (ac_try="$ac_link"
  28054. case "(($ac_try" in
  28055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28056. *) ac_try_echo=$ac_try;;
  28057. esac
  28058. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28059. $as_echo "$ac_try_echo") >&5
  28060. (eval "$ac_link") 2>conftest.er1
  28061. ac_status=$?
  28062. grep -v '^ *+' conftest.er1 >conftest.err
  28063. rm -f conftest.er1
  28064. cat conftest.err >&5
  28065. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28066. (exit $ac_status); } && {
  28067. test -z "$ac_c_werror_flag" ||
  28068. test ! -s conftest.err
  28069. } && test -s conftest$ac_exeext && {
  28070. test "$cross_compiling" = yes ||
  28071. $as_test_x conftest$ac_exeext
  28072. }; then
  28073. ac_cv_imap_tk2006="yes"
  28074. else
  28075. $as_echo "$as_me: failed program was:" >&5
  28076. sed 's/^/| /' conftest.$ac_ext >&5
  28077. ac_cv_imap_tk2006="no"
  28078. fi
  28079. rm -rf conftest.dSYM
  28080. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28081. conftest$ac_exeext conftest.$ac_ext
  28082. else #looking in imap directory didn't work, try c-client
  28083. imap_ldflags=""
  28084. imap_libs="-lc-client"
  28085. imap_include="-DUSE_SYSTEM_CCLIENT"
  28086. CPPFLAGS="${saved_cppflags}"
  28087. LIBS="${saved_libs}"
  28088. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  28089. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  28090. cat >conftest.$ac_ext <<_ACEOF
  28091. /* confdefs.h. */
  28092. _ACEOF
  28093. cat confdefs.h >>conftest.$ac_ext
  28094. cat >>conftest.$ac_ext <<_ACEOF
  28095. /* end confdefs.h. */
  28096. #include <stdio.h>
  28097. #include <c-client/c-client.h>
  28098. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28099. {
  28100. }
  28101. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28102. {
  28103. }
  28104. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28105. {
  28106. }
  28107. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28108. {
  28109. }
  28110. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28111. {
  28112. }
  28113. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28114. {
  28115. }
  28116. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28117. {
  28118. }
  28119. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28120. {
  28121. }
  28122. void mm_log (char *string,long errflg)
  28123. {
  28124. }
  28125. void mm_dlog (char *string)
  28126. {
  28127. }
  28128. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28129. {
  28130. }
  28131. void mm_critical (MAILSTREAM *stream)
  28132. {
  28133. }
  28134. void mm_nocritical (MAILSTREAM *stream)
  28135. {
  28136. }
  28137. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28138. {
  28139. }
  28140. void mm_fatal (char *string)
  28141. {
  28142. }
  28143. int
  28144. main ()
  28145. {
  28146. MAILSTREAM *foo = mail_open(NULL, "", 0);
  28147. ;
  28148. return 0;
  28149. }
  28150. _ACEOF
  28151. rm -f conftest.$ac_objext conftest$ac_exeext
  28152. if { (ac_try="$ac_link"
  28153. case "(($ac_try" in
  28154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28155. *) ac_try_echo=$ac_try;;
  28156. esac
  28157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28158. $as_echo "$ac_try_echo") >&5
  28159. (eval "$ac_link") 2>conftest.er1
  28160. ac_status=$?
  28161. grep -v '^ *+' conftest.er1 >conftest.err
  28162. rm -f conftest.er1
  28163. cat conftest.err >&5
  28164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28165. (exit $ac_status); } && {
  28166. test -z "$ac_c_werror_flag" ||
  28167. test ! -s conftest.err
  28168. } && test -s conftest$ac_exeext && {
  28169. test "$cross_compiling" = yes ||
  28170. $as_test_x conftest$ac_exeext
  28171. }; then
  28172. ac_cv_imap_tk="yes"
  28173. else
  28174. $as_echo "$as_me: failed program was:" >&5
  28175. sed 's/^/| /' conftest.$ac_ext >&5
  28176. ac_cv_imap_tk="no"
  28177. fi
  28178. rm -rf conftest.dSYM
  28179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28180. conftest$ac_exeext conftest.$ac_ext
  28181. if test "${ac_cv_imap_tk}" = "yes"; then
  28182. cat >conftest.$ac_ext <<_ACEOF
  28183. /* confdefs.h. */
  28184. _ACEOF
  28185. cat confdefs.h >>conftest.$ac_ext
  28186. cat >>conftest.$ac_ext <<_ACEOF
  28187. /* end confdefs.h. */
  28188. #include <stdio.h>
  28189. #include <c-client/c-client.h>
  28190. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28191. {
  28192. }
  28193. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28194. {
  28195. }
  28196. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28197. {
  28198. }
  28199. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28200. {
  28201. }
  28202. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28203. {
  28204. }
  28205. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28206. {
  28207. }
  28208. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28209. {
  28210. }
  28211. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28212. {
  28213. }
  28214. void mm_log (char *string,long errflg)
  28215. {
  28216. }
  28217. void mm_dlog (char *string)
  28218. {
  28219. }
  28220. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28221. {
  28222. }
  28223. void mm_critical (MAILSTREAM *stream)
  28224. {
  28225. }
  28226. void mm_nocritical (MAILSTREAM *stream)
  28227. {
  28228. }
  28229. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28230. {
  28231. }
  28232. void mm_fatal (char *string)
  28233. {
  28234. }
  28235. int
  28236. main ()
  28237. {
  28238. long check = mail_expunge_full(NULL, "", 0);
  28239. ;
  28240. return 0;
  28241. }
  28242. _ACEOF
  28243. rm -f conftest.$ac_objext conftest$ac_exeext
  28244. if { (ac_try="$ac_link"
  28245. case "(($ac_try" in
  28246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28247. *) ac_try_echo=$ac_try;;
  28248. esac
  28249. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28250. $as_echo "$ac_try_echo") >&5
  28251. (eval "$ac_link") 2>conftest.er1
  28252. ac_status=$?
  28253. grep -v '^ *+' conftest.er1 >conftest.err
  28254. rm -f conftest.er1
  28255. cat conftest.err >&5
  28256. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28257. (exit $ac_status); } && {
  28258. test -z "$ac_c_werror_flag" ||
  28259. test ! -s conftest.err
  28260. } && test -s conftest$ac_exeext && {
  28261. test "$cross_compiling" = yes ||
  28262. $as_test_x conftest$ac_exeext
  28263. }; then
  28264. ac_cv_imap_tk2006="yes"
  28265. else
  28266. $as_echo "$as_me: failed program was:" >&5
  28267. sed 's/^/| /' conftest.$ac_ext >&5
  28268. ac_cv_imap_tk2006="no"
  28269. fi
  28270. rm -rf conftest.dSYM
  28271. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28272. conftest$ac_exeext conftest.$ac_ext
  28273. fi
  28274. fi
  28275. fi
  28276. if test "${ac_cv_imap_tk}" = "yes"; then
  28277. { $as_echo "$as_me:$LINENO: result: yes" >&5
  28278. $as_echo "yes" >&6; }
  28279. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  28280. IMAP_TK_INCLUDE="${imap_include}"
  28281. PBX_IMAP_TK=1
  28282. cat >>confdefs.h <<\_ACEOF
  28283. #define HAVE_IMAP_TK 1
  28284. _ACEOF
  28285. if test "${ac_cv_imap_tk2006}" = "yes"; then
  28286. cat >>confdefs.h <<\_ACEOF
  28287. #define HAVE_IMAP_TK2006 1
  28288. _ACEOF
  28289. fi
  28290. else
  28291. { $as_echo "$as_me:$LINENO: result: no" >&5
  28292. $as_echo "no" >&6; }
  28293. fi
  28294. CPPFLAGS="${saved_cppflags}"
  28295. LIBS="${saved_libs}"
  28296. fi
  28297. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  28298. pbxlibdir=""
  28299. # if --with-IODBC=DIR has been specified, use it.
  28300. if test "x${IODBC_DIR}" != "x"; then
  28301. if test -d ${IODBC_DIR}/lib; then
  28302. pbxlibdir="-L${IODBC_DIR}/lib"
  28303. else
  28304. pbxlibdir="-L${IODBC_DIR}"
  28305. fi
  28306. fi
  28307. pbxfuncname="SQLConnect"
  28308. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  28309. AST_IODBC_FOUND=yes
  28310. else
  28311. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28312. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  28313. as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
  28314. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liodbc" >&5
  28315. $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
  28316. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  28317. $as_echo_n "(cached) " >&6
  28318. else
  28319. ac_check_lib_save_LIBS=$LIBS
  28320. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  28321. cat >conftest.$ac_ext <<_ACEOF
  28322. /* confdefs.h. */
  28323. _ACEOF
  28324. cat confdefs.h >>conftest.$ac_ext
  28325. cat >>conftest.$ac_ext <<_ACEOF
  28326. /* end confdefs.h. */
  28327. /* Override any GCC internal prototype to avoid an error.
  28328. Use char because int might match the return type of a GCC
  28329. builtin and then its argument prototype would still apply. */
  28330. #ifdef __cplusplus
  28331. extern "C"
  28332. #endif
  28333. char ${pbxfuncname} ();
  28334. int
  28335. main ()
  28336. {
  28337. return ${pbxfuncname} ();
  28338. ;
  28339. return 0;
  28340. }
  28341. _ACEOF
  28342. rm -f conftest.$ac_objext conftest$ac_exeext
  28343. if { (ac_try="$ac_link"
  28344. case "(($ac_try" in
  28345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28346. *) ac_try_echo=$ac_try;;
  28347. esac
  28348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28349. $as_echo "$ac_try_echo") >&5
  28350. (eval "$ac_link") 2>conftest.er1
  28351. ac_status=$?
  28352. grep -v '^ *+' conftest.er1 >conftest.err
  28353. rm -f conftest.er1
  28354. cat conftest.err >&5
  28355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28356. (exit $ac_status); } && {
  28357. test -z "$ac_c_werror_flag" ||
  28358. test ! -s conftest.err
  28359. } && test -s conftest$ac_exeext && {
  28360. test "$cross_compiling" = yes ||
  28361. $as_test_x conftest$ac_exeext
  28362. }; then
  28363. eval "$as_ac_Lib=yes"
  28364. else
  28365. $as_echo "$as_me: failed program was:" >&5
  28366. sed 's/^/| /' conftest.$ac_ext >&5
  28367. eval "$as_ac_Lib=no"
  28368. fi
  28369. rm -rf conftest.dSYM
  28370. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28371. conftest$ac_exeext conftest.$ac_ext
  28372. LIBS=$ac_check_lib_save_LIBS
  28373. fi
  28374. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  28375. $as_echo "$as_val"'`
  28376. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28377. $as_echo "$ac_res" >&6; }
  28378. as_val=`eval 'as_val=${'$as_ac_Lib'}
  28379. $as_echo "$as_val"'`
  28380. if test "x$as_val" = x""yes; then
  28381. AST_IODBC_FOUND=yes
  28382. else
  28383. AST_IODBC_FOUND=no
  28384. fi
  28385. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28386. fi
  28387. # now check for the header.
  28388. if test "${AST_IODBC_FOUND}" = "yes"; then
  28389. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  28390. # if --with-IODBC=DIR has been specified, use it.
  28391. if test "x${IODBC_DIR}" != "x"; then
  28392. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  28393. fi
  28394. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  28395. if test "xsql.h" = "x" ; then # no header, assume found
  28396. IODBC_HEADER_FOUND="1"
  28397. else # check for the header
  28398. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28399. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  28400. if test "${ac_cv_header_sql_h+set}" = set; then
  28401. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  28402. $as_echo_n "checking for sql.h... " >&6; }
  28403. if test "${ac_cv_header_sql_h+set}" = set; then
  28404. $as_echo_n "(cached) " >&6
  28405. fi
  28406. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  28407. $as_echo "$ac_cv_header_sql_h" >&6; }
  28408. else
  28409. # Is the header compilable?
  28410. { $as_echo "$as_me:$LINENO: checking sql.h usability" >&5
  28411. $as_echo_n "checking sql.h usability... " >&6; }
  28412. cat >conftest.$ac_ext <<_ACEOF
  28413. /* confdefs.h. */
  28414. _ACEOF
  28415. cat confdefs.h >>conftest.$ac_ext
  28416. cat >>conftest.$ac_ext <<_ACEOF
  28417. /* end confdefs.h. */
  28418. $ac_includes_default
  28419. #include <sql.h>
  28420. _ACEOF
  28421. rm -f conftest.$ac_objext
  28422. if { (ac_try="$ac_compile"
  28423. case "(($ac_try" in
  28424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28425. *) ac_try_echo=$ac_try;;
  28426. esac
  28427. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28428. $as_echo "$ac_try_echo") >&5
  28429. (eval "$ac_compile") 2>conftest.er1
  28430. ac_status=$?
  28431. grep -v '^ *+' conftest.er1 >conftest.err
  28432. rm -f conftest.er1
  28433. cat conftest.err >&5
  28434. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28435. (exit $ac_status); } && {
  28436. test -z "$ac_c_werror_flag" ||
  28437. test ! -s conftest.err
  28438. } && test -s conftest.$ac_objext; then
  28439. ac_header_compiler=yes
  28440. else
  28441. $as_echo "$as_me: failed program was:" >&5
  28442. sed 's/^/| /' conftest.$ac_ext >&5
  28443. ac_header_compiler=no
  28444. fi
  28445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28446. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28447. $as_echo "$ac_header_compiler" >&6; }
  28448. # Is the header present?
  28449. { $as_echo "$as_me:$LINENO: checking sql.h presence" >&5
  28450. $as_echo_n "checking sql.h presence... " >&6; }
  28451. cat >conftest.$ac_ext <<_ACEOF
  28452. /* confdefs.h. */
  28453. _ACEOF
  28454. cat confdefs.h >>conftest.$ac_ext
  28455. cat >>conftest.$ac_ext <<_ACEOF
  28456. /* end confdefs.h. */
  28457. #include <sql.h>
  28458. _ACEOF
  28459. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28460. case "(($ac_try" in
  28461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28462. *) ac_try_echo=$ac_try;;
  28463. esac
  28464. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28465. $as_echo "$ac_try_echo") >&5
  28466. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28467. ac_status=$?
  28468. grep -v '^ *+' conftest.er1 >conftest.err
  28469. rm -f conftest.er1
  28470. cat conftest.err >&5
  28471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28472. (exit $ac_status); } >/dev/null && {
  28473. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28474. test ! -s conftest.err
  28475. }; then
  28476. ac_header_preproc=yes
  28477. else
  28478. $as_echo "$as_me: failed program was:" >&5
  28479. sed 's/^/| /' conftest.$ac_ext >&5
  28480. ac_header_preproc=no
  28481. fi
  28482. rm -f conftest.err conftest.$ac_ext
  28483. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28484. $as_echo "$ac_header_preproc" >&6; }
  28485. # So? What about this header?
  28486. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28487. yes:no: )
  28488. { $as_echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
  28489. $as_echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28490. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
  28491. $as_echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
  28492. ac_header_preproc=yes
  28493. ;;
  28494. no:yes:* )
  28495. { $as_echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
  28496. $as_echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
  28497. { $as_echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
  28498. $as_echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
  28499. { $as_echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
  28500. $as_echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
  28501. { $as_echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
  28502. $as_echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
  28503. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
  28504. $as_echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
  28505. { $as_echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
  28506. $as_echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
  28507. ( cat <<\_ASBOX
  28508. ## ------------------------------------------ ##
  28509. ## Report this to https://issues.asterisk.org ##
  28510. ## ------------------------------------------ ##
  28511. _ASBOX
  28512. ) | sed "s/^/$as_me: WARNING: /" >&2
  28513. ;;
  28514. esac
  28515. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  28516. $as_echo_n "checking for sql.h... " >&6; }
  28517. if test "${ac_cv_header_sql_h+set}" = set; then
  28518. $as_echo_n "(cached) " >&6
  28519. else
  28520. ac_cv_header_sql_h=$ac_header_preproc
  28521. fi
  28522. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  28523. $as_echo "$ac_cv_header_sql_h" >&6; }
  28524. fi
  28525. if test "x$ac_cv_header_sql_h" = x""yes; then
  28526. IODBC_HEADER_FOUND=1
  28527. else
  28528. IODBC_HEADER_FOUND=0
  28529. fi
  28530. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  28531. fi
  28532. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  28533. IODBC_LIB=""
  28534. IODBC_INCLUDE=""
  28535. else
  28536. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  28537. IODBC_LIB=""
  28538. fi
  28539. PBX_IODBC=1
  28540. cat >>confdefs.h <<_ACEOF
  28541. #define HAVE_IODBC 1
  28542. _ACEOF
  28543. fi
  28544. fi
  28545. fi
  28546. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  28547. pbxlibdir=""
  28548. # if --with-INOTIFY=DIR has been specified, use it.
  28549. if test "x${INOTIFY_DIR}" != "x"; then
  28550. if test -d ${INOTIFY_DIR}/lib; then
  28551. pbxlibdir="-L${INOTIFY_DIR}/lib"
  28552. else
  28553. pbxlibdir="-L${INOTIFY_DIR}"
  28554. fi
  28555. fi
  28556. pbxfuncname="inotify_init"
  28557. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  28558. AST_INOTIFY_FOUND=yes
  28559. else
  28560. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28561. CFLAGS="${CFLAGS} "
  28562. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  28563. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  28564. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  28565. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  28566. $as_echo_n "(cached) " >&6
  28567. else
  28568. ac_check_lib_save_LIBS=$LIBS
  28569. LIBS="-lc ${pbxlibdir} $LIBS"
  28570. cat >conftest.$ac_ext <<_ACEOF
  28571. /* confdefs.h. */
  28572. _ACEOF
  28573. cat confdefs.h >>conftest.$ac_ext
  28574. cat >>conftest.$ac_ext <<_ACEOF
  28575. /* end confdefs.h. */
  28576. /* Override any GCC internal prototype to avoid an error.
  28577. Use char because int might match the return type of a GCC
  28578. builtin and then its argument prototype would still apply. */
  28579. #ifdef __cplusplus
  28580. extern "C"
  28581. #endif
  28582. char ${pbxfuncname} ();
  28583. int
  28584. main ()
  28585. {
  28586. return ${pbxfuncname} ();
  28587. ;
  28588. return 0;
  28589. }
  28590. _ACEOF
  28591. rm -f conftest.$ac_objext conftest$ac_exeext
  28592. if { (ac_try="$ac_link"
  28593. case "(($ac_try" in
  28594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28595. *) ac_try_echo=$ac_try;;
  28596. esac
  28597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28598. $as_echo "$ac_try_echo") >&5
  28599. (eval "$ac_link") 2>conftest.er1
  28600. ac_status=$?
  28601. grep -v '^ *+' conftest.er1 >conftest.err
  28602. rm -f conftest.er1
  28603. cat conftest.err >&5
  28604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28605. (exit $ac_status); } && {
  28606. test -z "$ac_c_werror_flag" ||
  28607. test ! -s conftest.err
  28608. } && test -s conftest$ac_exeext && {
  28609. test "$cross_compiling" = yes ||
  28610. $as_test_x conftest$ac_exeext
  28611. }; then
  28612. eval "$as_ac_Lib=yes"
  28613. else
  28614. $as_echo "$as_me: failed program was:" >&5
  28615. sed 's/^/| /' conftest.$ac_ext >&5
  28616. eval "$as_ac_Lib=no"
  28617. fi
  28618. rm -rf conftest.dSYM
  28619. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28620. conftest$ac_exeext conftest.$ac_ext
  28621. LIBS=$ac_check_lib_save_LIBS
  28622. fi
  28623. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  28624. $as_echo "$as_val"'`
  28625. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28626. $as_echo "$ac_res" >&6; }
  28627. as_val=`eval 'as_val=${'$as_ac_Lib'}
  28628. $as_echo "$as_val"'`
  28629. if test "x$as_val" = x""yes; then
  28630. AST_INOTIFY_FOUND=yes
  28631. else
  28632. AST_INOTIFY_FOUND=no
  28633. fi
  28634. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28635. fi
  28636. # now check for the header.
  28637. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  28638. INOTIFY_LIB="${pbxlibdir} -lc "
  28639. # if --with-INOTIFY=DIR has been specified, use it.
  28640. if test "x${INOTIFY_DIR}" != "x"; then
  28641. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  28642. fi
  28643. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  28644. if test "xsys/inotify.h" = "x" ; then # no header, assume found
  28645. INOTIFY_HEADER_FOUND="1"
  28646. else # check for the header
  28647. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28648. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  28649. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  28650. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  28651. $as_echo_n "checking for sys/inotify.h... " >&6; }
  28652. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  28653. $as_echo_n "(cached) " >&6
  28654. fi
  28655. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  28656. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  28657. else
  28658. # Is the header compilable?
  28659. { $as_echo "$as_me:$LINENO: checking sys/inotify.h usability" >&5
  28660. $as_echo_n "checking sys/inotify.h usability... " >&6; }
  28661. cat >conftest.$ac_ext <<_ACEOF
  28662. /* confdefs.h. */
  28663. _ACEOF
  28664. cat confdefs.h >>conftest.$ac_ext
  28665. cat >>conftest.$ac_ext <<_ACEOF
  28666. /* end confdefs.h. */
  28667. $ac_includes_default
  28668. #include <sys/inotify.h>
  28669. _ACEOF
  28670. rm -f conftest.$ac_objext
  28671. if { (ac_try="$ac_compile"
  28672. case "(($ac_try" in
  28673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28674. *) ac_try_echo=$ac_try;;
  28675. esac
  28676. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28677. $as_echo "$ac_try_echo") >&5
  28678. (eval "$ac_compile") 2>conftest.er1
  28679. ac_status=$?
  28680. grep -v '^ *+' conftest.er1 >conftest.err
  28681. rm -f conftest.er1
  28682. cat conftest.err >&5
  28683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28684. (exit $ac_status); } && {
  28685. test -z "$ac_c_werror_flag" ||
  28686. test ! -s conftest.err
  28687. } && test -s conftest.$ac_objext; then
  28688. ac_header_compiler=yes
  28689. else
  28690. $as_echo "$as_me: failed program was:" >&5
  28691. sed 's/^/| /' conftest.$ac_ext >&5
  28692. ac_header_compiler=no
  28693. fi
  28694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28695. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28696. $as_echo "$ac_header_compiler" >&6; }
  28697. # Is the header present?
  28698. { $as_echo "$as_me:$LINENO: checking sys/inotify.h presence" >&5
  28699. $as_echo_n "checking sys/inotify.h presence... " >&6; }
  28700. cat >conftest.$ac_ext <<_ACEOF
  28701. /* confdefs.h. */
  28702. _ACEOF
  28703. cat confdefs.h >>conftest.$ac_ext
  28704. cat >>conftest.$ac_ext <<_ACEOF
  28705. /* end confdefs.h. */
  28706. #include <sys/inotify.h>
  28707. _ACEOF
  28708. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28709. case "(($ac_try" in
  28710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28711. *) ac_try_echo=$ac_try;;
  28712. esac
  28713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28714. $as_echo "$ac_try_echo") >&5
  28715. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28716. ac_status=$?
  28717. grep -v '^ *+' conftest.er1 >conftest.err
  28718. rm -f conftest.er1
  28719. cat conftest.err >&5
  28720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28721. (exit $ac_status); } >/dev/null && {
  28722. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28723. test ! -s conftest.err
  28724. }; then
  28725. ac_header_preproc=yes
  28726. else
  28727. $as_echo "$as_me: failed program was:" >&5
  28728. sed 's/^/| /' conftest.$ac_ext >&5
  28729. ac_header_preproc=no
  28730. fi
  28731. rm -f conftest.err conftest.$ac_ext
  28732. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28733. $as_echo "$ac_header_preproc" >&6; }
  28734. # So? What about this header?
  28735. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28736. yes:no: )
  28737. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&5
  28738. $as_echo "$as_me: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28739. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the compiler's result" >&5
  28740. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the compiler's result" >&2;}
  28741. ac_header_preproc=yes
  28742. ;;
  28743. no:yes:* )
  28744. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: present but cannot be compiled" >&5
  28745. $as_echo "$as_me: WARNING: sys/inotify.h: present but cannot be compiled" >&2;}
  28746. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&5
  28747. $as_echo "$as_me: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&2;}
  28748. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: see the Autoconf documentation" >&5
  28749. $as_echo "$as_me: WARNING: sys/inotify.h: see the Autoconf documentation" >&2;}
  28750. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&5
  28751. $as_echo "$as_me: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&2;}
  28752. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&5
  28753. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&2;}
  28754. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&5
  28755. $as_echo "$as_me: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&2;}
  28756. ( cat <<\_ASBOX
  28757. ## ------------------------------------------ ##
  28758. ## Report this to https://issues.asterisk.org ##
  28759. ## ------------------------------------------ ##
  28760. _ASBOX
  28761. ) | sed "s/^/$as_me: WARNING: /" >&2
  28762. ;;
  28763. esac
  28764. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  28765. $as_echo_n "checking for sys/inotify.h... " >&6; }
  28766. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  28767. $as_echo_n "(cached) " >&6
  28768. else
  28769. ac_cv_header_sys_inotify_h=$ac_header_preproc
  28770. fi
  28771. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  28772. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  28773. fi
  28774. if test "x$ac_cv_header_sys_inotify_h" = x""yes; then
  28775. INOTIFY_HEADER_FOUND=1
  28776. else
  28777. INOTIFY_HEADER_FOUND=0
  28778. fi
  28779. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  28780. fi
  28781. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  28782. INOTIFY_LIB=""
  28783. INOTIFY_INCLUDE=""
  28784. else
  28785. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  28786. INOTIFY_LIB=""
  28787. fi
  28788. PBX_INOTIFY=1
  28789. cat >>confdefs.h <<_ACEOF
  28790. #define HAVE_INOTIFY 1
  28791. _ACEOF
  28792. fi
  28793. fi
  28794. fi
  28795. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  28796. pbxlibdir=""
  28797. # if --with-JACK=DIR has been specified, use it.
  28798. if test "x${JACK_DIR}" != "x"; then
  28799. if test -d ${JACK_DIR}/lib; then
  28800. pbxlibdir="-L${JACK_DIR}/lib"
  28801. else
  28802. pbxlibdir="-L${JACK_DIR}"
  28803. fi
  28804. fi
  28805. pbxfuncname="jack_activate"
  28806. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  28807. AST_JACK_FOUND=yes
  28808. else
  28809. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28810. CFLAGS="${CFLAGS} "
  28811. as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
  28812. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
  28813. $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
  28814. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  28815. $as_echo_n "(cached) " >&6
  28816. else
  28817. ac_check_lib_save_LIBS=$LIBS
  28818. LIBS="-ljack ${pbxlibdir} $LIBS"
  28819. cat >conftest.$ac_ext <<_ACEOF
  28820. /* confdefs.h. */
  28821. _ACEOF
  28822. cat confdefs.h >>conftest.$ac_ext
  28823. cat >>conftest.$ac_ext <<_ACEOF
  28824. /* end confdefs.h. */
  28825. /* Override any GCC internal prototype to avoid an error.
  28826. Use char because int might match the return type of a GCC
  28827. builtin and then its argument prototype would still apply. */
  28828. #ifdef __cplusplus
  28829. extern "C"
  28830. #endif
  28831. char ${pbxfuncname} ();
  28832. int
  28833. main ()
  28834. {
  28835. return ${pbxfuncname} ();
  28836. ;
  28837. return 0;
  28838. }
  28839. _ACEOF
  28840. rm -f conftest.$ac_objext conftest$ac_exeext
  28841. if { (ac_try="$ac_link"
  28842. case "(($ac_try" in
  28843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28844. *) ac_try_echo=$ac_try;;
  28845. esac
  28846. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28847. $as_echo "$ac_try_echo") >&5
  28848. (eval "$ac_link") 2>conftest.er1
  28849. ac_status=$?
  28850. grep -v '^ *+' conftest.er1 >conftest.err
  28851. rm -f conftest.er1
  28852. cat conftest.err >&5
  28853. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28854. (exit $ac_status); } && {
  28855. test -z "$ac_c_werror_flag" ||
  28856. test ! -s conftest.err
  28857. } && test -s conftest$ac_exeext && {
  28858. test "$cross_compiling" = yes ||
  28859. $as_test_x conftest$ac_exeext
  28860. }; then
  28861. eval "$as_ac_Lib=yes"
  28862. else
  28863. $as_echo "$as_me: failed program was:" >&5
  28864. sed 's/^/| /' conftest.$ac_ext >&5
  28865. eval "$as_ac_Lib=no"
  28866. fi
  28867. rm -rf conftest.dSYM
  28868. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28869. conftest$ac_exeext conftest.$ac_ext
  28870. LIBS=$ac_check_lib_save_LIBS
  28871. fi
  28872. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  28873. $as_echo "$as_val"'`
  28874. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28875. $as_echo "$ac_res" >&6; }
  28876. as_val=`eval 'as_val=${'$as_ac_Lib'}
  28877. $as_echo "$as_val"'`
  28878. if test "x$as_val" = x""yes; then
  28879. AST_JACK_FOUND=yes
  28880. else
  28881. AST_JACK_FOUND=no
  28882. fi
  28883. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28884. fi
  28885. # now check for the header.
  28886. if test "${AST_JACK_FOUND}" = "yes"; then
  28887. JACK_LIB="${pbxlibdir} -ljack "
  28888. # if --with-JACK=DIR has been specified, use it.
  28889. if test "x${JACK_DIR}" != "x"; then
  28890. JACK_INCLUDE="-I${JACK_DIR}/include"
  28891. fi
  28892. JACK_INCLUDE="${JACK_INCLUDE} "
  28893. if test "xjack/jack.h" = "x" ; then # no header, assume found
  28894. JACK_HEADER_FOUND="1"
  28895. else # check for the header
  28896. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28897. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  28898. if test "${ac_cv_header_jack_jack_h+set}" = set; then
  28899. { $as_echo "$as_me:$LINENO: checking for jack/jack.h" >&5
  28900. $as_echo_n "checking for jack/jack.h... " >&6; }
  28901. if test "${ac_cv_header_jack_jack_h+set}" = set; then
  28902. $as_echo_n "(cached) " >&6
  28903. fi
  28904. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
  28905. $as_echo "$ac_cv_header_jack_jack_h" >&6; }
  28906. else
  28907. # Is the header compilable?
  28908. { $as_echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
  28909. $as_echo_n "checking jack/jack.h usability... " >&6; }
  28910. cat >conftest.$ac_ext <<_ACEOF
  28911. /* confdefs.h. */
  28912. _ACEOF
  28913. cat confdefs.h >>conftest.$ac_ext
  28914. cat >>conftest.$ac_ext <<_ACEOF
  28915. /* end confdefs.h. */
  28916. $ac_includes_default
  28917. #include <jack/jack.h>
  28918. _ACEOF
  28919. rm -f conftest.$ac_objext
  28920. if { (ac_try="$ac_compile"
  28921. case "(($ac_try" in
  28922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28923. *) ac_try_echo=$ac_try;;
  28924. esac
  28925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28926. $as_echo "$ac_try_echo") >&5
  28927. (eval "$ac_compile") 2>conftest.er1
  28928. ac_status=$?
  28929. grep -v '^ *+' conftest.er1 >conftest.err
  28930. rm -f conftest.er1
  28931. cat conftest.err >&5
  28932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28933. (exit $ac_status); } && {
  28934. test -z "$ac_c_werror_flag" ||
  28935. test ! -s conftest.err
  28936. } && test -s conftest.$ac_objext; then
  28937. ac_header_compiler=yes
  28938. else
  28939. $as_echo "$as_me: failed program was:" >&5
  28940. sed 's/^/| /' conftest.$ac_ext >&5
  28941. ac_header_compiler=no
  28942. fi
  28943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28944. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28945. $as_echo "$ac_header_compiler" >&6; }
  28946. # Is the header present?
  28947. { $as_echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
  28948. $as_echo_n "checking jack/jack.h presence... " >&6; }
  28949. cat >conftest.$ac_ext <<_ACEOF
  28950. /* confdefs.h. */
  28951. _ACEOF
  28952. cat confdefs.h >>conftest.$ac_ext
  28953. cat >>conftest.$ac_ext <<_ACEOF
  28954. /* end confdefs.h. */
  28955. #include <jack/jack.h>
  28956. _ACEOF
  28957. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28958. case "(($ac_try" in
  28959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28960. *) ac_try_echo=$ac_try;;
  28961. esac
  28962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28963. $as_echo "$ac_try_echo") >&5
  28964. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28965. ac_status=$?
  28966. grep -v '^ *+' conftest.er1 >conftest.err
  28967. rm -f conftest.er1
  28968. cat conftest.err >&5
  28969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28970. (exit $ac_status); } >/dev/null && {
  28971. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28972. test ! -s conftest.err
  28973. }; then
  28974. ac_header_preproc=yes
  28975. else
  28976. $as_echo "$as_me: failed program was:" >&5
  28977. sed 's/^/| /' conftest.$ac_ext >&5
  28978. ac_header_preproc=no
  28979. fi
  28980. rm -f conftest.err conftest.$ac_ext
  28981. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28982. $as_echo "$ac_header_preproc" >&6; }
  28983. # So? What about this header?
  28984. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28985. yes:no: )
  28986. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
  28987. $as_echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28988. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
  28989. $as_echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
  28990. ac_header_preproc=yes
  28991. ;;
  28992. no:yes:* )
  28993. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
  28994. $as_echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
  28995. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
  28996. $as_echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
  28997. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
  28998. $as_echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
  28999. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
  29000. $as_echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29001. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
  29002. $as_echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
  29003. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
  29004. $as_echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
  29005. ( cat <<\_ASBOX
  29006. ## ------------------------------------------ ##
  29007. ## Report this to https://issues.asterisk.org ##
  29008. ## ------------------------------------------ ##
  29009. _ASBOX
  29010. ) | sed "s/^/$as_me: WARNING: /" >&2
  29011. ;;
  29012. esac
  29013. { $as_echo "$as_me:$LINENO: checking for jack/jack.h" >&5
  29014. $as_echo_n "checking for jack/jack.h... " >&6; }
  29015. if test "${ac_cv_header_jack_jack_h+set}" = set; then
  29016. $as_echo_n "(cached) " >&6
  29017. else
  29018. ac_cv_header_jack_jack_h=$ac_header_preproc
  29019. fi
  29020. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
  29021. $as_echo "$ac_cv_header_jack_jack_h" >&6; }
  29022. fi
  29023. if test "x$ac_cv_header_jack_jack_h" = x""yes; then
  29024. JACK_HEADER_FOUND=1
  29025. else
  29026. JACK_HEADER_FOUND=0
  29027. fi
  29028. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29029. fi
  29030. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  29031. JACK_LIB=""
  29032. JACK_INCLUDE=""
  29033. else
  29034. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29035. JACK_LIB=""
  29036. fi
  29037. PBX_JACK=1
  29038. cat >>confdefs.h <<_ACEOF
  29039. #define HAVE_JACK 1
  29040. _ACEOF
  29041. fi
  29042. fi
  29043. fi
  29044. # BSD (and OS X) equivalent of inotify
  29045. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  29046. pbxlibdir=""
  29047. # if --with-KQUEUE=DIR has been specified, use it.
  29048. if test "x${KQUEUE_DIR}" != "x"; then
  29049. if test -d ${KQUEUE_DIR}/lib; then
  29050. pbxlibdir="-L${KQUEUE_DIR}/lib"
  29051. else
  29052. pbxlibdir="-L${KQUEUE_DIR}"
  29053. fi
  29054. fi
  29055. pbxfuncname="kqueue"
  29056. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  29057. AST_KQUEUE_FOUND=yes
  29058. else
  29059. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29060. CFLAGS="${CFLAGS} "
  29061. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  29062. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  29063. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  29064. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  29065. $as_echo_n "(cached) " >&6
  29066. else
  29067. ac_check_lib_save_LIBS=$LIBS
  29068. LIBS="-lc ${pbxlibdir} $LIBS"
  29069. cat >conftest.$ac_ext <<_ACEOF
  29070. /* confdefs.h. */
  29071. _ACEOF
  29072. cat confdefs.h >>conftest.$ac_ext
  29073. cat >>conftest.$ac_ext <<_ACEOF
  29074. /* end confdefs.h. */
  29075. /* Override any GCC internal prototype to avoid an error.
  29076. Use char because int might match the return type of a GCC
  29077. builtin and then its argument prototype would still apply. */
  29078. #ifdef __cplusplus
  29079. extern "C"
  29080. #endif
  29081. char ${pbxfuncname} ();
  29082. int
  29083. main ()
  29084. {
  29085. return ${pbxfuncname} ();
  29086. ;
  29087. return 0;
  29088. }
  29089. _ACEOF
  29090. rm -f conftest.$ac_objext conftest$ac_exeext
  29091. if { (ac_try="$ac_link"
  29092. case "(($ac_try" in
  29093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29094. *) ac_try_echo=$ac_try;;
  29095. esac
  29096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29097. $as_echo "$ac_try_echo") >&5
  29098. (eval "$ac_link") 2>conftest.er1
  29099. ac_status=$?
  29100. grep -v '^ *+' conftest.er1 >conftest.err
  29101. rm -f conftest.er1
  29102. cat conftest.err >&5
  29103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29104. (exit $ac_status); } && {
  29105. test -z "$ac_c_werror_flag" ||
  29106. test ! -s conftest.err
  29107. } && test -s conftest$ac_exeext && {
  29108. test "$cross_compiling" = yes ||
  29109. $as_test_x conftest$ac_exeext
  29110. }; then
  29111. eval "$as_ac_Lib=yes"
  29112. else
  29113. $as_echo "$as_me: failed program was:" >&5
  29114. sed 's/^/| /' conftest.$ac_ext >&5
  29115. eval "$as_ac_Lib=no"
  29116. fi
  29117. rm -rf conftest.dSYM
  29118. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29119. conftest$ac_exeext conftest.$ac_ext
  29120. LIBS=$ac_check_lib_save_LIBS
  29121. fi
  29122. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  29123. $as_echo "$as_val"'`
  29124. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29125. $as_echo "$ac_res" >&6; }
  29126. as_val=`eval 'as_val=${'$as_ac_Lib'}
  29127. $as_echo "$as_val"'`
  29128. if test "x$as_val" = x""yes; then
  29129. AST_KQUEUE_FOUND=yes
  29130. else
  29131. AST_KQUEUE_FOUND=no
  29132. fi
  29133. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29134. fi
  29135. # now check for the header.
  29136. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  29137. KQUEUE_LIB="${pbxlibdir} -lc "
  29138. # if --with-KQUEUE=DIR has been specified, use it.
  29139. if test "x${KQUEUE_DIR}" != "x"; then
  29140. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  29141. fi
  29142. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  29143. if test "xsys/event.h" = "x" ; then # no header, assume found
  29144. KQUEUE_HEADER_FOUND="1"
  29145. else # check for the header
  29146. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29147. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  29148. if test "${ac_cv_header_sys_event_h+set}" = set; then
  29149. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  29150. $as_echo_n "checking for sys/event.h... " >&6; }
  29151. if test "${ac_cv_header_sys_event_h+set}" = set; then
  29152. $as_echo_n "(cached) " >&6
  29153. fi
  29154. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  29155. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  29156. else
  29157. # Is the header compilable?
  29158. { $as_echo "$as_me:$LINENO: checking sys/event.h usability" >&5
  29159. $as_echo_n "checking sys/event.h usability... " >&6; }
  29160. cat >conftest.$ac_ext <<_ACEOF
  29161. /* confdefs.h. */
  29162. _ACEOF
  29163. cat confdefs.h >>conftest.$ac_ext
  29164. cat >>conftest.$ac_ext <<_ACEOF
  29165. /* end confdefs.h. */
  29166. $ac_includes_default
  29167. #include <sys/event.h>
  29168. _ACEOF
  29169. rm -f conftest.$ac_objext
  29170. if { (ac_try="$ac_compile"
  29171. case "(($ac_try" in
  29172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29173. *) ac_try_echo=$ac_try;;
  29174. esac
  29175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29176. $as_echo "$ac_try_echo") >&5
  29177. (eval "$ac_compile") 2>conftest.er1
  29178. ac_status=$?
  29179. grep -v '^ *+' conftest.er1 >conftest.err
  29180. rm -f conftest.er1
  29181. cat conftest.err >&5
  29182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29183. (exit $ac_status); } && {
  29184. test -z "$ac_c_werror_flag" ||
  29185. test ! -s conftest.err
  29186. } && test -s conftest.$ac_objext; then
  29187. ac_header_compiler=yes
  29188. else
  29189. $as_echo "$as_me: failed program was:" >&5
  29190. sed 's/^/| /' conftest.$ac_ext >&5
  29191. ac_header_compiler=no
  29192. fi
  29193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29194. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29195. $as_echo "$ac_header_compiler" >&6; }
  29196. # Is the header present?
  29197. { $as_echo "$as_me:$LINENO: checking sys/event.h presence" >&5
  29198. $as_echo_n "checking sys/event.h presence... " >&6; }
  29199. cat >conftest.$ac_ext <<_ACEOF
  29200. /* confdefs.h. */
  29201. _ACEOF
  29202. cat confdefs.h >>conftest.$ac_ext
  29203. cat >>conftest.$ac_ext <<_ACEOF
  29204. /* end confdefs.h. */
  29205. #include <sys/event.h>
  29206. _ACEOF
  29207. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29208. case "(($ac_try" in
  29209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29210. *) ac_try_echo=$ac_try;;
  29211. esac
  29212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29213. $as_echo "$ac_try_echo") >&5
  29214. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29215. ac_status=$?
  29216. grep -v '^ *+' conftest.er1 >conftest.err
  29217. rm -f conftest.er1
  29218. cat conftest.err >&5
  29219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29220. (exit $ac_status); } >/dev/null && {
  29221. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29222. test ! -s conftest.err
  29223. }; then
  29224. ac_header_preproc=yes
  29225. else
  29226. $as_echo "$as_me: failed program was:" >&5
  29227. sed 's/^/| /' conftest.$ac_ext >&5
  29228. ac_header_preproc=no
  29229. fi
  29230. rm -f conftest.err conftest.$ac_ext
  29231. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29232. $as_echo "$ac_header_preproc" >&6; }
  29233. # So? What about this header?
  29234. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29235. yes:no: )
  29236. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29237. $as_echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29238. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5
  29239. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;}
  29240. ac_header_preproc=yes
  29241. ;;
  29242. no:yes:* )
  29243. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5
  29244. $as_echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;}
  29245. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: check for missing prerequisite headers?" >&5
  29246. $as_echo "$as_me: WARNING: sys/event.h: check for missing prerequisite headers?" >&2;}
  29247. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5
  29248. $as_echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;}
  29249. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&5
  29250. $as_echo "$as_me: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29251. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5
  29252. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;}
  29253. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5
  29254. $as_echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;}
  29255. ( cat <<\_ASBOX
  29256. ## ------------------------------------------ ##
  29257. ## Report this to https://issues.asterisk.org ##
  29258. ## ------------------------------------------ ##
  29259. _ASBOX
  29260. ) | sed "s/^/$as_me: WARNING: /" >&2
  29261. ;;
  29262. esac
  29263. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  29264. $as_echo_n "checking for sys/event.h... " >&6; }
  29265. if test "${ac_cv_header_sys_event_h+set}" = set; then
  29266. $as_echo_n "(cached) " >&6
  29267. else
  29268. ac_cv_header_sys_event_h=$ac_header_preproc
  29269. fi
  29270. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  29271. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  29272. fi
  29273. if test "x$ac_cv_header_sys_event_h" = x""yes; then
  29274. KQUEUE_HEADER_FOUND=1
  29275. else
  29276. KQUEUE_HEADER_FOUND=0
  29277. fi
  29278. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29279. fi
  29280. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  29281. KQUEUE_LIB=""
  29282. KQUEUE_INCLUDE=""
  29283. else
  29284. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29285. KQUEUE_LIB=""
  29286. fi
  29287. PBX_KQUEUE=1
  29288. cat >>confdefs.h <<_ACEOF
  29289. #define HAVE_KQUEUE 1
  29290. _ACEOF
  29291. fi
  29292. fi
  29293. fi
  29294. # 64-bit version of kevent (from kqueue) on OS X
  29295. for ac_func in kevent64
  29296. do
  29297. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29298. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  29299. $as_echo_n "checking for $ac_func... " >&6; }
  29300. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29301. $as_echo_n "(cached) " >&6
  29302. else
  29303. cat >conftest.$ac_ext <<_ACEOF
  29304. /* confdefs.h. */
  29305. _ACEOF
  29306. cat confdefs.h >>conftest.$ac_ext
  29307. cat >>conftest.$ac_ext <<_ACEOF
  29308. /* end confdefs.h. */
  29309. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29310. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29311. #define $ac_func innocuous_$ac_func
  29312. /* System header to define __stub macros and hopefully few prototypes,
  29313. which can conflict with char $ac_func (); below.
  29314. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29315. <limits.h> exists even on freestanding compilers. */
  29316. #ifdef __STDC__
  29317. # include <limits.h>
  29318. #else
  29319. # include <assert.h>
  29320. #endif
  29321. #undef $ac_func
  29322. /* Override any GCC internal prototype to avoid an error.
  29323. Use char because int might match the return type of a GCC
  29324. builtin and then its argument prototype would still apply. */
  29325. #ifdef __cplusplus
  29326. extern "C"
  29327. #endif
  29328. char $ac_func ();
  29329. /* The GNU C library defines this for functions which it implements
  29330. to always fail with ENOSYS. Some functions are actually named
  29331. something starting with __ and the normal name is an alias. */
  29332. #if defined __stub_$ac_func || defined __stub___$ac_func
  29333. choke me
  29334. #endif
  29335. int
  29336. main ()
  29337. {
  29338. return $ac_func ();
  29339. ;
  29340. return 0;
  29341. }
  29342. _ACEOF
  29343. rm -f conftest.$ac_objext conftest$ac_exeext
  29344. if { (ac_try="$ac_link"
  29345. case "(($ac_try" in
  29346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29347. *) ac_try_echo=$ac_try;;
  29348. esac
  29349. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29350. $as_echo "$ac_try_echo") >&5
  29351. (eval "$ac_link") 2>conftest.er1
  29352. ac_status=$?
  29353. grep -v '^ *+' conftest.er1 >conftest.err
  29354. rm -f conftest.er1
  29355. cat conftest.err >&5
  29356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29357. (exit $ac_status); } && {
  29358. test -z "$ac_c_werror_flag" ||
  29359. test ! -s conftest.err
  29360. } && test -s conftest$ac_exeext && {
  29361. test "$cross_compiling" = yes ||
  29362. $as_test_x conftest$ac_exeext
  29363. }; then
  29364. eval "$as_ac_var=yes"
  29365. else
  29366. $as_echo "$as_me: failed program was:" >&5
  29367. sed 's/^/| /' conftest.$ac_ext >&5
  29368. eval "$as_ac_var=no"
  29369. fi
  29370. rm -rf conftest.dSYM
  29371. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29372. conftest$ac_exeext conftest.$ac_ext
  29373. fi
  29374. ac_res=`eval 'as_val=${'$as_ac_var'}
  29375. $as_echo "$as_val"'`
  29376. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29377. $as_echo "$ac_res" >&6; }
  29378. as_val=`eval 'as_val=${'$as_ac_var'}
  29379. $as_echo "$as_val"'`
  29380. if test "x$as_val" = x""yes; then
  29381. cat >>confdefs.h <<_ACEOF
  29382. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29383. _ACEOF
  29384. fi
  29385. done
  29386. # Needed by unixodbc
  29387. if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
  29388. pbxlibdir=""
  29389. # if --with-LTDL=DIR has been specified, use it.
  29390. if test "x${LTDL_DIR}" != "x"; then
  29391. if test -d ${LTDL_DIR}/lib; then
  29392. pbxlibdir="-L${LTDL_DIR}/lib"
  29393. else
  29394. pbxlibdir="-L${LTDL_DIR}"
  29395. fi
  29396. fi
  29397. pbxfuncname="lt_dlinit"
  29398. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  29399. AST_LTDL_FOUND=yes
  29400. else
  29401. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29402. CFLAGS="${CFLAGS} "
  29403. as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
  29404. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
  29405. $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
  29406. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  29407. $as_echo_n "(cached) " >&6
  29408. else
  29409. ac_check_lib_save_LIBS=$LIBS
  29410. LIBS="-lltdl ${pbxlibdir} $LIBS"
  29411. cat >conftest.$ac_ext <<_ACEOF
  29412. /* confdefs.h. */
  29413. _ACEOF
  29414. cat confdefs.h >>conftest.$ac_ext
  29415. cat >>conftest.$ac_ext <<_ACEOF
  29416. /* end confdefs.h. */
  29417. /* Override any GCC internal prototype to avoid an error.
  29418. Use char because int might match the return type of a GCC
  29419. builtin and then its argument prototype would still apply. */
  29420. #ifdef __cplusplus
  29421. extern "C"
  29422. #endif
  29423. char ${pbxfuncname} ();
  29424. int
  29425. main ()
  29426. {
  29427. return ${pbxfuncname} ();
  29428. ;
  29429. return 0;
  29430. }
  29431. _ACEOF
  29432. rm -f conftest.$ac_objext conftest$ac_exeext
  29433. if { (ac_try="$ac_link"
  29434. case "(($ac_try" in
  29435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29436. *) ac_try_echo=$ac_try;;
  29437. esac
  29438. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29439. $as_echo "$ac_try_echo") >&5
  29440. (eval "$ac_link") 2>conftest.er1
  29441. ac_status=$?
  29442. grep -v '^ *+' conftest.er1 >conftest.err
  29443. rm -f conftest.er1
  29444. cat conftest.err >&5
  29445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29446. (exit $ac_status); } && {
  29447. test -z "$ac_c_werror_flag" ||
  29448. test ! -s conftest.err
  29449. } && test -s conftest$ac_exeext && {
  29450. test "$cross_compiling" = yes ||
  29451. $as_test_x conftest$ac_exeext
  29452. }; then
  29453. eval "$as_ac_Lib=yes"
  29454. else
  29455. $as_echo "$as_me: failed program was:" >&5
  29456. sed 's/^/| /' conftest.$ac_ext >&5
  29457. eval "$as_ac_Lib=no"
  29458. fi
  29459. rm -rf conftest.dSYM
  29460. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29461. conftest$ac_exeext conftest.$ac_ext
  29462. LIBS=$ac_check_lib_save_LIBS
  29463. fi
  29464. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  29465. $as_echo "$as_val"'`
  29466. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29467. $as_echo "$ac_res" >&6; }
  29468. as_val=`eval 'as_val=${'$as_ac_Lib'}
  29469. $as_echo "$as_val"'`
  29470. if test "x$as_val" = x""yes; then
  29471. AST_LTDL_FOUND=yes
  29472. else
  29473. AST_LTDL_FOUND=no
  29474. fi
  29475. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29476. fi
  29477. # now check for the header.
  29478. if test "${AST_LTDL_FOUND}" = "yes"; then
  29479. LTDL_LIB="${pbxlibdir} -lltdl "
  29480. # if --with-LTDL=DIR has been specified, use it.
  29481. if test "x${LTDL_DIR}" != "x"; then
  29482. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  29483. fi
  29484. LTDL_INCLUDE="${LTDL_INCLUDE} "
  29485. if test "xltdl.h" = "x" ; then # no header, assume found
  29486. LTDL_HEADER_FOUND="1"
  29487. else # check for the header
  29488. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29489. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  29490. if test "${ac_cv_header_ltdl_h+set}" = set; then
  29491. { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  29492. $as_echo_n "checking for ltdl.h... " >&6; }
  29493. if test "${ac_cv_header_ltdl_h+set}" = set; then
  29494. $as_echo_n "(cached) " >&6
  29495. fi
  29496. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  29497. $as_echo "$ac_cv_header_ltdl_h" >&6; }
  29498. else
  29499. # Is the header compilable?
  29500. { $as_echo "$as_me:$LINENO: checking ltdl.h usability" >&5
  29501. $as_echo_n "checking ltdl.h usability... " >&6; }
  29502. cat >conftest.$ac_ext <<_ACEOF
  29503. /* confdefs.h. */
  29504. _ACEOF
  29505. cat confdefs.h >>conftest.$ac_ext
  29506. cat >>conftest.$ac_ext <<_ACEOF
  29507. /* end confdefs.h. */
  29508. $ac_includes_default
  29509. #include <ltdl.h>
  29510. _ACEOF
  29511. rm -f conftest.$ac_objext
  29512. if { (ac_try="$ac_compile"
  29513. case "(($ac_try" in
  29514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29515. *) ac_try_echo=$ac_try;;
  29516. esac
  29517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29518. $as_echo "$ac_try_echo") >&5
  29519. (eval "$ac_compile") 2>conftest.er1
  29520. ac_status=$?
  29521. grep -v '^ *+' conftest.er1 >conftest.err
  29522. rm -f conftest.er1
  29523. cat conftest.err >&5
  29524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29525. (exit $ac_status); } && {
  29526. test -z "$ac_c_werror_flag" ||
  29527. test ! -s conftest.err
  29528. } && test -s conftest.$ac_objext; then
  29529. ac_header_compiler=yes
  29530. else
  29531. $as_echo "$as_me: failed program was:" >&5
  29532. sed 's/^/| /' conftest.$ac_ext >&5
  29533. ac_header_compiler=no
  29534. fi
  29535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29536. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29537. $as_echo "$ac_header_compiler" >&6; }
  29538. # Is the header present?
  29539. { $as_echo "$as_me:$LINENO: checking ltdl.h presence" >&5
  29540. $as_echo_n "checking ltdl.h presence... " >&6; }
  29541. cat >conftest.$ac_ext <<_ACEOF
  29542. /* confdefs.h. */
  29543. _ACEOF
  29544. cat confdefs.h >>conftest.$ac_ext
  29545. cat >>conftest.$ac_ext <<_ACEOF
  29546. /* end confdefs.h. */
  29547. #include <ltdl.h>
  29548. _ACEOF
  29549. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29550. case "(($ac_try" in
  29551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29552. *) ac_try_echo=$ac_try;;
  29553. esac
  29554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29555. $as_echo "$ac_try_echo") >&5
  29556. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29557. ac_status=$?
  29558. grep -v '^ *+' conftest.er1 >conftest.err
  29559. rm -f conftest.er1
  29560. cat conftest.err >&5
  29561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29562. (exit $ac_status); } >/dev/null && {
  29563. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29564. test ! -s conftest.err
  29565. }; then
  29566. ac_header_preproc=yes
  29567. else
  29568. $as_echo "$as_me: failed program was:" >&5
  29569. sed 's/^/| /' conftest.$ac_ext >&5
  29570. ac_header_preproc=no
  29571. fi
  29572. rm -f conftest.err conftest.$ac_ext
  29573. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29574. $as_echo "$ac_header_preproc" >&6; }
  29575. # So? What about this header?
  29576. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29577. yes:no: )
  29578. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29579. $as_echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29580. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
  29581. $as_echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
  29582. ac_header_preproc=yes
  29583. ;;
  29584. no:yes:* )
  29585. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
  29586. $as_echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
  29587. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
  29588. $as_echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
  29589. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
  29590. $as_echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
  29591. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
  29592. $as_echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29593. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
  29594. $as_echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
  29595. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
  29596. $as_echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
  29597. ( cat <<\_ASBOX
  29598. ## ------------------------------------------ ##
  29599. ## Report this to https://issues.asterisk.org ##
  29600. ## ------------------------------------------ ##
  29601. _ASBOX
  29602. ) | sed "s/^/$as_me: WARNING: /" >&2
  29603. ;;
  29604. esac
  29605. { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  29606. $as_echo_n "checking for ltdl.h... " >&6; }
  29607. if test "${ac_cv_header_ltdl_h+set}" = set; then
  29608. $as_echo_n "(cached) " >&6
  29609. else
  29610. ac_cv_header_ltdl_h=$ac_header_preproc
  29611. fi
  29612. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  29613. $as_echo "$ac_cv_header_ltdl_h" >&6; }
  29614. fi
  29615. if test "x$ac_cv_header_ltdl_h" = x""yes; then
  29616. LTDL_HEADER_FOUND=1
  29617. else
  29618. LTDL_HEADER_FOUND=0
  29619. fi
  29620. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29621. fi
  29622. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  29623. LTDL_LIB=""
  29624. LTDL_INCLUDE=""
  29625. else
  29626. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29627. LTDL_LIB=""
  29628. fi
  29629. PBX_LTDL=1
  29630. cat >>confdefs.h <<_ACEOF
  29631. #define HAVE_LTDL 1
  29632. _ACEOF
  29633. fi
  29634. fi
  29635. fi
  29636. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  29637. pbxlibdir=""
  29638. # if --with-LDAP=DIR has been specified, use it.
  29639. if test "x${LDAP_DIR}" != "x"; then
  29640. if test -d ${LDAP_DIR}/lib; then
  29641. pbxlibdir="-L${LDAP_DIR}/lib"
  29642. else
  29643. pbxlibdir="-L${LDAP_DIR}"
  29644. fi
  29645. fi
  29646. pbxfuncname="ldap_initialize"
  29647. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  29648. AST_LDAP_FOUND=yes
  29649. else
  29650. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29651. CFLAGS="${CFLAGS} "
  29652. as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
  29653. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
  29654. $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
  29655. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  29656. $as_echo_n "(cached) " >&6
  29657. else
  29658. ac_check_lib_save_LIBS=$LIBS
  29659. LIBS="-lldap ${pbxlibdir} $LIBS"
  29660. cat >conftest.$ac_ext <<_ACEOF
  29661. /* confdefs.h. */
  29662. _ACEOF
  29663. cat confdefs.h >>conftest.$ac_ext
  29664. cat >>conftest.$ac_ext <<_ACEOF
  29665. /* end confdefs.h. */
  29666. /* Override any GCC internal prototype to avoid an error.
  29667. Use char because int might match the return type of a GCC
  29668. builtin and then its argument prototype would still apply. */
  29669. #ifdef __cplusplus
  29670. extern "C"
  29671. #endif
  29672. char ${pbxfuncname} ();
  29673. int
  29674. main ()
  29675. {
  29676. return ${pbxfuncname} ();
  29677. ;
  29678. return 0;
  29679. }
  29680. _ACEOF
  29681. rm -f conftest.$ac_objext conftest$ac_exeext
  29682. if { (ac_try="$ac_link"
  29683. case "(($ac_try" in
  29684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29685. *) ac_try_echo=$ac_try;;
  29686. esac
  29687. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29688. $as_echo "$ac_try_echo") >&5
  29689. (eval "$ac_link") 2>conftest.er1
  29690. ac_status=$?
  29691. grep -v '^ *+' conftest.er1 >conftest.err
  29692. rm -f conftest.er1
  29693. cat conftest.err >&5
  29694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29695. (exit $ac_status); } && {
  29696. test -z "$ac_c_werror_flag" ||
  29697. test ! -s conftest.err
  29698. } && test -s conftest$ac_exeext && {
  29699. test "$cross_compiling" = yes ||
  29700. $as_test_x conftest$ac_exeext
  29701. }; then
  29702. eval "$as_ac_Lib=yes"
  29703. else
  29704. $as_echo "$as_me: failed program was:" >&5
  29705. sed 's/^/| /' conftest.$ac_ext >&5
  29706. eval "$as_ac_Lib=no"
  29707. fi
  29708. rm -rf conftest.dSYM
  29709. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29710. conftest$ac_exeext conftest.$ac_ext
  29711. LIBS=$ac_check_lib_save_LIBS
  29712. fi
  29713. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  29714. $as_echo "$as_val"'`
  29715. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29716. $as_echo "$ac_res" >&6; }
  29717. as_val=`eval 'as_val=${'$as_ac_Lib'}
  29718. $as_echo "$as_val"'`
  29719. if test "x$as_val" = x""yes; then
  29720. AST_LDAP_FOUND=yes
  29721. else
  29722. AST_LDAP_FOUND=no
  29723. fi
  29724. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29725. fi
  29726. # now check for the header.
  29727. if test "${AST_LDAP_FOUND}" = "yes"; then
  29728. LDAP_LIB="${pbxlibdir} -lldap "
  29729. # if --with-LDAP=DIR has been specified, use it.
  29730. if test "x${LDAP_DIR}" != "x"; then
  29731. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  29732. fi
  29733. LDAP_INCLUDE="${LDAP_INCLUDE} "
  29734. if test "xldap.h" = "x" ; then # no header, assume found
  29735. LDAP_HEADER_FOUND="1"
  29736. else # check for the header
  29737. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29738. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  29739. if test "${ac_cv_header_ldap_h+set}" = set; then
  29740. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  29741. $as_echo_n "checking for ldap.h... " >&6; }
  29742. if test "${ac_cv_header_ldap_h+set}" = set; then
  29743. $as_echo_n "(cached) " >&6
  29744. fi
  29745. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  29746. $as_echo "$ac_cv_header_ldap_h" >&6; }
  29747. else
  29748. # Is the header compilable?
  29749. { $as_echo "$as_me:$LINENO: checking ldap.h usability" >&5
  29750. $as_echo_n "checking ldap.h usability... " >&6; }
  29751. cat >conftest.$ac_ext <<_ACEOF
  29752. /* confdefs.h. */
  29753. _ACEOF
  29754. cat confdefs.h >>conftest.$ac_ext
  29755. cat >>conftest.$ac_ext <<_ACEOF
  29756. /* end confdefs.h. */
  29757. $ac_includes_default
  29758. #include <ldap.h>
  29759. _ACEOF
  29760. rm -f conftest.$ac_objext
  29761. if { (ac_try="$ac_compile"
  29762. case "(($ac_try" in
  29763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29764. *) ac_try_echo=$ac_try;;
  29765. esac
  29766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29767. $as_echo "$ac_try_echo") >&5
  29768. (eval "$ac_compile") 2>conftest.er1
  29769. ac_status=$?
  29770. grep -v '^ *+' conftest.er1 >conftest.err
  29771. rm -f conftest.er1
  29772. cat conftest.err >&5
  29773. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29774. (exit $ac_status); } && {
  29775. test -z "$ac_c_werror_flag" ||
  29776. test ! -s conftest.err
  29777. } && test -s conftest.$ac_objext; then
  29778. ac_header_compiler=yes
  29779. else
  29780. $as_echo "$as_me: failed program was:" >&5
  29781. sed 's/^/| /' conftest.$ac_ext >&5
  29782. ac_header_compiler=no
  29783. fi
  29784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29785. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29786. $as_echo "$ac_header_compiler" >&6; }
  29787. # Is the header present?
  29788. { $as_echo "$as_me:$LINENO: checking ldap.h presence" >&5
  29789. $as_echo_n "checking ldap.h presence... " >&6; }
  29790. cat >conftest.$ac_ext <<_ACEOF
  29791. /* confdefs.h. */
  29792. _ACEOF
  29793. cat confdefs.h >>conftest.$ac_ext
  29794. cat >>conftest.$ac_ext <<_ACEOF
  29795. /* end confdefs.h. */
  29796. #include <ldap.h>
  29797. _ACEOF
  29798. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29799. case "(($ac_try" in
  29800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29801. *) ac_try_echo=$ac_try;;
  29802. esac
  29803. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29804. $as_echo "$ac_try_echo") >&5
  29805. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29806. ac_status=$?
  29807. grep -v '^ *+' conftest.er1 >conftest.err
  29808. rm -f conftest.er1
  29809. cat conftest.err >&5
  29810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29811. (exit $ac_status); } >/dev/null && {
  29812. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29813. test ! -s conftest.err
  29814. }; then
  29815. ac_header_preproc=yes
  29816. else
  29817. $as_echo "$as_me: failed program was:" >&5
  29818. sed 's/^/| /' conftest.$ac_ext >&5
  29819. ac_header_preproc=no
  29820. fi
  29821. rm -f conftest.err conftest.$ac_ext
  29822. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29823. $as_echo "$ac_header_preproc" >&6; }
  29824. # So? What about this header?
  29825. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29826. yes:no: )
  29827. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29828. $as_echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29829. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
  29830. $as_echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
  29831. ac_header_preproc=yes
  29832. ;;
  29833. no:yes:* )
  29834. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
  29835. $as_echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
  29836. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
  29837. $as_echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
  29838. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
  29839. $as_echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
  29840. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
  29841. $as_echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29842. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
  29843. $as_echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
  29844. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
  29845. $as_echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
  29846. ( cat <<\_ASBOX
  29847. ## ------------------------------------------ ##
  29848. ## Report this to https://issues.asterisk.org ##
  29849. ## ------------------------------------------ ##
  29850. _ASBOX
  29851. ) | sed "s/^/$as_me: WARNING: /" >&2
  29852. ;;
  29853. esac
  29854. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  29855. $as_echo_n "checking for ldap.h... " >&6; }
  29856. if test "${ac_cv_header_ldap_h+set}" = set; then
  29857. $as_echo_n "(cached) " >&6
  29858. else
  29859. ac_cv_header_ldap_h=$ac_header_preproc
  29860. fi
  29861. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  29862. $as_echo "$ac_cv_header_ldap_h" >&6; }
  29863. fi
  29864. if test "x$ac_cv_header_ldap_h" = x""yes; then
  29865. LDAP_HEADER_FOUND=1
  29866. else
  29867. LDAP_HEADER_FOUND=0
  29868. fi
  29869. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29870. fi
  29871. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  29872. LDAP_LIB=""
  29873. LDAP_INCLUDE=""
  29874. else
  29875. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29876. LDAP_LIB=""
  29877. fi
  29878. PBX_LDAP=1
  29879. cat >>confdefs.h <<_ACEOF
  29880. #define HAVE_LDAP 1
  29881. _ACEOF
  29882. fi
  29883. fi
  29884. fi
  29885. if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
  29886. pbxlibdir=""
  29887. # if --with-MISDN=DIR has been specified, use it.
  29888. if test "x${MISDN_DIR}" != "x"; then
  29889. if test -d ${MISDN_DIR}/lib; then
  29890. pbxlibdir="-L${MISDN_DIR}/lib"
  29891. else
  29892. pbxlibdir="-L${MISDN_DIR}"
  29893. fi
  29894. fi
  29895. pbxfuncname="mISDN_open"
  29896. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  29897. AST_MISDN_FOUND=yes
  29898. else
  29899. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29900. CFLAGS="${CFLAGS} "
  29901. as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
  29902. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
  29903. $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
  29904. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  29905. $as_echo_n "(cached) " >&6
  29906. else
  29907. ac_check_lib_save_LIBS=$LIBS
  29908. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  29909. cat >conftest.$ac_ext <<_ACEOF
  29910. /* confdefs.h. */
  29911. _ACEOF
  29912. cat confdefs.h >>conftest.$ac_ext
  29913. cat >>conftest.$ac_ext <<_ACEOF
  29914. /* end confdefs.h. */
  29915. /* Override any GCC internal prototype to avoid an error.
  29916. Use char because int might match the return type of a GCC
  29917. builtin and then its argument prototype would still apply. */
  29918. #ifdef __cplusplus
  29919. extern "C"
  29920. #endif
  29921. char ${pbxfuncname} ();
  29922. int
  29923. main ()
  29924. {
  29925. return ${pbxfuncname} ();
  29926. ;
  29927. return 0;
  29928. }
  29929. _ACEOF
  29930. rm -f conftest.$ac_objext conftest$ac_exeext
  29931. if { (ac_try="$ac_link"
  29932. case "(($ac_try" in
  29933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29934. *) ac_try_echo=$ac_try;;
  29935. esac
  29936. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29937. $as_echo "$ac_try_echo") >&5
  29938. (eval "$ac_link") 2>conftest.er1
  29939. ac_status=$?
  29940. grep -v '^ *+' conftest.er1 >conftest.err
  29941. rm -f conftest.er1
  29942. cat conftest.err >&5
  29943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29944. (exit $ac_status); } && {
  29945. test -z "$ac_c_werror_flag" ||
  29946. test ! -s conftest.err
  29947. } && test -s conftest$ac_exeext && {
  29948. test "$cross_compiling" = yes ||
  29949. $as_test_x conftest$ac_exeext
  29950. }; then
  29951. eval "$as_ac_Lib=yes"
  29952. else
  29953. $as_echo "$as_me: failed program was:" >&5
  29954. sed 's/^/| /' conftest.$ac_ext >&5
  29955. eval "$as_ac_Lib=no"
  29956. fi
  29957. rm -rf conftest.dSYM
  29958. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29959. conftest$ac_exeext conftest.$ac_ext
  29960. LIBS=$ac_check_lib_save_LIBS
  29961. fi
  29962. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  29963. $as_echo "$as_val"'`
  29964. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29965. $as_echo "$ac_res" >&6; }
  29966. as_val=`eval 'as_val=${'$as_ac_Lib'}
  29967. $as_echo "$as_val"'`
  29968. if test "x$as_val" = x""yes; then
  29969. AST_MISDN_FOUND=yes
  29970. else
  29971. AST_MISDN_FOUND=no
  29972. fi
  29973. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29974. fi
  29975. # now check for the header.
  29976. if test "${AST_MISDN_FOUND}" = "yes"; then
  29977. MISDN_LIB="${pbxlibdir} -lmISDN "
  29978. # if --with-MISDN=DIR has been specified, use it.
  29979. if test "x${MISDN_DIR}" != "x"; then
  29980. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  29981. fi
  29982. MISDN_INCLUDE="${MISDN_INCLUDE} "
  29983. if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
  29984. MISDN_HEADER_FOUND="1"
  29985. else # check for the header
  29986. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29987. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  29988. if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
  29989. { $as_echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
  29990. $as_echo_n "checking for mISDNuser/mISDNlib.h... " >&6; }
  29991. if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
  29992. $as_echo_n "(cached) " >&6
  29993. fi
  29994. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
  29995. $as_echo "$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
  29996. else
  29997. # Is the header compilable?
  29998. { $as_echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
  29999. $as_echo_n "checking mISDNuser/mISDNlib.h usability... " >&6; }
  30000. cat >conftest.$ac_ext <<_ACEOF
  30001. /* confdefs.h. */
  30002. _ACEOF
  30003. cat confdefs.h >>conftest.$ac_ext
  30004. cat >>conftest.$ac_ext <<_ACEOF
  30005. /* end confdefs.h. */
  30006. $ac_includes_default
  30007. #include <mISDNuser/mISDNlib.h>
  30008. _ACEOF
  30009. rm -f conftest.$ac_objext
  30010. if { (ac_try="$ac_compile"
  30011. case "(($ac_try" in
  30012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30013. *) ac_try_echo=$ac_try;;
  30014. esac
  30015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30016. $as_echo "$ac_try_echo") >&5
  30017. (eval "$ac_compile") 2>conftest.er1
  30018. ac_status=$?
  30019. grep -v '^ *+' conftest.er1 >conftest.err
  30020. rm -f conftest.er1
  30021. cat conftest.err >&5
  30022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30023. (exit $ac_status); } && {
  30024. test -z "$ac_c_werror_flag" ||
  30025. test ! -s conftest.err
  30026. } && test -s conftest.$ac_objext; then
  30027. ac_header_compiler=yes
  30028. else
  30029. $as_echo "$as_me: failed program was:" >&5
  30030. sed 's/^/| /' conftest.$ac_ext >&5
  30031. ac_header_compiler=no
  30032. fi
  30033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30034. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30035. $as_echo "$ac_header_compiler" >&6; }
  30036. # Is the header present?
  30037. { $as_echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
  30038. $as_echo_n "checking mISDNuser/mISDNlib.h presence... " >&6; }
  30039. cat >conftest.$ac_ext <<_ACEOF
  30040. /* confdefs.h. */
  30041. _ACEOF
  30042. cat confdefs.h >>conftest.$ac_ext
  30043. cat >>conftest.$ac_ext <<_ACEOF
  30044. /* end confdefs.h. */
  30045. #include <mISDNuser/mISDNlib.h>
  30046. _ACEOF
  30047. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30048. case "(($ac_try" in
  30049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30050. *) ac_try_echo=$ac_try;;
  30051. esac
  30052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30053. $as_echo "$ac_try_echo") >&5
  30054. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30055. ac_status=$?
  30056. grep -v '^ *+' conftest.er1 >conftest.err
  30057. rm -f conftest.er1
  30058. cat conftest.err >&5
  30059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30060. (exit $ac_status); } >/dev/null && {
  30061. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30062. test ! -s conftest.err
  30063. }; then
  30064. ac_header_preproc=yes
  30065. else
  30066. $as_echo "$as_me: failed program was:" >&5
  30067. sed 's/^/| /' conftest.$ac_ext >&5
  30068. ac_header_preproc=no
  30069. fi
  30070. rm -f conftest.err conftest.$ac_ext
  30071. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30072. $as_echo "$ac_header_preproc" >&6; }
  30073. # So? What about this header?
  30074. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30075. yes:no: )
  30076. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30077. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30078. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
  30079. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
  30080. ac_header_preproc=yes
  30081. ;;
  30082. no:yes:* )
  30083. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
  30084. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
  30085. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
  30086. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
  30087. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
  30088. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
  30089. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
  30090. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30091. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
  30092. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
  30093. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
  30094. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
  30095. ( cat <<\_ASBOX
  30096. ## ------------------------------------------ ##
  30097. ## Report this to https://issues.asterisk.org ##
  30098. ## ------------------------------------------ ##
  30099. _ASBOX
  30100. ) | sed "s/^/$as_me: WARNING: /" >&2
  30101. ;;
  30102. esac
  30103. { $as_echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
  30104. $as_echo_n "checking for mISDNuser/mISDNlib.h... " >&6; }
  30105. if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
  30106. $as_echo_n "(cached) " >&6
  30107. else
  30108. ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
  30109. fi
  30110. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
  30111. $as_echo "$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
  30112. fi
  30113. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = x""yes; then
  30114. MISDN_HEADER_FOUND=1
  30115. else
  30116. MISDN_HEADER_FOUND=0
  30117. fi
  30118. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30119. fi
  30120. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  30121. MISDN_LIB=""
  30122. MISDN_INCLUDE=""
  30123. else
  30124. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  30125. MISDN_LIB=""
  30126. fi
  30127. PBX_MISDN=1
  30128. cat >>confdefs.h <<_ACEOF
  30129. #define HAVE_MISDN 1
  30130. _ACEOF
  30131. fi
  30132. fi
  30133. fi
  30134. if test "${PBX_MISDN}" = 1; then
  30135. if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
  30136. pbxlibdir=""
  30137. # if --with-ISDNNET=DIR has been specified, use it.
  30138. if test "x${ISDNNET_DIR}" != "x"; then
  30139. if test -d ${ISDNNET_DIR}/lib; then
  30140. pbxlibdir="-L${ISDNNET_DIR}/lib"
  30141. else
  30142. pbxlibdir="-L${ISDNNET_DIR}"
  30143. fi
  30144. fi
  30145. pbxfuncname="init_manager"
  30146. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  30147. AST_ISDNNET_FOUND=yes
  30148. else
  30149. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30150. CFLAGS="${CFLAGS} "
  30151. as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
  30152. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
  30153. $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
  30154. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  30155. $as_echo_n "(cached) " >&6
  30156. else
  30157. ac_check_lib_save_LIBS=$LIBS
  30158. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  30159. cat >conftest.$ac_ext <<_ACEOF
  30160. /* confdefs.h. */
  30161. _ACEOF
  30162. cat confdefs.h >>conftest.$ac_ext
  30163. cat >>conftest.$ac_ext <<_ACEOF
  30164. /* end confdefs.h. */
  30165. /* Override any GCC internal prototype to avoid an error.
  30166. Use char because int might match the return type of a GCC
  30167. builtin and then its argument prototype would still apply. */
  30168. #ifdef __cplusplus
  30169. extern "C"
  30170. #endif
  30171. char ${pbxfuncname} ();
  30172. int
  30173. main ()
  30174. {
  30175. return ${pbxfuncname} ();
  30176. ;
  30177. return 0;
  30178. }
  30179. _ACEOF
  30180. rm -f conftest.$ac_objext conftest$ac_exeext
  30181. if { (ac_try="$ac_link"
  30182. case "(($ac_try" in
  30183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30184. *) ac_try_echo=$ac_try;;
  30185. esac
  30186. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30187. $as_echo "$ac_try_echo") >&5
  30188. (eval "$ac_link") 2>conftest.er1
  30189. ac_status=$?
  30190. grep -v '^ *+' conftest.er1 >conftest.err
  30191. rm -f conftest.er1
  30192. cat conftest.err >&5
  30193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30194. (exit $ac_status); } && {
  30195. test -z "$ac_c_werror_flag" ||
  30196. test ! -s conftest.err
  30197. } && test -s conftest$ac_exeext && {
  30198. test "$cross_compiling" = yes ||
  30199. $as_test_x conftest$ac_exeext
  30200. }; then
  30201. eval "$as_ac_Lib=yes"
  30202. else
  30203. $as_echo "$as_me: failed program was:" >&5
  30204. sed 's/^/| /' conftest.$ac_ext >&5
  30205. eval "$as_ac_Lib=no"
  30206. fi
  30207. rm -rf conftest.dSYM
  30208. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30209. conftest$ac_exeext conftest.$ac_ext
  30210. LIBS=$ac_check_lib_save_LIBS
  30211. fi
  30212. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  30213. $as_echo "$as_val"'`
  30214. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30215. $as_echo "$ac_res" >&6; }
  30216. as_val=`eval 'as_val=${'$as_ac_Lib'}
  30217. $as_echo "$as_val"'`
  30218. if test "x$as_val" = x""yes; then
  30219. AST_ISDNNET_FOUND=yes
  30220. else
  30221. AST_ISDNNET_FOUND=no
  30222. fi
  30223. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30224. fi
  30225. # now check for the header.
  30226. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  30227. ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
  30228. # if --with-ISDNNET=DIR has been specified, use it.
  30229. if test "x${ISDNNET_DIR}" != "x"; then
  30230. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  30231. fi
  30232. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  30233. if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
  30234. ISDNNET_HEADER_FOUND="1"
  30235. else # check for the header
  30236. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30237. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  30238. if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
  30239. { $as_echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
  30240. $as_echo_n "checking for mISDNuser/isdn_net.h... " >&6; }
  30241. if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
  30242. $as_echo_n "(cached) " >&6
  30243. fi
  30244. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
  30245. $as_echo "$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
  30246. else
  30247. # Is the header compilable?
  30248. { $as_echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
  30249. $as_echo_n "checking mISDNuser/isdn_net.h usability... " >&6; }
  30250. cat >conftest.$ac_ext <<_ACEOF
  30251. /* confdefs.h. */
  30252. _ACEOF
  30253. cat confdefs.h >>conftest.$ac_ext
  30254. cat >>conftest.$ac_ext <<_ACEOF
  30255. /* end confdefs.h. */
  30256. $ac_includes_default
  30257. #include <mISDNuser/isdn_net.h>
  30258. _ACEOF
  30259. rm -f conftest.$ac_objext
  30260. if { (ac_try="$ac_compile"
  30261. case "(($ac_try" in
  30262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30263. *) ac_try_echo=$ac_try;;
  30264. esac
  30265. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30266. $as_echo "$ac_try_echo") >&5
  30267. (eval "$ac_compile") 2>conftest.er1
  30268. ac_status=$?
  30269. grep -v '^ *+' conftest.er1 >conftest.err
  30270. rm -f conftest.er1
  30271. cat conftest.err >&5
  30272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30273. (exit $ac_status); } && {
  30274. test -z "$ac_c_werror_flag" ||
  30275. test ! -s conftest.err
  30276. } && test -s conftest.$ac_objext; then
  30277. ac_header_compiler=yes
  30278. else
  30279. $as_echo "$as_me: failed program was:" >&5
  30280. sed 's/^/| /' conftest.$ac_ext >&5
  30281. ac_header_compiler=no
  30282. fi
  30283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30284. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30285. $as_echo "$ac_header_compiler" >&6; }
  30286. # Is the header present?
  30287. { $as_echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
  30288. $as_echo_n "checking mISDNuser/isdn_net.h presence... " >&6; }
  30289. cat >conftest.$ac_ext <<_ACEOF
  30290. /* confdefs.h. */
  30291. _ACEOF
  30292. cat confdefs.h >>conftest.$ac_ext
  30293. cat >>conftest.$ac_ext <<_ACEOF
  30294. /* end confdefs.h. */
  30295. #include <mISDNuser/isdn_net.h>
  30296. _ACEOF
  30297. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30298. case "(($ac_try" in
  30299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30300. *) ac_try_echo=$ac_try;;
  30301. esac
  30302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30303. $as_echo "$ac_try_echo") >&5
  30304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30305. ac_status=$?
  30306. grep -v '^ *+' conftest.er1 >conftest.err
  30307. rm -f conftest.er1
  30308. cat conftest.err >&5
  30309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30310. (exit $ac_status); } >/dev/null && {
  30311. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30312. test ! -s conftest.err
  30313. }; then
  30314. ac_header_preproc=yes
  30315. else
  30316. $as_echo "$as_me: failed program was:" >&5
  30317. sed 's/^/| /' conftest.$ac_ext >&5
  30318. ac_header_preproc=no
  30319. fi
  30320. rm -f conftest.err conftest.$ac_ext
  30321. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30322. $as_echo "$ac_header_preproc" >&6; }
  30323. # So? What about this header?
  30324. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30325. yes:no: )
  30326. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30327. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30328. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
  30329. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
  30330. ac_header_preproc=yes
  30331. ;;
  30332. no:yes:* )
  30333. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
  30334. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
  30335. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
  30336. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
  30337. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
  30338. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
  30339. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
  30340. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30341. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
  30342. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
  30343. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
  30344. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
  30345. ( cat <<\_ASBOX
  30346. ## ------------------------------------------ ##
  30347. ## Report this to https://issues.asterisk.org ##
  30348. ## ------------------------------------------ ##
  30349. _ASBOX
  30350. ) | sed "s/^/$as_me: WARNING: /" >&2
  30351. ;;
  30352. esac
  30353. { $as_echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
  30354. $as_echo_n "checking for mISDNuser/isdn_net.h... " >&6; }
  30355. if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
  30356. $as_echo_n "(cached) " >&6
  30357. else
  30358. ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
  30359. fi
  30360. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
  30361. $as_echo "$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
  30362. fi
  30363. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = x""yes; then
  30364. ISDNNET_HEADER_FOUND=1
  30365. else
  30366. ISDNNET_HEADER_FOUND=0
  30367. fi
  30368. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30369. fi
  30370. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  30371. ISDNNET_LIB=""
  30372. ISDNNET_INCLUDE=""
  30373. else
  30374. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  30375. ISDNNET_LIB=""
  30376. fi
  30377. PBX_ISDNNET=1
  30378. cat >>confdefs.h <<_ACEOF
  30379. #define HAVE_ISDNNET 1
  30380. _ACEOF
  30381. fi
  30382. fi
  30383. fi
  30384. if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
  30385. pbxlibdir=""
  30386. # if --with-SUPPSERV=DIR has been specified, use it.
  30387. if test "x${SUPPSERV_DIR}" != "x"; then
  30388. if test -d ${SUPPSERV_DIR}/lib; then
  30389. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  30390. else
  30391. pbxlibdir="-L${SUPPSERV_DIR}"
  30392. fi
  30393. fi
  30394. pbxfuncname="encodeFac"
  30395. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  30396. AST_SUPPSERV_FOUND=yes
  30397. else
  30398. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30399. CFLAGS="${CFLAGS} "
  30400. as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
  30401. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
  30402. $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
  30403. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  30404. $as_echo_n "(cached) " >&6
  30405. else
  30406. ac_check_lib_save_LIBS=$LIBS
  30407. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  30408. cat >conftest.$ac_ext <<_ACEOF
  30409. /* confdefs.h. */
  30410. _ACEOF
  30411. cat confdefs.h >>conftest.$ac_ext
  30412. cat >>conftest.$ac_ext <<_ACEOF
  30413. /* end confdefs.h. */
  30414. /* Override any GCC internal prototype to avoid an error.
  30415. Use char because int might match the return type of a GCC
  30416. builtin and then its argument prototype would still apply. */
  30417. #ifdef __cplusplus
  30418. extern "C"
  30419. #endif
  30420. char ${pbxfuncname} ();
  30421. int
  30422. main ()
  30423. {
  30424. return ${pbxfuncname} ();
  30425. ;
  30426. return 0;
  30427. }
  30428. _ACEOF
  30429. rm -f conftest.$ac_objext conftest$ac_exeext
  30430. if { (ac_try="$ac_link"
  30431. case "(($ac_try" in
  30432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30433. *) ac_try_echo=$ac_try;;
  30434. esac
  30435. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30436. $as_echo "$ac_try_echo") >&5
  30437. (eval "$ac_link") 2>conftest.er1
  30438. ac_status=$?
  30439. grep -v '^ *+' conftest.er1 >conftest.err
  30440. rm -f conftest.er1
  30441. cat conftest.err >&5
  30442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30443. (exit $ac_status); } && {
  30444. test -z "$ac_c_werror_flag" ||
  30445. test ! -s conftest.err
  30446. } && test -s conftest$ac_exeext && {
  30447. test "$cross_compiling" = yes ||
  30448. $as_test_x conftest$ac_exeext
  30449. }; then
  30450. eval "$as_ac_Lib=yes"
  30451. else
  30452. $as_echo "$as_me: failed program was:" >&5
  30453. sed 's/^/| /' conftest.$ac_ext >&5
  30454. eval "$as_ac_Lib=no"
  30455. fi
  30456. rm -rf conftest.dSYM
  30457. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30458. conftest$ac_exeext conftest.$ac_ext
  30459. LIBS=$ac_check_lib_save_LIBS
  30460. fi
  30461. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  30462. $as_echo "$as_val"'`
  30463. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30464. $as_echo "$ac_res" >&6; }
  30465. as_val=`eval 'as_val=${'$as_ac_Lib'}
  30466. $as_echo "$as_val"'`
  30467. if test "x$as_val" = x""yes; then
  30468. AST_SUPPSERV_FOUND=yes
  30469. else
  30470. AST_SUPPSERV_FOUND=no
  30471. fi
  30472. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30473. fi
  30474. # now check for the header.
  30475. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  30476. SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
  30477. # if --with-SUPPSERV=DIR has been specified, use it.
  30478. if test "x${SUPPSERV_DIR}" != "x"; then
  30479. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  30480. fi
  30481. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  30482. if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
  30483. SUPPSERV_HEADER_FOUND="1"
  30484. else # check for the header
  30485. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30486. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  30487. if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
  30488. { $as_echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
  30489. $as_echo_n "checking for mISDNuser/suppserv.h... " >&6; }
  30490. if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
  30491. $as_echo_n "(cached) " >&6
  30492. fi
  30493. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
  30494. $as_echo "$ac_cv_header_mISDNuser_suppserv_h" >&6; }
  30495. else
  30496. # Is the header compilable?
  30497. { $as_echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
  30498. $as_echo_n "checking mISDNuser/suppserv.h usability... " >&6; }
  30499. cat >conftest.$ac_ext <<_ACEOF
  30500. /* confdefs.h. */
  30501. _ACEOF
  30502. cat confdefs.h >>conftest.$ac_ext
  30503. cat >>conftest.$ac_ext <<_ACEOF
  30504. /* end confdefs.h. */
  30505. $ac_includes_default
  30506. #include <mISDNuser/suppserv.h>
  30507. _ACEOF
  30508. rm -f conftest.$ac_objext
  30509. if { (ac_try="$ac_compile"
  30510. case "(($ac_try" in
  30511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30512. *) ac_try_echo=$ac_try;;
  30513. esac
  30514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30515. $as_echo "$ac_try_echo") >&5
  30516. (eval "$ac_compile") 2>conftest.er1
  30517. ac_status=$?
  30518. grep -v '^ *+' conftest.er1 >conftest.err
  30519. rm -f conftest.er1
  30520. cat conftest.err >&5
  30521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30522. (exit $ac_status); } && {
  30523. test -z "$ac_c_werror_flag" ||
  30524. test ! -s conftest.err
  30525. } && test -s conftest.$ac_objext; then
  30526. ac_header_compiler=yes
  30527. else
  30528. $as_echo "$as_me: failed program was:" >&5
  30529. sed 's/^/| /' conftest.$ac_ext >&5
  30530. ac_header_compiler=no
  30531. fi
  30532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30533. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30534. $as_echo "$ac_header_compiler" >&6; }
  30535. # Is the header present?
  30536. { $as_echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
  30537. $as_echo_n "checking mISDNuser/suppserv.h presence... " >&6; }
  30538. cat >conftest.$ac_ext <<_ACEOF
  30539. /* confdefs.h. */
  30540. _ACEOF
  30541. cat confdefs.h >>conftest.$ac_ext
  30542. cat >>conftest.$ac_ext <<_ACEOF
  30543. /* end confdefs.h. */
  30544. #include <mISDNuser/suppserv.h>
  30545. _ACEOF
  30546. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30547. case "(($ac_try" in
  30548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30549. *) ac_try_echo=$ac_try;;
  30550. esac
  30551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30552. $as_echo "$ac_try_echo") >&5
  30553. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30554. ac_status=$?
  30555. grep -v '^ *+' conftest.er1 >conftest.err
  30556. rm -f conftest.er1
  30557. cat conftest.err >&5
  30558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30559. (exit $ac_status); } >/dev/null && {
  30560. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30561. test ! -s conftest.err
  30562. }; then
  30563. ac_header_preproc=yes
  30564. else
  30565. $as_echo "$as_me: failed program was:" >&5
  30566. sed 's/^/| /' conftest.$ac_ext >&5
  30567. ac_header_preproc=no
  30568. fi
  30569. rm -f conftest.err conftest.$ac_ext
  30570. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30571. $as_echo "$ac_header_preproc" >&6; }
  30572. # So? What about this header?
  30573. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30574. yes:no: )
  30575. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30576. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30577. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
  30578. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
  30579. ac_header_preproc=yes
  30580. ;;
  30581. no:yes:* )
  30582. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
  30583. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
  30584. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
  30585. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
  30586. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
  30587. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
  30588. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
  30589. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30590. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
  30591. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
  30592. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
  30593. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
  30594. ( cat <<\_ASBOX
  30595. ## ------------------------------------------ ##
  30596. ## Report this to https://issues.asterisk.org ##
  30597. ## ------------------------------------------ ##
  30598. _ASBOX
  30599. ) | sed "s/^/$as_me: WARNING: /" >&2
  30600. ;;
  30601. esac
  30602. { $as_echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
  30603. $as_echo_n "checking for mISDNuser/suppserv.h... " >&6; }
  30604. if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
  30605. $as_echo_n "(cached) " >&6
  30606. else
  30607. ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
  30608. fi
  30609. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
  30610. $as_echo "$ac_cv_header_mISDNuser_suppserv_h" >&6; }
  30611. fi
  30612. if test "x$ac_cv_header_mISDNuser_suppserv_h" = x""yes; then
  30613. SUPPSERV_HEADER_FOUND=1
  30614. else
  30615. SUPPSERV_HEADER_FOUND=0
  30616. fi
  30617. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30618. fi
  30619. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  30620. SUPPSERV_LIB=""
  30621. SUPPSERV_INCLUDE=""
  30622. else
  30623. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  30624. SUPPSERV_LIB=""
  30625. fi
  30626. PBX_SUPPSERV=1
  30627. cat >>confdefs.h <<_ACEOF
  30628. #define HAVE_SUPPSERV 1
  30629. _ACEOF
  30630. fi
  30631. fi
  30632. fi
  30633. if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
  30634. { $as_echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
  30635. $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
  30636. saved_cppflags="${CPPFLAGS}"
  30637. if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
  30638. MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
  30639. fi
  30640. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
  30641. cat >conftest.$ac_ext <<_ACEOF
  30642. /* confdefs.h. */
  30643. _ACEOF
  30644. cat confdefs.h >>conftest.$ac_ext
  30645. cat >>conftest.$ac_ext <<_ACEOF
  30646. /* end confdefs.h. */
  30647. #include <mISDNuser/suppserv.h>
  30648. int
  30649. main ()
  30650. {
  30651. #if defined(Fac_RESULT)
  30652. int foo = 0;
  30653. #else
  30654. int foo = bar;
  30655. #endif
  30656. 0
  30657. ;
  30658. return 0;
  30659. }
  30660. _ACEOF
  30661. rm -f conftest.$ac_objext
  30662. if { (ac_try="$ac_compile"
  30663. case "(($ac_try" in
  30664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30665. *) ac_try_echo=$ac_try;;
  30666. esac
  30667. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30668. $as_echo "$ac_try_echo") >&5
  30669. (eval "$ac_compile") 2>conftest.er1
  30670. ac_status=$?
  30671. grep -v '^ *+' conftest.er1 >conftest.err
  30672. rm -f conftest.er1
  30673. cat conftest.err >&5
  30674. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30675. (exit $ac_status); } && {
  30676. test -z "$ac_c_werror_flag" ||
  30677. test ! -s conftest.err
  30678. } && test -s conftest.$ac_objext; then
  30679. { $as_echo "$as_me:$LINENO: result: yes" >&5
  30680. $as_echo "yes" >&6; }
  30681. PBX_MISDN_FAC_RESULT=1
  30682. cat >>confdefs.h <<\_ACEOF
  30683. #define HAVE_MISDN_FAC_RESULT 1
  30684. _ACEOF
  30685. else
  30686. $as_echo "$as_me: failed program was:" >&5
  30687. sed 's/^/| /' conftest.$ac_ext >&5
  30688. { $as_echo "$as_me:$LINENO: result: no" >&5
  30689. $as_echo "no" >&6; }
  30690. fi
  30691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30692. CPPFLAGS="${saved_cppflags}"
  30693. fi
  30694. if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
  30695. { $as_echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
  30696. $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
  30697. saved_cppflags="${CPPFLAGS}"
  30698. if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
  30699. MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
  30700. fi
  30701. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
  30702. cat >conftest.$ac_ext <<_ACEOF
  30703. /* confdefs.h. */
  30704. _ACEOF
  30705. cat confdefs.h >>conftest.$ac_ext
  30706. cat >>conftest.$ac_ext <<_ACEOF
  30707. /* end confdefs.h. */
  30708. #include <mISDNuser/suppserv.h>
  30709. int
  30710. main ()
  30711. {
  30712. #if defined(Fac_ERROR)
  30713. int foo = 0;
  30714. #else
  30715. int foo = bar;
  30716. #endif
  30717. 0
  30718. ;
  30719. return 0;
  30720. }
  30721. _ACEOF
  30722. rm -f conftest.$ac_objext
  30723. if { (ac_try="$ac_compile"
  30724. case "(($ac_try" in
  30725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30726. *) ac_try_echo=$ac_try;;
  30727. esac
  30728. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30729. $as_echo "$ac_try_echo") >&5
  30730. (eval "$ac_compile") 2>conftest.er1
  30731. ac_status=$?
  30732. grep -v '^ *+' conftest.er1 >conftest.err
  30733. rm -f conftest.er1
  30734. cat conftest.err >&5
  30735. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30736. (exit $ac_status); } && {
  30737. test -z "$ac_c_werror_flag" ||
  30738. test ! -s conftest.err
  30739. } && test -s conftest.$ac_objext; then
  30740. { $as_echo "$as_me:$LINENO: result: yes" >&5
  30741. $as_echo "yes" >&6; }
  30742. PBX_MISDN_FAC_ERROR=1
  30743. cat >>confdefs.h <<\_ACEOF
  30744. #define HAVE_MISDN_FAC_ERROR 1
  30745. _ACEOF
  30746. else
  30747. $as_echo "$as_me: failed program was:" >&5
  30748. sed 's/^/| /' conftest.$ac_ext >&5
  30749. { $as_echo "$as_me:$LINENO: result: no" >&5
  30750. $as_echo "no" >&6; }
  30751. fi
  30752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30753. CPPFLAGS="${saved_cppflags}"
  30754. fi
  30755. if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
  30756. { $as_echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
  30757. $as_echo_n "checking for linux/mISDNdsp.h... " >&6; }
  30758. if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
  30759. $as_echo_n "(cached) " >&6
  30760. fi
  30761. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
  30762. $as_echo "$ac_cv_header_linux_mISDNdsp_h" >&6; }
  30763. else
  30764. # Is the header compilable?
  30765. { $as_echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
  30766. $as_echo_n "checking linux/mISDNdsp.h usability... " >&6; }
  30767. cat >conftest.$ac_ext <<_ACEOF
  30768. /* confdefs.h. */
  30769. _ACEOF
  30770. cat confdefs.h >>conftest.$ac_ext
  30771. cat >>conftest.$ac_ext <<_ACEOF
  30772. /* end confdefs.h. */
  30773. $ac_includes_default
  30774. #include <linux/mISDNdsp.h>
  30775. _ACEOF
  30776. rm -f conftest.$ac_objext
  30777. if { (ac_try="$ac_compile"
  30778. case "(($ac_try" in
  30779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30780. *) ac_try_echo=$ac_try;;
  30781. esac
  30782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30783. $as_echo "$ac_try_echo") >&5
  30784. (eval "$ac_compile") 2>conftest.er1
  30785. ac_status=$?
  30786. grep -v '^ *+' conftest.er1 >conftest.err
  30787. rm -f conftest.er1
  30788. cat conftest.err >&5
  30789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30790. (exit $ac_status); } && {
  30791. test -z "$ac_c_werror_flag" ||
  30792. test ! -s conftest.err
  30793. } && test -s conftest.$ac_objext; then
  30794. ac_header_compiler=yes
  30795. else
  30796. $as_echo "$as_me: failed program was:" >&5
  30797. sed 's/^/| /' conftest.$ac_ext >&5
  30798. ac_header_compiler=no
  30799. fi
  30800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30801. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30802. $as_echo "$ac_header_compiler" >&6; }
  30803. # Is the header present?
  30804. { $as_echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
  30805. $as_echo_n "checking linux/mISDNdsp.h presence... " >&6; }
  30806. cat >conftest.$ac_ext <<_ACEOF
  30807. /* confdefs.h. */
  30808. _ACEOF
  30809. cat confdefs.h >>conftest.$ac_ext
  30810. cat >>conftest.$ac_ext <<_ACEOF
  30811. /* end confdefs.h. */
  30812. #include <linux/mISDNdsp.h>
  30813. _ACEOF
  30814. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30815. case "(($ac_try" in
  30816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30817. *) ac_try_echo=$ac_try;;
  30818. esac
  30819. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30820. $as_echo "$ac_try_echo") >&5
  30821. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30822. ac_status=$?
  30823. grep -v '^ *+' conftest.er1 >conftest.err
  30824. rm -f conftest.er1
  30825. cat conftest.err >&5
  30826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30827. (exit $ac_status); } >/dev/null && {
  30828. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30829. test ! -s conftest.err
  30830. }; then
  30831. ac_header_preproc=yes
  30832. else
  30833. $as_echo "$as_me: failed program was:" >&5
  30834. sed 's/^/| /' conftest.$ac_ext >&5
  30835. ac_header_preproc=no
  30836. fi
  30837. rm -f conftest.err conftest.$ac_ext
  30838. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30839. $as_echo "$ac_header_preproc" >&6; }
  30840. # So? What about this header?
  30841. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30842. yes:no: )
  30843. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30844. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30845. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
  30846. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
  30847. ac_header_preproc=yes
  30848. ;;
  30849. no:yes:* )
  30850. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
  30851. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
  30852. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
  30853. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
  30854. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
  30855. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
  30856. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
  30857. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30858. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
  30859. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
  30860. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
  30861. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
  30862. ( cat <<\_ASBOX
  30863. ## ------------------------------------------ ##
  30864. ## Report this to https://issues.asterisk.org ##
  30865. ## ------------------------------------------ ##
  30866. _ASBOX
  30867. ) | sed "s/^/$as_me: WARNING: /" >&2
  30868. ;;
  30869. esac
  30870. { $as_echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
  30871. $as_echo_n "checking for linux/mISDNdsp.h... " >&6; }
  30872. if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
  30873. $as_echo_n "(cached) " >&6
  30874. else
  30875. ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
  30876. fi
  30877. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
  30878. $as_echo "$ac_cv_header_linux_mISDNdsp_h" >&6; }
  30879. fi
  30880. if test "x$ac_cv_header_linux_mISDNdsp_h" = x""yes; then
  30881. cat >>confdefs.h <<_ACEOF
  30882. #define MISDN_1_2 1
  30883. _ACEOF
  30884. fi
  30885. { $as_echo "$as_me:$LINENO: checking for Q931_info_t.redirect_dn" >&5
  30886. $as_echo_n "checking for Q931_info_t.redirect_dn... " >&6; }
  30887. if test "${ac_cv_member_Q931_info_t_redirect_dn+set}" = set; then
  30888. $as_echo_n "(cached) " >&6
  30889. else
  30890. cat >conftest.$ac_ext <<_ACEOF
  30891. /* confdefs.h. */
  30892. _ACEOF
  30893. cat confdefs.h >>conftest.$ac_ext
  30894. cat >>conftest.$ac_ext <<_ACEOF
  30895. /* end confdefs.h. */
  30896. #include <mISDNuser/mISDNlib.h>
  30897. int
  30898. main ()
  30899. {
  30900. static Q931_info_t ac_aggr;
  30901. if (ac_aggr.redirect_dn)
  30902. return 0;
  30903. ;
  30904. return 0;
  30905. }
  30906. _ACEOF
  30907. rm -f conftest.$ac_objext
  30908. if { (ac_try="$ac_compile"
  30909. case "(($ac_try" in
  30910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30911. *) ac_try_echo=$ac_try;;
  30912. esac
  30913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30914. $as_echo "$ac_try_echo") >&5
  30915. (eval "$ac_compile") 2>conftest.er1
  30916. ac_status=$?
  30917. grep -v '^ *+' conftest.er1 >conftest.err
  30918. rm -f conftest.er1
  30919. cat conftest.err >&5
  30920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30921. (exit $ac_status); } && {
  30922. test -z "$ac_c_werror_flag" ||
  30923. test ! -s conftest.err
  30924. } && test -s conftest.$ac_objext; then
  30925. ac_cv_member_Q931_info_t_redirect_dn=yes
  30926. else
  30927. $as_echo "$as_me: failed program was:" >&5
  30928. sed 's/^/| /' conftest.$ac_ext >&5
  30929. cat >conftest.$ac_ext <<_ACEOF
  30930. /* confdefs.h. */
  30931. _ACEOF
  30932. cat confdefs.h >>conftest.$ac_ext
  30933. cat >>conftest.$ac_ext <<_ACEOF
  30934. /* end confdefs.h. */
  30935. #include <mISDNuser/mISDNlib.h>
  30936. int
  30937. main ()
  30938. {
  30939. static Q931_info_t ac_aggr;
  30940. if (sizeof ac_aggr.redirect_dn)
  30941. return 0;
  30942. ;
  30943. return 0;
  30944. }
  30945. _ACEOF
  30946. rm -f conftest.$ac_objext
  30947. if { (ac_try="$ac_compile"
  30948. case "(($ac_try" in
  30949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30950. *) ac_try_echo=$ac_try;;
  30951. esac
  30952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30953. $as_echo "$ac_try_echo") >&5
  30954. (eval "$ac_compile") 2>conftest.er1
  30955. ac_status=$?
  30956. grep -v '^ *+' conftest.er1 >conftest.err
  30957. rm -f conftest.er1
  30958. cat conftest.err >&5
  30959. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30960. (exit $ac_status); } && {
  30961. test -z "$ac_c_werror_flag" ||
  30962. test ! -s conftest.err
  30963. } && test -s conftest.$ac_objext; then
  30964. ac_cv_member_Q931_info_t_redirect_dn=yes
  30965. else
  30966. $as_echo "$as_me: failed program was:" >&5
  30967. sed 's/^/| /' conftest.$ac_ext >&5
  30968. ac_cv_member_Q931_info_t_redirect_dn=no
  30969. fi
  30970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30971. fi
  30972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30973. fi
  30974. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_Q931_info_t_redirect_dn" >&5
  30975. $as_echo "$ac_cv_member_Q931_info_t_redirect_dn" >&6; }
  30976. if test "x$ac_cv_member_Q931_info_t_redirect_dn" = x""yes; then
  30977. :
  30978. else
  30979. PBX_MISDN=0
  30980. fi
  30981. fi
  30982. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  30983. PBX_MYSQLCLIENT=0
  30984. if test -n "$ac_tool_prefix"; then
  30985. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  30986. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  30987. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  30988. $as_echo_n "checking for $ac_word... " >&6; }
  30989. if test "${ac_cv_path_CONFIG_MYSQLCLIENT+set}" = set; then
  30990. $as_echo_n "(cached) " >&6
  30991. else
  30992. case $CONFIG_MYSQLCLIENT in
  30993. [\\/]* | ?:[\\/]*)
  30994. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  30995. ;;
  30996. *)
  30997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30998. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  30999. for as_dir in $as_dummy
  31000. do
  31001. IFS=$as_save_IFS
  31002. test -z "$as_dir" && as_dir=.
  31003. for ac_exec_ext in '' $ac_executable_extensions; do
  31004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31005. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  31006. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31007. break 2
  31008. fi
  31009. done
  31010. done
  31011. IFS=$as_save_IFS
  31012. ;;
  31013. esac
  31014. fi
  31015. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  31016. if test -n "$CONFIG_MYSQLCLIENT"; then
  31017. { $as_echo "$as_me:$LINENO: result: $CONFIG_MYSQLCLIENT" >&5
  31018. $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
  31019. else
  31020. { $as_echo "$as_me:$LINENO: result: no" >&5
  31021. $as_echo "no" >&6; }
  31022. fi
  31023. fi
  31024. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  31025. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  31026. # Extract the first word of "mysql_config", so it can be a program name with args.
  31027. set dummy mysql_config; ac_word=$2
  31028. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31029. $as_echo_n "checking for $ac_word... " >&6; }
  31030. if test "${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+set}" = set; then
  31031. $as_echo_n "(cached) " >&6
  31032. else
  31033. case $ac_pt_CONFIG_MYSQLCLIENT in
  31034. [\\/]* | ?:[\\/]*)
  31035. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  31036. ;;
  31037. *)
  31038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31039. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  31040. for as_dir in $as_dummy
  31041. do
  31042. IFS=$as_save_IFS
  31043. test -z "$as_dir" && as_dir=.
  31044. for ac_exec_ext in '' $ac_executable_extensions; do
  31045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31046. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  31047. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31048. break 2
  31049. fi
  31050. done
  31051. done
  31052. IFS=$as_save_IFS
  31053. ;;
  31054. esac
  31055. fi
  31056. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  31057. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  31058. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  31059. $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  31060. else
  31061. { $as_echo "$as_me:$LINENO: result: no" >&5
  31062. $as_echo "no" >&6; }
  31063. fi
  31064. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  31065. CONFIG_MYSQLCLIENT="No"
  31066. else
  31067. case $cross_compiling:$ac_tool_warned in
  31068. yes:)
  31069. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  31070. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31071. ac_tool_warned=yes ;;
  31072. esac
  31073. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  31074. fi
  31075. else
  31076. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  31077. fi
  31078. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  31079. if test x"" = x ; then A=--cflags ; else A="" ; fi
  31080. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
  31081. if test x"" = x ; then A=--libs ; else A="" ; fi
  31082. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
  31083. if test x"" != x ; then
  31084. saved_cppflags="${CPPFLAGS}"
  31085. if test "x${MYSQLCLIENT_DIR}" != "x"; then
  31086. MYSQLCLIENT_INCLUDE="-I${MYSQLCLIENT_DIR}/include"
  31087. fi
  31088. CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
  31089. saved_libs="${LIBS}"
  31090. LIBS="${MYSQLCLIENT_LIB}"
  31091. cat >conftest.$ac_ext <<_ACEOF
  31092. /* confdefs.h. */
  31093. _ACEOF
  31094. cat confdefs.h >>conftest.$ac_ext
  31095. cat >>conftest.$ac_ext <<_ACEOF
  31096. /* end confdefs.h. */
  31097. int
  31098. main ()
  31099. {
  31100. ;
  31101. ;
  31102. return 0;
  31103. }
  31104. _ACEOF
  31105. rm -f conftest.$ac_objext conftest$ac_exeext
  31106. if { (ac_try="$ac_link"
  31107. case "(($ac_try" in
  31108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31109. *) ac_try_echo=$ac_try;;
  31110. esac
  31111. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31112. $as_echo "$ac_try_echo") >&5
  31113. (eval "$ac_link") 2>conftest.er1
  31114. ac_status=$?
  31115. grep -v '^ *+' conftest.er1 >conftest.err
  31116. rm -f conftest.er1
  31117. cat conftest.err >&5
  31118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31119. (exit $ac_status); } && {
  31120. test -z "$ac_c_werror_flag" ||
  31121. test ! -s conftest.err
  31122. } && test -s conftest$ac_exeext && {
  31123. test "$cross_compiling" = yes ||
  31124. $as_test_x conftest$ac_exeext
  31125. }; then
  31126. PBX_MYSQLCLIENT=1
  31127. cat >>confdefs.h <<\_ACEOF
  31128. #define HAVE_MYSQLCLIENT 1
  31129. _ACEOF
  31130. else
  31131. $as_echo "$as_me: failed program was:" >&5
  31132. sed 's/^/| /' conftest.$ac_ext >&5
  31133. fi
  31134. rm -rf conftest.dSYM
  31135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31136. conftest$ac_exeext conftest.$ac_ext
  31137. CPPFLAGS="${saved_cppflags}"
  31138. LIBS="${saved_libs}"
  31139. else
  31140. PBX_MYSQLCLIENT=1
  31141. cat >>confdefs.h <<\_ACEOF
  31142. #define HAVE_MYSQLCLIENT 1
  31143. _ACEOF
  31144. fi
  31145. fi
  31146. fi
  31147. if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
  31148. pbxlibdir=""
  31149. # if --with-NBS=DIR has been specified, use it.
  31150. if test "x${NBS_DIR}" != "x"; then
  31151. if test -d ${NBS_DIR}/lib; then
  31152. pbxlibdir="-L${NBS_DIR}/lib"
  31153. else
  31154. pbxlibdir="-L${NBS_DIR}"
  31155. fi
  31156. fi
  31157. pbxfuncname="nbs_connect"
  31158. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  31159. AST_NBS_FOUND=yes
  31160. else
  31161. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  31162. CFLAGS="${CFLAGS} "
  31163. as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
  31164. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
  31165. $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
  31166. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  31167. $as_echo_n "(cached) " >&6
  31168. else
  31169. ac_check_lib_save_LIBS=$LIBS
  31170. LIBS="-lnbs ${pbxlibdir} $LIBS"
  31171. cat >conftest.$ac_ext <<_ACEOF
  31172. /* confdefs.h. */
  31173. _ACEOF
  31174. cat confdefs.h >>conftest.$ac_ext
  31175. cat >>conftest.$ac_ext <<_ACEOF
  31176. /* end confdefs.h. */
  31177. /* Override any GCC internal prototype to avoid an error.
  31178. Use char because int might match the return type of a GCC
  31179. builtin and then its argument prototype would still apply. */
  31180. #ifdef __cplusplus
  31181. extern "C"
  31182. #endif
  31183. char ${pbxfuncname} ();
  31184. int
  31185. main ()
  31186. {
  31187. return ${pbxfuncname} ();
  31188. ;
  31189. return 0;
  31190. }
  31191. _ACEOF
  31192. rm -f conftest.$ac_objext conftest$ac_exeext
  31193. if { (ac_try="$ac_link"
  31194. case "(($ac_try" in
  31195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31196. *) ac_try_echo=$ac_try;;
  31197. esac
  31198. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31199. $as_echo "$ac_try_echo") >&5
  31200. (eval "$ac_link") 2>conftest.er1
  31201. ac_status=$?
  31202. grep -v '^ *+' conftest.er1 >conftest.err
  31203. rm -f conftest.er1
  31204. cat conftest.err >&5
  31205. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31206. (exit $ac_status); } && {
  31207. test -z "$ac_c_werror_flag" ||
  31208. test ! -s conftest.err
  31209. } && test -s conftest$ac_exeext && {
  31210. test "$cross_compiling" = yes ||
  31211. $as_test_x conftest$ac_exeext
  31212. }; then
  31213. eval "$as_ac_Lib=yes"
  31214. else
  31215. $as_echo "$as_me: failed program was:" >&5
  31216. sed 's/^/| /' conftest.$ac_ext >&5
  31217. eval "$as_ac_Lib=no"
  31218. fi
  31219. rm -rf conftest.dSYM
  31220. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31221. conftest$ac_exeext conftest.$ac_ext
  31222. LIBS=$ac_check_lib_save_LIBS
  31223. fi
  31224. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  31225. $as_echo "$as_val"'`
  31226. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  31227. $as_echo "$ac_res" >&6; }
  31228. as_val=`eval 'as_val=${'$as_ac_Lib'}
  31229. $as_echo "$as_val"'`
  31230. if test "x$as_val" = x""yes; then
  31231. AST_NBS_FOUND=yes
  31232. else
  31233. AST_NBS_FOUND=no
  31234. fi
  31235. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  31236. fi
  31237. # now check for the header.
  31238. if test "${AST_NBS_FOUND}" = "yes"; then
  31239. NBS_LIB="${pbxlibdir} -lnbs "
  31240. # if --with-NBS=DIR has been specified, use it.
  31241. if test "x${NBS_DIR}" != "x"; then
  31242. NBS_INCLUDE="-I${NBS_DIR}/include"
  31243. fi
  31244. NBS_INCLUDE="${NBS_INCLUDE} "
  31245. if test "xnbs.h" = "x" ; then # no header, assume found
  31246. NBS_HEADER_FOUND="1"
  31247. else # check for the header
  31248. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  31249. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  31250. if test "${ac_cv_header_nbs_h+set}" = set; then
  31251. { $as_echo "$as_me:$LINENO: checking for nbs.h" >&5
  31252. $as_echo_n "checking for nbs.h... " >&6; }
  31253. if test "${ac_cv_header_nbs_h+set}" = set; then
  31254. $as_echo_n "(cached) " >&6
  31255. fi
  31256. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
  31257. $as_echo "$ac_cv_header_nbs_h" >&6; }
  31258. else
  31259. # Is the header compilable?
  31260. { $as_echo "$as_me:$LINENO: checking nbs.h usability" >&5
  31261. $as_echo_n "checking nbs.h usability... " >&6; }
  31262. cat >conftest.$ac_ext <<_ACEOF
  31263. /* confdefs.h. */
  31264. _ACEOF
  31265. cat confdefs.h >>conftest.$ac_ext
  31266. cat >>conftest.$ac_ext <<_ACEOF
  31267. /* end confdefs.h. */
  31268. $ac_includes_default
  31269. #include <nbs.h>
  31270. _ACEOF
  31271. rm -f conftest.$ac_objext
  31272. if { (ac_try="$ac_compile"
  31273. case "(($ac_try" in
  31274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31275. *) ac_try_echo=$ac_try;;
  31276. esac
  31277. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31278. $as_echo "$ac_try_echo") >&5
  31279. (eval "$ac_compile") 2>conftest.er1
  31280. ac_status=$?
  31281. grep -v '^ *+' conftest.er1 >conftest.err
  31282. rm -f conftest.er1
  31283. cat conftest.err >&5
  31284. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31285. (exit $ac_status); } && {
  31286. test -z "$ac_c_werror_flag" ||
  31287. test ! -s conftest.err
  31288. } && test -s conftest.$ac_objext; then
  31289. ac_header_compiler=yes
  31290. else
  31291. $as_echo "$as_me: failed program was:" >&5
  31292. sed 's/^/| /' conftest.$ac_ext >&5
  31293. ac_header_compiler=no
  31294. fi
  31295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31296. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  31297. $as_echo "$ac_header_compiler" >&6; }
  31298. # Is the header present?
  31299. { $as_echo "$as_me:$LINENO: checking nbs.h presence" >&5
  31300. $as_echo_n "checking nbs.h presence... " >&6; }
  31301. cat >conftest.$ac_ext <<_ACEOF
  31302. /* confdefs.h. */
  31303. _ACEOF
  31304. cat confdefs.h >>conftest.$ac_ext
  31305. cat >>conftest.$ac_ext <<_ACEOF
  31306. /* end confdefs.h. */
  31307. #include <nbs.h>
  31308. _ACEOF
  31309. if { (ac_try="$ac_cpp conftest.$ac_ext"
  31310. case "(($ac_try" in
  31311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31312. *) ac_try_echo=$ac_try;;
  31313. esac
  31314. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31315. $as_echo "$ac_try_echo") >&5
  31316. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  31317. ac_status=$?
  31318. grep -v '^ *+' conftest.er1 >conftest.err
  31319. rm -f conftest.er1
  31320. cat conftest.err >&5
  31321. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31322. (exit $ac_status); } >/dev/null && {
  31323. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  31324. test ! -s conftest.err
  31325. }; then
  31326. ac_header_preproc=yes
  31327. else
  31328. $as_echo "$as_me: failed program was:" >&5
  31329. sed 's/^/| /' conftest.$ac_ext >&5
  31330. ac_header_preproc=no
  31331. fi
  31332. rm -f conftest.err conftest.$ac_ext
  31333. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  31334. $as_echo "$ac_header_preproc" >&6; }
  31335. # So? What about this header?
  31336. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  31337. yes:no: )
  31338. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
  31339. $as_echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  31340. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
  31341. $as_echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
  31342. ac_header_preproc=yes
  31343. ;;
  31344. no:yes:* )
  31345. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
  31346. $as_echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
  31347. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
  31348. $as_echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
  31349. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
  31350. $as_echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
  31351. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
  31352. $as_echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
  31353. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
  31354. $as_echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
  31355. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
  31356. $as_echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
  31357. ( cat <<\_ASBOX
  31358. ## ------------------------------------------ ##
  31359. ## Report this to https://issues.asterisk.org ##
  31360. ## ------------------------------------------ ##
  31361. _ASBOX
  31362. ) | sed "s/^/$as_me: WARNING: /" >&2
  31363. ;;
  31364. esac
  31365. { $as_echo "$as_me:$LINENO: checking for nbs.h" >&5
  31366. $as_echo_n "checking for nbs.h... " >&6; }
  31367. if test "${ac_cv_header_nbs_h+set}" = set; then
  31368. $as_echo_n "(cached) " >&6
  31369. else
  31370. ac_cv_header_nbs_h=$ac_header_preproc
  31371. fi
  31372. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
  31373. $as_echo "$ac_cv_header_nbs_h" >&6; }
  31374. fi
  31375. if test "x$ac_cv_header_nbs_h" = x""yes; then
  31376. NBS_HEADER_FOUND=1
  31377. else
  31378. NBS_HEADER_FOUND=0
  31379. fi
  31380. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  31381. fi
  31382. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  31383. NBS_LIB=""
  31384. NBS_INCLUDE=""
  31385. else
  31386. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  31387. NBS_LIB=""
  31388. fi
  31389. PBX_NBS=1
  31390. cat >>confdefs.h <<_ACEOF
  31391. #define HAVE_NBS 1
  31392. _ACEOF
  31393. fi
  31394. fi
  31395. fi
  31396. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  31397. PBX_NEON=0
  31398. if test -n "$ac_tool_prefix"; then
  31399. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  31400. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  31401. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31402. $as_echo_n "checking for $ac_word... " >&6; }
  31403. if test "${ac_cv_path_CONFIG_NEON+set}" = set; then
  31404. $as_echo_n "(cached) " >&6
  31405. else
  31406. case $CONFIG_NEON in
  31407. [\\/]* | ?:[\\/]*)
  31408. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  31409. ;;
  31410. *)
  31411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31412. as_dummy="${NEON_DIR}/bin:$PATH"
  31413. for as_dir in $as_dummy
  31414. do
  31415. IFS=$as_save_IFS
  31416. test -z "$as_dir" && as_dir=.
  31417. for ac_exec_ext in '' $ac_executable_extensions; do
  31418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31419. ac_cv_path_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  31420. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31421. break 2
  31422. fi
  31423. done
  31424. done
  31425. IFS=$as_save_IFS
  31426. ;;
  31427. esac
  31428. fi
  31429. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  31430. if test -n "$CONFIG_NEON"; then
  31431. { $as_echo "$as_me:$LINENO: result: $CONFIG_NEON" >&5
  31432. $as_echo "$CONFIG_NEON" >&6; }
  31433. else
  31434. { $as_echo "$as_me:$LINENO: result: no" >&5
  31435. $as_echo "no" >&6; }
  31436. fi
  31437. fi
  31438. if test -z "$ac_cv_path_CONFIG_NEON"; then
  31439. ac_pt_CONFIG_NEON=$CONFIG_NEON
  31440. # Extract the first word of "neon-config", so it can be a program name with args.
  31441. set dummy neon-config; ac_word=$2
  31442. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31443. $as_echo_n "checking for $ac_word... " >&6; }
  31444. if test "${ac_cv_path_ac_pt_CONFIG_NEON+set}" = set; then
  31445. $as_echo_n "(cached) " >&6
  31446. else
  31447. case $ac_pt_CONFIG_NEON in
  31448. [\\/]* | ?:[\\/]*)
  31449. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  31450. ;;
  31451. *)
  31452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31453. as_dummy="${NEON_DIR}/bin:$PATH"
  31454. for as_dir in $as_dummy
  31455. do
  31456. IFS=$as_save_IFS
  31457. test -z "$as_dir" && as_dir=.
  31458. for ac_exec_ext in '' $ac_executable_extensions; do
  31459. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31460. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  31461. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31462. break 2
  31463. fi
  31464. done
  31465. done
  31466. IFS=$as_save_IFS
  31467. ;;
  31468. esac
  31469. fi
  31470. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  31471. if test -n "$ac_pt_CONFIG_NEON"; then
  31472. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_NEON" >&5
  31473. $as_echo "$ac_pt_CONFIG_NEON" >&6; }
  31474. else
  31475. { $as_echo "$as_me:$LINENO: result: no" >&5
  31476. $as_echo "no" >&6; }
  31477. fi
  31478. if test "x$ac_pt_CONFIG_NEON" = x; then
  31479. CONFIG_NEON="No"
  31480. else
  31481. case $cross_compiling:$ac_tool_warned in
  31482. yes:)
  31483. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  31484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31485. ac_tool_warned=yes ;;
  31486. esac
  31487. CONFIG_NEON=$ac_pt_CONFIG_NEON
  31488. fi
  31489. else
  31490. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  31491. fi
  31492. if test ! "x${CONFIG_NEON}" = xNo; then
  31493. if test x"" = x ; then A=--cflags ; else A="" ; fi
  31494. NEON_INCLUDE=$(${CONFIG_NEON} $A)
  31495. if test x"" = x ; then A=--libs ; else A="" ; fi
  31496. NEON_LIB=$(${CONFIG_NEON} $A)
  31497. if test x"" != x ; then
  31498. saved_cppflags="${CPPFLAGS}"
  31499. if test "x${NEON_DIR}" != "x"; then
  31500. NEON_INCLUDE="-I${NEON_DIR}/include"
  31501. fi
  31502. CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
  31503. saved_libs="${LIBS}"
  31504. LIBS="${NEON_LIB}"
  31505. cat >conftest.$ac_ext <<_ACEOF
  31506. /* confdefs.h. */
  31507. _ACEOF
  31508. cat confdefs.h >>conftest.$ac_ext
  31509. cat >>conftest.$ac_ext <<_ACEOF
  31510. /* end confdefs.h. */
  31511. int
  31512. main ()
  31513. {
  31514. ;
  31515. ;
  31516. return 0;
  31517. }
  31518. _ACEOF
  31519. rm -f conftest.$ac_objext conftest$ac_exeext
  31520. if { (ac_try="$ac_link"
  31521. case "(($ac_try" in
  31522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31523. *) ac_try_echo=$ac_try;;
  31524. esac
  31525. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31526. $as_echo "$ac_try_echo") >&5
  31527. (eval "$ac_link") 2>conftest.er1
  31528. ac_status=$?
  31529. grep -v '^ *+' conftest.er1 >conftest.err
  31530. rm -f conftest.er1
  31531. cat conftest.err >&5
  31532. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31533. (exit $ac_status); } && {
  31534. test -z "$ac_c_werror_flag" ||
  31535. test ! -s conftest.err
  31536. } && test -s conftest$ac_exeext && {
  31537. test "$cross_compiling" = yes ||
  31538. $as_test_x conftest$ac_exeext
  31539. }; then
  31540. PBX_NEON=1
  31541. cat >>confdefs.h <<\_ACEOF
  31542. #define HAVE_NEON 1
  31543. _ACEOF
  31544. else
  31545. $as_echo "$as_me: failed program was:" >&5
  31546. sed 's/^/| /' conftest.$ac_ext >&5
  31547. fi
  31548. rm -rf conftest.dSYM
  31549. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31550. conftest$ac_exeext conftest.$ac_ext
  31551. CPPFLAGS="${saved_cppflags}"
  31552. LIBS="${saved_libs}"
  31553. else
  31554. PBX_NEON=1
  31555. cat >>confdefs.h <<\_ACEOF
  31556. #define HAVE_NEON 1
  31557. _ACEOF
  31558. fi
  31559. fi
  31560. fi
  31561. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  31562. PBX_NEON29=0
  31563. if test -n "$ac_tool_prefix"; then
  31564. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  31565. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  31566. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31567. $as_echo_n "checking for $ac_word... " >&6; }
  31568. if test "${ac_cv_path_CONFIG_NEON29+set}" = set; then
  31569. $as_echo_n "(cached) " >&6
  31570. else
  31571. case $CONFIG_NEON29 in
  31572. [\\/]* | ?:[\\/]*)
  31573. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  31574. ;;
  31575. *)
  31576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31577. as_dummy="${NEON29_DIR}/bin:$PATH"
  31578. for as_dir in $as_dummy
  31579. do
  31580. IFS=$as_save_IFS
  31581. test -z "$as_dir" && as_dir=.
  31582. for ac_exec_ext in '' $ac_executable_extensions; do
  31583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31584. ac_cv_path_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  31585. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31586. break 2
  31587. fi
  31588. done
  31589. done
  31590. IFS=$as_save_IFS
  31591. ;;
  31592. esac
  31593. fi
  31594. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  31595. if test -n "$CONFIG_NEON29"; then
  31596. { $as_echo "$as_me:$LINENO: result: $CONFIG_NEON29" >&5
  31597. $as_echo "$CONFIG_NEON29" >&6; }
  31598. else
  31599. { $as_echo "$as_me:$LINENO: result: no" >&5
  31600. $as_echo "no" >&6; }
  31601. fi
  31602. fi
  31603. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  31604. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  31605. # Extract the first word of "neon-config", so it can be a program name with args.
  31606. set dummy neon-config; ac_word=$2
  31607. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31608. $as_echo_n "checking for $ac_word... " >&6; }
  31609. if test "${ac_cv_path_ac_pt_CONFIG_NEON29+set}" = set; then
  31610. $as_echo_n "(cached) " >&6
  31611. else
  31612. case $ac_pt_CONFIG_NEON29 in
  31613. [\\/]* | ?:[\\/]*)
  31614. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  31615. ;;
  31616. *)
  31617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31618. as_dummy="${NEON29_DIR}/bin:$PATH"
  31619. for as_dir in $as_dummy
  31620. do
  31621. IFS=$as_save_IFS
  31622. test -z "$as_dir" && as_dir=.
  31623. for ac_exec_ext in '' $ac_executable_extensions; do
  31624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31625. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  31626. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31627. break 2
  31628. fi
  31629. done
  31630. done
  31631. IFS=$as_save_IFS
  31632. ;;
  31633. esac
  31634. fi
  31635. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  31636. if test -n "$ac_pt_CONFIG_NEON29"; then
  31637. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_NEON29" >&5
  31638. $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
  31639. else
  31640. { $as_echo "$as_me:$LINENO: result: no" >&5
  31641. $as_echo "no" >&6; }
  31642. fi
  31643. if test "x$ac_pt_CONFIG_NEON29" = x; then
  31644. CONFIG_NEON29="No"
  31645. else
  31646. case $cross_compiling:$ac_tool_warned in
  31647. yes:)
  31648. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  31649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31650. ac_tool_warned=yes ;;
  31651. esac
  31652. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  31653. fi
  31654. else
  31655. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  31656. fi
  31657. if test ! "x${CONFIG_NEON29}" = xNo; then
  31658. if test x"" = x ; then A=--cflags ; else A="" ; fi
  31659. NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
  31660. if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
  31661. NEON29_LIB=$(${CONFIG_NEON29} $A)
  31662. if test x"#include <ne_auth.h>" != x ; then
  31663. saved_cppflags="${CPPFLAGS}"
  31664. if test "x${NEON29_DIR}" != "x"; then
  31665. NEON29_INCLUDE="-I${NEON29_DIR}/include"
  31666. fi
  31667. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  31668. saved_libs="${LIBS}"
  31669. LIBS="${NEON29_LIB}"
  31670. cat >conftest.$ac_ext <<_ACEOF
  31671. /* confdefs.h. */
  31672. _ACEOF
  31673. cat confdefs.h >>conftest.$ac_ext
  31674. cat >>conftest.$ac_ext <<_ACEOF
  31675. /* end confdefs.h. */
  31676. #include <ne_auth.h>
  31677. int
  31678. main ()
  31679. {
  31680. #ifndef NE_AUTH_NTLM
  31681. #error Need libneon >= 0.29.0
  31682. #endif;
  31683. ;
  31684. return 0;
  31685. }
  31686. _ACEOF
  31687. rm -f conftest.$ac_objext conftest$ac_exeext
  31688. if { (ac_try="$ac_link"
  31689. case "(($ac_try" in
  31690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31691. *) ac_try_echo=$ac_try;;
  31692. esac
  31693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31694. $as_echo "$ac_try_echo") >&5
  31695. (eval "$ac_link") 2>conftest.er1
  31696. ac_status=$?
  31697. grep -v '^ *+' conftest.er1 >conftest.err
  31698. rm -f conftest.er1
  31699. cat conftest.err >&5
  31700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31701. (exit $ac_status); } && {
  31702. test -z "$ac_c_werror_flag" ||
  31703. test ! -s conftest.err
  31704. } && test -s conftest$ac_exeext && {
  31705. test "$cross_compiling" = yes ||
  31706. $as_test_x conftest$ac_exeext
  31707. }; then
  31708. PBX_NEON29=1
  31709. cat >>confdefs.h <<\_ACEOF
  31710. #define HAVE_NEON29 1
  31711. _ACEOF
  31712. else
  31713. $as_echo "$as_me: failed program was:" >&5
  31714. sed 's/^/| /' conftest.$ac_ext >&5
  31715. fi
  31716. rm -rf conftest.dSYM
  31717. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31718. conftest$ac_exeext conftest.$ac_ext
  31719. CPPFLAGS="${saved_cppflags}"
  31720. LIBS="${saved_libs}"
  31721. else
  31722. PBX_NEON29=1
  31723. cat >>confdefs.h <<\_ACEOF
  31724. #define HAVE_NEON29 1
  31725. _ACEOF
  31726. fi
  31727. fi
  31728. fi
  31729. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  31730. PBX_NETSNMP=0
  31731. if test -n "$ac_tool_prefix"; then
  31732. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  31733. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  31734. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31735. $as_echo_n "checking for $ac_word... " >&6; }
  31736. if test "${ac_cv_path_CONFIG_NETSNMP+set}" = set; then
  31737. $as_echo_n "(cached) " >&6
  31738. else
  31739. case $CONFIG_NETSNMP in
  31740. [\\/]* | ?:[\\/]*)
  31741. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  31742. ;;
  31743. *)
  31744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31745. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  31746. for as_dir in $as_dummy
  31747. do
  31748. IFS=$as_save_IFS
  31749. test -z "$as_dir" && as_dir=.
  31750. for ac_exec_ext in '' $ac_executable_extensions; do
  31751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31752. ac_cv_path_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  31753. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31754. break 2
  31755. fi
  31756. done
  31757. done
  31758. IFS=$as_save_IFS
  31759. ;;
  31760. esac
  31761. fi
  31762. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  31763. if test -n "$CONFIG_NETSNMP"; then
  31764. { $as_echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
  31765. $as_echo "$CONFIG_NETSNMP" >&6; }
  31766. else
  31767. { $as_echo "$as_me:$LINENO: result: no" >&5
  31768. $as_echo "no" >&6; }
  31769. fi
  31770. fi
  31771. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  31772. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  31773. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  31774. set dummy net-snmp-config; ac_word=$2
  31775. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31776. $as_echo_n "checking for $ac_word... " >&6; }
  31777. if test "${ac_cv_path_ac_pt_CONFIG_NETSNMP+set}" = set; then
  31778. $as_echo_n "(cached) " >&6
  31779. else
  31780. case $ac_pt_CONFIG_NETSNMP in
  31781. [\\/]* | ?:[\\/]*)
  31782. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  31783. ;;
  31784. *)
  31785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31786. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  31787. for as_dir in $as_dummy
  31788. do
  31789. IFS=$as_save_IFS
  31790. test -z "$as_dir" && as_dir=.
  31791. for ac_exec_ext in '' $ac_executable_extensions; do
  31792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31793. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  31794. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31795. break 2
  31796. fi
  31797. done
  31798. done
  31799. IFS=$as_save_IFS
  31800. ;;
  31801. esac
  31802. fi
  31803. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  31804. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  31805. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_NETSNMP" >&5
  31806. $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
  31807. else
  31808. { $as_echo "$as_me:$LINENO: result: no" >&5
  31809. $as_echo "no" >&6; }
  31810. fi
  31811. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  31812. CONFIG_NETSNMP="No"
  31813. else
  31814. case $cross_compiling:$ac_tool_warned in
  31815. yes:)
  31816. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  31817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31818. ac_tool_warned=yes ;;
  31819. esac
  31820. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  31821. fi
  31822. else
  31823. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  31824. fi
  31825. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  31826. if test x"" = x ; then A=--cflags ; else A="" ; fi
  31827. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
  31828. if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
  31829. NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
  31830. if test x"#include <net-snmp/net-snmp-config.h>
  31831. #include <net-snmp/net-snmp-includes.h>
  31832. #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
  31833. saved_cppflags="${CPPFLAGS}"
  31834. if test "x${NETSNMP_DIR}" != "x"; then
  31835. NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
  31836. fi
  31837. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  31838. saved_libs="${LIBS}"
  31839. LIBS="${NETSNMP_LIB}"
  31840. cat >conftest.$ac_ext <<_ACEOF
  31841. /* confdefs.h. */
  31842. _ACEOF
  31843. cat confdefs.h >>conftest.$ac_ext
  31844. cat >>conftest.$ac_ext <<_ACEOF
  31845. /* end confdefs.h. */
  31846. #include <net-snmp/net-snmp-config.h>
  31847. #include <net-snmp/net-snmp-includes.h>
  31848. #include <net-snmp/agent/net-snmp-agent-includes.h>
  31849. int
  31850. main ()
  31851. {
  31852. int callback = snmp_register_callback(0, 0, NULL, NULL);
  31853. ;
  31854. return 0;
  31855. }
  31856. _ACEOF
  31857. rm -f conftest.$ac_objext conftest$ac_exeext
  31858. if { (ac_try="$ac_link"
  31859. case "(($ac_try" in
  31860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31861. *) ac_try_echo=$ac_try;;
  31862. esac
  31863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31864. $as_echo "$ac_try_echo") >&5
  31865. (eval "$ac_link") 2>conftest.er1
  31866. ac_status=$?
  31867. grep -v '^ *+' conftest.er1 >conftest.err
  31868. rm -f conftest.er1
  31869. cat conftest.err >&5
  31870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31871. (exit $ac_status); } && {
  31872. test -z "$ac_c_werror_flag" ||
  31873. test ! -s conftest.err
  31874. } && test -s conftest$ac_exeext && {
  31875. test "$cross_compiling" = yes ||
  31876. $as_test_x conftest$ac_exeext
  31877. }; then
  31878. PBX_NETSNMP=1
  31879. cat >>confdefs.h <<\_ACEOF
  31880. #define HAVE_NETSNMP 1
  31881. _ACEOF
  31882. else
  31883. $as_echo "$as_me: failed program was:" >&5
  31884. sed 's/^/| /' conftest.$ac_ext >&5
  31885. fi
  31886. rm -rf conftest.dSYM
  31887. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31888. conftest$ac_exeext conftest.$ac_ext
  31889. CPPFLAGS="${saved_cppflags}"
  31890. LIBS="${saved_libs}"
  31891. else
  31892. PBX_NETSNMP=1
  31893. cat >>confdefs.h <<\_ACEOF
  31894. #define HAVE_NETSNMP 1
  31895. _ACEOF
  31896. fi
  31897. fi
  31898. fi
  31899. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  31900. pbxlibdir=""
  31901. # if --with-NEWT=DIR has been specified, use it.
  31902. if test "x${NEWT_DIR}" != "x"; then
  31903. if test -d ${NEWT_DIR}/lib; then
  31904. pbxlibdir="-L${NEWT_DIR}/lib"
  31905. else
  31906. pbxlibdir="-L${NEWT_DIR}"
  31907. fi
  31908. fi
  31909. pbxfuncname="newtBell"
  31910. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  31911. AST_NEWT_FOUND=yes
  31912. else
  31913. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  31914. CFLAGS="${CFLAGS} "
  31915. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  31916. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
  31917. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  31918. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  31919. $as_echo_n "(cached) " >&6
  31920. else
  31921. ac_check_lib_save_LIBS=$LIBS
  31922. LIBS="-lnewt ${pbxlibdir} $LIBS"
  31923. cat >conftest.$ac_ext <<_ACEOF
  31924. /* confdefs.h. */
  31925. _ACEOF
  31926. cat confdefs.h >>conftest.$ac_ext
  31927. cat >>conftest.$ac_ext <<_ACEOF
  31928. /* end confdefs.h. */
  31929. /* Override any GCC internal prototype to avoid an error.
  31930. Use char because int might match the return type of a GCC
  31931. builtin and then its argument prototype would still apply. */
  31932. #ifdef __cplusplus
  31933. extern "C"
  31934. #endif
  31935. char ${pbxfuncname} ();
  31936. int
  31937. main ()
  31938. {
  31939. return ${pbxfuncname} ();
  31940. ;
  31941. return 0;
  31942. }
  31943. _ACEOF
  31944. rm -f conftest.$ac_objext conftest$ac_exeext
  31945. if { (ac_try="$ac_link"
  31946. case "(($ac_try" in
  31947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31948. *) ac_try_echo=$ac_try;;
  31949. esac
  31950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31951. $as_echo "$ac_try_echo") >&5
  31952. (eval "$ac_link") 2>conftest.er1
  31953. ac_status=$?
  31954. grep -v '^ *+' conftest.er1 >conftest.err
  31955. rm -f conftest.er1
  31956. cat conftest.err >&5
  31957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31958. (exit $ac_status); } && {
  31959. test -z "$ac_c_werror_flag" ||
  31960. test ! -s conftest.err
  31961. } && test -s conftest$ac_exeext && {
  31962. test "$cross_compiling" = yes ||
  31963. $as_test_x conftest$ac_exeext
  31964. }; then
  31965. eval "$as_ac_Lib=yes"
  31966. else
  31967. $as_echo "$as_me: failed program was:" >&5
  31968. sed 's/^/| /' conftest.$ac_ext >&5
  31969. eval "$as_ac_Lib=no"
  31970. fi
  31971. rm -rf conftest.dSYM
  31972. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31973. conftest$ac_exeext conftest.$ac_ext
  31974. LIBS=$ac_check_lib_save_LIBS
  31975. fi
  31976. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  31977. $as_echo "$as_val"'`
  31978. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  31979. $as_echo "$ac_res" >&6; }
  31980. as_val=`eval 'as_val=${'$as_ac_Lib'}
  31981. $as_echo "$as_val"'`
  31982. if test "x$as_val" = x""yes; then
  31983. AST_NEWT_FOUND=yes
  31984. else
  31985. AST_NEWT_FOUND=no
  31986. fi
  31987. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  31988. fi
  31989. # now check for the header.
  31990. if test "${AST_NEWT_FOUND}" = "yes"; then
  31991. NEWT_LIB="${pbxlibdir} -lnewt "
  31992. # if --with-NEWT=DIR has been specified, use it.
  31993. if test "x${NEWT_DIR}" != "x"; then
  31994. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  31995. fi
  31996. NEWT_INCLUDE="${NEWT_INCLUDE} "
  31997. if test "xnewt.h" = "x" ; then # no header, assume found
  31998. NEWT_HEADER_FOUND="1"
  31999. else # check for the header
  32000. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32001. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  32002. if test "${ac_cv_header_newt_h+set}" = set; then
  32003. { $as_echo "$as_me:$LINENO: checking for newt.h" >&5
  32004. $as_echo_n "checking for newt.h... " >&6; }
  32005. if test "${ac_cv_header_newt_h+set}" = set; then
  32006. $as_echo_n "(cached) " >&6
  32007. fi
  32008. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
  32009. $as_echo "$ac_cv_header_newt_h" >&6; }
  32010. else
  32011. # Is the header compilable?
  32012. { $as_echo "$as_me:$LINENO: checking newt.h usability" >&5
  32013. $as_echo_n "checking newt.h usability... " >&6; }
  32014. cat >conftest.$ac_ext <<_ACEOF
  32015. /* confdefs.h. */
  32016. _ACEOF
  32017. cat confdefs.h >>conftest.$ac_ext
  32018. cat >>conftest.$ac_ext <<_ACEOF
  32019. /* end confdefs.h. */
  32020. $ac_includes_default
  32021. #include <newt.h>
  32022. _ACEOF
  32023. rm -f conftest.$ac_objext
  32024. if { (ac_try="$ac_compile"
  32025. case "(($ac_try" in
  32026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32027. *) ac_try_echo=$ac_try;;
  32028. esac
  32029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32030. $as_echo "$ac_try_echo") >&5
  32031. (eval "$ac_compile") 2>conftest.er1
  32032. ac_status=$?
  32033. grep -v '^ *+' conftest.er1 >conftest.err
  32034. rm -f conftest.er1
  32035. cat conftest.err >&5
  32036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32037. (exit $ac_status); } && {
  32038. test -z "$ac_c_werror_flag" ||
  32039. test ! -s conftest.err
  32040. } && test -s conftest.$ac_objext; then
  32041. ac_header_compiler=yes
  32042. else
  32043. $as_echo "$as_me: failed program was:" >&5
  32044. sed 's/^/| /' conftest.$ac_ext >&5
  32045. ac_header_compiler=no
  32046. fi
  32047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32048. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32049. $as_echo "$ac_header_compiler" >&6; }
  32050. # Is the header present?
  32051. { $as_echo "$as_me:$LINENO: checking newt.h presence" >&5
  32052. $as_echo_n "checking newt.h presence... " >&6; }
  32053. cat >conftest.$ac_ext <<_ACEOF
  32054. /* confdefs.h. */
  32055. _ACEOF
  32056. cat confdefs.h >>conftest.$ac_ext
  32057. cat >>conftest.$ac_ext <<_ACEOF
  32058. /* end confdefs.h. */
  32059. #include <newt.h>
  32060. _ACEOF
  32061. if { (ac_try="$ac_cpp conftest.$ac_ext"
  32062. case "(($ac_try" in
  32063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32064. *) ac_try_echo=$ac_try;;
  32065. esac
  32066. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32067. $as_echo "$ac_try_echo") >&5
  32068. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32069. ac_status=$?
  32070. grep -v '^ *+' conftest.er1 >conftest.err
  32071. rm -f conftest.er1
  32072. cat conftest.err >&5
  32073. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32074. (exit $ac_status); } >/dev/null && {
  32075. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32076. test ! -s conftest.err
  32077. }; then
  32078. ac_header_preproc=yes
  32079. else
  32080. $as_echo "$as_me: failed program was:" >&5
  32081. sed 's/^/| /' conftest.$ac_ext >&5
  32082. ac_header_preproc=no
  32083. fi
  32084. rm -f conftest.err conftest.$ac_ext
  32085. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32086. $as_echo "$ac_header_preproc" >&6; }
  32087. # So? What about this header?
  32088. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32089. yes:no: )
  32090. { $as_echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32091. $as_echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32092. { $as_echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
  32093. $as_echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
  32094. ac_header_preproc=yes
  32095. ;;
  32096. no:yes:* )
  32097. { $as_echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
  32098. $as_echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
  32099. { $as_echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
  32100. $as_echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
  32101. { $as_echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
  32102. $as_echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
  32103. { $as_echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
  32104. $as_echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
  32105. { $as_echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
  32106. $as_echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
  32107. { $as_echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
  32108. $as_echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
  32109. ( cat <<\_ASBOX
  32110. ## ------------------------------------------ ##
  32111. ## Report this to https://issues.asterisk.org ##
  32112. ## ------------------------------------------ ##
  32113. _ASBOX
  32114. ) | sed "s/^/$as_me: WARNING: /" >&2
  32115. ;;
  32116. esac
  32117. { $as_echo "$as_me:$LINENO: checking for newt.h" >&5
  32118. $as_echo_n "checking for newt.h... " >&6; }
  32119. if test "${ac_cv_header_newt_h+set}" = set; then
  32120. $as_echo_n "(cached) " >&6
  32121. else
  32122. ac_cv_header_newt_h=$ac_header_preproc
  32123. fi
  32124. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
  32125. $as_echo "$ac_cv_header_newt_h" >&6; }
  32126. fi
  32127. if test "x$ac_cv_header_newt_h" = x""yes; then
  32128. NEWT_HEADER_FOUND=1
  32129. else
  32130. NEWT_HEADER_FOUND=0
  32131. fi
  32132. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  32133. fi
  32134. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  32135. NEWT_LIB=""
  32136. NEWT_INCLUDE=""
  32137. else
  32138. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  32139. NEWT_LIB=""
  32140. fi
  32141. PBX_NEWT=1
  32142. cat >>confdefs.h <<_ACEOF
  32143. #define HAVE_NEWT 1
  32144. _ACEOF
  32145. fi
  32146. fi
  32147. fi
  32148. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  32149. pbxlibdir=""
  32150. # if --with-UNIXODBC=DIR has been specified, use it.
  32151. if test "x${UNIXODBC_DIR}" != "x"; then
  32152. if test -d ${UNIXODBC_DIR}/lib; then
  32153. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  32154. else
  32155. pbxlibdir="-L${UNIXODBC_DIR}"
  32156. fi
  32157. fi
  32158. pbxfuncname="SQLConnect"
  32159. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  32160. AST_UNIXODBC_FOUND=yes
  32161. else
  32162. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  32163. CFLAGS="${CFLAGS} "
  32164. as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
  32165. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
  32166. $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
  32167. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  32168. $as_echo_n "(cached) " >&6
  32169. else
  32170. ac_check_lib_save_LIBS=$LIBS
  32171. LIBS="-lodbc ${pbxlibdir} $LIBS"
  32172. cat >conftest.$ac_ext <<_ACEOF
  32173. /* confdefs.h. */
  32174. _ACEOF
  32175. cat confdefs.h >>conftest.$ac_ext
  32176. cat >>conftest.$ac_ext <<_ACEOF
  32177. /* end confdefs.h. */
  32178. /* Override any GCC internal prototype to avoid an error.
  32179. Use char because int might match the return type of a GCC
  32180. builtin and then its argument prototype would still apply. */
  32181. #ifdef __cplusplus
  32182. extern "C"
  32183. #endif
  32184. char ${pbxfuncname} ();
  32185. int
  32186. main ()
  32187. {
  32188. return ${pbxfuncname} ();
  32189. ;
  32190. return 0;
  32191. }
  32192. _ACEOF
  32193. rm -f conftest.$ac_objext conftest$ac_exeext
  32194. if { (ac_try="$ac_link"
  32195. case "(($ac_try" in
  32196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32197. *) ac_try_echo=$ac_try;;
  32198. esac
  32199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32200. $as_echo "$ac_try_echo") >&5
  32201. (eval "$ac_link") 2>conftest.er1
  32202. ac_status=$?
  32203. grep -v '^ *+' conftest.er1 >conftest.err
  32204. rm -f conftest.er1
  32205. cat conftest.err >&5
  32206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32207. (exit $ac_status); } && {
  32208. test -z "$ac_c_werror_flag" ||
  32209. test ! -s conftest.err
  32210. } && test -s conftest$ac_exeext && {
  32211. test "$cross_compiling" = yes ||
  32212. $as_test_x conftest$ac_exeext
  32213. }; then
  32214. eval "$as_ac_Lib=yes"
  32215. else
  32216. $as_echo "$as_me: failed program was:" >&5
  32217. sed 's/^/| /' conftest.$ac_ext >&5
  32218. eval "$as_ac_Lib=no"
  32219. fi
  32220. rm -rf conftest.dSYM
  32221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32222. conftest$ac_exeext conftest.$ac_ext
  32223. LIBS=$ac_check_lib_save_LIBS
  32224. fi
  32225. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  32226. $as_echo "$as_val"'`
  32227. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32228. $as_echo "$ac_res" >&6; }
  32229. as_val=`eval 'as_val=${'$as_ac_Lib'}
  32230. $as_echo "$as_val"'`
  32231. if test "x$as_val" = x""yes; then
  32232. AST_UNIXODBC_FOUND=yes
  32233. else
  32234. AST_UNIXODBC_FOUND=no
  32235. fi
  32236. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  32237. fi
  32238. # now check for the header.
  32239. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  32240. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  32241. # if --with-UNIXODBC=DIR has been specified, use it.
  32242. if test "x${UNIXODBC_DIR}" != "x"; then
  32243. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  32244. fi
  32245. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  32246. if test "xsql.h" = "x" ; then # no header, assume found
  32247. UNIXODBC_HEADER_FOUND="1"
  32248. else # check for the header
  32249. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32250. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  32251. if test "${ac_cv_header_sql_h+set}" = set; then
  32252. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  32253. $as_echo_n "checking for sql.h... " >&6; }
  32254. if test "${ac_cv_header_sql_h+set}" = set; then
  32255. $as_echo_n "(cached) " >&6
  32256. fi
  32257. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  32258. $as_echo "$ac_cv_header_sql_h" >&6; }
  32259. else
  32260. # Is the header compilable?
  32261. { $as_echo "$as_me:$LINENO: checking sql.h usability" >&5
  32262. $as_echo_n "checking sql.h usability... " >&6; }
  32263. cat >conftest.$ac_ext <<_ACEOF
  32264. /* confdefs.h. */
  32265. _ACEOF
  32266. cat confdefs.h >>conftest.$ac_ext
  32267. cat >>conftest.$ac_ext <<_ACEOF
  32268. /* end confdefs.h. */
  32269. $ac_includes_default
  32270. #include <sql.h>
  32271. _ACEOF
  32272. rm -f conftest.$ac_objext
  32273. if { (ac_try="$ac_compile"
  32274. case "(($ac_try" in
  32275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32276. *) ac_try_echo=$ac_try;;
  32277. esac
  32278. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32279. $as_echo "$ac_try_echo") >&5
  32280. (eval "$ac_compile") 2>conftest.er1
  32281. ac_status=$?
  32282. grep -v '^ *+' conftest.er1 >conftest.err
  32283. rm -f conftest.er1
  32284. cat conftest.err >&5
  32285. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32286. (exit $ac_status); } && {
  32287. test -z "$ac_c_werror_flag" ||
  32288. test ! -s conftest.err
  32289. } && test -s conftest.$ac_objext; then
  32290. ac_header_compiler=yes
  32291. else
  32292. $as_echo "$as_me: failed program was:" >&5
  32293. sed 's/^/| /' conftest.$ac_ext >&5
  32294. ac_header_compiler=no
  32295. fi
  32296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32297. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32298. $as_echo "$ac_header_compiler" >&6; }
  32299. # Is the header present?
  32300. { $as_echo "$as_me:$LINENO: checking sql.h presence" >&5
  32301. $as_echo_n "checking sql.h presence... " >&6; }
  32302. cat >conftest.$ac_ext <<_ACEOF
  32303. /* confdefs.h. */
  32304. _ACEOF
  32305. cat confdefs.h >>conftest.$ac_ext
  32306. cat >>conftest.$ac_ext <<_ACEOF
  32307. /* end confdefs.h. */
  32308. #include <sql.h>
  32309. _ACEOF
  32310. if { (ac_try="$ac_cpp conftest.$ac_ext"
  32311. case "(($ac_try" in
  32312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32313. *) ac_try_echo=$ac_try;;
  32314. esac
  32315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32316. $as_echo "$ac_try_echo") >&5
  32317. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32318. ac_status=$?
  32319. grep -v '^ *+' conftest.er1 >conftest.err
  32320. rm -f conftest.er1
  32321. cat conftest.err >&5
  32322. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32323. (exit $ac_status); } >/dev/null && {
  32324. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32325. test ! -s conftest.err
  32326. }; then
  32327. ac_header_preproc=yes
  32328. else
  32329. $as_echo "$as_me: failed program was:" >&5
  32330. sed 's/^/| /' conftest.$ac_ext >&5
  32331. ac_header_preproc=no
  32332. fi
  32333. rm -f conftest.err conftest.$ac_ext
  32334. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32335. $as_echo "$ac_header_preproc" >&6; }
  32336. # So? What about this header?
  32337. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32338. yes:no: )
  32339. { $as_echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32340. $as_echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32341. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
  32342. $as_echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
  32343. ac_header_preproc=yes
  32344. ;;
  32345. no:yes:* )
  32346. { $as_echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
  32347. $as_echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
  32348. { $as_echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
  32349. $as_echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
  32350. { $as_echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
  32351. $as_echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
  32352. { $as_echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
  32353. $as_echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
  32354. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
  32355. $as_echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
  32356. { $as_echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
  32357. $as_echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
  32358. ( cat <<\_ASBOX
  32359. ## ------------------------------------------ ##
  32360. ## Report this to https://issues.asterisk.org ##
  32361. ## ------------------------------------------ ##
  32362. _ASBOX
  32363. ) | sed "s/^/$as_me: WARNING: /" >&2
  32364. ;;
  32365. esac
  32366. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  32367. $as_echo_n "checking for sql.h... " >&6; }
  32368. if test "${ac_cv_header_sql_h+set}" = set; then
  32369. $as_echo_n "(cached) " >&6
  32370. else
  32371. ac_cv_header_sql_h=$ac_header_preproc
  32372. fi
  32373. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  32374. $as_echo "$ac_cv_header_sql_h" >&6; }
  32375. fi
  32376. if test "x$ac_cv_header_sql_h" = x""yes; then
  32377. UNIXODBC_HEADER_FOUND=1
  32378. else
  32379. UNIXODBC_HEADER_FOUND=0
  32380. fi
  32381. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  32382. fi
  32383. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  32384. UNIXODBC_LIB=""
  32385. UNIXODBC_INCLUDE=""
  32386. else
  32387. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  32388. UNIXODBC_LIB=""
  32389. fi
  32390. PBX_UNIXODBC=1
  32391. cat >>confdefs.h <<_ACEOF
  32392. #define HAVE_UNIXODBC 1
  32393. _ACEOF
  32394. fi
  32395. fi
  32396. fi
  32397. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  32398. pbxlibdir=""
  32399. # if --with-OGG=DIR has been specified, use it.
  32400. if test "x${OGG_DIR}" != "x"; then
  32401. if test -d ${OGG_DIR}/lib; then
  32402. pbxlibdir="-L${OGG_DIR}/lib"
  32403. else
  32404. pbxlibdir="-L${OGG_DIR}"
  32405. fi
  32406. fi
  32407. pbxfuncname="ogg_sync_init"
  32408. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  32409. AST_OGG_FOUND=yes
  32410. else
  32411. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  32412. CFLAGS="${CFLAGS} "
  32413. as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
  32414. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
  32415. $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
  32416. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  32417. $as_echo_n "(cached) " >&6
  32418. else
  32419. ac_check_lib_save_LIBS=$LIBS
  32420. LIBS="-logg ${pbxlibdir} $LIBS"
  32421. cat >conftest.$ac_ext <<_ACEOF
  32422. /* confdefs.h. */
  32423. _ACEOF
  32424. cat confdefs.h >>conftest.$ac_ext
  32425. cat >>conftest.$ac_ext <<_ACEOF
  32426. /* end confdefs.h. */
  32427. /* Override any GCC internal prototype to avoid an error.
  32428. Use char because int might match the return type of a GCC
  32429. builtin and then its argument prototype would still apply. */
  32430. #ifdef __cplusplus
  32431. extern "C"
  32432. #endif
  32433. char ${pbxfuncname} ();
  32434. int
  32435. main ()
  32436. {
  32437. return ${pbxfuncname} ();
  32438. ;
  32439. return 0;
  32440. }
  32441. _ACEOF
  32442. rm -f conftest.$ac_objext conftest$ac_exeext
  32443. if { (ac_try="$ac_link"
  32444. case "(($ac_try" in
  32445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32446. *) ac_try_echo=$ac_try;;
  32447. esac
  32448. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32449. $as_echo "$ac_try_echo") >&5
  32450. (eval "$ac_link") 2>conftest.er1
  32451. ac_status=$?
  32452. grep -v '^ *+' conftest.er1 >conftest.err
  32453. rm -f conftest.er1
  32454. cat conftest.err >&5
  32455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32456. (exit $ac_status); } && {
  32457. test -z "$ac_c_werror_flag" ||
  32458. test ! -s conftest.err
  32459. } && test -s conftest$ac_exeext && {
  32460. test "$cross_compiling" = yes ||
  32461. $as_test_x conftest$ac_exeext
  32462. }; then
  32463. eval "$as_ac_Lib=yes"
  32464. else
  32465. $as_echo "$as_me: failed program was:" >&5
  32466. sed 's/^/| /' conftest.$ac_ext >&5
  32467. eval "$as_ac_Lib=no"
  32468. fi
  32469. rm -rf conftest.dSYM
  32470. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32471. conftest$ac_exeext conftest.$ac_ext
  32472. LIBS=$ac_check_lib_save_LIBS
  32473. fi
  32474. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  32475. $as_echo "$as_val"'`
  32476. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32477. $as_echo "$ac_res" >&6; }
  32478. as_val=`eval 'as_val=${'$as_ac_Lib'}
  32479. $as_echo "$as_val"'`
  32480. if test "x$as_val" = x""yes; then
  32481. AST_OGG_FOUND=yes
  32482. else
  32483. AST_OGG_FOUND=no
  32484. fi
  32485. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  32486. fi
  32487. # now check for the header.
  32488. if test "${AST_OGG_FOUND}" = "yes"; then
  32489. OGG_LIB="${pbxlibdir} -logg "
  32490. # if --with-OGG=DIR has been specified, use it.
  32491. if test "x${OGG_DIR}" != "x"; then
  32492. OGG_INCLUDE="-I${OGG_DIR}/include"
  32493. fi
  32494. OGG_INCLUDE="${OGG_INCLUDE} "
  32495. if test "x" = "x" ; then # no header, assume found
  32496. OGG_HEADER_FOUND="1"
  32497. else # check for the header
  32498. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32499. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  32500. if test "${ac_cv_header_+set}" = set; then
  32501. { $as_echo "$as_me:$LINENO: checking for " >&5
  32502. $as_echo_n "checking for ... " >&6; }
  32503. if test "${ac_cv_header_+set}" = set; then
  32504. $as_echo_n "(cached) " >&6
  32505. fi
  32506. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  32507. $as_echo "$ac_cv_header_" >&6; }
  32508. else
  32509. # Is the header compilable?
  32510. { $as_echo "$as_me:$LINENO: checking usability" >&5
  32511. $as_echo_n "checking usability... " >&6; }
  32512. cat >conftest.$ac_ext <<_ACEOF
  32513. /* confdefs.h. */
  32514. _ACEOF
  32515. cat confdefs.h >>conftest.$ac_ext
  32516. cat >>conftest.$ac_ext <<_ACEOF
  32517. /* end confdefs.h. */
  32518. $ac_includes_default
  32519. #include <>
  32520. _ACEOF
  32521. rm -f conftest.$ac_objext
  32522. if { (ac_try="$ac_compile"
  32523. case "(($ac_try" in
  32524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32525. *) ac_try_echo=$ac_try;;
  32526. esac
  32527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32528. $as_echo "$ac_try_echo") >&5
  32529. (eval "$ac_compile") 2>conftest.er1
  32530. ac_status=$?
  32531. grep -v '^ *+' conftest.er1 >conftest.err
  32532. rm -f conftest.er1
  32533. cat conftest.err >&5
  32534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32535. (exit $ac_status); } && {
  32536. test -z "$ac_c_werror_flag" ||
  32537. test ! -s conftest.err
  32538. } && test -s conftest.$ac_objext; then
  32539. ac_header_compiler=yes
  32540. else
  32541. $as_echo "$as_me: failed program was:" >&5
  32542. sed 's/^/| /' conftest.$ac_ext >&5
  32543. ac_header_compiler=no
  32544. fi
  32545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32546. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32547. $as_echo "$ac_header_compiler" >&6; }
  32548. # Is the header present?
  32549. { $as_echo "$as_me:$LINENO: checking presence" >&5
  32550. $as_echo_n "checking presence... " >&6; }
  32551. cat >conftest.$ac_ext <<_ACEOF
  32552. /* confdefs.h. */
  32553. _ACEOF
  32554. cat confdefs.h >>conftest.$ac_ext
  32555. cat >>conftest.$ac_ext <<_ACEOF
  32556. /* end confdefs.h. */
  32557. #include <>
  32558. _ACEOF
  32559. if { (ac_try="$ac_cpp conftest.$ac_ext"
  32560. case "(($ac_try" in
  32561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32562. *) ac_try_echo=$ac_try;;
  32563. esac
  32564. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32565. $as_echo "$ac_try_echo") >&5
  32566. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32567. ac_status=$?
  32568. grep -v '^ *+' conftest.er1 >conftest.err
  32569. rm -f conftest.er1
  32570. cat conftest.err >&5
  32571. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32572. (exit $ac_status); } >/dev/null && {
  32573. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32574. test ! -s conftest.err
  32575. }; then
  32576. ac_header_preproc=yes
  32577. else
  32578. $as_echo "$as_me: failed program was:" >&5
  32579. sed 's/^/| /' conftest.$ac_ext >&5
  32580. ac_header_preproc=no
  32581. fi
  32582. rm -f conftest.err conftest.$ac_ext
  32583. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32584. $as_echo "$ac_header_preproc" >&6; }
  32585. # So? What about this header?
  32586. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32587. yes:no: )
  32588. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  32589. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  32590. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  32591. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  32592. ac_header_preproc=yes
  32593. ;;
  32594. no:yes:* )
  32595. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  32596. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  32597. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  32598. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  32599. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  32600. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  32601. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  32602. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  32603. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  32604. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  32605. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  32606. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  32607. ( cat <<\_ASBOX
  32608. ## ------------------------------------------ ##
  32609. ## Report this to https://issues.asterisk.org ##
  32610. ## ------------------------------------------ ##
  32611. _ASBOX
  32612. ) | sed "s/^/$as_me: WARNING: /" >&2
  32613. ;;
  32614. esac
  32615. { $as_echo "$as_me:$LINENO: checking for " >&5
  32616. $as_echo_n "checking for ... " >&6; }
  32617. if test "${ac_cv_header_+set}" = set; then
  32618. $as_echo_n "(cached) " >&6
  32619. else
  32620. ac_cv_header_=$ac_header_preproc
  32621. fi
  32622. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  32623. $as_echo "$ac_cv_header_" >&6; }
  32624. fi
  32625. if test "x$ac_cv_header_" = x""yes; then
  32626. OGG_HEADER_FOUND=1
  32627. else
  32628. OGG_HEADER_FOUND=0
  32629. fi
  32630. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  32631. fi
  32632. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  32633. OGG_LIB=""
  32634. OGG_INCLUDE=""
  32635. else
  32636. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  32637. OGG_LIB=""
  32638. fi
  32639. PBX_OGG=1
  32640. cat >>confdefs.h <<_ACEOF
  32641. #define HAVE_OGG 1
  32642. _ACEOF
  32643. fi
  32644. fi
  32645. fi
  32646. # Non-glibc platforms require libexecinfo for backtrace support
  32647. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  32648. pbxlibdir=""
  32649. # if --with-BKTR=DIR has been specified, use it.
  32650. if test "x${BKTR_DIR}" != "x"; then
  32651. if test -d ${BKTR_DIR}/lib; then
  32652. pbxlibdir="-L${BKTR_DIR}/lib"
  32653. else
  32654. pbxlibdir="-L${BKTR_DIR}"
  32655. fi
  32656. fi
  32657. pbxfuncname="backtrace"
  32658. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  32659. AST_BKTR_FOUND=yes
  32660. else
  32661. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  32662. CFLAGS="${CFLAGS} "
  32663. as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
  32664. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
  32665. $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
  32666. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  32667. $as_echo_n "(cached) " >&6
  32668. else
  32669. ac_check_lib_save_LIBS=$LIBS
  32670. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  32671. cat >conftest.$ac_ext <<_ACEOF
  32672. /* confdefs.h. */
  32673. _ACEOF
  32674. cat confdefs.h >>conftest.$ac_ext
  32675. cat >>conftest.$ac_ext <<_ACEOF
  32676. /* end confdefs.h. */
  32677. /* Override any GCC internal prototype to avoid an error.
  32678. Use char because int might match the return type of a GCC
  32679. builtin and then its argument prototype would still apply. */
  32680. #ifdef __cplusplus
  32681. extern "C"
  32682. #endif
  32683. char ${pbxfuncname} ();
  32684. int
  32685. main ()
  32686. {
  32687. return ${pbxfuncname} ();
  32688. ;
  32689. return 0;
  32690. }
  32691. _ACEOF
  32692. rm -f conftest.$ac_objext conftest$ac_exeext
  32693. if { (ac_try="$ac_link"
  32694. case "(($ac_try" in
  32695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32696. *) ac_try_echo=$ac_try;;
  32697. esac
  32698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32699. $as_echo "$ac_try_echo") >&5
  32700. (eval "$ac_link") 2>conftest.er1
  32701. ac_status=$?
  32702. grep -v '^ *+' conftest.er1 >conftest.err
  32703. rm -f conftest.er1
  32704. cat conftest.err >&5
  32705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32706. (exit $ac_status); } && {
  32707. test -z "$ac_c_werror_flag" ||
  32708. test ! -s conftest.err
  32709. } && test -s conftest$ac_exeext && {
  32710. test "$cross_compiling" = yes ||
  32711. $as_test_x conftest$ac_exeext
  32712. }; then
  32713. eval "$as_ac_Lib=yes"
  32714. else
  32715. $as_echo "$as_me: failed program was:" >&5
  32716. sed 's/^/| /' conftest.$ac_ext >&5
  32717. eval "$as_ac_Lib=no"
  32718. fi
  32719. rm -rf conftest.dSYM
  32720. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32721. conftest$ac_exeext conftest.$ac_ext
  32722. LIBS=$ac_check_lib_save_LIBS
  32723. fi
  32724. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  32725. $as_echo "$as_val"'`
  32726. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32727. $as_echo "$ac_res" >&6; }
  32728. as_val=`eval 'as_val=${'$as_ac_Lib'}
  32729. $as_echo "$as_val"'`
  32730. if test "x$as_val" = x""yes; then
  32731. AST_BKTR_FOUND=yes
  32732. else
  32733. AST_BKTR_FOUND=no
  32734. fi
  32735. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  32736. fi
  32737. # now check for the header.
  32738. if test "${AST_BKTR_FOUND}" = "yes"; then
  32739. BKTR_LIB="${pbxlibdir} -lexecinfo "
  32740. # if --with-BKTR=DIR has been specified, use it.
  32741. if test "x${BKTR_DIR}" != "x"; then
  32742. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  32743. fi
  32744. BKTR_INCLUDE="${BKTR_INCLUDE} "
  32745. if test "xexecinfo.h" = "x" ; then # no header, assume found
  32746. BKTR_HEADER_FOUND="1"
  32747. else # check for the header
  32748. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32749. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  32750. if test "${ac_cv_header_execinfo_h+set}" = set; then
  32751. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  32752. $as_echo_n "checking for execinfo.h... " >&6; }
  32753. if test "${ac_cv_header_execinfo_h+set}" = set; then
  32754. $as_echo_n "(cached) " >&6
  32755. fi
  32756. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  32757. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  32758. else
  32759. # Is the header compilable?
  32760. { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
  32761. $as_echo_n "checking execinfo.h usability... " >&6; }
  32762. cat >conftest.$ac_ext <<_ACEOF
  32763. /* confdefs.h. */
  32764. _ACEOF
  32765. cat confdefs.h >>conftest.$ac_ext
  32766. cat >>conftest.$ac_ext <<_ACEOF
  32767. /* end confdefs.h. */
  32768. $ac_includes_default
  32769. #include <execinfo.h>
  32770. _ACEOF
  32771. rm -f conftest.$ac_objext
  32772. if { (ac_try="$ac_compile"
  32773. case "(($ac_try" in
  32774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32775. *) ac_try_echo=$ac_try;;
  32776. esac
  32777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32778. $as_echo "$ac_try_echo") >&5
  32779. (eval "$ac_compile") 2>conftest.er1
  32780. ac_status=$?
  32781. grep -v '^ *+' conftest.er1 >conftest.err
  32782. rm -f conftest.er1
  32783. cat conftest.err >&5
  32784. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32785. (exit $ac_status); } && {
  32786. test -z "$ac_c_werror_flag" ||
  32787. test ! -s conftest.err
  32788. } && test -s conftest.$ac_objext; then
  32789. ac_header_compiler=yes
  32790. else
  32791. $as_echo "$as_me: failed program was:" >&5
  32792. sed 's/^/| /' conftest.$ac_ext >&5
  32793. ac_header_compiler=no
  32794. fi
  32795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32796. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32797. $as_echo "$ac_header_compiler" >&6; }
  32798. # Is the header present?
  32799. { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
  32800. $as_echo_n "checking execinfo.h presence... " >&6; }
  32801. cat >conftest.$ac_ext <<_ACEOF
  32802. /* confdefs.h. */
  32803. _ACEOF
  32804. cat confdefs.h >>conftest.$ac_ext
  32805. cat >>conftest.$ac_ext <<_ACEOF
  32806. /* end confdefs.h. */
  32807. #include <execinfo.h>
  32808. _ACEOF
  32809. if { (ac_try="$ac_cpp conftest.$ac_ext"
  32810. case "(($ac_try" in
  32811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32812. *) ac_try_echo=$ac_try;;
  32813. esac
  32814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32815. $as_echo "$ac_try_echo") >&5
  32816. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32817. ac_status=$?
  32818. grep -v '^ *+' conftest.er1 >conftest.err
  32819. rm -f conftest.er1
  32820. cat conftest.err >&5
  32821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32822. (exit $ac_status); } >/dev/null && {
  32823. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32824. test ! -s conftest.err
  32825. }; then
  32826. ac_header_preproc=yes
  32827. else
  32828. $as_echo "$as_me: failed program was:" >&5
  32829. sed 's/^/| /' conftest.$ac_ext >&5
  32830. ac_header_preproc=no
  32831. fi
  32832. rm -f conftest.err conftest.$ac_ext
  32833. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32834. $as_echo "$ac_header_preproc" >&6; }
  32835. # So? What about this header?
  32836. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32837. yes:no: )
  32838. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32839. $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32840. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
  32841. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
  32842. ac_header_preproc=yes
  32843. ;;
  32844. no:yes:* )
  32845. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
  32846. $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
  32847. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
  32848. $as_echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
  32849. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
  32850. $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
  32851. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
  32852. $as_echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
  32853. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
  32854. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
  32855. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
  32856. $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
  32857. ( cat <<\_ASBOX
  32858. ## ------------------------------------------ ##
  32859. ## Report this to https://issues.asterisk.org ##
  32860. ## ------------------------------------------ ##
  32861. _ASBOX
  32862. ) | sed "s/^/$as_me: WARNING: /" >&2
  32863. ;;
  32864. esac
  32865. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  32866. $as_echo_n "checking for execinfo.h... " >&6; }
  32867. if test "${ac_cv_header_execinfo_h+set}" = set; then
  32868. $as_echo_n "(cached) " >&6
  32869. else
  32870. ac_cv_header_execinfo_h=$ac_header_preproc
  32871. fi
  32872. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  32873. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  32874. fi
  32875. if test "x$ac_cv_header_execinfo_h" = x""yes; then
  32876. BKTR_HEADER_FOUND=1
  32877. else
  32878. BKTR_HEADER_FOUND=0
  32879. fi
  32880. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  32881. fi
  32882. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  32883. BKTR_LIB=""
  32884. BKTR_INCLUDE=""
  32885. else
  32886. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  32887. BKTR_LIB=""
  32888. fi
  32889. PBX_BKTR=1
  32890. cat >>confdefs.h <<_ACEOF
  32891. #define HAVE_BKTR 1
  32892. _ACEOF
  32893. fi
  32894. fi
  32895. fi
  32896. # Linux, however, has backtrace directly in glibc
  32897. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  32898. pbxlibdir=""
  32899. # if --with-BKTR=DIR has been specified, use it.
  32900. if test "x${BKTR_DIR}" != "x"; then
  32901. if test -d ${BKTR_DIR}/lib; then
  32902. pbxlibdir="-L${BKTR_DIR}/lib"
  32903. else
  32904. pbxlibdir="-L${BKTR_DIR}"
  32905. fi
  32906. fi
  32907. pbxfuncname="backtrace"
  32908. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  32909. AST_BKTR_FOUND=yes
  32910. else
  32911. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  32912. CFLAGS="${CFLAGS} "
  32913. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  32914. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  32915. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  32916. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  32917. $as_echo_n "(cached) " >&6
  32918. else
  32919. ac_check_lib_save_LIBS=$LIBS
  32920. LIBS="-lc ${pbxlibdir} $LIBS"
  32921. cat >conftest.$ac_ext <<_ACEOF
  32922. /* confdefs.h. */
  32923. _ACEOF
  32924. cat confdefs.h >>conftest.$ac_ext
  32925. cat >>conftest.$ac_ext <<_ACEOF
  32926. /* end confdefs.h. */
  32927. /* Override any GCC internal prototype to avoid an error.
  32928. Use char because int might match the return type of a GCC
  32929. builtin and then its argument prototype would still apply. */
  32930. #ifdef __cplusplus
  32931. extern "C"
  32932. #endif
  32933. char ${pbxfuncname} ();
  32934. int
  32935. main ()
  32936. {
  32937. return ${pbxfuncname} ();
  32938. ;
  32939. return 0;
  32940. }
  32941. _ACEOF
  32942. rm -f conftest.$ac_objext conftest$ac_exeext
  32943. if { (ac_try="$ac_link"
  32944. case "(($ac_try" in
  32945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32946. *) ac_try_echo=$ac_try;;
  32947. esac
  32948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32949. $as_echo "$ac_try_echo") >&5
  32950. (eval "$ac_link") 2>conftest.er1
  32951. ac_status=$?
  32952. grep -v '^ *+' conftest.er1 >conftest.err
  32953. rm -f conftest.er1
  32954. cat conftest.err >&5
  32955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32956. (exit $ac_status); } && {
  32957. test -z "$ac_c_werror_flag" ||
  32958. test ! -s conftest.err
  32959. } && test -s conftest$ac_exeext && {
  32960. test "$cross_compiling" = yes ||
  32961. $as_test_x conftest$ac_exeext
  32962. }; then
  32963. eval "$as_ac_Lib=yes"
  32964. else
  32965. $as_echo "$as_me: failed program was:" >&5
  32966. sed 's/^/| /' conftest.$ac_ext >&5
  32967. eval "$as_ac_Lib=no"
  32968. fi
  32969. rm -rf conftest.dSYM
  32970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32971. conftest$ac_exeext conftest.$ac_ext
  32972. LIBS=$ac_check_lib_save_LIBS
  32973. fi
  32974. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  32975. $as_echo "$as_val"'`
  32976. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32977. $as_echo "$ac_res" >&6; }
  32978. as_val=`eval 'as_val=${'$as_ac_Lib'}
  32979. $as_echo "$as_val"'`
  32980. if test "x$as_val" = x""yes; then
  32981. AST_BKTR_FOUND=yes
  32982. else
  32983. AST_BKTR_FOUND=no
  32984. fi
  32985. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  32986. fi
  32987. # now check for the header.
  32988. if test "${AST_BKTR_FOUND}" = "yes"; then
  32989. BKTR_LIB="${pbxlibdir} -lc "
  32990. # if --with-BKTR=DIR has been specified, use it.
  32991. if test "x${BKTR_DIR}" != "x"; then
  32992. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  32993. fi
  32994. BKTR_INCLUDE="${BKTR_INCLUDE} "
  32995. if test "xexecinfo.h" = "x" ; then # no header, assume found
  32996. BKTR_HEADER_FOUND="1"
  32997. else # check for the header
  32998. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32999. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  33000. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33001. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  33002. $as_echo_n "checking for execinfo.h... " >&6; }
  33003. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33004. $as_echo_n "(cached) " >&6
  33005. fi
  33006. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  33007. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  33008. else
  33009. # Is the header compilable?
  33010. { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
  33011. $as_echo_n "checking execinfo.h usability... " >&6; }
  33012. cat >conftest.$ac_ext <<_ACEOF
  33013. /* confdefs.h. */
  33014. _ACEOF
  33015. cat confdefs.h >>conftest.$ac_ext
  33016. cat >>conftest.$ac_ext <<_ACEOF
  33017. /* end confdefs.h. */
  33018. $ac_includes_default
  33019. #include <execinfo.h>
  33020. _ACEOF
  33021. rm -f conftest.$ac_objext
  33022. if { (ac_try="$ac_compile"
  33023. case "(($ac_try" in
  33024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33025. *) ac_try_echo=$ac_try;;
  33026. esac
  33027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33028. $as_echo "$ac_try_echo") >&5
  33029. (eval "$ac_compile") 2>conftest.er1
  33030. ac_status=$?
  33031. grep -v '^ *+' conftest.er1 >conftest.err
  33032. rm -f conftest.er1
  33033. cat conftest.err >&5
  33034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33035. (exit $ac_status); } && {
  33036. test -z "$ac_c_werror_flag" ||
  33037. test ! -s conftest.err
  33038. } && test -s conftest.$ac_objext; then
  33039. ac_header_compiler=yes
  33040. else
  33041. $as_echo "$as_me: failed program was:" >&5
  33042. sed 's/^/| /' conftest.$ac_ext >&5
  33043. ac_header_compiler=no
  33044. fi
  33045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33046. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33047. $as_echo "$ac_header_compiler" >&6; }
  33048. # Is the header present?
  33049. { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
  33050. $as_echo_n "checking execinfo.h presence... " >&6; }
  33051. cat >conftest.$ac_ext <<_ACEOF
  33052. /* confdefs.h. */
  33053. _ACEOF
  33054. cat confdefs.h >>conftest.$ac_ext
  33055. cat >>conftest.$ac_ext <<_ACEOF
  33056. /* end confdefs.h. */
  33057. #include <execinfo.h>
  33058. _ACEOF
  33059. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33060. case "(($ac_try" in
  33061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33062. *) ac_try_echo=$ac_try;;
  33063. esac
  33064. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33065. $as_echo "$ac_try_echo") >&5
  33066. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33067. ac_status=$?
  33068. grep -v '^ *+' conftest.er1 >conftest.err
  33069. rm -f conftest.er1
  33070. cat conftest.err >&5
  33071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33072. (exit $ac_status); } >/dev/null && {
  33073. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33074. test ! -s conftest.err
  33075. }; then
  33076. ac_header_preproc=yes
  33077. else
  33078. $as_echo "$as_me: failed program was:" >&5
  33079. sed 's/^/| /' conftest.$ac_ext >&5
  33080. ac_header_preproc=no
  33081. fi
  33082. rm -f conftest.err conftest.$ac_ext
  33083. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33084. $as_echo "$ac_header_preproc" >&6; }
  33085. # So? What about this header?
  33086. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33087. yes:no: )
  33088. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33089. $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33090. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
  33091. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
  33092. ac_header_preproc=yes
  33093. ;;
  33094. no:yes:* )
  33095. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
  33096. $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
  33097. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
  33098. $as_echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
  33099. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
  33100. $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
  33101. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
  33102. $as_echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33103. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
  33104. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
  33105. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
  33106. $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
  33107. ( cat <<\_ASBOX
  33108. ## ------------------------------------------ ##
  33109. ## Report this to https://issues.asterisk.org ##
  33110. ## ------------------------------------------ ##
  33111. _ASBOX
  33112. ) | sed "s/^/$as_me: WARNING: /" >&2
  33113. ;;
  33114. esac
  33115. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  33116. $as_echo_n "checking for execinfo.h... " >&6; }
  33117. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33118. $as_echo_n "(cached) " >&6
  33119. else
  33120. ac_cv_header_execinfo_h=$ac_header_preproc
  33121. fi
  33122. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  33123. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  33124. fi
  33125. if test "x$ac_cv_header_execinfo_h" = x""yes; then
  33126. BKTR_HEADER_FOUND=1
  33127. else
  33128. BKTR_HEADER_FOUND=0
  33129. fi
  33130. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33131. fi
  33132. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  33133. BKTR_LIB=""
  33134. BKTR_INCLUDE=""
  33135. else
  33136. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33137. BKTR_LIB=""
  33138. fi
  33139. PBX_BKTR=1
  33140. cat >>confdefs.h <<_ACEOF
  33141. #define HAVE_BKTR 1
  33142. _ACEOF
  33143. fi
  33144. fi
  33145. fi
  33146. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  33147. pbxlibdir=""
  33148. # if --with-BLUETOOTH=DIR has been specified, use it.
  33149. if test "x${BLUETOOTH_DIR}" != "x"; then
  33150. if test -d ${BLUETOOTH_DIR}/lib; then
  33151. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  33152. else
  33153. pbxlibdir="-L${BLUETOOTH_DIR}"
  33154. fi
  33155. fi
  33156. pbxfuncname="ba2str"
  33157. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33158. AST_BLUETOOTH_FOUND=yes
  33159. else
  33160. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33161. CFLAGS="${CFLAGS} "
  33162. as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
  33163. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lbluetooth" >&5
  33164. $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
  33165. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33166. $as_echo_n "(cached) " >&6
  33167. else
  33168. ac_check_lib_save_LIBS=$LIBS
  33169. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  33170. cat >conftest.$ac_ext <<_ACEOF
  33171. /* confdefs.h. */
  33172. _ACEOF
  33173. cat confdefs.h >>conftest.$ac_ext
  33174. cat >>conftest.$ac_ext <<_ACEOF
  33175. /* end confdefs.h. */
  33176. /* Override any GCC internal prototype to avoid an error.
  33177. Use char because int might match the return type of a GCC
  33178. builtin and then its argument prototype would still apply. */
  33179. #ifdef __cplusplus
  33180. extern "C"
  33181. #endif
  33182. char ${pbxfuncname} ();
  33183. int
  33184. main ()
  33185. {
  33186. return ${pbxfuncname} ();
  33187. ;
  33188. return 0;
  33189. }
  33190. _ACEOF
  33191. rm -f conftest.$ac_objext conftest$ac_exeext
  33192. if { (ac_try="$ac_link"
  33193. case "(($ac_try" in
  33194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33195. *) ac_try_echo=$ac_try;;
  33196. esac
  33197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33198. $as_echo "$ac_try_echo") >&5
  33199. (eval "$ac_link") 2>conftest.er1
  33200. ac_status=$?
  33201. grep -v '^ *+' conftest.er1 >conftest.err
  33202. rm -f conftest.er1
  33203. cat conftest.err >&5
  33204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33205. (exit $ac_status); } && {
  33206. test -z "$ac_c_werror_flag" ||
  33207. test ! -s conftest.err
  33208. } && test -s conftest$ac_exeext && {
  33209. test "$cross_compiling" = yes ||
  33210. $as_test_x conftest$ac_exeext
  33211. }; then
  33212. eval "$as_ac_Lib=yes"
  33213. else
  33214. $as_echo "$as_me: failed program was:" >&5
  33215. sed 's/^/| /' conftest.$ac_ext >&5
  33216. eval "$as_ac_Lib=no"
  33217. fi
  33218. rm -rf conftest.dSYM
  33219. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33220. conftest$ac_exeext conftest.$ac_ext
  33221. LIBS=$ac_check_lib_save_LIBS
  33222. fi
  33223. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33224. $as_echo "$as_val"'`
  33225. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33226. $as_echo "$ac_res" >&6; }
  33227. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33228. $as_echo "$as_val"'`
  33229. if test "x$as_val" = x""yes; then
  33230. AST_BLUETOOTH_FOUND=yes
  33231. else
  33232. AST_BLUETOOTH_FOUND=no
  33233. fi
  33234. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33235. fi
  33236. # now check for the header.
  33237. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  33238. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  33239. # if --with-BLUETOOTH=DIR has been specified, use it.
  33240. if test "x${BLUETOOTH_DIR}" != "x"; then
  33241. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  33242. fi
  33243. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  33244. if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
  33245. BLUETOOTH_HEADER_FOUND="1"
  33246. else # check for the header
  33247. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33248. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  33249. if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
  33250. { $as_echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
  33251. $as_echo_n "checking for bluetooth/bluetooth.h... " >&6; }
  33252. if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
  33253. $as_echo_n "(cached) " >&6
  33254. fi
  33255. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
  33256. $as_echo "$ac_cv_header_bluetooth_bluetooth_h" >&6; }
  33257. else
  33258. # Is the header compilable?
  33259. { $as_echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
  33260. $as_echo_n "checking bluetooth/bluetooth.h usability... " >&6; }
  33261. cat >conftest.$ac_ext <<_ACEOF
  33262. /* confdefs.h. */
  33263. _ACEOF
  33264. cat confdefs.h >>conftest.$ac_ext
  33265. cat >>conftest.$ac_ext <<_ACEOF
  33266. /* end confdefs.h. */
  33267. $ac_includes_default
  33268. #include <bluetooth/bluetooth.h>
  33269. _ACEOF
  33270. rm -f conftest.$ac_objext
  33271. if { (ac_try="$ac_compile"
  33272. case "(($ac_try" in
  33273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33274. *) ac_try_echo=$ac_try;;
  33275. esac
  33276. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33277. $as_echo "$ac_try_echo") >&5
  33278. (eval "$ac_compile") 2>conftest.er1
  33279. ac_status=$?
  33280. grep -v '^ *+' conftest.er1 >conftest.err
  33281. rm -f conftest.er1
  33282. cat conftest.err >&5
  33283. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33284. (exit $ac_status); } && {
  33285. test -z "$ac_c_werror_flag" ||
  33286. test ! -s conftest.err
  33287. } && test -s conftest.$ac_objext; then
  33288. ac_header_compiler=yes
  33289. else
  33290. $as_echo "$as_me: failed program was:" >&5
  33291. sed 's/^/| /' conftest.$ac_ext >&5
  33292. ac_header_compiler=no
  33293. fi
  33294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33295. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33296. $as_echo "$ac_header_compiler" >&6; }
  33297. # Is the header present?
  33298. { $as_echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
  33299. $as_echo_n "checking bluetooth/bluetooth.h presence... " >&6; }
  33300. cat >conftest.$ac_ext <<_ACEOF
  33301. /* confdefs.h. */
  33302. _ACEOF
  33303. cat confdefs.h >>conftest.$ac_ext
  33304. cat >>conftest.$ac_ext <<_ACEOF
  33305. /* end confdefs.h. */
  33306. #include <bluetooth/bluetooth.h>
  33307. _ACEOF
  33308. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33309. case "(($ac_try" in
  33310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33311. *) ac_try_echo=$ac_try;;
  33312. esac
  33313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33314. $as_echo "$ac_try_echo") >&5
  33315. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33316. ac_status=$?
  33317. grep -v '^ *+' conftest.er1 >conftest.err
  33318. rm -f conftest.er1
  33319. cat conftest.err >&5
  33320. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33321. (exit $ac_status); } >/dev/null && {
  33322. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33323. test ! -s conftest.err
  33324. }; then
  33325. ac_header_preproc=yes
  33326. else
  33327. $as_echo "$as_me: failed program was:" >&5
  33328. sed 's/^/| /' conftest.$ac_ext >&5
  33329. ac_header_preproc=no
  33330. fi
  33331. rm -f conftest.err conftest.$ac_ext
  33332. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33333. $as_echo "$ac_header_preproc" >&6; }
  33334. # So? What about this header?
  33335. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33336. yes:no: )
  33337. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33338. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33339. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
  33340. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
  33341. ac_header_preproc=yes
  33342. ;;
  33343. no:yes:* )
  33344. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
  33345. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
  33346. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
  33347. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
  33348. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
  33349. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
  33350. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
  33351. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33352. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
  33353. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
  33354. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
  33355. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
  33356. ( cat <<\_ASBOX
  33357. ## ------------------------------------------ ##
  33358. ## Report this to https://issues.asterisk.org ##
  33359. ## ------------------------------------------ ##
  33360. _ASBOX
  33361. ) | sed "s/^/$as_me: WARNING: /" >&2
  33362. ;;
  33363. esac
  33364. { $as_echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
  33365. $as_echo_n "checking for bluetooth/bluetooth.h... " >&6; }
  33366. if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
  33367. $as_echo_n "(cached) " >&6
  33368. else
  33369. ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
  33370. fi
  33371. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
  33372. $as_echo "$ac_cv_header_bluetooth_bluetooth_h" >&6; }
  33373. fi
  33374. if test "x$ac_cv_header_bluetooth_bluetooth_h" = x""yes; then
  33375. BLUETOOTH_HEADER_FOUND=1
  33376. else
  33377. BLUETOOTH_HEADER_FOUND=0
  33378. fi
  33379. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33380. fi
  33381. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  33382. BLUETOOTH_LIB=""
  33383. BLUETOOTH_INCLUDE=""
  33384. else
  33385. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33386. BLUETOOTH_LIB=""
  33387. fi
  33388. PBX_BLUETOOTH=1
  33389. cat >>confdefs.h <<_ACEOF
  33390. #define HAVE_BLUETOOTH 1
  33391. _ACEOF
  33392. fi
  33393. fi
  33394. fi
  33395. # possible places for oss definitions
  33396. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  33397. pbxlibdir=""
  33398. # if --with-OSS=DIR has been specified, use it.
  33399. if test "x${OSS_DIR}" != "x"; then
  33400. if test -d ${OSS_DIR}/lib; then
  33401. pbxlibdir="-L${OSS_DIR}/lib"
  33402. else
  33403. pbxlibdir="-L${OSS_DIR}"
  33404. fi
  33405. fi
  33406. pbxfuncname=""
  33407. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33408. AST_OSS_FOUND=yes
  33409. else
  33410. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33411. CFLAGS="${CFLAGS} "
  33412. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  33413. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
  33414. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  33415. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33416. $as_echo_n "(cached) " >&6
  33417. else
  33418. ac_check_lib_save_LIBS=$LIBS
  33419. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  33420. cat >conftest.$ac_ext <<_ACEOF
  33421. /* confdefs.h. */
  33422. _ACEOF
  33423. cat confdefs.h >>conftest.$ac_ext
  33424. cat >>conftest.$ac_ext <<_ACEOF
  33425. /* end confdefs.h. */
  33426. /* Override any GCC internal prototype to avoid an error.
  33427. Use char because int might match the return type of a GCC
  33428. builtin and then its argument prototype would still apply. */
  33429. #ifdef __cplusplus
  33430. extern "C"
  33431. #endif
  33432. char ${pbxfuncname} ();
  33433. int
  33434. main ()
  33435. {
  33436. return ${pbxfuncname} ();
  33437. ;
  33438. return 0;
  33439. }
  33440. _ACEOF
  33441. rm -f conftest.$ac_objext conftest$ac_exeext
  33442. if { (ac_try="$ac_link"
  33443. case "(($ac_try" in
  33444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33445. *) ac_try_echo=$ac_try;;
  33446. esac
  33447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33448. $as_echo "$ac_try_echo") >&5
  33449. (eval "$ac_link") 2>conftest.er1
  33450. ac_status=$?
  33451. grep -v '^ *+' conftest.er1 >conftest.err
  33452. rm -f conftest.er1
  33453. cat conftest.err >&5
  33454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33455. (exit $ac_status); } && {
  33456. test -z "$ac_c_werror_flag" ||
  33457. test ! -s conftest.err
  33458. } && test -s conftest$ac_exeext && {
  33459. test "$cross_compiling" = yes ||
  33460. $as_test_x conftest$ac_exeext
  33461. }; then
  33462. eval "$as_ac_Lib=yes"
  33463. else
  33464. $as_echo "$as_me: failed program was:" >&5
  33465. sed 's/^/| /' conftest.$ac_ext >&5
  33466. eval "$as_ac_Lib=no"
  33467. fi
  33468. rm -rf conftest.dSYM
  33469. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33470. conftest$ac_exeext conftest.$ac_ext
  33471. LIBS=$ac_check_lib_save_LIBS
  33472. fi
  33473. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33474. $as_echo "$as_val"'`
  33475. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33476. $as_echo "$ac_res" >&6; }
  33477. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33478. $as_echo "$as_val"'`
  33479. if test "x$as_val" = x""yes; then
  33480. AST_OSS_FOUND=yes
  33481. else
  33482. AST_OSS_FOUND=no
  33483. fi
  33484. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33485. fi
  33486. # now check for the header.
  33487. if test "${AST_OSS_FOUND}" = "yes"; then
  33488. OSS_LIB="${pbxlibdir} -lossaudio "
  33489. # if --with-OSS=DIR has been specified, use it.
  33490. if test "x${OSS_DIR}" != "x"; then
  33491. OSS_INCLUDE="-I${OSS_DIR}/include"
  33492. fi
  33493. OSS_INCLUDE="${OSS_INCLUDE} "
  33494. if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
  33495. OSS_HEADER_FOUND="1"
  33496. else # check for the header
  33497. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33498. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  33499. if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
  33500. { $as_echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
  33501. $as_echo_n "checking for linux/soundcard.h... " >&6; }
  33502. if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
  33503. $as_echo_n "(cached) " >&6
  33504. fi
  33505. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
  33506. $as_echo "$ac_cv_header_linux_soundcard_h" >&6; }
  33507. else
  33508. # Is the header compilable?
  33509. { $as_echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
  33510. $as_echo_n "checking linux/soundcard.h usability... " >&6; }
  33511. cat >conftest.$ac_ext <<_ACEOF
  33512. /* confdefs.h. */
  33513. _ACEOF
  33514. cat confdefs.h >>conftest.$ac_ext
  33515. cat >>conftest.$ac_ext <<_ACEOF
  33516. /* end confdefs.h. */
  33517. $ac_includes_default
  33518. #include <linux/soundcard.h>
  33519. _ACEOF
  33520. rm -f conftest.$ac_objext
  33521. if { (ac_try="$ac_compile"
  33522. case "(($ac_try" in
  33523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33524. *) ac_try_echo=$ac_try;;
  33525. esac
  33526. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33527. $as_echo "$ac_try_echo") >&5
  33528. (eval "$ac_compile") 2>conftest.er1
  33529. ac_status=$?
  33530. grep -v '^ *+' conftest.er1 >conftest.err
  33531. rm -f conftest.er1
  33532. cat conftest.err >&5
  33533. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33534. (exit $ac_status); } && {
  33535. test -z "$ac_c_werror_flag" ||
  33536. test ! -s conftest.err
  33537. } && test -s conftest.$ac_objext; then
  33538. ac_header_compiler=yes
  33539. else
  33540. $as_echo "$as_me: failed program was:" >&5
  33541. sed 's/^/| /' conftest.$ac_ext >&5
  33542. ac_header_compiler=no
  33543. fi
  33544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33545. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33546. $as_echo "$ac_header_compiler" >&6; }
  33547. # Is the header present?
  33548. { $as_echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
  33549. $as_echo_n "checking linux/soundcard.h presence... " >&6; }
  33550. cat >conftest.$ac_ext <<_ACEOF
  33551. /* confdefs.h. */
  33552. _ACEOF
  33553. cat confdefs.h >>conftest.$ac_ext
  33554. cat >>conftest.$ac_ext <<_ACEOF
  33555. /* end confdefs.h. */
  33556. #include <linux/soundcard.h>
  33557. _ACEOF
  33558. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33559. case "(($ac_try" in
  33560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33561. *) ac_try_echo=$ac_try;;
  33562. esac
  33563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33564. $as_echo "$ac_try_echo") >&5
  33565. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33566. ac_status=$?
  33567. grep -v '^ *+' conftest.er1 >conftest.err
  33568. rm -f conftest.er1
  33569. cat conftest.err >&5
  33570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33571. (exit $ac_status); } >/dev/null && {
  33572. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33573. test ! -s conftest.err
  33574. }; then
  33575. ac_header_preproc=yes
  33576. else
  33577. $as_echo "$as_me: failed program was:" >&5
  33578. sed 's/^/| /' conftest.$ac_ext >&5
  33579. ac_header_preproc=no
  33580. fi
  33581. rm -f conftest.err conftest.$ac_ext
  33582. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33583. $as_echo "$ac_header_preproc" >&6; }
  33584. # So? What about this header?
  33585. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33586. yes:no: )
  33587. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33588. $as_echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33589. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
  33590. $as_echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
  33591. ac_header_preproc=yes
  33592. ;;
  33593. no:yes:* )
  33594. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
  33595. $as_echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
  33596. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
  33597. $as_echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
  33598. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
  33599. $as_echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
  33600. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
  33601. $as_echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33602. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
  33603. $as_echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
  33604. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
  33605. $as_echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
  33606. ( cat <<\_ASBOX
  33607. ## ------------------------------------------ ##
  33608. ## Report this to https://issues.asterisk.org ##
  33609. ## ------------------------------------------ ##
  33610. _ASBOX
  33611. ) | sed "s/^/$as_me: WARNING: /" >&2
  33612. ;;
  33613. esac
  33614. { $as_echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
  33615. $as_echo_n "checking for linux/soundcard.h... " >&6; }
  33616. if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
  33617. $as_echo_n "(cached) " >&6
  33618. else
  33619. ac_cv_header_linux_soundcard_h=$ac_header_preproc
  33620. fi
  33621. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
  33622. $as_echo "$ac_cv_header_linux_soundcard_h" >&6; }
  33623. fi
  33624. if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then
  33625. OSS_HEADER_FOUND=1
  33626. else
  33627. OSS_HEADER_FOUND=0
  33628. fi
  33629. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33630. fi
  33631. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  33632. OSS_LIB=""
  33633. OSS_INCLUDE=""
  33634. else
  33635. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33636. OSS_LIB=""
  33637. fi
  33638. PBX_OSS=1
  33639. cat >>confdefs.h <<_ACEOF
  33640. #define HAVE_OSS 1
  33641. _ACEOF
  33642. fi
  33643. fi
  33644. fi
  33645. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  33646. pbxlibdir=""
  33647. # if --with-OSS=DIR has been specified, use it.
  33648. if test "x${OSS_DIR}" != "x"; then
  33649. if test -d ${OSS_DIR}/lib; then
  33650. pbxlibdir="-L${OSS_DIR}/lib"
  33651. else
  33652. pbxlibdir="-L${OSS_DIR}"
  33653. fi
  33654. fi
  33655. pbxfuncname=""
  33656. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33657. AST_OSS_FOUND=yes
  33658. else
  33659. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33660. CFLAGS="${CFLAGS} "
  33661. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  33662. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
  33663. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  33664. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33665. $as_echo_n "(cached) " >&6
  33666. else
  33667. ac_check_lib_save_LIBS=$LIBS
  33668. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  33669. cat >conftest.$ac_ext <<_ACEOF
  33670. /* confdefs.h. */
  33671. _ACEOF
  33672. cat confdefs.h >>conftest.$ac_ext
  33673. cat >>conftest.$ac_ext <<_ACEOF
  33674. /* end confdefs.h. */
  33675. /* Override any GCC internal prototype to avoid an error.
  33676. Use char because int might match the return type of a GCC
  33677. builtin and then its argument prototype would still apply. */
  33678. #ifdef __cplusplus
  33679. extern "C"
  33680. #endif
  33681. char ${pbxfuncname} ();
  33682. int
  33683. main ()
  33684. {
  33685. return ${pbxfuncname} ();
  33686. ;
  33687. return 0;
  33688. }
  33689. _ACEOF
  33690. rm -f conftest.$ac_objext conftest$ac_exeext
  33691. if { (ac_try="$ac_link"
  33692. case "(($ac_try" in
  33693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33694. *) ac_try_echo=$ac_try;;
  33695. esac
  33696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33697. $as_echo "$ac_try_echo") >&5
  33698. (eval "$ac_link") 2>conftest.er1
  33699. ac_status=$?
  33700. grep -v '^ *+' conftest.er1 >conftest.err
  33701. rm -f conftest.er1
  33702. cat conftest.err >&5
  33703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33704. (exit $ac_status); } && {
  33705. test -z "$ac_c_werror_flag" ||
  33706. test ! -s conftest.err
  33707. } && test -s conftest$ac_exeext && {
  33708. test "$cross_compiling" = yes ||
  33709. $as_test_x conftest$ac_exeext
  33710. }; then
  33711. eval "$as_ac_Lib=yes"
  33712. else
  33713. $as_echo "$as_me: failed program was:" >&5
  33714. sed 's/^/| /' conftest.$ac_ext >&5
  33715. eval "$as_ac_Lib=no"
  33716. fi
  33717. rm -rf conftest.dSYM
  33718. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33719. conftest$ac_exeext conftest.$ac_ext
  33720. LIBS=$ac_check_lib_save_LIBS
  33721. fi
  33722. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33723. $as_echo "$as_val"'`
  33724. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33725. $as_echo "$ac_res" >&6; }
  33726. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33727. $as_echo "$as_val"'`
  33728. if test "x$as_val" = x""yes; then
  33729. AST_OSS_FOUND=yes
  33730. else
  33731. AST_OSS_FOUND=no
  33732. fi
  33733. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33734. fi
  33735. # now check for the header.
  33736. if test "${AST_OSS_FOUND}" = "yes"; then
  33737. OSS_LIB="${pbxlibdir} -lossaudio "
  33738. # if --with-OSS=DIR has been specified, use it.
  33739. if test "x${OSS_DIR}" != "x"; then
  33740. OSS_INCLUDE="-I${OSS_DIR}/include"
  33741. fi
  33742. OSS_INCLUDE="${OSS_INCLUDE} "
  33743. if test "xsys/soundcard.h" = "x" ; then # no header, assume found
  33744. OSS_HEADER_FOUND="1"
  33745. else # check for the header
  33746. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33747. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  33748. if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
  33749. { $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
  33750. $as_echo_n "checking for sys/soundcard.h... " >&6; }
  33751. if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
  33752. $as_echo_n "(cached) " >&6
  33753. fi
  33754. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
  33755. $as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
  33756. else
  33757. # Is the header compilable?
  33758. { $as_echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
  33759. $as_echo_n "checking sys/soundcard.h usability... " >&6; }
  33760. cat >conftest.$ac_ext <<_ACEOF
  33761. /* confdefs.h. */
  33762. _ACEOF
  33763. cat confdefs.h >>conftest.$ac_ext
  33764. cat >>conftest.$ac_ext <<_ACEOF
  33765. /* end confdefs.h. */
  33766. $ac_includes_default
  33767. #include <sys/soundcard.h>
  33768. _ACEOF
  33769. rm -f conftest.$ac_objext
  33770. if { (ac_try="$ac_compile"
  33771. case "(($ac_try" in
  33772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33773. *) ac_try_echo=$ac_try;;
  33774. esac
  33775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33776. $as_echo "$ac_try_echo") >&5
  33777. (eval "$ac_compile") 2>conftest.er1
  33778. ac_status=$?
  33779. grep -v '^ *+' conftest.er1 >conftest.err
  33780. rm -f conftest.er1
  33781. cat conftest.err >&5
  33782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33783. (exit $ac_status); } && {
  33784. test -z "$ac_c_werror_flag" ||
  33785. test ! -s conftest.err
  33786. } && test -s conftest.$ac_objext; then
  33787. ac_header_compiler=yes
  33788. else
  33789. $as_echo "$as_me: failed program was:" >&5
  33790. sed 's/^/| /' conftest.$ac_ext >&5
  33791. ac_header_compiler=no
  33792. fi
  33793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33794. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33795. $as_echo "$ac_header_compiler" >&6; }
  33796. # Is the header present?
  33797. { $as_echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
  33798. $as_echo_n "checking sys/soundcard.h presence... " >&6; }
  33799. cat >conftest.$ac_ext <<_ACEOF
  33800. /* confdefs.h. */
  33801. _ACEOF
  33802. cat confdefs.h >>conftest.$ac_ext
  33803. cat >>conftest.$ac_ext <<_ACEOF
  33804. /* end confdefs.h. */
  33805. #include <sys/soundcard.h>
  33806. _ACEOF
  33807. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33808. case "(($ac_try" in
  33809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33810. *) ac_try_echo=$ac_try;;
  33811. esac
  33812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33813. $as_echo "$ac_try_echo") >&5
  33814. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33815. ac_status=$?
  33816. grep -v '^ *+' conftest.er1 >conftest.err
  33817. rm -f conftest.er1
  33818. cat conftest.err >&5
  33819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33820. (exit $ac_status); } >/dev/null && {
  33821. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33822. test ! -s conftest.err
  33823. }; then
  33824. ac_header_preproc=yes
  33825. else
  33826. $as_echo "$as_me: failed program was:" >&5
  33827. sed 's/^/| /' conftest.$ac_ext >&5
  33828. ac_header_preproc=no
  33829. fi
  33830. rm -f conftest.err conftest.$ac_ext
  33831. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33832. $as_echo "$ac_header_preproc" >&6; }
  33833. # So? What about this header?
  33834. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33835. yes:no: )
  33836. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33837. $as_echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33838. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
  33839. $as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
  33840. ac_header_preproc=yes
  33841. ;;
  33842. no:yes:* )
  33843. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
  33844. $as_echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
  33845. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
  33846. $as_echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
  33847. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
  33848. $as_echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
  33849. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
  33850. $as_echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33851. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
  33852. $as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
  33853. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
  33854. $as_echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
  33855. ( cat <<\_ASBOX
  33856. ## ------------------------------------------ ##
  33857. ## Report this to https://issues.asterisk.org ##
  33858. ## ------------------------------------------ ##
  33859. _ASBOX
  33860. ) | sed "s/^/$as_me: WARNING: /" >&2
  33861. ;;
  33862. esac
  33863. { $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
  33864. $as_echo_n "checking for sys/soundcard.h... " >&6; }
  33865. if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
  33866. $as_echo_n "(cached) " >&6
  33867. else
  33868. ac_cv_header_sys_soundcard_h=$ac_header_preproc
  33869. fi
  33870. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
  33871. $as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
  33872. fi
  33873. if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then
  33874. OSS_HEADER_FOUND=1
  33875. else
  33876. OSS_HEADER_FOUND=0
  33877. fi
  33878. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33879. fi
  33880. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  33881. OSS_LIB=""
  33882. OSS_INCLUDE=""
  33883. else
  33884. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33885. OSS_LIB=""
  33886. fi
  33887. PBX_OSS=1
  33888. cat >>confdefs.h <<_ACEOF
  33889. #define HAVE_OSS 1
  33890. _ACEOF
  33891. fi
  33892. fi
  33893. fi
  33894. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  33895. pbxlibdir=""
  33896. # if --with-OSS=DIR has been specified, use it.
  33897. if test "x${OSS_DIR}" != "x"; then
  33898. if test -d ${OSS_DIR}/lib; then
  33899. pbxlibdir="-L${OSS_DIR}/lib"
  33900. else
  33901. pbxlibdir="-L${OSS_DIR}"
  33902. fi
  33903. fi
  33904. pbxfuncname="oss_ioctl_mixer"
  33905. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33906. AST_OSS_FOUND=yes
  33907. else
  33908. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33909. CFLAGS="${CFLAGS} "
  33910. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  33911. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
  33912. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  33913. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33914. $as_echo_n "(cached) " >&6
  33915. else
  33916. ac_check_lib_save_LIBS=$LIBS
  33917. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  33918. cat >conftest.$ac_ext <<_ACEOF
  33919. /* confdefs.h. */
  33920. _ACEOF
  33921. cat confdefs.h >>conftest.$ac_ext
  33922. cat >>conftest.$ac_ext <<_ACEOF
  33923. /* end confdefs.h. */
  33924. /* Override any GCC internal prototype to avoid an error.
  33925. Use char because int might match the return type of a GCC
  33926. builtin and then its argument prototype would still apply. */
  33927. #ifdef __cplusplus
  33928. extern "C"
  33929. #endif
  33930. char ${pbxfuncname} ();
  33931. int
  33932. main ()
  33933. {
  33934. return ${pbxfuncname} ();
  33935. ;
  33936. return 0;
  33937. }
  33938. _ACEOF
  33939. rm -f conftest.$ac_objext conftest$ac_exeext
  33940. if { (ac_try="$ac_link"
  33941. case "(($ac_try" in
  33942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33943. *) ac_try_echo=$ac_try;;
  33944. esac
  33945. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33946. $as_echo "$ac_try_echo") >&5
  33947. (eval "$ac_link") 2>conftest.er1
  33948. ac_status=$?
  33949. grep -v '^ *+' conftest.er1 >conftest.err
  33950. rm -f conftest.er1
  33951. cat conftest.err >&5
  33952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33953. (exit $ac_status); } && {
  33954. test -z "$ac_c_werror_flag" ||
  33955. test ! -s conftest.err
  33956. } && test -s conftest$ac_exeext && {
  33957. test "$cross_compiling" = yes ||
  33958. $as_test_x conftest$ac_exeext
  33959. }; then
  33960. eval "$as_ac_Lib=yes"
  33961. else
  33962. $as_echo "$as_me: failed program was:" >&5
  33963. sed 's/^/| /' conftest.$ac_ext >&5
  33964. eval "$as_ac_Lib=no"
  33965. fi
  33966. rm -rf conftest.dSYM
  33967. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33968. conftest$ac_exeext conftest.$ac_ext
  33969. LIBS=$ac_check_lib_save_LIBS
  33970. fi
  33971. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33972. $as_echo "$as_val"'`
  33973. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33974. $as_echo "$ac_res" >&6; }
  33975. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33976. $as_echo "$as_val"'`
  33977. if test "x$as_val" = x""yes; then
  33978. AST_OSS_FOUND=yes
  33979. else
  33980. AST_OSS_FOUND=no
  33981. fi
  33982. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33983. fi
  33984. # now check for the header.
  33985. if test "${AST_OSS_FOUND}" = "yes"; then
  33986. OSS_LIB="${pbxlibdir} -lossaudio "
  33987. # if --with-OSS=DIR has been specified, use it.
  33988. if test "x${OSS_DIR}" != "x"; then
  33989. OSS_INCLUDE="-I${OSS_DIR}/include"
  33990. fi
  33991. OSS_INCLUDE="${OSS_INCLUDE} "
  33992. if test "xsoundcard.h" = "x" ; then # no header, assume found
  33993. OSS_HEADER_FOUND="1"
  33994. else # check for the header
  33995. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33996. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  33997. if test "${ac_cv_header_soundcard_h+set}" = set; then
  33998. { $as_echo "$as_me:$LINENO: checking for soundcard.h" >&5
  33999. $as_echo_n "checking for soundcard.h... " >&6; }
  34000. if test "${ac_cv_header_soundcard_h+set}" = set; then
  34001. $as_echo_n "(cached) " >&6
  34002. fi
  34003. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
  34004. $as_echo "$ac_cv_header_soundcard_h" >&6; }
  34005. else
  34006. # Is the header compilable?
  34007. { $as_echo "$as_me:$LINENO: checking soundcard.h usability" >&5
  34008. $as_echo_n "checking soundcard.h usability... " >&6; }
  34009. cat >conftest.$ac_ext <<_ACEOF
  34010. /* confdefs.h. */
  34011. _ACEOF
  34012. cat confdefs.h >>conftest.$ac_ext
  34013. cat >>conftest.$ac_ext <<_ACEOF
  34014. /* end confdefs.h. */
  34015. $ac_includes_default
  34016. #include <soundcard.h>
  34017. _ACEOF
  34018. rm -f conftest.$ac_objext
  34019. if { (ac_try="$ac_compile"
  34020. case "(($ac_try" in
  34021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34022. *) ac_try_echo=$ac_try;;
  34023. esac
  34024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34025. $as_echo "$ac_try_echo") >&5
  34026. (eval "$ac_compile") 2>conftest.er1
  34027. ac_status=$?
  34028. grep -v '^ *+' conftest.er1 >conftest.err
  34029. rm -f conftest.er1
  34030. cat conftest.err >&5
  34031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34032. (exit $ac_status); } && {
  34033. test -z "$ac_c_werror_flag" ||
  34034. test ! -s conftest.err
  34035. } && test -s conftest.$ac_objext; then
  34036. ac_header_compiler=yes
  34037. else
  34038. $as_echo "$as_me: failed program was:" >&5
  34039. sed 's/^/| /' conftest.$ac_ext >&5
  34040. ac_header_compiler=no
  34041. fi
  34042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34043. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34044. $as_echo "$ac_header_compiler" >&6; }
  34045. # Is the header present?
  34046. { $as_echo "$as_me:$LINENO: checking soundcard.h presence" >&5
  34047. $as_echo_n "checking soundcard.h presence... " >&6; }
  34048. cat >conftest.$ac_ext <<_ACEOF
  34049. /* confdefs.h. */
  34050. _ACEOF
  34051. cat confdefs.h >>conftest.$ac_ext
  34052. cat >>conftest.$ac_ext <<_ACEOF
  34053. /* end confdefs.h. */
  34054. #include <soundcard.h>
  34055. _ACEOF
  34056. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34057. case "(($ac_try" in
  34058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34059. *) ac_try_echo=$ac_try;;
  34060. esac
  34061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34062. $as_echo "$ac_try_echo") >&5
  34063. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34064. ac_status=$?
  34065. grep -v '^ *+' conftest.er1 >conftest.err
  34066. rm -f conftest.er1
  34067. cat conftest.err >&5
  34068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34069. (exit $ac_status); } >/dev/null && {
  34070. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34071. test ! -s conftest.err
  34072. }; then
  34073. ac_header_preproc=yes
  34074. else
  34075. $as_echo "$as_me: failed program was:" >&5
  34076. sed 's/^/| /' conftest.$ac_ext >&5
  34077. ac_header_preproc=no
  34078. fi
  34079. rm -f conftest.err conftest.$ac_ext
  34080. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34081. $as_echo "$ac_header_preproc" >&6; }
  34082. # So? What about this header?
  34083. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34084. yes:no: )
  34085. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
  34086. $as_echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34087. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
  34088. $as_echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
  34089. ac_header_preproc=yes
  34090. ;;
  34091. no:yes:* )
  34092. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
  34093. $as_echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
  34094. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
  34095. $as_echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
  34096. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
  34097. $as_echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
  34098. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
  34099. $as_echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
  34100. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
  34101. $as_echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
  34102. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
  34103. $as_echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
  34104. ( cat <<\_ASBOX
  34105. ## ------------------------------------------ ##
  34106. ## Report this to https://issues.asterisk.org ##
  34107. ## ------------------------------------------ ##
  34108. _ASBOX
  34109. ) | sed "s/^/$as_me: WARNING: /" >&2
  34110. ;;
  34111. esac
  34112. { $as_echo "$as_me:$LINENO: checking for soundcard.h" >&5
  34113. $as_echo_n "checking for soundcard.h... " >&6; }
  34114. if test "${ac_cv_header_soundcard_h+set}" = set; then
  34115. $as_echo_n "(cached) " >&6
  34116. else
  34117. ac_cv_header_soundcard_h=$ac_header_preproc
  34118. fi
  34119. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
  34120. $as_echo "$ac_cv_header_soundcard_h" >&6; }
  34121. fi
  34122. if test "x$ac_cv_header_soundcard_h" = x""yes; then
  34123. OSS_HEADER_FOUND=1
  34124. else
  34125. OSS_HEADER_FOUND=0
  34126. fi
  34127. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  34128. fi
  34129. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  34130. OSS_LIB=""
  34131. OSS_INCLUDE=""
  34132. else
  34133. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  34134. OSS_LIB=""
  34135. fi
  34136. PBX_OSS=1
  34137. cat >>confdefs.h <<_ACEOF
  34138. #define HAVE_OSS 1
  34139. _ACEOF
  34140. fi
  34141. fi
  34142. fi
  34143. PG_CONFIG=No
  34144. if test "${USE_PGSQL}" != "no"; then
  34145. if test "x${PGSQL_DIR}" != "x"; then
  34146. if test -n "$ac_tool_prefix"; then
  34147. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  34148. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  34149. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34150. $as_echo_n "checking for $ac_word... " >&6; }
  34151. if test "${ac_cv_path_PG_CONFIG+set}" = set; then
  34152. $as_echo_n "(cached) " >&6
  34153. else
  34154. case $PG_CONFIG in
  34155. [\\/]* | ?:[\\/]*)
  34156. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  34157. ;;
  34158. *)
  34159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34160. for as_dir in ${PGSQL_DIR}/bin
  34161. do
  34162. IFS=$as_save_IFS
  34163. test -z "$as_dir" && as_dir=.
  34164. for ac_exec_ext in '' $ac_executable_extensions; do
  34165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34166. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34167. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34168. break 2
  34169. fi
  34170. done
  34171. done
  34172. IFS=$as_save_IFS
  34173. ;;
  34174. esac
  34175. fi
  34176. PG_CONFIG=$ac_cv_path_PG_CONFIG
  34177. if test -n "$PG_CONFIG"; then
  34178. { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
  34179. $as_echo "$PG_CONFIG" >&6; }
  34180. else
  34181. { $as_echo "$as_me:$LINENO: result: no" >&5
  34182. $as_echo "no" >&6; }
  34183. fi
  34184. fi
  34185. if test -z "$ac_cv_path_PG_CONFIG"; then
  34186. ac_pt_PG_CONFIG=$PG_CONFIG
  34187. # Extract the first word of "pg_config", so it can be a program name with args.
  34188. set dummy pg_config; ac_word=$2
  34189. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34190. $as_echo_n "checking for $ac_word... " >&6; }
  34191. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
  34192. $as_echo_n "(cached) " >&6
  34193. else
  34194. case $ac_pt_PG_CONFIG in
  34195. [\\/]* | ?:[\\/]*)
  34196. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  34197. ;;
  34198. *)
  34199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34200. for as_dir in ${PGSQL_DIR}/bin
  34201. do
  34202. IFS=$as_save_IFS
  34203. test -z "$as_dir" && as_dir=.
  34204. for ac_exec_ext in '' $ac_executable_extensions; do
  34205. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34206. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34207. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34208. break 2
  34209. fi
  34210. done
  34211. done
  34212. IFS=$as_save_IFS
  34213. ;;
  34214. esac
  34215. fi
  34216. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  34217. if test -n "$ac_pt_PG_CONFIG"; then
  34218. { $as_echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
  34219. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  34220. else
  34221. { $as_echo "$as_me:$LINENO: result: no" >&5
  34222. $as_echo "no" >&6; }
  34223. fi
  34224. if test "x$ac_pt_PG_CONFIG" = x; then
  34225. PG_CONFIG="No"
  34226. else
  34227. case $cross_compiling:$ac_tool_warned in
  34228. yes:)
  34229. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  34230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34231. ac_tool_warned=yes ;;
  34232. esac
  34233. PG_CONFIG=$ac_pt_PG_CONFIG
  34234. fi
  34235. else
  34236. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  34237. fi
  34238. if test x"${PG_CONFIG}" = xNo; then
  34239. { $as_echo "$as_me:$LINENO: ***" >&5
  34240. $as_echo "$as_me: ***" >&6;}
  34241. { $as_echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
  34242. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  34243. { $as_echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
  34244. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  34245. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  34246. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  34247. { $as_echo "$as_me:$LINENO: *** including --without-postgres" >&5
  34248. $as_echo "$as_me: *** including --without-postgres" >&6;}
  34249. exit 1
  34250. fi
  34251. else
  34252. if test -n "$ac_tool_prefix"; then
  34253. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  34254. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  34255. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34256. $as_echo_n "checking for $ac_word... " >&6; }
  34257. if test "${ac_cv_path_PG_CONFIG+set}" = set; then
  34258. $as_echo_n "(cached) " >&6
  34259. else
  34260. case $PG_CONFIG in
  34261. [\\/]* | ?:[\\/]*)
  34262. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  34263. ;;
  34264. *)
  34265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34266. for as_dir in $PATH
  34267. do
  34268. IFS=$as_save_IFS
  34269. test -z "$as_dir" && as_dir=.
  34270. for ac_exec_ext in '' $ac_executable_extensions; do
  34271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34272. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34273. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34274. break 2
  34275. fi
  34276. done
  34277. done
  34278. IFS=$as_save_IFS
  34279. ;;
  34280. esac
  34281. fi
  34282. PG_CONFIG=$ac_cv_path_PG_CONFIG
  34283. if test -n "$PG_CONFIG"; then
  34284. { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
  34285. $as_echo "$PG_CONFIG" >&6; }
  34286. else
  34287. { $as_echo "$as_me:$LINENO: result: no" >&5
  34288. $as_echo "no" >&6; }
  34289. fi
  34290. fi
  34291. if test -z "$ac_cv_path_PG_CONFIG"; then
  34292. ac_pt_PG_CONFIG=$PG_CONFIG
  34293. # Extract the first word of "pg_config", so it can be a program name with args.
  34294. set dummy pg_config; ac_word=$2
  34295. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34296. $as_echo_n "checking for $ac_word... " >&6; }
  34297. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
  34298. $as_echo_n "(cached) " >&6
  34299. else
  34300. case $ac_pt_PG_CONFIG in
  34301. [\\/]* | ?:[\\/]*)
  34302. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  34303. ;;
  34304. *)
  34305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34306. for as_dir in $PATH
  34307. do
  34308. IFS=$as_save_IFS
  34309. test -z "$as_dir" && as_dir=.
  34310. for ac_exec_ext in '' $ac_executable_extensions; do
  34311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34312. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34313. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34314. break 2
  34315. fi
  34316. done
  34317. done
  34318. IFS=$as_save_IFS
  34319. ;;
  34320. esac
  34321. fi
  34322. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  34323. if test -n "$ac_pt_PG_CONFIG"; then
  34324. { $as_echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
  34325. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  34326. else
  34327. { $as_echo "$as_me:$LINENO: result: no" >&5
  34328. $as_echo "no" >&6; }
  34329. fi
  34330. if test "x$ac_pt_PG_CONFIG" = x; then
  34331. PG_CONFIG="No"
  34332. else
  34333. case $cross_compiling:$ac_tool_warned in
  34334. yes:)
  34335. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  34336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34337. ac_tool_warned=yes ;;
  34338. esac
  34339. PG_CONFIG=$ac_pt_PG_CONFIG
  34340. fi
  34341. else
  34342. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  34343. fi
  34344. fi
  34345. fi
  34346. if test "${PG_CONFIG}" != No; then
  34347. PGSQL_libdir=`${PG_CONFIG} --libdir`
  34348. PGSQL_includedir=`${PG_CONFIG} --includedir`
  34349. if test "x$?" != "x0" ; then
  34350. if test -n "${PGSQL_MANDATORY}" ; then
  34351. { $as_echo "$as_me:$LINENO: ***" >&5
  34352. $as_echo "$as_me: ***" >&6;}
  34353. { $as_echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
  34354. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  34355. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  34356. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  34357. { $as_echo "$as_me:$LINENO: *** including --without-postgres" >&5
  34358. $as_echo "$as_me: *** including --without-postgres" >&6;}
  34359. exit 1
  34360. fi
  34361. else
  34362. { $as_echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
  34363. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  34364. if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
  34365. $as_echo_n "(cached) " >&6
  34366. else
  34367. ac_check_lib_save_LIBS=$LIBS
  34368. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  34369. cat >conftest.$ac_ext <<_ACEOF
  34370. /* confdefs.h. */
  34371. _ACEOF
  34372. cat confdefs.h >>conftest.$ac_ext
  34373. cat >>conftest.$ac_ext <<_ACEOF
  34374. /* end confdefs.h. */
  34375. /* Override any GCC internal prototype to avoid an error.
  34376. Use char because int might match the return type of a GCC
  34377. builtin and then its argument prototype would still apply. */
  34378. #ifdef __cplusplus
  34379. extern "C"
  34380. #endif
  34381. char PQescapeStringConn ();
  34382. int
  34383. main ()
  34384. {
  34385. return PQescapeStringConn ();
  34386. ;
  34387. return 0;
  34388. }
  34389. _ACEOF
  34390. rm -f conftest.$ac_objext conftest$ac_exeext
  34391. if { (ac_try="$ac_link"
  34392. case "(($ac_try" in
  34393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34394. *) ac_try_echo=$ac_try;;
  34395. esac
  34396. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34397. $as_echo "$ac_try_echo") >&5
  34398. (eval "$ac_link") 2>conftest.er1
  34399. ac_status=$?
  34400. grep -v '^ *+' conftest.er1 >conftest.err
  34401. rm -f conftest.er1
  34402. cat conftest.err >&5
  34403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34404. (exit $ac_status); } && {
  34405. test -z "$ac_c_werror_flag" ||
  34406. test ! -s conftest.err
  34407. } && test -s conftest$ac_exeext && {
  34408. test "$cross_compiling" = yes ||
  34409. $as_test_x conftest$ac_exeext
  34410. }; then
  34411. ac_cv_lib_pq_PQescapeStringConn=yes
  34412. else
  34413. $as_echo "$as_me: failed program was:" >&5
  34414. sed 's/^/| /' conftest.$ac_ext >&5
  34415. ac_cv_lib_pq_PQescapeStringConn=no
  34416. fi
  34417. rm -rf conftest.dSYM
  34418. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34419. conftest$ac_exeext conftest.$ac_ext
  34420. LIBS=$ac_check_lib_save_LIBS
  34421. fi
  34422. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  34423. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  34424. if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then
  34425. cat >>confdefs.h <<_ACEOF
  34426. #define HAVE_PGSQL 1
  34427. _ACEOF
  34428. fi
  34429. { $as_echo "$as_me:$LINENO: checking for pg_encoding_to_char within Postgres headers" >&5
  34430. $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  34431. old_CFLAGS=${CFLAGS}
  34432. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  34433. old_LDFLAGS=${LDFLAGS}
  34434. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  34435. cat >conftest.$ac_ext <<_ACEOF
  34436. /* confdefs.h. */
  34437. _ACEOF
  34438. cat confdefs.h >>conftest.$ac_ext
  34439. cat >>conftest.$ac_ext <<_ACEOF
  34440. /* end confdefs.h. */
  34441. #include <libpq-fe.h>
  34442. int
  34443. main ()
  34444. {
  34445. const char *foo = pg_encoding_to_char(1)
  34446. ;
  34447. return 0;
  34448. }
  34449. _ACEOF
  34450. rm -f conftest.$ac_objext conftest$ac_exeext
  34451. if { (ac_try="$ac_link"
  34452. case "(($ac_try" in
  34453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34454. *) ac_try_echo=$ac_try;;
  34455. esac
  34456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34457. $as_echo "$ac_try_echo") >&5
  34458. (eval "$ac_link") 2>conftest.er1
  34459. ac_status=$?
  34460. grep -v '^ *+' conftest.er1 >conftest.err
  34461. rm -f conftest.er1
  34462. cat conftest.err >&5
  34463. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34464. (exit $ac_status); } && {
  34465. test -z "$ac_c_werror_flag" ||
  34466. test ! -s conftest.err
  34467. } && test -s conftest$ac_exeext && {
  34468. test "$cross_compiling" = yes ||
  34469. $as_test_x conftest$ac_exeext
  34470. }; then
  34471. { $as_echo "$as_me:$LINENO: result: yes" >&5
  34472. $as_echo "yes" >&6; }
  34473. cat >>confdefs.h <<_ACEOF
  34474. #define HAVE_PGSQL_pg_encoding_to_char 1
  34475. _ACEOF
  34476. else
  34477. $as_echo "$as_me: failed program was:" >&5
  34478. sed 's/^/| /' conftest.$ac_ext >&5
  34479. { $as_echo "$as_me:$LINENO: result: no" >&5
  34480. $as_echo "no" >&6; }
  34481. fi
  34482. rm -rf conftest.dSYM
  34483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34484. conftest$ac_exeext conftest.$ac_ext
  34485. CFLAGS=${old_CFLAGS}
  34486. LDFLAGS=${old_LDFLAGS}
  34487. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  34488. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  34489. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  34490. PBX_PGSQL=1
  34491. elif test -n "${PGSQL_MANDATORY}";
  34492. then
  34493. { $as_echo "$as_me:$LINENO: ***" >&5
  34494. $as_echo "$as_me: ***" >&6;}
  34495. { $as_echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
  34496. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  34497. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  34498. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  34499. { $as_echo "$as_me:$LINENO: *** including --without-postgres" >&5
  34500. $as_echo "$as_me: *** including --without-postgres" >&6;}
  34501. exit 1
  34502. fi
  34503. fi
  34504. fi
  34505. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  34506. pbxlibdir=""
  34507. # if --with-POPT=DIR has been specified, use it.
  34508. if test "x${POPT_DIR}" != "x"; then
  34509. if test -d ${POPT_DIR}/lib; then
  34510. pbxlibdir="-L${POPT_DIR}/lib"
  34511. else
  34512. pbxlibdir="-L${POPT_DIR}"
  34513. fi
  34514. fi
  34515. pbxfuncname="poptStrerror"
  34516. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  34517. AST_POPT_FOUND=yes
  34518. else
  34519. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  34520. CFLAGS="${CFLAGS} "
  34521. as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
  34522. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
  34523. $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
  34524. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  34525. $as_echo_n "(cached) " >&6
  34526. else
  34527. ac_check_lib_save_LIBS=$LIBS
  34528. LIBS="-lpopt ${pbxlibdir} $LIBS"
  34529. cat >conftest.$ac_ext <<_ACEOF
  34530. /* confdefs.h. */
  34531. _ACEOF
  34532. cat confdefs.h >>conftest.$ac_ext
  34533. cat >>conftest.$ac_ext <<_ACEOF
  34534. /* end confdefs.h. */
  34535. /* Override any GCC internal prototype to avoid an error.
  34536. Use char because int might match the return type of a GCC
  34537. builtin and then its argument prototype would still apply. */
  34538. #ifdef __cplusplus
  34539. extern "C"
  34540. #endif
  34541. char ${pbxfuncname} ();
  34542. int
  34543. main ()
  34544. {
  34545. return ${pbxfuncname} ();
  34546. ;
  34547. return 0;
  34548. }
  34549. _ACEOF
  34550. rm -f conftest.$ac_objext conftest$ac_exeext
  34551. if { (ac_try="$ac_link"
  34552. case "(($ac_try" in
  34553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34554. *) ac_try_echo=$ac_try;;
  34555. esac
  34556. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34557. $as_echo "$ac_try_echo") >&5
  34558. (eval "$ac_link") 2>conftest.er1
  34559. ac_status=$?
  34560. grep -v '^ *+' conftest.er1 >conftest.err
  34561. rm -f conftest.er1
  34562. cat conftest.err >&5
  34563. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34564. (exit $ac_status); } && {
  34565. test -z "$ac_c_werror_flag" ||
  34566. test ! -s conftest.err
  34567. } && test -s conftest$ac_exeext && {
  34568. test "$cross_compiling" = yes ||
  34569. $as_test_x conftest$ac_exeext
  34570. }; then
  34571. eval "$as_ac_Lib=yes"
  34572. else
  34573. $as_echo "$as_me: failed program was:" >&5
  34574. sed 's/^/| /' conftest.$ac_ext >&5
  34575. eval "$as_ac_Lib=no"
  34576. fi
  34577. rm -rf conftest.dSYM
  34578. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34579. conftest$ac_exeext conftest.$ac_ext
  34580. LIBS=$ac_check_lib_save_LIBS
  34581. fi
  34582. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  34583. $as_echo "$as_val"'`
  34584. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  34585. $as_echo "$ac_res" >&6; }
  34586. as_val=`eval 'as_val=${'$as_ac_Lib'}
  34587. $as_echo "$as_val"'`
  34588. if test "x$as_val" = x""yes; then
  34589. AST_POPT_FOUND=yes
  34590. else
  34591. AST_POPT_FOUND=no
  34592. fi
  34593. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  34594. fi
  34595. # now check for the header.
  34596. if test "${AST_POPT_FOUND}" = "yes"; then
  34597. POPT_LIB="${pbxlibdir} -lpopt "
  34598. # if --with-POPT=DIR has been specified, use it.
  34599. if test "x${POPT_DIR}" != "x"; then
  34600. POPT_INCLUDE="-I${POPT_DIR}/include"
  34601. fi
  34602. POPT_INCLUDE="${POPT_INCLUDE} "
  34603. if test "xpopt.h" = "x" ; then # no header, assume found
  34604. POPT_HEADER_FOUND="1"
  34605. else # check for the header
  34606. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  34607. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  34608. if test "${ac_cv_header_popt_h+set}" = set; then
  34609. { $as_echo "$as_me:$LINENO: checking for popt.h" >&5
  34610. $as_echo_n "checking for popt.h... " >&6; }
  34611. if test "${ac_cv_header_popt_h+set}" = set; then
  34612. $as_echo_n "(cached) " >&6
  34613. fi
  34614. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
  34615. $as_echo "$ac_cv_header_popt_h" >&6; }
  34616. else
  34617. # Is the header compilable?
  34618. { $as_echo "$as_me:$LINENO: checking popt.h usability" >&5
  34619. $as_echo_n "checking popt.h usability... " >&6; }
  34620. cat >conftest.$ac_ext <<_ACEOF
  34621. /* confdefs.h. */
  34622. _ACEOF
  34623. cat confdefs.h >>conftest.$ac_ext
  34624. cat >>conftest.$ac_ext <<_ACEOF
  34625. /* end confdefs.h. */
  34626. $ac_includes_default
  34627. #include <popt.h>
  34628. _ACEOF
  34629. rm -f conftest.$ac_objext
  34630. if { (ac_try="$ac_compile"
  34631. case "(($ac_try" in
  34632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34633. *) ac_try_echo=$ac_try;;
  34634. esac
  34635. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34636. $as_echo "$ac_try_echo") >&5
  34637. (eval "$ac_compile") 2>conftest.er1
  34638. ac_status=$?
  34639. grep -v '^ *+' conftest.er1 >conftest.err
  34640. rm -f conftest.er1
  34641. cat conftest.err >&5
  34642. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34643. (exit $ac_status); } && {
  34644. test -z "$ac_c_werror_flag" ||
  34645. test ! -s conftest.err
  34646. } && test -s conftest.$ac_objext; then
  34647. ac_header_compiler=yes
  34648. else
  34649. $as_echo "$as_me: failed program was:" >&5
  34650. sed 's/^/| /' conftest.$ac_ext >&5
  34651. ac_header_compiler=no
  34652. fi
  34653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34654. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34655. $as_echo "$ac_header_compiler" >&6; }
  34656. # Is the header present?
  34657. { $as_echo "$as_me:$LINENO: checking popt.h presence" >&5
  34658. $as_echo_n "checking popt.h presence... " >&6; }
  34659. cat >conftest.$ac_ext <<_ACEOF
  34660. /* confdefs.h. */
  34661. _ACEOF
  34662. cat confdefs.h >>conftest.$ac_ext
  34663. cat >>conftest.$ac_ext <<_ACEOF
  34664. /* end confdefs.h. */
  34665. #include <popt.h>
  34666. _ACEOF
  34667. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34668. case "(($ac_try" in
  34669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34670. *) ac_try_echo=$ac_try;;
  34671. esac
  34672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34673. $as_echo "$ac_try_echo") >&5
  34674. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34675. ac_status=$?
  34676. grep -v '^ *+' conftest.er1 >conftest.err
  34677. rm -f conftest.er1
  34678. cat conftest.err >&5
  34679. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34680. (exit $ac_status); } >/dev/null && {
  34681. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34682. test ! -s conftest.err
  34683. }; then
  34684. ac_header_preproc=yes
  34685. else
  34686. $as_echo "$as_me: failed program was:" >&5
  34687. sed 's/^/| /' conftest.$ac_ext >&5
  34688. ac_header_preproc=no
  34689. fi
  34690. rm -f conftest.err conftest.$ac_ext
  34691. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34692. $as_echo "$ac_header_preproc" >&6; }
  34693. # So? What about this header?
  34694. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34695. yes:no: )
  34696. { $as_echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
  34697. $as_echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34698. { $as_echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
  34699. $as_echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
  34700. ac_header_preproc=yes
  34701. ;;
  34702. no:yes:* )
  34703. { $as_echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
  34704. $as_echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
  34705. { $as_echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
  34706. $as_echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
  34707. { $as_echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
  34708. $as_echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
  34709. { $as_echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
  34710. $as_echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
  34711. { $as_echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
  34712. $as_echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
  34713. { $as_echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
  34714. $as_echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
  34715. ( cat <<\_ASBOX
  34716. ## ------------------------------------------ ##
  34717. ## Report this to https://issues.asterisk.org ##
  34718. ## ------------------------------------------ ##
  34719. _ASBOX
  34720. ) | sed "s/^/$as_me: WARNING: /" >&2
  34721. ;;
  34722. esac
  34723. { $as_echo "$as_me:$LINENO: checking for popt.h" >&5
  34724. $as_echo_n "checking for popt.h... " >&6; }
  34725. if test "${ac_cv_header_popt_h+set}" = set; then
  34726. $as_echo_n "(cached) " >&6
  34727. else
  34728. ac_cv_header_popt_h=$ac_header_preproc
  34729. fi
  34730. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
  34731. $as_echo "$ac_cv_header_popt_h" >&6; }
  34732. fi
  34733. if test "x$ac_cv_header_popt_h" = x""yes; then
  34734. POPT_HEADER_FOUND=1
  34735. else
  34736. POPT_HEADER_FOUND=0
  34737. fi
  34738. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  34739. fi
  34740. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  34741. POPT_LIB=""
  34742. POPT_INCLUDE=""
  34743. else
  34744. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  34745. POPT_LIB=""
  34746. fi
  34747. PBX_POPT=1
  34748. cat >>confdefs.h <<_ACEOF
  34749. #define HAVE_POPT 1
  34750. _ACEOF
  34751. fi
  34752. fi
  34753. fi
  34754. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  34755. pbxlibdir=""
  34756. # if --with-PORTAUDIO=DIR has been specified, use it.
  34757. if test "x${PORTAUDIO_DIR}" != "x"; then
  34758. if test -d ${PORTAUDIO_DIR}/lib; then
  34759. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  34760. else
  34761. pbxlibdir="-L${PORTAUDIO_DIR}"
  34762. fi
  34763. fi
  34764. pbxfuncname="Pa_GetDeviceCount"
  34765. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  34766. AST_PORTAUDIO_FOUND=yes
  34767. else
  34768. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  34769. CFLAGS="${CFLAGS} "
  34770. as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
  34771. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
  34772. $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
  34773. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  34774. $as_echo_n "(cached) " >&6
  34775. else
  34776. ac_check_lib_save_LIBS=$LIBS
  34777. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  34778. cat >conftest.$ac_ext <<_ACEOF
  34779. /* confdefs.h. */
  34780. _ACEOF
  34781. cat confdefs.h >>conftest.$ac_ext
  34782. cat >>conftest.$ac_ext <<_ACEOF
  34783. /* end confdefs.h. */
  34784. /* Override any GCC internal prototype to avoid an error.
  34785. Use char because int might match the return type of a GCC
  34786. builtin and then its argument prototype would still apply. */
  34787. #ifdef __cplusplus
  34788. extern "C"
  34789. #endif
  34790. char ${pbxfuncname} ();
  34791. int
  34792. main ()
  34793. {
  34794. return ${pbxfuncname} ();
  34795. ;
  34796. return 0;
  34797. }
  34798. _ACEOF
  34799. rm -f conftest.$ac_objext conftest$ac_exeext
  34800. if { (ac_try="$ac_link"
  34801. case "(($ac_try" in
  34802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34803. *) ac_try_echo=$ac_try;;
  34804. esac
  34805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34806. $as_echo "$ac_try_echo") >&5
  34807. (eval "$ac_link") 2>conftest.er1
  34808. ac_status=$?
  34809. grep -v '^ *+' conftest.er1 >conftest.err
  34810. rm -f conftest.er1
  34811. cat conftest.err >&5
  34812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34813. (exit $ac_status); } && {
  34814. test -z "$ac_c_werror_flag" ||
  34815. test ! -s conftest.err
  34816. } && test -s conftest$ac_exeext && {
  34817. test "$cross_compiling" = yes ||
  34818. $as_test_x conftest$ac_exeext
  34819. }; then
  34820. eval "$as_ac_Lib=yes"
  34821. else
  34822. $as_echo "$as_me: failed program was:" >&5
  34823. sed 's/^/| /' conftest.$ac_ext >&5
  34824. eval "$as_ac_Lib=no"
  34825. fi
  34826. rm -rf conftest.dSYM
  34827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34828. conftest$ac_exeext conftest.$ac_ext
  34829. LIBS=$ac_check_lib_save_LIBS
  34830. fi
  34831. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  34832. $as_echo "$as_val"'`
  34833. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  34834. $as_echo "$ac_res" >&6; }
  34835. as_val=`eval 'as_val=${'$as_ac_Lib'}
  34836. $as_echo "$as_val"'`
  34837. if test "x$as_val" = x""yes; then
  34838. AST_PORTAUDIO_FOUND=yes
  34839. else
  34840. AST_PORTAUDIO_FOUND=no
  34841. fi
  34842. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  34843. fi
  34844. # now check for the header.
  34845. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  34846. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  34847. # if --with-PORTAUDIO=DIR has been specified, use it.
  34848. if test "x${PORTAUDIO_DIR}" != "x"; then
  34849. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  34850. fi
  34851. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  34852. if test "xportaudio.h" = "x" ; then # no header, assume found
  34853. PORTAUDIO_HEADER_FOUND="1"
  34854. else # check for the header
  34855. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  34856. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  34857. if test "${ac_cv_header_portaudio_h+set}" = set; then
  34858. { $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
  34859. $as_echo_n "checking for portaudio.h... " >&6; }
  34860. if test "${ac_cv_header_portaudio_h+set}" = set; then
  34861. $as_echo_n "(cached) " >&6
  34862. fi
  34863. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
  34864. $as_echo "$ac_cv_header_portaudio_h" >&6; }
  34865. else
  34866. # Is the header compilable?
  34867. { $as_echo "$as_me:$LINENO: checking portaudio.h usability" >&5
  34868. $as_echo_n "checking portaudio.h usability... " >&6; }
  34869. cat >conftest.$ac_ext <<_ACEOF
  34870. /* confdefs.h. */
  34871. _ACEOF
  34872. cat confdefs.h >>conftest.$ac_ext
  34873. cat >>conftest.$ac_ext <<_ACEOF
  34874. /* end confdefs.h. */
  34875. $ac_includes_default
  34876. #include <portaudio.h>
  34877. _ACEOF
  34878. rm -f conftest.$ac_objext
  34879. if { (ac_try="$ac_compile"
  34880. case "(($ac_try" in
  34881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34882. *) ac_try_echo=$ac_try;;
  34883. esac
  34884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34885. $as_echo "$ac_try_echo") >&5
  34886. (eval "$ac_compile") 2>conftest.er1
  34887. ac_status=$?
  34888. grep -v '^ *+' conftest.er1 >conftest.err
  34889. rm -f conftest.er1
  34890. cat conftest.err >&5
  34891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34892. (exit $ac_status); } && {
  34893. test -z "$ac_c_werror_flag" ||
  34894. test ! -s conftest.err
  34895. } && test -s conftest.$ac_objext; then
  34896. ac_header_compiler=yes
  34897. else
  34898. $as_echo "$as_me: failed program was:" >&5
  34899. sed 's/^/| /' conftest.$ac_ext >&5
  34900. ac_header_compiler=no
  34901. fi
  34902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34903. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34904. $as_echo "$ac_header_compiler" >&6; }
  34905. # Is the header present?
  34906. { $as_echo "$as_me:$LINENO: checking portaudio.h presence" >&5
  34907. $as_echo_n "checking portaudio.h presence... " >&6; }
  34908. cat >conftest.$ac_ext <<_ACEOF
  34909. /* confdefs.h. */
  34910. _ACEOF
  34911. cat confdefs.h >>conftest.$ac_ext
  34912. cat >>conftest.$ac_ext <<_ACEOF
  34913. /* end confdefs.h. */
  34914. #include <portaudio.h>
  34915. _ACEOF
  34916. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34917. case "(($ac_try" in
  34918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34919. *) ac_try_echo=$ac_try;;
  34920. esac
  34921. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34922. $as_echo "$ac_try_echo") >&5
  34923. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34924. ac_status=$?
  34925. grep -v '^ *+' conftest.er1 >conftest.err
  34926. rm -f conftest.er1
  34927. cat conftest.err >&5
  34928. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34929. (exit $ac_status); } >/dev/null && {
  34930. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34931. test ! -s conftest.err
  34932. }; then
  34933. ac_header_preproc=yes
  34934. else
  34935. $as_echo "$as_me: failed program was:" >&5
  34936. sed 's/^/| /' conftest.$ac_ext >&5
  34937. ac_header_preproc=no
  34938. fi
  34939. rm -f conftest.err conftest.$ac_ext
  34940. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34941. $as_echo "$ac_header_preproc" >&6; }
  34942. # So? What about this header?
  34943. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34944. yes:no: )
  34945. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  34946. $as_echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34947. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
  34948. $as_echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
  34949. ac_header_preproc=yes
  34950. ;;
  34951. no:yes:* )
  34952. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
  34953. $as_echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
  34954. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
  34955. $as_echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
  34956. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
  34957. $as_echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
  34958. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
  34959. $as_echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
  34960. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
  34961. $as_echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
  34962. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
  34963. $as_echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
  34964. ( cat <<\_ASBOX
  34965. ## ------------------------------------------ ##
  34966. ## Report this to https://issues.asterisk.org ##
  34967. ## ------------------------------------------ ##
  34968. _ASBOX
  34969. ) | sed "s/^/$as_me: WARNING: /" >&2
  34970. ;;
  34971. esac
  34972. { $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
  34973. $as_echo_n "checking for portaudio.h... " >&6; }
  34974. if test "${ac_cv_header_portaudio_h+set}" = set; then
  34975. $as_echo_n "(cached) " >&6
  34976. else
  34977. ac_cv_header_portaudio_h=$ac_header_preproc
  34978. fi
  34979. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
  34980. $as_echo "$ac_cv_header_portaudio_h" >&6; }
  34981. fi
  34982. if test "x$ac_cv_header_portaudio_h" = x""yes; then
  34983. PORTAUDIO_HEADER_FOUND=1
  34984. else
  34985. PORTAUDIO_HEADER_FOUND=0
  34986. fi
  34987. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  34988. fi
  34989. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  34990. PORTAUDIO_LIB=""
  34991. PORTAUDIO_INCLUDE=""
  34992. else
  34993. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  34994. PORTAUDIO_LIB=""
  34995. fi
  34996. PBX_PORTAUDIO=1
  34997. cat >>confdefs.h <<_ACEOF
  34998. #define HAVE_PORTAUDIO 1
  34999. _ACEOF
  35000. fi
  35001. fi
  35002. fi
  35003. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  35004. pbxlibdir=""
  35005. # if --with-PRI=DIR has been specified, use it.
  35006. if test "x${PRI_DIR}" != "x"; then
  35007. if test -d ${PRI_DIR}/lib; then
  35008. pbxlibdir="-L${PRI_DIR}/lib"
  35009. else
  35010. pbxlibdir="-L${PRI_DIR}"
  35011. fi
  35012. fi
  35013. pbxfuncname="pri_connected_line_update"
  35014. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35015. AST_PRI_FOUND=yes
  35016. else
  35017. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35018. CFLAGS="${CFLAGS} "
  35019. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  35020. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  35021. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  35022. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35023. $as_echo_n "(cached) " >&6
  35024. else
  35025. ac_check_lib_save_LIBS=$LIBS
  35026. LIBS="-lpri ${pbxlibdir} $LIBS"
  35027. cat >conftest.$ac_ext <<_ACEOF
  35028. /* confdefs.h. */
  35029. _ACEOF
  35030. cat confdefs.h >>conftest.$ac_ext
  35031. cat >>conftest.$ac_ext <<_ACEOF
  35032. /* end confdefs.h. */
  35033. /* Override any GCC internal prototype to avoid an error.
  35034. Use char because int might match the return type of a GCC
  35035. builtin and then its argument prototype would still apply. */
  35036. #ifdef __cplusplus
  35037. extern "C"
  35038. #endif
  35039. char ${pbxfuncname} ();
  35040. int
  35041. main ()
  35042. {
  35043. return ${pbxfuncname} ();
  35044. ;
  35045. return 0;
  35046. }
  35047. _ACEOF
  35048. rm -f conftest.$ac_objext conftest$ac_exeext
  35049. if { (ac_try="$ac_link"
  35050. case "(($ac_try" in
  35051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35052. *) ac_try_echo=$ac_try;;
  35053. esac
  35054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35055. $as_echo "$ac_try_echo") >&5
  35056. (eval "$ac_link") 2>conftest.er1
  35057. ac_status=$?
  35058. grep -v '^ *+' conftest.er1 >conftest.err
  35059. rm -f conftest.er1
  35060. cat conftest.err >&5
  35061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35062. (exit $ac_status); } && {
  35063. test -z "$ac_c_werror_flag" ||
  35064. test ! -s conftest.err
  35065. } && test -s conftest$ac_exeext && {
  35066. test "$cross_compiling" = yes ||
  35067. $as_test_x conftest$ac_exeext
  35068. }; then
  35069. eval "$as_ac_Lib=yes"
  35070. else
  35071. $as_echo "$as_me: failed program was:" >&5
  35072. sed 's/^/| /' conftest.$ac_ext >&5
  35073. eval "$as_ac_Lib=no"
  35074. fi
  35075. rm -rf conftest.dSYM
  35076. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35077. conftest$ac_exeext conftest.$ac_ext
  35078. LIBS=$ac_check_lib_save_LIBS
  35079. fi
  35080. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35081. $as_echo "$as_val"'`
  35082. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35083. $as_echo "$ac_res" >&6; }
  35084. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35085. $as_echo "$as_val"'`
  35086. if test "x$as_val" = x""yes; then
  35087. AST_PRI_FOUND=yes
  35088. else
  35089. AST_PRI_FOUND=no
  35090. fi
  35091. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35092. fi
  35093. # now check for the header.
  35094. if test "${AST_PRI_FOUND}" = "yes"; then
  35095. PRI_LIB="${pbxlibdir} -lpri "
  35096. # if --with-PRI=DIR has been specified, use it.
  35097. if test "x${PRI_DIR}" != "x"; then
  35098. PRI_INCLUDE="-I${PRI_DIR}/include"
  35099. fi
  35100. PRI_INCLUDE="${PRI_INCLUDE} "
  35101. if test "xlibpri.h" = "x" ; then # no header, assume found
  35102. PRI_HEADER_FOUND="1"
  35103. else # check for the header
  35104. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35105. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  35106. if test "${ac_cv_header_libpri_h+set}" = set; then
  35107. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35108. $as_echo_n "checking for libpri.h... " >&6; }
  35109. if test "${ac_cv_header_libpri_h+set}" = set; then
  35110. $as_echo_n "(cached) " >&6
  35111. fi
  35112. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35113. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35114. else
  35115. # Is the header compilable?
  35116. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  35117. $as_echo_n "checking libpri.h usability... " >&6; }
  35118. cat >conftest.$ac_ext <<_ACEOF
  35119. /* confdefs.h. */
  35120. _ACEOF
  35121. cat confdefs.h >>conftest.$ac_ext
  35122. cat >>conftest.$ac_ext <<_ACEOF
  35123. /* end confdefs.h. */
  35124. $ac_includes_default
  35125. #include <libpri.h>
  35126. _ACEOF
  35127. rm -f conftest.$ac_objext
  35128. if { (ac_try="$ac_compile"
  35129. case "(($ac_try" in
  35130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35131. *) ac_try_echo=$ac_try;;
  35132. esac
  35133. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35134. $as_echo "$ac_try_echo") >&5
  35135. (eval "$ac_compile") 2>conftest.er1
  35136. ac_status=$?
  35137. grep -v '^ *+' conftest.er1 >conftest.err
  35138. rm -f conftest.er1
  35139. cat conftest.err >&5
  35140. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35141. (exit $ac_status); } && {
  35142. test -z "$ac_c_werror_flag" ||
  35143. test ! -s conftest.err
  35144. } && test -s conftest.$ac_objext; then
  35145. ac_header_compiler=yes
  35146. else
  35147. $as_echo "$as_me: failed program was:" >&5
  35148. sed 's/^/| /' conftest.$ac_ext >&5
  35149. ac_header_compiler=no
  35150. fi
  35151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35152. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35153. $as_echo "$ac_header_compiler" >&6; }
  35154. # Is the header present?
  35155. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  35156. $as_echo_n "checking libpri.h presence... " >&6; }
  35157. cat >conftest.$ac_ext <<_ACEOF
  35158. /* confdefs.h. */
  35159. _ACEOF
  35160. cat confdefs.h >>conftest.$ac_ext
  35161. cat >>conftest.$ac_ext <<_ACEOF
  35162. /* end confdefs.h. */
  35163. #include <libpri.h>
  35164. _ACEOF
  35165. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35166. case "(($ac_try" in
  35167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35168. *) ac_try_echo=$ac_try;;
  35169. esac
  35170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35171. $as_echo "$ac_try_echo") >&5
  35172. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35173. ac_status=$?
  35174. grep -v '^ *+' conftest.er1 >conftest.err
  35175. rm -f conftest.er1
  35176. cat conftest.err >&5
  35177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35178. (exit $ac_status); } >/dev/null && {
  35179. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35180. test ! -s conftest.err
  35181. }; then
  35182. ac_header_preproc=yes
  35183. else
  35184. $as_echo "$as_me: failed program was:" >&5
  35185. sed 's/^/| /' conftest.$ac_ext >&5
  35186. ac_header_preproc=no
  35187. fi
  35188. rm -f conftest.err conftest.$ac_ext
  35189. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35190. $as_echo "$ac_header_preproc" >&6; }
  35191. # So? What about this header?
  35192. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35193. yes:no: )
  35194. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35195. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35196. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  35197. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  35198. ac_header_preproc=yes
  35199. ;;
  35200. no:yes:* )
  35201. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  35202. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  35203. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  35204. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  35205. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  35206. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  35207. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  35208. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35209. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  35210. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  35211. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  35212. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  35213. ( cat <<\_ASBOX
  35214. ## ------------------------------------------ ##
  35215. ## Report this to https://issues.asterisk.org ##
  35216. ## ------------------------------------------ ##
  35217. _ASBOX
  35218. ) | sed "s/^/$as_me: WARNING: /" >&2
  35219. ;;
  35220. esac
  35221. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35222. $as_echo_n "checking for libpri.h... " >&6; }
  35223. if test "${ac_cv_header_libpri_h+set}" = set; then
  35224. $as_echo_n "(cached) " >&6
  35225. else
  35226. ac_cv_header_libpri_h=$ac_header_preproc
  35227. fi
  35228. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35229. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35230. fi
  35231. if test "x$ac_cv_header_libpri_h" = x""yes; then
  35232. PRI_HEADER_FOUND=1
  35233. else
  35234. PRI_HEADER_FOUND=0
  35235. fi
  35236. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35237. fi
  35238. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  35239. PRI_LIB=""
  35240. PRI_INCLUDE=""
  35241. else
  35242. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35243. PRI_LIB=""
  35244. fi
  35245. PBX_PRI=1
  35246. cat >>confdefs.h <<_ACEOF
  35247. #define HAVE_PRI 1
  35248. _ACEOF
  35249. fi
  35250. fi
  35251. fi
  35252. if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
  35253. pbxlibdir=""
  35254. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  35255. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  35256. if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
  35257. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
  35258. else
  35259. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
  35260. fi
  35261. fi
  35262. pbxfuncname="pri_persistent_layer2_option"
  35263. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35264. AST_PRI_L2_PERSISTENCE_FOUND=yes
  35265. else
  35266. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35267. CFLAGS="${CFLAGS} "
  35268. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  35269. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  35270. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  35271. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35272. $as_echo_n "(cached) " >&6
  35273. else
  35274. ac_check_lib_save_LIBS=$LIBS
  35275. LIBS="-lpri ${pbxlibdir} $LIBS"
  35276. cat >conftest.$ac_ext <<_ACEOF
  35277. /* confdefs.h. */
  35278. _ACEOF
  35279. cat confdefs.h >>conftest.$ac_ext
  35280. cat >>conftest.$ac_ext <<_ACEOF
  35281. /* end confdefs.h. */
  35282. /* Override any GCC internal prototype to avoid an error.
  35283. Use char because int might match the return type of a GCC
  35284. builtin and then its argument prototype would still apply. */
  35285. #ifdef __cplusplus
  35286. extern "C"
  35287. #endif
  35288. char ${pbxfuncname} ();
  35289. int
  35290. main ()
  35291. {
  35292. return ${pbxfuncname} ();
  35293. ;
  35294. return 0;
  35295. }
  35296. _ACEOF
  35297. rm -f conftest.$ac_objext conftest$ac_exeext
  35298. if { (ac_try="$ac_link"
  35299. case "(($ac_try" in
  35300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35301. *) ac_try_echo=$ac_try;;
  35302. esac
  35303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35304. $as_echo "$ac_try_echo") >&5
  35305. (eval "$ac_link") 2>conftest.er1
  35306. ac_status=$?
  35307. grep -v '^ *+' conftest.er1 >conftest.err
  35308. rm -f conftest.er1
  35309. cat conftest.err >&5
  35310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35311. (exit $ac_status); } && {
  35312. test -z "$ac_c_werror_flag" ||
  35313. test ! -s conftest.err
  35314. } && test -s conftest$ac_exeext && {
  35315. test "$cross_compiling" = yes ||
  35316. $as_test_x conftest$ac_exeext
  35317. }; then
  35318. eval "$as_ac_Lib=yes"
  35319. else
  35320. $as_echo "$as_me: failed program was:" >&5
  35321. sed 's/^/| /' conftest.$ac_ext >&5
  35322. eval "$as_ac_Lib=no"
  35323. fi
  35324. rm -rf conftest.dSYM
  35325. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35326. conftest$ac_exeext conftest.$ac_ext
  35327. LIBS=$ac_check_lib_save_LIBS
  35328. fi
  35329. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35330. $as_echo "$as_val"'`
  35331. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35332. $as_echo "$ac_res" >&6; }
  35333. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35334. $as_echo "$as_val"'`
  35335. if test "x$as_val" = x""yes; then
  35336. AST_PRI_L2_PERSISTENCE_FOUND=yes
  35337. else
  35338. AST_PRI_L2_PERSISTENCE_FOUND=no
  35339. fi
  35340. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35341. fi
  35342. # now check for the header.
  35343. if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
  35344. PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
  35345. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  35346. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  35347. PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
  35348. fi
  35349. PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
  35350. if test "xlibpri.h" = "x" ; then # no header, assume found
  35351. PRI_L2_PERSISTENCE_HEADER_FOUND="1"
  35352. else # check for the header
  35353. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35354. CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
  35355. if test "${ac_cv_header_libpri_h+set}" = set; then
  35356. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35357. $as_echo_n "checking for libpri.h... " >&6; }
  35358. if test "${ac_cv_header_libpri_h+set}" = set; then
  35359. $as_echo_n "(cached) " >&6
  35360. fi
  35361. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35362. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35363. else
  35364. # Is the header compilable?
  35365. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  35366. $as_echo_n "checking libpri.h usability... " >&6; }
  35367. cat >conftest.$ac_ext <<_ACEOF
  35368. /* confdefs.h. */
  35369. _ACEOF
  35370. cat confdefs.h >>conftest.$ac_ext
  35371. cat >>conftest.$ac_ext <<_ACEOF
  35372. /* end confdefs.h. */
  35373. $ac_includes_default
  35374. #include <libpri.h>
  35375. _ACEOF
  35376. rm -f conftest.$ac_objext
  35377. if { (ac_try="$ac_compile"
  35378. case "(($ac_try" in
  35379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35380. *) ac_try_echo=$ac_try;;
  35381. esac
  35382. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35383. $as_echo "$ac_try_echo") >&5
  35384. (eval "$ac_compile") 2>conftest.er1
  35385. ac_status=$?
  35386. grep -v '^ *+' conftest.er1 >conftest.err
  35387. rm -f conftest.er1
  35388. cat conftest.err >&5
  35389. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35390. (exit $ac_status); } && {
  35391. test -z "$ac_c_werror_flag" ||
  35392. test ! -s conftest.err
  35393. } && test -s conftest.$ac_objext; then
  35394. ac_header_compiler=yes
  35395. else
  35396. $as_echo "$as_me: failed program was:" >&5
  35397. sed 's/^/| /' conftest.$ac_ext >&5
  35398. ac_header_compiler=no
  35399. fi
  35400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35401. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35402. $as_echo "$ac_header_compiler" >&6; }
  35403. # Is the header present?
  35404. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  35405. $as_echo_n "checking libpri.h presence... " >&6; }
  35406. cat >conftest.$ac_ext <<_ACEOF
  35407. /* confdefs.h. */
  35408. _ACEOF
  35409. cat confdefs.h >>conftest.$ac_ext
  35410. cat >>conftest.$ac_ext <<_ACEOF
  35411. /* end confdefs.h. */
  35412. #include <libpri.h>
  35413. _ACEOF
  35414. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35415. case "(($ac_try" in
  35416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35417. *) ac_try_echo=$ac_try;;
  35418. esac
  35419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35420. $as_echo "$ac_try_echo") >&5
  35421. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35422. ac_status=$?
  35423. grep -v '^ *+' conftest.er1 >conftest.err
  35424. rm -f conftest.er1
  35425. cat conftest.err >&5
  35426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35427. (exit $ac_status); } >/dev/null && {
  35428. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35429. test ! -s conftest.err
  35430. }; then
  35431. ac_header_preproc=yes
  35432. else
  35433. $as_echo "$as_me: failed program was:" >&5
  35434. sed 's/^/| /' conftest.$ac_ext >&5
  35435. ac_header_preproc=no
  35436. fi
  35437. rm -f conftest.err conftest.$ac_ext
  35438. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35439. $as_echo "$ac_header_preproc" >&6; }
  35440. # So? What about this header?
  35441. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35442. yes:no: )
  35443. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35444. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35445. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  35446. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  35447. ac_header_preproc=yes
  35448. ;;
  35449. no:yes:* )
  35450. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  35451. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  35452. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  35453. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  35454. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  35455. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  35456. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  35457. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35458. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  35459. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  35460. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  35461. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  35462. ( cat <<\_ASBOX
  35463. ## ------------------------------------------ ##
  35464. ## Report this to https://issues.asterisk.org ##
  35465. ## ------------------------------------------ ##
  35466. _ASBOX
  35467. ) | sed "s/^/$as_me: WARNING: /" >&2
  35468. ;;
  35469. esac
  35470. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35471. $as_echo_n "checking for libpri.h... " >&6; }
  35472. if test "${ac_cv_header_libpri_h+set}" = set; then
  35473. $as_echo_n "(cached) " >&6
  35474. else
  35475. ac_cv_header_libpri_h=$ac_header_preproc
  35476. fi
  35477. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35478. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35479. fi
  35480. if test "x$ac_cv_header_libpri_h" = x""yes; then
  35481. PRI_L2_PERSISTENCE_HEADER_FOUND=1
  35482. else
  35483. PRI_L2_PERSISTENCE_HEADER_FOUND=0
  35484. fi
  35485. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35486. fi
  35487. if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
  35488. PRI_L2_PERSISTENCE_LIB=""
  35489. PRI_L2_PERSISTENCE_INCLUDE=""
  35490. else
  35491. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35492. PRI_L2_PERSISTENCE_LIB=""
  35493. fi
  35494. PBX_PRI_L2_PERSISTENCE=1
  35495. cat >>confdefs.h <<_ACEOF
  35496. #define HAVE_PRI_L2_PERSISTENCE 1
  35497. _ACEOF
  35498. fi
  35499. fi
  35500. fi
  35501. if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
  35502. pbxlibdir=""
  35503. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  35504. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  35505. if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
  35506. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
  35507. else
  35508. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
  35509. fi
  35510. fi
  35511. pbxfuncname="pri_date_time_send_option"
  35512. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35513. AST_PRI_DATETIME_SEND_FOUND=yes
  35514. else
  35515. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35516. CFLAGS="${CFLAGS} "
  35517. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  35518. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  35519. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  35520. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35521. $as_echo_n "(cached) " >&6
  35522. else
  35523. ac_check_lib_save_LIBS=$LIBS
  35524. LIBS="-lpri ${pbxlibdir} $LIBS"
  35525. cat >conftest.$ac_ext <<_ACEOF
  35526. /* confdefs.h. */
  35527. _ACEOF
  35528. cat confdefs.h >>conftest.$ac_ext
  35529. cat >>conftest.$ac_ext <<_ACEOF
  35530. /* end confdefs.h. */
  35531. /* Override any GCC internal prototype to avoid an error.
  35532. Use char because int might match the return type of a GCC
  35533. builtin and then its argument prototype would still apply. */
  35534. #ifdef __cplusplus
  35535. extern "C"
  35536. #endif
  35537. char ${pbxfuncname} ();
  35538. int
  35539. main ()
  35540. {
  35541. return ${pbxfuncname} ();
  35542. ;
  35543. return 0;
  35544. }
  35545. _ACEOF
  35546. rm -f conftest.$ac_objext conftest$ac_exeext
  35547. if { (ac_try="$ac_link"
  35548. case "(($ac_try" in
  35549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35550. *) ac_try_echo=$ac_try;;
  35551. esac
  35552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35553. $as_echo "$ac_try_echo") >&5
  35554. (eval "$ac_link") 2>conftest.er1
  35555. ac_status=$?
  35556. grep -v '^ *+' conftest.er1 >conftest.err
  35557. rm -f conftest.er1
  35558. cat conftest.err >&5
  35559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35560. (exit $ac_status); } && {
  35561. test -z "$ac_c_werror_flag" ||
  35562. test ! -s conftest.err
  35563. } && test -s conftest$ac_exeext && {
  35564. test "$cross_compiling" = yes ||
  35565. $as_test_x conftest$ac_exeext
  35566. }; then
  35567. eval "$as_ac_Lib=yes"
  35568. else
  35569. $as_echo "$as_me: failed program was:" >&5
  35570. sed 's/^/| /' conftest.$ac_ext >&5
  35571. eval "$as_ac_Lib=no"
  35572. fi
  35573. rm -rf conftest.dSYM
  35574. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35575. conftest$ac_exeext conftest.$ac_ext
  35576. LIBS=$ac_check_lib_save_LIBS
  35577. fi
  35578. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35579. $as_echo "$as_val"'`
  35580. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35581. $as_echo "$ac_res" >&6; }
  35582. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35583. $as_echo "$as_val"'`
  35584. if test "x$as_val" = x""yes; then
  35585. AST_PRI_DATETIME_SEND_FOUND=yes
  35586. else
  35587. AST_PRI_DATETIME_SEND_FOUND=no
  35588. fi
  35589. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35590. fi
  35591. # now check for the header.
  35592. if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
  35593. PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
  35594. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  35595. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  35596. PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
  35597. fi
  35598. PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
  35599. if test "xlibpri.h" = "x" ; then # no header, assume found
  35600. PRI_DATETIME_SEND_HEADER_FOUND="1"
  35601. else # check for the header
  35602. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35603. CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
  35604. if test "${ac_cv_header_libpri_h+set}" = set; then
  35605. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35606. $as_echo_n "checking for libpri.h... " >&6; }
  35607. if test "${ac_cv_header_libpri_h+set}" = set; then
  35608. $as_echo_n "(cached) " >&6
  35609. fi
  35610. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35611. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35612. else
  35613. # Is the header compilable?
  35614. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  35615. $as_echo_n "checking libpri.h usability... " >&6; }
  35616. cat >conftest.$ac_ext <<_ACEOF
  35617. /* confdefs.h. */
  35618. _ACEOF
  35619. cat confdefs.h >>conftest.$ac_ext
  35620. cat >>conftest.$ac_ext <<_ACEOF
  35621. /* end confdefs.h. */
  35622. $ac_includes_default
  35623. #include <libpri.h>
  35624. _ACEOF
  35625. rm -f conftest.$ac_objext
  35626. if { (ac_try="$ac_compile"
  35627. case "(($ac_try" in
  35628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35629. *) ac_try_echo=$ac_try;;
  35630. esac
  35631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35632. $as_echo "$ac_try_echo") >&5
  35633. (eval "$ac_compile") 2>conftest.er1
  35634. ac_status=$?
  35635. grep -v '^ *+' conftest.er1 >conftest.err
  35636. rm -f conftest.er1
  35637. cat conftest.err >&5
  35638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35639. (exit $ac_status); } && {
  35640. test -z "$ac_c_werror_flag" ||
  35641. test ! -s conftest.err
  35642. } && test -s conftest.$ac_objext; then
  35643. ac_header_compiler=yes
  35644. else
  35645. $as_echo "$as_me: failed program was:" >&5
  35646. sed 's/^/| /' conftest.$ac_ext >&5
  35647. ac_header_compiler=no
  35648. fi
  35649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35650. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35651. $as_echo "$ac_header_compiler" >&6; }
  35652. # Is the header present?
  35653. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  35654. $as_echo_n "checking libpri.h presence... " >&6; }
  35655. cat >conftest.$ac_ext <<_ACEOF
  35656. /* confdefs.h. */
  35657. _ACEOF
  35658. cat confdefs.h >>conftest.$ac_ext
  35659. cat >>conftest.$ac_ext <<_ACEOF
  35660. /* end confdefs.h. */
  35661. #include <libpri.h>
  35662. _ACEOF
  35663. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35664. case "(($ac_try" in
  35665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35666. *) ac_try_echo=$ac_try;;
  35667. esac
  35668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35669. $as_echo "$ac_try_echo") >&5
  35670. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35671. ac_status=$?
  35672. grep -v '^ *+' conftest.er1 >conftest.err
  35673. rm -f conftest.er1
  35674. cat conftest.err >&5
  35675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35676. (exit $ac_status); } >/dev/null && {
  35677. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35678. test ! -s conftest.err
  35679. }; then
  35680. ac_header_preproc=yes
  35681. else
  35682. $as_echo "$as_me: failed program was:" >&5
  35683. sed 's/^/| /' conftest.$ac_ext >&5
  35684. ac_header_preproc=no
  35685. fi
  35686. rm -f conftest.err conftest.$ac_ext
  35687. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35688. $as_echo "$ac_header_preproc" >&6; }
  35689. # So? What about this header?
  35690. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35691. yes:no: )
  35692. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35693. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35694. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  35695. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  35696. ac_header_preproc=yes
  35697. ;;
  35698. no:yes:* )
  35699. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  35700. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  35701. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  35702. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  35703. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  35704. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  35705. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  35706. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35707. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  35708. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  35709. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  35710. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  35711. ( cat <<\_ASBOX
  35712. ## ------------------------------------------ ##
  35713. ## Report this to https://issues.asterisk.org ##
  35714. ## ------------------------------------------ ##
  35715. _ASBOX
  35716. ) | sed "s/^/$as_me: WARNING: /" >&2
  35717. ;;
  35718. esac
  35719. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35720. $as_echo_n "checking for libpri.h... " >&6; }
  35721. if test "${ac_cv_header_libpri_h+set}" = set; then
  35722. $as_echo_n "(cached) " >&6
  35723. else
  35724. ac_cv_header_libpri_h=$ac_header_preproc
  35725. fi
  35726. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35727. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35728. fi
  35729. if test "x$ac_cv_header_libpri_h" = x""yes; then
  35730. PRI_DATETIME_SEND_HEADER_FOUND=1
  35731. else
  35732. PRI_DATETIME_SEND_HEADER_FOUND=0
  35733. fi
  35734. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35735. fi
  35736. if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
  35737. PRI_DATETIME_SEND_LIB=""
  35738. PRI_DATETIME_SEND_INCLUDE=""
  35739. else
  35740. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35741. PRI_DATETIME_SEND_LIB=""
  35742. fi
  35743. PBX_PRI_DATETIME_SEND=1
  35744. cat >>confdefs.h <<_ACEOF
  35745. #define HAVE_PRI_DATETIME_SEND 1
  35746. _ACEOF
  35747. fi
  35748. fi
  35749. fi
  35750. if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
  35751. pbxlibdir=""
  35752. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  35753. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  35754. if test -d ${PRI_MWI_V2_DIR}/lib; then
  35755. pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
  35756. else
  35757. pbxlibdir="-L${PRI_MWI_V2_DIR}"
  35758. fi
  35759. fi
  35760. pbxfuncname="pri_mwi_indicate_v2"
  35761. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35762. AST_PRI_MWI_V2_FOUND=yes
  35763. else
  35764. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35765. CFLAGS="${CFLAGS} "
  35766. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  35767. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  35768. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  35769. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35770. $as_echo_n "(cached) " >&6
  35771. else
  35772. ac_check_lib_save_LIBS=$LIBS
  35773. LIBS="-lpri ${pbxlibdir} $LIBS"
  35774. cat >conftest.$ac_ext <<_ACEOF
  35775. /* confdefs.h. */
  35776. _ACEOF
  35777. cat confdefs.h >>conftest.$ac_ext
  35778. cat >>conftest.$ac_ext <<_ACEOF
  35779. /* end confdefs.h. */
  35780. /* Override any GCC internal prototype to avoid an error.
  35781. Use char because int might match the return type of a GCC
  35782. builtin and then its argument prototype would still apply. */
  35783. #ifdef __cplusplus
  35784. extern "C"
  35785. #endif
  35786. char ${pbxfuncname} ();
  35787. int
  35788. main ()
  35789. {
  35790. return ${pbxfuncname} ();
  35791. ;
  35792. return 0;
  35793. }
  35794. _ACEOF
  35795. rm -f conftest.$ac_objext conftest$ac_exeext
  35796. if { (ac_try="$ac_link"
  35797. case "(($ac_try" in
  35798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35799. *) ac_try_echo=$ac_try;;
  35800. esac
  35801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35802. $as_echo "$ac_try_echo") >&5
  35803. (eval "$ac_link") 2>conftest.er1
  35804. ac_status=$?
  35805. grep -v '^ *+' conftest.er1 >conftest.err
  35806. rm -f conftest.er1
  35807. cat conftest.err >&5
  35808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35809. (exit $ac_status); } && {
  35810. test -z "$ac_c_werror_flag" ||
  35811. test ! -s conftest.err
  35812. } && test -s conftest$ac_exeext && {
  35813. test "$cross_compiling" = yes ||
  35814. $as_test_x conftest$ac_exeext
  35815. }; then
  35816. eval "$as_ac_Lib=yes"
  35817. else
  35818. $as_echo "$as_me: failed program was:" >&5
  35819. sed 's/^/| /' conftest.$ac_ext >&5
  35820. eval "$as_ac_Lib=no"
  35821. fi
  35822. rm -rf conftest.dSYM
  35823. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35824. conftest$ac_exeext conftest.$ac_ext
  35825. LIBS=$ac_check_lib_save_LIBS
  35826. fi
  35827. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35828. $as_echo "$as_val"'`
  35829. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35830. $as_echo "$ac_res" >&6; }
  35831. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35832. $as_echo "$as_val"'`
  35833. if test "x$as_val" = x""yes; then
  35834. AST_PRI_MWI_V2_FOUND=yes
  35835. else
  35836. AST_PRI_MWI_V2_FOUND=no
  35837. fi
  35838. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35839. fi
  35840. # now check for the header.
  35841. if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
  35842. PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
  35843. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  35844. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  35845. PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
  35846. fi
  35847. PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
  35848. if test "xlibpri.h" = "x" ; then # no header, assume found
  35849. PRI_MWI_V2_HEADER_FOUND="1"
  35850. else # check for the header
  35851. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35852. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
  35853. if test "${ac_cv_header_libpri_h+set}" = set; then
  35854. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35855. $as_echo_n "checking for libpri.h... " >&6; }
  35856. if test "${ac_cv_header_libpri_h+set}" = set; then
  35857. $as_echo_n "(cached) " >&6
  35858. fi
  35859. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35860. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35861. else
  35862. # Is the header compilable?
  35863. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  35864. $as_echo_n "checking libpri.h usability... " >&6; }
  35865. cat >conftest.$ac_ext <<_ACEOF
  35866. /* confdefs.h. */
  35867. _ACEOF
  35868. cat confdefs.h >>conftest.$ac_ext
  35869. cat >>conftest.$ac_ext <<_ACEOF
  35870. /* end confdefs.h. */
  35871. $ac_includes_default
  35872. #include <libpri.h>
  35873. _ACEOF
  35874. rm -f conftest.$ac_objext
  35875. if { (ac_try="$ac_compile"
  35876. case "(($ac_try" in
  35877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35878. *) ac_try_echo=$ac_try;;
  35879. esac
  35880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35881. $as_echo "$ac_try_echo") >&5
  35882. (eval "$ac_compile") 2>conftest.er1
  35883. ac_status=$?
  35884. grep -v '^ *+' conftest.er1 >conftest.err
  35885. rm -f conftest.er1
  35886. cat conftest.err >&5
  35887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35888. (exit $ac_status); } && {
  35889. test -z "$ac_c_werror_flag" ||
  35890. test ! -s conftest.err
  35891. } && test -s conftest.$ac_objext; then
  35892. ac_header_compiler=yes
  35893. else
  35894. $as_echo "$as_me: failed program was:" >&5
  35895. sed 's/^/| /' conftest.$ac_ext >&5
  35896. ac_header_compiler=no
  35897. fi
  35898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35899. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35900. $as_echo "$ac_header_compiler" >&6; }
  35901. # Is the header present?
  35902. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  35903. $as_echo_n "checking libpri.h presence... " >&6; }
  35904. cat >conftest.$ac_ext <<_ACEOF
  35905. /* confdefs.h. */
  35906. _ACEOF
  35907. cat confdefs.h >>conftest.$ac_ext
  35908. cat >>conftest.$ac_ext <<_ACEOF
  35909. /* end confdefs.h. */
  35910. #include <libpri.h>
  35911. _ACEOF
  35912. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35913. case "(($ac_try" in
  35914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35915. *) ac_try_echo=$ac_try;;
  35916. esac
  35917. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35918. $as_echo "$ac_try_echo") >&5
  35919. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35920. ac_status=$?
  35921. grep -v '^ *+' conftest.er1 >conftest.err
  35922. rm -f conftest.er1
  35923. cat conftest.err >&5
  35924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35925. (exit $ac_status); } >/dev/null && {
  35926. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35927. test ! -s conftest.err
  35928. }; then
  35929. ac_header_preproc=yes
  35930. else
  35931. $as_echo "$as_me: failed program was:" >&5
  35932. sed 's/^/| /' conftest.$ac_ext >&5
  35933. ac_header_preproc=no
  35934. fi
  35935. rm -f conftest.err conftest.$ac_ext
  35936. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35937. $as_echo "$ac_header_preproc" >&6; }
  35938. # So? What about this header?
  35939. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35940. yes:no: )
  35941. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35942. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35943. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  35944. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  35945. ac_header_preproc=yes
  35946. ;;
  35947. no:yes:* )
  35948. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  35949. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  35950. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  35951. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  35952. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  35953. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  35954. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  35955. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35956. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  35957. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  35958. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  35959. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  35960. ( cat <<\_ASBOX
  35961. ## ------------------------------------------ ##
  35962. ## Report this to https://issues.asterisk.org ##
  35963. ## ------------------------------------------ ##
  35964. _ASBOX
  35965. ) | sed "s/^/$as_me: WARNING: /" >&2
  35966. ;;
  35967. esac
  35968. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35969. $as_echo_n "checking for libpri.h... " >&6; }
  35970. if test "${ac_cv_header_libpri_h+set}" = set; then
  35971. $as_echo_n "(cached) " >&6
  35972. else
  35973. ac_cv_header_libpri_h=$ac_header_preproc
  35974. fi
  35975. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35976. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35977. fi
  35978. if test "x$ac_cv_header_libpri_h" = x""yes; then
  35979. PRI_MWI_V2_HEADER_FOUND=1
  35980. else
  35981. PRI_MWI_V2_HEADER_FOUND=0
  35982. fi
  35983. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35984. fi
  35985. if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
  35986. PRI_MWI_V2_LIB=""
  35987. PRI_MWI_V2_INCLUDE=""
  35988. else
  35989. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35990. PRI_MWI_V2_LIB=""
  35991. fi
  35992. PBX_PRI_MWI_V2=1
  35993. cat >>confdefs.h <<_ACEOF
  35994. #define HAVE_PRI_MWI_V2 1
  35995. _ACEOF
  35996. fi
  35997. fi
  35998. fi
  35999. if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
  36000. pbxlibdir=""
  36001. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  36002. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  36003. if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
  36004. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
  36005. else
  36006. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
  36007. fi
  36008. fi
  36009. pbxfuncname="pri_display_text"
  36010. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36011. AST_PRI_DISPLAY_TEXT_FOUND=yes
  36012. else
  36013. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36014. CFLAGS="${CFLAGS} "
  36015. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36016. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36017. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36018. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36019. $as_echo_n "(cached) " >&6
  36020. else
  36021. ac_check_lib_save_LIBS=$LIBS
  36022. LIBS="-lpri ${pbxlibdir} $LIBS"
  36023. cat >conftest.$ac_ext <<_ACEOF
  36024. /* confdefs.h. */
  36025. _ACEOF
  36026. cat confdefs.h >>conftest.$ac_ext
  36027. cat >>conftest.$ac_ext <<_ACEOF
  36028. /* end confdefs.h. */
  36029. /* Override any GCC internal prototype to avoid an error.
  36030. Use char because int might match the return type of a GCC
  36031. builtin and then its argument prototype would still apply. */
  36032. #ifdef __cplusplus
  36033. extern "C"
  36034. #endif
  36035. char ${pbxfuncname} ();
  36036. int
  36037. main ()
  36038. {
  36039. return ${pbxfuncname} ();
  36040. ;
  36041. return 0;
  36042. }
  36043. _ACEOF
  36044. rm -f conftest.$ac_objext conftest$ac_exeext
  36045. if { (ac_try="$ac_link"
  36046. case "(($ac_try" in
  36047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36048. *) ac_try_echo=$ac_try;;
  36049. esac
  36050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36051. $as_echo "$ac_try_echo") >&5
  36052. (eval "$ac_link") 2>conftest.er1
  36053. ac_status=$?
  36054. grep -v '^ *+' conftest.er1 >conftest.err
  36055. rm -f conftest.er1
  36056. cat conftest.err >&5
  36057. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36058. (exit $ac_status); } && {
  36059. test -z "$ac_c_werror_flag" ||
  36060. test ! -s conftest.err
  36061. } && test -s conftest$ac_exeext && {
  36062. test "$cross_compiling" = yes ||
  36063. $as_test_x conftest$ac_exeext
  36064. }; then
  36065. eval "$as_ac_Lib=yes"
  36066. else
  36067. $as_echo "$as_me: failed program was:" >&5
  36068. sed 's/^/| /' conftest.$ac_ext >&5
  36069. eval "$as_ac_Lib=no"
  36070. fi
  36071. rm -rf conftest.dSYM
  36072. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36073. conftest$ac_exeext conftest.$ac_ext
  36074. LIBS=$ac_check_lib_save_LIBS
  36075. fi
  36076. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36077. $as_echo "$as_val"'`
  36078. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36079. $as_echo "$ac_res" >&6; }
  36080. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36081. $as_echo "$as_val"'`
  36082. if test "x$as_val" = x""yes; then
  36083. AST_PRI_DISPLAY_TEXT_FOUND=yes
  36084. else
  36085. AST_PRI_DISPLAY_TEXT_FOUND=no
  36086. fi
  36087. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36088. fi
  36089. # now check for the header.
  36090. if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
  36091. PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
  36092. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  36093. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  36094. PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
  36095. fi
  36096. PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
  36097. if test "xlibpri.h" = "x" ; then # no header, assume found
  36098. PRI_DISPLAY_TEXT_HEADER_FOUND="1"
  36099. else # check for the header
  36100. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36101. CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
  36102. if test "${ac_cv_header_libpri_h+set}" = set; then
  36103. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36104. $as_echo_n "checking for libpri.h... " >&6; }
  36105. if test "${ac_cv_header_libpri_h+set}" = set; then
  36106. $as_echo_n "(cached) " >&6
  36107. fi
  36108. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36109. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36110. else
  36111. # Is the header compilable?
  36112. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36113. $as_echo_n "checking libpri.h usability... " >&6; }
  36114. cat >conftest.$ac_ext <<_ACEOF
  36115. /* confdefs.h. */
  36116. _ACEOF
  36117. cat confdefs.h >>conftest.$ac_ext
  36118. cat >>conftest.$ac_ext <<_ACEOF
  36119. /* end confdefs.h. */
  36120. $ac_includes_default
  36121. #include <libpri.h>
  36122. _ACEOF
  36123. rm -f conftest.$ac_objext
  36124. if { (ac_try="$ac_compile"
  36125. case "(($ac_try" in
  36126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36127. *) ac_try_echo=$ac_try;;
  36128. esac
  36129. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36130. $as_echo "$ac_try_echo") >&5
  36131. (eval "$ac_compile") 2>conftest.er1
  36132. ac_status=$?
  36133. grep -v '^ *+' conftest.er1 >conftest.err
  36134. rm -f conftest.er1
  36135. cat conftest.err >&5
  36136. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36137. (exit $ac_status); } && {
  36138. test -z "$ac_c_werror_flag" ||
  36139. test ! -s conftest.err
  36140. } && test -s conftest.$ac_objext; then
  36141. ac_header_compiler=yes
  36142. else
  36143. $as_echo "$as_me: failed program was:" >&5
  36144. sed 's/^/| /' conftest.$ac_ext >&5
  36145. ac_header_compiler=no
  36146. fi
  36147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36148. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36149. $as_echo "$ac_header_compiler" >&6; }
  36150. # Is the header present?
  36151. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36152. $as_echo_n "checking libpri.h presence... " >&6; }
  36153. cat >conftest.$ac_ext <<_ACEOF
  36154. /* confdefs.h. */
  36155. _ACEOF
  36156. cat confdefs.h >>conftest.$ac_ext
  36157. cat >>conftest.$ac_ext <<_ACEOF
  36158. /* end confdefs.h. */
  36159. #include <libpri.h>
  36160. _ACEOF
  36161. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36162. case "(($ac_try" in
  36163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36164. *) ac_try_echo=$ac_try;;
  36165. esac
  36166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36167. $as_echo "$ac_try_echo") >&5
  36168. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36169. ac_status=$?
  36170. grep -v '^ *+' conftest.er1 >conftest.err
  36171. rm -f conftest.er1
  36172. cat conftest.err >&5
  36173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36174. (exit $ac_status); } >/dev/null && {
  36175. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36176. test ! -s conftest.err
  36177. }; then
  36178. ac_header_preproc=yes
  36179. else
  36180. $as_echo "$as_me: failed program was:" >&5
  36181. sed 's/^/| /' conftest.$ac_ext >&5
  36182. ac_header_preproc=no
  36183. fi
  36184. rm -f conftest.err conftest.$ac_ext
  36185. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36186. $as_echo "$ac_header_preproc" >&6; }
  36187. # So? What about this header?
  36188. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36189. yes:no: )
  36190. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36191. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36192. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36193. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36194. ac_header_preproc=yes
  36195. ;;
  36196. no:yes:* )
  36197. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36198. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36199. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36200. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36201. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36202. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36203. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36204. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36205. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36206. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36207. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36208. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36209. ( cat <<\_ASBOX
  36210. ## ------------------------------------------ ##
  36211. ## Report this to https://issues.asterisk.org ##
  36212. ## ------------------------------------------ ##
  36213. _ASBOX
  36214. ) | sed "s/^/$as_me: WARNING: /" >&2
  36215. ;;
  36216. esac
  36217. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36218. $as_echo_n "checking for libpri.h... " >&6; }
  36219. if test "${ac_cv_header_libpri_h+set}" = set; then
  36220. $as_echo_n "(cached) " >&6
  36221. else
  36222. ac_cv_header_libpri_h=$ac_header_preproc
  36223. fi
  36224. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36225. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36226. fi
  36227. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36228. PRI_DISPLAY_TEXT_HEADER_FOUND=1
  36229. else
  36230. PRI_DISPLAY_TEXT_HEADER_FOUND=0
  36231. fi
  36232. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36233. fi
  36234. if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
  36235. PRI_DISPLAY_TEXT_LIB=""
  36236. PRI_DISPLAY_TEXT_INCLUDE=""
  36237. else
  36238. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36239. PRI_DISPLAY_TEXT_LIB=""
  36240. fi
  36241. PBX_PRI_DISPLAY_TEXT=1
  36242. cat >>confdefs.h <<_ACEOF
  36243. #define HAVE_PRI_DISPLAY_TEXT 1
  36244. _ACEOF
  36245. fi
  36246. fi
  36247. fi
  36248. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  36249. pbxlibdir=""
  36250. # if --with-PRI_MWI=DIR has been specified, use it.
  36251. if test "x${PRI_MWI_DIR}" != "x"; then
  36252. if test -d ${PRI_MWI_DIR}/lib; then
  36253. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  36254. else
  36255. pbxlibdir="-L${PRI_MWI_DIR}"
  36256. fi
  36257. fi
  36258. pbxfuncname="pri_mwi_indicate"
  36259. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36260. AST_PRI_MWI_FOUND=yes
  36261. else
  36262. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36263. CFLAGS="${CFLAGS} "
  36264. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36265. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36266. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36267. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36268. $as_echo_n "(cached) " >&6
  36269. else
  36270. ac_check_lib_save_LIBS=$LIBS
  36271. LIBS="-lpri ${pbxlibdir} $LIBS"
  36272. cat >conftest.$ac_ext <<_ACEOF
  36273. /* confdefs.h. */
  36274. _ACEOF
  36275. cat confdefs.h >>conftest.$ac_ext
  36276. cat >>conftest.$ac_ext <<_ACEOF
  36277. /* end confdefs.h. */
  36278. /* Override any GCC internal prototype to avoid an error.
  36279. Use char because int might match the return type of a GCC
  36280. builtin and then its argument prototype would still apply. */
  36281. #ifdef __cplusplus
  36282. extern "C"
  36283. #endif
  36284. char ${pbxfuncname} ();
  36285. int
  36286. main ()
  36287. {
  36288. return ${pbxfuncname} ();
  36289. ;
  36290. return 0;
  36291. }
  36292. _ACEOF
  36293. rm -f conftest.$ac_objext conftest$ac_exeext
  36294. if { (ac_try="$ac_link"
  36295. case "(($ac_try" in
  36296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36297. *) ac_try_echo=$ac_try;;
  36298. esac
  36299. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36300. $as_echo "$ac_try_echo") >&5
  36301. (eval "$ac_link") 2>conftest.er1
  36302. ac_status=$?
  36303. grep -v '^ *+' conftest.er1 >conftest.err
  36304. rm -f conftest.er1
  36305. cat conftest.err >&5
  36306. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36307. (exit $ac_status); } && {
  36308. test -z "$ac_c_werror_flag" ||
  36309. test ! -s conftest.err
  36310. } && test -s conftest$ac_exeext && {
  36311. test "$cross_compiling" = yes ||
  36312. $as_test_x conftest$ac_exeext
  36313. }; then
  36314. eval "$as_ac_Lib=yes"
  36315. else
  36316. $as_echo "$as_me: failed program was:" >&5
  36317. sed 's/^/| /' conftest.$ac_ext >&5
  36318. eval "$as_ac_Lib=no"
  36319. fi
  36320. rm -rf conftest.dSYM
  36321. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36322. conftest$ac_exeext conftest.$ac_ext
  36323. LIBS=$ac_check_lib_save_LIBS
  36324. fi
  36325. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36326. $as_echo "$as_val"'`
  36327. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36328. $as_echo "$ac_res" >&6; }
  36329. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36330. $as_echo "$as_val"'`
  36331. if test "x$as_val" = x""yes; then
  36332. AST_PRI_MWI_FOUND=yes
  36333. else
  36334. AST_PRI_MWI_FOUND=no
  36335. fi
  36336. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36337. fi
  36338. # now check for the header.
  36339. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  36340. PRI_MWI_LIB="${pbxlibdir} -lpri "
  36341. # if --with-PRI_MWI=DIR has been specified, use it.
  36342. if test "x${PRI_MWI_DIR}" != "x"; then
  36343. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  36344. fi
  36345. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  36346. if test "xlibpri.h" = "x" ; then # no header, assume found
  36347. PRI_MWI_HEADER_FOUND="1"
  36348. else # check for the header
  36349. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36350. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  36351. if test "${ac_cv_header_libpri_h+set}" = set; then
  36352. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36353. $as_echo_n "checking for libpri.h... " >&6; }
  36354. if test "${ac_cv_header_libpri_h+set}" = set; then
  36355. $as_echo_n "(cached) " >&6
  36356. fi
  36357. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36358. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36359. else
  36360. # Is the header compilable?
  36361. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36362. $as_echo_n "checking libpri.h usability... " >&6; }
  36363. cat >conftest.$ac_ext <<_ACEOF
  36364. /* confdefs.h. */
  36365. _ACEOF
  36366. cat confdefs.h >>conftest.$ac_ext
  36367. cat >>conftest.$ac_ext <<_ACEOF
  36368. /* end confdefs.h. */
  36369. $ac_includes_default
  36370. #include <libpri.h>
  36371. _ACEOF
  36372. rm -f conftest.$ac_objext
  36373. if { (ac_try="$ac_compile"
  36374. case "(($ac_try" in
  36375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36376. *) ac_try_echo=$ac_try;;
  36377. esac
  36378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36379. $as_echo "$ac_try_echo") >&5
  36380. (eval "$ac_compile") 2>conftest.er1
  36381. ac_status=$?
  36382. grep -v '^ *+' conftest.er1 >conftest.err
  36383. rm -f conftest.er1
  36384. cat conftest.err >&5
  36385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36386. (exit $ac_status); } && {
  36387. test -z "$ac_c_werror_flag" ||
  36388. test ! -s conftest.err
  36389. } && test -s conftest.$ac_objext; then
  36390. ac_header_compiler=yes
  36391. else
  36392. $as_echo "$as_me: failed program was:" >&5
  36393. sed 's/^/| /' conftest.$ac_ext >&5
  36394. ac_header_compiler=no
  36395. fi
  36396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36397. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36398. $as_echo "$ac_header_compiler" >&6; }
  36399. # Is the header present?
  36400. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36401. $as_echo_n "checking libpri.h presence... " >&6; }
  36402. cat >conftest.$ac_ext <<_ACEOF
  36403. /* confdefs.h. */
  36404. _ACEOF
  36405. cat confdefs.h >>conftest.$ac_ext
  36406. cat >>conftest.$ac_ext <<_ACEOF
  36407. /* end confdefs.h. */
  36408. #include <libpri.h>
  36409. _ACEOF
  36410. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36411. case "(($ac_try" in
  36412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36413. *) ac_try_echo=$ac_try;;
  36414. esac
  36415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36416. $as_echo "$ac_try_echo") >&5
  36417. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36418. ac_status=$?
  36419. grep -v '^ *+' conftest.er1 >conftest.err
  36420. rm -f conftest.er1
  36421. cat conftest.err >&5
  36422. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36423. (exit $ac_status); } >/dev/null && {
  36424. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36425. test ! -s conftest.err
  36426. }; then
  36427. ac_header_preproc=yes
  36428. else
  36429. $as_echo "$as_me: failed program was:" >&5
  36430. sed 's/^/| /' conftest.$ac_ext >&5
  36431. ac_header_preproc=no
  36432. fi
  36433. rm -f conftest.err conftest.$ac_ext
  36434. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36435. $as_echo "$ac_header_preproc" >&6; }
  36436. # So? What about this header?
  36437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36438. yes:no: )
  36439. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36440. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36441. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36442. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36443. ac_header_preproc=yes
  36444. ;;
  36445. no:yes:* )
  36446. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36447. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36448. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36449. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36450. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36451. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36452. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36453. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36454. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36455. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36456. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36457. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36458. ( cat <<\_ASBOX
  36459. ## ------------------------------------------ ##
  36460. ## Report this to https://issues.asterisk.org ##
  36461. ## ------------------------------------------ ##
  36462. _ASBOX
  36463. ) | sed "s/^/$as_me: WARNING: /" >&2
  36464. ;;
  36465. esac
  36466. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36467. $as_echo_n "checking for libpri.h... " >&6; }
  36468. if test "${ac_cv_header_libpri_h+set}" = set; then
  36469. $as_echo_n "(cached) " >&6
  36470. else
  36471. ac_cv_header_libpri_h=$ac_header_preproc
  36472. fi
  36473. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36474. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36475. fi
  36476. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36477. PRI_MWI_HEADER_FOUND=1
  36478. else
  36479. PRI_MWI_HEADER_FOUND=0
  36480. fi
  36481. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36482. fi
  36483. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  36484. PRI_MWI_LIB=""
  36485. PRI_MWI_INCLUDE=""
  36486. else
  36487. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36488. PRI_MWI_LIB=""
  36489. fi
  36490. PBX_PRI_MWI=1
  36491. cat >>confdefs.h <<_ACEOF
  36492. #define HAVE_PRI_MWI 1
  36493. _ACEOF
  36494. fi
  36495. fi
  36496. fi
  36497. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  36498. pbxlibdir=""
  36499. # if --with-PRI_MCID=DIR has been specified, use it.
  36500. if test "x${PRI_MCID_DIR}" != "x"; then
  36501. if test -d ${PRI_MCID_DIR}/lib; then
  36502. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  36503. else
  36504. pbxlibdir="-L${PRI_MCID_DIR}"
  36505. fi
  36506. fi
  36507. pbxfuncname="pri_mcid_enable"
  36508. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36509. AST_PRI_MCID_FOUND=yes
  36510. else
  36511. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36512. CFLAGS="${CFLAGS} "
  36513. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36514. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36515. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36516. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36517. $as_echo_n "(cached) " >&6
  36518. else
  36519. ac_check_lib_save_LIBS=$LIBS
  36520. LIBS="-lpri ${pbxlibdir} $LIBS"
  36521. cat >conftest.$ac_ext <<_ACEOF
  36522. /* confdefs.h. */
  36523. _ACEOF
  36524. cat confdefs.h >>conftest.$ac_ext
  36525. cat >>conftest.$ac_ext <<_ACEOF
  36526. /* end confdefs.h. */
  36527. /* Override any GCC internal prototype to avoid an error.
  36528. Use char because int might match the return type of a GCC
  36529. builtin and then its argument prototype would still apply. */
  36530. #ifdef __cplusplus
  36531. extern "C"
  36532. #endif
  36533. char ${pbxfuncname} ();
  36534. int
  36535. main ()
  36536. {
  36537. return ${pbxfuncname} ();
  36538. ;
  36539. return 0;
  36540. }
  36541. _ACEOF
  36542. rm -f conftest.$ac_objext conftest$ac_exeext
  36543. if { (ac_try="$ac_link"
  36544. case "(($ac_try" in
  36545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36546. *) ac_try_echo=$ac_try;;
  36547. esac
  36548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36549. $as_echo "$ac_try_echo") >&5
  36550. (eval "$ac_link") 2>conftest.er1
  36551. ac_status=$?
  36552. grep -v '^ *+' conftest.er1 >conftest.err
  36553. rm -f conftest.er1
  36554. cat conftest.err >&5
  36555. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36556. (exit $ac_status); } && {
  36557. test -z "$ac_c_werror_flag" ||
  36558. test ! -s conftest.err
  36559. } && test -s conftest$ac_exeext && {
  36560. test "$cross_compiling" = yes ||
  36561. $as_test_x conftest$ac_exeext
  36562. }; then
  36563. eval "$as_ac_Lib=yes"
  36564. else
  36565. $as_echo "$as_me: failed program was:" >&5
  36566. sed 's/^/| /' conftest.$ac_ext >&5
  36567. eval "$as_ac_Lib=no"
  36568. fi
  36569. rm -rf conftest.dSYM
  36570. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36571. conftest$ac_exeext conftest.$ac_ext
  36572. LIBS=$ac_check_lib_save_LIBS
  36573. fi
  36574. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36575. $as_echo "$as_val"'`
  36576. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36577. $as_echo "$ac_res" >&6; }
  36578. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36579. $as_echo "$as_val"'`
  36580. if test "x$as_val" = x""yes; then
  36581. AST_PRI_MCID_FOUND=yes
  36582. else
  36583. AST_PRI_MCID_FOUND=no
  36584. fi
  36585. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36586. fi
  36587. # now check for the header.
  36588. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  36589. PRI_MCID_LIB="${pbxlibdir} -lpri "
  36590. # if --with-PRI_MCID=DIR has been specified, use it.
  36591. if test "x${PRI_MCID_DIR}" != "x"; then
  36592. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  36593. fi
  36594. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  36595. if test "xlibpri.h" = "x" ; then # no header, assume found
  36596. PRI_MCID_HEADER_FOUND="1"
  36597. else # check for the header
  36598. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36599. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  36600. if test "${ac_cv_header_libpri_h+set}" = set; then
  36601. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36602. $as_echo_n "checking for libpri.h... " >&6; }
  36603. if test "${ac_cv_header_libpri_h+set}" = set; then
  36604. $as_echo_n "(cached) " >&6
  36605. fi
  36606. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36607. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36608. else
  36609. # Is the header compilable?
  36610. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36611. $as_echo_n "checking libpri.h usability... " >&6; }
  36612. cat >conftest.$ac_ext <<_ACEOF
  36613. /* confdefs.h. */
  36614. _ACEOF
  36615. cat confdefs.h >>conftest.$ac_ext
  36616. cat >>conftest.$ac_ext <<_ACEOF
  36617. /* end confdefs.h. */
  36618. $ac_includes_default
  36619. #include <libpri.h>
  36620. _ACEOF
  36621. rm -f conftest.$ac_objext
  36622. if { (ac_try="$ac_compile"
  36623. case "(($ac_try" in
  36624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36625. *) ac_try_echo=$ac_try;;
  36626. esac
  36627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36628. $as_echo "$ac_try_echo") >&5
  36629. (eval "$ac_compile") 2>conftest.er1
  36630. ac_status=$?
  36631. grep -v '^ *+' conftest.er1 >conftest.err
  36632. rm -f conftest.er1
  36633. cat conftest.err >&5
  36634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36635. (exit $ac_status); } && {
  36636. test -z "$ac_c_werror_flag" ||
  36637. test ! -s conftest.err
  36638. } && test -s conftest.$ac_objext; then
  36639. ac_header_compiler=yes
  36640. else
  36641. $as_echo "$as_me: failed program was:" >&5
  36642. sed 's/^/| /' conftest.$ac_ext >&5
  36643. ac_header_compiler=no
  36644. fi
  36645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36646. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36647. $as_echo "$ac_header_compiler" >&6; }
  36648. # Is the header present?
  36649. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36650. $as_echo_n "checking libpri.h presence... " >&6; }
  36651. cat >conftest.$ac_ext <<_ACEOF
  36652. /* confdefs.h. */
  36653. _ACEOF
  36654. cat confdefs.h >>conftest.$ac_ext
  36655. cat >>conftest.$ac_ext <<_ACEOF
  36656. /* end confdefs.h. */
  36657. #include <libpri.h>
  36658. _ACEOF
  36659. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36660. case "(($ac_try" in
  36661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36662. *) ac_try_echo=$ac_try;;
  36663. esac
  36664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36665. $as_echo "$ac_try_echo") >&5
  36666. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36667. ac_status=$?
  36668. grep -v '^ *+' conftest.er1 >conftest.err
  36669. rm -f conftest.er1
  36670. cat conftest.err >&5
  36671. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36672. (exit $ac_status); } >/dev/null && {
  36673. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36674. test ! -s conftest.err
  36675. }; then
  36676. ac_header_preproc=yes
  36677. else
  36678. $as_echo "$as_me: failed program was:" >&5
  36679. sed 's/^/| /' conftest.$ac_ext >&5
  36680. ac_header_preproc=no
  36681. fi
  36682. rm -f conftest.err conftest.$ac_ext
  36683. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36684. $as_echo "$ac_header_preproc" >&6; }
  36685. # So? What about this header?
  36686. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36687. yes:no: )
  36688. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36689. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36690. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36691. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36692. ac_header_preproc=yes
  36693. ;;
  36694. no:yes:* )
  36695. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36696. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36697. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36698. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36699. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36700. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36701. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36702. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36703. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36704. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36705. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36706. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36707. ( cat <<\_ASBOX
  36708. ## ------------------------------------------ ##
  36709. ## Report this to https://issues.asterisk.org ##
  36710. ## ------------------------------------------ ##
  36711. _ASBOX
  36712. ) | sed "s/^/$as_me: WARNING: /" >&2
  36713. ;;
  36714. esac
  36715. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36716. $as_echo_n "checking for libpri.h... " >&6; }
  36717. if test "${ac_cv_header_libpri_h+set}" = set; then
  36718. $as_echo_n "(cached) " >&6
  36719. else
  36720. ac_cv_header_libpri_h=$ac_header_preproc
  36721. fi
  36722. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36723. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36724. fi
  36725. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36726. PRI_MCID_HEADER_FOUND=1
  36727. else
  36728. PRI_MCID_HEADER_FOUND=0
  36729. fi
  36730. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36731. fi
  36732. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  36733. PRI_MCID_LIB=""
  36734. PRI_MCID_INCLUDE=""
  36735. else
  36736. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36737. PRI_MCID_LIB=""
  36738. fi
  36739. PBX_PRI_MCID=1
  36740. cat >>confdefs.h <<_ACEOF
  36741. #define HAVE_PRI_MCID 1
  36742. _ACEOF
  36743. fi
  36744. fi
  36745. fi
  36746. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  36747. pbxlibdir=""
  36748. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  36749. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  36750. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  36751. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  36752. else
  36753. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  36754. fi
  36755. fi
  36756. pbxfuncname="pri_connect_ack_enable"
  36757. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36758. AST_PRI_CALL_WAITING_FOUND=yes
  36759. else
  36760. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36761. CFLAGS="${CFLAGS} "
  36762. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36763. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36764. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36765. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36766. $as_echo_n "(cached) " >&6
  36767. else
  36768. ac_check_lib_save_LIBS=$LIBS
  36769. LIBS="-lpri ${pbxlibdir} $LIBS"
  36770. cat >conftest.$ac_ext <<_ACEOF
  36771. /* confdefs.h. */
  36772. _ACEOF
  36773. cat confdefs.h >>conftest.$ac_ext
  36774. cat >>conftest.$ac_ext <<_ACEOF
  36775. /* end confdefs.h. */
  36776. /* Override any GCC internal prototype to avoid an error.
  36777. Use char because int might match the return type of a GCC
  36778. builtin and then its argument prototype would still apply. */
  36779. #ifdef __cplusplus
  36780. extern "C"
  36781. #endif
  36782. char ${pbxfuncname} ();
  36783. int
  36784. main ()
  36785. {
  36786. return ${pbxfuncname} ();
  36787. ;
  36788. return 0;
  36789. }
  36790. _ACEOF
  36791. rm -f conftest.$ac_objext conftest$ac_exeext
  36792. if { (ac_try="$ac_link"
  36793. case "(($ac_try" in
  36794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36795. *) ac_try_echo=$ac_try;;
  36796. esac
  36797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36798. $as_echo "$ac_try_echo") >&5
  36799. (eval "$ac_link") 2>conftest.er1
  36800. ac_status=$?
  36801. grep -v '^ *+' conftest.er1 >conftest.err
  36802. rm -f conftest.er1
  36803. cat conftest.err >&5
  36804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36805. (exit $ac_status); } && {
  36806. test -z "$ac_c_werror_flag" ||
  36807. test ! -s conftest.err
  36808. } && test -s conftest$ac_exeext && {
  36809. test "$cross_compiling" = yes ||
  36810. $as_test_x conftest$ac_exeext
  36811. }; then
  36812. eval "$as_ac_Lib=yes"
  36813. else
  36814. $as_echo "$as_me: failed program was:" >&5
  36815. sed 's/^/| /' conftest.$ac_ext >&5
  36816. eval "$as_ac_Lib=no"
  36817. fi
  36818. rm -rf conftest.dSYM
  36819. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36820. conftest$ac_exeext conftest.$ac_ext
  36821. LIBS=$ac_check_lib_save_LIBS
  36822. fi
  36823. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36824. $as_echo "$as_val"'`
  36825. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36826. $as_echo "$ac_res" >&6; }
  36827. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36828. $as_echo "$as_val"'`
  36829. if test "x$as_val" = x""yes; then
  36830. AST_PRI_CALL_WAITING_FOUND=yes
  36831. else
  36832. AST_PRI_CALL_WAITING_FOUND=no
  36833. fi
  36834. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36835. fi
  36836. # now check for the header.
  36837. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  36838. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  36839. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  36840. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  36841. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  36842. fi
  36843. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  36844. if test "xlibpri.h" = "x" ; then # no header, assume found
  36845. PRI_CALL_WAITING_HEADER_FOUND="1"
  36846. else # check for the header
  36847. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36848. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  36849. if test "${ac_cv_header_libpri_h+set}" = set; then
  36850. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36851. $as_echo_n "checking for libpri.h... " >&6; }
  36852. if test "${ac_cv_header_libpri_h+set}" = set; then
  36853. $as_echo_n "(cached) " >&6
  36854. fi
  36855. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36856. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36857. else
  36858. # Is the header compilable?
  36859. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36860. $as_echo_n "checking libpri.h usability... " >&6; }
  36861. cat >conftest.$ac_ext <<_ACEOF
  36862. /* confdefs.h. */
  36863. _ACEOF
  36864. cat confdefs.h >>conftest.$ac_ext
  36865. cat >>conftest.$ac_ext <<_ACEOF
  36866. /* end confdefs.h. */
  36867. $ac_includes_default
  36868. #include <libpri.h>
  36869. _ACEOF
  36870. rm -f conftest.$ac_objext
  36871. if { (ac_try="$ac_compile"
  36872. case "(($ac_try" in
  36873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36874. *) ac_try_echo=$ac_try;;
  36875. esac
  36876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36877. $as_echo "$ac_try_echo") >&5
  36878. (eval "$ac_compile") 2>conftest.er1
  36879. ac_status=$?
  36880. grep -v '^ *+' conftest.er1 >conftest.err
  36881. rm -f conftest.er1
  36882. cat conftest.err >&5
  36883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36884. (exit $ac_status); } && {
  36885. test -z "$ac_c_werror_flag" ||
  36886. test ! -s conftest.err
  36887. } && test -s conftest.$ac_objext; then
  36888. ac_header_compiler=yes
  36889. else
  36890. $as_echo "$as_me: failed program was:" >&5
  36891. sed 's/^/| /' conftest.$ac_ext >&5
  36892. ac_header_compiler=no
  36893. fi
  36894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36895. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36896. $as_echo "$ac_header_compiler" >&6; }
  36897. # Is the header present?
  36898. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36899. $as_echo_n "checking libpri.h presence... " >&6; }
  36900. cat >conftest.$ac_ext <<_ACEOF
  36901. /* confdefs.h. */
  36902. _ACEOF
  36903. cat confdefs.h >>conftest.$ac_ext
  36904. cat >>conftest.$ac_ext <<_ACEOF
  36905. /* end confdefs.h. */
  36906. #include <libpri.h>
  36907. _ACEOF
  36908. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36909. case "(($ac_try" in
  36910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36911. *) ac_try_echo=$ac_try;;
  36912. esac
  36913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36914. $as_echo "$ac_try_echo") >&5
  36915. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36916. ac_status=$?
  36917. grep -v '^ *+' conftest.er1 >conftest.err
  36918. rm -f conftest.er1
  36919. cat conftest.err >&5
  36920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36921. (exit $ac_status); } >/dev/null && {
  36922. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36923. test ! -s conftest.err
  36924. }; then
  36925. ac_header_preproc=yes
  36926. else
  36927. $as_echo "$as_me: failed program was:" >&5
  36928. sed 's/^/| /' conftest.$ac_ext >&5
  36929. ac_header_preproc=no
  36930. fi
  36931. rm -f conftest.err conftest.$ac_ext
  36932. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36933. $as_echo "$ac_header_preproc" >&6; }
  36934. # So? What about this header?
  36935. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36936. yes:no: )
  36937. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36938. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36939. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36940. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36941. ac_header_preproc=yes
  36942. ;;
  36943. no:yes:* )
  36944. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36945. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36946. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36947. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36948. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36949. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36950. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36951. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36952. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36953. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36954. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36955. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36956. ( cat <<\_ASBOX
  36957. ## ------------------------------------------ ##
  36958. ## Report this to https://issues.asterisk.org ##
  36959. ## ------------------------------------------ ##
  36960. _ASBOX
  36961. ) | sed "s/^/$as_me: WARNING: /" >&2
  36962. ;;
  36963. esac
  36964. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36965. $as_echo_n "checking for libpri.h... " >&6; }
  36966. if test "${ac_cv_header_libpri_h+set}" = set; then
  36967. $as_echo_n "(cached) " >&6
  36968. else
  36969. ac_cv_header_libpri_h=$ac_header_preproc
  36970. fi
  36971. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36972. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36973. fi
  36974. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36975. PRI_CALL_WAITING_HEADER_FOUND=1
  36976. else
  36977. PRI_CALL_WAITING_HEADER_FOUND=0
  36978. fi
  36979. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36980. fi
  36981. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  36982. PRI_CALL_WAITING_LIB=""
  36983. PRI_CALL_WAITING_INCLUDE=""
  36984. else
  36985. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36986. PRI_CALL_WAITING_LIB=""
  36987. fi
  36988. PBX_PRI_CALL_WAITING=1
  36989. cat >>confdefs.h <<_ACEOF
  36990. #define HAVE_PRI_CALL_WAITING 1
  36991. _ACEOF
  36992. fi
  36993. fi
  36994. fi
  36995. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  36996. pbxlibdir=""
  36997. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  36998. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  36999. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  37000. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  37001. else
  37002. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  37003. fi
  37004. fi
  37005. pbxfuncname="pri_aoc_events_enable"
  37006. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37007. AST_PRI_AOC_EVENTS_FOUND=yes
  37008. else
  37009. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37010. CFLAGS="${CFLAGS} "
  37011. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37012. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37013. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37014. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37015. $as_echo_n "(cached) " >&6
  37016. else
  37017. ac_check_lib_save_LIBS=$LIBS
  37018. LIBS="-lpri ${pbxlibdir} $LIBS"
  37019. cat >conftest.$ac_ext <<_ACEOF
  37020. /* confdefs.h. */
  37021. _ACEOF
  37022. cat confdefs.h >>conftest.$ac_ext
  37023. cat >>conftest.$ac_ext <<_ACEOF
  37024. /* end confdefs.h. */
  37025. /* Override any GCC internal prototype to avoid an error.
  37026. Use char because int might match the return type of a GCC
  37027. builtin and then its argument prototype would still apply. */
  37028. #ifdef __cplusplus
  37029. extern "C"
  37030. #endif
  37031. char ${pbxfuncname} ();
  37032. int
  37033. main ()
  37034. {
  37035. return ${pbxfuncname} ();
  37036. ;
  37037. return 0;
  37038. }
  37039. _ACEOF
  37040. rm -f conftest.$ac_objext conftest$ac_exeext
  37041. if { (ac_try="$ac_link"
  37042. case "(($ac_try" in
  37043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37044. *) ac_try_echo=$ac_try;;
  37045. esac
  37046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37047. $as_echo "$ac_try_echo") >&5
  37048. (eval "$ac_link") 2>conftest.er1
  37049. ac_status=$?
  37050. grep -v '^ *+' conftest.er1 >conftest.err
  37051. rm -f conftest.er1
  37052. cat conftest.err >&5
  37053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37054. (exit $ac_status); } && {
  37055. test -z "$ac_c_werror_flag" ||
  37056. test ! -s conftest.err
  37057. } && test -s conftest$ac_exeext && {
  37058. test "$cross_compiling" = yes ||
  37059. $as_test_x conftest$ac_exeext
  37060. }; then
  37061. eval "$as_ac_Lib=yes"
  37062. else
  37063. $as_echo "$as_me: failed program was:" >&5
  37064. sed 's/^/| /' conftest.$ac_ext >&5
  37065. eval "$as_ac_Lib=no"
  37066. fi
  37067. rm -rf conftest.dSYM
  37068. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37069. conftest$ac_exeext conftest.$ac_ext
  37070. LIBS=$ac_check_lib_save_LIBS
  37071. fi
  37072. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37073. $as_echo "$as_val"'`
  37074. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37075. $as_echo "$ac_res" >&6; }
  37076. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37077. $as_echo "$as_val"'`
  37078. if test "x$as_val" = x""yes; then
  37079. AST_PRI_AOC_EVENTS_FOUND=yes
  37080. else
  37081. AST_PRI_AOC_EVENTS_FOUND=no
  37082. fi
  37083. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37084. fi
  37085. # now check for the header.
  37086. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  37087. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  37088. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  37089. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  37090. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  37091. fi
  37092. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  37093. if test "xlibpri.h" = "x" ; then # no header, assume found
  37094. PRI_AOC_EVENTS_HEADER_FOUND="1"
  37095. else # check for the header
  37096. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37097. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  37098. if test "${ac_cv_header_libpri_h+set}" = set; then
  37099. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37100. $as_echo_n "checking for libpri.h... " >&6; }
  37101. if test "${ac_cv_header_libpri_h+set}" = set; then
  37102. $as_echo_n "(cached) " >&6
  37103. fi
  37104. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37105. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37106. else
  37107. # Is the header compilable?
  37108. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37109. $as_echo_n "checking libpri.h usability... " >&6; }
  37110. cat >conftest.$ac_ext <<_ACEOF
  37111. /* confdefs.h. */
  37112. _ACEOF
  37113. cat confdefs.h >>conftest.$ac_ext
  37114. cat >>conftest.$ac_ext <<_ACEOF
  37115. /* end confdefs.h. */
  37116. $ac_includes_default
  37117. #include <libpri.h>
  37118. _ACEOF
  37119. rm -f conftest.$ac_objext
  37120. if { (ac_try="$ac_compile"
  37121. case "(($ac_try" in
  37122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37123. *) ac_try_echo=$ac_try;;
  37124. esac
  37125. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37126. $as_echo "$ac_try_echo") >&5
  37127. (eval "$ac_compile") 2>conftest.er1
  37128. ac_status=$?
  37129. grep -v '^ *+' conftest.er1 >conftest.err
  37130. rm -f conftest.er1
  37131. cat conftest.err >&5
  37132. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37133. (exit $ac_status); } && {
  37134. test -z "$ac_c_werror_flag" ||
  37135. test ! -s conftest.err
  37136. } && test -s conftest.$ac_objext; then
  37137. ac_header_compiler=yes
  37138. else
  37139. $as_echo "$as_me: failed program was:" >&5
  37140. sed 's/^/| /' conftest.$ac_ext >&5
  37141. ac_header_compiler=no
  37142. fi
  37143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37144. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37145. $as_echo "$ac_header_compiler" >&6; }
  37146. # Is the header present?
  37147. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37148. $as_echo_n "checking libpri.h presence... " >&6; }
  37149. cat >conftest.$ac_ext <<_ACEOF
  37150. /* confdefs.h. */
  37151. _ACEOF
  37152. cat confdefs.h >>conftest.$ac_ext
  37153. cat >>conftest.$ac_ext <<_ACEOF
  37154. /* end confdefs.h. */
  37155. #include <libpri.h>
  37156. _ACEOF
  37157. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37158. case "(($ac_try" in
  37159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37160. *) ac_try_echo=$ac_try;;
  37161. esac
  37162. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37163. $as_echo "$ac_try_echo") >&5
  37164. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37165. ac_status=$?
  37166. grep -v '^ *+' conftest.er1 >conftest.err
  37167. rm -f conftest.er1
  37168. cat conftest.err >&5
  37169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37170. (exit $ac_status); } >/dev/null && {
  37171. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37172. test ! -s conftest.err
  37173. }; then
  37174. ac_header_preproc=yes
  37175. else
  37176. $as_echo "$as_me: failed program was:" >&5
  37177. sed 's/^/| /' conftest.$ac_ext >&5
  37178. ac_header_preproc=no
  37179. fi
  37180. rm -f conftest.err conftest.$ac_ext
  37181. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37182. $as_echo "$ac_header_preproc" >&6; }
  37183. # So? What about this header?
  37184. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37185. yes:no: )
  37186. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37187. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37188. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37189. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37190. ac_header_preproc=yes
  37191. ;;
  37192. no:yes:* )
  37193. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37194. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37195. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37196. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37197. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37198. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37199. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37200. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37201. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37202. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37203. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37204. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37205. ( cat <<\_ASBOX
  37206. ## ------------------------------------------ ##
  37207. ## Report this to https://issues.asterisk.org ##
  37208. ## ------------------------------------------ ##
  37209. _ASBOX
  37210. ) | sed "s/^/$as_me: WARNING: /" >&2
  37211. ;;
  37212. esac
  37213. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37214. $as_echo_n "checking for libpri.h... " >&6; }
  37215. if test "${ac_cv_header_libpri_h+set}" = set; then
  37216. $as_echo_n "(cached) " >&6
  37217. else
  37218. ac_cv_header_libpri_h=$ac_header_preproc
  37219. fi
  37220. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37221. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37222. fi
  37223. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37224. PRI_AOC_EVENTS_HEADER_FOUND=1
  37225. else
  37226. PRI_AOC_EVENTS_HEADER_FOUND=0
  37227. fi
  37228. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37229. fi
  37230. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  37231. PRI_AOC_EVENTS_LIB=""
  37232. PRI_AOC_EVENTS_INCLUDE=""
  37233. else
  37234. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37235. PRI_AOC_EVENTS_LIB=""
  37236. fi
  37237. PBX_PRI_AOC_EVENTS=1
  37238. cat >>confdefs.h <<_ACEOF
  37239. #define HAVE_PRI_AOC_EVENTS 1
  37240. _ACEOF
  37241. fi
  37242. fi
  37243. fi
  37244. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  37245. pbxlibdir=""
  37246. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  37247. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  37248. if test -d ${PRI_TRANSFER_DIR}/lib; then
  37249. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  37250. else
  37251. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  37252. fi
  37253. fi
  37254. pbxfuncname="pri_transfer_enable"
  37255. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37256. AST_PRI_TRANSFER_FOUND=yes
  37257. else
  37258. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37259. CFLAGS="${CFLAGS} "
  37260. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37261. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37262. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37263. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37264. $as_echo_n "(cached) " >&6
  37265. else
  37266. ac_check_lib_save_LIBS=$LIBS
  37267. LIBS="-lpri ${pbxlibdir} $LIBS"
  37268. cat >conftest.$ac_ext <<_ACEOF
  37269. /* confdefs.h. */
  37270. _ACEOF
  37271. cat confdefs.h >>conftest.$ac_ext
  37272. cat >>conftest.$ac_ext <<_ACEOF
  37273. /* end confdefs.h. */
  37274. /* Override any GCC internal prototype to avoid an error.
  37275. Use char because int might match the return type of a GCC
  37276. builtin and then its argument prototype would still apply. */
  37277. #ifdef __cplusplus
  37278. extern "C"
  37279. #endif
  37280. char ${pbxfuncname} ();
  37281. int
  37282. main ()
  37283. {
  37284. return ${pbxfuncname} ();
  37285. ;
  37286. return 0;
  37287. }
  37288. _ACEOF
  37289. rm -f conftest.$ac_objext conftest$ac_exeext
  37290. if { (ac_try="$ac_link"
  37291. case "(($ac_try" in
  37292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37293. *) ac_try_echo=$ac_try;;
  37294. esac
  37295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37296. $as_echo "$ac_try_echo") >&5
  37297. (eval "$ac_link") 2>conftest.er1
  37298. ac_status=$?
  37299. grep -v '^ *+' conftest.er1 >conftest.err
  37300. rm -f conftest.er1
  37301. cat conftest.err >&5
  37302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37303. (exit $ac_status); } && {
  37304. test -z "$ac_c_werror_flag" ||
  37305. test ! -s conftest.err
  37306. } && test -s conftest$ac_exeext && {
  37307. test "$cross_compiling" = yes ||
  37308. $as_test_x conftest$ac_exeext
  37309. }; then
  37310. eval "$as_ac_Lib=yes"
  37311. else
  37312. $as_echo "$as_me: failed program was:" >&5
  37313. sed 's/^/| /' conftest.$ac_ext >&5
  37314. eval "$as_ac_Lib=no"
  37315. fi
  37316. rm -rf conftest.dSYM
  37317. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37318. conftest$ac_exeext conftest.$ac_ext
  37319. LIBS=$ac_check_lib_save_LIBS
  37320. fi
  37321. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37322. $as_echo "$as_val"'`
  37323. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37324. $as_echo "$ac_res" >&6; }
  37325. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37326. $as_echo "$as_val"'`
  37327. if test "x$as_val" = x""yes; then
  37328. AST_PRI_TRANSFER_FOUND=yes
  37329. else
  37330. AST_PRI_TRANSFER_FOUND=no
  37331. fi
  37332. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37333. fi
  37334. # now check for the header.
  37335. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  37336. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  37337. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  37338. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  37339. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  37340. fi
  37341. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  37342. if test "xlibpri.h" = "x" ; then # no header, assume found
  37343. PRI_TRANSFER_HEADER_FOUND="1"
  37344. else # check for the header
  37345. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37346. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  37347. if test "${ac_cv_header_libpri_h+set}" = set; then
  37348. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37349. $as_echo_n "checking for libpri.h... " >&6; }
  37350. if test "${ac_cv_header_libpri_h+set}" = set; then
  37351. $as_echo_n "(cached) " >&6
  37352. fi
  37353. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37354. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37355. else
  37356. # Is the header compilable?
  37357. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37358. $as_echo_n "checking libpri.h usability... " >&6; }
  37359. cat >conftest.$ac_ext <<_ACEOF
  37360. /* confdefs.h. */
  37361. _ACEOF
  37362. cat confdefs.h >>conftest.$ac_ext
  37363. cat >>conftest.$ac_ext <<_ACEOF
  37364. /* end confdefs.h. */
  37365. $ac_includes_default
  37366. #include <libpri.h>
  37367. _ACEOF
  37368. rm -f conftest.$ac_objext
  37369. if { (ac_try="$ac_compile"
  37370. case "(($ac_try" in
  37371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37372. *) ac_try_echo=$ac_try;;
  37373. esac
  37374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37375. $as_echo "$ac_try_echo") >&5
  37376. (eval "$ac_compile") 2>conftest.er1
  37377. ac_status=$?
  37378. grep -v '^ *+' conftest.er1 >conftest.err
  37379. rm -f conftest.er1
  37380. cat conftest.err >&5
  37381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37382. (exit $ac_status); } && {
  37383. test -z "$ac_c_werror_flag" ||
  37384. test ! -s conftest.err
  37385. } && test -s conftest.$ac_objext; then
  37386. ac_header_compiler=yes
  37387. else
  37388. $as_echo "$as_me: failed program was:" >&5
  37389. sed 's/^/| /' conftest.$ac_ext >&5
  37390. ac_header_compiler=no
  37391. fi
  37392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37393. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37394. $as_echo "$ac_header_compiler" >&6; }
  37395. # Is the header present?
  37396. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37397. $as_echo_n "checking libpri.h presence... " >&6; }
  37398. cat >conftest.$ac_ext <<_ACEOF
  37399. /* confdefs.h. */
  37400. _ACEOF
  37401. cat confdefs.h >>conftest.$ac_ext
  37402. cat >>conftest.$ac_ext <<_ACEOF
  37403. /* end confdefs.h. */
  37404. #include <libpri.h>
  37405. _ACEOF
  37406. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37407. case "(($ac_try" in
  37408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37409. *) ac_try_echo=$ac_try;;
  37410. esac
  37411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37412. $as_echo "$ac_try_echo") >&5
  37413. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37414. ac_status=$?
  37415. grep -v '^ *+' conftest.er1 >conftest.err
  37416. rm -f conftest.er1
  37417. cat conftest.err >&5
  37418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37419. (exit $ac_status); } >/dev/null && {
  37420. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37421. test ! -s conftest.err
  37422. }; then
  37423. ac_header_preproc=yes
  37424. else
  37425. $as_echo "$as_me: failed program was:" >&5
  37426. sed 's/^/| /' conftest.$ac_ext >&5
  37427. ac_header_preproc=no
  37428. fi
  37429. rm -f conftest.err conftest.$ac_ext
  37430. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37431. $as_echo "$ac_header_preproc" >&6; }
  37432. # So? What about this header?
  37433. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37434. yes:no: )
  37435. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37436. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37437. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37438. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37439. ac_header_preproc=yes
  37440. ;;
  37441. no:yes:* )
  37442. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37443. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37444. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37445. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37446. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37447. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37448. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37449. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37450. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37451. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37452. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37453. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37454. ( cat <<\_ASBOX
  37455. ## ------------------------------------------ ##
  37456. ## Report this to https://issues.asterisk.org ##
  37457. ## ------------------------------------------ ##
  37458. _ASBOX
  37459. ) | sed "s/^/$as_me: WARNING: /" >&2
  37460. ;;
  37461. esac
  37462. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37463. $as_echo_n "checking for libpri.h... " >&6; }
  37464. if test "${ac_cv_header_libpri_h+set}" = set; then
  37465. $as_echo_n "(cached) " >&6
  37466. else
  37467. ac_cv_header_libpri_h=$ac_header_preproc
  37468. fi
  37469. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37470. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37471. fi
  37472. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37473. PRI_TRANSFER_HEADER_FOUND=1
  37474. else
  37475. PRI_TRANSFER_HEADER_FOUND=0
  37476. fi
  37477. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37478. fi
  37479. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  37480. PRI_TRANSFER_LIB=""
  37481. PRI_TRANSFER_INCLUDE=""
  37482. else
  37483. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37484. PRI_TRANSFER_LIB=""
  37485. fi
  37486. PBX_PRI_TRANSFER=1
  37487. cat >>confdefs.h <<_ACEOF
  37488. #define HAVE_PRI_TRANSFER 1
  37489. _ACEOF
  37490. fi
  37491. fi
  37492. fi
  37493. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  37494. pbxlibdir=""
  37495. # if --with-PRI_CCSS=DIR has been specified, use it.
  37496. if test "x${PRI_CCSS_DIR}" != "x"; then
  37497. if test -d ${PRI_CCSS_DIR}/lib; then
  37498. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  37499. else
  37500. pbxlibdir="-L${PRI_CCSS_DIR}"
  37501. fi
  37502. fi
  37503. pbxfuncname="pri_cc_enable"
  37504. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37505. AST_PRI_CCSS_FOUND=yes
  37506. else
  37507. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37508. CFLAGS="${CFLAGS} "
  37509. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37510. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37511. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37512. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37513. $as_echo_n "(cached) " >&6
  37514. else
  37515. ac_check_lib_save_LIBS=$LIBS
  37516. LIBS="-lpri ${pbxlibdir} $LIBS"
  37517. cat >conftest.$ac_ext <<_ACEOF
  37518. /* confdefs.h. */
  37519. _ACEOF
  37520. cat confdefs.h >>conftest.$ac_ext
  37521. cat >>conftest.$ac_ext <<_ACEOF
  37522. /* end confdefs.h. */
  37523. /* Override any GCC internal prototype to avoid an error.
  37524. Use char because int might match the return type of a GCC
  37525. builtin and then its argument prototype would still apply. */
  37526. #ifdef __cplusplus
  37527. extern "C"
  37528. #endif
  37529. char ${pbxfuncname} ();
  37530. int
  37531. main ()
  37532. {
  37533. return ${pbxfuncname} ();
  37534. ;
  37535. return 0;
  37536. }
  37537. _ACEOF
  37538. rm -f conftest.$ac_objext conftest$ac_exeext
  37539. if { (ac_try="$ac_link"
  37540. case "(($ac_try" in
  37541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37542. *) ac_try_echo=$ac_try;;
  37543. esac
  37544. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37545. $as_echo "$ac_try_echo") >&5
  37546. (eval "$ac_link") 2>conftest.er1
  37547. ac_status=$?
  37548. grep -v '^ *+' conftest.er1 >conftest.err
  37549. rm -f conftest.er1
  37550. cat conftest.err >&5
  37551. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37552. (exit $ac_status); } && {
  37553. test -z "$ac_c_werror_flag" ||
  37554. test ! -s conftest.err
  37555. } && test -s conftest$ac_exeext && {
  37556. test "$cross_compiling" = yes ||
  37557. $as_test_x conftest$ac_exeext
  37558. }; then
  37559. eval "$as_ac_Lib=yes"
  37560. else
  37561. $as_echo "$as_me: failed program was:" >&5
  37562. sed 's/^/| /' conftest.$ac_ext >&5
  37563. eval "$as_ac_Lib=no"
  37564. fi
  37565. rm -rf conftest.dSYM
  37566. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37567. conftest$ac_exeext conftest.$ac_ext
  37568. LIBS=$ac_check_lib_save_LIBS
  37569. fi
  37570. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37571. $as_echo "$as_val"'`
  37572. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37573. $as_echo "$ac_res" >&6; }
  37574. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37575. $as_echo "$as_val"'`
  37576. if test "x$as_val" = x""yes; then
  37577. AST_PRI_CCSS_FOUND=yes
  37578. else
  37579. AST_PRI_CCSS_FOUND=no
  37580. fi
  37581. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37582. fi
  37583. # now check for the header.
  37584. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  37585. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  37586. # if --with-PRI_CCSS=DIR has been specified, use it.
  37587. if test "x${PRI_CCSS_DIR}" != "x"; then
  37588. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  37589. fi
  37590. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  37591. if test "xlibpri.h" = "x" ; then # no header, assume found
  37592. PRI_CCSS_HEADER_FOUND="1"
  37593. else # check for the header
  37594. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37595. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  37596. if test "${ac_cv_header_libpri_h+set}" = set; then
  37597. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37598. $as_echo_n "checking for libpri.h... " >&6; }
  37599. if test "${ac_cv_header_libpri_h+set}" = set; then
  37600. $as_echo_n "(cached) " >&6
  37601. fi
  37602. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37603. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37604. else
  37605. # Is the header compilable?
  37606. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37607. $as_echo_n "checking libpri.h usability... " >&6; }
  37608. cat >conftest.$ac_ext <<_ACEOF
  37609. /* confdefs.h. */
  37610. _ACEOF
  37611. cat confdefs.h >>conftest.$ac_ext
  37612. cat >>conftest.$ac_ext <<_ACEOF
  37613. /* end confdefs.h. */
  37614. $ac_includes_default
  37615. #include <libpri.h>
  37616. _ACEOF
  37617. rm -f conftest.$ac_objext
  37618. if { (ac_try="$ac_compile"
  37619. case "(($ac_try" in
  37620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37621. *) ac_try_echo=$ac_try;;
  37622. esac
  37623. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37624. $as_echo "$ac_try_echo") >&5
  37625. (eval "$ac_compile") 2>conftest.er1
  37626. ac_status=$?
  37627. grep -v '^ *+' conftest.er1 >conftest.err
  37628. rm -f conftest.er1
  37629. cat conftest.err >&5
  37630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37631. (exit $ac_status); } && {
  37632. test -z "$ac_c_werror_flag" ||
  37633. test ! -s conftest.err
  37634. } && test -s conftest.$ac_objext; then
  37635. ac_header_compiler=yes
  37636. else
  37637. $as_echo "$as_me: failed program was:" >&5
  37638. sed 's/^/| /' conftest.$ac_ext >&5
  37639. ac_header_compiler=no
  37640. fi
  37641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37642. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37643. $as_echo "$ac_header_compiler" >&6; }
  37644. # Is the header present?
  37645. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37646. $as_echo_n "checking libpri.h presence... " >&6; }
  37647. cat >conftest.$ac_ext <<_ACEOF
  37648. /* confdefs.h. */
  37649. _ACEOF
  37650. cat confdefs.h >>conftest.$ac_ext
  37651. cat >>conftest.$ac_ext <<_ACEOF
  37652. /* end confdefs.h. */
  37653. #include <libpri.h>
  37654. _ACEOF
  37655. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37656. case "(($ac_try" in
  37657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37658. *) ac_try_echo=$ac_try;;
  37659. esac
  37660. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37661. $as_echo "$ac_try_echo") >&5
  37662. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37663. ac_status=$?
  37664. grep -v '^ *+' conftest.er1 >conftest.err
  37665. rm -f conftest.er1
  37666. cat conftest.err >&5
  37667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37668. (exit $ac_status); } >/dev/null && {
  37669. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37670. test ! -s conftest.err
  37671. }; then
  37672. ac_header_preproc=yes
  37673. else
  37674. $as_echo "$as_me: failed program was:" >&5
  37675. sed 's/^/| /' conftest.$ac_ext >&5
  37676. ac_header_preproc=no
  37677. fi
  37678. rm -f conftest.err conftest.$ac_ext
  37679. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37680. $as_echo "$ac_header_preproc" >&6; }
  37681. # So? What about this header?
  37682. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37683. yes:no: )
  37684. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37685. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37686. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37687. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37688. ac_header_preproc=yes
  37689. ;;
  37690. no:yes:* )
  37691. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37692. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37693. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37694. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37695. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37696. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37697. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37698. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37699. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37700. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37701. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37702. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37703. ( cat <<\_ASBOX
  37704. ## ------------------------------------------ ##
  37705. ## Report this to https://issues.asterisk.org ##
  37706. ## ------------------------------------------ ##
  37707. _ASBOX
  37708. ) | sed "s/^/$as_me: WARNING: /" >&2
  37709. ;;
  37710. esac
  37711. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37712. $as_echo_n "checking for libpri.h... " >&6; }
  37713. if test "${ac_cv_header_libpri_h+set}" = set; then
  37714. $as_echo_n "(cached) " >&6
  37715. else
  37716. ac_cv_header_libpri_h=$ac_header_preproc
  37717. fi
  37718. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37719. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37720. fi
  37721. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37722. PRI_CCSS_HEADER_FOUND=1
  37723. else
  37724. PRI_CCSS_HEADER_FOUND=0
  37725. fi
  37726. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37727. fi
  37728. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  37729. PRI_CCSS_LIB=""
  37730. PRI_CCSS_INCLUDE=""
  37731. else
  37732. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37733. PRI_CCSS_LIB=""
  37734. fi
  37735. PBX_PRI_CCSS=1
  37736. cat >>confdefs.h <<_ACEOF
  37737. #define HAVE_PRI_CCSS 1
  37738. _ACEOF
  37739. fi
  37740. fi
  37741. fi
  37742. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  37743. pbxlibdir=""
  37744. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  37745. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  37746. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  37747. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  37748. else
  37749. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  37750. fi
  37751. fi
  37752. pbxfuncname="pri_hangup_fix_enable"
  37753. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37754. AST_PRI_HANGUP_FIX_FOUND=yes
  37755. else
  37756. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37757. CFLAGS="${CFLAGS} "
  37758. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37759. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37760. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37761. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37762. $as_echo_n "(cached) " >&6
  37763. else
  37764. ac_check_lib_save_LIBS=$LIBS
  37765. LIBS="-lpri ${pbxlibdir} $LIBS"
  37766. cat >conftest.$ac_ext <<_ACEOF
  37767. /* confdefs.h. */
  37768. _ACEOF
  37769. cat confdefs.h >>conftest.$ac_ext
  37770. cat >>conftest.$ac_ext <<_ACEOF
  37771. /* end confdefs.h. */
  37772. /* Override any GCC internal prototype to avoid an error.
  37773. Use char because int might match the return type of a GCC
  37774. builtin and then its argument prototype would still apply. */
  37775. #ifdef __cplusplus
  37776. extern "C"
  37777. #endif
  37778. char ${pbxfuncname} ();
  37779. int
  37780. main ()
  37781. {
  37782. return ${pbxfuncname} ();
  37783. ;
  37784. return 0;
  37785. }
  37786. _ACEOF
  37787. rm -f conftest.$ac_objext conftest$ac_exeext
  37788. if { (ac_try="$ac_link"
  37789. case "(($ac_try" in
  37790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37791. *) ac_try_echo=$ac_try;;
  37792. esac
  37793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37794. $as_echo "$ac_try_echo") >&5
  37795. (eval "$ac_link") 2>conftest.er1
  37796. ac_status=$?
  37797. grep -v '^ *+' conftest.er1 >conftest.err
  37798. rm -f conftest.er1
  37799. cat conftest.err >&5
  37800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37801. (exit $ac_status); } && {
  37802. test -z "$ac_c_werror_flag" ||
  37803. test ! -s conftest.err
  37804. } && test -s conftest$ac_exeext && {
  37805. test "$cross_compiling" = yes ||
  37806. $as_test_x conftest$ac_exeext
  37807. }; then
  37808. eval "$as_ac_Lib=yes"
  37809. else
  37810. $as_echo "$as_me: failed program was:" >&5
  37811. sed 's/^/| /' conftest.$ac_ext >&5
  37812. eval "$as_ac_Lib=no"
  37813. fi
  37814. rm -rf conftest.dSYM
  37815. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37816. conftest$ac_exeext conftest.$ac_ext
  37817. LIBS=$ac_check_lib_save_LIBS
  37818. fi
  37819. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37820. $as_echo "$as_val"'`
  37821. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37822. $as_echo "$ac_res" >&6; }
  37823. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37824. $as_echo "$as_val"'`
  37825. if test "x$as_val" = x""yes; then
  37826. AST_PRI_HANGUP_FIX_FOUND=yes
  37827. else
  37828. AST_PRI_HANGUP_FIX_FOUND=no
  37829. fi
  37830. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37831. fi
  37832. # now check for the header.
  37833. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  37834. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  37835. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  37836. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  37837. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  37838. fi
  37839. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  37840. if test "xlibpri.h" = "x" ; then # no header, assume found
  37841. PRI_HANGUP_FIX_HEADER_FOUND="1"
  37842. else # check for the header
  37843. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37844. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  37845. if test "${ac_cv_header_libpri_h+set}" = set; then
  37846. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37847. $as_echo_n "checking for libpri.h... " >&6; }
  37848. if test "${ac_cv_header_libpri_h+set}" = set; then
  37849. $as_echo_n "(cached) " >&6
  37850. fi
  37851. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37852. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37853. else
  37854. # Is the header compilable?
  37855. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37856. $as_echo_n "checking libpri.h usability... " >&6; }
  37857. cat >conftest.$ac_ext <<_ACEOF
  37858. /* confdefs.h. */
  37859. _ACEOF
  37860. cat confdefs.h >>conftest.$ac_ext
  37861. cat >>conftest.$ac_ext <<_ACEOF
  37862. /* end confdefs.h. */
  37863. $ac_includes_default
  37864. #include <libpri.h>
  37865. _ACEOF
  37866. rm -f conftest.$ac_objext
  37867. if { (ac_try="$ac_compile"
  37868. case "(($ac_try" in
  37869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37870. *) ac_try_echo=$ac_try;;
  37871. esac
  37872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37873. $as_echo "$ac_try_echo") >&5
  37874. (eval "$ac_compile") 2>conftest.er1
  37875. ac_status=$?
  37876. grep -v '^ *+' conftest.er1 >conftest.err
  37877. rm -f conftest.er1
  37878. cat conftest.err >&5
  37879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37880. (exit $ac_status); } && {
  37881. test -z "$ac_c_werror_flag" ||
  37882. test ! -s conftest.err
  37883. } && test -s conftest.$ac_objext; then
  37884. ac_header_compiler=yes
  37885. else
  37886. $as_echo "$as_me: failed program was:" >&5
  37887. sed 's/^/| /' conftest.$ac_ext >&5
  37888. ac_header_compiler=no
  37889. fi
  37890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37891. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37892. $as_echo "$ac_header_compiler" >&6; }
  37893. # Is the header present?
  37894. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37895. $as_echo_n "checking libpri.h presence... " >&6; }
  37896. cat >conftest.$ac_ext <<_ACEOF
  37897. /* confdefs.h. */
  37898. _ACEOF
  37899. cat confdefs.h >>conftest.$ac_ext
  37900. cat >>conftest.$ac_ext <<_ACEOF
  37901. /* end confdefs.h. */
  37902. #include <libpri.h>
  37903. _ACEOF
  37904. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37905. case "(($ac_try" in
  37906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37907. *) ac_try_echo=$ac_try;;
  37908. esac
  37909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37910. $as_echo "$ac_try_echo") >&5
  37911. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37912. ac_status=$?
  37913. grep -v '^ *+' conftest.er1 >conftest.err
  37914. rm -f conftest.er1
  37915. cat conftest.err >&5
  37916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37917. (exit $ac_status); } >/dev/null && {
  37918. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37919. test ! -s conftest.err
  37920. }; then
  37921. ac_header_preproc=yes
  37922. else
  37923. $as_echo "$as_me: failed program was:" >&5
  37924. sed 's/^/| /' conftest.$ac_ext >&5
  37925. ac_header_preproc=no
  37926. fi
  37927. rm -f conftest.err conftest.$ac_ext
  37928. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37929. $as_echo "$ac_header_preproc" >&6; }
  37930. # So? What about this header?
  37931. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37932. yes:no: )
  37933. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37934. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37935. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37936. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37937. ac_header_preproc=yes
  37938. ;;
  37939. no:yes:* )
  37940. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37941. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37942. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37943. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37944. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37945. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37946. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37947. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37948. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37949. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37950. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37951. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37952. ( cat <<\_ASBOX
  37953. ## ------------------------------------------ ##
  37954. ## Report this to https://issues.asterisk.org ##
  37955. ## ------------------------------------------ ##
  37956. _ASBOX
  37957. ) | sed "s/^/$as_me: WARNING: /" >&2
  37958. ;;
  37959. esac
  37960. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37961. $as_echo_n "checking for libpri.h... " >&6; }
  37962. if test "${ac_cv_header_libpri_h+set}" = set; then
  37963. $as_echo_n "(cached) " >&6
  37964. else
  37965. ac_cv_header_libpri_h=$ac_header_preproc
  37966. fi
  37967. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37968. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37969. fi
  37970. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37971. PRI_HANGUP_FIX_HEADER_FOUND=1
  37972. else
  37973. PRI_HANGUP_FIX_HEADER_FOUND=0
  37974. fi
  37975. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37976. fi
  37977. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  37978. PRI_HANGUP_FIX_LIB=""
  37979. PRI_HANGUP_FIX_INCLUDE=""
  37980. else
  37981. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37982. PRI_HANGUP_FIX_LIB=""
  37983. fi
  37984. PBX_PRI_HANGUP_FIX=1
  37985. cat >>confdefs.h <<_ACEOF
  37986. #define HAVE_PRI_HANGUP_FIX 1
  37987. _ACEOF
  37988. fi
  37989. fi
  37990. fi
  37991. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  37992. pbxlibdir=""
  37993. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  37994. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  37995. if test -d ${PRI_SUBADDR_DIR}/lib; then
  37996. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  37997. else
  37998. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  37999. fi
  38000. fi
  38001. pbxfuncname="pri_sr_set_called_subaddress"
  38002. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38003. AST_PRI_SUBADDR_FOUND=yes
  38004. else
  38005. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38006. CFLAGS="${CFLAGS} "
  38007. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38008. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38009. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38010. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38011. $as_echo_n "(cached) " >&6
  38012. else
  38013. ac_check_lib_save_LIBS=$LIBS
  38014. LIBS="-lpri ${pbxlibdir} $LIBS"
  38015. cat >conftest.$ac_ext <<_ACEOF
  38016. /* confdefs.h. */
  38017. _ACEOF
  38018. cat confdefs.h >>conftest.$ac_ext
  38019. cat >>conftest.$ac_ext <<_ACEOF
  38020. /* end confdefs.h. */
  38021. /* Override any GCC internal prototype to avoid an error.
  38022. Use char because int might match the return type of a GCC
  38023. builtin and then its argument prototype would still apply. */
  38024. #ifdef __cplusplus
  38025. extern "C"
  38026. #endif
  38027. char ${pbxfuncname} ();
  38028. int
  38029. main ()
  38030. {
  38031. return ${pbxfuncname} ();
  38032. ;
  38033. return 0;
  38034. }
  38035. _ACEOF
  38036. rm -f conftest.$ac_objext conftest$ac_exeext
  38037. if { (ac_try="$ac_link"
  38038. case "(($ac_try" in
  38039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38040. *) ac_try_echo=$ac_try;;
  38041. esac
  38042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38043. $as_echo "$ac_try_echo") >&5
  38044. (eval "$ac_link") 2>conftest.er1
  38045. ac_status=$?
  38046. grep -v '^ *+' conftest.er1 >conftest.err
  38047. rm -f conftest.er1
  38048. cat conftest.err >&5
  38049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38050. (exit $ac_status); } && {
  38051. test -z "$ac_c_werror_flag" ||
  38052. test ! -s conftest.err
  38053. } && test -s conftest$ac_exeext && {
  38054. test "$cross_compiling" = yes ||
  38055. $as_test_x conftest$ac_exeext
  38056. }; then
  38057. eval "$as_ac_Lib=yes"
  38058. else
  38059. $as_echo "$as_me: failed program was:" >&5
  38060. sed 's/^/| /' conftest.$ac_ext >&5
  38061. eval "$as_ac_Lib=no"
  38062. fi
  38063. rm -rf conftest.dSYM
  38064. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38065. conftest$ac_exeext conftest.$ac_ext
  38066. LIBS=$ac_check_lib_save_LIBS
  38067. fi
  38068. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38069. $as_echo "$as_val"'`
  38070. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38071. $as_echo "$ac_res" >&6; }
  38072. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38073. $as_echo "$as_val"'`
  38074. if test "x$as_val" = x""yes; then
  38075. AST_PRI_SUBADDR_FOUND=yes
  38076. else
  38077. AST_PRI_SUBADDR_FOUND=no
  38078. fi
  38079. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38080. fi
  38081. # now check for the header.
  38082. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  38083. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  38084. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  38085. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  38086. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  38087. fi
  38088. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  38089. if test "xlibpri.h" = "x" ; then # no header, assume found
  38090. PRI_SUBADDR_HEADER_FOUND="1"
  38091. else # check for the header
  38092. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38093. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  38094. if test "${ac_cv_header_libpri_h+set}" = set; then
  38095. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38096. $as_echo_n "checking for libpri.h... " >&6; }
  38097. if test "${ac_cv_header_libpri_h+set}" = set; then
  38098. $as_echo_n "(cached) " >&6
  38099. fi
  38100. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38101. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38102. else
  38103. # Is the header compilable?
  38104. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38105. $as_echo_n "checking libpri.h usability... " >&6; }
  38106. cat >conftest.$ac_ext <<_ACEOF
  38107. /* confdefs.h. */
  38108. _ACEOF
  38109. cat confdefs.h >>conftest.$ac_ext
  38110. cat >>conftest.$ac_ext <<_ACEOF
  38111. /* end confdefs.h. */
  38112. $ac_includes_default
  38113. #include <libpri.h>
  38114. _ACEOF
  38115. rm -f conftest.$ac_objext
  38116. if { (ac_try="$ac_compile"
  38117. case "(($ac_try" in
  38118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38119. *) ac_try_echo=$ac_try;;
  38120. esac
  38121. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38122. $as_echo "$ac_try_echo") >&5
  38123. (eval "$ac_compile") 2>conftest.er1
  38124. ac_status=$?
  38125. grep -v '^ *+' conftest.er1 >conftest.err
  38126. rm -f conftest.er1
  38127. cat conftest.err >&5
  38128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38129. (exit $ac_status); } && {
  38130. test -z "$ac_c_werror_flag" ||
  38131. test ! -s conftest.err
  38132. } && test -s conftest.$ac_objext; then
  38133. ac_header_compiler=yes
  38134. else
  38135. $as_echo "$as_me: failed program was:" >&5
  38136. sed 's/^/| /' conftest.$ac_ext >&5
  38137. ac_header_compiler=no
  38138. fi
  38139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38140. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38141. $as_echo "$ac_header_compiler" >&6; }
  38142. # Is the header present?
  38143. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38144. $as_echo_n "checking libpri.h presence... " >&6; }
  38145. cat >conftest.$ac_ext <<_ACEOF
  38146. /* confdefs.h. */
  38147. _ACEOF
  38148. cat confdefs.h >>conftest.$ac_ext
  38149. cat >>conftest.$ac_ext <<_ACEOF
  38150. /* end confdefs.h. */
  38151. #include <libpri.h>
  38152. _ACEOF
  38153. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38154. case "(($ac_try" in
  38155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38156. *) ac_try_echo=$ac_try;;
  38157. esac
  38158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38159. $as_echo "$ac_try_echo") >&5
  38160. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38161. ac_status=$?
  38162. grep -v '^ *+' conftest.er1 >conftest.err
  38163. rm -f conftest.er1
  38164. cat conftest.err >&5
  38165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38166. (exit $ac_status); } >/dev/null && {
  38167. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38168. test ! -s conftest.err
  38169. }; then
  38170. ac_header_preproc=yes
  38171. else
  38172. $as_echo "$as_me: failed program was:" >&5
  38173. sed 's/^/| /' conftest.$ac_ext >&5
  38174. ac_header_preproc=no
  38175. fi
  38176. rm -f conftest.err conftest.$ac_ext
  38177. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38178. $as_echo "$ac_header_preproc" >&6; }
  38179. # So? What about this header?
  38180. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38181. yes:no: )
  38182. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38183. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38184. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38185. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38186. ac_header_preproc=yes
  38187. ;;
  38188. no:yes:* )
  38189. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38190. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38191. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38192. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38193. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38194. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38195. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38196. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38197. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38198. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38199. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38200. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38201. ( cat <<\_ASBOX
  38202. ## ------------------------------------------ ##
  38203. ## Report this to https://issues.asterisk.org ##
  38204. ## ------------------------------------------ ##
  38205. _ASBOX
  38206. ) | sed "s/^/$as_me: WARNING: /" >&2
  38207. ;;
  38208. esac
  38209. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38210. $as_echo_n "checking for libpri.h... " >&6; }
  38211. if test "${ac_cv_header_libpri_h+set}" = set; then
  38212. $as_echo_n "(cached) " >&6
  38213. else
  38214. ac_cv_header_libpri_h=$ac_header_preproc
  38215. fi
  38216. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38217. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38218. fi
  38219. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38220. PRI_SUBADDR_HEADER_FOUND=1
  38221. else
  38222. PRI_SUBADDR_HEADER_FOUND=0
  38223. fi
  38224. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38225. fi
  38226. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  38227. PRI_SUBADDR_LIB=""
  38228. PRI_SUBADDR_INCLUDE=""
  38229. else
  38230. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38231. PRI_SUBADDR_LIB=""
  38232. fi
  38233. PBX_PRI_SUBADDR=1
  38234. cat >>confdefs.h <<_ACEOF
  38235. #define HAVE_PRI_SUBADDR 1
  38236. _ACEOF
  38237. fi
  38238. fi
  38239. fi
  38240. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  38241. pbxlibdir=""
  38242. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  38243. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  38244. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  38245. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  38246. else
  38247. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  38248. fi
  38249. fi
  38250. pbxfuncname="pri_hold_enable"
  38251. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38252. AST_PRI_CALL_HOLD_FOUND=yes
  38253. else
  38254. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38255. CFLAGS="${CFLAGS} "
  38256. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38257. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38258. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38259. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38260. $as_echo_n "(cached) " >&6
  38261. else
  38262. ac_check_lib_save_LIBS=$LIBS
  38263. LIBS="-lpri ${pbxlibdir} $LIBS"
  38264. cat >conftest.$ac_ext <<_ACEOF
  38265. /* confdefs.h. */
  38266. _ACEOF
  38267. cat confdefs.h >>conftest.$ac_ext
  38268. cat >>conftest.$ac_ext <<_ACEOF
  38269. /* end confdefs.h. */
  38270. /* Override any GCC internal prototype to avoid an error.
  38271. Use char because int might match the return type of a GCC
  38272. builtin and then its argument prototype would still apply. */
  38273. #ifdef __cplusplus
  38274. extern "C"
  38275. #endif
  38276. char ${pbxfuncname} ();
  38277. int
  38278. main ()
  38279. {
  38280. return ${pbxfuncname} ();
  38281. ;
  38282. return 0;
  38283. }
  38284. _ACEOF
  38285. rm -f conftest.$ac_objext conftest$ac_exeext
  38286. if { (ac_try="$ac_link"
  38287. case "(($ac_try" in
  38288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38289. *) ac_try_echo=$ac_try;;
  38290. esac
  38291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38292. $as_echo "$ac_try_echo") >&5
  38293. (eval "$ac_link") 2>conftest.er1
  38294. ac_status=$?
  38295. grep -v '^ *+' conftest.er1 >conftest.err
  38296. rm -f conftest.er1
  38297. cat conftest.err >&5
  38298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38299. (exit $ac_status); } && {
  38300. test -z "$ac_c_werror_flag" ||
  38301. test ! -s conftest.err
  38302. } && test -s conftest$ac_exeext && {
  38303. test "$cross_compiling" = yes ||
  38304. $as_test_x conftest$ac_exeext
  38305. }; then
  38306. eval "$as_ac_Lib=yes"
  38307. else
  38308. $as_echo "$as_me: failed program was:" >&5
  38309. sed 's/^/| /' conftest.$ac_ext >&5
  38310. eval "$as_ac_Lib=no"
  38311. fi
  38312. rm -rf conftest.dSYM
  38313. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38314. conftest$ac_exeext conftest.$ac_ext
  38315. LIBS=$ac_check_lib_save_LIBS
  38316. fi
  38317. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38318. $as_echo "$as_val"'`
  38319. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38320. $as_echo "$ac_res" >&6; }
  38321. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38322. $as_echo "$as_val"'`
  38323. if test "x$as_val" = x""yes; then
  38324. AST_PRI_CALL_HOLD_FOUND=yes
  38325. else
  38326. AST_PRI_CALL_HOLD_FOUND=no
  38327. fi
  38328. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38329. fi
  38330. # now check for the header.
  38331. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  38332. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  38333. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  38334. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  38335. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  38336. fi
  38337. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  38338. if test "xlibpri.h" = "x" ; then # no header, assume found
  38339. PRI_CALL_HOLD_HEADER_FOUND="1"
  38340. else # check for the header
  38341. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38342. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  38343. if test "${ac_cv_header_libpri_h+set}" = set; then
  38344. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38345. $as_echo_n "checking for libpri.h... " >&6; }
  38346. if test "${ac_cv_header_libpri_h+set}" = set; then
  38347. $as_echo_n "(cached) " >&6
  38348. fi
  38349. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38350. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38351. else
  38352. # Is the header compilable?
  38353. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38354. $as_echo_n "checking libpri.h usability... " >&6; }
  38355. cat >conftest.$ac_ext <<_ACEOF
  38356. /* confdefs.h. */
  38357. _ACEOF
  38358. cat confdefs.h >>conftest.$ac_ext
  38359. cat >>conftest.$ac_ext <<_ACEOF
  38360. /* end confdefs.h. */
  38361. $ac_includes_default
  38362. #include <libpri.h>
  38363. _ACEOF
  38364. rm -f conftest.$ac_objext
  38365. if { (ac_try="$ac_compile"
  38366. case "(($ac_try" in
  38367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38368. *) ac_try_echo=$ac_try;;
  38369. esac
  38370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38371. $as_echo "$ac_try_echo") >&5
  38372. (eval "$ac_compile") 2>conftest.er1
  38373. ac_status=$?
  38374. grep -v '^ *+' conftest.er1 >conftest.err
  38375. rm -f conftest.er1
  38376. cat conftest.err >&5
  38377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38378. (exit $ac_status); } && {
  38379. test -z "$ac_c_werror_flag" ||
  38380. test ! -s conftest.err
  38381. } && test -s conftest.$ac_objext; then
  38382. ac_header_compiler=yes
  38383. else
  38384. $as_echo "$as_me: failed program was:" >&5
  38385. sed 's/^/| /' conftest.$ac_ext >&5
  38386. ac_header_compiler=no
  38387. fi
  38388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38389. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38390. $as_echo "$ac_header_compiler" >&6; }
  38391. # Is the header present?
  38392. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38393. $as_echo_n "checking libpri.h presence... " >&6; }
  38394. cat >conftest.$ac_ext <<_ACEOF
  38395. /* confdefs.h. */
  38396. _ACEOF
  38397. cat confdefs.h >>conftest.$ac_ext
  38398. cat >>conftest.$ac_ext <<_ACEOF
  38399. /* end confdefs.h. */
  38400. #include <libpri.h>
  38401. _ACEOF
  38402. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38403. case "(($ac_try" in
  38404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38405. *) ac_try_echo=$ac_try;;
  38406. esac
  38407. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38408. $as_echo "$ac_try_echo") >&5
  38409. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38410. ac_status=$?
  38411. grep -v '^ *+' conftest.er1 >conftest.err
  38412. rm -f conftest.er1
  38413. cat conftest.err >&5
  38414. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38415. (exit $ac_status); } >/dev/null && {
  38416. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38417. test ! -s conftest.err
  38418. }; then
  38419. ac_header_preproc=yes
  38420. else
  38421. $as_echo "$as_me: failed program was:" >&5
  38422. sed 's/^/| /' conftest.$ac_ext >&5
  38423. ac_header_preproc=no
  38424. fi
  38425. rm -f conftest.err conftest.$ac_ext
  38426. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38427. $as_echo "$ac_header_preproc" >&6; }
  38428. # So? What about this header?
  38429. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38430. yes:no: )
  38431. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38432. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38433. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38434. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38435. ac_header_preproc=yes
  38436. ;;
  38437. no:yes:* )
  38438. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38439. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38440. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38441. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38442. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38443. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38444. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38445. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38446. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38447. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38448. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38449. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38450. ( cat <<\_ASBOX
  38451. ## ------------------------------------------ ##
  38452. ## Report this to https://issues.asterisk.org ##
  38453. ## ------------------------------------------ ##
  38454. _ASBOX
  38455. ) | sed "s/^/$as_me: WARNING: /" >&2
  38456. ;;
  38457. esac
  38458. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38459. $as_echo_n "checking for libpri.h... " >&6; }
  38460. if test "${ac_cv_header_libpri_h+set}" = set; then
  38461. $as_echo_n "(cached) " >&6
  38462. else
  38463. ac_cv_header_libpri_h=$ac_header_preproc
  38464. fi
  38465. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38466. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38467. fi
  38468. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38469. PRI_CALL_HOLD_HEADER_FOUND=1
  38470. else
  38471. PRI_CALL_HOLD_HEADER_FOUND=0
  38472. fi
  38473. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38474. fi
  38475. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  38476. PRI_CALL_HOLD_LIB=""
  38477. PRI_CALL_HOLD_INCLUDE=""
  38478. else
  38479. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38480. PRI_CALL_HOLD_LIB=""
  38481. fi
  38482. PBX_PRI_CALL_HOLD=1
  38483. cat >>confdefs.h <<_ACEOF
  38484. #define HAVE_PRI_CALL_HOLD 1
  38485. _ACEOF
  38486. fi
  38487. fi
  38488. fi
  38489. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  38490. pbxlibdir=""
  38491. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  38492. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  38493. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  38494. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  38495. else
  38496. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  38497. fi
  38498. fi
  38499. pbxfuncname="pri_reroute_enable"
  38500. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38501. AST_PRI_CALL_REROUTING_FOUND=yes
  38502. else
  38503. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38504. CFLAGS="${CFLAGS} "
  38505. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38506. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38507. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38508. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38509. $as_echo_n "(cached) " >&6
  38510. else
  38511. ac_check_lib_save_LIBS=$LIBS
  38512. LIBS="-lpri ${pbxlibdir} $LIBS"
  38513. cat >conftest.$ac_ext <<_ACEOF
  38514. /* confdefs.h. */
  38515. _ACEOF
  38516. cat confdefs.h >>conftest.$ac_ext
  38517. cat >>conftest.$ac_ext <<_ACEOF
  38518. /* end confdefs.h. */
  38519. /* Override any GCC internal prototype to avoid an error.
  38520. Use char because int might match the return type of a GCC
  38521. builtin and then its argument prototype would still apply. */
  38522. #ifdef __cplusplus
  38523. extern "C"
  38524. #endif
  38525. char ${pbxfuncname} ();
  38526. int
  38527. main ()
  38528. {
  38529. return ${pbxfuncname} ();
  38530. ;
  38531. return 0;
  38532. }
  38533. _ACEOF
  38534. rm -f conftest.$ac_objext conftest$ac_exeext
  38535. if { (ac_try="$ac_link"
  38536. case "(($ac_try" in
  38537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38538. *) ac_try_echo=$ac_try;;
  38539. esac
  38540. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38541. $as_echo "$ac_try_echo") >&5
  38542. (eval "$ac_link") 2>conftest.er1
  38543. ac_status=$?
  38544. grep -v '^ *+' conftest.er1 >conftest.err
  38545. rm -f conftest.er1
  38546. cat conftest.err >&5
  38547. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38548. (exit $ac_status); } && {
  38549. test -z "$ac_c_werror_flag" ||
  38550. test ! -s conftest.err
  38551. } && test -s conftest$ac_exeext && {
  38552. test "$cross_compiling" = yes ||
  38553. $as_test_x conftest$ac_exeext
  38554. }; then
  38555. eval "$as_ac_Lib=yes"
  38556. else
  38557. $as_echo "$as_me: failed program was:" >&5
  38558. sed 's/^/| /' conftest.$ac_ext >&5
  38559. eval "$as_ac_Lib=no"
  38560. fi
  38561. rm -rf conftest.dSYM
  38562. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38563. conftest$ac_exeext conftest.$ac_ext
  38564. LIBS=$ac_check_lib_save_LIBS
  38565. fi
  38566. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38567. $as_echo "$as_val"'`
  38568. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38569. $as_echo "$ac_res" >&6; }
  38570. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38571. $as_echo "$as_val"'`
  38572. if test "x$as_val" = x""yes; then
  38573. AST_PRI_CALL_REROUTING_FOUND=yes
  38574. else
  38575. AST_PRI_CALL_REROUTING_FOUND=no
  38576. fi
  38577. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38578. fi
  38579. # now check for the header.
  38580. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  38581. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  38582. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  38583. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  38584. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  38585. fi
  38586. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  38587. if test "xlibpri.h" = "x" ; then # no header, assume found
  38588. PRI_CALL_REROUTING_HEADER_FOUND="1"
  38589. else # check for the header
  38590. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38591. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  38592. if test "${ac_cv_header_libpri_h+set}" = set; then
  38593. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38594. $as_echo_n "checking for libpri.h... " >&6; }
  38595. if test "${ac_cv_header_libpri_h+set}" = set; then
  38596. $as_echo_n "(cached) " >&6
  38597. fi
  38598. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38599. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38600. else
  38601. # Is the header compilable?
  38602. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38603. $as_echo_n "checking libpri.h usability... " >&6; }
  38604. cat >conftest.$ac_ext <<_ACEOF
  38605. /* confdefs.h. */
  38606. _ACEOF
  38607. cat confdefs.h >>conftest.$ac_ext
  38608. cat >>conftest.$ac_ext <<_ACEOF
  38609. /* end confdefs.h. */
  38610. $ac_includes_default
  38611. #include <libpri.h>
  38612. _ACEOF
  38613. rm -f conftest.$ac_objext
  38614. if { (ac_try="$ac_compile"
  38615. case "(($ac_try" in
  38616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38617. *) ac_try_echo=$ac_try;;
  38618. esac
  38619. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38620. $as_echo "$ac_try_echo") >&5
  38621. (eval "$ac_compile") 2>conftest.er1
  38622. ac_status=$?
  38623. grep -v '^ *+' conftest.er1 >conftest.err
  38624. rm -f conftest.er1
  38625. cat conftest.err >&5
  38626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38627. (exit $ac_status); } && {
  38628. test -z "$ac_c_werror_flag" ||
  38629. test ! -s conftest.err
  38630. } && test -s conftest.$ac_objext; then
  38631. ac_header_compiler=yes
  38632. else
  38633. $as_echo "$as_me: failed program was:" >&5
  38634. sed 's/^/| /' conftest.$ac_ext >&5
  38635. ac_header_compiler=no
  38636. fi
  38637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38638. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38639. $as_echo "$ac_header_compiler" >&6; }
  38640. # Is the header present?
  38641. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38642. $as_echo_n "checking libpri.h presence... " >&6; }
  38643. cat >conftest.$ac_ext <<_ACEOF
  38644. /* confdefs.h. */
  38645. _ACEOF
  38646. cat confdefs.h >>conftest.$ac_ext
  38647. cat >>conftest.$ac_ext <<_ACEOF
  38648. /* end confdefs.h. */
  38649. #include <libpri.h>
  38650. _ACEOF
  38651. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38652. case "(($ac_try" in
  38653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38654. *) ac_try_echo=$ac_try;;
  38655. esac
  38656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38657. $as_echo "$ac_try_echo") >&5
  38658. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38659. ac_status=$?
  38660. grep -v '^ *+' conftest.er1 >conftest.err
  38661. rm -f conftest.er1
  38662. cat conftest.err >&5
  38663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38664. (exit $ac_status); } >/dev/null && {
  38665. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38666. test ! -s conftest.err
  38667. }; then
  38668. ac_header_preproc=yes
  38669. else
  38670. $as_echo "$as_me: failed program was:" >&5
  38671. sed 's/^/| /' conftest.$ac_ext >&5
  38672. ac_header_preproc=no
  38673. fi
  38674. rm -f conftest.err conftest.$ac_ext
  38675. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38676. $as_echo "$ac_header_preproc" >&6; }
  38677. # So? What about this header?
  38678. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38679. yes:no: )
  38680. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38681. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38682. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38683. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38684. ac_header_preproc=yes
  38685. ;;
  38686. no:yes:* )
  38687. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38688. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38689. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38690. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38691. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38692. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38693. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38694. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38695. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38696. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38697. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38698. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38699. ( cat <<\_ASBOX
  38700. ## ------------------------------------------ ##
  38701. ## Report this to https://issues.asterisk.org ##
  38702. ## ------------------------------------------ ##
  38703. _ASBOX
  38704. ) | sed "s/^/$as_me: WARNING: /" >&2
  38705. ;;
  38706. esac
  38707. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38708. $as_echo_n "checking for libpri.h... " >&6; }
  38709. if test "${ac_cv_header_libpri_h+set}" = set; then
  38710. $as_echo_n "(cached) " >&6
  38711. else
  38712. ac_cv_header_libpri_h=$ac_header_preproc
  38713. fi
  38714. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38715. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38716. fi
  38717. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38718. PRI_CALL_REROUTING_HEADER_FOUND=1
  38719. else
  38720. PRI_CALL_REROUTING_HEADER_FOUND=0
  38721. fi
  38722. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38723. fi
  38724. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  38725. PRI_CALL_REROUTING_LIB=""
  38726. PRI_CALL_REROUTING_INCLUDE=""
  38727. else
  38728. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38729. PRI_CALL_REROUTING_LIB=""
  38730. fi
  38731. PBX_PRI_CALL_REROUTING=1
  38732. cat >>confdefs.h <<_ACEOF
  38733. #define HAVE_PRI_CALL_REROUTING 1
  38734. _ACEOF
  38735. fi
  38736. fi
  38737. fi
  38738. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  38739. pbxlibdir=""
  38740. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  38741. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  38742. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  38743. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  38744. else
  38745. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  38746. fi
  38747. fi
  38748. pbxfuncname="pri_sr_set_keypad_digits"
  38749. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38750. AST_PRI_SETUP_KEYPAD_FOUND=yes
  38751. else
  38752. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38753. CFLAGS="${CFLAGS} "
  38754. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38755. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38756. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38757. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38758. $as_echo_n "(cached) " >&6
  38759. else
  38760. ac_check_lib_save_LIBS=$LIBS
  38761. LIBS="-lpri ${pbxlibdir} $LIBS"
  38762. cat >conftest.$ac_ext <<_ACEOF
  38763. /* confdefs.h. */
  38764. _ACEOF
  38765. cat confdefs.h >>conftest.$ac_ext
  38766. cat >>conftest.$ac_ext <<_ACEOF
  38767. /* end confdefs.h. */
  38768. /* Override any GCC internal prototype to avoid an error.
  38769. Use char because int might match the return type of a GCC
  38770. builtin and then its argument prototype would still apply. */
  38771. #ifdef __cplusplus
  38772. extern "C"
  38773. #endif
  38774. char ${pbxfuncname} ();
  38775. int
  38776. main ()
  38777. {
  38778. return ${pbxfuncname} ();
  38779. ;
  38780. return 0;
  38781. }
  38782. _ACEOF
  38783. rm -f conftest.$ac_objext conftest$ac_exeext
  38784. if { (ac_try="$ac_link"
  38785. case "(($ac_try" in
  38786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38787. *) ac_try_echo=$ac_try;;
  38788. esac
  38789. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38790. $as_echo "$ac_try_echo") >&5
  38791. (eval "$ac_link") 2>conftest.er1
  38792. ac_status=$?
  38793. grep -v '^ *+' conftest.er1 >conftest.err
  38794. rm -f conftest.er1
  38795. cat conftest.err >&5
  38796. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38797. (exit $ac_status); } && {
  38798. test -z "$ac_c_werror_flag" ||
  38799. test ! -s conftest.err
  38800. } && test -s conftest$ac_exeext && {
  38801. test "$cross_compiling" = yes ||
  38802. $as_test_x conftest$ac_exeext
  38803. }; then
  38804. eval "$as_ac_Lib=yes"
  38805. else
  38806. $as_echo "$as_me: failed program was:" >&5
  38807. sed 's/^/| /' conftest.$ac_ext >&5
  38808. eval "$as_ac_Lib=no"
  38809. fi
  38810. rm -rf conftest.dSYM
  38811. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38812. conftest$ac_exeext conftest.$ac_ext
  38813. LIBS=$ac_check_lib_save_LIBS
  38814. fi
  38815. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38816. $as_echo "$as_val"'`
  38817. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38818. $as_echo "$ac_res" >&6; }
  38819. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38820. $as_echo "$as_val"'`
  38821. if test "x$as_val" = x""yes; then
  38822. AST_PRI_SETUP_KEYPAD_FOUND=yes
  38823. else
  38824. AST_PRI_SETUP_KEYPAD_FOUND=no
  38825. fi
  38826. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38827. fi
  38828. # now check for the header.
  38829. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  38830. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  38831. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  38832. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  38833. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  38834. fi
  38835. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  38836. if test "xlibpri.h" = "x" ; then # no header, assume found
  38837. PRI_SETUP_KEYPAD_HEADER_FOUND="1"
  38838. else # check for the header
  38839. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38840. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  38841. if test "${ac_cv_header_libpri_h+set}" = set; then
  38842. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38843. $as_echo_n "checking for libpri.h... " >&6; }
  38844. if test "${ac_cv_header_libpri_h+set}" = set; then
  38845. $as_echo_n "(cached) " >&6
  38846. fi
  38847. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38848. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38849. else
  38850. # Is the header compilable?
  38851. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38852. $as_echo_n "checking libpri.h usability... " >&6; }
  38853. cat >conftest.$ac_ext <<_ACEOF
  38854. /* confdefs.h. */
  38855. _ACEOF
  38856. cat confdefs.h >>conftest.$ac_ext
  38857. cat >>conftest.$ac_ext <<_ACEOF
  38858. /* end confdefs.h. */
  38859. $ac_includes_default
  38860. #include <libpri.h>
  38861. _ACEOF
  38862. rm -f conftest.$ac_objext
  38863. if { (ac_try="$ac_compile"
  38864. case "(($ac_try" in
  38865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38866. *) ac_try_echo=$ac_try;;
  38867. esac
  38868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38869. $as_echo "$ac_try_echo") >&5
  38870. (eval "$ac_compile") 2>conftest.er1
  38871. ac_status=$?
  38872. grep -v '^ *+' conftest.er1 >conftest.err
  38873. rm -f conftest.er1
  38874. cat conftest.err >&5
  38875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38876. (exit $ac_status); } && {
  38877. test -z "$ac_c_werror_flag" ||
  38878. test ! -s conftest.err
  38879. } && test -s conftest.$ac_objext; then
  38880. ac_header_compiler=yes
  38881. else
  38882. $as_echo "$as_me: failed program was:" >&5
  38883. sed 's/^/| /' conftest.$ac_ext >&5
  38884. ac_header_compiler=no
  38885. fi
  38886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38887. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38888. $as_echo "$ac_header_compiler" >&6; }
  38889. # Is the header present?
  38890. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38891. $as_echo_n "checking libpri.h presence... " >&6; }
  38892. cat >conftest.$ac_ext <<_ACEOF
  38893. /* confdefs.h. */
  38894. _ACEOF
  38895. cat confdefs.h >>conftest.$ac_ext
  38896. cat >>conftest.$ac_ext <<_ACEOF
  38897. /* end confdefs.h. */
  38898. #include <libpri.h>
  38899. _ACEOF
  38900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38901. case "(($ac_try" in
  38902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38903. *) ac_try_echo=$ac_try;;
  38904. esac
  38905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38906. $as_echo "$ac_try_echo") >&5
  38907. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38908. ac_status=$?
  38909. grep -v '^ *+' conftest.er1 >conftest.err
  38910. rm -f conftest.er1
  38911. cat conftest.err >&5
  38912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38913. (exit $ac_status); } >/dev/null && {
  38914. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38915. test ! -s conftest.err
  38916. }; then
  38917. ac_header_preproc=yes
  38918. else
  38919. $as_echo "$as_me: failed program was:" >&5
  38920. sed 's/^/| /' conftest.$ac_ext >&5
  38921. ac_header_preproc=no
  38922. fi
  38923. rm -f conftest.err conftest.$ac_ext
  38924. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38925. $as_echo "$ac_header_preproc" >&6; }
  38926. # So? What about this header?
  38927. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38928. yes:no: )
  38929. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38930. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38931. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38932. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38933. ac_header_preproc=yes
  38934. ;;
  38935. no:yes:* )
  38936. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38937. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38938. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38939. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38940. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38941. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38942. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38943. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38944. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38945. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38946. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38947. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38948. ( cat <<\_ASBOX
  38949. ## ------------------------------------------ ##
  38950. ## Report this to https://issues.asterisk.org ##
  38951. ## ------------------------------------------ ##
  38952. _ASBOX
  38953. ) | sed "s/^/$as_me: WARNING: /" >&2
  38954. ;;
  38955. esac
  38956. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38957. $as_echo_n "checking for libpri.h... " >&6; }
  38958. if test "${ac_cv_header_libpri_h+set}" = set; then
  38959. $as_echo_n "(cached) " >&6
  38960. else
  38961. ac_cv_header_libpri_h=$ac_header_preproc
  38962. fi
  38963. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38964. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38965. fi
  38966. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38967. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  38968. else
  38969. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  38970. fi
  38971. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38972. fi
  38973. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  38974. PRI_SETUP_KEYPAD_LIB=""
  38975. PRI_SETUP_KEYPAD_INCLUDE=""
  38976. else
  38977. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38978. PRI_SETUP_KEYPAD_LIB=""
  38979. fi
  38980. PBX_PRI_SETUP_KEYPAD=1
  38981. cat >>confdefs.h <<_ACEOF
  38982. #define HAVE_PRI_SETUP_KEYPAD 1
  38983. _ACEOF
  38984. fi
  38985. fi
  38986. fi
  38987. # ------------------------------------v
  38988. # TODO: The code can be changed to always include these features now.
  38989. # These features will always be present if pri_connected_line_update is available.
  38990. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  38991. pbxlibdir=""
  38992. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  38993. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  38994. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  38995. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  38996. else
  38997. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  38998. fi
  38999. fi
  39000. pbxfuncname="pri_progress_with_cause"
  39001. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39002. AST_PRI_PROG_W_CAUSE_FOUND=yes
  39003. else
  39004. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39005. CFLAGS="${CFLAGS} "
  39006. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  39007. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  39008. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  39009. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39010. $as_echo_n "(cached) " >&6
  39011. else
  39012. ac_check_lib_save_LIBS=$LIBS
  39013. LIBS="-lpri ${pbxlibdir} $LIBS"
  39014. cat >conftest.$ac_ext <<_ACEOF
  39015. /* confdefs.h. */
  39016. _ACEOF
  39017. cat confdefs.h >>conftest.$ac_ext
  39018. cat >>conftest.$ac_ext <<_ACEOF
  39019. /* end confdefs.h. */
  39020. /* Override any GCC internal prototype to avoid an error.
  39021. Use char because int might match the return type of a GCC
  39022. builtin and then its argument prototype would still apply. */
  39023. #ifdef __cplusplus
  39024. extern "C"
  39025. #endif
  39026. char ${pbxfuncname} ();
  39027. int
  39028. main ()
  39029. {
  39030. return ${pbxfuncname} ();
  39031. ;
  39032. return 0;
  39033. }
  39034. _ACEOF
  39035. rm -f conftest.$ac_objext conftest$ac_exeext
  39036. if { (ac_try="$ac_link"
  39037. case "(($ac_try" in
  39038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39039. *) ac_try_echo=$ac_try;;
  39040. esac
  39041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39042. $as_echo "$ac_try_echo") >&5
  39043. (eval "$ac_link") 2>conftest.er1
  39044. ac_status=$?
  39045. grep -v '^ *+' conftest.er1 >conftest.err
  39046. rm -f conftest.er1
  39047. cat conftest.err >&5
  39048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39049. (exit $ac_status); } && {
  39050. test -z "$ac_c_werror_flag" ||
  39051. test ! -s conftest.err
  39052. } && test -s conftest$ac_exeext && {
  39053. test "$cross_compiling" = yes ||
  39054. $as_test_x conftest$ac_exeext
  39055. }; then
  39056. eval "$as_ac_Lib=yes"
  39057. else
  39058. $as_echo "$as_me: failed program was:" >&5
  39059. sed 's/^/| /' conftest.$ac_ext >&5
  39060. eval "$as_ac_Lib=no"
  39061. fi
  39062. rm -rf conftest.dSYM
  39063. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39064. conftest$ac_exeext conftest.$ac_ext
  39065. LIBS=$ac_check_lib_save_LIBS
  39066. fi
  39067. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  39068. $as_echo "$as_val"'`
  39069. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39070. $as_echo "$ac_res" >&6; }
  39071. as_val=`eval 'as_val=${'$as_ac_Lib'}
  39072. $as_echo "$as_val"'`
  39073. if test "x$as_val" = x""yes; then
  39074. AST_PRI_PROG_W_CAUSE_FOUND=yes
  39075. else
  39076. AST_PRI_PROG_W_CAUSE_FOUND=no
  39077. fi
  39078. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  39079. fi
  39080. # now check for the header.
  39081. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  39082. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  39083. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  39084. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  39085. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  39086. fi
  39087. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  39088. if test "xlibpri.h" = "x" ; then # no header, assume found
  39089. PRI_PROG_W_CAUSE_HEADER_FOUND="1"
  39090. else # check for the header
  39091. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  39092. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  39093. if test "${ac_cv_header_libpri_h+set}" = set; then
  39094. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39095. $as_echo_n "checking for libpri.h... " >&6; }
  39096. if test "${ac_cv_header_libpri_h+set}" = set; then
  39097. $as_echo_n "(cached) " >&6
  39098. fi
  39099. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39100. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39101. else
  39102. # Is the header compilable?
  39103. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  39104. $as_echo_n "checking libpri.h usability... " >&6; }
  39105. cat >conftest.$ac_ext <<_ACEOF
  39106. /* confdefs.h. */
  39107. _ACEOF
  39108. cat confdefs.h >>conftest.$ac_ext
  39109. cat >>conftest.$ac_ext <<_ACEOF
  39110. /* end confdefs.h. */
  39111. $ac_includes_default
  39112. #include <libpri.h>
  39113. _ACEOF
  39114. rm -f conftest.$ac_objext
  39115. if { (ac_try="$ac_compile"
  39116. case "(($ac_try" in
  39117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39118. *) ac_try_echo=$ac_try;;
  39119. esac
  39120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39121. $as_echo "$ac_try_echo") >&5
  39122. (eval "$ac_compile") 2>conftest.er1
  39123. ac_status=$?
  39124. grep -v '^ *+' conftest.er1 >conftest.err
  39125. rm -f conftest.er1
  39126. cat conftest.err >&5
  39127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39128. (exit $ac_status); } && {
  39129. test -z "$ac_c_werror_flag" ||
  39130. test ! -s conftest.err
  39131. } && test -s conftest.$ac_objext; then
  39132. ac_header_compiler=yes
  39133. else
  39134. $as_echo "$as_me: failed program was:" >&5
  39135. sed 's/^/| /' conftest.$ac_ext >&5
  39136. ac_header_compiler=no
  39137. fi
  39138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39139. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39140. $as_echo "$ac_header_compiler" >&6; }
  39141. # Is the header present?
  39142. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  39143. $as_echo_n "checking libpri.h presence... " >&6; }
  39144. cat >conftest.$ac_ext <<_ACEOF
  39145. /* confdefs.h. */
  39146. _ACEOF
  39147. cat confdefs.h >>conftest.$ac_ext
  39148. cat >>conftest.$ac_ext <<_ACEOF
  39149. /* end confdefs.h. */
  39150. #include <libpri.h>
  39151. _ACEOF
  39152. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39153. case "(($ac_try" in
  39154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39155. *) ac_try_echo=$ac_try;;
  39156. esac
  39157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39158. $as_echo "$ac_try_echo") >&5
  39159. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39160. ac_status=$?
  39161. grep -v '^ *+' conftest.er1 >conftest.err
  39162. rm -f conftest.er1
  39163. cat conftest.err >&5
  39164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39165. (exit $ac_status); } >/dev/null && {
  39166. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39167. test ! -s conftest.err
  39168. }; then
  39169. ac_header_preproc=yes
  39170. else
  39171. $as_echo "$as_me: failed program was:" >&5
  39172. sed 's/^/| /' conftest.$ac_ext >&5
  39173. ac_header_preproc=no
  39174. fi
  39175. rm -f conftest.err conftest.$ac_ext
  39176. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39177. $as_echo "$ac_header_preproc" >&6; }
  39178. # So? What about this header?
  39179. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39180. yes:no: )
  39181. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39182. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39183. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  39184. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  39185. ac_header_preproc=yes
  39186. ;;
  39187. no:yes:* )
  39188. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  39189. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  39190. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  39191. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  39192. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  39193. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  39194. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  39195. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39196. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  39197. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  39198. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  39199. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  39200. ( cat <<\_ASBOX
  39201. ## ------------------------------------------ ##
  39202. ## Report this to https://issues.asterisk.org ##
  39203. ## ------------------------------------------ ##
  39204. _ASBOX
  39205. ) | sed "s/^/$as_me: WARNING: /" >&2
  39206. ;;
  39207. esac
  39208. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39209. $as_echo_n "checking for libpri.h... " >&6; }
  39210. if test "${ac_cv_header_libpri_h+set}" = set; then
  39211. $as_echo_n "(cached) " >&6
  39212. else
  39213. ac_cv_header_libpri_h=$ac_header_preproc
  39214. fi
  39215. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39216. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39217. fi
  39218. if test "x$ac_cv_header_libpri_h" = x""yes; then
  39219. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  39220. else
  39221. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  39222. fi
  39223. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39224. fi
  39225. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  39226. PRI_PROG_W_CAUSE_LIB=""
  39227. PRI_PROG_W_CAUSE_INCLUDE=""
  39228. else
  39229. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39230. PRI_PROG_W_CAUSE_LIB=""
  39231. fi
  39232. PBX_PRI_PROG_W_CAUSE=1
  39233. cat >>confdefs.h <<_ACEOF
  39234. #define HAVE_PRI_PROG_W_CAUSE 1
  39235. _ACEOF
  39236. fi
  39237. fi
  39238. fi
  39239. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  39240. pbxlibdir=""
  39241. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  39242. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  39243. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  39244. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  39245. else
  39246. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  39247. fi
  39248. fi
  39249. pbxfuncname="pri_set_inbanddisconnect"
  39250. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39251. AST_PRI_INBANDDISCONNECT_FOUND=yes
  39252. else
  39253. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39254. CFLAGS="${CFLAGS} "
  39255. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  39256. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  39257. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  39258. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39259. $as_echo_n "(cached) " >&6
  39260. else
  39261. ac_check_lib_save_LIBS=$LIBS
  39262. LIBS="-lpri ${pbxlibdir} $LIBS"
  39263. cat >conftest.$ac_ext <<_ACEOF
  39264. /* confdefs.h. */
  39265. _ACEOF
  39266. cat confdefs.h >>conftest.$ac_ext
  39267. cat >>conftest.$ac_ext <<_ACEOF
  39268. /* end confdefs.h. */
  39269. /* Override any GCC internal prototype to avoid an error.
  39270. Use char because int might match the return type of a GCC
  39271. builtin and then its argument prototype would still apply. */
  39272. #ifdef __cplusplus
  39273. extern "C"
  39274. #endif
  39275. char ${pbxfuncname} ();
  39276. int
  39277. main ()
  39278. {
  39279. return ${pbxfuncname} ();
  39280. ;
  39281. return 0;
  39282. }
  39283. _ACEOF
  39284. rm -f conftest.$ac_objext conftest$ac_exeext
  39285. if { (ac_try="$ac_link"
  39286. case "(($ac_try" in
  39287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39288. *) ac_try_echo=$ac_try;;
  39289. esac
  39290. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39291. $as_echo "$ac_try_echo") >&5
  39292. (eval "$ac_link") 2>conftest.er1
  39293. ac_status=$?
  39294. grep -v '^ *+' conftest.er1 >conftest.err
  39295. rm -f conftest.er1
  39296. cat conftest.err >&5
  39297. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39298. (exit $ac_status); } && {
  39299. test -z "$ac_c_werror_flag" ||
  39300. test ! -s conftest.err
  39301. } && test -s conftest$ac_exeext && {
  39302. test "$cross_compiling" = yes ||
  39303. $as_test_x conftest$ac_exeext
  39304. }; then
  39305. eval "$as_ac_Lib=yes"
  39306. else
  39307. $as_echo "$as_me: failed program was:" >&5
  39308. sed 's/^/| /' conftest.$ac_ext >&5
  39309. eval "$as_ac_Lib=no"
  39310. fi
  39311. rm -rf conftest.dSYM
  39312. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39313. conftest$ac_exeext conftest.$ac_ext
  39314. LIBS=$ac_check_lib_save_LIBS
  39315. fi
  39316. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  39317. $as_echo "$as_val"'`
  39318. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39319. $as_echo "$ac_res" >&6; }
  39320. as_val=`eval 'as_val=${'$as_ac_Lib'}
  39321. $as_echo "$as_val"'`
  39322. if test "x$as_val" = x""yes; then
  39323. AST_PRI_INBANDDISCONNECT_FOUND=yes
  39324. else
  39325. AST_PRI_INBANDDISCONNECT_FOUND=no
  39326. fi
  39327. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  39328. fi
  39329. # now check for the header.
  39330. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  39331. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  39332. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  39333. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  39334. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  39335. fi
  39336. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  39337. if test "xlibpri.h" = "x" ; then # no header, assume found
  39338. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  39339. else # check for the header
  39340. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  39341. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  39342. if test "${ac_cv_header_libpri_h+set}" = set; then
  39343. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39344. $as_echo_n "checking for libpri.h... " >&6; }
  39345. if test "${ac_cv_header_libpri_h+set}" = set; then
  39346. $as_echo_n "(cached) " >&6
  39347. fi
  39348. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39349. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39350. else
  39351. # Is the header compilable?
  39352. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  39353. $as_echo_n "checking libpri.h usability... " >&6; }
  39354. cat >conftest.$ac_ext <<_ACEOF
  39355. /* confdefs.h. */
  39356. _ACEOF
  39357. cat confdefs.h >>conftest.$ac_ext
  39358. cat >>conftest.$ac_ext <<_ACEOF
  39359. /* end confdefs.h. */
  39360. $ac_includes_default
  39361. #include <libpri.h>
  39362. _ACEOF
  39363. rm -f conftest.$ac_objext
  39364. if { (ac_try="$ac_compile"
  39365. case "(($ac_try" in
  39366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39367. *) ac_try_echo=$ac_try;;
  39368. esac
  39369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39370. $as_echo "$ac_try_echo") >&5
  39371. (eval "$ac_compile") 2>conftest.er1
  39372. ac_status=$?
  39373. grep -v '^ *+' conftest.er1 >conftest.err
  39374. rm -f conftest.er1
  39375. cat conftest.err >&5
  39376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39377. (exit $ac_status); } && {
  39378. test -z "$ac_c_werror_flag" ||
  39379. test ! -s conftest.err
  39380. } && test -s conftest.$ac_objext; then
  39381. ac_header_compiler=yes
  39382. else
  39383. $as_echo "$as_me: failed program was:" >&5
  39384. sed 's/^/| /' conftest.$ac_ext >&5
  39385. ac_header_compiler=no
  39386. fi
  39387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39388. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39389. $as_echo "$ac_header_compiler" >&6; }
  39390. # Is the header present?
  39391. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  39392. $as_echo_n "checking libpri.h presence... " >&6; }
  39393. cat >conftest.$ac_ext <<_ACEOF
  39394. /* confdefs.h. */
  39395. _ACEOF
  39396. cat confdefs.h >>conftest.$ac_ext
  39397. cat >>conftest.$ac_ext <<_ACEOF
  39398. /* end confdefs.h. */
  39399. #include <libpri.h>
  39400. _ACEOF
  39401. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39402. case "(($ac_try" in
  39403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39404. *) ac_try_echo=$ac_try;;
  39405. esac
  39406. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39407. $as_echo "$ac_try_echo") >&5
  39408. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39409. ac_status=$?
  39410. grep -v '^ *+' conftest.er1 >conftest.err
  39411. rm -f conftest.er1
  39412. cat conftest.err >&5
  39413. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39414. (exit $ac_status); } >/dev/null && {
  39415. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39416. test ! -s conftest.err
  39417. }; then
  39418. ac_header_preproc=yes
  39419. else
  39420. $as_echo "$as_me: failed program was:" >&5
  39421. sed 's/^/| /' conftest.$ac_ext >&5
  39422. ac_header_preproc=no
  39423. fi
  39424. rm -f conftest.err conftest.$ac_ext
  39425. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39426. $as_echo "$ac_header_preproc" >&6; }
  39427. # So? What about this header?
  39428. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39429. yes:no: )
  39430. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39431. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39432. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  39433. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  39434. ac_header_preproc=yes
  39435. ;;
  39436. no:yes:* )
  39437. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  39438. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  39439. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  39440. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  39441. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  39442. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  39443. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  39444. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39445. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  39446. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  39447. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  39448. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  39449. ( cat <<\_ASBOX
  39450. ## ------------------------------------------ ##
  39451. ## Report this to https://issues.asterisk.org ##
  39452. ## ------------------------------------------ ##
  39453. _ASBOX
  39454. ) | sed "s/^/$as_me: WARNING: /" >&2
  39455. ;;
  39456. esac
  39457. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39458. $as_echo_n "checking for libpri.h... " >&6; }
  39459. if test "${ac_cv_header_libpri_h+set}" = set; then
  39460. $as_echo_n "(cached) " >&6
  39461. else
  39462. ac_cv_header_libpri_h=$ac_header_preproc
  39463. fi
  39464. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39465. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39466. fi
  39467. if test "x$ac_cv_header_libpri_h" = x""yes; then
  39468. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  39469. else
  39470. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  39471. fi
  39472. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39473. fi
  39474. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  39475. PRI_INBANDDISCONNECT_LIB=""
  39476. PRI_INBANDDISCONNECT_INCLUDE=""
  39477. else
  39478. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39479. PRI_INBANDDISCONNECT_LIB=""
  39480. fi
  39481. PBX_PRI_INBANDDISCONNECT=1
  39482. cat >>confdefs.h <<_ACEOF
  39483. #define HAVE_PRI_INBANDDISCONNECT 1
  39484. _ACEOF
  39485. fi
  39486. fi
  39487. fi
  39488. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  39489. pbxlibdir=""
  39490. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  39491. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  39492. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  39493. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  39494. else
  39495. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  39496. fi
  39497. fi
  39498. pbxfuncname="pri_maintenance_service"
  39499. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39500. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  39501. else
  39502. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39503. CFLAGS="${CFLAGS} "
  39504. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  39505. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  39506. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  39507. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39508. $as_echo_n "(cached) " >&6
  39509. else
  39510. ac_check_lib_save_LIBS=$LIBS
  39511. LIBS="-lpri ${pbxlibdir} $LIBS"
  39512. cat >conftest.$ac_ext <<_ACEOF
  39513. /* confdefs.h. */
  39514. _ACEOF
  39515. cat confdefs.h >>conftest.$ac_ext
  39516. cat >>conftest.$ac_ext <<_ACEOF
  39517. /* end confdefs.h. */
  39518. /* Override any GCC internal prototype to avoid an error.
  39519. Use char because int might match the return type of a GCC
  39520. builtin and then its argument prototype would still apply. */
  39521. #ifdef __cplusplus
  39522. extern "C"
  39523. #endif
  39524. char ${pbxfuncname} ();
  39525. int
  39526. main ()
  39527. {
  39528. return ${pbxfuncname} ();
  39529. ;
  39530. return 0;
  39531. }
  39532. _ACEOF
  39533. rm -f conftest.$ac_objext conftest$ac_exeext
  39534. if { (ac_try="$ac_link"
  39535. case "(($ac_try" in
  39536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39537. *) ac_try_echo=$ac_try;;
  39538. esac
  39539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39540. $as_echo "$ac_try_echo") >&5
  39541. (eval "$ac_link") 2>conftest.er1
  39542. ac_status=$?
  39543. grep -v '^ *+' conftest.er1 >conftest.err
  39544. rm -f conftest.er1
  39545. cat conftest.err >&5
  39546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39547. (exit $ac_status); } && {
  39548. test -z "$ac_c_werror_flag" ||
  39549. test ! -s conftest.err
  39550. } && test -s conftest$ac_exeext && {
  39551. test "$cross_compiling" = yes ||
  39552. $as_test_x conftest$ac_exeext
  39553. }; then
  39554. eval "$as_ac_Lib=yes"
  39555. else
  39556. $as_echo "$as_me: failed program was:" >&5
  39557. sed 's/^/| /' conftest.$ac_ext >&5
  39558. eval "$as_ac_Lib=no"
  39559. fi
  39560. rm -rf conftest.dSYM
  39561. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39562. conftest$ac_exeext conftest.$ac_ext
  39563. LIBS=$ac_check_lib_save_LIBS
  39564. fi
  39565. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  39566. $as_echo "$as_val"'`
  39567. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39568. $as_echo "$ac_res" >&6; }
  39569. as_val=`eval 'as_val=${'$as_ac_Lib'}
  39570. $as_echo "$as_val"'`
  39571. if test "x$as_val" = x""yes; then
  39572. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  39573. else
  39574. AST_PRI_SERVICE_MESSAGES_FOUND=no
  39575. fi
  39576. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  39577. fi
  39578. # now check for the header.
  39579. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  39580. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  39581. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  39582. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  39583. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  39584. fi
  39585. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  39586. if test "xlibpri.h" = "x" ; then # no header, assume found
  39587. PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
  39588. else # check for the header
  39589. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  39590. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  39591. if test "${ac_cv_header_libpri_h+set}" = set; then
  39592. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39593. $as_echo_n "checking for libpri.h... " >&6; }
  39594. if test "${ac_cv_header_libpri_h+set}" = set; then
  39595. $as_echo_n "(cached) " >&6
  39596. fi
  39597. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39598. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39599. else
  39600. # Is the header compilable?
  39601. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  39602. $as_echo_n "checking libpri.h usability... " >&6; }
  39603. cat >conftest.$ac_ext <<_ACEOF
  39604. /* confdefs.h. */
  39605. _ACEOF
  39606. cat confdefs.h >>conftest.$ac_ext
  39607. cat >>conftest.$ac_ext <<_ACEOF
  39608. /* end confdefs.h. */
  39609. $ac_includes_default
  39610. #include <libpri.h>
  39611. _ACEOF
  39612. rm -f conftest.$ac_objext
  39613. if { (ac_try="$ac_compile"
  39614. case "(($ac_try" in
  39615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39616. *) ac_try_echo=$ac_try;;
  39617. esac
  39618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39619. $as_echo "$ac_try_echo") >&5
  39620. (eval "$ac_compile") 2>conftest.er1
  39621. ac_status=$?
  39622. grep -v '^ *+' conftest.er1 >conftest.err
  39623. rm -f conftest.er1
  39624. cat conftest.err >&5
  39625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39626. (exit $ac_status); } && {
  39627. test -z "$ac_c_werror_flag" ||
  39628. test ! -s conftest.err
  39629. } && test -s conftest.$ac_objext; then
  39630. ac_header_compiler=yes
  39631. else
  39632. $as_echo "$as_me: failed program was:" >&5
  39633. sed 's/^/| /' conftest.$ac_ext >&5
  39634. ac_header_compiler=no
  39635. fi
  39636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39637. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39638. $as_echo "$ac_header_compiler" >&6; }
  39639. # Is the header present?
  39640. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  39641. $as_echo_n "checking libpri.h presence... " >&6; }
  39642. cat >conftest.$ac_ext <<_ACEOF
  39643. /* confdefs.h. */
  39644. _ACEOF
  39645. cat confdefs.h >>conftest.$ac_ext
  39646. cat >>conftest.$ac_ext <<_ACEOF
  39647. /* end confdefs.h. */
  39648. #include <libpri.h>
  39649. _ACEOF
  39650. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39651. case "(($ac_try" in
  39652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39653. *) ac_try_echo=$ac_try;;
  39654. esac
  39655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39656. $as_echo "$ac_try_echo") >&5
  39657. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39658. ac_status=$?
  39659. grep -v '^ *+' conftest.er1 >conftest.err
  39660. rm -f conftest.er1
  39661. cat conftest.err >&5
  39662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39663. (exit $ac_status); } >/dev/null && {
  39664. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39665. test ! -s conftest.err
  39666. }; then
  39667. ac_header_preproc=yes
  39668. else
  39669. $as_echo "$as_me: failed program was:" >&5
  39670. sed 's/^/| /' conftest.$ac_ext >&5
  39671. ac_header_preproc=no
  39672. fi
  39673. rm -f conftest.err conftest.$ac_ext
  39674. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39675. $as_echo "$ac_header_preproc" >&6; }
  39676. # So? What about this header?
  39677. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39678. yes:no: )
  39679. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39680. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39681. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  39682. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  39683. ac_header_preproc=yes
  39684. ;;
  39685. no:yes:* )
  39686. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  39687. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  39688. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  39689. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  39690. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  39691. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  39692. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  39693. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39694. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  39695. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  39696. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  39697. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  39698. ( cat <<\_ASBOX
  39699. ## ------------------------------------------ ##
  39700. ## Report this to https://issues.asterisk.org ##
  39701. ## ------------------------------------------ ##
  39702. _ASBOX
  39703. ) | sed "s/^/$as_me: WARNING: /" >&2
  39704. ;;
  39705. esac
  39706. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39707. $as_echo_n "checking for libpri.h... " >&6; }
  39708. if test "${ac_cv_header_libpri_h+set}" = set; then
  39709. $as_echo_n "(cached) " >&6
  39710. else
  39711. ac_cv_header_libpri_h=$ac_header_preproc
  39712. fi
  39713. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39714. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39715. fi
  39716. if test "x$ac_cv_header_libpri_h" = x""yes; then
  39717. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  39718. else
  39719. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  39720. fi
  39721. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39722. fi
  39723. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  39724. PRI_SERVICE_MESSAGES_LIB=""
  39725. PRI_SERVICE_MESSAGES_INCLUDE=""
  39726. else
  39727. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39728. PRI_SERVICE_MESSAGES_LIB=""
  39729. fi
  39730. PBX_PRI_SERVICE_MESSAGES=1
  39731. cat >>confdefs.h <<_ACEOF
  39732. #define HAVE_PRI_SERVICE_MESSAGES 1
  39733. _ACEOF
  39734. fi
  39735. fi
  39736. fi
  39737. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  39738. pbxlibdir=""
  39739. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  39740. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  39741. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  39742. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  39743. else
  39744. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  39745. fi
  39746. fi
  39747. pbxfuncname="pri_sr_set_reversecharge"
  39748. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39749. AST_PRI_REVERSE_CHARGE_FOUND=yes
  39750. else
  39751. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39752. CFLAGS="${CFLAGS} "
  39753. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  39754. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  39755. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  39756. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39757. $as_echo_n "(cached) " >&6
  39758. else
  39759. ac_check_lib_save_LIBS=$LIBS
  39760. LIBS="-lpri ${pbxlibdir} $LIBS"
  39761. cat >conftest.$ac_ext <<_ACEOF
  39762. /* confdefs.h. */
  39763. _ACEOF
  39764. cat confdefs.h >>conftest.$ac_ext
  39765. cat >>conftest.$ac_ext <<_ACEOF
  39766. /* end confdefs.h. */
  39767. /* Override any GCC internal prototype to avoid an error.
  39768. Use char because int might match the return type of a GCC
  39769. builtin and then its argument prototype would still apply. */
  39770. #ifdef __cplusplus
  39771. extern "C"
  39772. #endif
  39773. char ${pbxfuncname} ();
  39774. int
  39775. main ()
  39776. {
  39777. return ${pbxfuncname} ();
  39778. ;
  39779. return 0;
  39780. }
  39781. _ACEOF
  39782. rm -f conftest.$ac_objext conftest$ac_exeext
  39783. if { (ac_try="$ac_link"
  39784. case "(($ac_try" in
  39785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39786. *) ac_try_echo=$ac_try;;
  39787. esac
  39788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39789. $as_echo "$ac_try_echo") >&5
  39790. (eval "$ac_link") 2>conftest.er1
  39791. ac_status=$?
  39792. grep -v '^ *+' conftest.er1 >conftest.err
  39793. rm -f conftest.er1
  39794. cat conftest.err >&5
  39795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39796. (exit $ac_status); } && {
  39797. test -z "$ac_c_werror_flag" ||
  39798. test ! -s conftest.err
  39799. } && test -s conftest$ac_exeext && {
  39800. test "$cross_compiling" = yes ||
  39801. $as_test_x conftest$ac_exeext
  39802. }; then
  39803. eval "$as_ac_Lib=yes"
  39804. else
  39805. $as_echo "$as_me: failed program was:" >&5
  39806. sed 's/^/| /' conftest.$ac_ext >&5
  39807. eval "$as_ac_Lib=no"
  39808. fi
  39809. rm -rf conftest.dSYM
  39810. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39811. conftest$ac_exeext conftest.$ac_ext
  39812. LIBS=$ac_check_lib_save_LIBS
  39813. fi
  39814. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  39815. $as_echo "$as_val"'`
  39816. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39817. $as_echo "$ac_res" >&6; }
  39818. as_val=`eval 'as_val=${'$as_ac_Lib'}
  39819. $as_echo "$as_val"'`
  39820. if test "x$as_val" = x""yes; then
  39821. AST_PRI_REVERSE_CHARGE_FOUND=yes
  39822. else
  39823. AST_PRI_REVERSE_CHARGE_FOUND=no
  39824. fi
  39825. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  39826. fi
  39827. # now check for the header.
  39828. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  39829. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  39830. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  39831. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  39832. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  39833. fi
  39834. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  39835. if test "xlibpri.h" = "x" ; then # no header, assume found
  39836. PRI_REVERSE_CHARGE_HEADER_FOUND="1"
  39837. else # check for the header
  39838. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  39839. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  39840. if test "${ac_cv_header_libpri_h+set}" = set; then
  39841. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39842. $as_echo_n "checking for libpri.h... " >&6; }
  39843. if test "${ac_cv_header_libpri_h+set}" = set; then
  39844. $as_echo_n "(cached) " >&6
  39845. fi
  39846. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39847. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39848. else
  39849. # Is the header compilable?
  39850. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  39851. $as_echo_n "checking libpri.h usability... " >&6; }
  39852. cat >conftest.$ac_ext <<_ACEOF
  39853. /* confdefs.h. */
  39854. _ACEOF
  39855. cat confdefs.h >>conftest.$ac_ext
  39856. cat >>conftest.$ac_ext <<_ACEOF
  39857. /* end confdefs.h. */
  39858. $ac_includes_default
  39859. #include <libpri.h>
  39860. _ACEOF
  39861. rm -f conftest.$ac_objext
  39862. if { (ac_try="$ac_compile"
  39863. case "(($ac_try" in
  39864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39865. *) ac_try_echo=$ac_try;;
  39866. esac
  39867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39868. $as_echo "$ac_try_echo") >&5
  39869. (eval "$ac_compile") 2>conftest.er1
  39870. ac_status=$?
  39871. grep -v '^ *+' conftest.er1 >conftest.err
  39872. rm -f conftest.er1
  39873. cat conftest.err >&5
  39874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39875. (exit $ac_status); } && {
  39876. test -z "$ac_c_werror_flag" ||
  39877. test ! -s conftest.err
  39878. } && test -s conftest.$ac_objext; then
  39879. ac_header_compiler=yes
  39880. else
  39881. $as_echo "$as_me: failed program was:" >&5
  39882. sed 's/^/| /' conftest.$ac_ext >&5
  39883. ac_header_compiler=no
  39884. fi
  39885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39886. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39887. $as_echo "$ac_header_compiler" >&6; }
  39888. # Is the header present?
  39889. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  39890. $as_echo_n "checking libpri.h presence... " >&6; }
  39891. cat >conftest.$ac_ext <<_ACEOF
  39892. /* confdefs.h. */
  39893. _ACEOF
  39894. cat confdefs.h >>conftest.$ac_ext
  39895. cat >>conftest.$ac_ext <<_ACEOF
  39896. /* end confdefs.h. */
  39897. #include <libpri.h>
  39898. _ACEOF
  39899. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39900. case "(($ac_try" in
  39901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39902. *) ac_try_echo=$ac_try;;
  39903. esac
  39904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39905. $as_echo "$ac_try_echo") >&5
  39906. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39907. ac_status=$?
  39908. grep -v '^ *+' conftest.er1 >conftest.err
  39909. rm -f conftest.er1
  39910. cat conftest.err >&5
  39911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39912. (exit $ac_status); } >/dev/null && {
  39913. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39914. test ! -s conftest.err
  39915. }; then
  39916. ac_header_preproc=yes
  39917. else
  39918. $as_echo "$as_me: failed program was:" >&5
  39919. sed 's/^/| /' conftest.$ac_ext >&5
  39920. ac_header_preproc=no
  39921. fi
  39922. rm -f conftest.err conftest.$ac_ext
  39923. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39924. $as_echo "$ac_header_preproc" >&6; }
  39925. # So? What about this header?
  39926. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39927. yes:no: )
  39928. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39929. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39930. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  39931. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  39932. ac_header_preproc=yes
  39933. ;;
  39934. no:yes:* )
  39935. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  39936. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  39937. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  39938. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  39939. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  39940. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  39941. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  39942. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39943. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  39944. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  39945. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  39946. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  39947. ( cat <<\_ASBOX
  39948. ## ------------------------------------------ ##
  39949. ## Report this to https://issues.asterisk.org ##
  39950. ## ------------------------------------------ ##
  39951. _ASBOX
  39952. ) | sed "s/^/$as_me: WARNING: /" >&2
  39953. ;;
  39954. esac
  39955. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39956. $as_echo_n "checking for libpri.h... " >&6; }
  39957. if test "${ac_cv_header_libpri_h+set}" = set; then
  39958. $as_echo_n "(cached) " >&6
  39959. else
  39960. ac_cv_header_libpri_h=$ac_header_preproc
  39961. fi
  39962. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39963. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39964. fi
  39965. if test "x$ac_cv_header_libpri_h" = x""yes; then
  39966. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  39967. else
  39968. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  39969. fi
  39970. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39971. fi
  39972. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  39973. PRI_REVERSE_CHARGE_LIB=""
  39974. PRI_REVERSE_CHARGE_INCLUDE=""
  39975. else
  39976. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39977. PRI_REVERSE_CHARGE_LIB=""
  39978. fi
  39979. PBX_PRI_REVERSE_CHARGE=1
  39980. cat >>confdefs.h <<_ACEOF
  39981. #define HAVE_PRI_REVERSE_CHARGE 1
  39982. _ACEOF
  39983. fi
  39984. fi
  39985. fi
  39986. # ------------------------------------^
  39987. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  39988. pbxlibdir=""
  39989. # if --with-RESAMPLE=DIR has been specified, use it.
  39990. if test "x${RESAMPLE_DIR}" != "x"; then
  39991. if test -d ${RESAMPLE_DIR}/lib; then
  39992. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  39993. else
  39994. pbxlibdir="-L${RESAMPLE_DIR}"
  39995. fi
  39996. fi
  39997. pbxfuncname="resample_open"
  39998. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39999. AST_RESAMPLE_FOUND=yes
  40000. else
  40001. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  40002. CFLAGS="${CFLAGS} "
  40003. as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
  40004. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lresample" >&5
  40005. $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
  40006. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  40007. $as_echo_n "(cached) " >&6
  40008. else
  40009. ac_check_lib_save_LIBS=$LIBS
  40010. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  40011. cat >conftest.$ac_ext <<_ACEOF
  40012. /* confdefs.h. */
  40013. _ACEOF
  40014. cat confdefs.h >>conftest.$ac_ext
  40015. cat >>conftest.$ac_ext <<_ACEOF
  40016. /* end confdefs.h. */
  40017. /* Override any GCC internal prototype to avoid an error.
  40018. Use char because int might match the return type of a GCC
  40019. builtin and then its argument prototype would still apply. */
  40020. #ifdef __cplusplus
  40021. extern "C"
  40022. #endif
  40023. char ${pbxfuncname} ();
  40024. int
  40025. main ()
  40026. {
  40027. return ${pbxfuncname} ();
  40028. ;
  40029. return 0;
  40030. }
  40031. _ACEOF
  40032. rm -f conftest.$ac_objext conftest$ac_exeext
  40033. if { (ac_try="$ac_link"
  40034. case "(($ac_try" in
  40035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40036. *) ac_try_echo=$ac_try;;
  40037. esac
  40038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40039. $as_echo "$ac_try_echo") >&5
  40040. (eval "$ac_link") 2>conftest.er1
  40041. ac_status=$?
  40042. grep -v '^ *+' conftest.er1 >conftest.err
  40043. rm -f conftest.er1
  40044. cat conftest.err >&5
  40045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40046. (exit $ac_status); } && {
  40047. test -z "$ac_c_werror_flag" ||
  40048. test ! -s conftest.err
  40049. } && test -s conftest$ac_exeext && {
  40050. test "$cross_compiling" = yes ||
  40051. $as_test_x conftest$ac_exeext
  40052. }; then
  40053. eval "$as_ac_Lib=yes"
  40054. else
  40055. $as_echo "$as_me: failed program was:" >&5
  40056. sed 's/^/| /' conftest.$ac_ext >&5
  40057. eval "$as_ac_Lib=no"
  40058. fi
  40059. rm -rf conftest.dSYM
  40060. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40061. conftest$ac_exeext conftest.$ac_ext
  40062. LIBS=$ac_check_lib_save_LIBS
  40063. fi
  40064. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40065. $as_echo "$as_val"'`
  40066. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40067. $as_echo "$ac_res" >&6; }
  40068. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40069. $as_echo "$as_val"'`
  40070. if test "x$as_val" = x""yes; then
  40071. AST_RESAMPLE_FOUND=yes
  40072. else
  40073. AST_RESAMPLE_FOUND=no
  40074. fi
  40075. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40076. fi
  40077. # now check for the header.
  40078. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  40079. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  40080. # if --with-RESAMPLE=DIR has been specified, use it.
  40081. if test "x${RESAMPLE_DIR}" != "x"; then
  40082. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  40083. fi
  40084. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  40085. if test "xlibresample.h" = "x" ; then # no header, assume found
  40086. RESAMPLE_HEADER_FOUND="1"
  40087. else # check for the header
  40088. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40089. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  40090. if test "${ac_cv_header_libresample_h+set}" = set; then
  40091. { $as_echo "$as_me:$LINENO: checking for libresample.h" >&5
  40092. $as_echo_n "checking for libresample.h... " >&6; }
  40093. if test "${ac_cv_header_libresample_h+set}" = set; then
  40094. $as_echo_n "(cached) " >&6
  40095. fi
  40096. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
  40097. $as_echo "$ac_cv_header_libresample_h" >&6; }
  40098. else
  40099. # Is the header compilable?
  40100. { $as_echo "$as_me:$LINENO: checking libresample.h usability" >&5
  40101. $as_echo_n "checking libresample.h usability... " >&6; }
  40102. cat >conftest.$ac_ext <<_ACEOF
  40103. /* confdefs.h. */
  40104. _ACEOF
  40105. cat confdefs.h >>conftest.$ac_ext
  40106. cat >>conftest.$ac_ext <<_ACEOF
  40107. /* end confdefs.h. */
  40108. $ac_includes_default
  40109. #include <libresample.h>
  40110. _ACEOF
  40111. rm -f conftest.$ac_objext
  40112. if { (ac_try="$ac_compile"
  40113. case "(($ac_try" in
  40114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40115. *) ac_try_echo=$ac_try;;
  40116. esac
  40117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40118. $as_echo "$ac_try_echo") >&5
  40119. (eval "$ac_compile") 2>conftest.er1
  40120. ac_status=$?
  40121. grep -v '^ *+' conftest.er1 >conftest.err
  40122. rm -f conftest.er1
  40123. cat conftest.err >&5
  40124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40125. (exit $ac_status); } && {
  40126. test -z "$ac_c_werror_flag" ||
  40127. test ! -s conftest.err
  40128. } && test -s conftest.$ac_objext; then
  40129. ac_header_compiler=yes
  40130. else
  40131. $as_echo "$as_me: failed program was:" >&5
  40132. sed 's/^/| /' conftest.$ac_ext >&5
  40133. ac_header_compiler=no
  40134. fi
  40135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40136. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40137. $as_echo "$ac_header_compiler" >&6; }
  40138. # Is the header present?
  40139. { $as_echo "$as_me:$LINENO: checking libresample.h presence" >&5
  40140. $as_echo_n "checking libresample.h presence... " >&6; }
  40141. cat >conftest.$ac_ext <<_ACEOF
  40142. /* confdefs.h. */
  40143. _ACEOF
  40144. cat confdefs.h >>conftest.$ac_ext
  40145. cat >>conftest.$ac_ext <<_ACEOF
  40146. /* end confdefs.h. */
  40147. #include <libresample.h>
  40148. _ACEOF
  40149. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40150. case "(($ac_try" in
  40151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40152. *) ac_try_echo=$ac_try;;
  40153. esac
  40154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40155. $as_echo "$ac_try_echo") >&5
  40156. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40157. ac_status=$?
  40158. grep -v '^ *+' conftest.er1 >conftest.err
  40159. rm -f conftest.er1
  40160. cat conftest.err >&5
  40161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40162. (exit $ac_status); } >/dev/null && {
  40163. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40164. test ! -s conftest.err
  40165. }; then
  40166. ac_header_preproc=yes
  40167. else
  40168. $as_echo "$as_me: failed program was:" >&5
  40169. sed 's/^/| /' conftest.$ac_ext >&5
  40170. ac_header_preproc=no
  40171. fi
  40172. rm -f conftest.err conftest.$ac_ext
  40173. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40174. $as_echo "$ac_header_preproc" >&6; }
  40175. # So? What about this header?
  40176. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40177. yes:no: )
  40178. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&5
  40179. $as_echo "$as_me: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40180. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the compiler's result" >&5
  40181. $as_echo "$as_me: WARNING: libresample.h: proceeding with the compiler's result" >&2;}
  40182. ac_header_preproc=yes
  40183. ;;
  40184. no:yes:* )
  40185. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: present but cannot be compiled" >&5
  40186. $as_echo "$as_me: WARNING: libresample.h: present but cannot be compiled" >&2;}
  40187. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: check for missing prerequisite headers?" >&5
  40188. $as_echo "$as_me: WARNING: libresample.h: check for missing prerequisite headers?" >&2;}
  40189. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: see the Autoconf documentation" >&5
  40190. $as_echo "$as_me: WARNING: libresample.h: see the Autoconf documentation" >&2;}
  40191. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&5
  40192. $as_echo "$as_me: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&2;}
  40193. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the preprocessor's result" >&5
  40194. $as_echo "$as_me: WARNING: libresample.h: proceeding with the preprocessor's result" >&2;}
  40195. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: in the future, the compiler will take precedence" >&5
  40196. $as_echo "$as_me: WARNING: libresample.h: in the future, the compiler will take precedence" >&2;}
  40197. ( cat <<\_ASBOX
  40198. ## ------------------------------------------ ##
  40199. ## Report this to https://issues.asterisk.org ##
  40200. ## ------------------------------------------ ##
  40201. _ASBOX
  40202. ) | sed "s/^/$as_me: WARNING: /" >&2
  40203. ;;
  40204. esac
  40205. { $as_echo "$as_me:$LINENO: checking for libresample.h" >&5
  40206. $as_echo_n "checking for libresample.h... " >&6; }
  40207. if test "${ac_cv_header_libresample_h+set}" = set; then
  40208. $as_echo_n "(cached) " >&6
  40209. else
  40210. ac_cv_header_libresample_h=$ac_header_preproc
  40211. fi
  40212. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
  40213. $as_echo "$ac_cv_header_libresample_h" >&6; }
  40214. fi
  40215. if test "x$ac_cv_header_libresample_h" = x""yes; then
  40216. RESAMPLE_HEADER_FOUND=1
  40217. else
  40218. RESAMPLE_HEADER_FOUND=0
  40219. fi
  40220. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  40221. fi
  40222. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  40223. RESAMPLE_LIB=""
  40224. RESAMPLE_INCLUDE=""
  40225. else
  40226. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  40227. RESAMPLE_LIB=""
  40228. fi
  40229. PBX_RESAMPLE=1
  40230. cat >>confdefs.h <<_ACEOF
  40231. #define HAVE_RESAMPLE 1
  40232. _ACEOF
  40233. fi
  40234. fi
  40235. fi
  40236. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  40237. if test "xminimum version of SpanDSP" != "x"; then
  40238. { $as_echo "$as_me:$LINENO: checking for minimum version of SpanDSP" >&5
  40239. $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
  40240. else
  40241. { $as_echo "$as_me:$LINENO: checking if \"
  40242. #if SPANDSP_RELEASE_DATE < 20080516
  40243. #error \"spandsp 0.0.5 or greater is required\"
  40244. #endif
  40245. \" compiles using spandsp/version.h" >&5
  40246. $as_echo_n "checking if \"
  40247. #if SPANDSP_RELEASE_DATE < 20080516
  40248. #error \"spandsp 0.0.5 or greater is required\"
  40249. #endif
  40250. \" compiles using spandsp/version.h... " >&6; }
  40251. fi
  40252. saved_cppflags="${CPPFLAGS}"
  40253. if test "x${SPANDSP_DIR}" != "x"; then
  40254. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  40255. fi
  40256. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  40257. cat >conftest.$ac_ext <<_ACEOF
  40258. /* confdefs.h. */
  40259. _ACEOF
  40260. cat confdefs.h >>conftest.$ac_ext
  40261. cat >>conftest.$ac_ext <<_ACEOF
  40262. /* end confdefs.h. */
  40263. #include <spandsp/version.h>
  40264. int
  40265. main ()
  40266. {
  40267. #if SPANDSP_RELEASE_DATE < 20080516
  40268. #error "spandsp 0.0.5 or greater is required"
  40269. #endif
  40270. ;
  40271. ;
  40272. return 0;
  40273. }
  40274. _ACEOF
  40275. rm -f conftest.$ac_objext
  40276. if { (ac_try="$ac_compile"
  40277. case "(($ac_try" in
  40278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40279. *) ac_try_echo=$ac_try;;
  40280. esac
  40281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40282. $as_echo "$ac_try_echo") >&5
  40283. (eval "$ac_compile") 2>conftest.er1
  40284. ac_status=$?
  40285. grep -v '^ *+' conftest.er1 >conftest.err
  40286. rm -f conftest.er1
  40287. cat conftest.err >&5
  40288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40289. (exit $ac_status); } && {
  40290. test -z "$ac_c_werror_flag" ||
  40291. test ! -s conftest.err
  40292. } && test -s conftest.$ac_objext; then
  40293. { $as_echo "$as_me:$LINENO: result: yes" >&5
  40294. $as_echo "yes" >&6; }
  40295. PBX_SPANDSP=1
  40296. cat >>confdefs.h <<\_ACEOF
  40297. #define HAVE_SPANDSP 1
  40298. _ACEOF
  40299. else
  40300. $as_echo "$as_me: failed program was:" >&5
  40301. sed 's/^/| /' conftest.$ac_ext >&5
  40302. { $as_echo "$as_me:$LINENO: result: no" >&5
  40303. $as_echo "no" >&6; }
  40304. fi
  40305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40306. CPPFLAGS="${saved_cppflags}"
  40307. fi
  40308. if test "x${PBX_SPANDSP}" = "x1" ; then
  40309. # We found the correct version in the header, now let's make sure it links
  40310. # properly, and that libtiff is available
  40311. PBX_SPANDSP=0
  40312. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  40313. pbxlibdir=""
  40314. # if --with-SPANDSP=DIR has been specified, use it.
  40315. if test "x${SPANDSP_DIR}" != "x"; then
  40316. if test -d ${SPANDSP_DIR}/lib; then
  40317. pbxlibdir="-L${SPANDSP_DIR}/lib"
  40318. else
  40319. pbxlibdir="-L${SPANDSP_DIR}"
  40320. fi
  40321. fi
  40322. pbxfuncname="span_set_message_handler"
  40323. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  40324. AST_SPANDSP_FOUND=yes
  40325. else
  40326. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  40327. CFLAGS="${CFLAGS} "
  40328. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  40329. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
  40330. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  40331. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  40332. $as_echo_n "(cached) " >&6
  40333. else
  40334. ac_check_lib_save_LIBS=$LIBS
  40335. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  40336. cat >conftest.$ac_ext <<_ACEOF
  40337. /* confdefs.h. */
  40338. _ACEOF
  40339. cat confdefs.h >>conftest.$ac_ext
  40340. cat >>conftest.$ac_ext <<_ACEOF
  40341. /* end confdefs.h. */
  40342. /* Override any GCC internal prototype to avoid an error.
  40343. Use char because int might match the return type of a GCC
  40344. builtin and then its argument prototype would still apply. */
  40345. #ifdef __cplusplus
  40346. extern "C"
  40347. #endif
  40348. char ${pbxfuncname} ();
  40349. int
  40350. main ()
  40351. {
  40352. return ${pbxfuncname} ();
  40353. ;
  40354. return 0;
  40355. }
  40356. _ACEOF
  40357. rm -f conftest.$ac_objext conftest$ac_exeext
  40358. if { (ac_try="$ac_link"
  40359. case "(($ac_try" in
  40360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40361. *) ac_try_echo=$ac_try;;
  40362. esac
  40363. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40364. $as_echo "$ac_try_echo") >&5
  40365. (eval "$ac_link") 2>conftest.er1
  40366. ac_status=$?
  40367. grep -v '^ *+' conftest.er1 >conftest.err
  40368. rm -f conftest.er1
  40369. cat conftest.err >&5
  40370. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40371. (exit $ac_status); } && {
  40372. test -z "$ac_c_werror_flag" ||
  40373. test ! -s conftest.err
  40374. } && test -s conftest$ac_exeext && {
  40375. test "$cross_compiling" = yes ||
  40376. $as_test_x conftest$ac_exeext
  40377. }; then
  40378. eval "$as_ac_Lib=yes"
  40379. else
  40380. $as_echo "$as_me: failed program was:" >&5
  40381. sed 's/^/| /' conftest.$ac_ext >&5
  40382. eval "$as_ac_Lib=no"
  40383. fi
  40384. rm -rf conftest.dSYM
  40385. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40386. conftest$ac_exeext conftest.$ac_ext
  40387. LIBS=$ac_check_lib_save_LIBS
  40388. fi
  40389. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40390. $as_echo "$as_val"'`
  40391. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40392. $as_echo "$ac_res" >&6; }
  40393. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40394. $as_echo "$as_val"'`
  40395. if test "x$as_val" = x""yes; then
  40396. AST_SPANDSP_FOUND=yes
  40397. else
  40398. AST_SPANDSP_FOUND=no
  40399. fi
  40400. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40401. fi
  40402. # now check for the header.
  40403. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  40404. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  40405. # if --with-SPANDSP=DIR has been specified, use it.
  40406. if test "x${SPANDSP_DIR}" != "x"; then
  40407. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  40408. fi
  40409. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  40410. if test "xspandsp.h" = "x" ; then # no header, assume found
  40411. SPANDSP_HEADER_FOUND="1"
  40412. else # check for the header
  40413. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40414. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  40415. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40416. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40417. $as_echo_n "checking for spandsp.h... " >&6; }
  40418. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40419. $as_echo_n "(cached) " >&6
  40420. fi
  40421. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40422. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40423. else
  40424. # Is the header compilable?
  40425. { $as_echo "$as_me:$LINENO: checking spandsp.h usability" >&5
  40426. $as_echo_n "checking spandsp.h usability... " >&6; }
  40427. cat >conftest.$ac_ext <<_ACEOF
  40428. /* confdefs.h. */
  40429. _ACEOF
  40430. cat confdefs.h >>conftest.$ac_ext
  40431. cat >>conftest.$ac_ext <<_ACEOF
  40432. /* end confdefs.h. */
  40433. $ac_includes_default
  40434. #include <spandsp.h>
  40435. _ACEOF
  40436. rm -f conftest.$ac_objext
  40437. if { (ac_try="$ac_compile"
  40438. case "(($ac_try" in
  40439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40440. *) ac_try_echo=$ac_try;;
  40441. esac
  40442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40443. $as_echo "$ac_try_echo") >&5
  40444. (eval "$ac_compile") 2>conftest.er1
  40445. ac_status=$?
  40446. grep -v '^ *+' conftest.er1 >conftest.err
  40447. rm -f conftest.er1
  40448. cat conftest.err >&5
  40449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40450. (exit $ac_status); } && {
  40451. test -z "$ac_c_werror_flag" ||
  40452. test ! -s conftest.err
  40453. } && test -s conftest.$ac_objext; then
  40454. ac_header_compiler=yes
  40455. else
  40456. $as_echo "$as_me: failed program was:" >&5
  40457. sed 's/^/| /' conftest.$ac_ext >&5
  40458. ac_header_compiler=no
  40459. fi
  40460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40461. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40462. $as_echo "$ac_header_compiler" >&6; }
  40463. # Is the header present?
  40464. { $as_echo "$as_me:$LINENO: checking spandsp.h presence" >&5
  40465. $as_echo_n "checking spandsp.h presence... " >&6; }
  40466. cat >conftest.$ac_ext <<_ACEOF
  40467. /* confdefs.h. */
  40468. _ACEOF
  40469. cat confdefs.h >>conftest.$ac_ext
  40470. cat >>conftest.$ac_ext <<_ACEOF
  40471. /* end confdefs.h. */
  40472. #include <spandsp.h>
  40473. _ACEOF
  40474. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40475. case "(($ac_try" in
  40476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40477. *) ac_try_echo=$ac_try;;
  40478. esac
  40479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40480. $as_echo "$ac_try_echo") >&5
  40481. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40482. ac_status=$?
  40483. grep -v '^ *+' conftest.er1 >conftest.err
  40484. rm -f conftest.er1
  40485. cat conftest.err >&5
  40486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40487. (exit $ac_status); } >/dev/null && {
  40488. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40489. test ! -s conftest.err
  40490. }; then
  40491. ac_header_preproc=yes
  40492. else
  40493. $as_echo "$as_me: failed program was:" >&5
  40494. sed 's/^/| /' conftest.$ac_ext >&5
  40495. ac_header_preproc=no
  40496. fi
  40497. rm -f conftest.err conftest.$ac_ext
  40498. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40499. $as_echo "$ac_header_preproc" >&6; }
  40500. # So? What about this header?
  40501. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40502. yes:no: )
  40503. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  40504. $as_echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40505. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
  40506. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
  40507. ac_header_preproc=yes
  40508. ;;
  40509. no:yes:* )
  40510. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
  40511. $as_echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
  40512. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
  40513. $as_echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
  40514. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
  40515. $as_echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
  40516. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
  40517. $as_echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  40518. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
  40519. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
  40520. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
  40521. $as_echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
  40522. ( cat <<\_ASBOX
  40523. ## ------------------------------------------ ##
  40524. ## Report this to https://issues.asterisk.org ##
  40525. ## ------------------------------------------ ##
  40526. _ASBOX
  40527. ) | sed "s/^/$as_me: WARNING: /" >&2
  40528. ;;
  40529. esac
  40530. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40531. $as_echo_n "checking for spandsp.h... " >&6; }
  40532. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40533. $as_echo_n "(cached) " >&6
  40534. else
  40535. ac_cv_header_spandsp_h=$ac_header_preproc
  40536. fi
  40537. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40538. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40539. fi
  40540. if test "x$ac_cv_header_spandsp_h" = x""yes; then
  40541. SPANDSP_HEADER_FOUND=1
  40542. else
  40543. SPANDSP_HEADER_FOUND=0
  40544. fi
  40545. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  40546. fi
  40547. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  40548. SPANDSP_LIB=""
  40549. SPANDSP_INCLUDE=""
  40550. else
  40551. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  40552. SPANDSP_LIB=""
  40553. fi
  40554. PBX_SPANDSP=1
  40555. cat >>confdefs.h <<_ACEOF
  40556. #define HAVE_SPANDSP 1
  40557. _ACEOF
  40558. fi
  40559. fi
  40560. fi
  40561. fi
  40562. if test "x${PBX_SPANDSP}" = "x1" ; then
  40563. # We also need t38_terminal_init()
  40564. PBX_SPANDSP=0
  40565. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  40566. pbxlibdir=""
  40567. # if --with-SPANDSP=DIR has been specified, use it.
  40568. if test "x${SPANDSP_DIR}" != "x"; then
  40569. if test -d ${SPANDSP_DIR}/lib; then
  40570. pbxlibdir="-L${SPANDSP_DIR}/lib"
  40571. else
  40572. pbxlibdir="-L${SPANDSP_DIR}"
  40573. fi
  40574. fi
  40575. pbxfuncname="t38_terminal_init"
  40576. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  40577. AST_SPANDSP_FOUND=yes
  40578. else
  40579. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  40580. CFLAGS="${CFLAGS} "
  40581. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  40582. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
  40583. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  40584. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  40585. $as_echo_n "(cached) " >&6
  40586. else
  40587. ac_check_lib_save_LIBS=$LIBS
  40588. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  40589. cat >conftest.$ac_ext <<_ACEOF
  40590. /* confdefs.h. */
  40591. _ACEOF
  40592. cat confdefs.h >>conftest.$ac_ext
  40593. cat >>conftest.$ac_ext <<_ACEOF
  40594. /* end confdefs.h. */
  40595. /* Override any GCC internal prototype to avoid an error.
  40596. Use char because int might match the return type of a GCC
  40597. builtin and then its argument prototype would still apply. */
  40598. #ifdef __cplusplus
  40599. extern "C"
  40600. #endif
  40601. char ${pbxfuncname} ();
  40602. int
  40603. main ()
  40604. {
  40605. return ${pbxfuncname} ();
  40606. ;
  40607. return 0;
  40608. }
  40609. _ACEOF
  40610. rm -f conftest.$ac_objext conftest$ac_exeext
  40611. if { (ac_try="$ac_link"
  40612. case "(($ac_try" in
  40613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40614. *) ac_try_echo=$ac_try;;
  40615. esac
  40616. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40617. $as_echo "$ac_try_echo") >&5
  40618. (eval "$ac_link") 2>conftest.er1
  40619. ac_status=$?
  40620. grep -v '^ *+' conftest.er1 >conftest.err
  40621. rm -f conftest.er1
  40622. cat conftest.err >&5
  40623. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40624. (exit $ac_status); } && {
  40625. test -z "$ac_c_werror_flag" ||
  40626. test ! -s conftest.err
  40627. } && test -s conftest$ac_exeext && {
  40628. test "$cross_compiling" = yes ||
  40629. $as_test_x conftest$ac_exeext
  40630. }; then
  40631. eval "$as_ac_Lib=yes"
  40632. else
  40633. $as_echo "$as_me: failed program was:" >&5
  40634. sed 's/^/| /' conftest.$ac_ext >&5
  40635. eval "$as_ac_Lib=no"
  40636. fi
  40637. rm -rf conftest.dSYM
  40638. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40639. conftest$ac_exeext conftest.$ac_ext
  40640. LIBS=$ac_check_lib_save_LIBS
  40641. fi
  40642. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40643. $as_echo "$as_val"'`
  40644. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40645. $as_echo "$ac_res" >&6; }
  40646. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40647. $as_echo "$as_val"'`
  40648. if test "x$as_val" = x""yes; then
  40649. AST_SPANDSP_FOUND=yes
  40650. else
  40651. AST_SPANDSP_FOUND=no
  40652. fi
  40653. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40654. fi
  40655. # now check for the header.
  40656. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  40657. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  40658. # if --with-SPANDSP=DIR has been specified, use it.
  40659. if test "x${SPANDSP_DIR}" != "x"; then
  40660. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  40661. fi
  40662. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  40663. if test "xspandsp.h" = "x" ; then # no header, assume found
  40664. SPANDSP_HEADER_FOUND="1"
  40665. else # check for the header
  40666. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40667. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  40668. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40669. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40670. $as_echo_n "checking for spandsp.h... " >&6; }
  40671. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40672. $as_echo_n "(cached) " >&6
  40673. fi
  40674. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40675. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40676. else
  40677. # Is the header compilable?
  40678. { $as_echo "$as_me:$LINENO: checking spandsp.h usability" >&5
  40679. $as_echo_n "checking spandsp.h usability... " >&6; }
  40680. cat >conftest.$ac_ext <<_ACEOF
  40681. /* confdefs.h. */
  40682. _ACEOF
  40683. cat confdefs.h >>conftest.$ac_ext
  40684. cat >>conftest.$ac_ext <<_ACEOF
  40685. /* end confdefs.h. */
  40686. $ac_includes_default
  40687. #include <spandsp.h>
  40688. _ACEOF
  40689. rm -f conftest.$ac_objext
  40690. if { (ac_try="$ac_compile"
  40691. case "(($ac_try" in
  40692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40693. *) ac_try_echo=$ac_try;;
  40694. esac
  40695. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40696. $as_echo "$ac_try_echo") >&5
  40697. (eval "$ac_compile") 2>conftest.er1
  40698. ac_status=$?
  40699. grep -v '^ *+' conftest.er1 >conftest.err
  40700. rm -f conftest.er1
  40701. cat conftest.err >&5
  40702. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40703. (exit $ac_status); } && {
  40704. test -z "$ac_c_werror_flag" ||
  40705. test ! -s conftest.err
  40706. } && test -s conftest.$ac_objext; then
  40707. ac_header_compiler=yes
  40708. else
  40709. $as_echo "$as_me: failed program was:" >&5
  40710. sed 's/^/| /' conftest.$ac_ext >&5
  40711. ac_header_compiler=no
  40712. fi
  40713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40714. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40715. $as_echo "$ac_header_compiler" >&6; }
  40716. # Is the header present?
  40717. { $as_echo "$as_me:$LINENO: checking spandsp.h presence" >&5
  40718. $as_echo_n "checking spandsp.h presence... " >&6; }
  40719. cat >conftest.$ac_ext <<_ACEOF
  40720. /* confdefs.h. */
  40721. _ACEOF
  40722. cat confdefs.h >>conftest.$ac_ext
  40723. cat >>conftest.$ac_ext <<_ACEOF
  40724. /* end confdefs.h. */
  40725. #include <spandsp.h>
  40726. _ACEOF
  40727. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40728. case "(($ac_try" in
  40729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40730. *) ac_try_echo=$ac_try;;
  40731. esac
  40732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40733. $as_echo "$ac_try_echo") >&5
  40734. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40735. ac_status=$?
  40736. grep -v '^ *+' conftest.er1 >conftest.err
  40737. rm -f conftest.er1
  40738. cat conftest.err >&5
  40739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40740. (exit $ac_status); } >/dev/null && {
  40741. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40742. test ! -s conftest.err
  40743. }; then
  40744. ac_header_preproc=yes
  40745. else
  40746. $as_echo "$as_me: failed program was:" >&5
  40747. sed 's/^/| /' conftest.$ac_ext >&5
  40748. ac_header_preproc=no
  40749. fi
  40750. rm -f conftest.err conftest.$ac_ext
  40751. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40752. $as_echo "$ac_header_preproc" >&6; }
  40753. # So? What about this header?
  40754. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40755. yes:no: )
  40756. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  40757. $as_echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40758. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
  40759. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
  40760. ac_header_preproc=yes
  40761. ;;
  40762. no:yes:* )
  40763. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
  40764. $as_echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
  40765. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
  40766. $as_echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
  40767. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
  40768. $as_echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
  40769. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
  40770. $as_echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  40771. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
  40772. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
  40773. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
  40774. $as_echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
  40775. ( cat <<\_ASBOX
  40776. ## ------------------------------------------ ##
  40777. ## Report this to https://issues.asterisk.org ##
  40778. ## ------------------------------------------ ##
  40779. _ASBOX
  40780. ) | sed "s/^/$as_me: WARNING: /" >&2
  40781. ;;
  40782. esac
  40783. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40784. $as_echo_n "checking for spandsp.h... " >&6; }
  40785. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40786. $as_echo_n "(cached) " >&6
  40787. else
  40788. ac_cv_header_spandsp_h=$ac_header_preproc
  40789. fi
  40790. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40791. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40792. fi
  40793. if test "x$ac_cv_header_spandsp_h" = x""yes; then
  40794. SPANDSP_HEADER_FOUND=1
  40795. else
  40796. SPANDSP_HEADER_FOUND=0
  40797. fi
  40798. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  40799. fi
  40800. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  40801. SPANDSP_LIB=""
  40802. SPANDSP_INCLUDE=""
  40803. else
  40804. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  40805. SPANDSP_LIB=""
  40806. fi
  40807. PBX_SPANDSP=1
  40808. cat >>confdefs.h <<_ACEOF
  40809. #define HAVE_SPANDSP 1
  40810. _ACEOF
  40811. fi
  40812. fi
  40813. fi
  40814. fi
  40815. # Check for libss7 v1.0 branch compatible version.
  40816. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  40817. pbxlibdir=""
  40818. # if --with-SS7=DIR has been specified, use it.
  40819. if test "x${SS7_DIR}" != "x"; then
  40820. if test -d ${SS7_DIR}/lib; then
  40821. pbxlibdir="-L${SS7_DIR}/lib"
  40822. else
  40823. pbxlibdir="-L${SS7_DIR}"
  40824. fi
  40825. fi
  40826. pbxfuncname="ss7_set_adjpc"
  40827. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  40828. AST_SS7_FOUND=yes
  40829. else
  40830. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  40831. CFLAGS="${CFLAGS} "
  40832. as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
  40833. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
  40834. $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
  40835. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  40836. $as_echo_n "(cached) " >&6
  40837. else
  40838. ac_check_lib_save_LIBS=$LIBS
  40839. LIBS="-lss7 ${pbxlibdir} $LIBS"
  40840. cat >conftest.$ac_ext <<_ACEOF
  40841. /* confdefs.h. */
  40842. _ACEOF
  40843. cat confdefs.h >>conftest.$ac_ext
  40844. cat >>conftest.$ac_ext <<_ACEOF
  40845. /* end confdefs.h. */
  40846. /* Override any GCC internal prototype to avoid an error.
  40847. Use char because int might match the return type of a GCC
  40848. builtin and then its argument prototype would still apply. */
  40849. #ifdef __cplusplus
  40850. extern "C"
  40851. #endif
  40852. char ${pbxfuncname} ();
  40853. int
  40854. main ()
  40855. {
  40856. return ${pbxfuncname} ();
  40857. ;
  40858. return 0;
  40859. }
  40860. _ACEOF
  40861. rm -f conftest.$ac_objext conftest$ac_exeext
  40862. if { (ac_try="$ac_link"
  40863. case "(($ac_try" in
  40864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40865. *) ac_try_echo=$ac_try;;
  40866. esac
  40867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40868. $as_echo "$ac_try_echo") >&5
  40869. (eval "$ac_link") 2>conftest.er1
  40870. ac_status=$?
  40871. grep -v '^ *+' conftest.er1 >conftest.err
  40872. rm -f conftest.er1
  40873. cat conftest.err >&5
  40874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40875. (exit $ac_status); } && {
  40876. test -z "$ac_c_werror_flag" ||
  40877. test ! -s conftest.err
  40878. } && test -s conftest$ac_exeext && {
  40879. test "$cross_compiling" = yes ||
  40880. $as_test_x conftest$ac_exeext
  40881. }; then
  40882. eval "$as_ac_Lib=yes"
  40883. else
  40884. $as_echo "$as_me: failed program was:" >&5
  40885. sed 's/^/| /' conftest.$ac_ext >&5
  40886. eval "$as_ac_Lib=no"
  40887. fi
  40888. rm -rf conftest.dSYM
  40889. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40890. conftest$ac_exeext conftest.$ac_ext
  40891. LIBS=$ac_check_lib_save_LIBS
  40892. fi
  40893. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40894. $as_echo "$as_val"'`
  40895. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40896. $as_echo "$ac_res" >&6; }
  40897. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40898. $as_echo "$as_val"'`
  40899. if test "x$as_val" = x""yes; then
  40900. AST_SS7_FOUND=yes
  40901. else
  40902. AST_SS7_FOUND=no
  40903. fi
  40904. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40905. fi
  40906. # now check for the header.
  40907. if test "${AST_SS7_FOUND}" = "yes"; then
  40908. SS7_LIB="${pbxlibdir} -lss7 "
  40909. # if --with-SS7=DIR has been specified, use it.
  40910. if test "x${SS7_DIR}" != "x"; then
  40911. SS7_INCLUDE="-I${SS7_DIR}/include"
  40912. fi
  40913. SS7_INCLUDE="${SS7_INCLUDE} "
  40914. if test "xlibss7.h" = "x" ; then # no header, assume found
  40915. SS7_HEADER_FOUND="1"
  40916. else # check for the header
  40917. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40918. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  40919. if test "${ac_cv_header_libss7_h+set}" = set; then
  40920. { $as_echo "$as_me:$LINENO: checking for libss7.h" >&5
  40921. $as_echo_n "checking for libss7.h... " >&6; }
  40922. if test "${ac_cv_header_libss7_h+set}" = set; then
  40923. $as_echo_n "(cached) " >&6
  40924. fi
  40925. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
  40926. $as_echo "$ac_cv_header_libss7_h" >&6; }
  40927. else
  40928. # Is the header compilable?
  40929. { $as_echo "$as_me:$LINENO: checking libss7.h usability" >&5
  40930. $as_echo_n "checking libss7.h usability... " >&6; }
  40931. cat >conftest.$ac_ext <<_ACEOF
  40932. /* confdefs.h. */
  40933. _ACEOF
  40934. cat confdefs.h >>conftest.$ac_ext
  40935. cat >>conftest.$ac_ext <<_ACEOF
  40936. /* end confdefs.h. */
  40937. $ac_includes_default
  40938. #include <libss7.h>
  40939. _ACEOF
  40940. rm -f conftest.$ac_objext
  40941. if { (ac_try="$ac_compile"
  40942. case "(($ac_try" in
  40943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40944. *) ac_try_echo=$ac_try;;
  40945. esac
  40946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40947. $as_echo "$ac_try_echo") >&5
  40948. (eval "$ac_compile") 2>conftest.er1
  40949. ac_status=$?
  40950. grep -v '^ *+' conftest.er1 >conftest.err
  40951. rm -f conftest.er1
  40952. cat conftest.err >&5
  40953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40954. (exit $ac_status); } && {
  40955. test -z "$ac_c_werror_flag" ||
  40956. test ! -s conftest.err
  40957. } && test -s conftest.$ac_objext; then
  40958. ac_header_compiler=yes
  40959. else
  40960. $as_echo "$as_me: failed program was:" >&5
  40961. sed 's/^/| /' conftest.$ac_ext >&5
  40962. ac_header_compiler=no
  40963. fi
  40964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40965. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40966. $as_echo "$ac_header_compiler" >&6; }
  40967. # Is the header present?
  40968. { $as_echo "$as_me:$LINENO: checking libss7.h presence" >&5
  40969. $as_echo_n "checking libss7.h presence... " >&6; }
  40970. cat >conftest.$ac_ext <<_ACEOF
  40971. /* confdefs.h. */
  40972. _ACEOF
  40973. cat confdefs.h >>conftest.$ac_ext
  40974. cat >>conftest.$ac_ext <<_ACEOF
  40975. /* end confdefs.h. */
  40976. #include <libss7.h>
  40977. _ACEOF
  40978. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40979. case "(($ac_try" in
  40980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40981. *) ac_try_echo=$ac_try;;
  40982. esac
  40983. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40984. $as_echo "$ac_try_echo") >&5
  40985. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40986. ac_status=$?
  40987. grep -v '^ *+' conftest.er1 >conftest.err
  40988. rm -f conftest.er1
  40989. cat conftest.err >&5
  40990. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40991. (exit $ac_status); } >/dev/null && {
  40992. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40993. test ! -s conftest.err
  40994. }; then
  40995. ac_header_preproc=yes
  40996. else
  40997. $as_echo "$as_me: failed program was:" >&5
  40998. sed 's/^/| /' conftest.$ac_ext >&5
  40999. ac_header_preproc=no
  41000. fi
  41001. rm -f conftest.err conftest.$ac_ext
  41002. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41003. $as_echo "$ac_header_preproc" >&6; }
  41004. # So? What about this header?
  41005. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  41006. yes:no: )
  41007. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41008. $as_echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41009. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
  41010. $as_echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
  41011. ac_header_preproc=yes
  41012. ;;
  41013. no:yes:* )
  41014. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
  41015. $as_echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
  41016. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
  41017. $as_echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
  41018. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
  41019. $as_echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
  41020. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
  41021. $as_echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41022. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
  41023. $as_echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
  41024. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
  41025. $as_echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
  41026. ( cat <<\_ASBOX
  41027. ## ------------------------------------------ ##
  41028. ## Report this to https://issues.asterisk.org ##
  41029. ## ------------------------------------------ ##
  41030. _ASBOX
  41031. ) | sed "s/^/$as_me: WARNING: /" >&2
  41032. ;;
  41033. esac
  41034. { $as_echo "$as_me:$LINENO: checking for libss7.h" >&5
  41035. $as_echo_n "checking for libss7.h... " >&6; }
  41036. if test "${ac_cv_header_libss7_h+set}" = set; then
  41037. $as_echo_n "(cached) " >&6
  41038. else
  41039. ac_cv_header_libss7_h=$ac_header_preproc
  41040. fi
  41041. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
  41042. $as_echo "$ac_cv_header_libss7_h" >&6; }
  41043. fi
  41044. if test "x$ac_cv_header_libss7_h" = x""yes; then
  41045. SS7_HEADER_FOUND=1
  41046. else
  41047. SS7_HEADER_FOUND=0
  41048. fi
  41049. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  41050. fi
  41051. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  41052. SS7_LIB=""
  41053. SS7_INCLUDE=""
  41054. else
  41055. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  41056. SS7_LIB=""
  41057. fi
  41058. PBX_SS7=1
  41059. cat >>confdefs.h <<_ACEOF
  41060. #define HAVE_SS7 1
  41061. _ACEOF
  41062. fi
  41063. fi
  41064. fi
  41065. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  41066. pbxlibdir=""
  41067. # if --with-OPENR2=DIR has been specified, use it.
  41068. if test "x${OPENR2_DIR}" != "x"; then
  41069. if test -d ${OPENR2_DIR}/lib; then
  41070. pbxlibdir="-L${OPENR2_DIR}/lib"
  41071. else
  41072. pbxlibdir="-L${OPENR2_DIR}"
  41073. fi
  41074. fi
  41075. pbxfuncname="openr2_chan_new"
  41076. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  41077. AST_OPENR2_FOUND=yes
  41078. else
  41079. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  41080. CFLAGS="${CFLAGS} "
  41081. as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
  41082. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lopenr2" >&5
  41083. $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
  41084. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  41085. $as_echo_n "(cached) " >&6
  41086. else
  41087. ac_check_lib_save_LIBS=$LIBS
  41088. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  41089. cat >conftest.$ac_ext <<_ACEOF
  41090. /* confdefs.h. */
  41091. _ACEOF
  41092. cat confdefs.h >>conftest.$ac_ext
  41093. cat >>conftest.$ac_ext <<_ACEOF
  41094. /* end confdefs.h. */
  41095. /* Override any GCC internal prototype to avoid an error.
  41096. Use char because int might match the return type of a GCC
  41097. builtin and then its argument prototype would still apply. */
  41098. #ifdef __cplusplus
  41099. extern "C"
  41100. #endif
  41101. char ${pbxfuncname} ();
  41102. int
  41103. main ()
  41104. {
  41105. return ${pbxfuncname} ();
  41106. ;
  41107. return 0;
  41108. }
  41109. _ACEOF
  41110. rm -f conftest.$ac_objext conftest$ac_exeext
  41111. if { (ac_try="$ac_link"
  41112. case "(($ac_try" in
  41113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41114. *) ac_try_echo=$ac_try;;
  41115. esac
  41116. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41117. $as_echo "$ac_try_echo") >&5
  41118. (eval "$ac_link") 2>conftest.er1
  41119. ac_status=$?
  41120. grep -v '^ *+' conftest.er1 >conftest.err
  41121. rm -f conftest.er1
  41122. cat conftest.err >&5
  41123. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41124. (exit $ac_status); } && {
  41125. test -z "$ac_c_werror_flag" ||
  41126. test ! -s conftest.err
  41127. } && test -s conftest$ac_exeext && {
  41128. test "$cross_compiling" = yes ||
  41129. $as_test_x conftest$ac_exeext
  41130. }; then
  41131. eval "$as_ac_Lib=yes"
  41132. else
  41133. $as_echo "$as_me: failed program was:" >&5
  41134. sed 's/^/| /' conftest.$ac_ext >&5
  41135. eval "$as_ac_Lib=no"
  41136. fi
  41137. rm -rf conftest.dSYM
  41138. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41139. conftest$ac_exeext conftest.$ac_ext
  41140. LIBS=$ac_check_lib_save_LIBS
  41141. fi
  41142. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  41143. $as_echo "$as_val"'`
  41144. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41145. $as_echo "$ac_res" >&6; }
  41146. as_val=`eval 'as_val=${'$as_ac_Lib'}
  41147. $as_echo "$as_val"'`
  41148. if test "x$as_val" = x""yes; then
  41149. AST_OPENR2_FOUND=yes
  41150. else
  41151. AST_OPENR2_FOUND=no
  41152. fi
  41153. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  41154. fi
  41155. # now check for the header.
  41156. if test "${AST_OPENR2_FOUND}" = "yes"; then
  41157. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  41158. # if --with-OPENR2=DIR has been specified, use it.
  41159. if test "x${OPENR2_DIR}" != "x"; then
  41160. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  41161. fi
  41162. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  41163. if test "xopenr2.h" = "x" ; then # no header, assume found
  41164. OPENR2_HEADER_FOUND="1"
  41165. else # check for the header
  41166. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  41167. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  41168. if test "${ac_cv_header_openr2_h+set}" = set; then
  41169. { $as_echo "$as_me:$LINENO: checking for openr2.h" >&5
  41170. $as_echo_n "checking for openr2.h... " >&6; }
  41171. if test "${ac_cv_header_openr2_h+set}" = set; then
  41172. $as_echo_n "(cached) " >&6
  41173. fi
  41174. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openr2_h" >&5
  41175. $as_echo "$ac_cv_header_openr2_h" >&6; }
  41176. else
  41177. # Is the header compilable?
  41178. { $as_echo "$as_me:$LINENO: checking openr2.h usability" >&5
  41179. $as_echo_n "checking openr2.h usability... " >&6; }
  41180. cat >conftest.$ac_ext <<_ACEOF
  41181. /* confdefs.h. */
  41182. _ACEOF
  41183. cat confdefs.h >>conftest.$ac_ext
  41184. cat >>conftest.$ac_ext <<_ACEOF
  41185. /* end confdefs.h. */
  41186. $ac_includes_default
  41187. #include <openr2.h>
  41188. _ACEOF
  41189. rm -f conftest.$ac_objext
  41190. if { (ac_try="$ac_compile"
  41191. case "(($ac_try" in
  41192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41193. *) ac_try_echo=$ac_try;;
  41194. esac
  41195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41196. $as_echo "$ac_try_echo") >&5
  41197. (eval "$ac_compile") 2>conftest.er1
  41198. ac_status=$?
  41199. grep -v '^ *+' conftest.er1 >conftest.err
  41200. rm -f conftest.er1
  41201. cat conftest.err >&5
  41202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41203. (exit $ac_status); } && {
  41204. test -z "$ac_c_werror_flag" ||
  41205. test ! -s conftest.err
  41206. } && test -s conftest.$ac_objext; then
  41207. ac_header_compiler=yes
  41208. else
  41209. $as_echo "$as_me: failed program was:" >&5
  41210. sed 's/^/| /' conftest.$ac_ext >&5
  41211. ac_header_compiler=no
  41212. fi
  41213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41214. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41215. $as_echo "$ac_header_compiler" >&6; }
  41216. # Is the header present?
  41217. { $as_echo "$as_me:$LINENO: checking openr2.h presence" >&5
  41218. $as_echo_n "checking openr2.h presence... " >&6; }
  41219. cat >conftest.$ac_ext <<_ACEOF
  41220. /* confdefs.h. */
  41221. _ACEOF
  41222. cat confdefs.h >>conftest.$ac_ext
  41223. cat >>conftest.$ac_ext <<_ACEOF
  41224. /* end confdefs.h. */
  41225. #include <openr2.h>
  41226. _ACEOF
  41227. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41228. case "(($ac_try" in
  41229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41230. *) ac_try_echo=$ac_try;;
  41231. esac
  41232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41233. $as_echo "$ac_try_echo") >&5
  41234. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41235. ac_status=$?
  41236. grep -v '^ *+' conftest.er1 >conftest.err
  41237. rm -f conftest.er1
  41238. cat conftest.err >&5
  41239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41240. (exit $ac_status); } >/dev/null && {
  41241. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  41242. test ! -s conftest.err
  41243. }; then
  41244. ac_header_preproc=yes
  41245. else
  41246. $as_echo "$as_me: failed program was:" >&5
  41247. sed 's/^/| /' conftest.$ac_ext >&5
  41248. ac_header_preproc=no
  41249. fi
  41250. rm -f conftest.err conftest.$ac_ext
  41251. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41252. $as_echo "$ac_header_preproc" >&6; }
  41253. # So? What about this header?
  41254. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  41255. yes:no: )
  41256. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41257. $as_echo "$as_me: WARNING: openr2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41258. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: proceeding with the compiler's result" >&5
  41259. $as_echo "$as_me: WARNING: openr2.h: proceeding with the compiler's result" >&2;}
  41260. ac_header_preproc=yes
  41261. ;;
  41262. no:yes:* )
  41263. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: present but cannot be compiled" >&5
  41264. $as_echo "$as_me: WARNING: openr2.h: present but cannot be compiled" >&2;}
  41265. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: check for missing prerequisite headers?" >&5
  41266. $as_echo "$as_me: WARNING: openr2.h: check for missing prerequisite headers?" >&2;}
  41267. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: see the Autoconf documentation" >&5
  41268. $as_echo "$as_me: WARNING: openr2.h: see the Autoconf documentation" >&2;}
  41269. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: section \"Present But Cannot Be Compiled\"" >&5
  41270. $as_echo "$as_me: WARNING: openr2.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41271. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: proceeding with the preprocessor's result" >&5
  41272. $as_echo "$as_me: WARNING: openr2.h: proceeding with the preprocessor's result" >&2;}
  41273. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: in the future, the compiler will take precedence" >&5
  41274. $as_echo "$as_me: WARNING: openr2.h: in the future, the compiler will take precedence" >&2;}
  41275. ( cat <<\_ASBOX
  41276. ## ------------------------------------------ ##
  41277. ## Report this to https://issues.asterisk.org ##
  41278. ## ------------------------------------------ ##
  41279. _ASBOX
  41280. ) | sed "s/^/$as_me: WARNING: /" >&2
  41281. ;;
  41282. esac
  41283. { $as_echo "$as_me:$LINENO: checking for openr2.h" >&5
  41284. $as_echo_n "checking for openr2.h... " >&6; }
  41285. if test "${ac_cv_header_openr2_h+set}" = set; then
  41286. $as_echo_n "(cached) " >&6
  41287. else
  41288. ac_cv_header_openr2_h=$ac_header_preproc
  41289. fi
  41290. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openr2_h" >&5
  41291. $as_echo "$ac_cv_header_openr2_h" >&6; }
  41292. fi
  41293. if test "x$ac_cv_header_openr2_h" = x""yes; then
  41294. OPENR2_HEADER_FOUND=1
  41295. else
  41296. OPENR2_HEADER_FOUND=0
  41297. fi
  41298. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  41299. fi
  41300. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  41301. OPENR2_LIB=""
  41302. OPENR2_INCLUDE=""
  41303. else
  41304. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  41305. OPENR2_LIB=""
  41306. fi
  41307. PBX_OPENR2=1
  41308. cat >>confdefs.h <<_ACEOF
  41309. #define HAVE_OPENR2 1
  41310. _ACEOF
  41311. fi
  41312. fi
  41313. fi
  41314. if test "${USE_PWLIB}" != "no"; then
  41315. if test -n "${PWLIB_DIR}"; then
  41316. PWLIBDIR="${PWLIB_DIR}"
  41317. fi
  41318. PWLIB_INCDIR=
  41319. PWLIB_LIBDIR=
  41320. ac_ext=cpp
  41321. ac_cpp='$CXXCPP $CPPFLAGS'
  41322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41325. if test "${PWLIBDIR:-unset}" != "unset" ; then
  41326. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  41327. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41328. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
  41329. $as_echo_n "checking for ${PWLIBDIR}/version.h... " >&6; }
  41330. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41331. $as_echo_n "(cached) " >&6
  41332. fi
  41333. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41334. $as_echo "$as_val"'`
  41335. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41336. $as_echo "$ac_res" >&6; }
  41337. else
  41338. # Is the header compilable?
  41339. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
  41340. $as_echo_n "checking ${PWLIBDIR}/version.h usability... " >&6; }
  41341. cat >conftest.$ac_ext <<_ACEOF
  41342. /* confdefs.h. */
  41343. _ACEOF
  41344. cat confdefs.h >>conftest.$ac_ext
  41345. cat >>conftest.$ac_ext <<_ACEOF
  41346. /* end confdefs.h. */
  41347. $ac_includes_default
  41348. #include <${PWLIBDIR}/version.h>
  41349. _ACEOF
  41350. rm -f conftest.$ac_objext
  41351. if { (ac_try="$ac_compile"
  41352. case "(($ac_try" in
  41353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41354. *) ac_try_echo=$ac_try;;
  41355. esac
  41356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41357. $as_echo "$ac_try_echo") >&5
  41358. (eval "$ac_compile") 2>conftest.er1
  41359. ac_status=$?
  41360. grep -v '^ *+' conftest.er1 >conftest.err
  41361. rm -f conftest.er1
  41362. cat conftest.err >&5
  41363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41364. (exit $ac_status); } && {
  41365. test -z "$ac_cxx_werror_flag" ||
  41366. test ! -s conftest.err
  41367. } && test -s conftest.$ac_objext; then
  41368. ac_header_compiler=yes
  41369. else
  41370. $as_echo "$as_me: failed program was:" >&5
  41371. sed 's/^/| /' conftest.$ac_ext >&5
  41372. ac_header_compiler=no
  41373. fi
  41374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41375. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41376. $as_echo "$ac_header_compiler" >&6; }
  41377. # Is the header present?
  41378. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
  41379. $as_echo_n "checking ${PWLIBDIR}/version.h presence... " >&6; }
  41380. cat >conftest.$ac_ext <<_ACEOF
  41381. /* confdefs.h. */
  41382. _ACEOF
  41383. cat confdefs.h >>conftest.$ac_ext
  41384. cat >>conftest.$ac_ext <<_ACEOF
  41385. /* end confdefs.h. */
  41386. #include <${PWLIBDIR}/version.h>
  41387. _ACEOF
  41388. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41389. case "(($ac_try" in
  41390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41391. *) ac_try_echo=$ac_try;;
  41392. esac
  41393. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41394. $as_echo "$ac_try_echo") >&5
  41395. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41396. ac_status=$?
  41397. grep -v '^ *+' conftest.er1 >conftest.err
  41398. rm -f conftest.er1
  41399. cat conftest.err >&5
  41400. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41401. (exit $ac_status); } >/dev/null && {
  41402. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41403. test ! -s conftest.err
  41404. }; then
  41405. ac_header_preproc=yes
  41406. else
  41407. $as_echo "$as_me: failed program was:" >&5
  41408. sed 's/^/| /' conftest.$ac_ext >&5
  41409. ac_header_preproc=no
  41410. fi
  41411. rm -f conftest.err conftest.$ac_ext
  41412. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41413. $as_echo "$ac_header_preproc" >&6; }
  41414. # So? What about this header?
  41415. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41416. yes:no: )
  41417. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41418. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41419. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
  41420. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
  41421. ac_header_preproc=yes
  41422. ;;
  41423. no:yes:* )
  41424. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
  41425. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
  41426. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
  41427. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
  41428. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
  41429. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
  41430. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
  41431. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41432. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
  41433. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
  41434. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
  41435. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
  41436. ( cat <<\_ASBOX
  41437. ## ------------------------------------------ ##
  41438. ## Report this to https://issues.asterisk.org ##
  41439. ## ------------------------------------------ ##
  41440. _ASBOX
  41441. ) | sed "s/^/$as_me: WARNING: /" >&2
  41442. ;;
  41443. esac
  41444. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
  41445. $as_echo_n "checking for ${PWLIBDIR}/version.h... " >&6; }
  41446. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41447. $as_echo_n "(cached) " >&6
  41448. else
  41449. eval "$as_ac_Header=\$ac_header_preproc"
  41450. fi
  41451. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41452. $as_echo "$as_val"'`
  41453. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41454. $as_echo "$ac_res" >&6; }
  41455. fi
  41456. as_val=`eval 'as_val=${'$as_ac_Header'}
  41457. $as_echo "$as_val"'`
  41458. if test "x$as_val" = x""yes; then
  41459. HAS_PWLIB=1
  41460. fi
  41461. fi
  41462. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  41463. if test "${OPENH323DIR:-unset}" != "unset"; then
  41464. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  41465. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41466. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
  41467. $as_echo_n "checking for ${OPENH323DIR}/../pwlib/version.h... " >&6; }
  41468. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41469. $as_echo_n "(cached) " >&6
  41470. fi
  41471. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41472. $as_echo "$as_val"'`
  41473. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41474. $as_echo "$ac_res" >&6; }
  41475. else
  41476. # Is the header compilable?
  41477. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
  41478. $as_echo_n "checking ${OPENH323DIR}/../pwlib/version.h usability... " >&6; }
  41479. cat >conftest.$ac_ext <<_ACEOF
  41480. /* confdefs.h. */
  41481. _ACEOF
  41482. cat confdefs.h >>conftest.$ac_ext
  41483. cat >>conftest.$ac_ext <<_ACEOF
  41484. /* end confdefs.h. */
  41485. $ac_includes_default
  41486. #include <${OPENH323DIR}/../pwlib/version.h>
  41487. _ACEOF
  41488. rm -f conftest.$ac_objext
  41489. if { (ac_try="$ac_compile"
  41490. case "(($ac_try" in
  41491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41492. *) ac_try_echo=$ac_try;;
  41493. esac
  41494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41495. $as_echo "$ac_try_echo") >&5
  41496. (eval "$ac_compile") 2>conftest.er1
  41497. ac_status=$?
  41498. grep -v '^ *+' conftest.er1 >conftest.err
  41499. rm -f conftest.er1
  41500. cat conftest.err >&5
  41501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41502. (exit $ac_status); } && {
  41503. test -z "$ac_cxx_werror_flag" ||
  41504. test ! -s conftest.err
  41505. } && test -s conftest.$ac_objext; then
  41506. ac_header_compiler=yes
  41507. else
  41508. $as_echo "$as_me: failed program was:" >&5
  41509. sed 's/^/| /' conftest.$ac_ext >&5
  41510. ac_header_compiler=no
  41511. fi
  41512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41513. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41514. $as_echo "$ac_header_compiler" >&6; }
  41515. # Is the header present?
  41516. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
  41517. $as_echo_n "checking ${OPENH323DIR}/../pwlib/version.h presence... " >&6; }
  41518. cat >conftest.$ac_ext <<_ACEOF
  41519. /* confdefs.h. */
  41520. _ACEOF
  41521. cat confdefs.h >>conftest.$ac_ext
  41522. cat >>conftest.$ac_ext <<_ACEOF
  41523. /* end confdefs.h. */
  41524. #include <${OPENH323DIR}/../pwlib/version.h>
  41525. _ACEOF
  41526. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41527. case "(($ac_try" in
  41528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41529. *) ac_try_echo=$ac_try;;
  41530. esac
  41531. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41532. $as_echo "$ac_try_echo") >&5
  41533. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41534. ac_status=$?
  41535. grep -v '^ *+' conftest.er1 >conftest.err
  41536. rm -f conftest.er1
  41537. cat conftest.err >&5
  41538. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41539. (exit $ac_status); } >/dev/null && {
  41540. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41541. test ! -s conftest.err
  41542. }; then
  41543. ac_header_preproc=yes
  41544. else
  41545. $as_echo "$as_me: failed program was:" >&5
  41546. sed 's/^/| /' conftest.$ac_ext >&5
  41547. ac_header_preproc=no
  41548. fi
  41549. rm -f conftest.err conftest.$ac_ext
  41550. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41551. $as_echo "$ac_header_preproc" >&6; }
  41552. # So? What about this header?
  41553. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41554. yes:no: )
  41555. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41556. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41557. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
  41558. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
  41559. ac_header_preproc=yes
  41560. ;;
  41561. no:yes:* )
  41562. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
  41563. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
  41564. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
  41565. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
  41566. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
  41567. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
  41568. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
  41569. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41570. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
  41571. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
  41572. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
  41573. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
  41574. ( cat <<\_ASBOX
  41575. ## ------------------------------------------ ##
  41576. ## Report this to https://issues.asterisk.org ##
  41577. ## ------------------------------------------ ##
  41578. _ASBOX
  41579. ) | sed "s/^/$as_me: WARNING: /" >&2
  41580. ;;
  41581. esac
  41582. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
  41583. $as_echo_n "checking for ${OPENH323DIR}/../pwlib/version.h... " >&6; }
  41584. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41585. $as_echo_n "(cached) " >&6
  41586. else
  41587. eval "$as_ac_Header=\$ac_header_preproc"
  41588. fi
  41589. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41590. $as_echo "$as_val"'`
  41591. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41592. $as_echo "$ac_res" >&6; }
  41593. fi
  41594. as_val=`eval 'as_val=${'$as_ac_Header'}
  41595. $as_echo "$as_val"'`
  41596. if test "x$as_val" = x""yes; then
  41597. HAS_PWLIB=1
  41598. fi
  41599. fi
  41600. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41601. PWLIBDIR="${OPENH323DIR}/../pwlib"
  41602. else
  41603. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  41604. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41605. { $as_echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
  41606. $as_echo_n "checking for ${HOME}/pwlib/include/ptlib.h... " >&6; }
  41607. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41608. $as_echo_n "(cached) " >&6
  41609. fi
  41610. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41611. $as_echo "$as_val"'`
  41612. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41613. $as_echo "$ac_res" >&6; }
  41614. else
  41615. # Is the header compilable?
  41616. { $as_echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
  41617. $as_echo_n "checking ${HOME}/pwlib/include/ptlib.h usability... " >&6; }
  41618. cat >conftest.$ac_ext <<_ACEOF
  41619. /* confdefs.h. */
  41620. _ACEOF
  41621. cat confdefs.h >>conftest.$ac_ext
  41622. cat >>conftest.$ac_ext <<_ACEOF
  41623. /* end confdefs.h. */
  41624. $ac_includes_default
  41625. #include <${HOME}/pwlib/include/ptlib.h>
  41626. _ACEOF
  41627. rm -f conftest.$ac_objext
  41628. if { (ac_try="$ac_compile"
  41629. case "(($ac_try" in
  41630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41631. *) ac_try_echo=$ac_try;;
  41632. esac
  41633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41634. $as_echo "$ac_try_echo") >&5
  41635. (eval "$ac_compile") 2>conftest.er1
  41636. ac_status=$?
  41637. grep -v '^ *+' conftest.er1 >conftest.err
  41638. rm -f conftest.er1
  41639. cat conftest.err >&5
  41640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41641. (exit $ac_status); } && {
  41642. test -z "$ac_cxx_werror_flag" ||
  41643. test ! -s conftest.err
  41644. } && test -s conftest.$ac_objext; then
  41645. ac_header_compiler=yes
  41646. else
  41647. $as_echo "$as_me: failed program was:" >&5
  41648. sed 's/^/| /' conftest.$ac_ext >&5
  41649. ac_header_compiler=no
  41650. fi
  41651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41652. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41653. $as_echo "$ac_header_compiler" >&6; }
  41654. # Is the header present?
  41655. { $as_echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
  41656. $as_echo_n "checking ${HOME}/pwlib/include/ptlib.h presence... " >&6; }
  41657. cat >conftest.$ac_ext <<_ACEOF
  41658. /* confdefs.h. */
  41659. _ACEOF
  41660. cat confdefs.h >>conftest.$ac_ext
  41661. cat >>conftest.$ac_ext <<_ACEOF
  41662. /* end confdefs.h. */
  41663. #include <${HOME}/pwlib/include/ptlib.h>
  41664. _ACEOF
  41665. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41666. case "(($ac_try" in
  41667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41668. *) ac_try_echo=$ac_try;;
  41669. esac
  41670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41671. $as_echo "$ac_try_echo") >&5
  41672. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41673. ac_status=$?
  41674. grep -v '^ *+' conftest.er1 >conftest.err
  41675. rm -f conftest.er1
  41676. cat conftest.err >&5
  41677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41678. (exit $ac_status); } >/dev/null && {
  41679. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41680. test ! -s conftest.err
  41681. }; then
  41682. ac_header_preproc=yes
  41683. else
  41684. $as_echo "$as_me: failed program was:" >&5
  41685. sed 's/^/| /' conftest.$ac_ext >&5
  41686. ac_header_preproc=no
  41687. fi
  41688. rm -f conftest.err conftest.$ac_ext
  41689. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41690. $as_echo "$ac_header_preproc" >&6; }
  41691. # So? What about this header?
  41692. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41693. yes:no: )
  41694. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41695. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41696. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
  41697. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
  41698. ac_header_preproc=yes
  41699. ;;
  41700. no:yes:* )
  41701. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
  41702. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
  41703. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
  41704. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
  41705. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
  41706. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
  41707. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
  41708. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41709. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
  41710. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
  41711. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
  41712. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
  41713. ( cat <<\_ASBOX
  41714. ## ------------------------------------------ ##
  41715. ## Report this to https://issues.asterisk.org ##
  41716. ## ------------------------------------------ ##
  41717. _ASBOX
  41718. ) | sed "s/^/$as_me: WARNING: /" >&2
  41719. ;;
  41720. esac
  41721. { $as_echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
  41722. $as_echo_n "checking for ${HOME}/pwlib/include/ptlib.h... " >&6; }
  41723. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41724. $as_echo_n "(cached) " >&6
  41725. else
  41726. eval "$as_ac_Header=\$ac_header_preproc"
  41727. fi
  41728. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41729. $as_echo "$as_val"'`
  41730. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41731. $as_echo "$ac_res" >&6; }
  41732. fi
  41733. as_val=`eval 'as_val=${'$as_ac_Header'}
  41734. $as_echo "$as_val"'`
  41735. if test "x$as_val" = x""yes; then
  41736. HAS_PWLIB=1
  41737. fi
  41738. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41739. PWLIBDIR="${HOME}/pwlib"
  41740. else
  41741. if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
  41742. { $as_echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
  41743. $as_echo_n "checking for /usr/local/include/ptlib.h... " >&6; }
  41744. if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
  41745. $as_echo_n "(cached) " >&6
  41746. fi
  41747. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
  41748. $as_echo "$ac_cv_header__usr_local_include_ptlib_h" >&6; }
  41749. else
  41750. # Is the header compilable?
  41751. { $as_echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
  41752. $as_echo_n "checking /usr/local/include/ptlib.h usability... " >&6; }
  41753. cat >conftest.$ac_ext <<_ACEOF
  41754. /* confdefs.h. */
  41755. _ACEOF
  41756. cat confdefs.h >>conftest.$ac_ext
  41757. cat >>conftest.$ac_ext <<_ACEOF
  41758. /* end confdefs.h. */
  41759. $ac_includes_default
  41760. #include </usr/local/include/ptlib.h>
  41761. _ACEOF
  41762. rm -f conftest.$ac_objext
  41763. if { (ac_try="$ac_compile"
  41764. case "(($ac_try" in
  41765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41766. *) ac_try_echo=$ac_try;;
  41767. esac
  41768. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41769. $as_echo "$ac_try_echo") >&5
  41770. (eval "$ac_compile") 2>conftest.er1
  41771. ac_status=$?
  41772. grep -v '^ *+' conftest.er1 >conftest.err
  41773. rm -f conftest.er1
  41774. cat conftest.err >&5
  41775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41776. (exit $ac_status); } && {
  41777. test -z "$ac_cxx_werror_flag" ||
  41778. test ! -s conftest.err
  41779. } && test -s conftest.$ac_objext; then
  41780. ac_header_compiler=yes
  41781. else
  41782. $as_echo "$as_me: failed program was:" >&5
  41783. sed 's/^/| /' conftest.$ac_ext >&5
  41784. ac_header_compiler=no
  41785. fi
  41786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41787. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41788. $as_echo "$ac_header_compiler" >&6; }
  41789. # Is the header present?
  41790. { $as_echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
  41791. $as_echo_n "checking /usr/local/include/ptlib.h presence... " >&6; }
  41792. cat >conftest.$ac_ext <<_ACEOF
  41793. /* confdefs.h. */
  41794. _ACEOF
  41795. cat confdefs.h >>conftest.$ac_ext
  41796. cat >>conftest.$ac_ext <<_ACEOF
  41797. /* end confdefs.h. */
  41798. #include </usr/local/include/ptlib.h>
  41799. _ACEOF
  41800. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41801. case "(($ac_try" in
  41802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41803. *) ac_try_echo=$ac_try;;
  41804. esac
  41805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41806. $as_echo "$ac_try_echo") >&5
  41807. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41808. ac_status=$?
  41809. grep -v '^ *+' conftest.er1 >conftest.err
  41810. rm -f conftest.er1
  41811. cat conftest.err >&5
  41812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41813. (exit $ac_status); } >/dev/null && {
  41814. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41815. test ! -s conftest.err
  41816. }; then
  41817. ac_header_preproc=yes
  41818. else
  41819. $as_echo "$as_me: failed program was:" >&5
  41820. sed 's/^/| /' conftest.$ac_ext >&5
  41821. ac_header_preproc=no
  41822. fi
  41823. rm -f conftest.err conftest.$ac_ext
  41824. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41825. $as_echo "$ac_header_preproc" >&6; }
  41826. # So? What about this header?
  41827. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41828. yes:no: )
  41829. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41830. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41831. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
  41832. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
  41833. ac_header_preproc=yes
  41834. ;;
  41835. no:yes:* )
  41836. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
  41837. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
  41838. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
  41839. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
  41840. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
  41841. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
  41842. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
  41843. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41844. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
  41845. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
  41846. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
  41847. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
  41848. ( cat <<\_ASBOX
  41849. ## ------------------------------------------ ##
  41850. ## Report this to https://issues.asterisk.org ##
  41851. ## ------------------------------------------ ##
  41852. _ASBOX
  41853. ) | sed "s/^/$as_me: WARNING: /" >&2
  41854. ;;
  41855. esac
  41856. { $as_echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
  41857. $as_echo_n "checking for /usr/local/include/ptlib.h... " >&6; }
  41858. if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
  41859. $as_echo_n "(cached) " >&6
  41860. else
  41861. ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
  41862. fi
  41863. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
  41864. $as_echo "$ac_cv_header__usr_local_include_ptlib_h" >&6; }
  41865. fi
  41866. if test "x$ac_cv_header__usr_local_include_ptlib_h" = x""yes; then
  41867. HAS_PWLIB=1
  41868. fi
  41869. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41870. # Extract the first word of "ptlib-config", so it can be a program name with args.
  41871. set dummy ptlib-config; ac_word=$2
  41872. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  41873. $as_echo_n "checking for $ac_word... " >&6; }
  41874. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
  41875. $as_echo_n "(cached) " >&6
  41876. else
  41877. case $PTLIB_CONFIG in
  41878. [\\/]* | ?:[\\/]*)
  41879. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  41880. ;;
  41881. *)
  41882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41883. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  41884. do
  41885. IFS=$as_save_IFS
  41886. test -z "$as_dir" && as_dir=.
  41887. for ac_exec_ext in '' $ac_executable_extensions; do
  41888. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  41889. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  41890. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  41891. break 2
  41892. fi
  41893. done
  41894. done
  41895. IFS=$as_save_IFS
  41896. ;;
  41897. esac
  41898. fi
  41899. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  41900. if test -n "$PTLIB_CONFIG"; then
  41901. { $as_echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
  41902. $as_echo "$PTLIB_CONFIG" >&6; }
  41903. else
  41904. { $as_echo "$as_me:$LINENO: result: no" >&5
  41905. $as_echo "no" >&6; }
  41906. fi
  41907. PWLIB_INCDIR="/usr/local/include"
  41908. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  41909. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  41910. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  41911. fi
  41912. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  41913. if test "x$LIB64" != "x"; then
  41914. PWLIB_LIBDIR="/usr/local/lib64"
  41915. else
  41916. PWLIB_LIBDIR="/usr/local/lib"
  41917. fi
  41918. fi
  41919. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  41920. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  41921. else
  41922. if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
  41923. { $as_echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
  41924. $as_echo_n "checking for /usr/include/ptlib.h... " >&6; }
  41925. if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
  41926. $as_echo_n "(cached) " >&6
  41927. fi
  41928. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
  41929. $as_echo "$ac_cv_header__usr_include_ptlib_h" >&6; }
  41930. else
  41931. # Is the header compilable?
  41932. { $as_echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
  41933. $as_echo_n "checking /usr/include/ptlib.h usability... " >&6; }
  41934. cat >conftest.$ac_ext <<_ACEOF
  41935. /* confdefs.h. */
  41936. _ACEOF
  41937. cat confdefs.h >>conftest.$ac_ext
  41938. cat >>conftest.$ac_ext <<_ACEOF
  41939. /* end confdefs.h. */
  41940. $ac_includes_default
  41941. #include </usr/include/ptlib.h>
  41942. _ACEOF
  41943. rm -f conftest.$ac_objext
  41944. if { (ac_try="$ac_compile"
  41945. case "(($ac_try" in
  41946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41947. *) ac_try_echo=$ac_try;;
  41948. esac
  41949. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41950. $as_echo "$ac_try_echo") >&5
  41951. (eval "$ac_compile") 2>conftest.er1
  41952. ac_status=$?
  41953. grep -v '^ *+' conftest.er1 >conftest.err
  41954. rm -f conftest.er1
  41955. cat conftest.err >&5
  41956. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41957. (exit $ac_status); } && {
  41958. test -z "$ac_cxx_werror_flag" ||
  41959. test ! -s conftest.err
  41960. } && test -s conftest.$ac_objext; then
  41961. ac_header_compiler=yes
  41962. else
  41963. $as_echo "$as_me: failed program was:" >&5
  41964. sed 's/^/| /' conftest.$ac_ext >&5
  41965. ac_header_compiler=no
  41966. fi
  41967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41968. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41969. $as_echo "$ac_header_compiler" >&6; }
  41970. # Is the header present?
  41971. { $as_echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
  41972. $as_echo_n "checking /usr/include/ptlib.h presence... " >&6; }
  41973. cat >conftest.$ac_ext <<_ACEOF
  41974. /* confdefs.h. */
  41975. _ACEOF
  41976. cat confdefs.h >>conftest.$ac_ext
  41977. cat >>conftest.$ac_ext <<_ACEOF
  41978. /* end confdefs.h. */
  41979. #include </usr/include/ptlib.h>
  41980. _ACEOF
  41981. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41982. case "(($ac_try" in
  41983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41984. *) ac_try_echo=$ac_try;;
  41985. esac
  41986. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41987. $as_echo "$ac_try_echo") >&5
  41988. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41989. ac_status=$?
  41990. grep -v '^ *+' conftest.er1 >conftest.err
  41991. rm -f conftest.er1
  41992. cat conftest.err >&5
  41993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41994. (exit $ac_status); } >/dev/null && {
  41995. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41996. test ! -s conftest.err
  41997. }; then
  41998. ac_header_preproc=yes
  41999. else
  42000. $as_echo "$as_me: failed program was:" >&5
  42001. sed 's/^/| /' conftest.$ac_ext >&5
  42002. ac_header_preproc=no
  42003. fi
  42004. rm -f conftest.err conftest.$ac_ext
  42005. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42006. $as_echo "$ac_header_preproc" >&6; }
  42007. # So? What about this header?
  42008. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  42009. yes:no: )
  42010. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  42011. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42012. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
  42013. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
  42014. ac_header_preproc=yes
  42015. ;;
  42016. no:yes:* )
  42017. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
  42018. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
  42019. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
  42020. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
  42021. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
  42022. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
  42023. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
  42024. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  42025. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
  42026. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
  42027. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
  42028. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
  42029. ( cat <<\_ASBOX
  42030. ## ------------------------------------------ ##
  42031. ## Report this to https://issues.asterisk.org ##
  42032. ## ------------------------------------------ ##
  42033. _ASBOX
  42034. ) | sed "s/^/$as_me: WARNING: /" >&2
  42035. ;;
  42036. esac
  42037. { $as_echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
  42038. $as_echo_n "checking for /usr/include/ptlib.h... " >&6; }
  42039. if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
  42040. $as_echo_n "(cached) " >&6
  42041. else
  42042. ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
  42043. fi
  42044. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
  42045. $as_echo "$ac_cv_header__usr_include_ptlib_h" >&6; }
  42046. fi
  42047. if test "x$ac_cv_header__usr_include_ptlib_h" = x""yes; then
  42048. HAS_PWLIB=1
  42049. fi
  42050. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  42051. # Extract the first word of "ptlib-config", so it can be a program name with args.
  42052. set dummy ptlib-config; ac_word=$2
  42053. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  42054. $as_echo_n "checking for $ac_word... " >&6; }
  42055. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
  42056. $as_echo_n "(cached) " >&6
  42057. else
  42058. case $PTLIB_CONFIG in
  42059. [\\/]* | ?:[\\/]*)
  42060. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  42061. ;;
  42062. *)
  42063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42064. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  42065. do
  42066. IFS=$as_save_IFS
  42067. test -z "$as_dir" && as_dir=.
  42068. for ac_exec_ext in '' $ac_executable_extensions; do
  42069. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42070. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  42071. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42072. break 2
  42073. fi
  42074. done
  42075. done
  42076. IFS=$as_save_IFS
  42077. ;;
  42078. esac
  42079. fi
  42080. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  42081. if test -n "$PTLIB_CONFIG"; then
  42082. { $as_echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
  42083. $as_echo "$PTLIB_CONFIG" >&6; }
  42084. else
  42085. { $as_echo "$as_me:$LINENO: result: no" >&5
  42086. $as_echo "no" >&6; }
  42087. fi
  42088. PWLIB_INCDIR="/usr/include"
  42089. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  42090. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  42091. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  42092. fi
  42093. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  42094. if test "x$LIB64" != "x"; then
  42095. PWLIB_LIBDIR="/usr/lib64"
  42096. else
  42097. PWLIB_LIBDIR="/usr/lib"
  42098. fi
  42099. fi
  42100. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  42101. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  42102. fi
  42103. fi
  42104. fi
  42105. fi
  42106. fi
  42107. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  42108. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  42109. # exit
  42110. #fi
  42111. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  42112. if test "${PWLIBDIR:-unset}" = "unset" ; then
  42113. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  42114. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  42115. else
  42116. echo "Cannot find ptlib-config - please install and try again"
  42117. exit
  42118. fi
  42119. fi
  42120. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  42121. PWLIBDIR="/usr/share/pwlib"
  42122. PWLIB_INCDIR="/usr/include"
  42123. if test "x$LIB64" != "x"; then
  42124. PWLIB_LIBDIR="/usr/lib64"
  42125. else
  42126. PWLIB_LIBDIR="/usr/lib"
  42127. fi
  42128. fi
  42129. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  42130. PWLIBDIR="/usr/local/share/pwlib"
  42131. PWLIB_INCDIR="/usr/local/include"
  42132. if test "x$LIB64" != "x"; then
  42133. PWLIB_LIBDIR="/usr/local/lib64"
  42134. else
  42135. PWLIB_LIBDIR="/usr/local/lib"
  42136. fi
  42137. fi
  42138. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  42139. PWLIB_INCDIR="${PWLIBDIR}/include"
  42140. fi
  42141. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  42142. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  42143. fi
  42144. fi
  42145. ac_ext=c
  42146. ac_cpp='$CPP $CPPFLAGS'
  42147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42150. if test "xP[WT]LIB_VERSION" != "x"; then
  42151. VNAME="P[WT]LIB_VERSION"
  42152. else
  42153. VNAME="PWLIB_VERSION"
  42154. fi
  42155. if test "${HAS_PWLIB:-unset}" != "unset"; then
  42156. PWLIB_VERSION=`grep "$VNAME" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  42157. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  42158. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  42159. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  42160. PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
  42161. PWLIB_REQ=$((1*10000+9*100+2))
  42162. if test "x" = "x"; then
  42163. PWLIB_MAX=9999999
  42164. else
  42165. PWLIB_MAX=$((*10000+*100+))
  42166. fi
  42167. { $as_echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  42168. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  42169. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  42170. { $as_echo "$as_me:$LINENO: result: no" >&5
  42171. $as_echo "no" >&6; }
  42172. unset HAS_PWLIB
  42173. else
  42174. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  42175. { $as_echo "$as_me:$LINENO: result: no" >&5
  42176. $as_echo "no" >&6; }
  42177. unset HAS_PWLIB
  42178. else
  42179. { $as_echo "$as_me:$LINENO: result: yes" >&5
  42180. $as_echo "yes" >&6; }
  42181. fi
  42182. fi
  42183. fi
  42184. if test "${HAS_PWLIB:-unset}" != "unset"; then
  42185. PWLIB_OSTYPE=
  42186. case "$host_os" in
  42187. linux*) PWLIB_OSTYPE=linux ;
  42188. ;;
  42189. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  42190. ;;
  42191. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  42192. ENDLDLIBS="-lossaudio" ;
  42193. ;;
  42194. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  42195. ENDLDLIBS="-lossaudio" ;
  42196. ;;
  42197. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  42198. ;;
  42199. darwin* ) PWLIB_OSTYPE=Darwin ;
  42200. ;;
  42201. beos*) PWLIB_OSTYPE=beos ;
  42202. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  42203. ;;
  42204. cygwin*) PWLIB_OSTYPE=cygwin ;
  42205. ;;
  42206. mingw*) PWLIB_OSTYPE=mingw ;
  42207. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  42208. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  42209. ;;
  42210. * ) PWLIB_OSTYPE="$host_os" ;
  42211. { $as_echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  42212. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  42213. ;;
  42214. esac
  42215. PWLIB_MACHTYPE=
  42216. case "$host_cpu" in
  42217. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  42218. ;;
  42219. x86_64) PWLIB_MACHTYPE=x86_64 ;
  42220. P_64BIT=1 ;
  42221. LIB64=1 ;
  42222. ;;
  42223. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  42224. P_64BIT=1 ;
  42225. ;;
  42226. sparc ) PWLIB_MACHTYPE=sparc ;
  42227. ;;
  42228. powerpc ) PWLIB_MACHTYPE=ppc ;
  42229. ;;
  42230. ppc ) PWLIB_MACHTYPE=ppc ;
  42231. ;;
  42232. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  42233. P_64BIT=1 ;
  42234. LIB64=1 ;
  42235. ;;
  42236. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  42237. P_64BIT=1 ;
  42238. LIB64=1 ;
  42239. ;;
  42240. ia64) PWLIB_MACHTYPE=ia64 ;
  42241. P_64BIT=1 ;
  42242. ;;
  42243. s390x) PWLIB_MACHTYPE=s390x ;
  42244. P_64BIT=1 ;
  42245. LIB64=1 ;
  42246. ;;
  42247. s390) PWLIB_MACHTYPE=s390 ;
  42248. ;;
  42249. * ) PWLIB_MACHTYPE="$host_cpu";
  42250. { $as_echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  42251. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  42252. esac
  42253. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  42254. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  42255. if test "${HAS_PWLIB:-unset}" != "unset"; then
  42256. { $as_echo "$as_me:$LINENO: checking PWLib installation validity" >&5
  42257. $as_echo_n "checking PWLib installation validity... " >&6; }
  42258. saved_cppflags="${CPPFLAGS}"
  42259. saved_libs="${LIBS}"
  42260. if test "${PWLIB_LIB:-unset}" != "unset"; then
  42261. LIBS="${LIBS} ${PWLIB_LIB} "
  42262. else
  42263. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  42264. fi
  42265. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  42266. ac_ext=cpp
  42267. ac_cpp='$CXXCPP $CPPFLAGS'
  42268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42271. cat >conftest.$ac_ext <<_ACEOF
  42272. /* confdefs.h. */
  42273. _ACEOF
  42274. cat confdefs.h >>conftest.$ac_ext
  42275. cat >>conftest.$ac_ext <<_ACEOF
  42276. /* end confdefs.h. */
  42277. #include "ptlib.h"
  42278. int
  42279. main ()
  42280. {
  42281. int q = (int) PTime::IsDaylightSavings();
  42282. ;
  42283. return 0;
  42284. }
  42285. _ACEOF
  42286. rm -f conftest.$ac_objext conftest$ac_exeext
  42287. if { (ac_try="$ac_link"
  42288. case "(($ac_try" in
  42289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42290. *) ac_try_echo=$ac_try;;
  42291. esac
  42292. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42293. $as_echo "$ac_try_echo") >&5
  42294. (eval "$ac_link") 2>conftest.er1
  42295. ac_status=$?
  42296. grep -v '^ *+' conftest.er1 >conftest.err
  42297. rm -f conftest.er1
  42298. cat conftest.err >&5
  42299. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42300. (exit $ac_status); } && {
  42301. test -z "$ac_cxx_werror_flag" ||
  42302. test ! -s conftest.err
  42303. } && test -s conftest$ac_exeext && {
  42304. test "$cross_compiling" = yes ||
  42305. $as_test_x conftest$ac_exeext
  42306. }; then
  42307. { $as_echo "$as_me:$LINENO: result: yes" >&5
  42308. $as_echo "yes" >&6; }
  42309. ac_cv_lib_PWLIB="yes"
  42310. else
  42311. $as_echo "$as_me: failed program was:" >&5
  42312. sed 's/^/| /' conftest.$ac_ext >&5
  42313. { $as_echo "$as_me:$LINENO: result: no" >&5
  42314. $as_echo "no" >&6; }
  42315. ac_cv_lib_PWLIB="no"
  42316. fi
  42317. rm -rf conftest.dSYM
  42318. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42319. conftest$ac_exeext conftest.$ac_ext
  42320. ac_ext=c
  42321. ac_cpp='$CPP $CPPFLAGS'
  42322. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42323. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42324. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42325. LIBS="${saved_libs}"
  42326. CPPFLAGS="${saved_cppflags}"
  42327. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  42328. if test "${PWLIB_LIB:-undef}" = "undef"; then
  42329. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  42330. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  42331. else
  42332. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  42333. fi
  42334. fi
  42335. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  42336. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  42337. fi
  42338. PBX_PWLIB=1
  42339. cat >>confdefs.h <<\_ACEOF
  42340. #define HAVE_PWLIB 1
  42341. _ACEOF
  42342. fi
  42343. fi
  42344. fi
  42345. fi
  42346. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  42347. if test -n "${OPENH323_DIR}"; then
  42348. OPENH323DIR="${OPENH323_DIR}"
  42349. fi
  42350. OPENH323_INCDIR=
  42351. OPENH323_LIBDIR=
  42352. ac_ext=cpp
  42353. ac_cpp='$CXXCPP $CPPFLAGS'
  42354. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42355. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42356. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42357. if test "${OPENH323DIR:-unset}" != "unset" ; then
  42358. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  42359. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42360. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
  42361. $as_echo_n "checking for ${OPENH323DIR}/version.h... " >&6; }
  42362. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42363. $as_echo_n "(cached) " >&6
  42364. fi
  42365. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42366. $as_echo "$as_val"'`
  42367. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42368. $as_echo "$ac_res" >&6; }
  42369. else
  42370. # Is the header compilable?
  42371. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
  42372. $as_echo_n "checking ${OPENH323DIR}/version.h usability... " >&6; }
  42373. cat >conftest.$ac_ext <<_ACEOF
  42374. /* confdefs.h. */
  42375. _ACEOF
  42376. cat confdefs.h >>conftest.$ac_ext
  42377. cat >>conftest.$ac_ext <<_ACEOF
  42378. /* end confdefs.h. */
  42379. $ac_includes_default
  42380. #include <${OPENH323DIR}/version.h>
  42381. _ACEOF
  42382. rm -f conftest.$ac_objext
  42383. if { (ac_try="$ac_compile"
  42384. case "(($ac_try" in
  42385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42386. *) ac_try_echo=$ac_try;;
  42387. esac
  42388. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42389. $as_echo "$ac_try_echo") >&5
  42390. (eval "$ac_compile") 2>conftest.er1
  42391. ac_status=$?
  42392. grep -v '^ *+' conftest.er1 >conftest.err
  42393. rm -f conftest.er1
  42394. cat conftest.err >&5
  42395. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42396. (exit $ac_status); } && {
  42397. test -z "$ac_cxx_werror_flag" ||
  42398. test ! -s conftest.err
  42399. } && test -s conftest.$ac_objext; then
  42400. ac_header_compiler=yes
  42401. else
  42402. $as_echo "$as_me: failed program was:" >&5
  42403. sed 's/^/| /' conftest.$ac_ext >&5
  42404. ac_header_compiler=no
  42405. fi
  42406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42407. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42408. $as_echo "$ac_header_compiler" >&6; }
  42409. # Is the header present?
  42410. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
  42411. $as_echo_n "checking ${OPENH323DIR}/version.h presence... " >&6; }
  42412. cat >conftest.$ac_ext <<_ACEOF
  42413. /* confdefs.h. */
  42414. _ACEOF
  42415. cat confdefs.h >>conftest.$ac_ext
  42416. cat >>conftest.$ac_ext <<_ACEOF
  42417. /* end confdefs.h. */
  42418. #include <${OPENH323DIR}/version.h>
  42419. _ACEOF
  42420. if { (ac_try="$ac_cpp conftest.$ac_ext"
  42421. case "(($ac_try" in
  42422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42423. *) ac_try_echo=$ac_try;;
  42424. esac
  42425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42426. $as_echo "$ac_try_echo") >&5
  42427. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  42428. ac_status=$?
  42429. grep -v '^ *+' conftest.er1 >conftest.err
  42430. rm -f conftest.er1
  42431. cat conftest.err >&5
  42432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42433. (exit $ac_status); } >/dev/null && {
  42434. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  42435. test ! -s conftest.err
  42436. }; then
  42437. ac_header_preproc=yes
  42438. else
  42439. $as_echo "$as_me: failed program was:" >&5
  42440. sed 's/^/| /' conftest.$ac_ext >&5
  42441. ac_header_preproc=no
  42442. fi
  42443. rm -f conftest.err conftest.$ac_ext
  42444. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42445. $as_echo "$ac_header_preproc" >&6; }
  42446. # So? What about this header?
  42447. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  42448. yes:no: )
  42449. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  42450. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42451. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
  42452. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
  42453. ac_header_preproc=yes
  42454. ;;
  42455. no:yes:* )
  42456. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
  42457. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
  42458. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
  42459. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
  42460. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
  42461. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
  42462. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
  42463. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  42464. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
  42465. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
  42466. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
  42467. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
  42468. ( cat <<\_ASBOX
  42469. ## ------------------------------------------ ##
  42470. ## Report this to https://issues.asterisk.org ##
  42471. ## ------------------------------------------ ##
  42472. _ASBOX
  42473. ) | sed "s/^/$as_me: WARNING: /" >&2
  42474. ;;
  42475. esac
  42476. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
  42477. $as_echo_n "checking for ${OPENH323DIR}/version.h... " >&6; }
  42478. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42479. $as_echo_n "(cached) " >&6
  42480. else
  42481. eval "$as_ac_Header=\$ac_header_preproc"
  42482. fi
  42483. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42484. $as_echo "$as_val"'`
  42485. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42486. $as_echo "$ac_res" >&6; }
  42487. fi
  42488. as_val=`eval 'as_val=${'$as_ac_Header'}
  42489. $as_echo "$as_val"'`
  42490. if test "x$as_val" = x""yes; then
  42491. HAS_OPENH323=1
  42492. fi
  42493. fi
  42494. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  42495. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  42496. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42497. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
  42498. $as_echo_n "checking for ${PWLIBDIR}/../openh323/version.h... " >&6; }
  42499. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42500. $as_echo_n "(cached) " >&6
  42501. fi
  42502. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42503. $as_echo "$as_val"'`
  42504. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42505. $as_echo "$ac_res" >&6; }
  42506. else
  42507. # Is the header compilable?
  42508. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
  42509. $as_echo_n "checking ${PWLIBDIR}/../openh323/version.h usability... " >&6; }
  42510. cat >conftest.$ac_ext <<_ACEOF
  42511. /* confdefs.h. */
  42512. _ACEOF
  42513. cat confdefs.h >>conftest.$ac_ext
  42514. cat >>conftest.$ac_ext <<_ACEOF
  42515. /* end confdefs.h. */
  42516. $ac_includes_default
  42517. #include <${PWLIBDIR}/../openh323/version.h>
  42518. _ACEOF
  42519. rm -f conftest.$ac_objext
  42520. if { (ac_try="$ac_compile"
  42521. case "(($ac_try" in
  42522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42523. *) ac_try_echo=$ac_try;;
  42524. esac
  42525. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42526. $as_echo "$ac_try_echo") >&5
  42527. (eval "$ac_compile") 2>conftest.er1
  42528. ac_status=$?
  42529. grep -v '^ *+' conftest.er1 >conftest.err
  42530. rm -f conftest.er1
  42531. cat conftest.err >&5
  42532. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42533. (exit $ac_status); } && {
  42534. test -z "$ac_cxx_werror_flag" ||
  42535. test ! -s conftest.err
  42536. } && test -s conftest.$ac_objext; then
  42537. ac_header_compiler=yes
  42538. else
  42539. $as_echo "$as_me: failed program was:" >&5
  42540. sed 's/^/| /' conftest.$ac_ext >&5
  42541. ac_header_compiler=no
  42542. fi
  42543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42544. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42545. $as_echo "$ac_header_compiler" >&6; }
  42546. # Is the header present?
  42547. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
  42548. $as_echo_n "checking ${PWLIBDIR}/../openh323/version.h presence... " >&6; }
  42549. cat >conftest.$ac_ext <<_ACEOF
  42550. /* confdefs.h. */
  42551. _ACEOF
  42552. cat confdefs.h >>conftest.$ac_ext
  42553. cat >>conftest.$ac_ext <<_ACEOF
  42554. /* end confdefs.h. */
  42555. #include <${PWLIBDIR}/../openh323/version.h>
  42556. _ACEOF
  42557. if { (ac_try="$ac_cpp conftest.$ac_ext"
  42558. case "(($ac_try" in
  42559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42560. *) ac_try_echo=$ac_try;;
  42561. esac
  42562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42563. $as_echo "$ac_try_echo") >&5
  42564. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  42565. ac_status=$?
  42566. grep -v '^ *+' conftest.er1 >conftest.err
  42567. rm -f conftest.er1
  42568. cat conftest.err >&5
  42569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42570. (exit $ac_status); } >/dev/null && {
  42571. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  42572. test ! -s conftest.err
  42573. }; then
  42574. ac_header_preproc=yes
  42575. else
  42576. $as_echo "$as_me: failed program was:" >&5
  42577. sed 's/^/| /' conftest.$ac_ext >&5
  42578. ac_header_preproc=no
  42579. fi
  42580. rm -f conftest.err conftest.$ac_ext
  42581. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42582. $as_echo "$ac_header_preproc" >&6; }
  42583. # So? What about this header?
  42584. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  42585. yes:no: )
  42586. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  42587. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42588. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
  42589. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
  42590. ac_header_preproc=yes
  42591. ;;
  42592. no:yes:* )
  42593. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
  42594. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
  42595. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
  42596. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
  42597. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
  42598. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
  42599. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
  42600. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  42601. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
  42602. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
  42603. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
  42604. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
  42605. ( cat <<\_ASBOX
  42606. ## ------------------------------------------ ##
  42607. ## Report this to https://issues.asterisk.org ##
  42608. ## ------------------------------------------ ##
  42609. _ASBOX
  42610. ) | sed "s/^/$as_me: WARNING: /" >&2
  42611. ;;
  42612. esac
  42613. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
  42614. $as_echo_n "checking for ${PWLIBDIR}/../openh323/version.h... " >&6; }
  42615. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42616. $as_echo_n "(cached) " >&6
  42617. else
  42618. eval "$as_ac_Header=\$ac_header_preproc"
  42619. fi
  42620. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42621. $as_echo "$as_val"'`
  42622. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42623. $as_echo "$ac_res" >&6; }
  42624. fi
  42625. as_val=`eval 'as_val=${'$as_ac_Header'}
  42626. $as_echo "$as_val"'`
  42627. if test "x$as_val" = x""yes; then
  42628. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  42629. fi
  42630. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42631. OPENH323DIR="${PWLIBDIR}/../openh323"
  42632. saved_cppflags="${CPPFLAGS}"
  42633. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  42634. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  42635. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
  42636. $as_echo_n "checking for ${OPENH323DIR}/include/h323.h... " >&6; }
  42637. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42638. $as_echo_n "(cached) " >&6
  42639. else
  42640. cat >conftest.$ac_ext <<_ACEOF
  42641. /* confdefs.h. */
  42642. _ACEOF
  42643. cat confdefs.h >>conftest.$ac_ext
  42644. cat >>conftest.$ac_ext <<_ACEOF
  42645. /* end confdefs.h. */
  42646. #include <ptlib.h>
  42647. #include <${OPENH323DIR}/include/h323.h>
  42648. _ACEOF
  42649. rm -f conftest.$ac_objext
  42650. if { (ac_try="$ac_compile"
  42651. case "(($ac_try" in
  42652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42653. *) ac_try_echo=$ac_try;;
  42654. esac
  42655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42656. $as_echo "$ac_try_echo") >&5
  42657. (eval "$ac_compile") 2>conftest.er1
  42658. ac_status=$?
  42659. grep -v '^ *+' conftest.er1 >conftest.err
  42660. rm -f conftest.er1
  42661. cat conftest.err >&5
  42662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42663. (exit $ac_status); } && {
  42664. test -z "$ac_cxx_werror_flag" ||
  42665. test ! -s conftest.err
  42666. } && test -s conftest.$ac_objext; then
  42667. eval "$as_ac_Header=yes"
  42668. else
  42669. $as_echo "$as_me: failed program was:" >&5
  42670. sed 's/^/| /' conftest.$ac_ext >&5
  42671. eval "$as_ac_Header=no"
  42672. fi
  42673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42674. fi
  42675. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42676. $as_echo "$as_val"'`
  42677. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42678. $as_echo "$ac_res" >&6; }
  42679. as_val=`eval 'as_val=${'$as_ac_Header'}
  42680. $as_echo "$as_val"'`
  42681. if test "x$as_val" = x""yes; then
  42682. :
  42683. else
  42684. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  42685. fi
  42686. CPPFLAGS="${saved_cppflags}"
  42687. else
  42688. saved_cppflags="${CPPFLAGS}"
  42689. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  42690. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  42691. { $as_echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
  42692. $as_echo_n "checking for ${HOME}/openh323/include/h323.h... " >&6; }
  42693. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42694. $as_echo_n "(cached) " >&6
  42695. else
  42696. cat >conftest.$ac_ext <<_ACEOF
  42697. /* confdefs.h. */
  42698. _ACEOF
  42699. cat confdefs.h >>conftest.$ac_ext
  42700. cat >>conftest.$ac_ext <<_ACEOF
  42701. /* end confdefs.h. */
  42702. #include <ptlib.h>
  42703. #include <${HOME}/openh323/include/h323.h>
  42704. _ACEOF
  42705. rm -f conftest.$ac_objext
  42706. if { (ac_try="$ac_compile"
  42707. case "(($ac_try" in
  42708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42709. *) ac_try_echo=$ac_try;;
  42710. esac
  42711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42712. $as_echo "$ac_try_echo") >&5
  42713. (eval "$ac_compile") 2>conftest.er1
  42714. ac_status=$?
  42715. grep -v '^ *+' conftest.er1 >conftest.err
  42716. rm -f conftest.er1
  42717. cat conftest.err >&5
  42718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42719. (exit $ac_status); } && {
  42720. test -z "$ac_cxx_werror_flag" ||
  42721. test ! -s conftest.err
  42722. } && test -s conftest.$ac_objext; then
  42723. eval "$as_ac_Header=yes"
  42724. else
  42725. $as_echo "$as_me: failed program was:" >&5
  42726. sed 's/^/| /' conftest.$ac_ext >&5
  42727. eval "$as_ac_Header=no"
  42728. fi
  42729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42730. fi
  42731. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42732. $as_echo "$as_val"'`
  42733. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42734. $as_echo "$ac_res" >&6; }
  42735. as_val=`eval 'as_val=${'$as_ac_Header'}
  42736. $as_echo "$as_val"'`
  42737. if test "x$as_val" = x""yes; then
  42738. HAS_OPENH323=1
  42739. fi
  42740. CPPFLAGS="${saved_cppflags}"
  42741. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42742. OPENH323DIR="${HOME}/openh323"
  42743. else
  42744. saved_cppflags="${CPPFLAGS}"
  42745. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  42746. { $as_echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
  42747. $as_echo_n "checking for /usr/local/include/openh323/h323.h... " >&6; }
  42748. if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
  42749. $as_echo_n "(cached) " >&6
  42750. else
  42751. cat >conftest.$ac_ext <<_ACEOF
  42752. /* confdefs.h. */
  42753. _ACEOF
  42754. cat confdefs.h >>conftest.$ac_ext
  42755. cat >>conftest.$ac_ext <<_ACEOF
  42756. /* end confdefs.h. */
  42757. #include <ptlib.h>
  42758. #include </usr/local/include/openh323/h323.h>
  42759. _ACEOF
  42760. rm -f conftest.$ac_objext
  42761. if { (ac_try="$ac_compile"
  42762. case "(($ac_try" in
  42763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42764. *) ac_try_echo=$ac_try;;
  42765. esac
  42766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42767. $as_echo "$ac_try_echo") >&5
  42768. (eval "$ac_compile") 2>conftest.er1
  42769. ac_status=$?
  42770. grep -v '^ *+' conftest.er1 >conftest.err
  42771. rm -f conftest.er1
  42772. cat conftest.err >&5
  42773. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42774. (exit $ac_status); } && {
  42775. test -z "$ac_cxx_werror_flag" ||
  42776. test ! -s conftest.err
  42777. } && test -s conftest.$ac_objext; then
  42778. ac_cv_header__usr_local_include_openh323_h323_h=yes
  42779. else
  42780. $as_echo "$as_me: failed program was:" >&5
  42781. sed 's/^/| /' conftest.$ac_ext >&5
  42782. ac_cv_header__usr_local_include_openh323_h323_h=no
  42783. fi
  42784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42785. fi
  42786. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
  42787. $as_echo "$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
  42788. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = x""yes; then
  42789. HAS_OPENH323=1
  42790. fi
  42791. CPPFLAGS="${saved_cppflags}"
  42792. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42793. OPENH323DIR="/usr/local/share/openh323"
  42794. OPENH323_INCDIR="/usr/local/include/openh323"
  42795. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  42796. OPENH323_LIBDIR="/usr/local/lib64"
  42797. else
  42798. OPENH323_LIBDIR="/usr/local/lib"
  42799. fi
  42800. else
  42801. saved_cppflags="${CPPFLAGS}"
  42802. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  42803. { $as_echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
  42804. $as_echo_n "checking for /usr/include/openh323/h323.h... " >&6; }
  42805. if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
  42806. $as_echo_n "(cached) " >&6
  42807. else
  42808. cat >conftest.$ac_ext <<_ACEOF
  42809. /* confdefs.h. */
  42810. _ACEOF
  42811. cat confdefs.h >>conftest.$ac_ext
  42812. cat >>conftest.$ac_ext <<_ACEOF
  42813. /* end confdefs.h. */
  42814. #include <ptlib.h>
  42815. #include </usr/include/openh323/h323.h>
  42816. _ACEOF
  42817. rm -f conftest.$ac_objext
  42818. if { (ac_try="$ac_compile"
  42819. case "(($ac_try" in
  42820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42821. *) ac_try_echo=$ac_try;;
  42822. esac
  42823. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42824. $as_echo "$ac_try_echo") >&5
  42825. (eval "$ac_compile") 2>conftest.er1
  42826. ac_status=$?
  42827. grep -v '^ *+' conftest.er1 >conftest.err
  42828. rm -f conftest.er1
  42829. cat conftest.err >&5
  42830. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42831. (exit $ac_status); } && {
  42832. test -z "$ac_cxx_werror_flag" ||
  42833. test ! -s conftest.err
  42834. } && test -s conftest.$ac_objext; then
  42835. ac_cv_header__usr_include_openh323_h323_h=yes
  42836. else
  42837. $as_echo "$as_me: failed program was:" >&5
  42838. sed 's/^/| /' conftest.$ac_ext >&5
  42839. ac_cv_header__usr_include_openh323_h323_h=no
  42840. fi
  42841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42842. fi
  42843. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
  42844. $as_echo "$ac_cv_header__usr_include_openh323_h323_h" >&6; }
  42845. if test "x$ac_cv_header__usr_include_openh323_h323_h" = x""yes; then
  42846. HAS_OPENH323=1
  42847. fi
  42848. CPPFLAGS="${saved_cppflags}"
  42849. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42850. OPENH323DIR="/usr/share/openh323"
  42851. OPENH323_INCDIR="/usr/include/openh323"
  42852. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  42853. OPENH323_LIBDIR="/usr/lib64"
  42854. else
  42855. OPENH323_LIBDIR="/usr/lib"
  42856. fi
  42857. fi
  42858. fi
  42859. fi
  42860. fi
  42861. fi
  42862. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42863. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  42864. OPENH323_INCDIR="${OPENH323DIR}/include"
  42865. fi
  42866. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  42867. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  42868. fi
  42869. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  42870. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  42871. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  42872. fi
  42873. ac_ext=c
  42874. ac_cpp='$CPP $CPPFLAGS'
  42875. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42876. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42877. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42878. if test "x" != "x"; then
  42879. VNAME=""
  42880. else
  42881. VNAME="OPENH323_VERSION"
  42882. fi
  42883. if test "${HAS_OPENH323:-unset}" != "unset"; then
  42884. OPENH323_VERSION=`grep "$VNAME" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  42885. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  42886. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  42887. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  42888. OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
  42889. OPENH323_REQ=$((1*10000+17*100+3))
  42890. if test "x0" = "x"; then
  42891. OPENH323_MAX=9999999
  42892. else
  42893. OPENH323_MAX=$((1*10000+19*100+0))
  42894. fi
  42895. { $as_echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  42896. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  42897. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  42898. { $as_echo "$as_me:$LINENO: result: no" >&5
  42899. $as_echo "no" >&6; }
  42900. unset HAS_OPENH323
  42901. else
  42902. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  42903. { $as_echo "$as_me:$LINENO: result: no" >&5
  42904. $as_echo "no" >&6; }
  42905. unset HAS_OPENH323
  42906. else
  42907. { $as_echo "$as_me:$LINENO: result: yes" >&5
  42908. $as_echo "yes" >&6; }
  42909. fi
  42910. fi
  42911. fi
  42912. if test "${HAS_OPENH323:-unset}" != "unset"; then
  42913. { $as_echo "$as_me:$LINENO: checking OpenH323 build option" >&5
  42914. $as_echo_n "checking OpenH323 build option... " >&6; }
  42915. OPENH323_SUFFIX=
  42916. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  42917. for pfx in $prefixes; do
  42918. #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  42919. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  42920. if test -z "$files"; then
  42921. # check the default location
  42922. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  42923. fi
  42924. libfile=
  42925. if test -n "$files"; then
  42926. for f in $files; do
  42927. if test -f $f -a ! -L $f; then
  42928. libfile=`basename $f`
  42929. break;
  42930. fi
  42931. done
  42932. fi
  42933. if test -n "$libfile"; then
  42934. OPENH323_PREFIX=$pfx
  42935. break;
  42936. fi
  42937. done
  42938. if test "${libfile:-unset}" != "unset"; then
  42939. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  42940. fi
  42941. case "${OPENH323_SUFFIX}" in
  42942. n)
  42943. OPENH323_BUILD="notrace";;
  42944. r)
  42945. OPENH323_BUILD="opt";;
  42946. d)
  42947. OPENH323_BUILD="debug";;
  42948. *)
  42949. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  42950. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  42951. if test "x$notrace" = "x"; then
  42952. notrace="0"
  42953. fi
  42954. if test "$notrace" -ne 0; then
  42955. OPENH323_BUILD="notrace"
  42956. else
  42957. OPENH323_BUILD="opt"
  42958. fi
  42959. OPENH323_LIB="-l${OPENH323_PREFIX}"
  42960. else
  42961. OPENH323_BUILD="notrace"
  42962. fi
  42963. ;;
  42964. esac
  42965. { $as_echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
  42966. $as_echo "${OPENH323_BUILD}" >&6; }
  42967. fi
  42968. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  42969. if test "${HAS_OPENH323:-unset}" != "unset"; then
  42970. { $as_echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
  42971. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  42972. saved_cppflags="${CPPFLAGS}"
  42973. saved_libs="${LIBS}"
  42974. if test "${OPENH323_LIB:-unset}" != "unset"; then
  42975. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  42976. else
  42977. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  42978. fi
  42979. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  42980. ac_ext=cpp
  42981. ac_cpp='$CXXCPP $CPPFLAGS'
  42982. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42983. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42984. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42985. cat >conftest.$ac_ext <<_ACEOF
  42986. /* confdefs.h. */
  42987. _ACEOF
  42988. cat confdefs.h >>conftest.$ac_ext
  42989. cat >>conftest.$ac_ext <<_ACEOF
  42990. /* end confdefs.h. */
  42991. #include "ptlib.h"
  42992. #include "h323.h"
  42993. #include "h323ep.h"
  42994. int
  42995. main ()
  42996. {
  42997. H323EndPoint ep = H323EndPoint();
  42998. ;
  42999. return 0;
  43000. }
  43001. _ACEOF
  43002. rm -f conftest.$ac_objext conftest$ac_exeext
  43003. if { (ac_try="$ac_link"
  43004. case "(($ac_try" in
  43005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43006. *) ac_try_echo=$ac_try;;
  43007. esac
  43008. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43009. $as_echo "$ac_try_echo") >&5
  43010. (eval "$ac_link") 2>conftest.er1
  43011. ac_status=$?
  43012. grep -v '^ *+' conftest.er1 >conftest.err
  43013. rm -f conftest.er1
  43014. cat conftest.err >&5
  43015. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43016. (exit $ac_status); } && {
  43017. test -z "$ac_cxx_werror_flag" ||
  43018. test ! -s conftest.err
  43019. } && test -s conftest$ac_exeext && {
  43020. test "$cross_compiling" = yes ||
  43021. $as_test_x conftest$ac_exeext
  43022. }; then
  43023. { $as_echo "$as_me:$LINENO: result: yes" >&5
  43024. $as_echo "yes" >&6; }
  43025. ac_cv_lib_OPENH323="yes"
  43026. else
  43027. $as_echo "$as_me: failed program was:" >&5
  43028. sed 's/^/| /' conftest.$ac_ext >&5
  43029. { $as_echo "$as_me:$LINENO: result: no" >&5
  43030. $as_echo "no" >&6; }
  43031. ac_cv_lib_OPENH323="no"
  43032. fi
  43033. rm -rf conftest.dSYM
  43034. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43035. conftest$ac_exeext conftest.$ac_ext
  43036. ac_ext=c
  43037. ac_cpp='$CPP $CPPFLAGS'
  43038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43041. LIBS="${saved_libs}"
  43042. CPPFLAGS="${saved_cppflags}"
  43043. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  43044. if test "${OPENH323_LIB:-undef}" = "undef"; then
  43045. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  43046. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  43047. else
  43048. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  43049. fi
  43050. fi
  43051. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  43052. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  43053. fi
  43054. PBX_OPENH323=1
  43055. cat >>confdefs.h <<\_ACEOF
  43056. #define HAVE_OPENH323 1
  43057. _ACEOF
  43058. fi
  43059. fi
  43060. fi
  43061. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  43062. pbxlibdir=""
  43063. # if --with-LUA=DIR has been specified, use it.
  43064. if test "x${LUA_DIR}" != "x"; then
  43065. if test -d ${LUA_DIR}/lib; then
  43066. pbxlibdir="-L${LUA_DIR}/lib"
  43067. else
  43068. pbxlibdir="-L${LUA_DIR}"
  43069. fi
  43070. fi
  43071. pbxfuncname="luaL_newstate"
  43072. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43073. AST_LUA_FOUND=yes
  43074. else
  43075. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43076. CFLAGS="${CFLAGS} "
  43077. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
  43078. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
  43079. $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
  43080. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43081. $as_echo_n "(cached) " >&6
  43082. else
  43083. ac_check_lib_save_LIBS=$LIBS
  43084. LIBS="-llua5.1 ${pbxlibdir} -lm $LIBS"
  43085. cat >conftest.$ac_ext <<_ACEOF
  43086. /* confdefs.h. */
  43087. _ACEOF
  43088. cat confdefs.h >>conftest.$ac_ext
  43089. cat >>conftest.$ac_ext <<_ACEOF
  43090. /* end confdefs.h. */
  43091. /* Override any GCC internal prototype to avoid an error.
  43092. Use char because int might match the return type of a GCC
  43093. builtin and then its argument prototype would still apply. */
  43094. #ifdef __cplusplus
  43095. extern "C"
  43096. #endif
  43097. char ${pbxfuncname} ();
  43098. int
  43099. main ()
  43100. {
  43101. return ${pbxfuncname} ();
  43102. ;
  43103. return 0;
  43104. }
  43105. _ACEOF
  43106. rm -f conftest.$ac_objext conftest$ac_exeext
  43107. if { (ac_try="$ac_link"
  43108. case "(($ac_try" in
  43109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43110. *) ac_try_echo=$ac_try;;
  43111. esac
  43112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43113. $as_echo "$ac_try_echo") >&5
  43114. (eval "$ac_link") 2>conftest.er1
  43115. ac_status=$?
  43116. grep -v '^ *+' conftest.er1 >conftest.err
  43117. rm -f conftest.er1
  43118. cat conftest.err >&5
  43119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43120. (exit $ac_status); } && {
  43121. test -z "$ac_c_werror_flag" ||
  43122. test ! -s conftest.err
  43123. } && test -s conftest$ac_exeext && {
  43124. test "$cross_compiling" = yes ||
  43125. $as_test_x conftest$ac_exeext
  43126. }; then
  43127. eval "$as_ac_Lib=yes"
  43128. else
  43129. $as_echo "$as_me: failed program was:" >&5
  43130. sed 's/^/| /' conftest.$ac_ext >&5
  43131. eval "$as_ac_Lib=no"
  43132. fi
  43133. rm -rf conftest.dSYM
  43134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43135. conftest$ac_exeext conftest.$ac_ext
  43136. LIBS=$ac_check_lib_save_LIBS
  43137. fi
  43138. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43139. $as_echo "$as_val"'`
  43140. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43141. $as_echo "$ac_res" >&6; }
  43142. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43143. $as_echo "$as_val"'`
  43144. if test "x$as_val" = x""yes; then
  43145. AST_LUA_FOUND=yes
  43146. else
  43147. AST_LUA_FOUND=no
  43148. fi
  43149. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43150. fi
  43151. # now check for the header.
  43152. if test "${AST_LUA_FOUND}" = "yes"; then
  43153. LUA_LIB="${pbxlibdir} -llua5.1 -lm"
  43154. # if --with-LUA=DIR has been specified, use it.
  43155. if test "x${LUA_DIR}" != "x"; then
  43156. LUA_INCLUDE="-I${LUA_DIR}/include"
  43157. fi
  43158. LUA_INCLUDE="${LUA_INCLUDE} "
  43159. if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
  43160. LUA_HEADER_FOUND="1"
  43161. else # check for the header
  43162. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43163. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  43164. if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
  43165. { $as_echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
  43166. $as_echo_n "checking for lua5.1/lua.h... " >&6; }
  43167. if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
  43168. $as_echo_n "(cached) " >&6
  43169. fi
  43170. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
  43171. $as_echo "$ac_cv_header_lua5_1_lua_h" >&6; }
  43172. else
  43173. # Is the header compilable?
  43174. { $as_echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
  43175. $as_echo_n "checking lua5.1/lua.h usability... " >&6; }
  43176. cat >conftest.$ac_ext <<_ACEOF
  43177. /* confdefs.h. */
  43178. _ACEOF
  43179. cat confdefs.h >>conftest.$ac_ext
  43180. cat >>conftest.$ac_ext <<_ACEOF
  43181. /* end confdefs.h. */
  43182. $ac_includes_default
  43183. #include <lua5.1/lua.h>
  43184. _ACEOF
  43185. rm -f conftest.$ac_objext
  43186. if { (ac_try="$ac_compile"
  43187. case "(($ac_try" in
  43188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43189. *) ac_try_echo=$ac_try;;
  43190. esac
  43191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43192. $as_echo "$ac_try_echo") >&5
  43193. (eval "$ac_compile") 2>conftest.er1
  43194. ac_status=$?
  43195. grep -v '^ *+' conftest.er1 >conftest.err
  43196. rm -f conftest.er1
  43197. cat conftest.err >&5
  43198. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43199. (exit $ac_status); } && {
  43200. test -z "$ac_c_werror_flag" ||
  43201. test ! -s conftest.err
  43202. } && test -s conftest.$ac_objext; then
  43203. ac_header_compiler=yes
  43204. else
  43205. $as_echo "$as_me: failed program was:" >&5
  43206. sed 's/^/| /' conftest.$ac_ext >&5
  43207. ac_header_compiler=no
  43208. fi
  43209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43210. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43211. $as_echo "$ac_header_compiler" >&6; }
  43212. # Is the header present?
  43213. { $as_echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
  43214. $as_echo_n "checking lua5.1/lua.h presence... " >&6; }
  43215. cat >conftest.$ac_ext <<_ACEOF
  43216. /* confdefs.h. */
  43217. _ACEOF
  43218. cat confdefs.h >>conftest.$ac_ext
  43219. cat >>conftest.$ac_ext <<_ACEOF
  43220. /* end confdefs.h. */
  43221. #include <lua5.1/lua.h>
  43222. _ACEOF
  43223. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43224. case "(($ac_try" in
  43225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43226. *) ac_try_echo=$ac_try;;
  43227. esac
  43228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43229. $as_echo "$ac_try_echo") >&5
  43230. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43231. ac_status=$?
  43232. grep -v '^ *+' conftest.er1 >conftest.err
  43233. rm -f conftest.er1
  43234. cat conftest.err >&5
  43235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43236. (exit $ac_status); } >/dev/null && {
  43237. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43238. test ! -s conftest.err
  43239. }; then
  43240. ac_header_preproc=yes
  43241. else
  43242. $as_echo "$as_me: failed program was:" >&5
  43243. sed 's/^/| /' conftest.$ac_ext >&5
  43244. ac_header_preproc=no
  43245. fi
  43246. rm -f conftest.err conftest.$ac_ext
  43247. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43248. $as_echo "$ac_header_preproc" >&6; }
  43249. # So? What about this header?
  43250. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43251. yes:no: )
  43252. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
  43253. $as_echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43254. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
  43255. $as_echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
  43256. ac_header_preproc=yes
  43257. ;;
  43258. no:yes:* )
  43259. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
  43260. $as_echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
  43261. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
  43262. $as_echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
  43263. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
  43264. $as_echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
  43265. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
  43266. $as_echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
  43267. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
  43268. $as_echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
  43269. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
  43270. $as_echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
  43271. ( cat <<\_ASBOX
  43272. ## ------------------------------------------ ##
  43273. ## Report this to https://issues.asterisk.org ##
  43274. ## ------------------------------------------ ##
  43275. _ASBOX
  43276. ) | sed "s/^/$as_me: WARNING: /" >&2
  43277. ;;
  43278. esac
  43279. { $as_echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
  43280. $as_echo_n "checking for lua5.1/lua.h... " >&6; }
  43281. if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
  43282. $as_echo_n "(cached) " >&6
  43283. else
  43284. ac_cv_header_lua5_1_lua_h=$ac_header_preproc
  43285. fi
  43286. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
  43287. $as_echo "$ac_cv_header_lua5_1_lua_h" >&6; }
  43288. fi
  43289. if test "x$ac_cv_header_lua5_1_lua_h" = x""yes; then
  43290. LUA_HEADER_FOUND=1
  43291. else
  43292. LUA_HEADER_FOUND=0
  43293. fi
  43294. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  43295. fi
  43296. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  43297. LUA_LIB=""
  43298. LUA_INCLUDE=""
  43299. else
  43300. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  43301. LUA_LIB=""
  43302. fi
  43303. PBX_LUA=1
  43304. cat >>confdefs.h <<_ACEOF
  43305. #define HAVE_LUA 1
  43306. _ACEOF
  43307. fi
  43308. fi
  43309. fi
  43310. if test "x${PBX_LUA}" = "x1" ; then
  43311. if test x"${LUA_DIR}" = x; then
  43312. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
  43313. else
  43314. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
  43315. fi
  43316. fi
  43317. # Some distributions (like SuSE) remove the 5.1 suffix.
  43318. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  43319. pbxlibdir=""
  43320. # if --with-LUA=DIR has been specified, use it.
  43321. if test "x${LUA_DIR}" != "x"; then
  43322. if test -d ${LUA_DIR}/lib; then
  43323. pbxlibdir="-L${LUA_DIR}/lib"
  43324. else
  43325. pbxlibdir="-L${LUA_DIR}"
  43326. fi
  43327. fi
  43328. pbxfuncname="luaL_register"
  43329. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43330. AST_LUA_FOUND=yes
  43331. else
  43332. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43333. CFLAGS="${CFLAGS} "
  43334. as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
  43335. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua" >&5
  43336. $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
  43337. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43338. $as_echo_n "(cached) " >&6
  43339. else
  43340. ac_check_lib_save_LIBS=$LIBS
  43341. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  43342. cat >conftest.$ac_ext <<_ACEOF
  43343. /* confdefs.h. */
  43344. _ACEOF
  43345. cat confdefs.h >>conftest.$ac_ext
  43346. cat >>conftest.$ac_ext <<_ACEOF
  43347. /* end confdefs.h. */
  43348. /* Override any GCC internal prototype to avoid an error.
  43349. Use char because int might match the return type of a GCC
  43350. builtin and then its argument prototype would still apply. */
  43351. #ifdef __cplusplus
  43352. extern "C"
  43353. #endif
  43354. char ${pbxfuncname} ();
  43355. int
  43356. main ()
  43357. {
  43358. return ${pbxfuncname} ();
  43359. ;
  43360. return 0;
  43361. }
  43362. _ACEOF
  43363. rm -f conftest.$ac_objext conftest$ac_exeext
  43364. if { (ac_try="$ac_link"
  43365. case "(($ac_try" in
  43366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43367. *) ac_try_echo=$ac_try;;
  43368. esac
  43369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43370. $as_echo "$ac_try_echo") >&5
  43371. (eval "$ac_link") 2>conftest.er1
  43372. ac_status=$?
  43373. grep -v '^ *+' conftest.er1 >conftest.err
  43374. rm -f conftest.er1
  43375. cat conftest.err >&5
  43376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43377. (exit $ac_status); } && {
  43378. test -z "$ac_c_werror_flag" ||
  43379. test ! -s conftest.err
  43380. } && test -s conftest$ac_exeext && {
  43381. test "$cross_compiling" = yes ||
  43382. $as_test_x conftest$ac_exeext
  43383. }; then
  43384. eval "$as_ac_Lib=yes"
  43385. else
  43386. $as_echo "$as_me: failed program was:" >&5
  43387. sed 's/^/| /' conftest.$ac_ext >&5
  43388. eval "$as_ac_Lib=no"
  43389. fi
  43390. rm -rf conftest.dSYM
  43391. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43392. conftest$ac_exeext conftest.$ac_ext
  43393. LIBS=$ac_check_lib_save_LIBS
  43394. fi
  43395. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43396. $as_echo "$as_val"'`
  43397. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43398. $as_echo "$ac_res" >&6; }
  43399. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43400. $as_echo "$as_val"'`
  43401. if test "x$as_val" = x""yes; then
  43402. AST_LUA_FOUND=yes
  43403. else
  43404. AST_LUA_FOUND=no
  43405. fi
  43406. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43407. fi
  43408. # now check for the header.
  43409. if test "${AST_LUA_FOUND}" = "yes"; then
  43410. LUA_LIB="${pbxlibdir} -llua -lm"
  43411. # if --with-LUA=DIR has been specified, use it.
  43412. if test "x${LUA_DIR}" != "x"; then
  43413. LUA_INCLUDE="-I${LUA_DIR}/include"
  43414. fi
  43415. LUA_INCLUDE="${LUA_INCLUDE} "
  43416. if test "xlua.h" = "x" ; then # no header, assume found
  43417. LUA_HEADER_FOUND="1"
  43418. else # check for the header
  43419. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43420. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  43421. if test "${ac_cv_header_lua_h+set}" = set; then
  43422. { $as_echo "$as_me:$LINENO: checking for lua.h" >&5
  43423. $as_echo_n "checking for lua.h... " >&6; }
  43424. if test "${ac_cv_header_lua_h+set}" = set; then
  43425. $as_echo_n "(cached) " >&6
  43426. fi
  43427. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
  43428. $as_echo "$ac_cv_header_lua_h" >&6; }
  43429. else
  43430. # Is the header compilable?
  43431. { $as_echo "$as_me:$LINENO: checking lua.h usability" >&5
  43432. $as_echo_n "checking lua.h usability... " >&6; }
  43433. cat >conftest.$ac_ext <<_ACEOF
  43434. /* confdefs.h. */
  43435. _ACEOF
  43436. cat confdefs.h >>conftest.$ac_ext
  43437. cat >>conftest.$ac_ext <<_ACEOF
  43438. /* end confdefs.h. */
  43439. $ac_includes_default
  43440. #include <lua.h>
  43441. _ACEOF
  43442. rm -f conftest.$ac_objext
  43443. if { (ac_try="$ac_compile"
  43444. case "(($ac_try" in
  43445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43446. *) ac_try_echo=$ac_try;;
  43447. esac
  43448. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43449. $as_echo "$ac_try_echo") >&5
  43450. (eval "$ac_compile") 2>conftest.er1
  43451. ac_status=$?
  43452. grep -v '^ *+' conftest.er1 >conftest.err
  43453. rm -f conftest.er1
  43454. cat conftest.err >&5
  43455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43456. (exit $ac_status); } && {
  43457. test -z "$ac_c_werror_flag" ||
  43458. test ! -s conftest.err
  43459. } && test -s conftest.$ac_objext; then
  43460. ac_header_compiler=yes
  43461. else
  43462. $as_echo "$as_me: failed program was:" >&5
  43463. sed 's/^/| /' conftest.$ac_ext >&5
  43464. ac_header_compiler=no
  43465. fi
  43466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43467. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43468. $as_echo "$ac_header_compiler" >&6; }
  43469. # Is the header present?
  43470. { $as_echo "$as_me:$LINENO: checking lua.h presence" >&5
  43471. $as_echo_n "checking lua.h presence... " >&6; }
  43472. cat >conftest.$ac_ext <<_ACEOF
  43473. /* confdefs.h. */
  43474. _ACEOF
  43475. cat confdefs.h >>conftest.$ac_ext
  43476. cat >>conftest.$ac_ext <<_ACEOF
  43477. /* end confdefs.h. */
  43478. #include <lua.h>
  43479. _ACEOF
  43480. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43481. case "(($ac_try" in
  43482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43483. *) ac_try_echo=$ac_try;;
  43484. esac
  43485. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43486. $as_echo "$ac_try_echo") >&5
  43487. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43488. ac_status=$?
  43489. grep -v '^ *+' conftest.er1 >conftest.err
  43490. rm -f conftest.er1
  43491. cat conftest.err >&5
  43492. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43493. (exit $ac_status); } >/dev/null && {
  43494. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43495. test ! -s conftest.err
  43496. }; then
  43497. ac_header_preproc=yes
  43498. else
  43499. $as_echo "$as_me: failed program was:" >&5
  43500. sed 's/^/| /' conftest.$ac_ext >&5
  43501. ac_header_preproc=no
  43502. fi
  43503. rm -f conftest.err conftest.$ac_ext
  43504. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43505. $as_echo "$ac_header_preproc" >&6; }
  43506. # So? What about this header?
  43507. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43508. yes:no: )
  43509. { $as_echo "$as_me:$LINENO: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
  43510. $as_echo "$as_me: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43511. { $as_echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the compiler's result" >&5
  43512. $as_echo "$as_me: WARNING: lua.h: proceeding with the compiler's result" >&2;}
  43513. ac_header_preproc=yes
  43514. ;;
  43515. no:yes:* )
  43516. { $as_echo "$as_me:$LINENO: WARNING: lua.h: present but cannot be compiled" >&5
  43517. $as_echo "$as_me: WARNING: lua.h: present but cannot be compiled" >&2;}
  43518. { $as_echo "$as_me:$LINENO: WARNING: lua.h: check for missing prerequisite headers?" >&5
  43519. $as_echo "$as_me: WARNING: lua.h: check for missing prerequisite headers?" >&2;}
  43520. { $as_echo "$as_me:$LINENO: WARNING: lua.h: see the Autoconf documentation" >&5
  43521. $as_echo "$as_me: WARNING: lua.h: see the Autoconf documentation" >&2;}
  43522. { $as_echo "$as_me:$LINENO: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&5
  43523. $as_echo "$as_me: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
  43524. { $as_echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the preprocessor's result" >&5
  43525. $as_echo "$as_me: WARNING: lua.h: proceeding with the preprocessor's result" >&2;}
  43526. { $as_echo "$as_me:$LINENO: WARNING: lua.h: in the future, the compiler will take precedence" >&5
  43527. $as_echo "$as_me: WARNING: lua.h: in the future, the compiler will take precedence" >&2;}
  43528. ( cat <<\_ASBOX
  43529. ## ------------------------------------------ ##
  43530. ## Report this to https://issues.asterisk.org ##
  43531. ## ------------------------------------------ ##
  43532. _ASBOX
  43533. ) | sed "s/^/$as_me: WARNING: /" >&2
  43534. ;;
  43535. esac
  43536. { $as_echo "$as_me:$LINENO: checking for lua.h" >&5
  43537. $as_echo_n "checking for lua.h... " >&6; }
  43538. if test "${ac_cv_header_lua_h+set}" = set; then
  43539. $as_echo_n "(cached) " >&6
  43540. else
  43541. ac_cv_header_lua_h=$ac_header_preproc
  43542. fi
  43543. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
  43544. $as_echo "$ac_cv_header_lua_h" >&6; }
  43545. fi
  43546. if test "x$ac_cv_header_lua_h" = x""yes; then
  43547. LUA_HEADER_FOUND=1
  43548. else
  43549. LUA_HEADER_FOUND=0
  43550. fi
  43551. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  43552. fi
  43553. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  43554. LUA_LIB=""
  43555. LUA_INCLUDE=""
  43556. else
  43557. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  43558. LUA_LIB=""
  43559. fi
  43560. PBX_LUA=1
  43561. cat >>confdefs.h <<_ACEOF
  43562. #define HAVE_LUA 1
  43563. _ACEOF
  43564. fi
  43565. fi
  43566. fi
  43567. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  43568. pbxlibdir=""
  43569. # if --with-RADIUS=DIR has been specified, use it.
  43570. if test "x${RADIUS_DIR}" != "x"; then
  43571. if test -d ${RADIUS_DIR}/lib; then
  43572. pbxlibdir="-L${RADIUS_DIR}/lib"
  43573. else
  43574. pbxlibdir="-L${RADIUS_DIR}"
  43575. fi
  43576. fi
  43577. pbxfuncname="rc_read_config"
  43578. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43579. AST_RADIUS_FOUND=yes
  43580. else
  43581. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43582. CFLAGS="${CFLAGS} "
  43583. as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
  43584. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
  43585. $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
  43586. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43587. $as_echo_n "(cached) " >&6
  43588. else
  43589. ac_check_lib_save_LIBS=$LIBS
  43590. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  43591. cat >conftest.$ac_ext <<_ACEOF
  43592. /* confdefs.h. */
  43593. _ACEOF
  43594. cat confdefs.h >>conftest.$ac_ext
  43595. cat >>conftest.$ac_ext <<_ACEOF
  43596. /* end confdefs.h. */
  43597. /* Override any GCC internal prototype to avoid an error.
  43598. Use char because int might match the return type of a GCC
  43599. builtin and then its argument prototype would still apply. */
  43600. #ifdef __cplusplus
  43601. extern "C"
  43602. #endif
  43603. char ${pbxfuncname} ();
  43604. int
  43605. main ()
  43606. {
  43607. return ${pbxfuncname} ();
  43608. ;
  43609. return 0;
  43610. }
  43611. _ACEOF
  43612. rm -f conftest.$ac_objext conftest$ac_exeext
  43613. if { (ac_try="$ac_link"
  43614. case "(($ac_try" in
  43615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43616. *) ac_try_echo=$ac_try;;
  43617. esac
  43618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43619. $as_echo "$ac_try_echo") >&5
  43620. (eval "$ac_link") 2>conftest.er1
  43621. ac_status=$?
  43622. grep -v '^ *+' conftest.er1 >conftest.err
  43623. rm -f conftest.er1
  43624. cat conftest.err >&5
  43625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43626. (exit $ac_status); } && {
  43627. test -z "$ac_c_werror_flag" ||
  43628. test ! -s conftest.err
  43629. } && test -s conftest$ac_exeext && {
  43630. test "$cross_compiling" = yes ||
  43631. $as_test_x conftest$ac_exeext
  43632. }; then
  43633. eval "$as_ac_Lib=yes"
  43634. else
  43635. $as_echo "$as_me: failed program was:" >&5
  43636. sed 's/^/| /' conftest.$ac_ext >&5
  43637. eval "$as_ac_Lib=no"
  43638. fi
  43639. rm -rf conftest.dSYM
  43640. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43641. conftest$ac_exeext conftest.$ac_ext
  43642. LIBS=$ac_check_lib_save_LIBS
  43643. fi
  43644. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43645. $as_echo "$as_val"'`
  43646. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43647. $as_echo "$ac_res" >&6; }
  43648. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43649. $as_echo "$as_val"'`
  43650. if test "x$as_val" = x""yes; then
  43651. AST_RADIUS_FOUND=yes
  43652. else
  43653. AST_RADIUS_FOUND=no
  43654. fi
  43655. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43656. fi
  43657. # now check for the header.
  43658. if test "${AST_RADIUS_FOUND}" = "yes"; then
  43659. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  43660. # if --with-RADIUS=DIR has been specified, use it.
  43661. if test "x${RADIUS_DIR}" != "x"; then
  43662. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  43663. fi
  43664. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  43665. if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
  43666. RADIUS_HEADER_FOUND="1"
  43667. else # check for the header
  43668. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43669. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  43670. if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
  43671. { $as_echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
  43672. $as_echo_n "checking for radiusclient-ng.h... " >&6; }
  43673. if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
  43674. $as_echo_n "(cached) " >&6
  43675. fi
  43676. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
  43677. $as_echo "$ac_cv_header_radiusclient_ng_h" >&6; }
  43678. else
  43679. # Is the header compilable?
  43680. { $as_echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
  43681. $as_echo_n "checking radiusclient-ng.h usability... " >&6; }
  43682. cat >conftest.$ac_ext <<_ACEOF
  43683. /* confdefs.h. */
  43684. _ACEOF
  43685. cat confdefs.h >>conftest.$ac_ext
  43686. cat >>conftest.$ac_ext <<_ACEOF
  43687. /* end confdefs.h. */
  43688. $ac_includes_default
  43689. #include <radiusclient-ng.h>
  43690. _ACEOF
  43691. rm -f conftest.$ac_objext
  43692. if { (ac_try="$ac_compile"
  43693. case "(($ac_try" in
  43694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43695. *) ac_try_echo=$ac_try;;
  43696. esac
  43697. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43698. $as_echo "$ac_try_echo") >&5
  43699. (eval "$ac_compile") 2>conftest.er1
  43700. ac_status=$?
  43701. grep -v '^ *+' conftest.er1 >conftest.err
  43702. rm -f conftest.er1
  43703. cat conftest.err >&5
  43704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43705. (exit $ac_status); } && {
  43706. test -z "$ac_c_werror_flag" ||
  43707. test ! -s conftest.err
  43708. } && test -s conftest.$ac_objext; then
  43709. ac_header_compiler=yes
  43710. else
  43711. $as_echo "$as_me: failed program was:" >&5
  43712. sed 's/^/| /' conftest.$ac_ext >&5
  43713. ac_header_compiler=no
  43714. fi
  43715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43716. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43717. $as_echo "$ac_header_compiler" >&6; }
  43718. # Is the header present?
  43719. { $as_echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
  43720. $as_echo_n "checking radiusclient-ng.h presence... " >&6; }
  43721. cat >conftest.$ac_ext <<_ACEOF
  43722. /* confdefs.h. */
  43723. _ACEOF
  43724. cat confdefs.h >>conftest.$ac_ext
  43725. cat >>conftest.$ac_ext <<_ACEOF
  43726. /* end confdefs.h. */
  43727. #include <radiusclient-ng.h>
  43728. _ACEOF
  43729. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43730. case "(($ac_try" in
  43731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43732. *) ac_try_echo=$ac_try;;
  43733. esac
  43734. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43735. $as_echo "$ac_try_echo") >&5
  43736. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43737. ac_status=$?
  43738. grep -v '^ *+' conftest.er1 >conftest.err
  43739. rm -f conftest.er1
  43740. cat conftest.err >&5
  43741. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43742. (exit $ac_status); } >/dev/null && {
  43743. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43744. test ! -s conftest.err
  43745. }; then
  43746. ac_header_preproc=yes
  43747. else
  43748. $as_echo "$as_me: failed program was:" >&5
  43749. sed 's/^/| /' conftest.$ac_ext >&5
  43750. ac_header_preproc=no
  43751. fi
  43752. rm -f conftest.err conftest.$ac_ext
  43753. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43754. $as_echo "$ac_header_preproc" >&6; }
  43755. # So? What about this header?
  43756. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43757. yes:no: )
  43758. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
  43759. $as_echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43760. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
  43761. $as_echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
  43762. ac_header_preproc=yes
  43763. ;;
  43764. no:yes:* )
  43765. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
  43766. $as_echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
  43767. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
  43768. $as_echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
  43769. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
  43770. $as_echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
  43771. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
  43772. $as_echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
  43773. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
  43774. $as_echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
  43775. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
  43776. $as_echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
  43777. ( cat <<\_ASBOX
  43778. ## ------------------------------------------ ##
  43779. ## Report this to https://issues.asterisk.org ##
  43780. ## ------------------------------------------ ##
  43781. _ASBOX
  43782. ) | sed "s/^/$as_me: WARNING: /" >&2
  43783. ;;
  43784. esac
  43785. { $as_echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
  43786. $as_echo_n "checking for radiusclient-ng.h... " >&6; }
  43787. if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
  43788. $as_echo_n "(cached) " >&6
  43789. else
  43790. ac_cv_header_radiusclient_ng_h=$ac_header_preproc
  43791. fi
  43792. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
  43793. $as_echo "$ac_cv_header_radiusclient_ng_h" >&6; }
  43794. fi
  43795. if test "x$ac_cv_header_radiusclient_ng_h" = x""yes; then
  43796. RADIUS_HEADER_FOUND=1
  43797. else
  43798. RADIUS_HEADER_FOUND=0
  43799. fi
  43800. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  43801. fi
  43802. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  43803. RADIUS_LIB=""
  43804. RADIUS_INCLUDE=""
  43805. else
  43806. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  43807. RADIUS_LIB=""
  43808. fi
  43809. PBX_RADIUS=1
  43810. cat >>confdefs.h <<_ACEOF
  43811. #define HAVE_RADIUS 1
  43812. _ACEOF
  43813. fi
  43814. fi
  43815. fi
  43816. # This is a bit complex... in reality, Asterisk's AIS support is dependent on finding
  43817. # *any* implementation of AIS, not just OpenAIS. However, the configure script needs
  43818. # to know the specifics of each possible implementation, and then represent the one
  43819. # that was found as 'AIS'.
  43820. PBX_AIS=0
  43821. # OpenAIS installs its libraries into /usr/lib/openais by default, so check there
  43822. if test "x${PBX_OPENAIS}" != "x1" -a "${USE_OPENAIS}" != "no"; then
  43823. pbxlibdir=""
  43824. # if --with-OPENAIS=DIR has been specified, use it.
  43825. if test "x${OPENAIS_DIR}" != "x"; then
  43826. if test -d ${OPENAIS_DIR}/lib; then
  43827. pbxlibdir="-L${OPENAIS_DIR}/lib"
  43828. else
  43829. pbxlibdir="-L${OPENAIS_DIR}"
  43830. fi
  43831. fi
  43832. pbxfuncname="saClmInitialize"
  43833. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43834. AST_OPENAIS_FOUND=yes
  43835. else
  43836. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43837. CFLAGS="${CFLAGS} "
  43838. as_ac_Lib=`$as_echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
  43839. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaClm" >&5
  43840. $as_echo_n "checking for ${pbxfuncname} in -lSaClm... " >&6; }
  43841. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43842. $as_echo_n "(cached) " >&6
  43843. else
  43844. ac_check_lib_save_LIBS=$LIBS
  43845. LIBS="-lSaClm ${pbxlibdir} -L/usr/lib/openais -L/usr/lib64/openais $LIBS"
  43846. cat >conftest.$ac_ext <<_ACEOF
  43847. /* confdefs.h. */
  43848. _ACEOF
  43849. cat confdefs.h >>conftest.$ac_ext
  43850. cat >>conftest.$ac_ext <<_ACEOF
  43851. /* end confdefs.h. */
  43852. /* Override any GCC internal prototype to avoid an error.
  43853. Use char because int might match the return type of a GCC
  43854. builtin and then its argument prototype would still apply. */
  43855. #ifdef __cplusplus
  43856. extern "C"
  43857. #endif
  43858. char ${pbxfuncname} ();
  43859. int
  43860. main ()
  43861. {
  43862. return ${pbxfuncname} ();
  43863. ;
  43864. return 0;
  43865. }
  43866. _ACEOF
  43867. rm -f conftest.$ac_objext conftest$ac_exeext
  43868. if { (ac_try="$ac_link"
  43869. case "(($ac_try" in
  43870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43871. *) ac_try_echo=$ac_try;;
  43872. esac
  43873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43874. $as_echo "$ac_try_echo") >&5
  43875. (eval "$ac_link") 2>conftest.er1
  43876. ac_status=$?
  43877. grep -v '^ *+' conftest.er1 >conftest.err
  43878. rm -f conftest.er1
  43879. cat conftest.err >&5
  43880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43881. (exit $ac_status); } && {
  43882. test -z "$ac_c_werror_flag" ||
  43883. test ! -s conftest.err
  43884. } && test -s conftest$ac_exeext && {
  43885. test "$cross_compiling" = yes ||
  43886. $as_test_x conftest$ac_exeext
  43887. }; then
  43888. eval "$as_ac_Lib=yes"
  43889. else
  43890. $as_echo "$as_me: failed program was:" >&5
  43891. sed 's/^/| /' conftest.$ac_ext >&5
  43892. eval "$as_ac_Lib=no"
  43893. fi
  43894. rm -rf conftest.dSYM
  43895. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43896. conftest$ac_exeext conftest.$ac_ext
  43897. LIBS=$ac_check_lib_save_LIBS
  43898. fi
  43899. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43900. $as_echo "$as_val"'`
  43901. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43902. $as_echo "$ac_res" >&6; }
  43903. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43904. $as_echo "$as_val"'`
  43905. if test "x$as_val" = x""yes; then
  43906. AST_OPENAIS_FOUND=yes
  43907. else
  43908. AST_OPENAIS_FOUND=no
  43909. fi
  43910. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43911. fi
  43912. # now check for the header.
  43913. if test "${AST_OPENAIS_FOUND}" = "yes"; then
  43914. OPENAIS_LIB="${pbxlibdir} -lSaClm -L/usr/lib/openais -L/usr/lib64/openais"
  43915. # if --with-OPENAIS=DIR has been specified, use it.
  43916. if test "x${OPENAIS_DIR}" != "x"; then
  43917. OPENAIS_INCLUDE="-I${OPENAIS_DIR}/include"
  43918. fi
  43919. OPENAIS_INCLUDE="${OPENAIS_INCLUDE} "
  43920. if test "xopenais/saClm.h" = "x" ; then # no header, assume found
  43921. OPENAIS_HEADER_FOUND="1"
  43922. else # check for the header
  43923. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43924. CPPFLAGS="${CPPFLAGS} ${OPENAIS_INCLUDE}"
  43925. if test "${ac_cv_header_openais_saClm_h+set}" = set; then
  43926. { $as_echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
  43927. $as_echo_n "checking for openais/saClm.h... " >&6; }
  43928. if test "${ac_cv_header_openais_saClm_h+set}" = set; then
  43929. $as_echo_n "(cached) " >&6
  43930. fi
  43931. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
  43932. $as_echo "$ac_cv_header_openais_saClm_h" >&6; }
  43933. else
  43934. # Is the header compilable?
  43935. { $as_echo "$as_me:$LINENO: checking openais/saClm.h usability" >&5
  43936. $as_echo_n "checking openais/saClm.h usability... " >&6; }
  43937. cat >conftest.$ac_ext <<_ACEOF
  43938. /* confdefs.h. */
  43939. _ACEOF
  43940. cat confdefs.h >>conftest.$ac_ext
  43941. cat >>conftest.$ac_ext <<_ACEOF
  43942. /* end confdefs.h. */
  43943. $ac_includes_default
  43944. #include <openais/saClm.h>
  43945. _ACEOF
  43946. rm -f conftest.$ac_objext
  43947. if { (ac_try="$ac_compile"
  43948. case "(($ac_try" in
  43949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43950. *) ac_try_echo=$ac_try;;
  43951. esac
  43952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43953. $as_echo "$ac_try_echo") >&5
  43954. (eval "$ac_compile") 2>conftest.er1
  43955. ac_status=$?
  43956. grep -v '^ *+' conftest.er1 >conftest.err
  43957. rm -f conftest.er1
  43958. cat conftest.err >&5
  43959. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43960. (exit $ac_status); } && {
  43961. test -z "$ac_c_werror_flag" ||
  43962. test ! -s conftest.err
  43963. } && test -s conftest.$ac_objext; then
  43964. ac_header_compiler=yes
  43965. else
  43966. $as_echo "$as_me: failed program was:" >&5
  43967. sed 's/^/| /' conftest.$ac_ext >&5
  43968. ac_header_compiler=no
  43969. fi
  43970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43971. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43972. $as_echo "$ac_header_compiler" >&6; }
  43973. # Is the header present?
  43974. { $as_echo "$as_me:$LINENO: checking openais/saClm.h presence" >&5
  43975. $as_echo_n "checking openais/saClm.h presence... " >&6; }
  43976. cat >conftest.$ac_ext <<_ACEOF
  43977. /* confdefs.h. */
  43978. _ACEOF
  43979. cat confdefs.h >>conftest.$ac_ext
  43980. cat >>conftest.$ac_ext <<_ACEOF
  43981. /* end confdefs.h. */
  43982. #include <openais/saClm.h>
  43983. _ACEOF
  43984. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43985. case "(($ac_try" in
  43986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43987. *) ac_try_echo=$ac_try;;
  43988. esac
  43989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43990. $as_echo "$ac_try_echo") >&5
  43991. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43992. ac_status=$?
  43993. grep -v '^ *+' conftest.er1 >conftest.err
  43994. rm -f conftest.er1
  43995. cat conftest.err >&5
  43996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43997. (exit $ac_status); } >/dev/null && {
  43998. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43999. test ! -s conftest.err
  44000. }; then
  44001. ac_header_preproc=yes
  44002. else
  44003. $as_echo "$as_me: failed program was:" >&5
  44004. sed 's/^/| /' conftest.$ac_ext >&5
  44005. ac_header_preproc=no
  44006. fi
  44007. rm -f conftest.err conftest.$ac_ext
  44008. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44009. $as_echo "$ac_header_preproc" >&6; }
  44010. # So? What about this header?
  44011. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44012. yes:no: )
  44013. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44014. $as_echo "$as_me: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44015. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the compiler's result" >&5
  44016. $as_echo "$as_me: WARNING: openais/saClm.h: proceeding with the compiler's result" >&2;}
  44017. ac_header_preproc=yes
  44018. ;;
  44019. no:yes:* )
  44020. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: present but cannot be compiled" >&5
  44021. $as_echo "$as_me: WARNING: openais/saClm.h: present but cannot be compiled" >&2;}
  44022. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&5
  44023. $as_echo "$as_me: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&2;}
  44024. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: see the Autoconf documentation" >&5
  44025. $as_echo "$as_me: WARNING: openais/saClm.h: see the Autoconf documentation" >&2;}
  44026. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&5
  44027. $as_echo "$as_me: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44028. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&5
  44029. $as_echo "$as_me: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&2;}
  44030. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&5
  44031. $as_echo "$as_me: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&2;}
  44032. ( cat <<\_ASBOX
  44033. ## ------------------------------------------ ##
  44034. ## Report this to https://issues.asterisk.org ##
  44035. ## ------------------------------------------ ##
  44036. _ASBOX
  44037. ) | sed "s/^/$as_me: WARNING: /" >&2
  44038. ;;
  44039. esac
  44040. { $as_echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
  44041. $as_echo_n "checking for openais/saClm.h... " >&6; }
  44042. if test "${ac_cv_header_openais_saClm_h+set}" = set; then
  44043. $as_echo_n "(cached) " >&6
  44044. else
  44045. ac_cv_header_openais_saClm_h=$ac_header_preproc
  44046. fi
  44047. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
  44048. $as_echo "$ac_cv_header_openais_saClm_h" >&6; }
  44049. fi
  44050. if test "x$ac_cv_header_openais_saClm_h" = x""yes; then
  44051. OPENAIS_HEADER_FOUND=1
  44052. else
  44053. OPENAIS_HEADER_FOUND=0
  44054. fi
  44055. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44056. fi
  44057. if test "x${OPENAIS_HEADER_FOUND}" = "x0" ; then
  44058. OPENAIS_LIB=""
  44059. OPENAIS_INCLUDE=""
  44060. else
  44061. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44062. OPENAIS_LIB=""
  44063. fi
  44064. PBX_OPENAIS=1
  44065. cat >>confdefs.h <<_ACEOF
  44066. #define HAVE_OPENAIS 1
  44067. _ACEOF
  44068. fi
  44069. fi
  44070. fi
  44071. if test "${PBX_OPENAIS}" = 1; then
  44072. PBX_AIS=1
  44073. if test -n "${OPENAIS_DIR}"; then
  44074. AIS_INCLUDE="${OPENAIS_INCLUDE}/openais"
  44075. AIS_LIB="-lSaEvt ${OPENAIS_LIB}"
  44076. else
  44077. AIS_INCLUDE="-I/usr/include/openais"
  44078. AIS_LIB="-lSaClm -lSaEvt -L/usr/lib/openais -L/usr/lib64/openais"
  44079. fi
  44080. fi
  44081. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  44082. pbxlibdir=""
  44083. # if --with-SPEEX=DIR has been specified, use it.
  44084. if test "x${SPEEX_DIR}" != "x"; then
  44085. if test -d ${SPEEX_DIR}/lib; then
  44086. pbxlibdir="-L${SPEEX_DIR}/lib"
  44087. else
  44088. pbxlibdir="-L${SPEEX_DIR}"
  44089. fi
  44090. fi
  44091. pbxfuncname="speex_encode"
  44092. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44093. AST_SPEEX_FOUND=yes
  44094. else
  44095. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44096. CFLAGS="${CFLAGS} "
  44097. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  44098. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
  44099. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  44100. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44101. $as_echo_n "(cached) " >&6
  44102. else
  44103. ac_check_lib_save_LIBS=$LIBS
  44104. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  44105. cat >conftest.$ac_ext <<_ACEOF
  44106. /* confdefs.h. */
  44107. _ACEOF
  44108. cat confdefs.h >>conftest.$ac_ext
  44109. cat >>conftest.$ac_ext <<_ACEOF
  44110. /* end confdefs.h. */
  44111. /* Override any GCC internal prototype to avoid an error.
  44112. Use char because int might match the return type of a GCC
  44113. builtin and then its argument prototype would still apply. */
  44114. #ifdef __cplusplus
  44115. extern "C"
  44116. #endif
  44117. char ${pbxfuncname} ();
  44118. int
  44119. main ()
  44120. {
  44121. return ${pbxfuncname} ();
  44122. ;
  44123. return 0;
  44124. }
  44125. _ACEOF
  44126. rm -f conftest.$ac_objext conftest$ac_exeext
  44127. if { (ac_try="$ac_link"
  44128. case "(($ac_try" in
  44129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44130. *) ac_try_echo=$ac_try;;
  44131. esac
  44132. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44133. $as_echo "$ac_try_echo") >&5
  44134. (eval "$ac_link") 2>conftest.er1
  44135. ac_status=$?
  44136. grep -v '^ *+' conftest.er1 >conftest.err
  44137. rm -f conftest.er1
  44138. cat conftest.err >&5
  44139. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44140. (exit $ac_status); } && {
  44141. test -z "$ac_c_werror_flag" ||
  44142. test ! -s conftest.err
  44143. } && test -s conftest$ac_exeext && {
  44144. test "$cross_compiling" = yes ||
  44145. $as_test_x conftest$ac_exeext
  44146. }; then
  44147. eval "$as_ac_Lib=yes"
  44148. else
  44149. $as_echo "$as_me: failed program was:" >&5
  44150. sed 's/^/| /' conftest.$ac_ext >&5
  44151. eval "$as_ac_Lib=no"
  44152. fi
  44153. rm -rf conftest.dSYM
  44154. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44155. conftest$ac_exeext conftest.$ac_ext
  44156. LIBS=$ac_check_lib_save_LIBS
  44157. fi
  44158. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44159. $as_echo "$as_val"'`
  44160. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44161. $as_echo "$ac_res" >&6; }
  44162. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44163. $as_echo "$as_val"'`
  44164. if test "x$as_val" = x""yes; then
  44165. AST_SPEEX_FOUND=yes
  44166. else
  44167. AST_SPEEX_FOUND=no
  44168. fi
  44169. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44170. fi
  44171. # now check for the header.
  44172. if test "${AST_SPEEX_FOUND}" = "yes"; then
  44173. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  44174. # if --with-SPEEX=DIR has been specified, use it.
  44175. if test "x${SPEEX_DIR}" != "x"; then
  44176. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  44177. fi
  44178. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  44179. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  44180. SPEEX_HEADER_FOUND="1"
  44181. else # check for the header
  44182. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44183. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  44184. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44185. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44186. $as_echo_n "checking for speex/speex.h... " >&6; }
  44187. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44188. $as_echo_n "(cached) " >&6
  44189. fi
  44190. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44191. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44192. else
  44193. # Is the header compilable?
  44194. { $as_echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
  44195. $as_echo_n "checking speex/speex.h usability... " >&6; }
  44196. cat >conftest.$ac_ext <<_ACEOF
  44197. /* confdefs.h. */
  44198. _ACEOF
  44199. cat confdefs.h >>conftest.$ac_ext
  44200. cat >>conftest.$ac_ext <<_ACEOF
  44201. /* end confdefs.h. */
  44202. $ac_includes_default
  44203. #include <speex/speex.h>
  44204. _ACEOF
  44205. rm -f conftest.$ac_objext
  44206. if { (ac_try="$ac_compile"
  44207. case "(($ac_try" in
  44208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44209. *) ac_try_echo=$ac_try;;
  44210. esac
  44211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44212. $as_echo "$ac_try_echo") >&5
  44213. (eval "$ac_compile") 2>conftest.er1
  44214. ac_status=$?
  44215. grep -v '^ *+' conftest.er1 >conftest.err
  44216. rm -f conftest.er1
  44217. cat conftest.err >&5
  44218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44219. (exit $ac_status); } && {
  44220. test -z "$ac_c_werror_flag" ||
  44221. test ! -s conftest.err
  44222. } && test -s conftest.$ac_objext; then
  44223. ac_header_compiler=yes
  44224. else
  44225. $as_echo "$as_me: failed program was:" >&5
  44226. sed 's/^/| /' conftest.$ac_ext >&5
  44227. ac_header_compiler=no
  44228. fi
  44229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44230. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44231. $as_echo "$ac_header_compiler" >&6; }
  44232. # Is the header present?
  44233. { $as_echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
  44234. $as_echo_n "checking speex/speex.h presence... " >&6; }
  44235. cat >conftest.$ac_ext <<_ACEOF
  44236. /* confdefs.h. */
  44237. _ACEOF
  44238. cat confdefs.h >>conftest.$ac_ext
  44239. cat >>conftest.$ac_ext <<_ACEOF
  44240. /* end confdefs.h. */
  44241. #include <speex/speex.h>
  44242. _ACEOF
  44243. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44244. case "(($ac_try" in
  44245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44246. *) ac_try_echo=$ac_try;;
  44247. esac
  44248. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44249. $as_echo "$ac_try_echo") >&5
  44250. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44251. ac_status=$?
  44252. grep -v '^ *+' conftest.er1 >conftest.err
  44253. rm -f conftest.er1
  44254. cat conftest.err >&5
  44255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44256. (exit $ac_status); } >/dev/null && {
  44257. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44258. test ! -s conftest.err
  44259. }; then
  44260. ac_header_preproc=yes
  44261. else
  44262. $as_echo "$as_me: failed program was:" >&5
  44263. sed 's/^/| /' conftest.$ac_ext >&5
  44264. ac_header_preproc=no
  44265. fi
  44266. rm -f conftest.err conftest.$ac_ext
  44267. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44268. $as_echo "$ac_header_preproc" >&6; }
  44269. # So? What about this header?
  44270. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44271. yes:no: )
  44272. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44273. $as_echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44274. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
  44275. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
  44276. ac_header_preproc=yes
  44277. ;;
  44278. no:yes:* )
  44279. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
  44280. $as_echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
  44281. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
  44282. $as_echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
  44283. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
  44284. $as_echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
  44285. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
  44286. $as_echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44287. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
  44288. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
  44289. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
  44290. $as_echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
  44291. ( cat <<\_ASBOX
  44292. ## ------------------------------------------ ##
  44293. ## Report this to https://issues.asterisk.org ##
  44294. ## ------------------------------------------ ##
  44295. _ASBOX
  44296. ) | sed "s/^/$as_me: WARNING: /" >&2
  44297. ;;
  44298. esac
  44299. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44300. $as_echo_n "checking for speex/speex.h... " >&6; }
  44301. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44302. $as_echo_n "(cached) " >&6
  44303. else
  44304. ac_cv_header_speex_speex_h=$ac_header_preproc
  44305. fi
  44306. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44307. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44308. fi
  44309. if test "x$ac_cv_header_speex_speex_h" = x""yes; then
  44310. SPEEX_HEADER_FOUND=1
  44311. else
  44312. SPEEX_HEADER_FOUND=0
  44313. fi
  44314. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44315. fi
  44316. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  44317. SPEEX_LIB=""
  44318. SPEEX_INCLUDE=""
  44319. else
  44320. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44321. SPEEX_LIB=""
  44322. fi
  44323. PBX_SPEEX=1
  44324. cat >>confdefs.h <<_ACEOF
  44325. #define HAVE_SPEEX 1
  44326. _ACEOF
  44327. fi
  44328. fi
  44329. fi
  44330. # See if the main speex library contains the preprocess functions
  44331. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  44332. pbxlibdir=""
  44333. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  44334. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  44335. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  44336. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  44337. else
  44338. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  44339. fi
  44340. fi
  44341. pbxfuncname="speex_preprocess_ctl"
  44342. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44343. AST_SPEEX_PREPROCESS_FOUND=yes
  44344. else
  44345. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44346. CFLAGS="${CFLAGS} "
  44347. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  44348. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
  44349. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  44350. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44351. $as_echo_n "(cached) " >&6
  44352. else
  44353. ac_check_lib_save_LIBS=$LIBS
  44354. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  44355. cat >conftest.$ac_ext <<_ACEOF
  44356. /* confdefs.h. */
  44357. _ACEOF
  44358. cat confdefs.h >>conftest.$ac_ext
  44359. cat >>conftest.$ac_ext <<_ACEOF
  44360. /* end confdefs.h. */
  44361. /* Override any GCC internal prototype to avoid an error.
  44362. Use char because int might match the return type of a GCC
  44363. builtin and then its argument prototype would still apply. */
  44364. #ifdef __cplusplus
  44365. extern "C"
  44366. #endif
  44367. char ${pbxfuncname} ();
  44368. int
  44369. main ()
  44370. {
  44371. return ${pbxfuncname} ();
  44372. ;
  44373. return 0;
  44374. }
  44375. _ACEOF
  44376. rm -f conftest.$ac_objext conftest$ac_exeext
  44377. if { (ac_try="$ac_link"
  44378. case "(($ac_try" in
  44379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44380. *) ac_try_echo=$ac_try;;
  44381. esac
  44382. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44383. $as_echo "$ac_try_echo") >&5
  44384. (eval "$ac_link") 2>conftest.er1
  44385. ac_status=$?
  44386. grep -v '^ *+' conftest.er1 >conftest.err
  44387. rm -f conftest.er1
  44388. cat conftest.err >&5
  44389. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44390. (exit $ac_status); } && {
  44391. test -z "$ac_c_werror_flag" ||
  44392. test ! -s conftest.err
  44393. } && test -s conftest$ac_exeext && {
  44394. test "$cross_compiling" = yes ||
  44395. $as_test_x conftest$ac_exeext
  44396. }; then
  44397. eval "$as_ac_Lib=yes"
  44398. else
  44399. $as_echo "$as_me: failed program was:" >&5
  44400. sed 's/^/| /' conftest.$ac_ext >&5
  44401. eval "$as_ac_Lib=no"
  44402. fi
  44403. rm -rf conftest.dSYM
  44404. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44405. conftest$ac_exeext conftest.$ac_ext
  44406. LIBS=$ac_check_lib_save_LIBS
  44407. fi
  44408. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44409. $as_echo "$as_val"'`
  44410. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44411. $as_echo "$ac_res" >&6; }
  44412. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44413. $as_echo "$as_val"'`
  44414. if test "x$as_val" = x""yes; then
  44415. AST_SPEEX_PREPROCESS_FOUND=yes
  44416. else
  44417. AST_SPEEX_PREPROCESS_FOUND=no
  44418. fi
  44419. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44420. fi
  44421. # now check for the header.
  44422. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  44423. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  44424. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  44425. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  44426. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  44427. fi
  44428. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  44429. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  44430. SPEEX_PREPROCESS_HEADER_FOUND="1"
  44431. else # check for the header
  44432. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44433. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  44434. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44435. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44436. $as_echo_n "checking for speex/speex.h... " >&6; }
  44437. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44438. $as_echo_n "(cached) " >&6
  44439. fi
  44440. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44441. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44442. else
  44443. # Is the header compilable?
  44444. { $as_echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
  44445. $as_echo_n "checking speex/speex.h usability... " >&6; }
  44446. cat >conftest.$ac_ext <<_ACEOF
  44447. /* confdefs.h. */
  44448. _ACEOF
  44449. cat confdefs.h >>conftest.$ac_ext
  44450. cat >>conftest.$ac_ext <<_ACEOF
  44451. /* end confdefs.h. */
  44452. $ac_includes_default
  44453. #include <speex/speex.h>
  44454. _ACEOF
  44455. rm -f conftest.$ac_objext
  44456. if { (ac_try="$ac_compile"
  44457. case "(($ac_try" in
  44458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44459. *) ac_try_echo=$ac_try;;
  44460. esac
  44461. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44462. $as_echo "$ac_try_echo") >&5
  44463. (eval "$ac_compile") 2>conftest.er1
  44464. ac_status=$?
  44465. grep -v '^ *+' conftest.er1 >conftest.err
  44466. rm -f conftest.er1
  44467. cat conftest.err >&5
  44468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44469. (exit $ac_status); } && {
  44470. test -z "$ac_c_werror_flag" ||
  44471. test ! -s conftest.err
  44472. } && test -s conftest.$ac_objext; then
  44473. ac_header_compiler=yes
  44474. else
  44475. $as_echo "$as_me: failed program was:" >&5
  44476. sed 's/^/| /' conftest.$ac_ext >&5
  44477. ac_header_compiler=no
  44478. fi
  44479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44480. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44481. $as_echo "$ac_header_compiler" >&6; }
  44482. # Is the header present?
  44483. { $as_echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
  44484. $as_echo_n "checking speex/speex.h presence... " >&6; }
  44485. cat >conftest.$ac_ext <<_ACEOF
  44486. /* confdefs.h. */
  44487. _ACEOF
  44488. cat confdefs.h >>conftest.$ac_ext
  44489. cat >>conftest.$ac_ext <<_ACEOF
  44490. /* end confdefs.h. */
  44491. #include <speex/speex.h>
  44492. _ACEOF
  44493. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44494. case "(($ac_try" in
  44495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44496. *) ac_try_echo=$ac_try;;
  44497. esac
  44498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44499. $as_echo "$ac_try_echo") >&5
  44500. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44501. ac_status=$?
  44502. grep -v '^ *+' conftest.er1 >conftest.err
  44503. rm -f conftest.er1
  44504. cat conftest.err >&5
  44505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44506. (exit $ac_status); } >/dev/null && {
  44507. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44508. test ! -s conftest.err
  44509. }; then
  44510. ac_header_preproc=yes
  44511. else
  44512. $as_echo "$as_me: failed program was:" >&5
  44513. sed 's/^/| /' conftest.$ac_ext >&5
  44514. ac_header_preproc=no
  44515. fi
  44516. rm -f conftest.err conftest.$ac_ext
  44517. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44518. $as_echo "$ac_header_preproc" >&6; }
  44519. # So? What about this header?
  44520. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44521. yes:no: )
  44522. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44523. $as_echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44524. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
  44525. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
  44526. ac_header_preproc=yes
  44527. ;;
  44528. no:yes:* )
  44529. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
  44530. $as_echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
  44531. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
  44532. $as_echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
  44533. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
  44534. $as_echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
  44535. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
  44536. $as_echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44537. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
  44538. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
  44539. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
  44540. $as_echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
  44541. ( cat <<\_ASBOX
  44542. ## ------------------------------------------ ##
  44543. ## Report this to https://issues.asterisk.org ##
  44544. ## ------------------------------------------ ##
  44545. _ASBOX
  44546. ) | sed "s/^/$as_me: WARNING: /" >&2
  44547. ;;
  44548. esac
  44549. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44550. $as_echo_n "checking for speex/speex.h... " >&6; }
  44551. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44552. $as_echo_n "(cached) " >&6
  44553. else
  44554. ac_cv_header_speex_speex_h=$ac_header_preproc
  44555. fi
  44556. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44557. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44558. fi
  44559. if test "x$ac_cv_header_speex_speex_h" = x""yes; then
  44560. SPEEX_PREPROCESS_HEADER_FOUND=1
  44561. else
  44562. SPEEX_PREPROCESS_HEADER_FOUND=0
  44563. fi
  44564. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44565. fi
  44566. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  44567. SPEEX_PREPROCESS_LIB=""
  44568. SPEEX_PREPROCESS_INCLUDE=""
  44569. else
  44570. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44571. SPEEX_PREPROCESS_LIB=""
  44572. fi
  44573. PBX_SPEEX_PREPROCESS=1
  44574. cat >>confdefs.h <<_ACEOF
  44575. #define HAVE_SPEEX_PREPROCESS 1
  44576. _ACEOF
  44577. fi
  44578. fi
  44579. fi
  44580. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  44581. PBX_SPEEX_PREPROCESS=1
  44582. fi
  44583. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  44584. pbxlibdir=""
  44585. # if --with-SPEEXDSP=DIR has been specified, use it.
  44586. if test "x${SPEEXDSP_DIR}" != "x"; then
  44587. if test -d ${SPEEXDSP_DIR}/lib; then
  44588. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  44589. else
  44590. pbxlibdir="-L${SPEEXDSP_DIR}"
  44591. fi
  44592. fi
  44593. pbxfuncname="speex_preprocess_ctl"
  44594. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44595. AST_SPEEXDSP_FOUND=yes
  44596. else
  44597. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44598. CFLAGS="${CFLAGS} "
  44599. as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
  44600. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
  44601. $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
  44602. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44603. $as_echo_n "(cached) " >&6
  44604. else
  44605. ac_check_lib_save_LIBS=$LIBS
  44606. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  44607. cat >conftest.$ac_ext <<_ACEOF
  44608. /* confdefs.h. */
  44609. _ACEOF
  44610. cat confdefs.h >>conftest.$ac_ext
  44611. cat >>conftest.$ac_ext <<_ACEOF
  44612. /* end confdefs.h. */
  44613. /* Override any GCC internal prototype to avoid an error.
  44614. Use char because int might match the return type of a GCC
  44615. builtin and then its argument prototype would still apply. */
  44616. #ifdef __cplusplus
  44617. extern "C"
  44618. #endif
  44619. char ${pbxfuncname} ();
  44620. int
  44621. main ()
  44622. {
  44623. return ${pbxfuncname} ();
  44624. ;
  44625. return 0;
  44626. }
  44627. _ACEOF
  44628. rm -f conftest.$ac_objext conftest$ac_exeext
  44629. if { (ac_try="$ac_link"
  44630. case "(($ac_try" in
  44631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44632. *) ac_try_echo=$ac_try;;
  44633. esac
  44634. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44635. $as_echo "$ac_try_echo") >&5
  44636. (eval "$ac_link") 2>conftest.er1
  44637. ac_status=$?
  44638. grep -v '^ *+' conftest.er1 >conftest.err
  44639. rm -f conftest.er1
  44640. cat conftest.err >&5
  44641. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44642. (exit $ac_status); } && {
  44643. test -z "$ac_c_werror_flag" ||
  44644. test ! -s conftest.err
  44645. } && test -s conftest$ac_exeext && {
  44646. test "$cross_compiling" = yes ||
  44647. $as_test_x conftest$ac_exeext
  44648. }; then
  44649. eval "$as_ac_Lib=yes"
  44650. else
  44651. $as_echo "$as_me: failed program was:" >&5
  44652. sed 's/^/| /' conftest.$ac_ext >&5
  44653. eval "$as_ac_Lib=no"
  44654. fi
  44655. rm -rf conftest.dSYM
  44656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44657. conftest$ac_exeext conftest.$ac_ext
  44658. LIBS=$ac_check_lib_save_LIBS
  44659. fi
  44660. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44661. $as_echo "$as_val"'`
  44662. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44663. $as_echo "$ac_res" >&6; }
  44664. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44665. $as_echo "$as_val"'`
  44666. if test "x$as_val" = x""yes; then
  44667. AST_SPEEXDSP_FOUND=yes
  44668. else
  44669. AST_SPEEXDSP_FOUND=no
  44670. fi
  44671. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44672. fi
  44673. # now check for the header.
  44674. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  44675. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  44676. # if --with-SPEEXDSP=DIR has been specified, use it.
  44677. if test "x${SPEEXDSP_DIR}" != "x"; then
  44678. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  44679. fi
  44680. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  44681. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  44682. SPEEXDSP_HEADER_FOUND="1"
  44683. else # check for the header
  44684. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44685. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  44686. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44687. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44688. $as_echo_n "checking for speex/speex.h... " >&6; }
  44689. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44690. $as_echo_n "(cached) " >&6
  44691. fi
  44692. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44693. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44694. else
  44695. # Is the header compilable?
  44696. { $as_echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
  44697. $as_echo_n "checking speex/speex.h usability... " >&6; }
  44698. cat >conftest.$ac_ext <<_ACEOF
  44699. /* confdefs.h. */
  44700. _ACEOF
  44701. cat confdefs.h >>conftest.$ac_ext
  44702. cat >>conftest.$ac_ext <<_ACEOF
  44703. /* end confdefs.h. */
  44704. $ac_includes_default
  44705. #include <speex/speex.h>
  44706. _ACEOF
  44707. rm -f conftest.$ac_objext
  44708. if { (ac_try="$ac_compile"
  44709. case "(($ac_try" in
  44710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44711. *) ac_try_echo=$ac_try;;
  44712. esac
  44713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44714. $as_echo "$ac_try_echo") >&5
  44715. (eval "$ac_compile") 2>conftest.er1
  44716. ac_status=$?
  44717. grep -v '^ *+' conftest.er1 >conftest.err
  44718. rm -f conftest.er1
  44719. cat conftest.err >&5
  44720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44721. (exit $ac_status); } && {
  44722. test -z "$ac_c_werror_flag" ||
  44723. test ! -s conftest.err
  44724. } && test -s conftest.$ac_objext; then
  44725. ac_header_compiler=yes
  44726. else
  44727. $as_echo "$as_me: failed program was:" >&5
  44728. sed 's/^/| /' conftest.$ac_ext >&5
  44729. ac_header_compiler=no
  44730. fi
  44731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44732. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44733. $as_echo "$ac_header_compiler" >&6; }
  44734. # Is the header present?
  44735. { $as_echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
  44736. $as_echo_n "checking speex/speex.h presence... " >&6; }
  44737. cat >conftest.$ac_ext <<_ACEOF
  44738. /* confdefs.h. */
  44739. _ACEOF
  44740. cat confdefs.h >>conftest.$ac_ext
  44741. cat >>conftest.$ac_ext <<_ACEOF
  44742. /* end confdefs.h. */
  44743. #include <speex/speex.h>
  44744. _ACEOF
  44745. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44746. case "(($ac_try" in
  44747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44748. *) ac_try_echo=$ac_try;;
  44749. esac
  44750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44751. $as_echo "$ac_try_echo") >&5
  44752. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44753. ac_status=$?
  44754. grep -v '^ *+' conftest.er1 >conftest.err
  44755. rm -f conftest.er1
  44756. cat conftest.err >&5
  44757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44758. (exit $ac_status); } >/dev/null && {
  44759. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44760. test ! -s conftest.err
  44761. }; then
  44762. ac_header_preproc=yes
  44763. else
  44764. $as_echo "$as_me: failed program was:" >&5
  44765. sed 's/^/| /' conftest.$ac_ext >&5
  44766. ac_header_preproc=no
  44767. fi
  44768. rm -f conftest.err conftest.$ac_ext
  44769. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44770. $as_echo "$ac_header_preproc" >&6; }
  44771. # So? What about this header?
  44772. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44773. yes:no: )
  44774. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44775. $as_echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44776. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
  44777. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
  44778. ac_header_preproc=yes
  44779. ;;
  44780. no:yes:* )
  44781. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
  44782. $as_echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
  44783. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
  44784. $as_echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
  44785. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
  44786. $as_echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
  44787. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
  44788. $as_echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44789. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
  44790. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
  44791. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
  44792. $as_echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
  44793. ( cat <<\_ASBOX
  44794. ## ------------------------------------------ ##
  44795. ## Report this to https://issues.asterisk.org ##
  44796. ## ------------------------------------------ ##
  44797. _ASBOX
  44798. ) | sed "s/^/$as_me: WARNING: /" >&2
  44799. ;;
  44800. esac
  44801. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44802. $as_echo_n "checking for speex/speex.h... " >&6; }
  44803. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44804. $as_echo_n "(cached) " >&6
  44805. else
  44806. ac_cv_header_speex_speex_h=$ac_header_preproc
  44807. fi
  44808. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44809. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44810. fi
  44811. if test "x$ac_cv_header_speex_speex_h" = x""yes; then
  44812. SPEEXDSP_HEADER_FOUND=1
  44813. else
  44814. SPEEXDSP_HEADER_FOUND=0
  44815. fi
  44816. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44817. fi
  44818. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  44819. SPEEXDSP_LIB=""
  44820. SPEEXDSP_INCLUDE=""
  44821. else
  44822. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44823. SPEEXDSP_LIB=""
  44824. fi
  44825. PBX_SPEEXDSP=1
  44826. cat >>confdefs.h <<_ACEOF
  44827. #define HAVE_SPEEXDSP 1
  44828. _ACEOF
  44829. fi
  44830. fi
  44831. fi
  44832. if test "${PBX_SPEEXDSP}" = 1; then
  44833. PBX_SPEEX_PREPROCESS=1
  44834. fi
  44835. if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
  44836. pbxlibdir=""
  44837. # if --with-SQLITE=DIR has been specified, use it.
  44838. if test "x${SQLITE_DIR}" != "x"; then
  44839. if test -d ${SQLITE_DIR}/lib; then
  44840. pbxlibdir="-L${SQLITE_DIR}/lib"
  44841. else
  44842. pbxlibdir="-L${SQLITE_DIR}"
  44843. fi
  44844. fi
  44845. pbxfuncname="sqlite_exec"
  44846. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44847. AST_SQLITE_FOUND=yes
  44848. else
  44849. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44850. CFLAGS="${CFLAGS} "
  44851. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
  44852. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
  44853. $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
  44854. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44855. $as_echo_n "(cached) " >&6
  44856. else
  44857. ac_check_lib_save_LIBS=$LIBS
  44858. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  44859. cat >conftest.$ac_ext <<_ACEOF
  44860. /* confdefs.h. */
  44861. _ACEOF
  44862. cat confdefs.h >>conftest.$ac_ext
  44863. cat >>conftest.$ac_ext <<_ACEOF
  44864. /* end confdefs.h. */
  44865. /* Override any GCC internal prototype to avoid an error.
  44866. Use char because int might match the return type of a GCC
  44867. builtin and then its argument prototype would still apply. */
  44868. #ifdef __cplusplus
  44869. extern "C"
  44870. #endif
  44871. char ${pbxfuncname} ();
  44872. int
  44873. main ()
  44874. {
  44875. return ${pbxfuncname} ();
  44876. ;
  44877. return 0;
  44878. }
  44879. _ACEOF
  44880. rm -f conftest.$ac_objext conftest$ac_exeext
  44881. if { (ac_try="$ac_link"
  44882. case "(($ac_try" in
  44883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44884. *) ac_try_echo=$ac_try;;
  44885. esac
  44886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44887. $as_echo "$ac_try_echo") >&5
  44888. (eval "$ac_link") 2>conftest.er1
  44889. ac_status=$?
  44890. grep -v '^ *+' conftest.er1 >conftest.err
  44891. rm -f conftest.er1
  44892. cat conftest.err >&5
  44893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44894. (exit $ac_status); } && {
  44895. test -z "$ac_c_werror_flag" ||
  44896. test ! -s conftest.err
  44897. } && test -s conftest$ac_exeext && {
  44898. test "$cross_compiling" = yes ||
  44899. $as_test_x conftest$ac_exeext
  44900. }; then
  44901. eval "$as_ac_Lib=yes"
  44902. else
  44903. $as_echo "$as_me: failed program was:" >&5
  44904. sed 's/^/| /' conftest.$ac_ext >&5
  44905. eval "$as_ac_Lib=no"
  44906. fi
  44907. rm -rf conftest.dSYM
  44908. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44909. conftest$ac_exeext conftest.$ac_ext
  44910. LIBS=$ac_check_lib_save_LIBS
  44911. fi
  44912. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44913. $as_echo "$as_val"'`
  44914. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44915. $as_echo "$ac_res" >&6; }
  44916. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44917. $as_echo "$as_val"'`
  44918. if test "x$as_val" = x""yes; then
  44919. AST_SQLITE_FOUND=yes
  44920. else
  44921. AST_SQLITE_FOUND=no
  44922. fi
  44923. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44924. fi
  44925. # now check for the header.
  44926. if test "${AST_SQLITE_FOUND}" = "yes"; then
  44927. SQLITE_LIB="${pbxlibdir} -lsqlite "
  44928. # if --with-SQLITE=DIR has been specified, use it.
  44929. if test "x${SQLITE_DIR}" != "x"; then
  44930. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  44931. fi
  44932. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  44933. if test "xsqlite.h" = "x" ; then # no header, assume found
  44934. SQLITE_HEADER_FOUND="1"
  44935. else # check for the header
  44936. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44937. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  44938. if test "${ac_cv_header_sqlite_h+set}" = set; then
  44939. { $as_echo "$as_me:$LINENO: checking for sqlite.h" >&5
  44940. $as_echo_n "checking for sqlite.h... " >&6; }
  44941. if test "${ac_cv_header_sqlite_h+set}" = set; then
  44942. $as_echo_n "(cached) " >&6
  44943. fi
  44944. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
  44945. $as_echo "$ac_cv_header_sqlite_h" >&6; }
  44946. else
  44947. # Is the header compilable?
  44948. { $as_echo "$as_me:$LINENO: checking sqlite.h usability" >&5
  44949. $as_echo_n "checking sqlite.h usability... " >&6; }
  44950. cat >conftest.$ac_ext <<_ACEOF
  44951. /* confdefs.h. */
  44952. _ACEOF
  44953. cat confdefs.h >>conftest.$ac_ext
  44954. cat >>conftest.$ac_ext <<_ACEOF
  44955. /* end confdefs.h. */
  44956. $ac_includes_default
  44957. #include <sqlite.h>
  44958. _ACEOF
  44959. rm -f conftest.$ac_objext
  44960. if { (ac_try="$ac_compile"
  44961. case "(($ac_try" in
  44962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44963. *) ac_try_echo=$ac_try;;
  44964. esac
  44965. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44966. $as_echo "$ac_try_echo") >&5
  44967. (eval "$ac_compile") 2>conftest.er1
  44968. ac_status=$?
  44969. grep -v '^ *+' conftest.er1 >conftest.err
  44970. rm -f conftest.er1
  44971. cat conftest.err >&5
  44972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44973. (exit $ac_status); } && {
  44974. test -z "$ac_c_werror_flag" ||
  44975. test ! -s conftest.err
  44976. } && test -s conftest.$ac_objext; then
  44977. ac_header_compiler=yes
  44978. else
  44979. $as_echo "$as_me: failed program was:" >&5
  44980. sed 's/^/| /' conftest.$ac_ext >&5
  44981. ac_header_compiler=no
  44982. fi
  44983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44984. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44985. $as_echo "$ac_header_compiler" >&6; }
  44986. # Is the header present?
  44987. { $as_echo "$as_me:$LINENO: checking sqlite.h presence" >&5
  44988. $as_echo_n "checking sqlite.h presence... " >&6; }
  44989. cat >conftest.$ac_ext <<_ACEOF
  44990. /* confdefs.h. */
  44991. _ACEOF
  44992. cat confdefs.h >>conftest.$ac_ext
  44993. cat >>conftest.$ac_ext <<_ACEOF
  44994. /* end confdefs.h. */
  44995. #include <sqlite.h>
  44996. _ACEOF
  44997. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44998. case "(($ac_try" in
  44999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45000. *) ac_try_echo=$ac_try;;
  45001. esac
  45002. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45003. $as_echo "$ac_try_echo") >&5
  45004. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45005. ac_status=$?
  45006. grep -v '^ *+' conftest.er1 >conftest.err
  45007. rm -f conftest.er1
  45008. cat conftest.err >&5
  45009. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45010. (exit $ac_status); } >/dev/null && {
  45011. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45012. test ! -s conftest.err
  45013. }; then
  45014. ac_header_preproc=yes
  45015. else
  45016. $as_echo "$as_me: failed program was:" >&5
  45017. sed 's/^/| /' conftest.$ac_ext >&5
  45018. ac_header_preproc=no
  45019. fi
  45020. rm -f conftest.err conftest.$ac_ext
  45021. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45022. $as_echo "$ac_header_preproc" >&6; }
  45023. # So? What about this header?
  45024. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45025. yes:no: )
  45026. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45027. $as_echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45028. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
  45029. $as_echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
  45030. ac_header_preproc=yes
  45031. ;;
  45032. no:yes:* )
  45033. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
  45034. $as_echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
  45035. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
  45036. $as_echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
  45037. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
  45038. $as_echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
  45039. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
  45040. $as_echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45041. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
  45042. $as_echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
  45043. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
  45044. $as_echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
  45045. ( cat <<\_ASBOX
  45046. ## ------------------------------------------ ##
  45047. ## Report this to https://issues.asterisk.org ##
  45048. ## ------------------------------------------ ##
  45049. _ASBOX
  45050. ) | sed "s/^/$as_me: WARNING: /" >&2
  45051. ;;
  45052. esac
  45053. { $as_echo "$as_me:$LINENO: checking for sqlite.h" >&5
  45054. $as_echo_n "checking for sqlite.h... " >&6; }
  45055. if test "${ac_cv_header_sqlite_h+set}" = set; then
  45056. $as_echo_n "(cached) " >&6
  45057. else
  45058. ac_cv_header_sqlite_h=$ac_header_preproc
  45059. fi
  45060. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
  45061. $as_echo "$ac_cv_header_sqlite_h" >&6; }
  45062. fi
  45063. if test "x$ac_cv_header_sqlite_h" = x""yes; then
  45064. SQLITE_HEADER_FOUND=1
  45065. else
  45066. SQLITE_HEADER_FOUND=0
  45067. fi
  45068. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  45069. fi
  45070. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  45071. SQLITE_LIB=""
  45072. SQLITE_INCLUDE=""
  45073. else
  45074. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  45075. SQLITE_LIB=""
  45076. fi
  45077. PBX_SQLITE=1
  45078. cat >>confdefs.h <<_ACEOF
  45079. #define HAVE_SQLITE 1
  45080. _ACEOF
  45081. fi
  45082. fi
  45083. fi
  45084. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  45085. pbxlibdir=""
  45086. # if --with-SQLITE3=DIR has been specified, use it.
  45087. if test "x${SQLITE3_DIR}" != "x"; then
  45088. if test -d ${SQLITE3_DIR}/lib; then
  45089. pbxlibdir="-L${SQLITE3_DIR}/lib"
  45090. else
  45091. pbxlibdir="-L${SQLITE3_DIR}"
  45092. fi
  45093. fi
  45094. pbxfuncname="sqlite3_open"
  45095. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  45096. AST_SQLITE3_FOUND=yes
  45097. else
  45098. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  45099. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  45100. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
  45101. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
  45102. $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
  45103. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  45104. $as_echo_n "(cached) " >&6
  45105. else
  45106. ac_check_lib_save_LIBS=$LIBS
  45107. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  45108. cat >conftest.$ac_ext <<_ACEOF
  45109. /* confdefs.h. */
  45110. _ACEOF
  45111. cat confdefs.h >>conftest.$ac_ext
  45112. cat >>conftest.$ac_ext <<_ACEOF
  45113. /* end confdefs.h. */
  45114. /* Override any GCC internal prototype to avoid an error.
  45115. Use char because int might match the return type of a GCC
  45116. builtin and then its argument prototype would still apply. */
  45117. #ifdef __cplusplus
  45118. extern "C"
  45119. #endif
  45120. char ${pbxfuncname} ();
  45121. int
  45122. main ()
  45123. {
  45124. return ${pbxfuncname} ();
  45125. ;
  45126. return 0;
  45127. }
  45128. _ACEOF
  45129. rm -f conftest.$ac_objext conftest$ac_exeext
  45130. if { (ac_try="$ac_link"
  45131. case "(($ac_try" in
  45132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45133. *) ac_try_echo=$ac_try;;
  45134. esac
  45135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45136. $as_echo "$ac_try_echo") >&5
  45137. (eval "$ac_link") 2>conftest.er1
  45138. ac_status=$?
  45139. grep -v '^ *+' conftest.er1 >conftest.err
  45140. rm -f conftest.er1
  45141. cat conftest.err >&5
  45142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45143. (exit $ac_status); } && {
  45144. test -z "$ac_c_werror_flag" ||
  45145. test ! -s conftest.err
  45146. } && test -s conftest$ac_exeext && {
  45147. test "$cross_compiling" = yes ||
  45148. $as_test_x conftest$ac_exeext
  45149. }; then
  45150. eval "$as_ac_Lib=yes"
  45151. else
  45152. $as_echo "$as_me: failed program was:" >&5
  45153. sed 's/^/| /' conftest.$ac_ext >&5
  45154. eval "$as_ac_Lib=no"
  45155. fi
  45156. rm -rf conftest.dSYM
  45157. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45158. conftest$ac_exeext conftest.$ac_ext
  45159. LIBS=$ac_check_lib_save_LIBS
  45160. fi
  45161. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  45162. $as_echo "$as_val"'`
  45163. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45164. $as_echo "$ac_res" >&6; }
  45165. as_val=`eval 'as_val=${'$as_ac_Lib'}
  45166. $as_echo "$as_val"'`
  45167. if test "x$as_val" = x""yes; then
  45168. AST_SQLITE3_FOUND=yes
  45169. else
  45170. AST_SQLITE3_FOUND=no
  45171. fi
  45172. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  45173. fi
  45174. # now check for the header.
  45175. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  45176. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  45177. # if --with-SQLITE3=DIR has been specified, use it.
  45178. if test "x${SQLITE3_DIR}" != "x"; then
  45179. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  45180. fi
  45181. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  45182. if test "xsqlite3.h" = "x" ; then # no header, assume found
  45183. SQLITE3_HEADER_FOUND="1"
  45184. else # check for the header
  45185. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  45186. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  45187. if test "${ac_cv_header_sqlite3_h+set}" = set; then
  45188. { $as_echo "$as_me:$LINENO: checking for sqlite3.h" >&5
  45189. $as_echo_n "checking for sqlite3.h... " >&6; }
  45190. if test "${ac_cv_header_sqlite3_h+set}" = set; then
  45191. $as_echo_n "(cached) " >&6
  45192. fi
  45193. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
  45194. $as_echo "$ac_cv_header_sqlite3_h" >&6; }
  45195. else
  45196. # Is the header compilable?
  45197. { $as_echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
  45198. $as_echo_n "checking sqlite3.h usability... " >&6; }
  45199. cat >conftest.$ac_ext <<_ACEOF
  45200. /* confdefs.h. */
  45201. _ACEOF
  45202. cat confdefs.h >>conftest.$ac_ext
  45203. cat >>conftest.$ac_ext <<_ACEOF
  45204. /* end confdefs.h. */
  45205. $ac_includes_default
  45206. #include <sqlite3.h>
  45207. _ACEOF
  45208. rm -f conftest.$ac_objext
  45209. if { (ac_try="$ac_compile"
  45210. case "(($ac_try" in
  45211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45212. *) ac_try_echo=$ac_try;;
  45213. esac
  45214. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45215. $as_echo "$ac_try_echo") >&5
  45216. (eval "$ac_compile") 2>conftest.er1
  45217. ac_status=$?
  45218. grep -v '^ *+' conftest.er1 >conftest.err
  45219. rm -f conftest.er1
  45220. cat conftest.err >&5
  45221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45222. (exit $ac_status); } && {
  45223. test -z "$ac_c_werror_flag" ||
  45224. test ! -s conftest.err
  45225. } && test -s conftest.$ac_objext; then
  45226. ac_header_compiler=yes
  45227. else
  45228. $as_echo "$as_me: failed program was:" >&5
  45229. sed 's/^/| /' conftest.$ac_ext >&5
  45230. ac_header_compiler=no
  45231. fi
  45232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45233. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45234. $as_echo "$ac_header_compiler" >&6; }
  45235. # Is the header present?
  45236. { $as_echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
  45237. $as_echo_n "checking sqlite3.h presence... " >&6; }
  45238. cat >conftest.$ac_ext <<_ACEOF
  45239. /* confdefs.h. */
  45240. _ACEOF
  45241. cat confdefs.h >>conftest.$ac_ext
  45242. cat >>conftest.$ac_ext <<_ACEOF
  45243. /* end confdefs.h. */
  45244. #include <sqlite3.h>
  45245. _ACEOF
  45246. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45247. case "(($ac_try" in
  45248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45249. *) ac_try_echo=$ac_try;;
  45250. esac
  45251. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45252. $as_echo "$ac_try_echo") >&5
  45253. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45254. ac_status=$?
  45255. grep -v '^ *+' conftest.er1 >conftest.err
  45256. rm -f conftest.er1
  45257. cat conftest.err >&5
  45258. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45259. (exit $ac_status); } >/dev/null && {
  45260. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45261. test ! -s conftest.err
  45262. }; then
  45263. ac_header_preproc=yes
  45264. else
  45265. $as_echo "$as_me: failed program was:" >&5
  45266. sed 's/^/| /' conftest.$ac_ext >&5
  45267. ac_header_preproc=no
  45268. fi
  45269. rm -f conftest.err conftest.$ac_ext
  45270. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45271. $as_echo "$ac_header_preproc" >&6; }
  45272. # So? What about this header?
  45273. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45274. yes:no: )
  45275. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45276. $as_echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45277. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
  45278. $as_echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
  45279. ac_header_preproc=yes
  45280. ;;
  45281. no:yes:* )
  45282. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
  45283. $as_echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
  45284. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
  45285. $as_echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
  45286. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
  45287. $as_echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
  45288. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
  45289. $as_echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45290. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
  45291. $as_echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
  45292. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
  45293. $as_echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
  45294. ( cat <<\_ASBOX
  45295. ## ------------------------------------------ ##
  45296. ## Report this to https://issues.asterisk.org ##
  45297. ## ------------------------------------------ ##
  45298. _ASBOX
  45299. ) | sed "s/^/$as_me: WARNING: /" >&2
  45300. ;;
  45301. esac
  45302. { $as_echo "$as_me:$LINENO: checking for sqlite3.h" >&5
  45303. $as_echo_n "checking for sqlite3.h... " >&6; }
  45304. if test "${ac_cv_header_sqlite3_h+set}" = set; then
  45305. $as_echo_n "(cached) " >&6
  45306. else
  45307. ac_cv_header_sqlite3_h=$ac_header_preproc
  45308. fi
  45309. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
  45310. $as_echo "$ac_cv_header_sqlite3_h" >&6; }
  45311. fi
  45312. if test "x$ac_cv_header_sqlite3_h" = x""yes; then
  45313. SQLITE3_HEADER_FOUND=1
  45314. else
  45315. SQLITE3_HEADER_FOUND=0
  45316. fi
  45317. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  45318. fi
  45319. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  45320. SQLITE3_LIB=""
  45321. SQLITE3_INCLUDE=""
  45322. else
  45323. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  45324. SQLITE3_LIB=""
  45325. fi
  45326. PBX_SQLITE3=1
  45327. cat >>confdefs.h <<_ACEOF
  45328. #define HAVE_SQLITE3 1
  45329. _ACEOF
  45330. fi
  45331. fi
  45332. fi
  45333. if test "${PBX_SQLITE3}" != 1; then
  45334. { $as_echo "$as_me:$LINENO: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database." >&5
  45335. $as_echo "$as_me: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database." >&2;}
  45336. { $as_echo "$as_me:$LINENO: WARNING: *** Please install the SQLite3 development package." >&5
  45337. $as_echo "$as_me: WARNING: *** Please install the SQLite3 development package." >&2;}
  45338. exit 1
  45339. fi
  45340. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  45341. pbxlibdir=""
  45342. # if --with-CRYPTO=DIR has been specified, use it.
  45343. if test "x${CRYPTO_DIR}" != "x"; then
  45344. if test -d ${CRYPTO_DIR}/lib; then
  45345. pbxlibdir="-L${CRYPTO_DIR}/lib"
  45346. else
  45347. pbxlibdir="-L${CRYPTO_DIR}"
  45348. fi
  45349. fi
  45350. pbxfuncname="AES_encrypt"
  45351. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  45352. AST_CRYPTO_FOUND=yes
  45353. else
  45354. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  45355. CFLAGS="${CFLAGS} "
  45356. as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
  45357. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
  45358. $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
  45359. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  45360. $as_echo_n "(cached) " >&6
  45361. else
  45362. ac_check_lib_save_LIBS=$LIBS
  45363. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  45364. cat >conftest.$ac_ext <<_ACEOF
  45365. /* confdefs.h. */
  45366. _ACEOF
  45367. cat confdefs.h >>conftest.$ac_ext
  45368. cat >>conftest.$ac_ext <<_ACEOF
  45369. /* end confdefs.h. */
  45370. /* Override any GCC internal prototype to avoid an error.
  45371. Use char because int might match the return type of a GCC
  45372. builtin and then its argument prototype would still apply. */
  45373. #ifdef __cplusplus
  45374. extern "C"
  45375. #endif
  45376. char ${pbxfuncname} ();
  45377. int
  45378. main ()
  45379. {
  45380. return ${pbxfuncname} ();
  45381. ;
  45382. return 0;
  45383. }
  45384. _ACEOF
  45385. rm -f conftest.$ac_objext conftest$ac_exeext
  45386. if { (ac_try="$ac_link"
  45387. case "(($ac_try" in
  45388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45389. *) ac_try_echo=$ac_try;;
  45390. esac
  45391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45392. $as_echo "$ac_try_echo") >&5
  45393. (eval "$ac_link") 2>conftest.er1
  45394. ac_status=$?
  45395. grep -v '^ *+' conftest.er1 >conftest.err
  45396. rm -f conftest.er1
  45397. cat conftest.err >&5
  45398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45399. (exit $ac_status); } && {
  45400. test -z "$ac_c_werror_flag" ||
  45401. test ! -s conftest.err
  45402. } && test -s conftest$ac_exeext && {
  45403. test "$cross_compiling" = yes ||
  45404. $as_test_x conftest$ac_exeext
  45405. }; then
  45406. eval "$as_ac_Lib=yes"
  45407. else
  45408. $as_echo "$as_me: failed program was:" >&5
  45409. sed 's/^/| /' conftest.$ac_ext >&5
  45410. eval "$as_ac_Lib=no"
  45411. fi
  45412. rm -rf conftest.dSYM
  45413. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45414. conftest$ac_exeext conftest.$ac_ext
  45415. LIBS=$ac_check_lib_save_LIBS
  45416. fi
  45417. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  45418. $as_echo "$as_val"'`
  45419. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45420. $as_echo "$ac_res" >&6; }
  45421. as_val=`eval 'as_val=${'$as_ac_Lib'}
  45422. $as_echo "$as_val"'`
  45423. if test "x$as_val" = x""yes; then
  45424. AST_CRYPTO_FOUND=yes
  45425. else
  45426. AST_CRYPTO_FOUND=no
  45427. fi
  45428. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  45429. fi
  45430. # now check for the header.
  45431. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  45432. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  45433. # if --with-CRYPTO=DIR has been specified, use it.
  45434. if test "x${CRYPTO_DIR}" != "x"; then
  45435. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  45436. fi
  45437. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  45438. if test "xopenssl/aes.h" = "x" ; then # no header, assume found
  45439. CRYPTO_HEADER_FOUND="1"
  45440. else # check for the header
  45441. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  45442. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  45443. if test "${ac_cv_header_openssl_aes_h+set}" = set; then
  45444. { $as_echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
  45445. $as_echo_n "checking for openssl/aes.h... " >&6; }
  45446. if test "${ac_cv_header_openssl_aes_h+set}" = set; then
  45447. $as_echo_n "(cached) " >&6
  45448. fi
  45449. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
  45450. $as_echo "$ac_cv_header_openssl_aes_h" >&6; }
  45451. else
  45452. # Is the header compilable?
  45453. { $as_echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
  45454. $as_echo_n "checking openssl/aes.h usability... " >&6; }
  45455. cat >conftest.$ac_ext <<_ACEOF
  45456. /* confdefs.h. */
  45457. _ACEOF
  45458. cat confdefs.h >>conftest.$ac_ext
  45459. cat >>conftest.$ac_ext <<_ACEOF
  45460. /* end confdefs.h. */
  45461. $ac_includes_default
  45462. #include <openssl/aes.h>
  45463. _ACEOF
  45464. rm -f conftest.$ac_objext
  45465. if { (ac_try="$ac_compile"
  45466. case "(($ac_try" in
  45467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45468. *) ac_try_echo=$ac_try;;
  45469. esac
  45470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45471. $as_echo "$ac_try_echo") >&5
  45472. (eval "$ac_compile") 2>conftest.er1
  45473. ac_status=$?
  45474. grep -v '^ *+' conftest.er1 >conftest.err
  45475. rm -f conftest.er1
  45476. cat conftest.err >&5
  45477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45478. (exit $ac_status); } && {
  45479. test -z "$ac_c_werror_flag" ||
  45480. test ! -s conftest.err
  45481. } && test -s conftest.$ac_objext; then
  45482. ac_header_compiler=yes
  45483. else
  45484. $as_echo "$as_me: failed program was:" >&5
  45485. sed 's/^/| /' conftest.$ac_ext >&5
  45486. ac_header_compiler=no
  45487. fi
  45488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45489. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45490. $as_echo "$ac_header_compiler" >&6; }
  45491. # Is the header present?
  45492. { $as_echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
  45493. $as_echo_n "checking openssl/aes.h presence... " >&6; }
  45494. cat >conftest.$ac_ext <<_ACEOF
  45495. /* confdefs.h. */
  45496. _ACEOF
  45497. cat confdefs.h >>conftest.$ac_ext
  45498. cat >>conftest.$ac_ext <<_ACEOF
  45499. /* end confdefs.h. */
  45500. #include <openssl/aes.h>
  45501. _ACEOF
  45502. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45503. case "(($ac_try" in
  45504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45505. *) ac_try_echo=$ac_try;;
  45506. esac
  45507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45508. $as_echo "$ac_try_echo") >&5
  45509. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45510. ac_status=$?
  45511. grep -v '^ *+' conftest.er1 >conftest.err
  45512. rm -f conftest.er1
  45513. cat conftest.err >&5
  45514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45515. (exit $ac_status); } >/dev/null && {
  45516. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45517. test ! -s conftest.err
  45518. }; then
  45519. ac_header_preproc=yes
  45520. else
  45521. $as_echo "$as_me: failed program was:" >&5
  45522. sed 's/^/| /' conftest.$ac_ext >&5
  45523. ac_header_preproc=no
  45524. fi
  45525. rm -f conftest.err conftest.$ac_ext
  45526. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45527. $as_echo "$ac_header_preproc" >&6; }
  45528. # So? What about this header?
  45529. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45530. yes:no: )
  45531. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45532. $as_echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45533. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
  45534. $as_echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
  45535. ac_header_preproc=yes
  45536. ;;
  45537. no:yes:* )
  45538. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
  45539. $as_echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
  45540. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
  45541. $as_echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
  45542. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
  45543. $as_echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
  45544. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
  45545. $as_echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45546. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
  45547. $as_echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
  45548. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
  45549. $as_echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
  45550. ( cat <<\_ASBOX
  45551. ## ------------------------------------------ ##
  45552. ## Report this to https://issues.asterisk.org ##
  45553. ## ------------------------------------------ ##
  45554. _ASBOX
  45555. ) | sed "s/^/$as_me: WARNING: /" >&2
  45556. ;;
  45557. esac
  45558. { $as_echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
  45559. $as_echo_n "checking for openssl/aes.h... " >&6; }
  45560. if test "${ac_cv_header_openssl_aes_h+set}" = set; then
  45561. $as_echo_n "(cached) " >&6
  45562. else
  45563. ac_cv_header_openssl_aes_h=$ac_header_preproc
  45564. fi
  45565. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
  45566. $as_echo "$ac_cv_header_openssl_aes_h" >&6; }
  45567. fi
  45568. if test "x$ac_cv_header_openssl_aes_h" = x""yes; then
  45569. CRYPTO_HEADER_FOUND=1
  45570. else
  45571. CRYPTO_HEADER_FOUND=0
  45572. fi
  45573. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  45574. fi
  45575. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  45576. CRYPTO_LIB=""
  45577. CRYPTO_INCLUDE=""
  45578. else
  45579. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  45580. CRYPTO_LIB=""
  45581. fi
  45582. PBX_CRYPTO=1
  45583. cat >>confdefs.h <<_ACEOF
  45584. #define HAVE_CRYPTO 1
  45585. _ACEOF
  45586. fi
  45587. fi
  45588. fi
  45589. if test "$PBX_CRYPTO" = "1";
  45590. then
  45591. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  45592. pbxlibdir=""
  45593. # if --with-OPENSSL=DIR has been specified, use it.
  45594. if test "x${OPENSSL_DIR}" != "x"; then
  45595. if test -d ${OPENSSL_DIR}/lib; then
  45596. pbxlibdir="-L${OPENSSL_DIR}/lib"
  45597. else
  45598. pbxlibdir="-L${OPENSSL_DIR}"
  45599. fi
  45600. fi
  45601. pbxfuncname="SSL_connect"
  45602. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  45603. AST_OPENSSL_FOUND=yes
  45604. else
  45605. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  45606. CFLAGS="${CFLAGS} "
  45607. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  45608. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
  45609. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  45610. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  45611. $as_echo_n "(cached) " >&6
  45612. else
  45613. ac_check_lib_save_LIBS=$LIBS
  45614. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  45615. cat >conftest.$ac_ext <<_ACEOF
  45616. /* confdefs.h. */
  45617. _ACEOF
  45618. cat confdefs.h >>conftest.$ac_ext
  45619. cat >>conftest.$ac_ext <<_ACEOF
  45620. /* end confdefs.h. */
  45621. /* Override any GCC internal prototype to avoid an error.
  45622. Use char because int might match the return type of a GCC
  45623. builtin and then its argument prototype would still apply. */
  45624. #ifdef __cplusplus
  45625. extern "C"
  45626. #endif
  45627. char ${pbxfuncname} ();
  45628. int
  45629. main ()
  45630. {
  45631. return ${pbxfuncname} ();
  45632. ;
  45633. return 0;
  45634. }
  45635. _ACEOF
  45636. rm -f conftest.$ac_objext conftest$ac_exeext
  45637. if { (ac_try="$ac_link"
  45638. case "(($ac_try" in
  45639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45640. *) ac_try_echo=$ac_try;;
  45641. esac
  45642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45643. $as_echo "$ac_try_echo") >&5
  45644. (eval "$ac_link") 2>conftest.er1
  45645. ac_status=$?
  45646. grep -v '^ *+' conftest.er1 >conftest.err
  45647. rm -f conftest.er1
  45648. cat conftest.err >&5
  45649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45650. (exit $ac_status); } && {
  45651. test -z "$ac_c_werror_flag" ||
  45652. test ! -s conftest.err
  45653. } && test -s conftest$ac_exeext && {
  45654. test "$cross_compiling" = yes ||
  45655. $as_test_x conftest$ac_exeext
  45656. }; then
  45657. eval "$as_ac_Lib=yes"
  45658. else
  45659. $as_echo "$as_me: failed program was:" >&5
  45660. sed 's/^/| /' conftest.$ac_ext >&5
  45661. eval "$as_ac_Lib=no"
  45662. fi
  45663. rm -rf conftest.dSYM
  45664. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45665. conftest$ac_exeext conftest.$ac_ext
  45666. LIBS=$ac_check_lib_save_LIBS
  45667. fi
  45668. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  45669. $as_echo "$as_val"'`
  45670. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45671. $as_echo "$ac_res" >&6; }
  45672. as_val=`eval 'as_val=${'$as_ac_Lib'}
  45673. $as_echo "$as_val"'`
  45674. if test "x$as_val" = x""yes; then
  45675. AST_OPENSSL_FOUND=yes
  45676. else
  45677. AST_OPENSSL_FOUND=no
  45678. fi
  45679. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  45680. fi
  45681. # now check for the header.
  45682. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  45683. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  45684. # if --with-OPENSSL=DIR has been specified, use it.
  45685. if test "x${OPENSSL_DIR}" != "x"; then
  45686. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  45687. fi
  45688. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  45689. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  45690. OPENSSL_HEADER_FOUND="1"
  45691. else # check for the header
  45692. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  45693. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  45694. if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
  45695. { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
  45696. $as_echo_n "checking for openssl/ssl.h... " >&6; }
  45697. if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
  45698. $as_echo_n "(cached) " >&6
  45699. fi
  45700. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
  45701. $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
  45702. else
  45703. # Is the header compilable?
  45704. { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
  45705. $as_echo_n "checking openssl/ssl.h usability... " >&6; }
  45706. cat >conftest.$ac_ext <<_ACEOF
  45707. /* confdefs.h. */
  45708. _ACEOF
  45709. cat confdefs.h >>conftest.$ac_ext
  45710. cat >>conftest.$ac_ext <<_ACEOF
  45711. /* end confdefs.h. */
  45712. $ac_includes_default
  45713. #include <openssl/ssl.h>
  45714. _ACEOF
  45715. rm -f conftest.$ac_objext
  45716. if { (ac_try="$ac_compile"
  45717. case "(($ac_try" in
  45718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45719. *) ac_try_echo=$ac_try;;
  45720. esac
  45721. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45722. $as_echo "$ac_try_echo") >&5
  45723. (eval "$ac_compile") 2>conftest.er1
  45724. ac_status=$?
  45725. grep -v '^ *+' conftest.er1 >conftest.err
  45726. rm -f conftest.er1
  45727. cat conftest.err >&5
  45728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45729. (exit $ac_status); } && {
  45730. test -z "$ac_c_werror_flag" ||
  45731. test ! -s conftest.err
  45732. } && test -s conftest.$ac_objext; then
  45733. ac_header_compiler=yes
  45734. else
  45735. $as_echo "$as_me: failed program was:" >&5
  45736. sed 's/^/| /' conftest.$ac_ext >&5
  45737. ac_header_compiler=no
  45738. fi
  45739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45740. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45741. $as_echo "$ac_header_compiler" >&6; }
  45742. # Is the header present?
  45743. { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
  45744. $as_echo_n "checking openssl/ssl.h presence... " >&6; }
  45745. cat >conftest.$ac_ext <<_ACEOF
  45746. /* confdefs.h. */
  45747. _ACEOF
  45748. cat confdefs.h >>conftest.$ac_ext
  45749. cat >>conftest.$ac_ext <<_ACEOF
  45750. /* end confdefs.h. */
  45751. #include <openssl/ssl.h>
  45752. _ACEOF
  45753. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45754. case "(($ac_try" in
  45755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45756. *) ac_try_echo=$ac_try;;
  45757. esac
  45758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45759. $as_echo "$ac_try_echo") >&5
  45760. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45761. ac_status=$?
  45762. grep -v '^ *+' conftest.er1 >conftest.err
  45763. rm -f conftest.er1
  45764. cat conftest.err >&5
  45765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45766. (exit $ac_status); } >/dev/null && {
  45767. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45768. test ! -s conftest.err
  45769. }; then
  45770. ac_header_preproc=yes
  45771. else
  45772. $as_echo "$as_me: failed program was:" >&5
  45773. sed 's/^/| /' conftest.$ac_ext >&5
  45774. ac_header_preproc=no
  45775. fi
  45776. rm -f conftest.err conftest.$ac_ext
  45777. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45778. $as_echo "$ac_header_preproc" >&6; }
  45779. # So? What about this header?
  45780. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45781. yes:no: )
  45782. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45783. $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45784. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
  45785. $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
  45786. ac_header_preproc=yes
  45787. ;;
  45788. no:yes:* )
  45789. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
  45790. $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
  45791. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
  45792. $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
  45793. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
  45794. $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
  45795. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
  45796. $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45797. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
  45798. $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
  45799. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
  45800. $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
  45801. ( cat <<\_ASBOX
  45802. ## ------------------------------------------ ##
  45803. ## Report this to https://issues.asterisk.org ##
  45804. ## ------------------------------------------ ##
  45805. _ASBOX
  45806. ) | sed "s/^/$as_me: WARNING: /" >&2
  45807. ;;
  45808. esac
  45809. { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
  45810. $as_echo_n "checking for openssl/ssl.h... " >&6; }
  45811. if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
  45812. $as_echo_n "(cached) " >&6
  45813. else
  45814. ac_cv_header_openssl_ssl_h=$ac_header_preproc
  45815. fi
  45816. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
  45817. $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
  45818. fi
  45819. if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
  45820. OPENSSL_HEADER_FOUND=1
  45821. else
  45822. OPENSSL_HEADER_FOUND=0
  45823. fi
  45824. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  45825. fi
  45826. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  45827. OPENSSL_LIB=""
  45828. OPENSSL_INCLUDE=""
  45829. else
  45830. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  45831. OPENSSL_LIB=""
  45832. fi
  45833. PBX_OPENSSL=1
  45834. cat >>confdefs.h <<_ACEOF
  45835. #define HAVE_OPENSSL 1
  45836. _ACEOF
  45837. fi
  45838. fi
  45839. fi
  45840. fi
  45841. if test "$PBX_OPENSSL" = "1";
  45842. then
  45843. # if OSPTK has not been checked and is not excluded
  45844. if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
  45845. # if --with-osptk=DIR has been specified, use it.
  45846. if test "x${OSPTK_DIR}" != "x"; then
  45847. osptk_cflags="-I${OSPTK_DIR}/include"
  45848. osptk_ldflags="-L${OSPTK_DIR}/lib"
  45849. else
  45850. osptk_cflags=""
  45851. osptk_ldflags=""
  45852. fi
  45853. # check for the header
  45854. osptk_saved_cppflags="${CPPFLAGS}"
  45855. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  45856. if test "${ac_cv_header_osp_osp_h+set}" = set; then
  45857. { $as_echo "$as_me:$LINENO: checking for osp/osp.h" >&5
  45858. $as_echo_n "checking for osp/osp.h... " >&6; }
  45859. if test "${ac_cv_header_osp_osp_h+set}" = set; then
  45860. $as_echo_n "(cached) " >&6
  45861. fi
  45862. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
  45863. $as_echo "$ac_cv_header_osp_osp_h" >&6; }
  45864. else
  45865. # Is the header compilable?
  45866. { $as_echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
  45867. $as_echo_n "checking osp/osp.h usability... " >&6; }
  45868. cat >conftest.$ac_ext <<_ACEOF
  45869. /* confdefs.h. */
  45870. _ACEOF
  45871. cat confdefs.h >>conftest.$ac_ext
  45872. cat >>conftest.$ac_ext <<_ACEOF
  45873. /* end confdefs.h. */
  45874. $ac_includes_default
  45875. #include <osp/osp.h>
  45876. _ACEOF
  45877. rm -f conftest.$ac_objext
  45878. if { (ac_try="$ac_compile"
  45879. case "(($ac_try" in
  45880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45881. *) ac_try_echo=$ac_try;;
  45882. esac
  45883. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45884. $as_echo "$ac_try_echo") >&5
  45885. (eval "$ac_compile") 2>conftest.er1
  45886. ac_status=$?
  45887. grep -v '^ *+' conftest.er1 >conftest.err
  45888. rm -f conftest.er1
  45889. cat conftest.err >&5
  45890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45891. (exit $ac_status); } && {
  45892. test -z "$ac_c_werror_flag" ||
  45893. test ! -s conftest.err
  45894. } && test -s conftest.$ac_objext; then
  45895. ac_header_compiler=yes
  45896. else
  45897. $as_echo "$as_me: failed program was:" >&5
  45898. sed 's/^/| /' conftest.$ac_ext >&5
  45899. ac_header_compiler=no
  45900. fi
  45901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45902. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45903. $as_echo "$ac_header_compiler" >&6; }
  45904. # Is the header present?
  45905. { $as_echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
  45906. $as_echo_n "checking osp/osp.h presence... " >&6; }
  45907. cat >conftest.$ac_ext <<_ACEOF
  45908. /* confdefs.h. */
  45909. _ACEOF
  45910. cat confdefs.h >>conftest.$ac_ext
  45911. cat >>conftest.$ac_ext <<_ACEOF
  45912. /* end confdefs.h. */
  45913. #include <osp/osp.h>
  45914. _ACEOF
  45915. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45916. case "(($ac_try" in
  45917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45918. *) ac_try_echo=$ac_try;;
  45919. esac
  45920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45921. $as_echo "$ac_try_echo") >&5
  45922. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45923. ac_status=$?
  45924. grep -v '^ *+' conftest.er1 >conftest.err
  45925. rm -f conftest.er1
  45926. cat conftest.err >&5
  45927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45928. (exit $ac_status); } >/dev/null && {
  45929. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45930. test ! -s conftest.err
  45931. }; then
  45932. ac_header_preproc=yes
  45933. else
  45934. $as_echo "$as_me: failed program was:" >&5
  45935. sed 's/^/| /' conftest.$ac_ext >&5
  45936. ac_header_preproc=no
  45937. fi
  45938. rm -f conftest.err conftest.$ac_ext
  45939. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45940. $as_echo "$ac_header_preproc" >&6; }
  45941. # So? What about this header?
  45942. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45943. yes:no: )
  45944. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45945. $as_echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45946. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
  45947. $as_echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
  45948. ac_header_preproc=yes
  45949. ;;
  45950. no:yes:* )
  45951. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
  45952. $as_echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
  45953. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
  45954. $as_echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
  45955. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
  45956. $as_echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
  45957. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
  45958. $as_echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45959. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
  45960. $as_echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
  45961. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
  45962. $as_echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
  45963. ( cat <<\_ASBOX
  45964. ## ------------------------------------------ ##
  45965. ## Report this to https://issues.asterisk.org ##
  45966. ## ------------------------------------------ ##
  45967. _ASBOX
  45968. ) | sed "s/^/$as_me: WARNING: /" >&2
  45969. ;;
  45970. esac
  45971. { $as_echo "$as_me:$LINENO: checking for osp/osp.h" >&5
  45972. $as_echo_n "checking for osp/osp.h... " >&6; }
  45973. if test "${ac_cv_header_osp_osp_h+set}" = set; then
  45974. $as_echo_n "(cached) " >&6
  45975. else
  45976. ac_cv_header_osp_osp_h=$ac_header_preproc
  45977. fi
  45978. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
  45979. $as_echo "$ac_cv_header_osp_osp_h" >&6; }
  45980. fi
  45981. if test "x$ac_cv_header_osp_osp_h" = x""yes; then
  45982. osptk_header_found=yes
  45983. else
  45984. osptk_header_found=no
  45985. fi
  45986. CPPFLAGS="${osptk_saved_cppflags}"
  45987. # check for the library
  45988. if test "${osptk_header_found}" = "yes"; then
  45989. osptk_extralibs="-lssl -lcrypto"
  45990. { $as_echo "$as_me:$LINENO: checking for OSPPInit in -losptk" >&5
  45991. $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
  45992. if test "${ac_cv_lib_osptk_OSPPInit+set}" = set; then
  45993. $as_echo_n "(cached) " >&6
  45994. else
  45995. ac_check_lib_save_LIBS=$LIBS
  45996. LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $LIBS"
  45997. cat >conftest.$ac_ext <<_ACEOF
  45998. /* confdefs.h. */
  45999. _ACEOF
  46000. cat confdefs.h >>conftest.$ac_ext
  46001. cat >>conftest.$ac_ext <<_ACEOF
  46002. /* end confdefs.h. */
  46003. /* Override any GCC internal prototype to avoid an error.
  46004. Use char because int might match the return type of a GCC
  46005. builtin and then its argument prototype would still apply. */
  46006. #ifdef __cplusplus
  46007. extern "C"
  46008. #endif
  46009. char OSPPInit ();
  46010. int
  46011. main ()
  46012. {
  46013. return OSPPInit ();
  46014. ;
  46015. return 0;
  46016. }
  46017. _ACEOF
  46018. rm -f conftest.$ac_objext conftest$ac_exeext
  46019. if { (ac_try="$ac_link"
  46020. case "(($ac_try" in
  46021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46022. *) ac_try_echo=$ac_try;;
  46023. esac
  46024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46025. $as_echo "$ac_try_echo") >&5
  46026. (eval "$ac_link") 2>conftest.er1
  46027. ac_status=$?
  46028. grep -v '^ *+' conftest.er1 >conftest.err
  46029. rm -f conftest.er1
  46030. cat conftest.err >&5
  46031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46032. (exit $ac_status); } && {
  46033. test -z "$ac_c_werror_flag" ||
  46034. test ! -s conftest.err
  46035. } && test -s conftest$ac_exeext && {
  46036. test "$cross_compiling" = yes ||
  46037. $as_test_x conftest$ac_exeext
  46038. }; then
  46039. ac_cv_lib_osptk_OSPPInit=yes
  46040. else
  46041. $as_echo "$as_me: failed program was:" >&5
  46042. sed 's/^/| /' conftest.$ac_ext >&5
  46043. ac_cv_lib_osptk_OSPPInit=no
  46044. fi
  46045. rm -rf conftest.dSYM
  46046. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46047. conftest$ac_exeext conftest.$ac_ext
  46048. LIBS=$ac_check_lib_save_LIBS
  46049. fi
  46050. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPInit" >&5
  46051. $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
  46052. if test "x$ac_cv_lib_osptk_OSPPInit" = x""yes; then
  46053. osptk_library_found=yes
  46054. else
  46055. osptk_library_found=no
  46056. fi
  46057. # check OSP Toolkit version
  46058. if test "${osptk_library_found}" = "yes"; then
  46059. { $as_echo "$as_me:$LINENO: checking if OSP Toolkit version is compatible with app_osplookup" >&5
  46060. $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
  46061. osptk_saved_cppflags="${CPPFLAGS}"
  46062. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  46063. if test "$cross_compiling" = yes; then
  46064. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  46065. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  46066. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  46067. See \`config.log' for more details." >&5
  46068. $as_echo "$as_me: error: cannot run test program while cross compiling
  46069. See \`config.log' for more details." >&2;}
  46070. { (exit 1); exit 1; }; }; }
  46071. else
  46072. cat >conftest.$ac_ext <<_ACEOF
  46073. /* confdefs.h. */
  46074. _ACEOF
  46075. cat confdefs.h >>conftest.$ac_ext
  46076. cat >>conftest.$ac_ext <<_ACEOF
  46077. /* end confdefs.h. */
  46078. #include <osp/osp.h>
  46079. int main(void) {
  46080. int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
  46081. int req = 3 * 10000 + 6 * 100 + 0;
  46082. return (ver < req) ? 1 : 0;
  46083. }
  46084. _ACEOF
  46085. rm -f conftest$ac_exeext
  46086. if { (ac_try="$ac_link"
  46087. case "(($ac_try" in
  46088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46089. *) ac_try_echo=$ac_try;;
  46090. esac
  46091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46092. $as_echo "$ac_try_echo") >&5
  46093. (eval "$ac_link") 2>&5
  46094. ac_status=$?
  46095. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46096. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  46097. { (case "(($ac_try" in
  46098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46099. *) ac_try_echo=$ac_try;;
  46100. esac
  46101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46102. $as_echo "$ac_try_echo") >&5
  46103. (eval "$ac_try") 2>&5
  46104. ac_status=$?
  46105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46106. (exit $ac_status); }; }; then
  46107. osptk_compatible=yes
  46108. else
  46109. $as_echo "$as_me: program exited with status $ac_status" >&5
  46110. $as_echo "$as_me: failed program was:" >&5
  46111. sed 's/^/| /' conftest.$ac_ext >&5
  46112. ( exit $ac_status )
  46113. osptk_compatible=no
  46114. fi
  46115. rm -rf conftest.dSYM
  46116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  46117. fi
  46118. CPPFLAGS="${osptk_saved_cppflags}"
  46119. if test "${osptk_compatible}" = "yes"; then
  46120. { $as_echo "$as_me:$LINENO: result: yes" >&5
  46121. $as_echo "yes" >&6; }
  46122. PBX_OSPTK=1
  46123. OSPTK_INCLUDE="${osptk_cflags}"
  46124. OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
  46125. cat >>confdefs.h <<_ACEOF
  46126. #define HAVE_OSPTK 1
  46127. _ACEOF
  46128. else
  46129. { $as_echo "$as_me:$LINENO: result: no" >&5
  46130. $as_echo "no" >&6; }
  46131. fi
  46132. fi
  46133. fi
  46134. fi
  46135. fi
  46136. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  46137. pbxlibdir=""
  46138. # if --with-SRTP=DIR has been specified, use it.
  46139. if test "x${SRTP_DIR}" != "x"; then
  46140. if test -d ${SRTP_DIR}/lib; then
  46141. pbxlibdir="-L${SRTP_DIR}/lib"
  46142. else
  46143. pbxlibdir="-L${SRTP_DIR}"
  46144. fi
  46145. fi
  46146. pbxfuncname="srtp_init"
  46147. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  46148. AST_SRTP_FOUND=yes
  46149. else
  46150. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  46151. CFLAGS="${CFLAGS} "
  46152. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  46153. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsrtp" >&5
  46154. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  46155. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  46156. $as_echo_n "(cached) " >&6
  46157. else
  46158. ac_check_lib_save_LIBS=$LIBS
  46159. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  46160. cat >conftest.$ac_ext <<_ACEOF
  46161. /* confdefs.h. */
  46162. _ACEOF
  46163. cat confdefs.h >>conftest.$ac_ext
  46164. cat >>conftest.$ac_ext <<_ACEOF
  46165. /* end confdefs.h. */
  46166. /* Override any GCC internal prototype to avoid an error.
  46167. Use char because int might match the return type of a GCC
  46168. builtin and then its argument prototype would still apply. */
  46169. #ifdef __cplusplus
  46170. extern "C"
  46171. #endif
  46172. char ${pbxfuncname} ();
  46173. int
  46174. main ()
  46175. {
  46176. return ${pbxfuncname} ();
  46177. ;
  46178. return 0;
  46179. }
  46180. _ACEOF
  46181. rm -f conftest.$ac_objext conftest$ac_exeext
  46182. if { (ac_try="$ac_link"
  46183. case "(($ac_try" in
  46184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46185. *) ac_try_echo=$ac_try;;
  46186. esac
  46187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46188. $as_echo "$ac_try_echo") >&5
  46189. (eval "$ac_link") 2>conftest.er1
  46190. ac_status=$?
  46191. grep -v '^ *+' conftest.er1 >conftest.err
  46192. rm -f conftest.er1
  46193. cat conftest.err >&5
  46194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46195. (exit $ac_status); } && {
  46196. test -z "$ac_c_werror_flag" ||
  46197. test ! -s conftest.err
  46198. } && test -s conftest$ac_exeext && {
  46199. test "$cross_compiling" = yes ||
  46200. $as_test_x conftest$ac_exeext
  46201. }; then
  46202. eval "$as_ac_Lib=yes"
  46203. else
  46204. $as_echo "$as_me: failed program was:" >&5
  46205. sed 's/^/| /' conftest.$ac_ext >&5
  46206. eval "$as_ac_Lib=no"
  46207. fi
  46208. rm -rf conftest.dSYM
  46209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46210. conftest$ac_exeext conftest.$ac_ext
  46211. LIBS=$ac_check_lib_save_LIBS
  46212. fi
  46213. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  46214. $as_echo "$as_val"'`
  46215. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  46216. $as_echo "$ac_res" >&6; }
  46217. as_val=`eval 'as_val=${'$as_ac_Lib'}
  46218. $as_echo "$as_val"'`
  46219. if test "x$as_val" = x""yes; then
  46220. AST_SRTP_FOUND=yes
  46221. else
  46222. AST_SRTP_FOUND=no
  46223. fi
  46224. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  46225. fi
  46226. # now check for the header.
  46227. if test "${AST_SRTP_FOUND}" = "yes"; then
  46228. SRTP_LIB="${pbxlibdir} -lsrtp "
  46229. # if --with-SRTP=DIR has been specified, use it.
  46230. if test "x${SRTP_DIR}" != "x"; then
  46231. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  46232. fi
  46233. SRTP_INCLUDE="${SRTP_INCLUDE} "
  46234. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  46235. SRTP_HEADER_FOUND="1"
  46236. else # check for the header
  46237. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  46238. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  46239. if test "${ac_cv_header_srtp_srtp_h+set}" = set; then
  46240. { $as_echo "$as_me:$LINENO: checking for srtp/srtp.h" >&5
  46241. $as_echo_n "checking for srtp/srtp.h... " >&6; }
  46242. if test "${ac_cv_header_srtp_srtp_h+set}" = set; then
  46243. $as_echo_n "(cached) " >&6
  46244. fi
  46245. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_srtp_srtp_h" >&5
  46246. $as_echo "$ac_cv_header_srtp_srtp_h" >&6; }
  46247. else
  46248. # Is the header compilable?
  46249. { $as_echo "$as_me:$LINENO: checking srtp/srtp.h usability" >&5
  46250. $as_echo_n "checking srtp/srtp.h usability... " >&6; }
  46251. cat >conftest.$ac_ext <<_ACEOF
  46252. /* confdefs.h. */
  46253. _ACEOF
  46254. cat confdefs.h >>conftest.$ac_ext
  46255. cat >>conftest.$ac_ext <<_ACEOF
  46256. /* end confdefs.h. */
  46257. $ac_includes_default
  46258. #include <srtp/srtp.h>
  46259. _ACEOF
  46260. rm -f conftest.$ac_objext
  46261. if { (ac_try="$ac_compile"
  46262. case "(($ac_try" in
  46263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46264. *) ac_try_echo=$ac_try;;
  46265. esac
  46266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46267. $as_echo "$ac_try_echo") >&5
  46268. (eval "$ac_compile") 2>conftest.er1
  46269. ac_status=$?
  46270. grep -v '^ *+' conftest.er1 >conftest.err
  46271. rm -f conftest.er1
  46272. cat conftest.err >&5
  46273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46274. (exit $ac_status); } && {
  46275. test -z "$ac_c_werror_flag" ||
  46276. test ! -s conftest.err
  46277. } && test -s conftest.$ac_objext; then
  46278. ac_header_compiler=yes
  46279. else
  46280. $as_echo "$as_me: failed program was:" >&5
  46281. sed 's/^/| /' conftest.$ac_ext >&5
  46282. ac_header_compiler=no
  46283. fi
  46284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46285. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46286. $as_echo "$ac_header_compiler" >&6; }
  46287. # Is the header present?
  46288. { $as_echo "$as_me:$LINENO: checking srtp/srtp.h presence" >&5
  46289. $as_echo_n "checking srtp/srtp.h presence... " >&6; }
  46290. cat >conftest.$ac_ext <<_ACEOF
  46291. /* confdefs.h. */
  46292. _ACEOF
  46293. cat confdefs.h >>conftest.$ac_ext
  46294. cat >>conftest.$ac_ext <<_ACEOF
  46295. /* end confdefs.h. */
  46296. #include <srtp/srtp.h>
  46297. _ACEOF
  46298. if { (ac_try="$ac_cpp conftest.$ac_ext"
  46299. case "(($ac_try" in
  46300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46301. *) ac_try_echo=$ac_try;;
  46302. esac
  46303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46304. $as_echo "$ac_try_echo") >&5
  46305. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46306. ac_status=$?
  46307. grep -v '^ *+' conftest.er1 >conftest.err
  46308. rm -f conftest.er1
  46309. cat conftest.err >&5
  46310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46311. (exit $ac_status); } >/dev/null && {
  46312. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46313. test ! -s conftest.err
  46314. }; then
  46315. ac_header_preproc=yes
  46316. else
  46317. $as_echo "$as_me: failed program was:" >&5
  46318. sed 's/^/| /' conftest.$ac_ext >&5
  46319. ac_header_preproc=no
  46320. fi
  46321. rm -f conftest.err conftest.$ac_ext
  46322. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46323. $as_echo "$ac_header_preproc" >&6; }
  46324. # So? What about this header?
  46325. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46326. yes:no: )
  46327. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  46328. $as_echo "$as_me: WARNING: srtp/srtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  46329. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: proceeding with the compiler's result" >&5
  46330. $as_echo "$as_me: WARNING: srtp/srtp.h: proceeding with the compiler's result" >&2;}
  46331. ac_header_preproc=yes
  46332. ;;
  46333. no:yes:* )
  46334. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: present but cannot be compiled" >&5
  46335. $as_echo "$as_me: WARNING: srtp/srtp.h: present but cannot be compiled" >&2;}
  46336. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: check for missing prerequisite headers?" >&5
  46337. $as_echo "$as_me: WARNING: srtp/srtp.h: check for missing prerequisite headers?" >&2;}
  46338. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: see the Autoconf documentation" >&5
  46339. $as_echo "$as_me: WARNING: srtp/srtp.h: see the Autoconf documentation" >&2;}
  46340. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: section \"Present But Cannot Be Compiled\"" >&5
  46341. $as_echo "$as_me: WARNING: srtp/srtp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  46342. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: proceeding with the preprocessor's result" >&5
  46343. $as_echo "$as_me: WARNING: srtp/srtp.h: proceeding with the preprocessor's result" >&2;}
  46344. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: in the future, the compiler will take precedence" >&5
  46345. $as_echo "$as_me: WARNING: srtp/srtp.h: in the future, the compiler will take precedence" >&2;}
  46346. ( cat <<\_ASBOX
  46347. ## ------------------------------------------ ##
  46348. ## Report this to https://issues.asterisk.org ##
  46349. ## ------------------------------------------ ##
  46350. _ASBOX
  46351. ) | sed "s/^/$as_me: WARNING: /" >&2
  46352. ;;
  46353. esac
  46354. { $as_echo "$as_me:$LINENO: checking for srtp/srtp.h" >&5
  46355. $as_echo_n "checking for srtp/srtp.h... " >&6; }
  46356. if test "${ac_cv_header_srtp_srtp_h+set}" = set; then
  46357. $as_echo_n "(cached) " >&6
  46358. else
  46359. ac_cv_header_srtp_srtp_h=$ac_header_preproc
  46360. fi
  46361. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_srtp_srtp_h" >&5
  46362. $as_echo "$ac_cv_header_srtp_srtp_h" >&6; }
  46363. fi
  46364. if test "x$ac_cv_header_srtp_srtp_h" = x""yes; then
  46365. SRTP_HEADER_FOUND=1
  46366. else
  46367. SRTP_HEADER_FOUND=0
  46368. fi
  46369. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  46370. fi
  46371. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  46372. SRTP_LIB=""
  46373. SRTP_INCLUDE=""
  46374. else
  46375. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  46376. SRTP_LIB=""
  46377. fi
  46378. PBX_SRTP=1
  46379. cat >>confdefs.h <<_ACEOF
  46380. #define HAVE_SRTP 1
  46381. _ACEOF
  46382. fi
  46383. fi
  46384. fi
  46385. if test "$PBX_SRTP" = "1";
  46386. then
  46387. saved_libs="${LIBS}"
  46388. saved_ldflags="${LDFLAGS}"
  46389. saved_cflags="${CFLAGS}"
  46390. LIBS="${LIBS} ${SRTP_LIB}"
  46391. LDFLAGS="${LDFLAGS} -shared -fPIC"
  46392. CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
  46393. { $as_echo "$as_me:$LINENO: checking for the ability of -lsrtp to be linked in a shared object" >&5
  46394. $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  46395. cat >conftest.$ac_ext <<_ACEOF
  46396. /* confdefs.h. */
  46397. _ACEOF
  46398. cat confdefs.h >>conftest.$ac_ext
  46399. cat >>conftest.$ac_ext <<_ACEOF
  46400. /* end confdefs.h. */
  46401. #include <srtp/srtp.h>
  46402. int
  46403. main ()
  46404. {
  46405. srtp_init();
  46406. ;
  46407. return 0;
  46408. }
  46409. _ACEOF
  46410. rm -f conftest.$ac_objext conftest$ac_exeext
  46411. if { (ac_try="$ac_link"
  46412. case "(($ac_try" in
  46413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46414. *) ac_try_echo=$ac_try;;
  46415. esac
  46416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46417. $as_echo "$ac_try_echo") >&5
  46418. (eval "$ac_link") 2>conftest.er1
  46419. ac_status=$?
  46420. grep -v '^ *+' conftest.er1 >conftest.err
  46421. rm -f conftest.er1
  46422. cat conftest.err >&5
  46423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46424. (exit $ac_status); } && {
  46425. test -z "$ac_c_werror_flag" ||
  46426. test ! -s conftest.err
  46427. } && test -s conftest$ac_exeext && {
  46428. test "$cross_compiling" = yes ||
  46429. $as_test_x conftest$ac_exeext
  46430. }; then
  46431. { $as_echo "$as_me:$LINENO: result: yes" >&5
  46432. $as_echo "yes" >&6; }
  46433. else
  46434. $as_echo "$as_me: failed program was:" >&5
  46435. sed 's/^/| /' conftest.$ac_ext >&5
  46436. { $as_echo "$as_me:$LINENO: result: no" >&5
  46437. $as_echo "no" >&6; }
  46438. { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
  46439. $as_echo "$as_me: WARNING: ***" >&2;}
  46440. { $as_echo "$as_me:$LINENO: WARNING: *** libsrtp could not be linked as a shared object." >&5
  46441. $as_echo "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
  46442. { $as_echo "$as_me:$LINENO: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
  46443. $as_echo "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
  46444. { $as_echo "$as_me:$LINENO: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  46445. $as_echo "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
  46446. { $as_echo "$as_me:$LINENO: WARNING: *** replacing /usr with the prefix of your choice." >&5
  46447. $as_echo "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
  46448. { $as_echo "$as_me:$LINENO: WARNING: *** After re-installing libsrtp" >&5
  46449. $as_echo "$as_me: WARNING: *** After re-installing libsrtp" >&2;}
  46450. { $as_echo "$as_me:$LINENO: WARNING: *** configure script." >&5
  46451. $as_echo "$as_me: WARNING: *** configure script." >&2;}
  46452. { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
  46453. $as_echo "$as_me: WARNING: ***" >&2;}
  46454. { $as_echo "$as_me:$LINENO: WARNING: *** If you do not need SRTP support re-run configure" >&5
  46455. $as_echo "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  46456. { $as_echo "$as_me:$LINENO: WARNING: *** with the --without-srtp option." >&5
  46457. $as_echo "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  46458. exit 1
  46459. fi
  46460. rm -rf conftest.dSYM
  46461. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46462. conftest$ac_exeext conftest.$ac_ext
  46463. LIBS="${saved_libs}"
  46464. LDFLAGS="${saved_ldflags}"
  46465. CFLAGS="${saved_cflags}"
  46466. fi
  46467. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  46468. PBX_GMIME=0
  46469. if test -n "$ac_tool_prefix"; then
  46470. # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
  46471. set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
  46472. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  46473. $as_echo_n "checking for $ac_word... " >&6; }
  46474. if test "${ac_cv_path_CONFIG_GMIME+set}" = set; then
  46475. $as_echo_n "(cached) " >&6
  46476. else
  46477. case $CONFIG_GMIME in
  46478. [\\/]* | ?:[\\/]*)
  46479. ac_cv_path_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test with a path.
  46480. ;;
  46481. *)
  46482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  46483. as_dummy="${GMIME_DIR}/bin:$PATH"
  46484. for as_dir in $as_dummy
  46485. do
  46486. IFS=$as_save_IFS
  46487. test -z "$as_dir" && as_dir=.
  46488. for ac_exec_ext in '' $ac_executable_extensions; do
  46489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  46490. ac_cv_path_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
  46491. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  46492. break 2
  46493. fi
  46494. done
  46495. done
  46496. IFS=$as_save_IFS
  46497. ;;
  46498. esac
  46499. fi
  46500. CONFIG_GMIME=$ac_cv_path_CONFIG_GMIME
  46501. if test -n "$CONFIG_GMIME"; then
  46502. { $as_echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
  46503. $as_echo "$CONFIG_GMIME" >&6; }
  46504. else
  46505. { $as_echo "$as_me:$LINENO: result: no" >&5
  46506. $as_echo "no" >&6; }
  46507. fi
  46508. fi
  46509. if test -z "$ac_cv_path_CONFIG_GMIME"; then
  46510. ac_pt_CONFIG_GMIME=$CONFIG_GMIME
  46511. # Extract the first word of "gmime-config", so it can be a program name with args.
  46512. set dummy gmime-config; ac_word=$2
  46513. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  46514. $as_echo_n "checking for $ac_word... " >&6; }
  46515. if test "${ac_cv_path_ac_pt_CONFIG_GMIME+set}" = set; then
  46516. $as_echo_n "(cached) " >&6
  46517. else
  46518. case $ac_pt_CONFIG_GMIME in
  46519. [\\/]* | ?:[\\/]*)
  46520. ac_cv_path_ac_pt_CONFIG_GMIME="$ac_pt_CONFIG_GMIME" # Let the user override the test with a path.
  46521. ;;
  46522. *)
  46523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  46524. as_dummy="${GMIME_DIR}/bin:$PATH"
  46525. for as_dir in $as_dummy
  46526. do
  46527. IFS=$as_save_IFS
  46528. test -z "$as_dir" && as_dir=.
  46529. for ac_exec_ext in '' $ac_executable_extensions; do
  46530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  46531. ac_cv_path_ac_pt_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
  46532. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  46533. break 2
  46534. fi
  46535. done
  46536. done
  46537. IFS=$as_save_IFS
  46538. ;;
  46539. esac
  46540. fi
  46541. ac_pt_CONFIG_GMIME=$ac_cv_path_ac_pt_CONFIG_GMIME
  46542. if test -n "$ac_pt_CONFIG_GMIME"; then
  46543. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_GMIME" >&5
  46544. $as_echo "$ac_pt_CONFIG_GMIME" >&6; }
  46545. else
  46546. { $as_echo "$as_me:$LINENO: result: no" >&5
  46547. $as_echo "no" >&6; }
  46548. fi
  46549. if test "x$ac_pt_CONFIG_GMIME" = x; then
  46550. CONFIG_GMIME="No"
  46551. else
  46552. case $cross_compiling:$ac_tool_warned in
  46553. yes:)
  46554. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  46555. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  46556. ac_tool_warned=yes ;;
  46557. esac
  46558. CONFIG_GMIME=$ac_pt_CONFIG_GMIME
  46559. fi
  46560. else
  46561. CONFIG_GMIME="$ac_cv_path_CONFIG_GMIME"
  46562. fi
  46563. if test ! "x${CONFIG_GMIME}" = xNo; then
  46564. if test x"" = x ; then A=--cflags ; else A="" ; fi
  46565. GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
  46566. if test x"" = x ; then A=--libs ; else A="" ; fi
  46567. GMIME_LIB=$(${CONFIG_GMIME} $A)
  46568. if test x"#include <gmime/gmime.h>" != x ; then
  46569. saved_cppflags="${CPPFLAGS}"
  46570. if test "x${GMIME_DIR}" != "x"; then
  46571. GMIME_INCLUDE="-I${GMIME_DIR}/include"
  46572. fi
  46573. CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
  46574. saved_libs="${LIBS}"
  46575. LIBS="${GMIME_LIB}"
  46576. cat >conftest.$ac_ext <<_ACEOF
  46577. /* confdefs.h. */
  46578. _ACEOF
  46579. cat confdefs.h >>conftest.$ac_ext
  46580. cat >>conftest.$ac_ext <<_ACEOF
  46581. /* end confdefs.h. */
  46582. #include <gmime/gmime.h>
  46583. int
  46584. main ()
  46585. {
  46586. gboolean q = g_mime_check_version(0,0,0);;
  46587. ;
  46588. return 0;
  46589. }
  46590. _ACEOF
  46591. rm -f conftest.$ac_objext conftest$ac_exeext
  46592. if { (ac_try="$ac_link"
  46593. case "(($ac_try" in
  46594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46595. *) ac_try_echo=$ac_try;;
  46596. esac
  46597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46598. $as_echo "$ac_try_echo") >&5
  46599. (eval "$ac_link") 2>conftest.er1
  46600. ac_status=$?
  46601. grep -v '^ *+' conftest.er1 >conftest.err
  46602. rm -f conftest.er1
  46603. cat conftest.err >&5
  46604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46605. (exit $ac_status); } && {
  46606. test -z "$ac_c_werror_flag" ||
  46607. test ! -s conftest.err
  46608. } && test -s conftest$ac_exeext && {
  46609. test "$cross_compiling" = yes ||
  46610. $as_test_x conftest$ac_exeext
  46611. }; then
  46612. PBX_GMIME=1
  46613. cat >>confdefs.h <<\_ACEOF
  46614. #define HAVE_GMIME 1
  46615. _ACEOF
  46616. else
  46617. $as_echo "$as_me: failed program was:" >&5
  46618. sed 's/^/| /' conftest.$ac_ext >&5
  46619. fi
  46620. rm -rf conftest.dSYM
  46621. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46622. conftest$ac_exeext conftest.$ac_ext
  46623. CPPFLAGS="${saved_cppflags}"
  46624. LIBS="${saved_libs}"
  46625. else
  46626. PBX_GMIME=1
  46627. cat >>confdefs.h <<\_ACEOF
  46628. #define HAVE_GMIME 1
  46629. _ACEOF
  46630. fi
  46631. fi
  46632. fi
  46633. if test "x${PBX_GMIME}" = "x0" -a "${PKGCONFIG}" != "No"; then
  46634. # Later versions of GMime use pkg-config
  46635. for ver in 2.0 2.2 2.4 2.6; do
  46636. if ! ${PKGCONFIG} --exists gmime-$ver; then
  46637. continue
  46638. fi
  46639. # If we got here, we have this version:
  46640. GMIME_INCLUDE=$(${PKGCONFIG} gmime-$ver --cflags 2>/dev/null)
  46641. GMIME_LIB=$(${PKGCONFIG} gmime-$ver --libs)
  46642. PBX_GMIME=1
  46643. cat >>confdefs.h <<\_ACEOF
  46644. #define HAVE_GMIME 1
  46645. _ACEOF
  46646. break;
  46647. done
  46648. fi
  46649. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  46650. pbxlibdir=""
  46651. # if --with-HOARD=DIR has been specified, use it.
  46652. if test "x${HOARD_DIR}" != "x"; then
  46653. if test -d ${HOARD_DIR}/lib; then
  46654. pbxlibdir="-L${HOARD_DIR}/lib"
  46655. else
  46656. pbxlibdir="-L${HOARD_DIR}"
  46657. fi
  46658. fi
  46659. pbxfuncname="malloc"
  46660. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  46661. AST_HOARD_FOUND=yes
  46662. else
  46663. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  46664. CFLAGS="${CFLAGS} "
  46665. as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
  46666. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lhoard" >&5
  46667. $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
  46668. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  46669. $as_echo_n "(cached) " >&6
  46670. else
  46671. ac_check_lib_save_LIBS=$LIBS
  46672. LIBS="-lhoard ${pbxlibdir} $LIBS"
  46673. cat >conftest.$ac_ext <<_ACEOF
  46674. /* confdefs.h. */
  46675. _ACEOF
  46676. cat confdefs.h >>conftest.$ac_ext
  46677. cat >>conftest.$ac_ext <<_ACEOF
  46678. /* end confdefs.h. */
  46679. /* Override any GCC internal prototype to avoid an error.
  46680. Use char because int might match the return type of a GCC
  46681. builtin and then its argument prototype would still apply. */
  46682. #ifdef __cplusplus
  46683. extern "C"
  46684. #endif
  46685. char ${pbxfuncname} ();
  46686. int
  46687. main ()
  46688. {
  46689. return ${pbxfuncname} ();
  46690. ;
  46691. return 0;
  46692. }
  46693. _ACEOF
  46694. rm -f conftest.$ac_objext conftest$ac_exeext
  46695. if { (ac_try="$ac_link"
  46696. case "(($ac_try" in
  46697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46698. *) ac_try_echo=$ac_try;;
  46699. esac
  46700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46701. $as_echo "$ac_try_echo") >&5
  46702. (eval "$ac_link") 2>conftest.er1
  46703. ac_status=$?
  46704. grep -v '^ *+' conftest.er1 >conftest.err
  46705. rm -f conftest.er1
  46706. cat conftest.err >&5
  46707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46708. (exit $ac_status); } && {
  46709. test -z "$ac_c_werror_flag" ||
  46710. test ! -s conftest.err
  46711. } && test -s conftest$ac_exeext && {
  46712. test "$cross_compiling" = yes ||
  46713. $as_test_x conftest$ac_exeext
  46714. }; then
  46715. eval "$as_ac_Lib=yes"
  46716. else
  46717. $as_echo "$as_me: failed program was:" >&5
  46718. sed 's/^/| /' conftest.$ac_ext >&5
  46719. eval "$as_ac_Lib=no"
  46720. fi
  46721. rm -rf conftest.dSYM
  46722. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46723. conftest$ac_exeext conftest.$ac_ext
  46724. LIBS=$ac_check_lib_save_LIBS
  46725. fi
  46726. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  46727. $as_echo "$as_val"'`
  46728. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  46729. $as_echo "$ac_res" >&6; }
  46730. as_val=`eval 'as_val=${'$as_ac_Lib'}
  46731. $as_echo "$as_val"'`
  46732. if test "x$as_val" = x""yes; then
  46733. AST_HOARD_FOUND=yes
  46734. else
  46735. AST_HOARD_FOUND=no
  46736. fi
  46737. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  46738. fi
  46739. # now check for the header.
  46740. if test "${AST_HOARD_FOUND}" = "yes"; then
  46741. HOARD_LIB="${pbxlibdir} -lhoard "
  46742. # if --with-HOARD=DIR has been specified, use it.
  46743. if test "x${HOARD_DIR}" != "x"; then
  46744. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  46745. fi
  46746. HOARD_INCLUDE="${HOARD_INCLUDE} "
  46747. if test "x" = "x" ; then # no header, assume found
  46748. HOARD_HEADER_FOUND="1"
  46749. else # check for the header
  46750. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  46751. CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
  46752. if test "${ac_cv_header_+set}" = set; then
  46753. { $as_echo "$as_me:$LINENO: checking for " >&5
  46754. $as_echo_n "checking for ... " >&6; }
  46755. if test "${ac_cv_header_+set}" = set; then
  46756. $as_echo_n "(cached) " >&6
  46757. fi
  46758. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  46759. $as_echo "$ac_cv_header_" >&6; }
  46760. else
  46761. # Is the header compilable?
  46762. { $as_echo "$as_me:$LINENO: checking usability" >&5
  46763. $as_echo_n "checking usability... " >&6; }
  46764. cat >conftest.$ac_ext <<_ACEOF
  46765. /* confdefs.h. */
  46766. _ACEOF
  46767. cat confdefs.h >>conftest.$ac_ext
  46768. cat >>conftest.$ac_ext <<_ACEOF
  46769. /* end confdefs.h. */
  46770. $ac_includes_default
  46771. #include <>
  46772. _ACEOF
  46773. rm -f conftest.$ac_objext
  46774. if { (ac_try="$ac_compile"
  46775. case "(($ac_try" in
  46776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46777. *) ac_try_echo=$ac_try;;
  46778. esac
  46779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46780. $as_echo "$ac_try_echo") >&5
  46781. (eval "$ac_compile") 2>conftest.er1
  46782. ac_status=$?
  46783. grep -v '^ *+' conftest.er1 >conftest.err
  46784. rm -f conftest.er1
  46785. cat conftest.err >&5
  46786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46787. (exit $ac_status); } && {
  46788. test -z "$ac_c_werror_flag" ||
  46789. test ! -s conftest.err
  46790. } && test -s conftest.$ac_objext; then
  46791. ac_header_compiler=yes
  46792. else
  46793. $as_echo "$as_me: failed program was:" >&5
  46794. sed 's/^/| /' conftest.$ac_ext >&5
  46795. ac_header_compiler=no
  46796. fi
  46797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46798. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46799. $as_echo "$ac_header_compiler" >&6; }
  46800. # Is the header present?
  46801. { $as_echo "$as_me:$LINENO: checking presence" >&5
  46802. $as_echo_n "checking presence... " >&6; }
  46803. cat >conftest.$ac_ext <<_ACEOF
  46804. /* confdefs.h. */
  46805. _ACEOF
  46806. cat confdefs.h >>conftest.$ac_ext
  46807. cat >>conftest.$ac_ext <<_ACEOF
  46808. /* end confdefs.h. */
  46809. #include <>
  46810. _ACEOF
  46811. if { (ac_try="$ac_cpp conftest.$ac_ext"
  46812. case "(($ac_try" in
  46813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46814. *) ac_try_echo=$ac_try;;
  46815. esac
  46816. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46817. $as_echo "$ac_try_echo") >&5
  46818. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46819. ac_status=$?
  46820. grep -v '^ *+' conftest.er1 >conftest.err
  46821. rm -f conftest.er1
  46822. cat conftest.err >&5
  46823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46824. (exit $ac_status); } >/dev/null && {
  46825. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46826. test ! -s conftest.err
  46827. }; then
  46828. ac_header_preproc=yes
  46829. else
  46830. $as_echo "$as_me: failed program was:" >&5
  46831. sed 's/^/| /' conftest.$ac_ext >&5
  46832. ac_header_preproc=no
  46833. fi
  46834. rm -f conftest.err conftest.$ac_ext
  46835. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46836. $as_echo "$ac_header_preproc" >&6; }
  46837. # So? What about this header?
  46838. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46839. yes:no: )
  46840. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  46841. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  46842. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  46843. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  46844. ac_header_preproc=yes
  46845. ;;
  46846. no:yes:* )
  46847. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  46848. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  46849. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  46850. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  46851. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  46852. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  46853. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  46854. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  46855. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  46856. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  46857. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  46858. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  46859. ( cat <<\_ASBOX
  46860. ## ------------------------------------------ ##
  46861. ## Report this to https://issues.asterisk.org ##
  46862. ## ------------------------------------------ ##
  46863. _ASBOX
  46864. ) | sed "s/^/$as_me: WARNING: /" >&2
  46865. ;;
  46866. esac
  46867. { $as_echo "$as_me:$LINENO: checking for " >&5
  46868. $as_echo_n "checking for ... " >&6; }
  46869. if test "${ac_cv_header_+set}" = set; then
  46870. $as_echo_n "(cached) " >&6
  46871. else
  46872. ac_cv_header_=$ac_header_preproc
  46873. fi
  46874. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  46875. $as_echo "$ac_cv_header_" >&6; }
  46876. fi
  46877. if test "x$ac_cv_header_" = x""yes; then
  46878. HOARD_HEADER_FOUND=1
  46879. else
  46880. HOARD_HEADER_FOUND=0
  46881. fi
  46882. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  46883. fi
  46884. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  46885. HOARD_LIB=""
  46886. HOARD_INCLUDE=""
  46887. else
  46888. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  46889. HOARD_LIB=""
  46890. fi
  46891. PBX_HOARD=1
  46892. cat >>confdefs.h <<_ACEOF
  46893. #define HAVE_HOARD 1
  46894. _ACEOF
  46895. fi
  46896. fi
  46897. fi
  46898. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  46899. pbxlibdir=""
  46900. # if --with-FREETDS=DIR has been specified, use it.
  46901. if test "x${FREETDS_DIR}" != "x"; then
  46902. if test -d ${FREETDS_DIR}/lib; then
  46903. pbxlibdir="-L${FREETDS_DIR}/lib"
  46904. else
  46905. pbxlibdir="-L${FREETDS_DIR}"
  46906. fi
  46907. fi
  46908. pbxfuncname="dbinit"
  46909. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  46910. AST_FREETDS_FOUND=yes
  46911. else
  46912. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  46913. CFLAGS="${CFLAGS} "
  46914. as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
  46915. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsybdb" >&5
  46916. $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
  46917. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  46918. $as_echo_n "(cached) " >&6
  46919. else
  46920. ac_check_lib_save_LIBS=$LIBS
  46921. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  46922. cat >conftest.$ac_ext <<_ACEOF
  46923. /* confdefs.h. */
  46924. _ACEOF
  46925. cat confdefs.h >>conftest.$ac_ext
  46926. cat >>conftest.$ac_ext <<_ACEOF
  46927. /* end confdefs.h. */
  46928. /* Override any GCC internal prototype to avoid an error.
  46929. Use char because int might match the return type of a GCC
  46930. builtin and then its argument prototype would still apply. */
  46931. #ifdef __cplusplus
  46932. extern "C"
  46933. #endif
  46934. char ${pbxfuncname} ();
  46935. int
  46936. main ()
  46937. {
  46938. return ${pbxfuncname} ();
  46939. ;
  46940. return 0;
  46941. }
  46942. _ACEOF
  46943. rm -f conftest.$ac_objext conftest$ac_exeext
  46944. if { (ac_try="$ac_link"
  46945. case "(($ac_try" in
  46946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46947. *) ac_try_echo=$ac_try;;
  46948. esac
  46949. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46950. $as_echo "$ac_try_echo") >&5
  46951. (eval "$ac_link") 2>conftest.er1
  46952. ac_status=$?
  46953. grep -v '^ *+' conftest.er1 >conftest.err
  46954. rm -f conftest.er1
  46955. cat conftest.err >&5
  46956. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46957. (exit $ac_status); } && {
  46958. test -z "$ac_c_werror_flag" ||
  46959. test ! -s conftest.err
  46960. } && test -s conftest$ac_exeext && {
  46961. test "$cross_compiling" = yes ||
  46962. $as_test_x conftest$ac_exeext
  46963. }; then
  46964. eval "$as_ac_Lib=yes"
  46965. else
  46966. $as_echo "$as_me: failed program was:" >&5
  46967. sed 's/^/| /' conftest.$ac_ext >&5
  46968. eval "$as_ac_Lib=no"
  46969. fi
  46970. rm -rf conftest.dSYM
  46971. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46972. conftest$ac_exeext conftest.$ac_ext
  46973. LIBS=$ac_check_lib_save_LIBS
  46974. fi
  46975. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  46976. $as_echo "$as_val"'`
  46977. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  46978. $as_echo "$ac_res" >&6; }
  46979. as_val=`eval 'as_val=${'$as_ac_Lib'}
  46980. $as_echo "$as_val"'`
  46981. if test "x$as_val" = x""yes; then
  46982. AST_FREETDS_FOUND=yes
  46983. else
  46984. AST_FREETDS_FOUND=no
  46985. fi
  46986. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  46987. fi
  46988. # now check for the header.
  46989. if test "${AST_FREETDS_FOUND}" = "yes"; then
  46990. FREETDS_LIB="${pbxlibdir} -lsybdb "
  46991. # if --with-FREETDS=DIR has been specified, use it.
  46992. if test "x${FREETDS_DIR}" != "x"; then
  46993. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  46994. fi
  46995. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  46996. if test "xsybdb.h" = "x" ; then # no header, assume found
  46997. FREETDS_HEADER_FOUND="1"
  46998. else # check for the header
  46999. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  47000. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  47001. if test "${ac_cv_header_sybdb_h+set}" = set; then
  47002. { $as_echo "$as_me:$LINENO: checking for sybdb.h" >&5
  47003. $as_echo_n "checking for sybdb.h... " >&6; }
  47004. if test "${ac_cv_header_sybdb_h+set}" = set; then
  47005. $as_echo_n "(cached) " >&6
  47006. fi
  47007. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
  47008. $as_echo "$ac_cv_header_sybdb_h" >&6; }
  47009. else
  47010. # Is the header compilable?
  47011. { $as_echo "$as_me:$LINENO: checking sybdb.h usability" >&5
  47012. $as_echo_n "checking sybdb.h usability... " >&6; }
  47013. cat >conftest.$ac_ext <<_ACEOF
  47014. /* confdefs.h. */
  47015. _ACEOF
  47016. cat confdefs.h >>conftest.$ac_ext
  47017. cat >>conftest.$ac_ext <<_ACEOF
  47018. /* end confdefs.h. */
  47019. $ac_includes_default
  47020. #include <sybdb.h>
  47021. _ACEOF
  47022. rm -f conftest.$ac_objext
  47023. if { (ac_try="$ac_compile"
  47024. case "(($ac_try" in
  47025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47026. *) ac_try_echo=$ac_try;;
  47027. esac
  47028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47029. $as_echo "$ac_try_echo") >&5
  47030. (eval "$ac_compile") 2>conftest.er1
  47031. ac_status=$?
  47032. grep -v '^ *+' conftest.er1 >conftest.err
  47033. rm -f conftest.er1
  47034. cat conftest.err >&5
  47035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47036. (exit $ac_status); } && {
  47037. test -z "$ac_c_werror_flag" ||
  47038. test ! -s conftest.err
  47039. } && test -s conftest.$ac_objext; then
  47040. ac_header_compiler=yes
  47041. else
  47042. $as_echo "$as_me: failed program was:" >&5
  47043. sed 's/^/| /' conftest.$ac_ext >&5
  47044. ac_header_compiler=no
  47045. fi
  47046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47047. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47048. $as_echo "$ac_header_compiler" >&6; }
  47049. # Is the header present?
  47050. { $as_echo "$as_me:$LINENO: checking sybdb.h presence" >&5
  47051. $as_echo_n "checking sybdb.h presence... " >&6; }
  47052. cat >conftest.$ac_ext <<_ACEOF
  47053. /* confdefs.h. */
  47054. _ACEOF
  47055. cat confdefs.h >>conftest.$ac_ext
  47056. cat >>conftest.$ac_ext <<_ACEOF
  47057. /* end confdefs.h. */
  47058. #include <sybdb.h>
  47059. _ACEOF
  47060. if { (ac_try="$ac_cpp conftest.$ac_ext"
  47061. case "(($ac_try" in
  47062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47063. *) ac_try_echo=$ac_try;;
  47064. esac
  47065. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47066. $as_echo "$ac_try_echo") >&5
  47067. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47068. ac_status=$?
  47069. grep -v '^ *+' conftest.er1 >conftest.err
  47070. rm -f conftest.er1
  47071. cat conftest.err >&5
  47072. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47073. (exit $ac_status); } >/dev/null && {
  47074. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  47075. test ! -s conftest.err
  47076. }; then
  47077. ac_header_preproc=yes
  47078. else
  47079. $as_echo "$as_me: failed program was:" >&5
  47080. sed 's/^/| /' conftest.$ac_ext >&5
  47081. ac_header_preproc=no
  47082. fi
  47083. rm -f conftest.err conftest.$ac_ext
  47084. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47085. $as_echo "$ac_header_preproc" >&6; }
  47086. # So? What about this header?
  47087. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47088. yes:no: )
  47089. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47090. $as_echo "$as_me: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47091. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the compiler's result" >&5
  47092. $as_echo "$as_me: WARNING: sybdb.h: proceeding with the compiler's result" >&2;}
  47093. ac_header_preproc=yes
  47094. ;;
  47095. no:yes:* )
  47096. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: present but cannot be compiled" >&5
  47097. $as_echo "$as_me: WARNING: sybdb.h: present but cannot be compiled" >&2;}
  47098. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: check for missing prerequisite headers?" >&5
  47099. $as_echo "$as_me: WARNING: sybdb.h: check for missing prerequisite headers?" >&2;}
  47100. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: see the Autoconf documentation" >&5
  47101. $as_echo "$as_me: WARNING: sybdb.h: see the Autoconf documentation" >&2;}
  47102. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&5
  47103. $as_echo "$as_me: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47104. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the preprocessor's result" >&5
  47105. $as_echo "$as_me: WARNING: sybdb.h: proceeding with the preprocessor's result" >&2;}
  47106. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: in the future, the compiler will take precedence" >&5
  47107. $as_echo "$as_me: WARNING: sybdb.h: in the future, the compiler will take precedence" >&2;}
  47108. ( cat <<\_ASBOX
  47109. ## ------------------------------------------ ##
  47110. ## Report this to https://issues.asterisk.org ##
  47111. ## ------------------------------------------ ##
  47112. _ASBOX
  47113. ) | sed "s/^/$as_me: WARNING: /" >&2
  47114. ;;
  47115. esac
  47116. { $as_echo "$as_me:$LINENO: checking for sybdb.h" >&5
  47117. $as_echo_n "checking for sybdb.h... " >&6; }
  47118. if test "${ac_cv_header_sybdb_h+set}" = set; then
  47119. $as_echo_n "(cached) " >&6
  47120. else
  47121. ac_cv_header_sybdb_h=$ac_header_preproc
  47122. fi
  47123. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
  47124. $as_echo "$ac_cv_header_sybdb_h" >&6; }
  47125. fi
  47126. if test "x$ac_cv_header_sybdb_h" = x""yes; then
  47127. FREETDS_HEADER_FOUND=1
  47128. else
  47129. FREETDS_HEADER_FOUND=0
  47130. fi
  47131. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47132. fi
  47133. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  47134. FREETDS_LIB=""
  47135. FREETDS_INCLUDE=""
  47136. else
  47137. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47138. FREETDS_LIB=""
  47139. fi
  47140. PBX_FREETDS=1
  47141. cat >>confdefs.h <<_ACEOF
  47142. #define HAVE_FREETDS 1
  47143. _ACEOF
  47144. fi
  47145. fi
  47146. fi
  47147. { $as_echo "$as_me:$LINENO: checking for tone_zone_find_by_num in -ltonezone" >&5
  47148. $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  47149. if test "${ac_cv_lib_tonezone_tone_zone_find_by_num+set}" = set; then
  47150. $as_echo_n "(cached) " >&6
  47151. else
  47152. ac_check_lib_save_LIBS=$LIBS
  47153. LIBS="-ltonezone $LIBS"
  47154. cat >conftest.$ac_ext <<_ACEOF
  47155. /* confdefs.h. */
  47156. _ACEOF
  47157. cat confdefs.h >>conftest.$ac_ext
  47158. cat >>conftest.$ac_ext <<_ACEOF
  47159. /* end confdefs.h. */
  47160. /* Override any GCC internal prototype to avoid an error.
  47161. Use char because int might match the return type of a GCC
  47162. builtin and then its argument prototype would still apply. */
  47163. #ifdef __cplusplus
  47164. extern "C"
  47165. #endif
  47166. char tone_zone_find_by_num ();
  47167. int
  47168. main ()
  47169. {
  47170. return tone_zone_find_by_num ();
  47171. ;
  47172. return 0;
  47173. }
  47174. _ACEOF
  47175. rm -f conftest.$ac_objext conftest$ac_exeext
  47176. if { (ac_try="$ac_link"
  47177. case "(($ac_try" in
  47178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47179. *) ac_try_echo=$ac_try;;
  47180. esac
  47181. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47182. $as_echo "$ac_try_echo") >&5
  47183. (eval "$ac_link") 2>conftest.er1
  47184. ac_status=$?
  47185. grep -v '^ *+' conftest.er1 >conftest.err
  47186. rm -f conftest.er1
  47187. cat conftest.err >&5
  47188. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47189. (exit $ac_status); } && {
  47190. test -z "$ac_c_werror_flag" ||
  47191. test ! -s conftest.err
  47192. } && test -s conftest$ac_exeext && {
  47193. test "$cross_compiling" = yes ||
  47194. $as_test_x conftest$ac_exeext
  47195. }; then
  47196. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  47197. else
  47198. $as_echo "$as_me: failed program was:" >&5
  47199. sed 's/^/| /' conftest.$ac_ext >&5
  47200. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  47201. fi
  47202. rm -rf conftest.dSYM
  47203. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47204. conftest$ac_exeext conftest.$ac_ext
  47205. LIBS=$ac_check_lib_save_LIBS
  47206. fi
  47207. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  47208. $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  47209. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = x""yes; then
  47210. tonezone_does_not_need_lm=yes
  47211. else
  47212. tonezone_does_not_need_lm=no
  47213. fi
  47214. if test "${tonezone_does_not_need_lm}" = "no" ; then
  47215. tonezone_extra="-lm"
  47216. fi
  47217. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  47218. pbxlibdir=""
  47219. # if --with-TONEZONE=DIR has been specified, use it.
  47220. if test "x${TONEZONE_DIR}" != "x"; then
  47221. if test -d ${TONEZONE_DIR}/lib; then
  47222. pbxlibdir="-L${TONEZONE_DIR}/lib"
  47223. else
  47224. pbxlibdir="-L${TONEZONE_DIR}"
  47225. fi
  47226. fi
  47227. pbxfuncname="tone_zone_find"
  47228. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  47229. AST_TONEZONE_FOUND=yes
  47230. else
  47231. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  47232. CFLAGS="${CFLAGS} "
  47233. as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
  47234. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
  47235. $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
  47236. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  47237. $as_echo_n "(cached) " >&6
  47238. else
  47239. ac_check_lib_save_LIBS=$LIBS
  47240. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  47241. cat >conftest.$ac_ext <<_ACEOF
  47242. /* confdefs.h. */
  47243. _ACEOF
  47244. cat confdefs.h >>conftest.$ac_ext
  47245. cat >>conftest.$ac_ext <<_ACEOF
  47246. /* end confdefs.h. */
  47247. /* Override any GCC internal prototype to avoid an error.
  47248. Use char because int might match the return type of a GCC
  47249. builtin and then its argument prototype would still apply. */
  47250. #ifdef __cplusplus
  47251. extern "C"
  47252. #endif
  47253. char ${pbxfuncname} ();
  47254. int
  47255. main ()
  47256. {
  47257. return ${pbxfuncname} ();
  47258. ;
  47259. return 0;
  47260. }
  47261. _ACEOF
  47262. rm -f conftest.$ac_objext conftest$ac_exeext
  47263. if { (ac_try="$ac_link"
  47264. case "(($ac_try" in
  47265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47266. *) ac_try_echo=$ac_try;;
  47267. esac
  47268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47269. $as_echo "$ac_try_echo") >&5
  47270. (eval "$ac_link") 2>conftest.er1
  47271. ac_status=$?
  47272. grep -v '^ *+' conftest.er1 >conftest.err
  47273. rm -f conftest.er1
  47274. cat conftest.err >&5
  47275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47276. (exit $ac_status); } && {
  47277. test -z "$ac_c_werror_flag" ||
  47278. test ! -s conftest.err
  47279. } && test -s conftest$ac_exeext && {
  47280. test "$cross_compiling" = yes ||
  47281. $as_test_x conftest$ac_exeext
  47282. }; then
  47283. eval "$as_ac_Lib=yes"
  47284. else
  47285. $as_echo "$as_me: failed program was:" >&5
  47286. sed 's/^/| /' conftest.$ac_ext >&5
  47287. eval "$as_ac_Lib=no"
  47288. fi
  47289. rm -rf conftest.dSYM
  47290. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47291. conftest$ac_exeext conftest.$ac_ext
  47292. LIBS=$ac_check_lib_save_LIBS
  47293. fi
  47294. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  47295. $as_echo "$as_val"'`
  47296. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  47297. $as_echo "$ac_res" >&6; }
  47298. as_val=`eval 'as_val=${'$as_ac_Lib'}
  47299. $as_echo "$as_val"'`
  47300. if test "x$as_val" = x""yes; then
  47301. AST_TONEZONE_FOUND=yes
  47302. else
  47303. AST_TONEZONE_FOUND=no
  47304. fi
  47305. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  47306. fi
  47307. # now check for the header.
  47308. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  47309. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  47310. # if --with-TONEZONE=DIR has been specified, use it.
  47311. if test "x${TONEZONE_DIR}" != "x"; then
  47312. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  47313. fi
  47314. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  47315. if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
  47316. TONEZONE_HEADER_FOUND="1"
  47317. else # check for the header
  47318. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  47319. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  47320. if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
  47321. { $as_echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
  47322. $as_echo_n "checking for dahdi/tonezone.h... " >&6; }
  47323. if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
  47324. $as_echo_n "(cached) " >&6
  47325. fi
  47326. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
  47327. $as_echo "$ac_cv_header_dahdi_tonezone_h" >&6; }
  47328. else
  47329. # Is the header compilable?
  47330. { $as_echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5
  47331. $as_echo_n "checking dahdi/tonezone.h usability... " >&6; }
  47332. cat >conftest.$ac_ext <<_ACEOF
  47333. /* confdefs.h. */
  47334. _ACEOF
  47335. cat confdefs.h >>conftest.$ac_ext
  47336. cat >>conftest.$ac_ext <<_ACEOF
  47337. /* end confdefs.h. */
  47338. $ac_includes_default
  47339. #include <dahdi/tonezone.h>
  47340. _ACEOF
  47341. rm -f conftest.$ac_objext
  47342. if { (ac_try="$ac_compile"
  47343. case "(($ac_try" in
  47344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47345. *) ac_try_echo=$ac_try;;
  47346. esac
  47347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47348. $as_echo "$ac_try_echo") >&5
  47349. (eval "$ac_compile") 2>conftest.er1
  47350. ac_status=$?
  47351. grep -v '^ *+' conftest.er1 >conftest.err
  47352. rm -f conftest.er1
  47353. cat conftest.err >&5
  47354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47355. (exit $ac_status); } && {
  47356. test -z "$ac_c_werror_flag" ||
  47357. test ! -s conftest.err
  47358. } && test -s conftest.$ac_objext; then
  47359. ac_header_compiler=yes
  47360. else
  47361. $as_echo "$as_me: failed program was:" >&5
  47362. sed 's/^/| /' conftest.$ac_ext >&5
  47363. ac_header_compiler=no
  47364. fi
  47365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47366. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47367. $as_echo "$ac_header_compiler" >&6; }
  47368. # Is the header present?
  47369. { $as_echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5
  47370. $as_echo_n "checking dahdi/tonezone.h presence... " >&6; }
  47371. cat >conftest.$ac_ext <<_ACEOF
  47372. /* confdefs.h. */
  47373. _ACEOF
  47374. cat confdefs.h >>conftest.$ac_ext
  47375. cat >>conftest.$ac_ext <<_ACEOF
  47376. /* end confdefs.h. */
  47377. #include <dahdi/tonezone.h>
  47378. _ACEOF
  47379. if { (ac_try="$ac_cpp conftest.$ac_ext"
  47380. case "(($ac_try" in
  47381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47382. *) ac_try_echo=$ac_try;;
  47383. esac
  47384. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47385. $as_echo "$ac_try_echo") >&5
  47386. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47387. ac_status=$?
  47388. grep -v '^ *+' conftest.er1 >conftest.err
  47389. rm -f conftest.er1
  47390. cat conftest.err >&5
  47391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47392. (exit $ac_status); } >/dev/null && {
  47393. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  47394. test ! -s conftest.err
  47395. }; then
  47396. ac_header_preproc=yes
  47397. else
  47398. $as_echo "$as_me: failed program was:" >&5
  47399. sed 's/^/| /' conftest.$ac_ext >&5
  47400. ac_header_preproc=no
  47401. fi
  47402. rm -f conftest.err conftest.$ac_ext
  47403. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47404. $as_echo "$ac_header_preproc" >&6; }
  47405. # So? What about this header?
  47406. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47407. yes:no: )
  47408. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47409. $as_echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47410. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5
  47411. $as_echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;}
  47412. ac_header_preproc=yes
  47413. ;;
  47414. no:yes:* )
  47415. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5
  47416. $as_echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;}
  47417. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5
  47418. $as_echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;}
  47419. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5
  47420. $as_echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;}
  47421. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
  47422. $as_echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47423. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5
  47424. $as_echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;}
  47425. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5
  47426. $as_echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;}
  47427. ( cat <<\_ASBOX
  47428. ## ------------------------------------------ ##
  47429. ## Report this to https://issues.asterisk.org ##
  47430. ## ------------------------------------------ ##
  47431. _ASBOX
  47432. ) | sed "s/^/$as_me: WARNING: /" >&2
  47433. ;;
  47434. esac
  47435. { $as_echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
  47436. $as_echo_n "checking for dahdi/tonezone.h... " >&6; }
  47437. if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
  47438. $as_echo_n "(cached) " >&6
  47439. else
  47440. ac_cv_header_dahdi_tonezone_h=$ac_header_preproc
  47441. fi
  47442. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
  47443. $as_echo "$ac_cv_header_dahdi_tonezone_h" >&6; }
  47444. fi
  47445. if test "x$ac_cv_header_dahdi_tonezone_h" = x""yes; then
  47446. TONEZONE_HEADER_FOUND=1
  47447. else
  47448. TONEZONE_HEADER_FOUND=0
  47449. fi
  47450. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47451. fi
  47452. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  47453. TONEZONE_LIB=""
  47454. TONEZONE_INCLUDE=""
  47455. else
  47456. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47457. TONEZONE_LIB=""
  47458. fi
  47459. PBX_TONEZONE=1
  47460. cat >>confdefs.h <<_ACEOF
  47461. #define HAVE_TONEZONE 1
  47462. _ACEOF
  47463. fi
  47464. fi
  47465. fi
  47466. if test "${OSARCH}" = "OpenBSD";
  47467. then
  47468. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  47469. pbxlibdir=""
  47470. # if --with-VORBIS=DIR has been specified, use it.
  47471. if test "x${VORBIS_DIR}" != "x"; then
  47472. if test -d ${VORBIS_DIR}/lib; then
  47473. pbxlibdir="-L${VORBIS_DIR}/lib"
  47474. else
  47475. pbxlibdir="-L${VORBIS_DIR}"
  47476. fi
  47477. fi
  47478. pbxfuncname="vorbis_info_init"
  47479. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  47480. AST_VORBIS_FOUND=yes
  47481. else
  47482. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  47483. CFLAGS="${CFLAGS} "
  47484. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  47485. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
  47486. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  47487. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  47488. $as_echo_n "(cached) " >&6
  47489. else
  47490. ac_check_lib_save_LIBS=$LIBS
  47491. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile -logg $LIBS"
  47492. cat >conftest.$ac_ext <<_ACEOF
  47493. /* confdefs.h. */
  47494. _ACEOF
  47495. cat confdefs.h >>conftest.$ac_ext
  47496. cat >>conftest.$ac_ext <<_ACEOF
  47497. /* end confdefs.h. */
  47498. /* Override any GCC internal prototype to avoid an error.
  47499. Use char because int might match the return type of a GCC
  47500. builtin and then its argument prototype would still apply. */
  47501. #ifdef __cplusplus
  47502. extern "C"
  47503. #endif
  47504. char ${pbxfuncname} ();
  47505. int
  47506. main ()
  47507. {
  47508. return ${pbxfuncname} ();
  47509. ;
  47510. return 0;
  47511. }
  47512. _ACEOF
  47513. rm -f conftest.$ac_objext conftest$ac_exeext
  47514. if { (ac_try="$ac_link"
  47515. case "(($ac_try" in
  47516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47517. *) ac_try_echo=$ac_try;;
  47518. esac
  47519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47520. $as_echo "$ac_try_echo") >&5
  47521. (eval "$ac_link") 2>conftest.er1
  47522. ac_status=$?
  47523. grep -v '^ *+' conftest.er1 >conftest.err
  47524. rm -f conftest.er1
  47525. cat conftest.err >&5
  47526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47527. (exit $ac_status); } && {
  47528. test -z "$ac_c_werror_flag" ||
  47529. test ! -s conftest.err
  47530. } && test -s conftest$ac_exeext && {
  47531. test "$cross_compiling" = yes ||
  47532. $as_test_x conftest$ac_exeext
  47533. }; then
  47534. eval "$as_ac_Lib=yes"
  47535. else
  47536. $as_echo "$as_me: failed program was:" >&5
  47537. sed 's/^/| /' conftest.$ac_ext >&5
  47538. eval "$as_ac_Lib=no"
  47539. fi
  47540. rm -rf conftest.dSYM
  47541. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47542. conftest$ac_exeext conftest.$ac_ext
  47543. LIBS=$ac_check_lib_save_LIBS
  47544. fi
  47545. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  47546. $as_echo "$as_val"'`
  47547. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  47548. $as_echo "$ac_res" >&6; }
  47549. as_val=`eval 'as_val=${'$as_ac_Lib'}
  47550. $as_echo "$as_val"'`
  47551. if test "x$as_val" = x""yes; then
  47552. AST_VORBIS_FOUND=yes
  47553. else
  47554. AST_VORBIS_FOUND=no
  47555. fi
  47556. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  47557. fi
  47558. # now check for the header.
  47559. if test "${AST_VORBIS_FOUND}" = "yes"; then
  47560. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile -logg"
  47561. # if --with-VORBIS=DIR has been specified, use it.
  47562. if test "x${VORBIS_DIR}" != "x"; then
  47563. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  47564. fi
  47565. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  47566. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  47567. VORBIS_HEADER_FOUND="1"
  47568. else # check for the header
  47569. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  47570. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  47571. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47572. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47573. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47574. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47575. $as_echo_n "(cached) " >&6
  47576. fi
  47577. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47578. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47579. else
  47580. # Is the header compilable?
  47581. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
  47582. $as_echo_n "checking vorbis/codec.h usability... " >&6; }
  47583. cat >conftest.$ac_ext <<_ACEOF
  47584. /* confdefs.h. */
  47585. _ACEOF
  47586. cat confdefs.h >>conftest.$ac_ext
  47587. cat >>conftest.$ac_ext <<_ACEOF
  47588. /* end confdefs.h. */
  47589. $ac_includes_default
  47590. #include <vorbis/codec.h>
  47591. _ACEOF
  47592. rm -f conftest.$ac_objext
  47593. if { (ac_try="$ac_compile"
  47594. case "(($ac_try" in
  47595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47596. *) ac_try_echo=$ac_try;;
  47597. esac
  47598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47599. $as_echo "$ac_try_echo") >&5
  47600. (eval "$ac_compile") 2>conftest.er1
  47601. ac_status=$?
  47602. grep -v '^ *+' conftest.er1 >conftest.err
  47603. rm -f conftest.er1
  47604. cat conftest.err >&5
  47605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47606. (exit $ac_status); } && {
  47607. test -z "$ac_c_werror_flag" ||
  47608. test ! -s conftest.err
  47609. } && test -s conftest.$ac_objext; then
  47610. ac_header_compiler=yes
  47611. else
  47612. $as_echo "$as_me: failed program was:" >&5
  47613. sed 's/^/| /' conftest.$ac_ext >&5
  47614. ac_header_compiler=no
  47615. fi
  47616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47617. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47618. $as_echo "$ac_header_compiler" >&6; }
  47619. # Is the header present?
  47620. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
  47621. $as_echo_n "checking vorbis/codec.h presence... " >&6; }
  47622. cat >conftest.$ac_ext <<_ACEOF
  47623. /* confdefs.h. */
  47624. _ACEOF
  47625. cat confdefs.h >>conftest.$ac_ext
  47626. cat >>conftest.$ac_ext <<_ACEOF
  47627. /* end confdefs.h. */
  47628. #include <vorbis/codec.h>
  47629. _ACEOF
  47630. if { (ac_try="$ac_cpp conftest.$ac_ext"
  47631. case "(($ac_try" in
  47632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47633. *) ac_try_echo=$ac_try;;
  47634. esac
  47635. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47636. $as_echo "$ac_try_echo") >&5
  47637. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47638. ac_status=$?
  47639. grep -v '^ *+' conftest.er1 >conftest.err
  47640. rm -f conftest.er1
  47641. cat conftest.err >&5
  47642. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47643. (exit $ac_status); } >/dev/null && {
  47644. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  47645. test ! -s conftest.err
  47646. }; then
  47647. ac_header_preproc=yes
  47648. else
  47649. $as_echo "$as_me: failed program was:" >&5
  47650. sed 's/^/| /' conftest.$ac_ext >&5
  47651. ac_header_preproc=no
  47652. fi
  47653. rm -f conftest.err conftest.$ac_ext
  47654. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47655. $as_echo "$ac_header_preproc" >&6; }
  47656. # So? What about this header?
  47657. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47658. yes:no: )
  47659. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47660. $as_echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47661. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
  47662. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
  47663. ac_header_preproc=yes
  47664. ;;
  47665. no:yes:* )
  47666. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
  47667. $as_echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
  47668. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
  47669. $as_echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
  47670. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
  47671. $as_echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
  47672. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
  47673. $as_echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47674. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
  47675. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
  47676. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
  47677. $as_echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
  47678. ( cat <<\_ASBOX
  47679. ## ------------------------------------------ ##
  47680. ## Report this to https://issues.asterisk.org ##
  47681. ## ------------------------------------------ ##
  47682. _ASBOX
  47683. ) | sed "s/^/$as_me: WARNING: /" >&2
  47684. ;;
  47685. esac
  47686. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47687. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47688. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47689. $as_echo_n "(cached) " >&6
  47690. else
  47691. ac_cv_header_vorbis_codec_h=$ac_header_preproc
  47692. fi
  47693. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47694. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47695. fi
  47696. if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then
  47697. VORBIS_HEADER_FOUND=1
  47698. else
  47699. VORBIS_HEADER_FOUND=0
  47700. fi
  47701. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47702. fi
  47703. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  47704. VORBIS_LIB=""
  47705. VORBIS_INCLUDE=""
  47706. else
  47707. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47708. VORBIS_LIB=""
  47709. fi
  47710. PBX_VORBIS=1
  47711. cat >>confdefs.h <<_ACEOF
  47712. #define HAVE_VORBIS 1
  47713. _ACEOF
  47714. fi
  47715. fi
  47716. fi
  47717. else
  47718. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  47719. pbxlibdir=""
  47720. # if --with-VORBIS=DIR has been specified, use it.
  47721. if test "x${VORBIS_DIR}" != "x"; then
  47722. if test -d ${VORBIS_DIR}/lib; then
  47723. pbxlibdir="-L${VORBIS_DIR}/lib"
  47724. else
  47725. pbxlibdir="-L${VORBIS_DIR}"
  47726. fi
  47727. fi
  47728. pbxfuncname="vorbis_info_init"
  47729. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  47730. AST_VORBIS_FOUND=yes
  47731. else
  47732. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  47733. CFLAGS="${CFLAGS} "
  47734. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  47735. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
  47736. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  47737. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  47738. $as_echo_n "(cached) " >&6
  47739. else
  47740. ac_check_lib_save_LIBS=$LIBS
  47741. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $LIBS"
  47742. cat >conftest.$ac_ext <<_ACEOF
  47743. /* confdefs.h. */
  47744. _ACEOF
  47745. cat confdefs.h >>conftest.$ac_ext
  47746. cat >>conftest.$ac_ext <<_ACEOF
  47747. /* end confdefs.h. */
  47748. /* Override any GCC internal prototype to avoid an error.
  47749. Use char because int might match the return type of a GCC
  47750. builtin and then its argument prototype would still apply. */
  47751. #ifdef __cplusplus
  47752. extern "C"
  47753. #endif
  47754. char ${pbxfuncname} ();
  47755. int
  47756. main ()
  47757. {
  47758. return ${pbxfuncname} ();
  47759. ;
  47760. return 0;
  47761. }
  47762. _ACEOF
  47763. rm -f conftest.$ac_objext conftest$ac_exeext
  47764. if { (ac_try="$ac_link"
  47765. case "(($ac_try" in
  47766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47767. *) ac_try_echo=$ac_try;;
  47768. esac
  47769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47770. $as_echo "$ac_try_echo") >&5
  47771. (eval "$ac_link") 2>conftest.er1
  47772. ac_status=$?
  47773. grep -v '^ *+' conftest.er1 >conftest.err
  47774. rm -f conftest.er1
  47775. cat conftest.err >&5
  47776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47777. (exit $ac_status); } && {
  47778. test -z "$ac_c_werror_flag" ||
  47779. test ! -s conftest.err
  47780. } && test -s conftest$ac_exeext && {
  47781. test "$cross_compiling" = yes ||
  47782. $as_test_x conftest$ac_exeext
  47783. }; then
  47784. eval "$as_ac_Lib=yes"
  47785. else
  47786. $as_echo "$as_me: failed program was:" >&5
  47787. sed 's/^/| /' conftest.$ac_ext >&5
  47788. eval "$as_ac_Lib=no"
  47789. fi
  47790. rm -rf conftest.dSYM
  47791. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47792. conftest$ac_exeext conftest.$ac_ext
  47793. LIBS=$ac_check_lib_save_LIBS
  47794. fi
  47795. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  47796. $as_echo "$as_val"'`
  47797. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  47798. $as_echo "$ac_res" >&6; }
  47799. as_val=`eval 'as_val=${'$as_ac_Lib'}
  47800. $as_echo "$as_val"'`
  47801. if test "x$as_val" = x""yes; then
  47802. AST_VORBIS_FOUND=yes
  47803. else
  47804. AST_VORBIS_FOUND=no
  47805. fi
  47806. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  47807. fi
  47808. # now check for the header.
  47809. if test "${AST_VORBIS_FOUND}" = "yes"; then
  47810. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
  47811. # if --with-VORBIS=DIR has been specified, use it.
  47812. if test "x${VORBIS_DIR}" != "x"; then
  47813. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  47814. fi
  47815. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  47816. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  47817. VORBIS_HEADER_FOUND="1"
  47818. else # check for the header
  47819. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  47820. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  47821. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47822. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47823. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47824. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47825. $as_echo_n "(cached) " >&6
  47826. fi
  47827. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47828. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47829. else
  47830. # Is the header compilable?
  47831. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
  47832. $as_echo_n "checking vorbis/codec.h usability... " >&6; }
  47833. cat >conftest.$ac_ext <<_ACEOF
  47834. /* confdefs.h. */
  47835. _ACEOF
  47836. cat confdefs.h >>conftest.$ac_ext
  47837. cat >>conftest.$ac_ext <<_ACEOF
  47838. /* end confdefs.h. */
  47839. $ac_includes_default
  47840. #include <vorbis/codec.h>
  47841. _ACEOF
  47842. rm -f conftest.$ac_objext
  47843. if { (ac_try="$ac_compile"
  47844. case "(($ac_try" in
  47845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47846. *) ac_try_echo=$ac_try;;
  47847. esac
  47848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47849. $as_echo "$ac_try_echo") >&5
  47850. (eval "$ac_compile") 2>conftest.er1
  47851. ac_status=$?
  47852. grep -v '^ *+' conftest.er1 >conftest.err
  47853. rm -f conftest.er1
  47854. cat conftest.err >&5
  47855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47856. (exit $ac_status); } && {
  47857. test -z "$ac_c_werror_flag" ||
  47858. test ! -s conftest.err
  47859. } && test -s conftest.$ac_objext; then
  47860. ac_header_compiler=yes
  47861. else
  47862. $as_echo "$as_me: failed program was:" >&5
  47863. sed 's/^/| /' conftest.$ac_ext >&5
  47864. ac_header_compiler=no
  47865. fi
  47866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47867. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47868. $as_echo "$ac_header_compiler" >&6; }
  47869. # Is the header present?
  47870. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
  47871. $as_echo_n "checking vorbis/codec.h presence... " >&6; }
  47872. cat >conftest.$ac_ext <<_ACEOF
  47873. /* confdefs.h. */
  47874. _ACEOF
  47875. cat confdefs.h >>conftest.$ac_ext
  47876. cat >>conftest.$ac_ext <<_ACEOF
  47877. /* end confdefs.h. */
  47878. #include <vorbis/codec.h>
  47879. _ACEOF
  47880. if { (ac_try="$ac_cpp conftest.$ac_ext"
  47881. case "(($ac_try" in
  47882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47883. *) ac_try_echo=$ac_try;;
  47884. esac
  47885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47886. $as_echo "$ac_try_echo") >&5
  47887. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47888. ac_status=$?
  47889. grep -v '^ *+' conftest.er1 >conftest.err
  47890. rm -f conftest.er1
  47891. cat conftest.err >&5
  47892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47893. (exit $ac_status); } >/dev/null && {
  47894. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  47895. test ! -s conftest.err
  47896. }; then
  47897. ac_header_preproc=yes
  47898. else
  47899. $as_echo "$as_me: failed program was:" >&5
  47900. sed 's/^/| /' conftest.$ac_ext >&5
  47901. ac_header_preproc=no
  47902. fi
  47903. rm -f conftest.err conftest.$ac_ext
  47904. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47905. $as_echo "$ac_header_preproc" >&6; }
  47906. # So? What about this header?
  47907. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47908. yes:no: )
  47909. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47910. $as_echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47911. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
  47912. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
  47913. ac_header_preproc=yes
  47914. ;;
  47915. no:yes:* )
  47916. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
  47917. $as_echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
  47918. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
  47919. $as_echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
  47920. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
  47921. $as_echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
  47922. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
  47923. $as_echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47924. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
  47925. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
  47926. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
  47927. $as_echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
  47928. ( cat <<\_ASBOX
  47929. ## ------------------------------------------ ##
  47930. ## Report this to https://issues.asterisk.org ##
  47931. ## ------------------------------------------ ##
  47932. _ASBOX
  47933. ) | sed "s/^/$as_me: WARNING: /" >&2
  47934. ;;
  47935. esac
  47936. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47937. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47938. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47939. $as_echo_n "(cached) " >&6
  47940. else
  47941. ac_cv_header_vorbis_codec_h=$ac_header_preproc
  47942. fi
  47943. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47944. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47945. fi
  47946. if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then
  47947. VORBIS_HEADER_FOUND=1
  47948. else
  47949. VORBIS_HEADER_FOUND=0
  47950. fi
  47951. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47952. fi
  47953. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  47954. VORBIS_LIB=""
  47955. VORBIS_INCLUDE=""
  47956. else
  47957. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47958. VORBIS_LIB=""
  47959. fi
  47960. PBX_VORBIS=1
  47961. cat >>confdefs.h <<_ACEOF
  47962. #define HAVE_VORBIS 1
  47963. _ACEOF
  47964. fi
  47965. fi
  47966. fi
  47967. fi
  47968. if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
  47969. { $as_echo "$as_me:$LINENO: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
  47970. $as_echo_n "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
  47971. saved_cppflags="${CPPFLAGS}"
  47972. if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
  47973. VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
  47974. fi
  47975. CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
  47976. cat >conftest.$ac_ext <<_ACEOF
  47977. /* confdefs.h. */
  47978. _ACEOF
  47979. cat confdefs.h >>conftest.$ac_ext
  47980. cat >>conftest.$ac_ext <<_ACEOF
  47981. /* end confdefs.h. */
  47982. #include <vorbis/vorbisfile.h>
  47983. int
  47984. main ()
  47985. {
  47986. #if !defined(OV_CALLBACKS_NOCLOSE)
  47987. (void) OV_CALLBACKS_NOCLOSE;
  47988. #endif
  47989. ;
  47990. return 0;
  47991. }
  47992. _ACEOF
  47993. rm -f conftest.$ac_objext
  47994. if { (ac_try="$ac_compile"
  47995. case "(($ac_try" in
  47996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47997. *) ac_try_echo=$ac_try;;
  47998. esac
  47999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48000. $as_echo "$ac_try_echo") >&5
  48001. (eval "$ac_compile") 2>conftest.er1
  48002. ac_status=$?
  48003. grep -v '^ *+' conftest.er1 >conftest.err
  48004. rm -f conftest.er1
  48005. cat conftest.err >&5
  48006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48007. (exit $ac_status); } && {
  48008. test -z "$ac_c_werror_flag" ||
  48009. test ! -s conftest.err
  48010. } && test -s conftest.$ac_objext; then
  48011. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48012. $as_echo "yes" >&6; }
  48013. PBX_VORBIS_OPEN_CALLBACKS=1
  48014. cat >>confdefs.h <<\_ACEOF
  48015. #define HAVE_VORBIS_OPEN_CALLBACKS 1
  48016. _ACEOF
  48017. else
  48018. $as_echo "$as_me: failed program was:" >&5
  48019. sed 's/^/| /' conftest.$ac_ext >&5
  48020. { $as_echo "$as_me:$LINENO: result: no" >&5
  48021. $as_echo "no" >&6; }
  48022. fi
  48023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48024. CPPFLAGS="${saved_cppflags}"
  48025. fi
  48026. ac_ext=cpp
  48027. ac_cpp='$CXXCPP $CPPFLAGS'
  48028. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48029. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48030. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48031. if test "${USE_VPB}" != "no"; then
  48032. { $as_echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
  48033. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  48034. saved_libs="${LIBS}"
  48035. saved_cppflags="${CPPFLAGS}"
  48036. if test "x${VPB_DIR}" != "x"; then
  48037. if test -d ${VPB_DIR}/lib; then
  48038. vpblibdir=${VPB_DIR}/lib
  48039. else
  48040. vpblibdir=${VPB_DIR}
  48041. fi
  48042. LIBS="${LIBS} -L${vpblibdir}"
  48043. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  48044. fi
  48045. LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
  48046. CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
  48047. cat >conftest.$ac_ext <<_ACEOF
  48048. /* confdefs.h. */
  48049. _ACEOF
  48050. cat confdefs.h >>conftest.$ac_ext
  48051. cat >>conftest.$ac_ext <<_ACEOF
  48052. /* end confdefs.h. */
  48053. #include <vpbapi.h>
  48054. int
  48055. main ()
  48056. {
  48057. int q = vpb_open(0,0);
  48058. ;
  48059. return 0;
  48060. }
  48061. _ACEOF
  48062. rm -f conftest.$ac_objext conftest$ac_exeext
  48063. if { (ac_try="$ac_link"
  48064. case "(($ac_try" in
  48065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48066. *) ac_try_echo=$ac_try;;
  48067. esac
  48068. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48069. $as_echo "$ac_try_echo") >&5
  48070. (eval "$ac_link") 2>conftest.er1
  48071. ac_status=$?
  48072. grep -v '^ *+' conftest.er1 >conftest.err
  48073. rm -f conftest.er1
  48074. cat conftest.err >&5
  48075. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48076. (exit $ac_status); } && {
  48077. test -z "$ac_cxx_werror_flag" ||
  48078. test ! -s conftest.err
  48079. } && test -s conftest$ac_exeext && {
  48080. test "$cross_compiling" = yes ||
  48081. $as_test_x conftest$ac_exeext
  48082. }; then
  48083. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48084. $as_echo "yes" >&6; }
  48085. ac_cv_lib_vpb_vpb_open="yes"
  48086. else
  48087. $as_echo "$as_me: failed program was:" >&5
  48088. sed 's/^/| /' conftest.$ac_ext >&5
  48089. { $as_echo "$as_me:$LINENO: result: no" >&5
  48090. $as_echo "no" >&6; }
  48091. ac_cv_lib_vpb_vpb_open="no"
  48092. fi
  48093. rm -rf conftest.dSYM
  48094. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48095. conftest$ac_exeext conftest.$ac_ext
  48096. LIBS="${saved_libs}"
  48097. CPPFLAGS="${saved_cppflags}"
  48098. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  48099. VPB_LIB="-lvpb"
  48100. if test "${VPB_DIR}" != ""; then
  48101. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  48102. VPB_INCLUDE="-I${VPB_DIR}/include"
  48103. fi
  48104. PBX_VPB=1
  48105. cat >>confdefs.h <<\_ACEOF
  48106. #define HAVE_VPB 1
  48107. _ACEOF
  48108. fi
  48109. fi
  48110. ac_ext=c
  48111. ac_cpp='$CPP $CPPFLAGS'
  48112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48115. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  48116. pbxlibdir=""
  48117. # if --with-ZLIB=DIR has been specified, use it.
  48118. if test "x${ZLIB_DIR}" != "x"; then
  48119. if test -d ${ZLIB_DIR}/lib; then
  48120. pbxlibdir="-L${ZLIB_DIR}/lib"
  48121. else
  48122. pbxlibdir="-L${ZLIB_DIR}"
  48123. fi
  48124. fi
  48125. pbxfuncname="compress"
  48126. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  48127. AST_ZLIB_FOUND=yes
  48128. else
  48129. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  48130. CFLAGS="${CFLAGS} "
  48131. as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
  48132. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
  48133. $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
  48134. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  48135. $as_echo_n "(cached) " >&6
  48136. else
  48137. ac_check_lib_save_LIBS=$LIBS
  48138. LIBS="-lz ${pbxlibdir} $LIBS"
  48139. cat >conftest.$ac_ext <<_ACEOF
  48140. /* confdefs.h. */
  48141. _ACEOF
  48142. cat confdefs.h >>conftest.$ac_ext
  48143. cat >>conftest.$ac_ext <<_ACEOF
  48144. /* end confdefs.h. */
  48145. /* Override any GCC internal prototype to avoid an error.
  48146. Use char because int might match the return type of a GCC
  48147. builtin and then its argument prototype would still apply. */
  48148. #ifdef __cplusplus
  48149. extern "C"
  48150. #endif
  48151. char ${pbxfuncname} ();
  48152. int
  48153. main ()
  48154. {
  48155. return ${pbxfuncname} ();
  48156. ;
  48157. return 0;
  48158. }
  48159. _ACEOF
  48160. rm -f conftest.$ac_objext conftest$ac_exeext
  48161. if { (ac_try="$ac_link"
  48162. case "(($ac_try" in
  48163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48164. *) ac_try_echo=$ac_try;;
  48165. esac
  48166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48167. $as_echo "$ac_try_echo") >&5
  48168. (eval "$ac_link") 2>conftest.er1
  48169. ac_status=$?
  48170. grep -v '^ *+' conftest.er1 >conftest.err
  48171. rm -f conftest.er1
  48172. cat conftest.err >&5
  48173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48174. (exit $ac_status); } && {
  48175. test -z "$ac_c_werror_flag" ||
  48176. test ! -s conftest.err
  48177. } && test -s conftest$ac_exeext && {
  48178. test "$cross_compiling" = yes ||
  48179. $as_test_x conftest$ac_exeext
  48180. }; then
  48181. eval "$as_ac_Lib=yes"
  48182. else
  48183. $as_echo "$as_me: failed program was:" >&5
  48184. sed 's/^/| /' conftest.$ac_ext >&5
  48185. eval "$as_ac_Lib=no"
  48186. fi
  48187. rm -rf conftest.dSYM
  48188. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48189. conftest$ac_exeext conftest.$ac_ext
  48190. LIBS=$ac_check_lib_save_LIBS
  48191. fi
  48192. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  48193. $as_echo "$as_val"'`
  48194. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  48195. $as_echo "$ac_res" >&6; }
  48196. as_val=`eval 'as_val=${'$as_ac_Lib'}
  48197. $as_echo "$as_val"'`
  48198. if test "x$as_val" = x""yes; then
  48199. AST_ZLIB_FOUND=yes
  48200. else
  48201. AST_ZLIB_FOUND=no
  48202. fi
  48203. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  48204. fi
  48205. # now check for the header.
  48206. if test "${AST_ZLIB_FOUND}" = "yes"; then
  48207. ZLIB_LIB="${pbxlibdir} -lz "
  48208. # if --with-ZLIB=DIR has been specified, use it.
  48209. if test "x${ZLIB_DIR}" != "x"; then
  48210. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  48211. fi
  48212. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  48213. if test "xzlib.h" = "x" ; then # no header, assume found
  48214. ZLIB_HEADER_FOUND="1"
  48215. else # check for the header
  48216. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  48217. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  48218. if test "${ac_cv_header_zlib_h+set}" = set; then
  48219. { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
  48220. $as_echo_n "checking for zlib.h... " >&6; }
  48221. if test "${ac_cv_header_zlib_h+set}" = set; then
  48222. $as_echo_n "(cached) " >&6
  48223. fi
  48224. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  48225. $as_echo "$ac_cv_header_zlib_h" >&6; }
  48226. else
  48227. # Is the header compilable?
  48228. { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
  48229. $as_echo_n "checking zlib.h usability... " >&6; }
  48230. cat >conftest.$ac_ext <<_ACEOF
  48231. /* confdefs.h. */
  48232. _ACEOF
  48233. cat confdefs.h >>conftest.$ac_ext
  48234. cat >>conftest.$ac_ext <<_ACEOF
  48235. /* end confdefs.h. */
  48236. $ac_includes_default
  48237. #include <zlib.h>
  48238. _ACEOF
  48239. rm -f conftest.$ac_objext
  48240. if { (ac_try="$ac_compile"
  48241. case "(($ac_try" in
  48242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48243. *) ac_try_echo=$ac_try;;
  48244. esac
  48245. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48246. $as_echo "$ac_try_echo") >&5
  48247. (eval "$ac_compile") 2>conftest.er1
  48248. ac_status=$?
  48249. grep -v '^ *+' conftest.er1 >conftest.err
  48250. rm -f conftest.er1
  48251. cat conftest.err >&5
  48252. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48253. (exit $ac_status); } && {
  48254. test -z "$ac_c_werror_flag" ||
  48255. test ! -s conftest.err
  48256. } && test -s conftest.$ac_objext; then
  48257. ac_header_compiler=yes
  48258. else
  48259. $as_echo "$as_me: failed program was:" >&5
  48260. sed 's/^/| /' conftest.$ac_ext >&5
  48261. ac_header_compiler=no
  48262. fi
  48263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48264. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48265. $as_echo "$ac_header_compiler" >&6; }
  48266. # Is the header present?
  48267. { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
  48268. $as_echo_n "checking zlib.h presence... " >&6; }
  48269. cat >conftest.$ac_ext <<_ACEOF
  48270. /* confdefs.h. */
  48271. _ACEOF
  48272. cat confdefs.h >>conftest.$ac_ext
  48273. cat >>conftest.$ac_ext <<_ACEOF
  48274. /* end confdefs.h. */
  48275. #include <zlib.h>
  48276. _ACEOF
  48277. if { (ac_try="$ac_cpp conftest.$ac_ext"
  48278. case "(($ac_try" in
  48279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48280. *) ac_try_echo=$ac_try;;
  48281. esac
  48282. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48283. $as_echo "$ac_try_echo") >&5
  48284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48285. ac_status=$?
  48286. grep -v '^ *+' conftest.er1 >conftest.err
  48287. rm -f conftest.er1
  48288. cat conftest.err >&5
  48289. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48290. (exit $ac_status); } >/dev/null && {
  48291. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48292. test ! -s conftest.err
  48293. }; then
  48294. ac_header_preproc=yes
  48295. else
  48296. $as_echo "$as_me: failed program was:" >&5
  48297. sed 's/^/| /' conftest.$ac_ext >&5
  48298. ac_header_preproc=no
  48299. fi
  48300. rm -f conftest.err conftest.$ac_ext
  48301. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48302. $as_echo "$ac_header_preproc" >&6; }
  48303. # So? What about this header?
  48304. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48305. yes:no: )
  48306. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  48307. $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48308. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  48309. $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  48310. ac_header_preproc=yes
  48311. ;;
  48312. no:yes:* )
  48313. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  48314. $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  48315. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  48316. $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  48317. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  48318. $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  48319. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  48320. $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  48321. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  48322. $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  48323. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  48324. $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  48325. ( cat <<\_ASBOX
  48326. ## ------------------------------------------ ##
  48327. ## Report this to https://issues.asterisk.org ##
  48328. ## ------------------------------------------ ##
  48329. _ASBOX
  48330. ) | sed "s/^/$as_me: WARNING: /" >&2
  48331. ;;
  48332. esac
  48333. { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
  48334. $as_echo_n "checking for zlib.h... " >&6; }
  48335. if test "${ac_cv_header_zlib_h+set}" = set; then
  48336. $as_echo_n "(cached) " >&6
  48337. else
  48338. ac_cv_header_zlib_h=$ac_header_preproc
  48339. fi
  48340. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  48341. $as_echo "$ac_cv_header_zlib_h" >&6; }
  48342. fi
  48343. if test "x$ac_cv_header_zlib_h" = x""yes; then
  48344. ZLIB_HEADER_FOUND=1
  48345. else
  48346. ZLIB_HEADER_FOUND=0
  48347. fi
  48348. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  48349. fi
  48350. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  48351. ZLIB_LIB=""
  48352. ZLIB_INCLUDE=""
  48353. else
  48354. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  48355. ZLIB_LIB=""
  48356. fi
  48357. PBX_ZLIB=1
  48358. cat >>confdefs.h <<_ACEOF
  48359. #define HAVE_ZLIB 1
  48360. _ACEOF
  48361. fi
  48362. fi
  48363. fi
  48364. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  48365. # Does ODBC support wide characters?
  48366. { $as_echo "$as_me:$LINENO: checking whether ODBC has support for Unicode types" >&5
  48367. $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
  48368. cat >conftest.$ac_ext <<_ACEOF
  48369. /* confdefs.h. */
  48370. _ACEOF
  48371. cat confdefs.h >>conftest.$ac_ext
  48372. cat >>conftest.$ac_ext <<_ACEOF
  48373. /* end confdefs.h. */
  48374. #include <sql.h>
  48375. #include <sqlext.h>
  48376. int
  48377. main ()
  48378. {
  48379. int foo = SQL_WCHAR
  48380. ;
  48381. return 0;
  48382. }
  48383. _ACEOF
  48384. rm -f conftest.$ac_objext conftest$ac_exeext
  48385. if { (ac_try="$ac_link"
  48386. case "(($ac_try" in
  48387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48388. *) ac_try_echo=$ac_try;;
  48389. esac
  48390. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48391. $as_echo "$ac_try_echo") >&5
  48392. (eval "$ac_link") 2>conftest.er1
  48393. ac_status=$?
  48394. grep -v '^ *+' conftest.er1 >conftest.err
  48395. rm -f conftest.er1
  48396. cat conftest.err >&5
  48397. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48398. (exit $ac_status); } && {
  48399. test -z "$ac_c_werror_flag" ||
  48400. test ! -s conftest.err
  48401. } && test -s conftest$ac_exeext && {
  48402. test "$cross_compiling" = yes ||
  48403. $as_test_x conftest$ac_exeext
  48404. }; then
  48405. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48406. $as_echo "yes" >&6; }
  48407. cat >>confdefs.h <<\_ACEOF
  48408. #define HAVE_ODBC_WCHAR 1
  48409. _ACEOF
  48410. else
  48411. $as_echo "$as_me: failed program was:" >&5
  48412. sed 's/^/| /' conftest.$ac_ext >&5
  48413. { $as_echo "$as_me:$LINENO: result: no" >&5
  48414. $as_echo "no" >&6; }
  48415. fi
  48416. rm -rf conftest.dSYM
  48417. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48418. conftest$ac_exeext conftest.$ac_ext
  48419. fi
  48420. if test "${ac_cv_header_h323_h+set}" = set; then
  48421. { $as_echo "$as_me:$LINENO: checking for h323.h" >&5
  48422. $as_echo_n "checking for h323.h... " >&6; }
  48423. if test "${ac_cv_header_h323_h+set}" = set; then
  48424. $as_echo_n "(cached) " >&6
  48425. fi
  48426. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
  48427. $as_echo "$ac_cv_header_h323_h" >&6; }
  48428. else
  48429. # Is the header compilable?
  48430. { $as_echo "$as_me:$LINENO: checking h323.h usability" >&5
  48431. $as_echo_n "checking h323.h usability... " >&6; }
  48432. cat >conftest.$ac_ext <<_ACEOF
  48433. /* confdefs.h. */
  48434. _ACEOF
  48435. cat confdefs.h >>conftest.$ac_ext
  48436. cat >>conftest.$ac_ext <<_ACEOF
  48437. /* end confdefs.h. */
  48438. $ac_includes_default
  48439. #include <h323.h>
  48440. _ACEOF
  48441. rm -f conftest.$ac_objext
  48442. if { (ac_try="$ac_compile"
  48443. case "(($ac_try" in
  48444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48445. *) ac_try_echo=$ac_try;;
  48446. esac
  48447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48448. $as_echo "$ac_try_echo") >&5
  48449. (eval "$ac_compile") 2>conftest.er1
  48450. ac_status=$?
  48451. grep -v '^ *+' conftest.er1 >conftest.err
  48452. rm -f conftest.er1
  48453. cat conftest.err >&5
  48454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48455. (exit $ac_status); } && {
  48456. test -z "$ac_c_werror_flag" ||
  48457. test ! -s conftest.err
  48458. } && test -s conftest.$ac_objext; then
  48459. ac_header_compiler=yes
  48460. else
  48461. $as_echo "$as_me: failed program was:" >&5
  48462. sed 's/^/| /' conftest.$ac_ext >&5
  48463. ac_header_compiler=no
  48464. fi
  48465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48466. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48467. $as_echo "$ac_header_compiler" >&6; }
  48468. # Is the header present?
  48469. { $as_echo "$as_me:$LINENO: checking h323.h presence" >&5
  48470. $as_echo_n "checking h323.h presence... " >&6; }
  48471. cat >conftest.$ac_ext <<_ACEOF
  48472. /* confdefs.h. */
  48473. _ACEOF
  48474. cat confdefs.h >>conftest.$ac_ext
  48475. cat >>conftest.$ac_ext <<_ACEOF
  48476. /* end confdefs.h. */
  48477. #include <h323.h>
  48478. _ACEOF
  48479. if { (ac_try="$ac_cpp conftest.$ac_ext"
  48480. case "(($ac_try" in
  48481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48482. *) ac_try_echo=$ac_try;;
  48483. esac
  48484. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48485. $as_echo "$ac_try_echo") >&5
  48486. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48487. ac_status=$?
  48488. grep -v '^ *+' conftest.er1 >conftest.err
  48489. rm -f conftest.er1
  48490. cat conftest.err >&5
  48491. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48492. (exit $ac_status); } >/dev/null && {
  48493. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48494. test ! -s conftest.err
  48495. }; then
  48496. ac_header_preproc=yes
  48497. else
  48498. $as_echo "$as_me: failed program was:" >&5
  48499. sed 's/^/| /' conftest.$ac_ext >&5
  48500. ac_header_preproc=no
  48501. fi
  48502. rm -f conftest.err conftest.$ac_ext
  48503. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48504. $as_echo "$ac_header_preproc" >&6; }
  48505. # So? What about this header?
  48506. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48507. yes:no: )
  48508. { $as_echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
  48509. $as_echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48510. { $as_echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
  48511. $as_echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
  48512. ac_header_preproc=yes
  48513. ;;
  48514. no:yes:* )
  48515. { $as_echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
  48516. $as_echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
  48517. { $as_echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
  48518. $as_echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
  48519. { $as_echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
  48520. $as_echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
  48521. { $as_echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
  48522. $as_echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
  48523. { $as_echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
  48524. $as_echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
  48525. { $as_echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
  48526. $as_echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
  48527. ( cat <<\_ASBOX
  48528. ## ------------------------------------------ ##
  48529. ## Report this to https://issues.asterisk.org ##
  48530. ## ------------------------------------------ ##
  48531. _ASBOX
  48532. ) | sed "s/^/$as_me: WARNING: /" >&2
  48533. ;;
  48534. esac
  48535. { $as_echo "$as_me:$LINENO: checking for h323.h" >&5
  48536. $as_echo_n "checking for h323.h... " >&6; }
  48537. if test "${ac_cv_header_h323_h+set}" = set; then
  48538. $as_echo_n "(cached) " >&6
  48539. else
  48540. ac_cv_header_h323_h=$ac_header_preproc
  48541. fi
  48542. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
  48543. $as_echo "$ac_cv_header_h323_h" >&6; }
  48544. fi
  48545. if test "x$ac_cv_header_h323_h" = x""yes; then
  48546. PBX_H323=1
  48547. else
  48548. PBX_H323=0
  48549. fi
  48550. if test "${ac_cv_header_linux_compiler_h+set}" = set; then
  48551. { $as_echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
  48552. $as_echo_n "checking for linux/compiler.h... " >&6; }
  48553. if test "${ac_cv_header_linux_compiler_h+set}" = set; then
  48554. $as_echo_n "(cached) " >&6
  48555. fi
  48556. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
  48557. $as_echo "$ac_cv_header_linux_compiler_h" >&6; }
  48558. else
  48559. # Is the header compilable?
  48560. { $as_echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
  48561. $as_echo_n "checking linux/compiler.h usability... " >&6; }
  48562. cat >conftest.$ac_ext <<_ACEOF
  48563. /* confdefs.h. */
  48564. _ACEOF
  48565. cat confdefs.h >>conftest.$ac_ext
  48566. cat >>conftest.$ac_ext <<_ACEOF
  48567. /* end confdefs.h. */
  48568. $ac_includes_default
  48569. #include <linux/compiler.h>
  48570. _ACEOF
  48571. rm -f conftest.$ac_objext
  48572. if { (ac_try="$ac_compile"
  48573. case "(($ac_try" in
  48574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48575. *) ac_try_echo=$ac_try;;
  48576. esac
  48577. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48578. $as_echo "$ac_try_echo") >&5
  48579. (eval "$ac_compile") 2>conftest.er1
  48580. ac_status=$?
  48581. grep -v '^ *+' conftest.er1 >conftest.err
  48582. rm -f conftest.er1
  48583. cat conftest.err >&5
  48584. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48585. (exit $ac_status); } && {
  48586. test -z "$ac_c_werror_flag" ||
  48587. test ! -s conftest.err
  48588. } && test -s conftest.$ac_objext; then
  48589. ac_header_compiler=yes
  48590. else
  48591. $as_echo "$as_me: failed program was:" >&5
  48592. sed 's/^/| /' conftest.$ac_ext >&5
  48593. ac_header_compiler=no
  48594. fi
  48595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48596. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48597. $as_echo "$ac_header_compiler" >&6; }
  48598. # Is the header present?
  48599. { $as_echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
  48600. $as_echo_n "checking linux/compiler.h presence... " >&6; }
  48601. cat >conftest.$ac_ext <<_ACEOF
  48602. /* confdefs.h. */
  48603. _ACEOF
  48604. cat confdefs.h >>conftest.$ac_ext
  48605. cat >>conftest.$ac_ext <<_ACEOF
  48606. /* end confdefs.h. */
  48607. #include <linux/compiler.h>
  48608. _ACEOF
  48609. if { (ac_try="$ac_cpp conftest.$ac_ext"
  48610. case "(($ac_try" in
  48611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48612. *) ac_try_echo=$ac_try;;
  48613. esac
  48614. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48615. $as_echo "$ac_try_echo") >&5
  48616. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48617. ac_status=$?
  48618. grep -v '^ *+' conftest.er1 >conftest.err
  48619. rm -f conftest.er1
  48620. cat conftest.err >&5
  48621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48622. (exit $ac_status); } >/dev/null && {
  48623. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48624. test ! -s conftest.err
  48625. }; then
  48626. ac_header_preproc=yes
  48627. else
  48628. $as_echo "$as_me: failed program was:" >&5
  48629. sed 's/^/| /' conftest.$ac_ext >&5
  48630. ac_header_preproc=no
  48631. fi
  48632. rm -f conftest.err conftest.$ac_ext
  48633. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48634. $as_echo "$ac_header_preproc" >&6; }
  48635. # So? What about this header?
  48636. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48637. yes:no: )
  48638. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
  48639. $as_echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48640. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
  48641. $as_echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
  48642. ac_header_preproc=yes
  48643. ;;
  48644. no:yes:* )
  48645. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
  48646. $as_echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
  48647. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
  48648. $as_echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
  48649. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
  48650. $as_echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
  48651. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
  48652. $as_echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
  48653. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
  48654. $as_echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
  48655. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
  48656. $as_echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
  48657. ( cat <<\_ASBOX
  48658. ## ------------------------------------------ ##
  48659. ## Report this to https://issues.asterisk.org ##
  48660. ## ------------------------------------------ ##
  48661. _ASBOX
  48662. ) | sed "s/^/$as_me: WARNING: /" >&2
  48663. ;;
  48664. esac
  48665. { $as_echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
  48666. $as_echo_n "checking for linux/compiler.h... " >&6; }
  48667. if test "${ac_cv_header_linux_compiler_h+set}" = set; then
  48668. $as_echo_n "(cached) " >&6
  48669. else
  48670. ac_cv_header_linux_compiler_h=$ac_header_preproc
  48671. fi
  48672. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
  48673. $as_echo "$ac_cv_header_linux_compiler_h" >&6; }
  48674. fi
  48675. if test "x$ac_cv_header_linux_compiler_h" = x""yes; then
  48676. cat >>confdefs.h <<_ACEOF
  48677. #define HAVE_LINUX_COMPILER_H 1
  48678. _ACEOF
  48679. fi
  48680. { $as_echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
  48681. $as_echo_n "checking for linux/ixjuser.h... " >&6; }
  48682. if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
  48683. $as_echo_n "(cached) " >&6
  48684. else
  48685. cat >conftest.$ac_ext <<_ACEOF
  48686. /* confdefs.h. */
  48687. _ACEOF
  48688. cat confdefs.h >>conftest.$ac_ext
  48689. cat >>conftest.$ac_ext <<_ACEOF
  48690. /* end confdefs.h. */
  48691. #include <linux/version.h>
  48692. #ifdef HAVE_LINUX_COMPILER_H
  48693. #include <linux/compiler.h>
  48694. #endif
  48695. #include <linux/ixjuser.h>
  48696. _ACEOF
  48697. rm -f conftest.$ac_objext
  48698. if { (ac_try="$ac_compile"
  48699. case "(($ac_try" in
  48700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48701. *) ac_try_echo=$ac_try;;
  48702. esac
  48703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48704. $as_echo "$ac_try_echo") >&5
  48705. (eval "$ac_compile") 2>conftest.er1
  48706. ac_status=$?
  48707. grep -v '^ *+' conftest.er1 >conftest.err
  48708. rm -f conftest.er1
  48709. cat conftest.err >&5
  48710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48711. (exit $ac_status); } && {
  48712. test -z "$ac_c_werror_flag" ||
  48713. test ! -s conftest.err
  48714. } && test -s conftest.$ac_objext; then
  48715. ac_cv_header_linux_ixjuser_h=yes
  48716. else
  48717. $as_echo "$as_me: failed program was:" >&5
  48718. sed 's/^/| /' conftest.$ac_ext >&5
  48719. ac_cv_header_linux_ixjuser_h=no
  48720. fi
  48721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48722. fi
  48723. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
  48724. $as_echo "$ac_cv_header_linux_ixjuser_h" >&6; }
  48725. if test "x$ac_cv_header_linux_ixjuser_h" = x""yes; then
  48726. PBX_IXJUSER=1
  48727. else
  48728. PBX_IXJUSER=0
  48729. fi
  48730. # Used in res/res_pktccops
  48731. if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
  48732. { $as_echo "$as_me:$LINENO: checking for MSG_NOSIGNAL in sys/socket.h" >&5
  48733. $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
  48734. saved_cppflags="${CPPFLAGS}"
  48735. if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
  48736. MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
  48737. fi
  48738. CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
  48739. cat >conftest.$ac_ext <<_ACEOF
  48740. /* confdefs.h. */
  48741. _ACEOF
  48742. cat confdefs.h >>conftest.$ac_ext
  48743. cat >>conftest.$ac_ext <<_ACEOF
  48744. /* end confdefs.h. */
  48745. #include <sys/socket.h>
  48746. int
  48747. main ()
  48748. {
  48749. #if defined(MSG_NOSIGNAL)
  48750. int foo = 0;
  48751. #else
  48752. int foo = bar;
  48753. #endif
  48754. 0
  48755. ;
  48756. return 0;
  48757. }
  48758. _ACEOF
  48759. rm -f conftest.$ac_objext
  48760. if { (ac_try="$ac_compile"
  48761. case "(($ac_try" in
  48762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48763. *) ac_try_echo=$ac_try;;
  48764. esac
  48765. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48766. $as_echo "$ac_try_echo") >&5
  48767. (eval "$ac_compile") 2>conftest.er1
  48768. ac_status=$?
  48769. grep -v '^ *+' conftest.er1 >conftest.err
  48770. rm -f conftest.er1
  48771. cat conftest.err >&5
  48772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48773. (exit $ac_status); } && {
  48774. test -z "$ac_c_werror_flag" ||
  48775. test ! -s conftest.err
  48776. } && test -s conftest.$ac_objext; then
  48777. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48778. $as_echo "yes" >&6; }
  48779. PBX_MSG_NOSIGNAL=1
  48780. cat >>confdefs.h <<\_ACEOF
  48781. #define HAVE_MSG_NOSIGNAL 1
  48782. _ACEOF
  48783. else
  48784. $as_echo "$as_me: failed program was:" >&5
  48785. sed 's/^/| /' conftest.$ac_ext >&5
  48786. { $as_echo "$as_me:$LINENO: result: no" >&5
  48787. $as_echo "no" >&6; }
  48788. fi
  48789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48790. CPPFLAGS="${saved_cppflags}"
  48791. fi
  48792. if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
  48793. { $as_echo "$as_me:$LINENO: checking for SO_NOSIGPIPE in sys/socket.h" >&5
  48794. $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
  48795. saved_cppflags="${CPPFLAGS}"
  48796. if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
  48797. SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
  48798. fi
  48799. CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
  48800. cat >conftest.$ac_ext <<_ACEOF
  48801. /* confdefs.h. */
  48802. _ACEOF
  48803. cat confdefs.h >>conftest.$ac_ext
  48804. cat >>conftest.$ac_ext <<_ACEOF
  48805. /* end confdefs.h. */
  48806. #include <sys/socket.h>
  48807. int
  48808. main ()
  48809. {
  48810. #if defined(SO_NOSIGPIPE)
  48811. int foo = 0;
  48812. #else
  48813. int foo = bar;
  48814. #endif
  48815. 0
  48816. ;
  48817. return 0;
  48818. }
  48819. _ACEOF
  48820. rm -f conftest.$ac_objext
  48821. if { (ac_try="$ac_compile"
  48822. case "(($ac_try" in
  48823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48824. *) ac_try_echo=$ac_try;;
  48825. esac
  48826. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48827. $as_echo "$ac_try_echo") >&5
  48828. (eval "$ac_compile") 2>conftest.er1
  48829. ac_status=$?
  48830. grep -v '^ *+' conftest.er1 >conftest.err
  48831. rm -f conftest.er1
  48832. cat conftest.err >&5
  48833. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48834. (exit $ac_status); } && {
  48835. test -z "$ac_c_werror_flag" ||
  48836. test ! -s conftest.err
  48837. } && test -s conftest.$ac_objext; then
  48838. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48839. $as_echo "yes" >&6; }
  48840. PBX_SO_NOSIGPIPE=1
  48841. cat >>confdefs.h <<\_ACEOF
  48842. #define HAVE_SO_NOSIGPIPE 1
  48843. _ACEOF
  48844. else
  48845. $as_echo "$as_me: failed program was:" >&5
  48846. sed 's/^/| /' conftest.$ac_ext >&5
  48847. { $as_echo "$as_me:$LINENO: result: no" >&5
  48848. $as_echo "no" >&6; }
  48849. fi
  48850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48851. CPPFLAGS="${saved_cppflags}"
  48852. fi
  48853. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  48854. PBX_SDL=0
  48855. if test -n "$ac_tool_prefix"; then
  48856. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  48857. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  48858. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  48859. $as_echo_n "checking for $ac_word... " >&6; }
  48860. if test "${ac_cv_path_CONFIG_SDL+set}" = set; then
  48861. $as_echo_n "(cached) " >&6
  48862. else
  48863. case $CONFIG_SDL in
  48864. [\\/]* | ?:[\\/]*)
  48865. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  48866. ;;
  48867. *)
  48868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48869. as_dummy="${SDL_DIR}/bin:$PATH"
  48870. for as_dir in $as_dummy
  48871. do
  48872. IFS=$as_save_IFS
  48873. test -z "$as_dir" && as_dir=.
  48874. for ac_exec_ext in '' $ac_executable_extensions; do
  48875. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  48876. ac_cv_path_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  48877. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48878. break 2
  48879. fi
  48880. done
  48881. done
  48882. IFS=$as_save_IFS
  48883. ;;
  48884. esac
  48885. fi
  48886. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  48887. if test -n "$CONFIG_SDL"; then
  48888. { $as_echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
  48889. $as_echo "$CONFIG_SDL" >&6; }
  48890. else
  48891. { $as_echo "$as_me:$LINENO: result: no" >&5
  48892. $as_echo "no" >&6; }
  48893. fi
  48894. fi
  48895. if test -z "$ac_cv_path_CONFIG_SDL"; then
  48896. ac_pt_CONFIG_SDL=$CONFIG_SDL
  48897. # Extract the first word of "sdl-config", so it can be a program name with args.
  48898. set dummy sdl-config; ac_word=$2
  48899. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  48900. $as_echo_n "checking for $ac_word... " >&6; }
  48901. if test "${ac_cv_path_ac_pt_CONFIG_SDL+set}" = set; then
  48902. $as_echo_n "(cached) " >&6
  48903. else
  48904. case $ac_pt_CONFIG_SDL in
  48905. [\\/]* | ?:[\\/]*)
  48906. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  48907. ;;
  48908. *)
  48909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48910. as_dummy="${SDL_DIR}/bin:$PATH"
  48911. for as_dir in $as_dummy
  48912. do
  48913. IFS=$as_save_IFS
  48914. test -z "$as_dir" && as_dir=.
  48915. for ac_exec_ext in '' $ac_executable_extensions; do
  48916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  48917. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  48918. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48919. break 2
  48920. fi
  48921. done
  48922. done
  48923. IFS=$as_save_IFS
  48924. ;;
  48925. esac
  48926. fi
  48927. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  48928. if test -n "$ac_pt_CONFIG_SDL"; then
  48929. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_SDL" >&5
  48930. $as_echo "$ac_pt_CONFIG_SDL" >&6; }
  48931. else
  48932. { $as_echo "$as_me:$LINENO: result: no" >&5
  48933. $as_echo "no" >&6; }
  48934. fi
  48935. if test "x$ac_pt_CONFIG_SDL" = x; then
  48936. CONFIG_SDL="No"
  48937. else
  48938. case $cross_compiling:$ac_tool_warned in
  48939. yes:)
  48940. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  48941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  48942. ac_tool_warned=yes ;;
  48943. esac
  48944. CONFIG_SDL=$ac_pt_CONFIG_SDL
  48945. fi
  48946. else
  48947. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  48948. fi
  48949. if test ! "x${CONFIG_SDL}" = xNo; then
  48950. if test x"" = x ; then A=--cflags ; else A="" ; fi
  48951. SDL_INCLUDE=$(${CONFIG_SDL} $A)
  48952. if test x"" = x ; then A=--libs ; else A="" ; fi
  48953. SDL_LIB=$(${CONFIG_SDL} $A)
  48954. if test x"" != x ; then
  48955. saved_cppflags="${CPPFLAGS}"
  48956. if test "x${SDL_DIR}" != "x"; then
  48957. SDL_INCLUDE="-I${SDL_DIR}/include"
  48958. fi
  48959. CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
  48960. saved_libs="${LIBS}"
  48961. LIBS="${SDL_LIB}"
  48962. cat >conftest.$ac_ext <<_ACEOF
  48963. /* confdefs.h. */
  48964. _ACEOF
  48965. cat confdefs.h >>conftest.$ac_ext
  48966. cat >>conftest.$ac_ext <<_ACEOF
  48967. /* end confdefs.h. */
  48968. int
  48969. main ()
  48970. {
  48971. ;
  48972. ;
  48973. return 0;
  48974. }
  48975. _ACEOF
  48976. rm -f conftest.$ac_objext conftest$ac_exeext
  48977. if { (ac_try="$ac_link"
  48978. case "(($ac_try" in
  48979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48980. *) ac_try_echo=$ac_try;;
  48981. esac
  48982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48983. $as_echo "$ac_try_echo") >&5
  48984. (eval "$ac_link") 2>conftest.er1
  48985. ac_status=$?
  48986. grep -v '^ *+' conftest.er1 >conftest.err
  48987. rm -f conftest.er1
  48988. cat conftest.err >&5
  48989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48990. (exit $ac_status); } && {
  48991. test -z "$ac_c_werror_flag" ||
  48992. test ! -s conftest.err
  48993. } && test -s conftest$ac_exeext && {
  48994. test "$cross_compiling" = yes ||
  48995. $as_test_x conftest$ac_exeext
  48996. }; then
  48997. PBX_SDL=1
  48998. cat >>confdefs.h <<\_ACEOF
  48999. #define HAVE_SDL 1
  49000. _ACEOF
  49001. else
  49002. $as_echo "$as_me: failed program was:" >&5
  49003. sed 's/^/| /' conftest.$ac_ext >&5
  49004. fi
  49005. rm -rf conftest.dSYM
  49006. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49007. conftest$ac_exeext conftest.$ac_ext
  49008. CPPFLAGS="${saved_cppflags}"
  49009. LIBS="${saved_libs}"
  49010. else
  49011. PBX_SDL=1
  49012. cat >>confdefs.h <<\_ACEOF
  49013. #define HAVE_SDL 1
  49014. _ACEOF
  49015. fi
  49016. fi
  49017. fi
  49018. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  49019. pbxlibdir=""
  49020. # if --with-SDL_IMAGE=DIR has been specified, use it.
  49021. if test "x${SDL_IMAGE_DIR}" != "x"; then
  49022. if test -d ${SDL_IMAGE_DIR}/lib; then
  49023. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  49024. else
  49025. pbxlibdir="-L${SDL_IMAGE_DIR}"
  49026. fi
  49027. fi
  49028. pbxfuncname="IMG_Load"
  49029. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  49030. AST_SDL_IMAGE_FOUND=yes
  49031. else
  49032. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  49033. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  49034. as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
  49035. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
  49036. $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
  49037. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  49038. $as_echo_n "(cached) " >&6
  49039. else
  49040. ac_check_lib_save_LIBS=$LIBS
  49041. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  49042. cat >conftest.$ac_ext <<_ACEOF
  49043. /* confdefs.h. */
  49044. _ACEOF
  49045. cat confdefs.h >>conftest.$ac_ext
  49046. cat >>conftest.$ac_ext <<_ACEOF
  49047. /* end confdefs.h. */
  49048. /* Override any GCC internal prototype to avoid an error.
  49049. Use char because int might match the return type of a GCC
  49050. builtin and then its argument prototype would still apply. */
  49051. #ifdef __cplusplus
  49052. extern "C"
  49053. #endif
  49054. char ${pbxfuncname} ();
  49055. int
  49056. main ()
  49057. {
  49058. return ${pbxfuncname} ();
  49059. ;
  49060. return 0;
  49061. }
  49062. _ACEOF
  49063. rm -f conftest.$ac_objext conftest$ac_exeext
  49064. if { (ac_try="$ac_link"
  49065. case "(($ac_try" in
  49066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49067. *) ac_try_echo=$ac_try;;
  49068. esac
  49069. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49070. $as_echo "$ac_try_echo") >&5
  49071. (eval "$ac_link") 2>conftest.er1
  49072. ac_status=$?
  49073. grep -v '^ *+' conftest.er1 >conftest.err
  49074. rm -f conftest.er1
  49075. cat conftest.err >&5
  49076. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49077. (exit $ac_status); } && {
  49078. test -z "$ac_c_werror_flag" ||
  49079. test ! -s conftest.err
  49080. } && test -s conftest$ac_exeext && {
  49081. test "$cross_compiling" = yes ||
  49082. $as_test_x conftest$ac_exeext
  49083. }; then
  49084. eval "$as_ac_Lib=yes"
  49085. else
  49086. $as_echo "$as_me: failed program was:" >&5
  49087. sed 's/^/| /' conftest.$ac_ext >&5
  49088. eval "$as_ac_Lib=no"
  49089. fi
  49090. rm -rf conftest.dSYM
  49091. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49092. conftest$ac_exeext conftest.$ac_ext
  49093. LIBS=$ac_check_lib_save_LIBS
  49094. fi
  49095. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  49096. $as_echo "$as_val"'`
  49097. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  49098. $as_echo "$ac_res" >&6; }
  49099. as_val=`eval 'as_val=${'$as_ac_Lib'}
  49100. $as_echo "$as_val"'`
  49101. if test "x$as_val" = x""yes; then
  49102. AST_SDL_IMAGE_FOUND=yes
  49103. else
  49104. AST_SDL_IMAGE_FOUND=no
  49105. fi
  49106. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  49107. fi
  49108. # now check for the header.
  49109. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  49110. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  49111. # if --with-SDL_IMAGE=DIR has been specified, use it.
  49112. if test "x${SDL_IMAGE_DIR}" != "x"; then
  49113. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  49114. fi
  49115. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  49116. if test "xSDL_image.h" = "x" ; then # no header, assume found
  49117. SDL_IMAGE_HEADER_FOUND="1"
  49118. else # check for the header
  49119. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  49120. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  49121. if test "${ac_cv_header_SDL_image_h+set}" = set; then
  49122. { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
  49123. $as_echo_n "checking for SDL_image.h... " >&6; }
  49124. if test "${ac_cv_header_SDL_image_h+set}" = set; then
  49125. $as_echo_n "(cached) " >&6
  49126. fi
  49127. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
  49128. $as_echo "$ac_cv_header_SDL_image_h" >&6; }
  49129. else
  49130. # Is the header compilable?
  49131. { $as_echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
  49132. $as_echo_n "checking SDL_image.h usability... " >&6; }
  49133. cat >conftest.$ac_ext <<_ACEOF
  49134. /* confdefs.h. */
  49135. _ACEOF
  49136. cat confdefs.h >>conftest.$ac_ext
  49137. cat >>conftest.$ac_ext <<_ACEOF
  49138. /* end confdefs.h. */
  49139. $ac_includes_default
  49140. #include <SDL_image.h>
  49141. _ACEOF
  49142. rm -f conftest.$ac_objext
  49143. if { (ac_try="$ac_compile"
  49144. case "(($ac_try" in
  49145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49146. *) ac_try_echo=$ac_try;;
  49147. esac
  49148. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49149. $as_echo "$ac_try_echo") >&5
  49150. (eval "$ac_compile") 2>conftest.er1
  49151. ac_status=$?
  49152. grep -v '^ *+' conftest.er1 >conftest.err
  49153. rm -f conftest.er1
  49154. cat conftest.err >&5
  49155. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49156. (exit $ac_status); } && {
  49157. test -z "$ac_c_werror_flag" ||
  49158. test ! -s conftest.err
  49159. } && test -s conftest.$ac_objext; then
  49160. ac_header_compiler=yes
  49161. else
  49162. $as_echo "$as_me: failed program was:" >&5
  49163. sed 's/^/| /' conftest.$ac_ext >&5
  49164. ac_header_compiler=no
  49165. fi
  49166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49167. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49168. $as_echo "$ac_header_compiler" >&6; }
  49169. # Is the header present?
  49170. { $as_echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
  49171. $as_echo_n "checking SDL_image.h presence... " >&6; }
  49172. cat >conftest.$ac_ext <<_ACEOF
  49173. /* confdefs.h. */
  49174. _ACEOF
  49175. cat confdefs.h >>conftest.$ac_ext
  49176. cat >>conftest.$ac_ext <<_ACEOF
  49177. /* end confdefs.h. */
  49178. #include <SDL_image.h>
  49179. _ACEOF
  49180. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49181. case "(($ac_try" in
  49182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49183. *) ac_try_echo=$ac_try;;
  49184. esac
  49185. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49186. $as_echo "$ac_try_echo") >&5
  49187. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49188. ac_status=$?
  49189. grep -v '^ *+' conftest.er1 >conftest.err
  49190. rm -f conftest.er1
  49191. cat conftest.err >&5
  49192. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49193. (exit $ac_status); } >/dev/null && {
  49194. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49195. test ! -s conftest.err
  49196. }; then
  49197. ac_header_preproc=yes
  49198. else
  49199. $as_echo "$as_me: failed program was:" >&5
  49200. sed 's/^/| /' conftest.$ac_ext >&5
  49201. ac_header_preproc=no
  49202. fi
  49203. rm -f conftest.err conftest.$ac_ext
  49204. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49205. $as_echo "$ac_header_preproc" >&6; }
  49206. # So? What about this header?
  49207. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49208. yes:no: )
  49209. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49210. $as_echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49211. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
  49212. $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
  49213. ac_header_preproc=yes
  49214. ;;
  49215. no:yes:* )
  49216. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
  49217. $as_echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
  49218. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
  49219. $as_echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
  49220. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
  49221. $as_echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
  49222. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
  49223. $as_echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49224. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
  49225. $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
  49226. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
  49227. $as_echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
  49228. ( cat <<\_ASBOX
  49229. ## ------------------------------------------ ##
  49230. ## Report this to https://issues.asterisk.org ##
  49231. ## ------------------------------------------ ##
  49232. _ASBOX
  49233. ) | sed "s/^/$as_me: WARNING: /" >&2
  49234. ;;
  49235. esac
  49236. { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
  49237. $as_echo_n "checking for SDL_image.h... " >&6; }
  49238. if test "${ac_cv_header_SDL_image_h+set}" = set; then
  49239. $as_echo_n "(cached) " >&6
  49240. else
  49241. ac_cv_header_SDL_image_h=$ac_header_preproc
  49242. fi
  49243. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
  49244. $as_echo "$ac_cv_header_SDL_image_h" >&6; }
  49245. fi
  49246. if test "x$ac_cv_header_SDL_image_h" = x""yes; then
  49247. SDL_IMAGE_HEADER_FOUND=1
  49248. else
  49249. SDL_IMAGE_HEADER_FOUND=0
  49250. fi
  49251. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  49252. fi
  49253. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  49254. SDL_IMAGE_LIB=""
  49255. SDL_IMAGE_INCLUDE=""
  49256. else
  49257. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  49258. SDL_IMAGE_LIB=""
  49259. fi
  49260. PBX_SDL_IMAGE=1
  49261. cat >>confdefs.h <<_ACEOF
  49262. #define HAVE_SDL_IMAGE 1
  49263. _ACEOF
  49264. fi
  49265. fi
  49266. fi
  49267. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  49268. pbxlibdir=""
  49269. # if --with-FFMPEG=DIR has been specified, use it.
  49270. if test "x${FFMPEG_DIR}" != "x"; then
  49271. if test -d ${FFMPEG_DIR}/lib; then
  49272. pbxlibdir="-L${FFMPEG_DIR}/lib"
  49273. else
  49274. pbxlibdir="-L${FFMPEG_DIR}"
  49275. fi
  49276. fi
  49277. pbxfuncname="sws_getContext"
  49278. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  49279. AST_FFMPEG_FOUND=yes
  49280. else
  49281. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  49282. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  49283. as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
  49284. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
  49285. $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
  49286. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  49287. $as_echo_n "(cached) " >&6
  49288. else
  49289. ac_check_lib_save_LIBS=$LIBS
  49290. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  49291. cat >conftest.$ac_ext <<_ACEOF
  49292. /* confdefs.h. */
  49293. _ACEOF
  49294. cat confdefs.h >>conftest.$ac_ext
  49295. cat >>conftest.$ac_ext <<_ACEOF
  49296. /* end confdefs.h. */
  49297. /* Override any GCC internal prototype to avoid an error.
  49298. Use char because int might match the return type of a GCC
  49299. builtin and then its argument prototype would still apply. */
  49300. #ifdef __cplusplus
  49301. extern "C"
  49302. #endif
  49303. char ${pbxfuncname} ();
  49304. int
  49305. main ()
  49306. {
  49307. return ${pbxfuncname} ();
  49308. ;
  49309. return 0;
  49310. }
  49311. _ACEOF
  49312. rm -f conftest.$ac_objext conftest$ac_exeext
  49313. if { (ac_try="$ac_link"
  49314. case "(($ac_try" in
  49315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49316. *) ac_try_echo=$ac_try;;
  49317. esac
  49318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49319. $as_echo "$ac_try_echo") >&5
  49320. (eval "$ac_link") 2>conftest.er1
  49321. ac_status=$?
  49322. grep -v '^ *+' conftest.er1 >conftest.err
  49323. rm -f conftest.er1
  49324. cat conftest.err >&5
  49325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49326. (exit $ac_status); } && {
  49327. test -z "$ac_c_werror_flag" ||
  49328. test ! -s conftest.err
  49329. } && test -s conftest$ac_exeext && {
  49330. test "$cross_compiling" = yes ||
  49331. $as_test_x conftest$ac_exeext
  49332. }; then
  49333. eval "$as_ac_Lib=yes"
  49334. else
  49335. $as_echo "$as_me: failed program was:" >&5
  49336. sed 's/^/| /' conftest.$ac_ext >&5
  49337. eval "$as_ac_Lib=no"
  49338. fi
  49339. rm -rf conftest.dSYM
  49340. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49341. conftest$ac_exeext conftest.$ac_ext
  49342. LIBS=$ac_check_lib_save_LIBS
  49343. fi
  49344. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  49345. $as_echo "$as_val"'`
  49346. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  49347. $as_echo "$ac_res" >&6; }
  49348. as_val=`eval 'as_val=${'$as_ac_Lib'}
  49349. $as_echo "$as_val"'`
  49350. if test "x$as_val" = x""yes; then
  49351. AST_FFMPEG_FOUND=yes
  49352. else
  49353. AST_FFMPEG_FOUND=no
  49354. fi
  49355. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  49356. fi
  49357. # now check for the header.
  49358. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  49359. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  49360. # if --with-FFMPEG=DIR has been specified, use it.
  49361. if test "x${FFMPEG_DIR}" != "x"; then
  49362. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  49363. fi
  49364. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  49365. if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
  49366. FFMPEG_HEADER_FOUND="1"
  49367. else # check for the header
  49368. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  49369. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  49370. if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
  49371. { $as_echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
  49372. $as_echo_n "checking for ffmpeg/avcodec.h... " >&6; }
  49373. if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
  49374. $as_echo_n "(cached) " >&6
  49375. fi
  49376. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
  49377. $as_echo "$ac_cv_header_ffmpeg_avcodec_h" >&6; }
  49378. else
  49379. # Is the header compilable?
  49380. { $as_echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
  49381. $as_echo_n "checking ffmpeg/avcodec.h usability... " >&6; }
  49382. cat >conftest.$ac_ext <<_ACEOF
  49383. /* confdefs.h. */
  49384. _ACEOF
  49385. cat confdefs.h >>conftest.$ac_ext
  49386. cat >>conftest.$ac_ext <<_ACEOF
  49387. /* end confdefs.h. */
  49388. $ac_includes_default
  49389. #include <ffmpeg/avcodec.h>
  49390. _ACEOF
  49391. rm -f conftest.$ac_objext
  49392. if { (ac_try="$ac_compile"
  49393. case "(($ac_try" in
  49394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49395. *) ac_try_echo=$ac_try;;
  49396. esac
  49397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49398. $as_echo "$ac_try_echo") >&5
  49399. (eval "$ac_compile") 2>conftest.er1
  49400. ac_status=$?
  49401. grep -v '^ *+' conftest.er1 >conftest.err
  49402. rm -f conftest.er1
  49403. cat conftest.err >&5
  49404. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49405. (exit $ac_status); } && {
  49406. test -z "$ac_c_werror_flag" ||
  49407. test ! -s conftest.err
  49408. } && test -s conftest.$ac_objext; then
  49409. ac_header_compiler=yes
  49410. else
  49411. $as_echo "$as_me: failed program was:" >&5
  49412. sed 's/^/| /' conftest.$ac_ext >&5
  49413. ac_header_compiler=no
  49414. fi
  49415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49416. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49417. $as_echo "$ac_header_compiler" >&6; }
  49418. # Is the header present?
  49419. { $as_echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
  49420. $as_echo_n "checking ffmpeg/avcodec.h presence... " >&6; }
  49421. cat >conftest.$ac_ext <<_ACEOF
  49422. /* confdefs.h. */
  49423. _ACEOF
  49424. cat confdefs.h >>conftest.$ac_ext
  49425. cat >>conftest.$ac_ext <<_ACEOF
  49426. /* end confdefs.h. */
  49427. #include <ffmpeg/avcodec.h>
  49428. _ACEOF
  49429. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49430. case "(($ac_try" in
  49431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49432. *) ac_try_echo=$ac_try;;
  49433. esac
  49434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49435. $as_echo "$ac_try_echo") >&5
  49436. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49437. ac_status=$?
  49438. grep -v '^ *+' conftest.er1 >conftest.err
  49439. rm -f conftest.er1
  49440. cat conftest.err >&5
  49441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49442. (exit $ac_status); } >/dev/null && {
  49443. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49444. test ! -s conftest.err
  49445. }; then
  49446. ac_header_preproc=yes
  49447. else
  49448. $as_echo "$as_me: failed program was:" >&5
  49449. sed 's/^/| /' conftest.$ac_ext >&5
  49450. ac_header_preproc=no
  49451. fi
  49452. rm -f conftest.err conftest.$ac_ext
  49453. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49454. $as_echo "$ac_header_preproc" >&6; }
  49455. # So? What about this header?
  49456. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49457. yes:no: )
  49458. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49459. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49460. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
  49461. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
  49462. ac_header_preproc=yes
  49463. ;;
  49464. no:yes:* )
  49465. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
  49466. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
  49467. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
  49468. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
  49469. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
  49470. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
  49471. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
  49472. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49473. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
  49474. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
  49475. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
  49476. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
  49477. ( cat <<\_ASBOX
  49478. ## ------------------------------------------ ##
  49479. ## Report this to https://issues.asterisk.org ##
  49480. ## ------------------------------------------ ##
  49481. _ASBOX
  49482. ) | sed "s/^/$as_me: WARNING: /" >&2
  49483. ;;
  49484. esac
  49485. { $as_echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
  49486. $as_echo_n "checking for ffmpeg/avcodec.h... " >&6; }
  49487. if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
  49488. $as_echo_n "(cached) " >&6
  49489. else
  49490. ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
  49491. fi
  49492. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
  49493. $as_echo "$ac_cv_header_ffmpeg_avcodec_h" >&6; }
  49494. fi
  49495. if test "x$ac_cv_header_ffmpeg_avcodec_h" = x""yes; then
  49496. FFMPEG_HEADER_FOUND=1
  49497. else
  49498. FFMPEG_HEADER_FOUND=0
  49499. fi
  49500. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  49501. fi
  49502. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  49503. FFMPEG_LIB=""
  49504. FFMPEG_INCLUDE=""
  49505. else
  49506. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  49507. FFMPEG_LIB=""
  49508. fi
  49509. PBX_FFMPEG=1
  49510. cat >>confdefs.h <<_ACEOF
  49511. #define HAVE_FFMPEG 1
  49512. _ACEOF
  49513. fi
  49514. fi
  49515. fi
  49516. # possible places for video4linux version 1
  49517. if test "${ac_cv_header_linux_videodev_h+set}" = set; then
  49518. { $as_echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
  49519. $as_echo_n "checking for linux/videodev.h... " >&6; }
  49520. if test "${ac_cv_header_linux_videodev_h+set}" = set; then
  49521. $as_echo_n "(cached) " >&6
  49522. fi
  49523. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
  49524. $as_echo "$ac_cv_header_linux_videodev_h" >&6; }
  49525. else
  49526. # Is the header compilable?
  49527. { $as_echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
  49528. $as_echo_n "checking linux/videodev.h usability... " >&6; }
  49529. cat >conftest.$ac_ext <<_ACEOF
  49530. /* confdefs.h. */
  49531. _ACEOF
  49532. cat confdefs.h >>conftest.$ac_ext
  49533. cat >>conftest.$ac_ext <<_ACEOF
  49534. /* end confdefs.h. */
  49535. $ac_includes_default
  49536. #include <linux/videodev.h>
  49537. _ACEOF
  49538. rm -f conftest.$ac_objext
  49539. if { (ac_try="$ac_compile"
  49540. case "(($ac_try" in
  49541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49542. *) ac_try_echo=$ac_try;;
  49543. esac
  49544. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49545. $as_echo "$ac_try_echo") >&5
  49546. (eval "$ac_compile") 2>conftest.er1
  49547. ac_status=$?
  49548. grep -v '^ *+' conftest.er1 >conftest.err
  49549. rm -f conftest.er1
  49550. cat conftest.err >&5
  49551. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49552. (exit $ac_status); } && {
  49553. test -z "$ac_c_werror_flag" ||
  49554. test ! -s conftest.err
  49555. } && test -s conftest.$ac_objext; then
  49556. ac_header_compiler=yes
  49557. else
  49558. $as_echo "$as_me: failed program was:" >&5
  49559. sed 's/^/| /' conftest.$ac_ext >&5
  49560. ac_header_compiler=no
  49561. fi
  49562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49563. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49564. $as_echo "$ac_header_compiler" >&6; }
  49565. # Is the header present?
  49566. { $as_echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
  49567. $as_echo_n "checking linux/videodev.h presence... " >&6; }
  49568. cat >conftest.$ac_ext <<_ACEOF
  49569. /* confdefs.h. */
  49570. _ACEOF
  49571. cat confdefs.h >>conftest.$ac_ext
  49572. cat >>conftest.$ac_ext <<_ACEOF
  49573. /* end confdefs.h. */
  49574. #include <linux/videodev.h>
  49575. _ACEOF
  49576. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49577. case "(($ac_try" in
  49578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49579. *) ac_try_echo=$ac_try;;
  49580. esac
  49581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49582. $as_echo "$ac_try_echo") >&5
  49583. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49584. ac_status=$?
  49585. grep -v '^ *+' conftest.er1 >conftest.err
  49586. rm -f conftest.er1
  49587. cat conftest.err >&5
  49588. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49589. (exit $ac_status); } >/dev/null && {
  49590. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49591. test ! -s conftest.err
  49592. }; then
  49593. ac_header_preproc=yes
  49594. else
  49595. $as_echo "$as_me: failed program was:" >&5
  49596. sed 's/^/| /' conftest.$ac_ext >&5
  49597. ac_header_preproc=no
  49598. fi
  49599. rm -f conftest.err conftest.$ac_ext
  49600. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49601. $as_echo "$ac_header_preproc" >&6; }
  49602. # So? What about this header?
  49603. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49604. yes:no: )
  49605. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49606. $as_echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49607. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
  49608. $as_echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
  49609. ac_header_preproc=yes
  49610. ;;
  49611. no:yes:* )
  49612. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
  49613. $as_echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
  49614. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
  49615. $as_echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
  49616. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
  49617. $as_echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
  49618. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
  49619. $as_echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49620. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
  49621. $as_echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
  49622. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
  49623. $as_echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
  49624. ( cat <<\_ASBOX
  49625. ## ------------------------------------------ ##
  49626. ## Report this to https://issues.asterisk.org ##
  49627. ## ------------------------------------------ ##
  49628. _ASBOX
  49629. ) | sed "s/^/$as_me: WARNING: /" >&2
  49630. ;;
  49631. esac
  49632. { $as_echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
  49633. $as_echo_n "checking for linux/videodev.h... " >&6; }
  49634. if test "${ac_cv_header_linux_videodev_h+set}" = set; then
  49635. $as_echo_n "(cached) " >&6
  49636. else
  49637. ac_cv_header_linux_videodev_h=$ac_header_preproc
  49638. fi
  49639. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
  49640. $as_echo "$ac_cv_header_linux_videodev_h" >&6; }
  49641. fi
  49642. if test "x$ac_cv_header_linux_videodev_h" = x""yes; then
  49643. cat >>confdefs.h <<_ACEOF
  49644. #define HAVE_VIDEODEV_H 1
  49645. _ACEOF
  49646. fi
  49647. # possible places for X11
  49648. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  49649. pbxlibdir=""
  49650. # if --with-X11=DIR has been specified, use it.
  49651. if test "x${X11_DIR}" != "x"; then
  49652. if test -d ${X11_DIR}/lib; then
  49653. pbxlibdir="-L${X11_DIR}/lib"
  49654. else
  49655. pbxlibdir="-L${X11_DIR}"
  49656. fi
  49657. fi
  49658. pbxfuncname="XOpenDisplay"
  49659. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  49660. AST_X11_FOUND=yes
  49661. else
  49662. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  49663. CFLAGS="${CFLAGS} "
  49664. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  49665. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
  49666. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  49667. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  49668. $as_echo_n "(cached) " >&6
  49669. else
  49670. ac_check_lib_save_LIBS=$LIBS
  49671. LIBS="-lX11 ${pbxlibdir} $LIBS"
  49672. cat >conftest.$ac_ext <<_ACEOF
  49673. /* confdefs.h. */
  49674. _ACEOF
  49675. cat confdefs.h >>conftest.$ac_ext
  49676. cat >>conftest.$ac_ext <<_ACEOF
  49677. /* end confdefs.h. */
  49678. /* Override any GCC internal prototype to avoid an error.
  49679. Use char because int might match the return type of a GCC
  49680. builtin and then its argument prototype would still apply. */
  49681. #ifdef __cplusplus
  49682. extern "C"
  49683. #endif
  49684. char ${pbxfuncname} ();
  49685. int
  49686. main ()
  49687. {
  49688. return ${pbxfuncname} ();
  49689. ;
  49690. return 0;
  49691. }
  49692. _ACEOF
  49693. rm -f conftest.$ac_objext conftest$ac_exeext
  49694. if { (ac_try="$ac_link"
  49695. case "(($ac_try" in
  49696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49697. *) ac_try_echo=$ac_try;;
  49698. esac
  49699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49700. $as_echo "$ac_try_echo") >&5
  49701. (eval "$ac_link") 2>conftest.er1
  49702. ac_status=$?
  49703. grep -v '^ *+' conftest.er1 >conftest.err
  49704. rm -f conftest.er1
  49705. cat conftest.err >&5
  49706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49707. (exit $ac_status); } && {
  49708. test -z "$ac_c_werror_flag" ||
  49709. test ! -s conftest.err
  49710. } && test -s conftest$ac_exeext && {
  49711. test "$cross_compiling" = yes ||
  49712. $as_test_x conftest$ac_exeext
  49713. }; then
  49714. eval "$as_ac_Lib=yes"
  49715. else
  49716. $as_echo "$as_me: failed program was:" >&5
  49717. sed 's/^/| /' conftest.$ac_ext >&5
  49718. eval "$as_ac_Lib=no"
  49719. fi
  49720. rm -rf conftest.dSYM
  49721. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49722. conftest$ac_exeext conftest.$ac_ext
  49723. LIBS=$ac_check_lib_save_LIBS
  49724. fi
  49725. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  49726. $as_echo "$as_val"'`
  49727. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  49728. $as_echo "$ac_res" >&6; }
  49729. as_val=`eval 'as_val=${'$as_ac_Lib'}
  49730. $as_echo "$as_val"'`
  49731. if test "x$as_val" = x""yes; then
  49732. AST_X11_FOUND=yes
  49733. else
  49734. AST_X11_FOUND=no
  49735. fi
  49736. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  49737. fi
  49738. # now check for the header.
  49739. if test "${AST_X11_FOUND}" = "yes"; then
  49740. X11_LIB="${pbxlibdir} -lX11 "
  49741. # if --with-X11=DIR has been specified, use it.
  49742. if test "x${X11_DIR}" != "x"; then
  49743. X11_INCLUDE="-I${X11_DIR}/include"
  49744. fi
  49745. X11_INCLUDE="${X11_INCLUDE} "
  49746. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  49747. X11_HEADER_FOUND="1"
  49748. else # check for the header
  49749. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  49750. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  49751. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49752. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  49753. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  49754. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49755. $as_echo_n "(cached) " >&6
  49756. fi
  49757. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  49758. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  49759. else
  49760. # Is the header compilable?
  49761. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
  49762. $as_echo_n "checking X11/Xlib.h usability... " >&6; }
  49763. cat >conftest.$ac_ext <<_ACEOF
  49764. /* confdefs.h. */
  49765. _ACEOF
  49766. cat confdefs.h >>conftest.$ac_ext
  49767. cat >>conftest.$ac_ext <<_ACEOF
  49768. /* end confdefs.h. */
  49769. $ac_includes_default
  49770. #include <X11/Xlib.h>
  49771. _ACEOF
  49772. rm -f conftest.$ac_objext
  49773. if { (ac_try="$ac_compile"
  49774. case "(($ac_try" in
  49775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49776. *) ac_try_echo=$ac_try;;
  49777. esac
  49778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49779. $as_echo "$ac_try_echo") >&5
  49780. (eval "$ac_compile") 2>conftest.er1
  49781. ac_status=$?
  49782. grep -v '^ *+' conftest.er1 >conftest.err
  49783. rm -f conftest.er1
  49784. cat conftest.err >&5
  49785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49786. (exit $ac_status); } && {
  49787. test -z "$ac_c_werror_flag" ||
  49788. test ! -s conftest.err
  49789. } && test -s conftest.$ac_objext; then
  49790. ac_header_compiler=yes
  49791. else
  49792. $as_echo "$as_me: failed program was:" >&5
  49793. sed 's/^/| /' conftest.$ac_ext >&5
  49794. ac_header_compiler=no
  49795. fi
  49796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49797. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49798. $as_echo "$ac_header_compiler" >&6; }
  49799. # Is the header present?
  49800. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
  49801. $as_echo_n "checking X11/Xlib.h presence... " >&6; }
  49802. cat >conftest.$ac_ext <<_ACEOF
  49803. /* confdefs.h. */
  49804. _ACEOF
  49805. cat confdefs.h >>conftest.$ac_ext
  49806. cat >>conftest.$ac_ext <<_ACEOF
  49807. /* end confdefs.h. */
  49808. #include <X11/Xlib.h>
  49809. _ACEOF
  49810. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49811. case "(($ac_try" in
  49812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49813. *) ac_try_echo=$ac_try;;
  49814. esac
  49815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49816. $as_echo "$ac_try_echo") >&5
  49817. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49818. ac_status=$?
  49819. grep -v '^ *+' conftest.er1 >conftest.err
  49820. rm -f conftest.er1
  49821. cat conftest.err >&5
  49822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49823. (exit $ac_status); } >/dev/null && {
  49824. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49825. test ! -s conftest.err
  49826. }; then
  49827. ac_header_preproc=yes
  49828. else
  49829. $as_echo "$as_me: failed program was:" >&5
  49830. sed 's/^/| /' conftest.$ac_ext >&5
  49831. ac_header_preproc=no
  49832. fi
  49833. rm -f conftest.err conftest.$ac_ext
  49834. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49835. $as_echo "$ac_header_preproc" >&6; }
  49836. # So? What about this header?
  49837. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49838. yes:no: )
  49839. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49840. $as_echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49841. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
  49842. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
  49843. ac_header_preproc=yes
  49844. ;;
  49845. no:yes:* )
  49846. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
  49847. $as_echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
  49848. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
  49849. $as_echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
  49850. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
  49851. $as_echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
  49852. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
  49853. $as_echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49854. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
  49855. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
  49856. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
  49857. $as_echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
  49858. ( cat <<\_ASBOX
  49859. ## ------------------------------------------ ##
  49860. ## Report this to https://issues.asterisk.org ##
  49861. ## ------------------------------------------ ##
  49862. _ASBOX
  49863. ) | sed "s/^/$as_me: WARNING: /" >&2
  49864. ;;
  49865. esac
  49866. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  49867. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  49868. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49869. $as_echo_n "(cached) " >&6
  49870. else
  49871. ac_cv_header_X11_Xlib_h=$ac_header_preproc
  49872. fi
  49873. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  49874. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  49875. fi
  49876. if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then
  49877. X11_HEADER_FOUND=1
  49878. else
  49879. X11_HEADER_FOUND=0
  49880. fi
  49881. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  49882. fi
  49883. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  49884. X11_LIB=""
  49885. X11_INCLUDE=""
  49886. else
  49887. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  49888. X11_LIB=""
  49889. fi
  49890. PBX_X11=1
  49891. cat >>confdefs.h <<_ACEOF
  49892. #define HAVE_X11 1
  49893. _ACEOF
  49894. cat >>confdefs.h <<_ACEOF
  49895. #define HAVE_X11_VERSION standard_path
  49896. _ACEOF
  49897. fi
  49898. fi
  49899. fi
  49900. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  49901. pbxlibdir=""
  49902. # if --with-X11=DIR has been specified, use it.
  49903. if test "x${X11_DIR}" != "x"; then
  49904. if test -d ${X11_DIR}/lib; then
  49905. pbxlibdir="-L${X11_DIR}/lib"
  49906. else
  49907. pbxlibdir="-L${X11_DIR}"
  49908. fi
  49909. fi
  49910. pbxfuncname="XOpenDisplay"
  49911. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  49912. AST_X11_FOUND=yes
  49913. else
  49914. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  49915. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  49916. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  49917. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
  49918. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  49919. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  49920. $as_echo_n "(cached) " >&6
  49921. else
  49922. ac_check_lib_save_LIBS=$LIBS
  49923. LIBS="-lX11 ${pbxlibdir} $LIBS"
  49924. cat >conftest.$ac_ext <<_ACEOF
  49925. /* confdefs.h. */
  49926. _ACEOF
  49927. cat confdefs.h >>conftest.$ac_ext
  49928. cat >>conftest.$ac_ext <<_ACEOF
  49929. /* end confdefs.h. */
  49930. /* Override any GCC internal prototype to avoid an error.
  49931. Use char because int might match the return type of a GCC
  49932. builtin and then its argument prototype would still apply. */
  49933. #ifdef __cplusplus
  49934. extern "C"
  49935. #endif
  49936. char ${pbxfuncname} ();
  49937. int
  49938. main ()
  49939. {
  49940. return ${pbxfuncname} ();
  49941. ;
  49942. return 0;
  49943. }
  49944. _ACEOF
  49945. rm -f conftest.$ac_objext conftest$ac_exeext
  49946. if { (ac_try="$ac_link"
  49947. case "(($ac_try" in
  49948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49949. *) ac_try_echo=$ac_try;;
  49950. esac
  49951. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49952. $as_echo "$ac_try_echo") >&5
  49953. (eval "$ac_link") 2>conftest.er1
  49954. ac_status=$?
  49955. grep -v '^ *+' conftest.er1 >conftest.err
  49956. rm -f conftest.er1
  49957. cat conftest.err >&5
  49958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49959. (exit $ac_status); } && {
  49960. test -z "$ac_c_werror_flag" ||
  49961. test ! -s conftest.err
  49962. } && test -s conftest$ac_exeext && {
  49963. test "$cross_compiling" = yes ||
  49964. $as_test_x conftest$ac_exeext
  49965. }; then
  49966. eval "$as_ac_Lib=yes"
  49967. else
  49968. $as_echo "$as_me: failed program was:" >&5
  49969. sed 's/^/| /' conftest.$ac_ext >&5
  49970. eval "$as_ac_Lib=no"
  49971. fi
  49972. rm -rf conftest.dSYM
  49973. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49974. conftest$ac_exeext conftest.$ac_ext
  49975. LIBS=$ac_check_lib_save_LIBS
  49976. fi
  49977. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  49978. $as_echo "$as_val"'`
  49979. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  49980. $as_echo "$ac_res" >&6; }
  49981. as_val=`eval 'as_val=${'$as_ac_Lib'}
  49982. $as_echo "$as_val"'`
  49983. if test "x$as_val" = x""yes; then
  49984. AST_X11_FOUND=yes
  49985. else
  49986. AST_X11_FOUND=no
  49987. fi
  49988. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  49989. fi
  49990. # now check for the header.
  49991. if test "${AST_X11_FOUND}" = "yes"; then
  49992. X11_LIB="${pbxlibdir} -lX11 "
  49993. # if --with-X11=DIR has been specified, use it.
  49994. if test "x${X11_DIR}" != "x"; then
  49995. X11_INCLUDE="-I${X11_DIR}/include"
  49996. fi
  49997. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  49998. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  49999. X11_HEADER_FOUND="1"
  50000. else # check for the header
  50001. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  50002. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  50003. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  50004. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  50005. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  50006. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  50007. $as_echo_n "(cached) " >&6
  50008. fi
  50009. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  50010. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  50011. else
  50012. # Is the header compilable?
  50013. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
  50014. $as_echo_n "checking X11/Xlib.h usability... " >&6; }
  50015. cat >conftest.$ac_ext <<_ACEOF
  50016. /* confdefs.h. */
  50017. _ACEOF
  50018. cat confdefs.h >>conftest.$ac_ext
  50019. cat >>conftest.$ac_ext <<_ACEOF
  50020. /* end confdefs.h. */
  50021. $ac_includes_default
  50022. #include <X11/Xlib.h>
  50023. _ACEOF
  50024. rm -f conftest.$ac_objext
  50025. if { (ac_try="$ac_compile"
  50026. case "(($ac_try" in
  50027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50028. *) ac_try_echo=$ac_try;;
  50029. esac
  50030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50031. $as_echo "$ac_try_echo") >&5
  50032. (eval "$ac_compile") 2>conftest.er1
  50033. ac_status=$?
  50034. grep -v '^ *+' conftest.er1 >conftest.err
  50035. rm -f conftest.er1
  50036. cat conftest.err >&5
  50037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50038. (exit $ac_status); } && {
  50039. test -z "$ac_c_werror_flag" ||
  50040. test ! -s conftest.err
  50041. } && test -s conftest.$ac_objext; then
  50042. ac_header_compiler=yes
  50043. else
  50044. $as_echo "$as_me: failed program was:" >&5
  50045. sed 's/^/| /' conftest.$ac_ext >&5
  50046. ac_header_compiler=no
  50047. fi
  50048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50049. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  50050. $as_echo "$ac_header_compiler" >&6; }
  50051. # Is the header present?
  50052. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
  50053. $as_echo_n "checking X11/Xlib.h presence... " >&6; }
  50054. cat >conftest.$ac_ext <<_ACEOF
  50055. /* confdefs.h. */
  50056. _ACEOF
  50057. cat confdefs.h >>conftest.$ac_ext
  50058. cat >>conftest.$ac_ext <<_ACEOF
  50059. /* end confdefs.h. */
  50060. #include <X11/Xlib.h>
  50061. _ACEOF
  50062. if { (ac_try="$ac_cpp conftest.$ac_ext"
  50063. case "(($ac_try" in
  50064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50065. *) ac_try_echo=$ac_try;;
  50066. esac
  50067. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50068. $as_echo "$ac_try_echo") >&5
  50069. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  50070. ac_status=$?
  50071. grep -v '^ *+' conftest.er1 >conftest.err
  50072. rm -f conftest.er1
  50073. cat conftest.err >&5
  50074. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50075. (exit $ac_status); } >/dev/null && {
  50076. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  50077. test ! -s conftest.err
  50078. }; then
  50079. ac_header_preproc=yes
  50080. else
  50081. $as_echo "$as_me: failed program was:" >&5
  50082. sed 's/^/| /' conftest.$ac_ext >&5
  50083. ac_header_preproc=no
  50084. fi
  50085. rm -f conftest.err conftest.$ac_ext
  50086. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  50087. $as_echo "$ac_header_preproc" >&6; }
  50088. # So? What about this header?
  50089. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  50090. yes:no: )
  50091. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  50092. $as_echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  50093. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
  50094. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
  50095. ac_header_preproc=yes
  50096. ;;
  50097. no:yes:* )
  50098. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
  50099. $as_echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
  50100. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
  50101. $as_echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
  50102. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
  50103. $as_echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
  50104. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
  50105. $as_echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  50106. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
  50107. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
  50108. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
  50109. $as_echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
  50110. ( cat <<\_ASBOX
  50111. ## ------------------------------------------ ##
  50112. ## Report this to https://issues.asterisk.org ##
  50113. ## ------------------------------------------ ##
  50114. _ASBOX
  50115. ) | sed "s/^/$as_me: WARNING: /" >&2
  50116. ;;
  50117. esac
  50118. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  50119. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  50120. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  50121. $as_echo_n "(cached) " >&6
  50122. else
  50123. ac_cv_header_X11_Xlib_h=$ac_header_preproc
  50124. fi
  50125. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  50126. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  50127. fi
  50128. if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then
  50129. X11_HEADER_FOUND=1
  50130. else
  50131. X11_HEADER_FOUND=0
  50132. fi
  50133. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  50134. fi
  50135. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  50136. X11_LIB=""
  50137. X11_INCLUDE=""
  50138. else
  50139. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  50140. X11_LIB=""
  50141. fi
  50142. PBX_X11=1
  50143. cat >>confdefs.h <<_ACEOF
  50144. #define HAVE_X11 1
  50145. _ACEOF
  50146. cat >>confdefs.h <<_ACEOF
  50147. #define HAVE_X11_VERSION X11R6
  50148. _ACEOF
  50149. fi
  50150. fi
  50151. fi
  50152. PBX_LAUNCHD=0
  50153. if test "${cross_compiling}" = "no";
  50154. then
  50155. { $as_echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
  50156. $as_echo_n "checking for /sbin/launchd... " >&6; }
  50157. if test "${ac_cv_file__sbin_launchd+set}" = set; then
  50158. $as_echo_n "(cached) " >&6
  50159. else
  50160. test "$cross_compiling" = yes &&
  50161. { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  50162. $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  50163. { (exit 1); exit 1; }; }
  50164. if test -r "/sbin/launchd"; then
  50165. ac_cv_file__sbin_launchd=yes
  50166. else
  50167. ac_cv_file__sbin_launchd=no
  50168. fi
  50169. fi
  50170. { $as_echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
  50171. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  50172. if test "x$ac_cv_file__sbin_launchd" = x""yes; then
  50173. cat >>confdefs.h <<\_ACEOF
  50174. #define HAVE_SBIN_LAUNCHD 1
  50175. _ACEOF
  50176. fi
  50177. PBX_LAUNCHD=1
  50178. fi
  50179. PBX_GTK2=0
  50180. if test "${PKGCONFIG}" != "No"; then
  50181. GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
  50182. GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
  50183. PBX_GTK2=1
  50184. cat >>confdefs.h <<\_ACEOF
  50185. #define HAVE_GTK2 1
  50186. _ACEOF
  50187. fi
  50188. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  50189. # or iODBC
  50190. PBX_GENERIC_ODBC=0
  50191. if test "${PBX_UNIXODBC}" = 1; then
  50192. PBX_GENERIC_ODBC=1
  50193. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  50194. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  50195. elif test "${PBX_IODBC}" = 1; then
  50196. PBX_GENERIC_ODBC=1
  50197. GENERIC_ODBC_LIB="${IODBC_LIB}"
  50198. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  50199. fi
  50200. PBX_SYSLOG=0
  50201. if test "${ac_cv_header_syslog_h}" = "yes"; then
  50202. # syslog facilities
  50203. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  50204. { $as_echo "$as_me:$LINENO: checking for LOG_AUTH in syslog.h" >&5
  50205. $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
  50206. saved_cppflags="${CPPFLAGS}"
  50207. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  50208. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  50209. fi
  50210. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  50211. cat >conftest.$ac_ext <<_ACEOF
  50212. /* confdefs.h. */
  50213. _ACEOF
  50214. cat confdefs.h >>conftest.$ac_ext
  50215. cat >>conftest.$ac_ext <<_ACEOF
  50216. /* end confdefs.h. */
  50217. #include <syslog.h>
  50218. int
  50219. main ()
  50220. {
  50221. #if defined(LOG_AUTH)
  50222. int foo = 0;
  50223. #else
  50224. int foo = bar;
  50225. #endif
  50226. 0
  50227. ;
  50228. return 0;
  50229. }
  50230. _ACEOF
  50231. rm -f conftest.$ac_objext
  50232. if { (ac_try="$ac_compile"
  50233. case "(($ac_try" in
  50234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50235. *) ac_try_echo=$ac_try;;
  50236. esac
  50237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50238. $as_echo "$ac_try_echo") >&5
  50239. (eval "$ac_compile") 2>conftest.er1
  50240. ac_status=$?
  50241. grep -v '^ *+' conftest.er1 >conftest.err
  50242. rm -f conftest.er1
  50243. cat conftest.err >&5
  50244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50245. (exit $ac_status); } && {
  50246. test -z "$ac_c_werror_flag" ||
  50247. test ! -s conftest.err
  50248. } && test -s conftest.$ac_objext; then
  50249. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50250. $as_echo "yes" >&6; }
  50251. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  50252. cat >>confdefs.h <<\_ACEOF
  50253. #define HAVE_SYSLOG_FACILITY_LOG_AUTH 1
  50254. _ACEOF
  50255. else
  50256. $as_echo "$as_me: failed program was:" >&5
  50257. sed 's/^/| /' conftest.$ac_ext >&5
  50258. { $as_echo "$as_me:$LINENO: result: no" >&5
  50259. $as_echo "no" >&6; }
  50260. fi
  50261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50262. CPPFLAGS="${saved_cppflags}"
  50263. fi
  50264. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  50265. { $as_echo "$as_me:$LINENO: checking for LOG_AUTHPRIV in syslog.h" >&5
  50266. $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  50267. saved_cppflags="${CPPFLAGS}"
  50268. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  50269. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  50270. fi
  50271. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  50272. cat >conftest.$ac_ext <<_ACEOF
  50273. /* confdefs.h. */
  50274. _ACEOF
  50275. cat confdefs.h >>conftest.$ac_ext
  50276. cat >>conftest.$ac_ext <<_ACEOF
  50277. /* end confdefs.h. */
  50278. #include <syslog.h>
  50279. int
  50280. main ()
  50281. {
  50282. #if defined(LOG_AUTHPRIV)
  50283. int foo = 0;
  50284. #else
  50285. int foo = bar;
  50286. #endif
  50287. 0
  50288. ;
  50289. return 0;
  50290. }
  50291. _ACEOF
  50292. rm -f conftest.$ac_objext
  50293. if { (ac_try="$ac_compile"
  50294. case "(($ac_try" in
  50295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50296. *) ac_try_echo=$ac_try;;
  50297. esac
  50298. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50299. $as_echo "$ac_try_echo") >&5
  50300. (eval "$ac_compile") 2>conftest.er1
  50301. ac_status=$?
  50302. grep -v '^ *+' conftest.er1 >conftest.err
  50303. rm -f conftest.er1
  50304. cat conftest.err >&5
  50305. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50306. (exit $ac_status); } && {
  50307. test -z "$ac_c_werror_flag" ||
  50308. test ! -s conftest.err
  50309. } && test -s conftest.$ac_objext; then
  50310. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50311. $as_echo "yes" >&6; }
  50312. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  50313. cat >>confdefs.h <<\_ACEOF
  50314. #define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1
  50315. _ACEOF
  50316. else
  50317. $as_echo "$as_me: failed program was:" >&5
  50318. sed 's/^/| /' conftest.$ac_ext >&5
  50319. { $as_echo "$as_me:$LINENO: result: no" >&5
  50320. $as_echo "no" >&6; }
  50321. fi
  50322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50323. CPPFLAGS="${saved_cppflags}"
  50324. fi
  50325. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  50326. { $as_echo "$as_me:$LINENO: checking for LOG_CRON in syslog.h" >&5
  50327. $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
  50328. saved_cppflags="${CPPFLAGS}"
  50329. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  50330. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  50331. fi
  50332. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  50333. cat >conftest.$ac_ext <<_ACEOF
  50334. /* confdefs.h. */
  50335. _ACEOF
  50336. cat confdefs.h >>conftest.$ac_ext
  50337. cat >>conftest.$ac_ext <<_ACEOF
  50338. /* end confdefs.h. */
  50339. #include <syslog.h>
  50340. int
  50341. main ()
  50342. {
  50343. #if defined(LOG_CRON)
  50344. int foo = 0;
  50345. #else
  50346. int foo = bar;
  50347. #endif
  50348. 0
  50349. ;
  50350. return 0;
  50351. }
  50352. _ACEOF
  50353. rm -f conftest.$ac_objext
  50354. if { (ac_try="$ac_compile"
  50355. case "(($ac_try" in
  50356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50357. *) ac_try_echo=$ac_try;;
  50358. esac
  50359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50360. $as_echo "$ac_try_echo") >&5
  50361. (eval "$ac_compile") 2>conftest.er1
  50362. ac_status=$?
  50363. grep -v '^ *+' conftest.er1 >conftest.err
  50364. rm -f conftest.er1
  50365. cat conftest.err >&5
  50366. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50367. (exit $ac_status); } && {
  50368. test -z "$ac_c_werror_flag" ||
  50369. test ! -s conftest.err
  50370. } && test -s conftest.$ac_objext; then
  50371. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50372. $as_echo "yes" >&6; }
  50373. PBX_SYSLOG_FACILITY_LOG_CRON=1
  50374. cat >>confdefs.h <<\_ACEOF
  50375. #define HAVE_SYSLOG_FACILITY_LOG_CRON 1
  50376. _ACEOF
  50377. else
  50378. $as_echo "$as_me: failed program was:" >&5
  50379. sed 's/^/| /' conftest.$ac_ext >&5
  50380. { $as_echo "$as_me:$LINENO: result: no" >&5
  50381. $as_echo "no" >&6; }
  50382. fi
  50383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50384. CPPFLAGS="${saved_cppflags}"
  50385. fi
  50386. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  50387. { $as_echo "$as_me:$LINENO: checking for LOG_DAEMON in syslog.h" >&5
  50388. $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
  50389. saved_cppflags="${CPPFLAGS}"
  50390. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  50391. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  50392. fi
  50393. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  50394. cat >conftest.$ac_ext <<_ACEOF
  50395. /* confdefs.h. */
  50396. _ACEOF
  50397. cat confdefs.h >>conftest.$ac_ext
  50398. cat >>conftest.$ac_ext <<_ACEOF
  50399. /* end confdefs.h. */
  50400. #include <syslog.h>
  50401. int
  50402. main ()
  50403. {
  50404. #if defined(LOG_DAEMON)
  50405. int foo = 0;
  50406. #else
  50407. int foo = bar;
  50408. #endif
  50409. 0
  50410. ;
  50411. return 0;
  50412. }
  50413. _ACEOF
  50414. rm -f conftest.$ac_objext
  50415. if { (ac_try="$ac_compile"
  50416. case "(($ac_try" in
  50417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50418. *) ac_try_echo=$ac_try;;
  50419. esac
  50420. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50421. $as_echo "$ac_try_echo") >&5
  50422. (eval "$ac_compile") 2>conftest.er1
  50423. ac_status=$?
  50424. grep -v '^ *+' conftest.er1 >conftest.err
  50425. rm -f conftest.er1
  50426. cat conftest.err >&5
  50427. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50428. (exit $ac_status); } && {
  50429. test -z "$ac_c_werror_flag" ||
  50430. test ! -s conftest.err
  50431. } && test -s conftest.$ac_objext; then
  50432. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50433. $as_echo "yes" >&6; }
  50434. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  50435. cat >>confdefs.h <<\_ACEOF
  50436. #define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1
  50437. _ACEOF
  50438. else
  50439. $as_echo "$as_me: failed program was:" >&5
  50440. sed 's/^/| /' conftest.$ac_ext >&5
  50441. { $as_echo "$as_me:$LINENO: result: no" >&5
  50442. $as_echo "no" >&6; }
  50443. fi
  50444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50445. CPPFLAGS="${saved_cppflags}"
  50446. fi
  50447. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  50448. { $as_echo "$as_me:$LINENO: checking for LOG_FTP in syslog.h" >&5
  50449. $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
  50450. saved_cppflags="${CPPFLAGS}"
  50451. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  50452. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  50453. fi
  50454. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  50455. cat >conftest.$ac_ext <<_ACEOF
  50456. /* confdefs.h. */
  50457. _ACEOF
  50458. cat confdefs.h >>conftest.$ac_ext
  50459. cat >>conftest.$ac_ext <<_ACEOF
  50460. /* end confdefs.h. */
  50461. #include <syslog.h>
  50462. int
  50463. main ()
  50464. {
  50465. #if defined(LOG_FTP)
  50466. int foo = 0;
  50467. #else
  50468. int foo = bar;
  50469. #endif
  50470. 0
  50471. ;
  50472. return 0;
  50473. }
  50474. _ACEOF
  50475. rm -f conftest.$ac_objext
  50476. if { (ac_try="$ac_compile"
  50477. case "(($ac_try" in
  50478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50479. *) ac_try_echo=$ac_try;;
  50480. esac
  50481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50482. $as_echo "$ac_try_echo") >&5
  50483. (eval "$ac_compile") 2>conftest.er1
  50484. ac_status=$?
  50485. grep -v '^ *+' conftest.er1 >conftest.err
  50486. rm -f conftest.er1
  50487. cat conftest.err >&5
  50488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50489. (exit $ac_status); } && {
  50490. test -z "$ac_c_werror_flag" ||
  50491. test ! -s conftest.err
  50492. } && test -s conftest.$ac_objext; then
  50493. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50494. $as_echo "yes" >&6; }
  50495. PBX_SYSLOG_FACILITY_LOG_FTP=1
  50496. cat >>confdefs.h <<\_ACEOF
  50497. #define HAVE_SYSLOG_FACILITY_LOG_FTP 1
  50498. _ACEOF
  50499. else
  50500. $as_echo "$as_me: failed program was:" >&5
  50501. sed 's/^/| /' conftest.$ac_ext >&5
  50502. { $as_echo "$as_me:$LINENO: result: no" >&5
  50503. $as_echo "no" >&6; }
  50504. fi
  50505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50506. CPPFLAGS="${saved_cppflags}"
  50507. fi
  50508. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  50509. { $as_echo "$as_me:$LINENO: checking for LOG_KERN in syslog.h" >&5
  50510. $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
  50511. saved_cppflags="${CPPFLAGS}"
  50512. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  50513. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  50514. fi
  50515. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  50516. cat >conftest.$ac_ext <<_ACEOF
  50517. /* confdefs.h. */
  50518. _ACEOF
  50519. cat confdefs.h >>conftest.$ac_ext
  50520. cat >>conftest.$ac_ext <<_ACEOF
  50521. /* end confdefs.h. */
  50522. #include <syslog.h>
  50523. int
  50524. main ()
  50525. {
  50526. #if defined(LOG_KERN)
  50527. int foo = 0;
  50528. #else
  50529. int foo = bar;
  50530. #endif
  50531. 0
  50532. ;
  50533. return 0;
  50534. }
  50535. _ACEOF
  50536. rm -f conftest.$ac_objext
  50537. if { (ac_try="$ac_compile"
  50538. case "(($ac_try" in
  50539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50540. *) ac_try_echo=$ac_try;;
  50541. esac
  50542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50543. $as_echo "$ac_try_echo") >&5
  50544. (eval "$ac_compile") 2>conftest.er1
  50545. ac_status=$?
  50546. grep -v '^ *+' conftest.er1 >conftest.err
  50547. rm -f conftest.er1
  50548. cat conftest.err >&5
  50549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50550. (exit $ac_status); } && {
  50551. test -z "$ac_c_werror_flag" ||
  50552. test ! -s conftest.err
  50553. } && test -s conftest.$ac_objext; then
  50554. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50555. $as_echo "yes" >&6; }
  50556. PBX_SYSLOG_FACILITY_LOG_KERN=1
  50557. cat >>confdefs.h <<\_ACEOF
  50558. #define HAVE_SYSLOG_FACILITY_LOG_KERN 1
  50559. _ACEOF
  50560. else
  50561. $as_echo "$as_me: failed program was:" >&5
  50562. sed 's/^/| /' conftest.$ac_ext >&5
  50563. { $as_echo "$as_me:$LINENO: result: no" >&5
  50564. $as_echo "no" >&6; }
  50565. fi
  50566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50567. CPPFLAGS="${saved_cppflags}"
  50568. fi
  50569. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  50570. { $as_echo "$as_me:$LINENO: checking for LOG_LPR in syslog.h" >&5
  50571. $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
  50572. saved_cppflags="${CPPFLAGS}"
  50573. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  50574. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  50575. fi
  50576. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  50577. cat >conftest.$ac_ext <<_ACEOF
  50578. /* confdefs.h. */
  50579. _ACEOF
  50580. cat confdefs.h >>conftest.$ac_ext
  50581. cat >>conftest.$ac_ext <<_ACEOF
  50582. /* end confdefs.h. */
  50583. #include <syslog.h>
  50584. int
  50585. main ()
  50586. {
  50587. #if defined(LOG_LPR)
  50588. int foo = 0;
  50589. #else
  50590. int foo = bar;
  50591. #endif
  50592. 0
  50593. ;
  50594. return 0;
  50595. }
  50596. _ACEOF
  50597. rm -f conftest.$ac_objext
  50598. if { (ac_try="$ac_compile"
  50599. case "(($ac_try" in
  50600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50601. *) ac_try_echo=$ac_try;;
  50602. esac
  50603. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50604. $as_echo "$ac_try_echo") >&5
  50605. (eval "$ac_compile") 2>conftest.er1
  50606. ac_status=$?
  50607. grep -v '^ *+' conftest.er1 >conftest.err
  50608. rm -f conftest.er1
  50609. cat conftest.err >&5
  50610. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50611. (exit $ac_status); } && {
  50612. test -z "$ac_c_werror_flag" ||
  50613. test ! -s conftest.err
  50614. } && test -s conftest.$ac_objext; then
  50615. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50616. $as_echo "yes" >&6; }
  50617. PBX_SYSLOG_FACILITY_LOG_LPR=1
  50618. cat >>confdefs.h <<\_ACEOF
  50619. #define HAVE_SYSLOG_FACILITY_LOG_LPR 1
  50620. _ACEOF
  50621. else
  50622. $as_echo "$as_me: failed program was:" >&5
  50623. sed 's/^/| /' conftest.$ac_ext >&5
  50624. { $as_echo "$as_me:$LINENO: result: no" >&5
  50625. $as_echo "no" >&6; }
  50626. fi
  50627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50628. CPPFLAGS="${saved_cppflags}"
  50629. fi
  50630. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  50631. { $as_echo "$as_me:$LINENO: checking for LOG_MAIL in syslog.h" >&5
  50632. $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
  50633. saved_cppflags="${CPPFLAGS}"
  50634. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  50635. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  50636. fi
  50637. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  50638. cat >conftest.$ac_ext <<_ACEOF
  50639. /* confdefs.h. */
  50640. _ACEOF
  50641. cat confdefs.h >>conftest.$ac_ext
  50642. cat >>conftest.$ac_ext <<_ACEOF
  50643. /* end confdefs.h. */
  50644. #include <syslog.h>
  50645. int
  50646. main ()
  50647. {
  50648. #if defined(LOG_MAIL)
  50649. int foo = 0;
  50650. #else
  50651. int foo = bar;
  50652. #endif
  50653. 0
  50654. ;
  50655. return 0;
  50656. }
  50657. _ACEOF
  50658. rm -f conftest.$ac_objext
  50659. if { (ac_try="$ac_compile"
  50660. case "(($ac_try" in
  50661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50662. *) ac_try_echo=$ac_try;;
  50663. esac
  50664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50665. $as_echo "$ac_try_echo") >&5
  50666. (eval "$ac_compile") 2>conftest.er1
  50667. ac_status=$?
  50668. grep -v '^ *+' conftest.er1 >conftest.err
  50669. rm -f conftest.er1
  50670. cat conftest.err >&5
  50671. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50672. (exit $ac_status); } && {
  50673. test -z "$ac_c_werror_flag" ||
  50674. test ! -s conftest.err
  50675. } && test -s conftest.$ac_objext; then
  50676. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50677. $as_echo "yes" >&6; }
  50678. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  50679. cat >>confdefs.h <<\_ACEOF
  50680. #define HAVE_SYSLOG_FACILITY_LOG_MAIL 1
  50681. _ACEOF
  50682. else
  50683. $as_echo "$as_me: failed program was:" >&5
  50684. sed 's/^/| /' conftest.$ac_ext >&5
  50685. { $as_echo "$as_me:$LINENO: result: no" >&5
  50686. $as_echo "no" >&6; }
  50687. fi
  50688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50689. CPPFLAGS="${saved_cppflags}"
  50690. fi
  50691. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  50692. { $as_echo "$as_me:$LINENO: checking for LOG_NEWS in syslog.h" >&5
  50693. $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
  50694. saved_cppflags="${CPPFLAGS}"
  50695. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  50696. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  50697. fi
  50698. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  50699. cat >conftest.$ac_ext <<_ACEOF
  50700. /* confdefs.h. */
  50701. _ACEOF
  50702. cat confdefs.h >>conftest.$ac_ext
  50703. cat >>conftest.$ac_ext <<_ACEOF
  50704. /* end confdefs.h. */
  50705. #include <syslog.h>
  50706. int
  50707. main ()
  50708. {
  50709. #if defined(LOG_NEWS)
  50710. int foo = 0;
  50711. #else
  50712. int foo = bar;
  50713. #endif
  50714. 0
  50715. ;
  50716. return 0;
  50717. }
  50718. _ACEOF
  50719. rm -f conftest.$ac_objext
  50720. if { (ac_try="$ac_compile"
  50721. case "(($ac_try" in
  50722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50723. *) ac_try_echo=$ac_try;;
  50724. esac
  50725. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50726. $as_echo "$ac_try_echo") >&5
  50727. (eval "$ac_compile") 2>conftest.er1
  50728. ac_status=$?
  50729. grep -v '^ *+' conftest.er1 >conftest.err
  50730. rm -f conftest.er1
  50731. cat conftest.err >&5
  50732. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50733. (exit $ac_status); } && {
  50734. test -z "$ac_c_werror_flag" ||
  50735. test ! -s conftest.err
  50736. } && test -s conftest.$ac_objext; then
  50737. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50738. $as_echo "yes" >&6; }
  50739. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  50740. cat >>confdefs.h <<\_ACEOF
  50741. #define HAVE_SYSLOG_FACILITY_LOG_NEWS 1
  50742. _ACEOF
  50743. else
  50744. $as_echo "$as_me: failed program was:" >&5
  50745. sed 's/^/| /' conftest.$ac_ext >&5
  50746. { $as_echo "$as_me:$LINENO: result: no" >&5
  50747. $as_echo "no" >&6; }
  50748. fi
  50749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50750. CPPFLAGS="${saved_cppflags}"
  50751. fi
  50752. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  50753. { $as_echo "$as_me:$LINENO: checking for LOG_SYSLOG in syslog.h" >&5
  50754. $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
  50755. saved_cppflags="${CPPFLAGS}"
  50756. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  50757. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  50758. fi
  50759. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  50760. cat >conftest.$ac_ext <<_ACEOF
  50761. /* confdefs.h. */
  50762. _ACEOF
  50763. cat confdefs.h >>conftest.$ac_ext
  50764. cat >>conftest.$ac_ext <<_ACEOF
  50765. /* end confdefs.h. */
  50766. #include <syslog.h>
  50767. int
  50768. main ()
  50769. {
  50770. #if defined(LOG_SYSLOG)
  50771. int foo = 0;
  50772. #else
  50773. int foo = bar;
  50774. #endif
  50775. 0
  50776. ;
  50777. return 0;
  50778. }
  50779. _ACEOF
  50780. rm -f conftest.$ac_objext
  50781. if { (ac_try="$ac_compile"
  50782. case "(($ac_try" in
  50783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50784. *) ac_try_echo=$ac_try;;
  50785. esac
  50786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50787. $as_echo "$ac_try_echo") >&5
  50788. (eval "$ac_compile") 2>conftest.er1
  50789. ac_status=$?
  50790. grep -v '^ *+' conftest.er1 >conftest.err
  50791. rm -f conftest.er1
  50792. cat conftest.err >&5
  50793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50794. (exit $ac_status); } && {
  50795. test -z "$ac_c_werror_flag" ||
  50796. test ! -s conftest.err
  50797. } && test -s conftest.$ac_objext; then
  50798. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50799. $as_echo "yes" >&6; }
  50800. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  50801. cat >>confdefs.h <<\_ACEOF
  50802. #define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1
  50803. _ACEOF
  50804. else
  50805. $as_echo "$as_me: failed program was:" >&5
  50806. sed 's/^/| /' conftest.$ac_ext >&5
  50807. { $as_echo "$as_me:$LINENO: result: no" >&5
  50808. $as_echo "no" >&6; }
  50809. fi
  50810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50811. CPPFLAGS="${saved_cppflags}"
  50812. fi
  50813. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  50814. { $as_echo "$as_me:$LINENO: checking for LOG_UUCP in syslog.h" >&5
  50815. $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
  50816. saved_cppflags="${CPPFLAGS}"
  50817. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  50818. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  50819. fi
  50820. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  50821. cat >conftest.$ac_ext <<_ACEOF
  50822. /* confdefs.h. */
  50823. _ACEOF
  50824. cat confdefs.h >>conftest.$ac_ext
  50825. cat >>conftest.$ac_ext <<_ACEOF
  50826. /* end confdefs.h. */
  50827. #include <syslog.h>
  50828. int
  50829. main ()
  50830. {
  50831. #if defined(LOG_UUCP)
  50832. int foo = 0;
  50833. #else
  50834. int foo = bar;
  50835. #endif
  50836. 0
  50837. ;
  50838. return 0;
  50839. }
  50840. _ACEOF
  50841. rm -f conftest.$ac_objext
  50842. if { (ac_try="$ac_compile"
  50843. case "(($ac_try" in
  50844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50845. *) ac_try_echo=$ac_try;;
  50846. esac
  50847. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50848. $as_echo "$ac_try_echo") >&5
  50849. (eval "$ac_compile") 2>conftest.er1
  50850. ac_status=$?
  50851. grep -v '^ *+' conftest.er1 >conftest.err
  50852. rm -f conftest.er1
  50853. cat conftest.err >&5
  50854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50855. (exit $ac_status); } && {
  50856. test -z "$ac_c_werror_flag" ||
  50857. test ! -s conftest.err
  50858. } && test -s conftest.$ac_objext; then
  50859. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50860. $as_echo "yes" >&6; }
  50861. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  50862. cat >>confdefs.h <<\_ACEOF
  50863. #define HAVE_SYSLOG_FACILITY_LOG_UUCP 1
  50864. _ACEOF
  50865. else
  50866. $as_echo "$as_me: failed program was:" >&5
  50867. sed 's/^/| /' conftest.$ac_ext >&5
  50868. { $as_echo "$as_me:$LINENO: result: no" >&5
  50869. $as_echo "no" >&6; }
  50870. fi
  50871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50872. CPPFLAGS="${saved_cppflags}"
  50873. fi
  50874. PBX_SYSLOG=1
  50875. fi
  50876. if test -f makeopts; then
  50877. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  50878. else
  50879. touch makeopts.acbak
  50880. fi
  50881. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
  50882. { $as_echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
  50883. $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  50884. err=0;
  50885. for i in ${ac_mandatory_list}; do
  50886. eval "a=\${PBX_$i}"
  50887. if test "x${a}" = "x1" ; then continue; fi
  50888. if test ${err} = "0" ; then { $as_echo "$as_me:$LINENO: result: fail" >&5
  50889. $as_echo "fail" >&6; } ; fi
  50890. { $as_echo "$as_me:$LINENO: result: " >&5
  50891. $as_echo "" >&6; }
  50892. eval "a=\${${i}_OPTION}"
  50893. { $as_echo "$as_me:$LINENO: ***" >&5
  50894. $as_echo "$as_me: ***" >&6;}
  50895. { $as_echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
  50896. $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  50897. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  50898. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  50899. { $as_echo "$as_me:$LINENO: *** including --without-${a}." >&5
  50900. $as_echo "$as_me: *** including --without-${a}." >&6;}
  50901. err=1
  50902. done
  50903. if test $err = 1 ; then exit 1; fi
  50904. { $as_echo "$as_me:$LINENO: result: ok" >&5
  50905. $as_echo "ok" >&6; }
  50906. if test -f build_tools/menuselect-deps; then
  50907. # extract old values of all PBX_ variables from menuselect-deps
  50908. # and preserve them so that menuselect can determine whether
  50909. # any previously-met dependencies are no longer met and warn
  50910. # the user appropriately
  50911. while IFS="=:" read var val old_val; do
  50912. eval "PBX_${var}=\${PBX_${var}}:${val}"
  50913. done < build_tools/menuselect-deps
  50914. fi
  50915. cat >confcache <<\_ACEOF
  50916. # This file is a shell script that caches the results of configure
  50917. # tests run on this system so they can be shared between configure
  50918. # scripts and configure runs, see configure's option --config-cache.
  50919. # It is not useful on other systems. If it contains results you don't
  50920. # want to keep, you may remove or edit it.
  50921. #
  50922. # config.status only pays attention to the cache file if you give it
  50923. # the --recheck option to rerun configure.
  50924. #
  50925. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  50926. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  50927. # following values.
  50928. _ACEOF
  50929. # The following way of writing the cache mishandles newlines in values,
  50930. # but we know of no workaround that is simple, portable, and efficient.
  50931. # So, we kill variables containing newlines.
  50932. # Ultrix sh set writes to stderr and can't be redirected directly,
  50933. # and sets the high bit in the cache file unless we assign to the vars.
  50934. (
  50935. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  50936. eval ac_val=\$$ac_var
  50937. case $ac_val in #(
  50938. *${as_nl}*)
  50939. case $ac_var in #(
  50940. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  50941. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  50942. esac
  50943. case $ac_var in #(
  50944. _ | IFS | as_nl) ;; #(
  50945. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  50946. *) $as_unset $ac_var ;;
  50947. esac ;;
  50948. esac
  50949. done
  50950. (set) 2>&1 |
  50951. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  50952. *${as_nl}ac_space=\ *)
  50953. # `set' does not quote correctly, so add quotes (double-quote
  50954. # substitution turns \\\\ into \\, and sed turns \\ into \).
  50955. sed -n \
  50956. "s/'/'\\\\''/g;
  50957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  50958. ;; #(
  50959. *)
  50960. # `set' quotes correctly as required by POSIX, so do not add quotes.
  50961. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  50962. ;;
  50963. esac |
  50964. sort
  50965. ) |
  50966. sed '
  50967. /^ac_cv_env_/b end
  50968. t clear
  50969. :clear
  50970. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  50971. t end
  50972. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  50973. :end' >>confcache
  50974. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  50975. if test -w "$cache_file"; then
  50976. test "x$cache_file" != "x/dev/null" &&
  50977. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  50978. $as_echo "$as_me: updating cache $cache_file" >&6;}
  50979. cat confcache >$cache_file
  50980. else
  50981. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  50982. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  50983. fi
  50984. fi
  50985. rm -f confcache
  50986. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  50987. # Let make expand exec_prefix.
  50988. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  50989. DEFS=-DHAVE_CONFIG_H
  50990. ac_libobjs=
  50991. ac_ltlibobjs=
  50992. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  50993. # 1. Remove the extension, and $U if already installed.
  50994. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  50995. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  50996. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  50997. # will be set to the directory where LIBOBJS objects are built.
  50998. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  50999. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  51000. done
  51001. LIBOBJS=$ac_libobjs
  51002. LTLIBOBJS=$ac_ltlibobjs
  51003. : ${CONFIG_STATUS=./config.status}
  51004. ac_write_fail=0
  51005. ac_clean_files_save=$ac_clean_files
  51006. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  51007. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  51008. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  51009. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51010. #! $SHELL
  51011. # Generated by $as_me.
  51012. # Run this file to recreate the current configuration.
  51013. # Compiler output produced by configure, useful for debugging
  51014. # configure, is in config.log if it exists.
  51015. debug=false
  51016. ac_cs_recheck=false
  51017. ac_cs_silent=false
  51018. SHELL=\${CONFIG_SHELL-$SHELL}
  51019. _ACEOF
  51020. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51021. ## --------------------- ##
  51022. ## M4sh Initialization. ##
  51023. ## --------------------- ##
  51024. # Be more Bourne compatible
  51025. DUALCASE=1; export DUALCASE # for MKS sh
  51026. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  51027. emulate sh
  51028. NULLCMD=:
  51029. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  51030. # is contrary to our usage. Disable this feature.
  51031. alias -g '${1+"$@"}'='"$@"'
  51032. setopt NO_GLOB_SUBST
  51033. else
  51034. case `(set -o) 2>/dev/null` in
  51035. *posix*) set -o posix ;;
  51036. esac
  51037. fi
  51038. # PATH needs CR
  51039. # Avoid depending upon Character Ranges.
  51040. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  51041. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  51042. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  51043. as_cr_digits='0123456789'
  51044. as_cr_alnum=$as_cr_Letters$as_cr_digits
  51045. as_nl='
  51046. '
  51047. export as_nl
  51048. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  51049. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  51050. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  51051. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  51052. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  51053. as_echo='printf %s\n'
  51054. as_echo_n='printf %s'
  51055. else
  51056. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51057. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  51058. as_echo_n='/usr/ucb/echo -n'
  51059. else
  51060. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51061. as_echo_n_body='eval
  51062. arg=$1;
  51063. case $arg in
  51064. *"$as_nl"*)
  51065. expr "X$arg" : "X\\(.*\\)$as_nl";
  51066. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  51067. esac;
  51068. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  51069. '
  51070. export as_echo_n_body
  51071. as_echo_n='sh -c $as_echo_n_body as_echo'
  51072. fi
  51073. export as_echo_body
  51074. as_echo='sh -c $as_echo_body as_echo'
  51075. fi
  51076. # The user is always right.
  51077. if test "${PATH_SEPARATOR+set}" != set; then
  51078. PATH_SEPARATOR=:
  51079. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  51080. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  51081. PATH_SEPARATOR=';'
  51082. }
  51083. fi
  51084. # Support unset when possible.
  51085. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  51086. as_unset=unset
  51087. else
  51088. as_unset=false
  51089. fi
  51090. # IFS
  51091. # We need space, tab and new line, in precisely that order. Quoting is
  51092. # there to prevent editors from complaining about space-tab.
  51093. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  51094. # splitting by setting IFS to empty value.)
  51095. IFS=" "" $as_nl"
  51096. # Find who we are. Look in the path if we contain no directory separator.
  51097. case $0 in
  51098. *[\\/]* ) as_myself=$0 ;;
  51099. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  51100. for as_dir in $PATH
  51101. do
  51102. IFS=$as_save_IFS
  51103. test -z "$as_dir" && as_dir=.
  51104. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  51105. done
  51106. IFS=$as_save_IFS
  51107. ;;
  51108. esac
  51109. # We did not find ourselves, most probably we were run as `sh COMMAND'
  51110. # in which case we are not to be found in the path.
  51111. if test "x$as_myself" = x; then
  51112. as_myself=$0
  51113. fi
  51114. if test ! -f "$as_myself"; then
  51115. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  51116. { (exit 1); exit 1; }
  51117. fi
  51118. # Work around bugs in pre-3.0 UWIN ksh.
  51119. for as_var in ENV MAIL MAILPATH
  51120. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  51121. done
  51122. PS1='$ '
  51123. PS2='> '
  51124. PS4='+ '
  51125. # NLS nuisances.
  51126. LC_ALL=C
  51127. export LC_ALL
  51128. LANGUAGE=C
  51129. export LANGUAGE
  51130. # Required to use basename.
  51131. if expr a : '\(a\)' >/dev/null 2>&1 &&
  51132. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  51133. as_expr=expr
  51134. else
  51135. as_expr=false
  51136. fi
  51137. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  51138. as_basename=basename
  51139. else
  51140. as_basename=false
  51141. fi
  51142. # Name of the executable.
  51143. as_me=`$as_basename -- "$0" ||
  51144. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  51145. X"$0" : 'X\(//\)$' \| \
  51146. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  51147. $as_echo X/"$0" |
  51148. sed '/^.*\/\([^/][^/]*\)\/*$/{
  51149. s//\1/
  51150. q
  51151. }
  51152. /^X\/\(\/\/\)$/{
  51153. s//\1/
  51154. q
  51155. }
  51156. /^X\/\(\/\).*/{
  51157. s//\1/
  51158. q
  51159. }
  51160. s/.*/./; q'`
  51161. # CDPATH.
  51162. $as_unset CDPATH
  51163. as_lineno_1=$LINENO
  51164. as_lineno_2=$LINENO
  51165. test "x$as_lineno_1" != "x$as_lineno_2" &&
  51166. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  51167. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  51168. # uniformly replaced by the line number. The first 'sed' inserts a
  51169. # line-number line after each line using $LINENO; the second 'sed'
  51170. # does the real work. The second script uses 'N' to pair each
  51171. # line-number line with the line containing $LINENO, and appends
  51172. # trailing '-' during substitution so that $LINENO is not a special
  51173. # case at line end.
  51174. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  51175. # scripts with optimization help from Paolo Bonzini. Blame Lee
  51176. # E. McMahon (1931-1989) for sed's syntax. :-)
  51177. sed -n '
  51178. p
  51179. /[$]LINENO/=
  51180. ' <$as_myself |
  51181. sed '
  51182. s/[$]LINENO.*/&-/
  51183. t lineno
  51184. b
  51185. :lineno
  51186. N
  51187. :loop
  51188. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  51189. t loop
  51190. s/-\n.*//
  51191. ' >$as_me.lineno &&
  51192. chmod +x "$as_me.lineno" ||
  51193. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  51194. { (exit 1); exit 1; }; }
  51195. # Don't try to exec as it changes $[0], causing all sort of problems
  51196. # (the dirname of $[0] is not the place where we might find the
  51197. # original and so on. Autoconf is especially sensitive to this).
  51198. . "./$as_me.lineno"
  51199. # Exit status is that of the last command.
  51200. exit
  51201. }
  51202. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  51203. as_dirname=dirname
  51204. else
  51205. as_dirname=false
  51206. fi
  51207. ECHO_C= ECHO_N= ECHO_T=
  51208. case `echo -n x` in
  51209. -n*)
  51210. case `echo 'x\c'` in
  51211. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  51212. *) ECHO_C='\c';;
  51213. esac;;
  51214. *)
  51215. ECHO_N='-n';;
  51216. esac
  51217. if expr a : '\(a\)' >/dev/null 2>&1 &&
  51218. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  51219. as_expr=expr
  51220. else
  51221. as_expr=false
  51222. fi
  51223. rm -f conf$$ conf$$.exe conf$$.file
  51224. if test -d conf$$.dir; then
  51225. rm -f conf$$.dir/conf$$.file
  51226. else
  51227. rm -f conf$$.dir
  51228. mkdir conf$$.dir 2>/dev/null
  51229. fi
  51230. if (echo >conf$$.file) 2>/dev/null; then
  51231. if ln -s conf$$.file conf$$ 2>/dev/null; then
  51232. as_ln_s='ln -s'
  51233. # ... but there are two gotchas:
  51234. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  51235. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  51236. # In both cases, we have to default to `cp -p'.
  51237. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  51238. as_ln_s='cp -p'
  51239. elif ln conf$$.file conf$$ 2>/dev/null; then
  51240. as_ln_s=ln
  51241. else
  51242. as_ln_s='cp -p'
  51243. fi
  51244. else
  51245. as_ln_s='cp -p'
  51246. fi
  51247. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  51248. rmdir conf$$.dir 2>/dev/null
  51249. if mkdir -p . 2>/dev/null; then
  51250. as_mkdir_p=:
  51251. else
  51252. test -d ./-p && rmdir ./-p
  51253. as_mkdir_p=false
  51254. fi
  51255. if test -x / >/dev/null 2>&1; then
  51256. as_test_x='test -x'
  51257. else
  51258. if ls -dL / >/dev/null 2>&1; then
  51259. as_ls_L_option=L
  51260. else
  51261. as_ls_L_option=
  51262. fi
  51263. as_test_x='
  51264. eval sh -c '\''
  51265. if test -d "$1"; then
  51266. test -d "$1/.";
  51267. else
  51268. case $1 in
  51269. -*)set "./$1";;
  51270. esac;
  51271. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  51272. ???[sx]*):;;*)false;;esac;fi
  51273. '\'' sh
  51274. '
  51275. fi
  51276. as_executable_p=$as_test_x
  51277. # Sed expression to map a string onto a valid CPP name.
  51278. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  51279. # Sed expression to map a string onto a valid variable name.
  51280. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  51281. exec 6>&1
  51282. # Save the log message, to keep $[0] and so on meaningful, and to
  51283. # report actual input values of CONFIG_FILES etc. instead of their
  51284. # values after options handling.
  51285. ac_log="
  51286. This file was extended by asterisk $as_me trunk, which was
  51287. generated by GNU Autoconf 2.63. Invocation command line was
  51288. CONFIG_FILES = $CONFIG_FILES
  51289. CONFIG_HEADERS = $CONFIG_HEADERS
  51290. CONFIG_LINKS = $CONFIG_LINKS
  51291. CONFIG_COMMANDS = $CONFIG_COMMANDS
  51292. $ $0 $@
  51293. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  51294. "
  51295. _ACEOF
  51296. case $ac_config_files in *"
  51297. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  51298. esac
  51299. case $ac_config_headers in *"
  51300. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  51301. esac
  51302. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51303. # Files that config.status was made for.
  51304. config_files="$ac_config_files"
  51305. config_headers="$ac_config_headers"
  51306. _ACEOF
  51307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51308. ac_cs_usage="\
  51309. \`$as_me' instantiates files from templates according to the
  51310. current configuration.
  51311. Usage: $0 [OPTION]... [FILE]...
  51312. -h, --help print this help, then exit
  51313. -V, --version print version number and configuration settings, then exit
  51314. -q, --quiet, --silent
  51315. do not print progress messages
  51316. -d, --debug don't remove temporary files
  51317. --recheck update $as_me by reconfiguring in the same conditions
  51318. --file=FILE[:TEMPLATE]
  51319. instantiate the configuration file FILE
  51320. --header=FILE[:TEMPLATE]
  51321. instantiate the configuration header FILE
  51322. Configuration files:
  51323. $config_files
  51324. Configuration headers:
  51325. $config_headers
  51326. Report bugs to <bug-autoconf@gnu.org>."
  51327. _ACEOF
  51328. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51329. ac_cs_version="\\
  51330. asterisk config.status trunk
  51331. configured by $0, generated by GNU Autoconf 2.63,
  51332. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  51333. Copyright (C) 2008 Free Software Foundation, Inc.
  51334. This config.status script is free software; the Free Software Foundation
  51335. gives unlimited permission to copy, distribute and modify it."
  51336. ac_pwd='$ac_pwd'
  51337. srcdir='$srcdir'
  51338. INSTALL='$INSTALL'
  51339. AWK='$AWK'
  51340. test -n "\$AWK" || AWK=awk
  51341. _ACEOF
  51342. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51343. # The default lists apply if the user does not specify any file.
  51344. ac_need_defaults=:
  51345. while test $# != 0
  51346. do
  51347. case $1 in
  51348. --*=*)
  51349. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  51350. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  51351. ac_shift=:
  51352. ;;
  51353. *)
  51354. ac_option=$1
  51355. ac_optarg=$2
  51356. ac_shift=shift
  51357. ;;
  51358. esac
  51359. case $ac_option in
  51360. # Handling of the options.
  51361. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  51362. ac_cs_recheck=: ;;
  51363. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  51364. $as_echo "$ac_cs_version"; exit ;;
  51365. --debug | --debu | --deb | --de | --d | -d )
  51366. debug=: ;;
  51367. --file | --fil | --fi | --f )
  51368. $ac_shift
  51369. case $ac_optarg in
  51370. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  51371. esac
  51372. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  51373. ac_need_defaults=false;;
  51374. --header | --heade | --head | --hea )
  51375. $ac_shift
  51376. case $ac_optarg in
  51377. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  51378. esac
  51379. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  51380. ac_need_defaults=false;;
  51381. --he | --h)
  51382. # Conflict between --help and --header
  51383. { $as_echo "$as_me: error: ambiguous option: $1
  51384. Try \`$0 --help' for more information." >&2
  51385. { (exit 1); exit 1; }; };;
  51386. --help | --hel | -h )
  51387. $as_echo "$ac_cs_usage"; exit ;;
  51388. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  51389. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  51390. ac_cs_silent=: ;;
  51391. # This is an error.
  51392. -*) { $as_echo "$as_me: error: unrecognized option: $1
  51393. Try \`$0 --help' for more information." >&2
  51394. { (exit 1); exit 1; }; } ;;
  51395. *) ac_config_targets="$ac_config_targets $1"
  51396. ac_need_defaults=false ;;
  51397. esac
  51398. shift
  51399. done
  51400. ac_configure_extra_args=
  51401. if $ac_cs_silent; then
  51402. exec 6>/dev/null
  51403. ac_configure_extra_args="$ac_configure_extra_args --silent"
  51404. fi
  51405. _ACEOF
  51406. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51407. if \$ac_cs_recheck; then
  51408. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  51409. shift
  51410. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  51411. CONFIG_SHELL='$SHELL'
  51412. export CONFIG_SHELL
  51413. exec "\$@"
  51414. fi
  51415. _ACEOF
  51416. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51417. exec 5>>config.log
  51418. {
  51419. echo
  51420. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  51421. ## Running $as_me. ##
  51422. _ASBOX
  51423. $as_echo "$ac_log"
  51424. } >&5
  51425. _ACEOF
  51426. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51427. _ACEOF
  51428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51429. # Handling of arguments.
  51430. for ac_config_target in $ac_config_targets
  51431. do
  51432. case $ac_config_target in
  51433. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  51434. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  51435. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  51436. "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
  51437. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  51438. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  51439. { (exit 1); exit 1; }; };;
  51440. esac
  51441. done
  51442. # If the user did not use the arguments to specify the items to instantiate,
  51443. # then the envvar interface is used. Set only those that are not.
  51444. # We use the long form for the default assignment because of an extremely
  51445. # bizarre bug on SunOS 4.1.3.
  51446. if $ac_need_defaults; then
  51447. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  51448. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  51449. fi
  51450. # Have a temporary directory for convenience. Make it in the build tree
  51451. # simply because there is no reason against having it here, and in addition,
  51452. # creating and moving files from /tmp can sometimes cause problems.
  51453. # Hook for its removal unless debugging.
  51454. # Note that there is a small window in which the directory will not be cleaned:
  51455. # after its creation but before its name has been assigned to `$tmp'.
  51456. $debug ||
  51457. {
  51458. tmp=
  51459. trap 'exit_status=$?
  51460. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  51461. ' 0
  51462. trap '{ (exit 1); exit 1; }' 1 2 13 15
  51463. }
  51464. # Create a (secure) tmp directory for tmp files.
  51465. {
  51466. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  51467. test -n "$tmp" && test -d "$tmp"
  51468. } ||
  51469. {
  51470. tmp=./conf$$-$RANDOM
  51471. (umask 077 && mkdir "$tmp")
  51472. } ||
  51473. {
  51474. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  51475. { (exit 1); exit 1; }
  51476. }
  51477. # Set up the scripts for CONFIG_FILES section.
  51478. # No need to generate them if there are no CONFIG_FILES.
  51479. # This happens for instance with `./config.status config.h'.
  51480. if test -n "$CONFIG_FILES"; then
  51481. ac_cr=' '
  51482. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  51483. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  51484. ac_cs_awk_cr='\\r'
  51485. else
  51486. ac_cs_awk_cr=$ac_cr
  51487. fi
  51488. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  51489. _ACEOF
  51490. {
  51491. echo "cat >conf$$subs.awk <<_ACEOF" &&
  51492. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  51493. echo "_ACEOF"
  51494. } >conf$$subs.sh ||
  51495. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  51496. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  51497. { (exit 1); exit 1; }; }
  51498. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  51499. ac_delim='%!_!# '
  51500. for ac_last_try in false false false false false :; do
  51501. . ./conf$$subs.sh ||
  51502. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  51503. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  51504. { (exit 1); exit 1; }; }
  51505. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  51506. if test $ac_delim_n = $ac_delim_num; then
  51507. break
  51508. elif $ac_last_try; then
  51509. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  51510. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  51511. { (exit 1); exit 1; }; }
  51512. else
  51513. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  51514. fi
  51515. done
  51516. rm -f conf$$subs.sh
  51517. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51518. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  51519. _ACEOF
  51520. sed -n '
  51521. h
  51522. s/^/S["/; s/!.*/"]=/
  51523. p
  51524. g
  51525. s/^[^!]*!//
  51526. :repl
  51527. t repl
  51528. s/'"$ac_delim"'$//
  51529. t delim
  51530. :nl
  51531. h
  51532. s/\(.\{148\}\).*/\1/
  51533. t more1
  51534. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  51535. p
  51536. n
  51537. b repl
  51538. :more1
  51539. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  51540. p
  51541. g
  51542. s/.\{148\}//
  51543. t nl
  51544. :delim
  51545. h
  51546. s/\(.\{148\}\).*/\1/
  51547. t more2
  51548. s/["\\]/\\&/g; s/^/"/; s/$/"/
  51549. p
  51550. b
  51551. :more2
  51552. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  51553. p
  51554. g
  51555. s/.\{148\}//
  51556. t delim
  51557. ' <conf$$subs.awk | sed '
  51558. /^[^""]/{
  51559. N
  51560. s/\n//
  51561. }
  51562. ' >>$CONFIG_STATUS || ac_write_fail=1
  51563. rm -f conf$$subs.awk
  51564. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51565. _ACAWK
  51566. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  51567. for (key in S) S_is_set[key] = 1
  51568. FS = ""
  51569. }
  51570. {
  51571. line = $ 0
  51572. nfields = split(line, field, "@")
  51573. substed = 0
  51574. len = length(field[1])
  51575. for (i = 2; i < nfields; i++) {
  51576. key = field[i]
  51577. keylen = length(key)
  51578. if (S_is_set[key]) {
  51579. value = S[key]
  51580. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  51581. len += length(value) + length(field[++i])
  51582. substed = 1
  51583. } else
  51584. len += 1 + keylen
  51585. }
  51586. print line
  51587. }
  51588. _ACAWK
  51589. _ACEOF
  51590. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51591. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  51592. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  51593. else
  51594. cat
  51595. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  51596. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  51597. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  51598. { (exit 1); exit 1; }; }
  51599. _ACEOF
  51600. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  51601. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  51602. # trailing colons and then remove the whole line if VPATH becomes empty
  51603. # (actually we leave an empty line to preserve line numbers).
  51604. if test "x$srcdir" = x.; then
  51605. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  51606. s/:*\$(srcdir):*/:/
  51607. s/:*\${srcdir}:*/:/
  51608. s/:*@srcdir@:*/:/
  51609. s/^\([^=]*=[ ]*\):*/\1/
  51610. s/:*$//
  51611. s/^[^=]*=[ ]*$//
  51612. }'
  51613. fi
  51614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51615. fi # test -n "$CONFIG_FILES"
  51616. # Set up the scripts for CONFIG_HEADERS section.
  51617. # No need to generate them if there are no CONFIG_HEADERS.
  51618. # This happens for instance with `./config.status Makefile'.
  51619. if test -n "$CONFIG_HEADERS"; then
  51620. cat >"$tmp/defines.awk" <<\_ACAWK ||
  51621. BEGIN {
  51622. _ACEOF
  51623. # Transform confdefs.h into an awk script `defines.awk', embedded as
  51624. # here-document in config.status, that substitutes the proper values into
  51625. # config.h.in to produce config.h.
  51626. # Create a delimiter string that does not exist in confdefs.h, to ease
  51627. # handling of long lines.
  51628. ac_delim='%!_!# '
  51629. for ac_last_try in false false :; do
  51630. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  51631. if test -z "$ac_t"; then
  51632. break
  51633. elif $ac_last_try; then
  51634. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  51635. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  51636. { (exit 1); exit 1; }; }
  51637. else
  51638. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  51639. fi
  51640. done
  51641. # For the awk script, D is an array of macro values keyed by name,
  51642. # likewise P contains macro parameters if any. Preserve backslash
  51643. # newline sequences.
  51644. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  51645. sed -n '
  51646. s/.\{148\}/&'"$ac_delim"'/g
  51647. t rset
  51648. :rset
  51649. s/^[ ]*#[ ]*define[ ][ ]*/ /
  51650. t def
  51651. d
  51652. :def
  51653. s/\\$//
  51654. t bsnl
  51655. s/["\\]/\\&/g
  51656. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  51657. D["\1"]=" \3"/p
  51658. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  51659. d
  51660. :bsnl
  51661. s/["\\]/\\&/g
  51662. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  51663. D["\1"]=" \3\\\\\\n"\\/p
  51664. t cont
  51665. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  51666. t cont
  51667. d
  51668. :cont
  51669. n
  51670. s/.\{148\}/&'"$ac_delim"'/g
  51671. t clear
  51672. :clear
  51673. s/\\$//
  51674. t bsnlc
  51675. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  51676. d
  51677. :bsnlc
  51678. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  51679. b cont
  51680. ' <confdefs.h | sed '
  51681. s/'"$ac_delim"'/"\\\
  51682. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  51683. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51684. for (key in D) D_is_set[key] = 1
  51685. FS = ""
  51686. }
  51687. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  51688. line = \$ 0
  51689. split(line, arg, " ")
  51690. if (arg[1] == "#") {
  51691. defundef = arg[2]
  51692. mac1 = arg[3]
  51693. } else {
  51694. defundef = substr(arg[1], 2)
  51695. mac1 = arg[2]
  51696. }
  51697. split(mac1, mac2, "(") #)
  51698. macro = mac2[1]
  51699. prefix = substr(line, 1, index(line, defundef) - 1)
  51700. if (D_is_set[macro]) {
  51701. # Preserve the white space surrounding the "#".
  51702. print prefix "define", macro P[macro] D[macro]
  51703. next
  51704. } else {
  51705. # Replace #undef with comments. This is necessary, for example,
  51706. # in the case of _POSIX_SOURCE, which is predefined and required
  51707. # on some systems where configure will not decide to define it.
  51708. if (defundef == "undef") {
  51709. print "/*", prefix defundef, macro, "*/"
  51710. next
  51711. }
  51712. }
  51713. }
  51714. { print }
  51715. _ACAWK
  51716. _ACEOF
  51717. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51718. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  51719. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  51720. { (exit 1); exit 1; }; }
  51721. fi # test -n "$CONFIG_HEADERS"
  51722. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  51723. shift
  51724. for ac_tag
  51725. do
  51726. case $ac_tag in
  51727. :[FHLC]) ac_mode=$ac_tag; continue;;
  51728. esac
  51729. case $ac_mode$ac_tag in
  51730. :[FHL]*:*);;
  51731. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  51732. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  51733. { (exit 1); exit 1; }; };;
  51734. :[FH]-) ac_tag=-:-;;
  51735. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  51736. esac
  51737. ac_save_IFS=$IFS
  51738. IFS=:
  51739. set x $ac_tag
  51740. IFS=$ac_save_IFS
  51741. shift
  51742. ac_file=$1
  51743. shift
  51744. case $ac_mode in
  51745. :L) ac_source=$1;;
  51746. :[FH])
  51747. ac_file_inputs=
  51748. for ac_f
  51749. do
  51750. case $ac_f in
  51751. -) ac_f="$tmp/stdin";;
  51752. *) # Look for the file first in the build tree, then in the source tree
  51753. # (if the path is not absolute). The absolute path cannot be DOS-style,
  51754. # because $ac_f cannot contain `:'.
  51755. test -f "$ac_f" ||
  51756. case $ac_f in
  51757. [\\/$]*) false;;
  51758. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  51759. esac ||
  51760. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  51761. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  51762. { (exit 1); exit 1; }; };;
  51763. esac
  51764. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  51765. ac_file_inputs="$ac_file_inputs '$ac_f'"
  51766. done
  51767. # Let's still pretend it is `configure' which instantiates (i.e., don't
  51768. # use $as_me), people would be surprised to read:
  51769. # /* config.h. Generated by config.status. */
  51770. configure_input='Generated from '`
  51771. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  51772. `' by configure.'
  51773. if test x"$ac_file" != x-; then
  51774. configure_input="$ac_file. $configure_input"
  51775. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  51776. $as_echo "$as_me: creating $ac_file" >&6;}
  51777. fi
  51778. # Neutralize special characters interpreted by sed in replacement strings.
  51779. case $configure_input in #(
  51780. *\&* | *\|* | *\\* )
  51781. ac_sed_conf_input=`$as_echo "$configure_input" |
  51782. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  51783. *) ac_sed_conf_input=$configure_input;;
  51784. esac
  51785. case $ac_tag in
  51786. *:-:* | *:-) cat >"$tmp/stdin" \
  51787. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51788. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51789. { (exit 1); exit 1; }; } ;;
  51790. esac
  51791. ;;
  51792. esac
  51793. ac_dir=`$as_dirname -- "$ac_file" ||
  51794. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51795. X"$ac_file" : 'X\(//\)[^/]' \| \
  51796. X"$ac_file" : 'X\(//\)$' \| \
  51797. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  51798. $as_echo X"$ac_file" |
  51799. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51800. s//\1/
  51801. q
  51802. }
  51803. /^X\(\/\/\)[^/].*/{
  51804. s//\1/
  51805. q
  51806. }
  51807. /^X\(\/\/\)$/{
  51808. s//\1/
  51809. q
  51810. }
  51811. /^X\(\/\).*/{
  51812. s//\1/
  51813. q
  51814. }
  51815. s/.*/./; q'`
  51816. { as_dir="$ac_dir"
  51817. case $as_dir in #(
  51818. -*) as_dir=./$as_dir;;
  51819. esac
  51820. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  51821. as_dirs=
  51822. while :; do
  51823. case $as_dir in #(
  51824. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  51825. *) as_qdir=$as_dir;;
  51826. esac
  51827. as_dirs="'$as_qdir' $as_dirs"
  51828. as_dir=`$as_dirname -- "$as_dir" ||
  51829. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51830. X"$as_dir" : 'X\(//\)[^/]' \| \
  51831. X"$as_dir" : 'X\(//\)$' \| \
  51832. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  51833. $as_echo X"$as_dir" |
  51834. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51835. s//\1/
  51836. q
  51837. }
  51838. /^X\(\/\/\)[^/].*/{
  51839. s//\1/
  51840. q
  51841. }
  51842. /^X\(\/\/\)$/{
  51843. s//\1/
  51844. q
  51845. }
  51846. /^X\(\/\).*/{
  51847. s//\1/
  51848. q
  51849. }
  51850. s/.*/./; q'`
  51851. test -d "$as_dir" && break
  51852. done
  51853. test -z "$as_dirs" || eval "mkdir $as_dirs"
  51854. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  51855. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  51856. { (exit 1); exit 1; }; }; }
  51857. ac_builddir=.
  51858. case "$ac_dir" in
  51859. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  51860. *)
  51861. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  51862. # A ".." for each directory in $ac_dir_suffix.
  51863. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  51864. case $ac_top_builddir_sub in
  51865. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  51866. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  51867. esac ;;
  51868. esac
  51869. ac_abs_top_builddir=$ac_pwd
  51870. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  51871. # for backward compatibility:
  51872. ac_top_builddir=$ac_top_build_prefix
  51873. case $srcdir in
  51874. .) # We are building in place.
  51875. ac_srcdir=.
  51876. ac_top_srcdir=$ac_top_builddir_sub
  51877. ac_abs_top_srcdir=$ac_pwd ;;
  51878. [\\/]* | ?:[\\/]* ) # Absolute name.
  51879. ac_srcdir=$srcdir$ac_dir_suffix;
  51880. ac_top_srcdir=$srcdir
  51881. ac_abs_top_srcdir=$srcdir ;;
  51882. *) # Relative name.
  51883. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  51884. ac_top_srcdir=$ac_top_build_prefix$srcdir
  51885. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  51886. esac
  51887. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  51888. case $ac_mode in
  51889. :F)
  51890. #
  51891. # CONFIG_FILE
  51892. #
  51893. case $INSTALL in
  51894. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  51895. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  51896. esac
  51897. _ACEOF
  51898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51899. # If the template does not know about datarootdir, expand it.
  51900. # FIXME: This hack should be removed a few years after 2.60.
  51901. ac_datarootdir_hack=; ac_datarootdir_seen=
  51902. ac_sed_dataroot='
  51903. /datarootdir/ {
  51904. p
  51905. q
  51906. }
  51907. /@datadir@/p
  51908. /@docdir@/p
  51909. /@infodir@/p
  51910. /@localedir@/p
  51911. /@mandir@/p
  51912. '
  51913. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  51914. *datarootdir*) ac_datarootdir_seen=yes;;
  51915. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  51916. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  51917. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  51918. _ACEOF
  51919. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51920. ac_datarootdir_hack='
  51921. s&@datadir@&$datadir&g
  51922. s&@docdir@&$docdir&g
  51923. s&@infodir@&$infodir&g
  51924. s&@localedir@&$localedir&g
  51925. s&@mandir@&$mandir&g
  51926. s&\\\${datarootdir}&$datarootdir&g' ;;
  51927. esac
  51928. _ACEOF
  51929. # Neutralize VPATH when `$srcdir' = `.'.
  51930. # Shell code in configure.ac might set extrasub.
  51931. # FIXME: do we really want to maintain this feature?
  51932. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51933. ac_sed_extra="$ac_vpsub
  51934. $extrasub
  51935. _ACEOF
  51936. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51937. :t
  51938. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  51939. s|@configure_input@|$ac_sed_conf_input|;t t
  51940. s&@top_builddir@&$ac_top_builddir_sub&;t t
  51941. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  51942. s&@srcdir@&$ac_srcdir&;t t
  51943. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  51944. s&@top_srcdir@&$ac_top_srcdir&;t t
  51945. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  51946. s&@builddir@&$ac_builddir&;t t
  51947. s&@abs_builddir@&$ac_abs_builddir&;t t
  51948. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  51949. s&@INSTALL@&$ac_INSTALL&;t t
  51950. $ac_datarootdir_hack
  51951. "
  51952. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  51953. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51954. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51955. { (exit 1); exit 1; }; }
  51956. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  51957. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  51958. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  51959. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  51960. which seems to be undefined. Please make sure it is defined." >&5
  51961. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  51962. which seems to be undefined. Please make sure it is defined." >&2;}
  51963. rm -f "$tmp/stdin"
  51964. case $ac_file in
  51965. -) cat "$tmp/out" && rm -f "$tmp/out";;
  51966. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  51967. esac \
  51968. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51969. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51970. { (exit 1); exit 1; }; }
  51971. ;;
  51972. :H)
  51973. #
  51974. # CONFIG_HEADER
  51975. #
  51976. if test x"$ac_file" != x-; then
  51977. {
  51978. $as_echo "/* $configure_input */" \
  51979. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  51980. } >"$tmp/config.h" \
  51981. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51982. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51983. { (exit 1); exit 1; }; }
  51984. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  51985. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  51986. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  51987. else
  51988. rm -f "$ac_file"
  51989. mv "$tmp/config.h" "$ac_file" \
  51990. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51991. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51992. { (exit 1); exit 1; }; }
  51993. fi
  51994. else
  51995. $as_echo "/* $configure_input */" \
  51996. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  51997. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  51998. $as_echo "$as_me: error: could not create -" >&2;}
  51999. { (exit 1); exit 1; }; }
  52000. fi
  52001. ;;
  52002. esac
  52003. done # for ac_tag
  52004. { (exit 0); exit 0; }
  52005. _ACEOF
  52006. chmod +x $CONFIG_STATUS
  52007. ac_clean_files=$ac_clean_files_save
  52008. test $ac_write_fail = 0 ||
  52009. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  52010. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  52011. { (exit 1); exit 1; }; }
  52012. # configure is writing to config.log, and then calls config.status.
  52013. # config.status does its own redirection, appending to config.log.
  52014. # Unfortunately, on DOS this fails, as config.log is still kept open
  52015. # by configure, so config.status won't be able to write to it; its
  52016. # output is simply discarded. So we exec the FD to /dev/null,
  52017. # effectively closing config.log, so it can be properly (re)opened and
  52018. # appended to by config.status. When coming back to configure, we
  52019. # need to make the FD available again.
  52020. if test "$no_create" != yes; then
  52021. ac_cs_success=:
  52022. ac_config_status_args=
  52023. test "$silent" = yes &&
  52024. ac_config_status_args="$ac_config_status_args --quiet"
  52025. exec 5>/dev/null
  52026. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  52027. exec 5>>config.log
  52028. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  52029. # would make configure fail if this is the last instruction.
  52030. $ac_cs_success || { (exit 1); exit 1; }
  52031. fi
  52032. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  52033. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  52034. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  52035. fi
  52036. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  52037. if test "x${ac_cv_path_CMP}" = "x:"; then
  52038. ( cd `pwd`/menuselect && ./configure )
  52039. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  52040. ( cd `pwd`/menuselect && ./configure )
  52041. fi ; fi
  52042. rm makeopts.acbak makeopts.acbak2
  52043. if test "x${silent}" != "xyes" ; then
  52044. echo
  52045. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  52046. echo " .\$7\$7.. .7\$\$7:. "
  52047. echo " .\$\$:. ,\$7.7 "
  52048. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  52049. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  52050. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  52051. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  52052. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  52053. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  52054. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  52055. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  52056. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  52057. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  52058. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  52059. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  52060. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  52061. echo " \$\$\$\$\$ \$\$\$ "
  52062. echo " \$\$\$\$7. \$\$ (TM) "
  52063. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  52064. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  52065. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  52066. echo
  52067. fi
  52068. { $as_echo "$as_me:$LINENO: Package configured for: " >&5
  52069. $as_echo "$as_me: Package configured for: " >&6;}
  52070. { $as_echo "$as_me:$LINENO: OS type : $host_os" >&5
  52071. $as_echo "$as_me: OS type : $host_os" >&6;}
  52072. { $as_echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
  52073. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  52074. { $as_echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  52075. $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  52076. { $as_echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  52077. $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  52078. if test "${cross_compiling}" = "yes"; then
  52079. { $as_echo "$as_me:$LINENO: Cross Compilation = YES" >&5
  52080. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  52081. fi