configure 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898
  1. #! /bin/sh
  2. # From configure.ac Revision: 355365 .
  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_SHADOW_WARNINGS
  611. AST_NO_STRICT_OVERFLOW
  612. AST_FORTIFY_SOURCE
  613. AST_DECLARATION_AFTER_STATEMENT
  614. GC_LDFLAGS
  615. GC_CFLAGS
  616. PBX_WEAKREF
  617. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  618. PBX_PTHREAD_RWLOCK_INITIALIZER
  619. HAS_POLL
  620. PBX_DYNAMIC_LIST
  621. POW_LIB
  622. PBX_WORKING_FORK
  623. LIBOBJS
  624. CONFIG_LIBXML2
  625. EDITLINE_LIB
  626. ALLOCA
  627. PBX_ZLIB
  628. ZLIB_DIR
  629. ZLIB_INCLUDE
  630. ZLIB_LIB
  631. PBX_X11
  632. X11_DIR
  633. X11_INCLUDE
  634. X11_LIB
  635. PBX_VPB
  636. VPB_DIR
  637. VPB_INCLUDE
  638. VPB_LIB
  639. PBX_VORBIS
  640. VORBIS_DIR
  641. VORBIS_INCLUDE
  642. VORBIS_LIB
  643. PBX_USB
  644. USB_DIR
  645. USB_INCLUDE
  646. USB_LIB
  647. PBX_UNIXODBC
  648. UNIXODBC_DIR
  649. UNIXODBC_INCLUDE
  650. UNIXODBC_LIB
  651. PBX_TONEZONE
  652. TONEZONE_DIR
  653. TONEZONE_INCLUDE
  654. TONEZONE_LIB
  655. PBX_TINFO
  656. TINFO_DIR
  657. TINFO_INCLUDE
  658. TINFO_LIB
  659. PBX_TIMERFD
  660. TIMERFD_DIR
  661. TIMERFD_INCLUDE
  662. TIMERFD_LIB
  663. PBX_TERMCAP
  664. TERMCAP_DIR
  665. TERMCAP_INCLUDE
  666. TERMCAP_LIB
  667. PBX_FREETDS
  668. FREETDS_DIR
  669. FREETDS_INCLUDE
  670. FREETDS_LIB
  671. PBX_SUPPSERV
  672. SUPPSERV_DIR
  673. SUPPSERV_INCLUDE
  674. SUPPSERV_LIB
  675. PBX_OPENSSL
  676. OPENSSL_DIR
  677. OPENSSL_INCLUDE
  678. OPENSSL_LIB
  679. PBX_SRTP
  680. SRTP_DIR
  681. SRTP_INCLUDE
  682. SRTP_LIB
  683. PBX_SQLITE3
  684. SQLITE3_DIR
  685. SQLITE3_INCLUDE
  686. SQLITE3_LIB
  687. PBX_SQLITE
  688. SQLITE_DIR
  689. SQLITE_INCLUDE
  690. SQLITE_LIB
  691. PBX_SPEEXDSP
  692. SPEEXDSP_DIR
  693. SPEEXDSP_INCLUDE
  694. SPEEXDSP_LIB
  695. PBX_SPEEX_PREPROCESS
  696. SPEEX_PREPROCESS_DIR
  697. SPEEX_PREPROCESS_INCLUDE
  698. SPEEX_PREPROCESS_LIB
  699. PBX_SPEEX
  700. SPEEX_DIR
  701. SPEEX_INCLUDE
  702. SPEEX_LIB
  703. PBX_SS7
  704. SS7_DIR
  705. SS7_INCLUDE
  706. SS7_LIB
  707. PBX_SPANDSP
  708. SPANDSP_DIR
  709. SPANDSP_INCLUDE
  710. SPANDSP_LIB
  711. SOUNDS_CACHE_DIR
  712. PBX_SDL_IMAGE
  713. SDL_IMAGE_DIR
  714. SDL_IMAGE_INCLUDE
  715. SDL_IMAGE_LIB
  716. PBX_SDL
  717. SDL_DIR
  718. SDL_INCLUDE
  719. SDL_LIB
  720. PBX_RESAMPLE
  721. RESAMPLE_DIR
  722. RESAMPLE_INCLUDE
  723. RESAMPLE_LIB
  724. PBX_RADIUS
  725. RADIUS_DIR
  726. RADIUS_INCLUDE
  727. RADIUS_LIB
  728. PBX_PWLIB
  729. PWLIB_DIR
  730. PWLIB_INCLUDE
  731. PWLIB_LIB
  732. PBX_PRI_REVERSE_CHARGE
  733. PRI_REVERSE_CHARGE_DIR
  734. PRI_REVERSE_CHARGE_INCLUDE
  735. PRI_REVERSE_CHARGE_LIB
  736. PBX_PRI_SERVICE_MESSAGES
  737. PRI_SERVICE_MESSAGES_DIR
  738. PRI_SERVICE_MESSAGES_INCLUDE
  739. PRI_SERVICE_MESSAGES_LIB
  740. PBX_PRI_PROG_W_CAUSE
  741. PRI_PROG_W_CAUSE_DIR
  742. PRI_PROG_W_CAUSE_INCLUDE
  743. PRI_PROG_W_CAUSE_LIB
  744. PBX_PRI_INBANDDISCONNECT
  745. PRI_INBANDDISCONNECT_DIR
  746. PRI_INBANDDISCONNECT_INCLUDE
  747. PRI_INBANDDISCONNECT_LIB
  748. PBX_PRI_SETUP_KEYPAD
  749. PRI_SETUP_KEYPAD_DIR
  750. PRI_SETUP_KEYPAD_INCLUDE
  751. PRI_SETUP_KEYPAD_LIB
  752. PBX_PRI_CALL_REROUTING
  753. PRI_CALL_REROUTING_DIR
  754. PRI_CALL_REROUTING_INCLUDE
  755. PRI_CALL_REROUTING_LIB
  756. PBX_PRI_CALL_HOLD
  757. PRI_CALL_HOLD_DIR
  758. PRI_CALL_HOLD_INCLUDE
  759. PRI_CALL_HOLD_LIB
  760. PBX_PRI_SUBADDR
  761. PRI_SUBADDR_DIR
  762. PRI_SUBADDR_INCLUDE
  763. PRI_SUBADDR_LIB
  764. PBX_PRI_HANGUP_FIX
  765. PRI_HANGUP_FIX_DIR
  766. PRI_HANGUP_FIX_INCLUDE
  767. PRI_HANGUP_FIX_LIB
  768. PBX_PRI_CCSS
  769. PRI_CCSS_DIR
  770. PRI_CCSS_INCLUDE
  771. PRI_CCSS_LIB
  772. PBX_PRI_TRANSFER
  773. PRI_TRANSFER_DIR
  774. PRI_TRANSFER_INCLUDE
  775. PRI_TRANSFER_LIB
  776. PBX_PRI_AOC_EVENTS
  777. PRI_AOC_EVENTS_DIR
  778. PRI_AOC_EVENTS_INCLUDE
  779. PRI_AOC_EVENTS_LIB
  780. PBX_PRI_CALL_WAITING
  781. PRI_CALL_WAITING_DIR
  782. PRI_CALL_WAITING_INCLUDE
  783. PRI_CALL_WAITING_LIB
  784. PBX_PRI_MCID
  785. PRI_MCID_DIR
  786. PRI_MCID_INCLUDE
  787. PRI_MCID_LIB
  788. PBX_PRI_MWI
  789. PRI_MWI_DIR
  790. PRI_MWI_INCLUDE
  791. PRI_MWI_LIB
  792. PBX_PRI_L2_PERSISTENCE
  793. PRI_L2_PERSISTENCE_DIR
  794. PRI_L2_PERSISTENCE_INCLUDE
  795. PRI_L2_PERSISTENCE_LIB
  796. PBX_PRI
  797. PRI_DIR
  798. PRI_INCLUDE
  799. PRI_LIB
  800. PBX_PORTAUDIO
  801. PORTAUDIO_DIR
  802. PORTAUDIO_INCLUDE
  803. PORTAUDIO_LIB
  804. PBX_POPT
  805. POPT_DIR
  806. POPT_INCLUDE
  807. POPT_LIB
  808. PBX_PGSQL
  809. PGSQL_DIR
  810. PGSQL_INCLUDE
  811. PGSQL_LIB
  812. PBX_OSS
  813. OSS_DIR
  814. OSS_INCLUDE
  815. OSS_LIB
  816. PBX_OSPTK
  817. OSPTK_DIR
  818. OSPTK_INCLUDE
  819. OSPTK_LIB
  820. PBX_OPENR2
  821. OPENR2_DIR
  822. OPENR2_INCLUDE
  823. OPENR2_LIB
  824. PBX_OPENAIS
  825. OPENAIS_DIR
  826. OPENAIS_INCLUDE
  827. OPENAIS_LIB
  828. PBX_OGG
  829. OGG_DIR
  830. OGG_INCLUDE
  831. OGG_LIB
  832. PBX_NEWT
  833. NEWT_DIR
  834. NEWT_INCLUDE
  835. NEWT_LIB
  836. PBX_NETSNMP
  837. NETSNMP_DIR
  838. NETSNMP_INCLUDE
  839. NETSNMP_LIB
  840. PBX_NEON29
  841. NEON29_DIR
  842. NEON29_INCLUDE
  843. NEON29_LIB
  844. PBX_NEON
  845. NEON_DIR
  846. NEON_INCLUDE
  847. NEON_LIB
  848. PBX_NCURSES
  849. NCURSES_DIR
  850. NCURSES_INCLUDE
  851. NCURSES_LIB
  852. PBX_NBS
  853. NBS_DIR
  854. NBS_INCLUDE
  855. NBS_LIB
  856. PBX_MYSQLCLIENT
  857. MYSQLCLIENT_DIR
  858. MYSQLCLIENT_INCLUDE
  859. MYSQLCLIENT_LIB
  860. PBX_MISDN
  861. MISDN_DIR
  862. MISDN_INCLUDE
  863. MISDN_LIB
  864. PBX_LUA
  865. LUA_DIR
  866. LUA_INCLUDE
  867. LUA_LIB
  868. PBX_LTDL
  869. LTDL_DIR
  870. LTDL_INCLUDE
  871. LTDL_LIB
  872. PBX_LIBXML2
  873. LIBXML2_DIR
  874. LIBXML2_INCLUDE
  875. LIBXML2_LIB
  876. CURL_LIB
  877. CURL_INCLUDE
  878. _libcurl_config
  879. PBX_CURL
  880. PBX_LDAP
  881. LDAP_DIR
  882. LDAP_INCLUDE
  883. LDAP_LIB
  884. PBX_KQUEUE
  885. KQUEUE_DIR
  886. KQUEUE_INCLUDE
  887. KQUEUE_LIB
  888. PBX_JACK
  889. JACK_DIR
  890. JACK_INCLUDE
  891. JACK_LIB
  892. PBX_ISDNNET
  893. ISDNNET_DIR
  894. ISDNNET_INCLUDE
  895. ISDNNET_LIB
  896. PBX_IODBC
  897. IODBC_DIR
  898. IODBC_INCLUDE
  899. IODBC_LIB
  900. PBX_INOTIFY
  901. INOTIFY_DIR
  902. INOTIFY_INCLUDE
  903. INOTIFY_LIB
  904. PBX_IMAP_TK
  905. IMAP_TK_DIR
  906. IMAP_TK_INCLUDE
  907. IMAP_TK_LIB
  908. PBX_IKSEMEL
  909. IKSEMEL_DIR
  910. IKSEMEL_INCLUDE
  911. IKSEMEL_LIB
  912. PBX_ICONV
  913. ICONV_DIR
  914. ICONV_INCLUDE
  915. ICONV_LIB
  916. PBX_ICAL
  917. ICAL_DIR
  918. ICAL_INCLUDE
  919. ICAL_LIB
  920. PBX_HOARD
  921. HOARD_DIR
  922. HOARD_INCLUDE
  923. HOARD_LIB
  924. PBX_OPENH323
  925. OPENH323_DIR
  926. OPENH323_INCLUDE
  927. OPENH323_LIB
  928. PBX_GMIME
  929. GMIME_DIR
  930. GMIME_INCLUDE
  931. GMIME_LIB
  932. PBX_GTK2
  933. GTK2_DIR
  934. GTK2_INCLUDE
  935. GTK2_LIB
  936. PBX_GSM
  937. GSM_DIR
  938. GSM_INCLUDE
  939. GSM_LIB
  940. PBX_FFMPEG
  941. FFMPEG_DIR
  942. FFMPEG_INCLUDE
  943. FFMPEG_LIB
  944. PBX_DAHDI
  945. DAHDI_DIR
  946. DAHDI_INCLUDE
  947. DAHDI_LIB
  948. PBX_CRYPTO
  949. CRYPTO_DIR
  950. CRYPTO_INCLUDE
  951. CRYPTO_LIB
  952. PBX_CURSES
  953. CURSES_DIR
  954. CURSES_INCLUDE
  955. CURSES_LIB
  956. PBX_CAP
  957. CAP_DIR
  958. CAP_INCLUDE
  959. CAP_LIB
  960. PBX_BLUETOOTH
  961. BLUETOOTH_DIR
  962. BLUETOOTH_INCLUDE
  963. BLUETOOTH_LIB
  964. PBX_BKTR
  965. BKTR_DIR
  966. BKTR_INCLUDE
  967. BKTR_LIB
  968. PBX_BFD
  969. BFD_DIR
  970. BFD_INCLUDE
  971. BFD_LIB
  972. PBX_ALSA
  973. ALSA_DIR
  974. ALSA_INCLUDE
  975. ALSA_LIB
  976. AST_CODE_COVERAGE
  977. AST_DEVMODE
  978. NOISY_BUILD
  979. PTHREAD_CFLAGS
  980. PTHREAD_LIBS
  981. PTHREAD_CC
  982. acx_pthread_config
  983. MD5
  984. SOXMIX
  985. PBX_FLEX
  986. PBX_BISON
  987. DOWNLOAD
  988. FETCH
  989. XMLSTARLET
  990. XMLLINT
  991. KPATHSEA
  992. CATDVI
  993. RUBBER
  994. CURL
  995. WGET
  996. DOT
  997. LN
  998. DIRNAME
  999. BASENAME
  1000. COMPRESS
  1001. FIND
  1002. FLEX
  1003. CMP
  1004. BISON
  1005. GNU_LD
  1006. ac_ct_OPENSSL
  1007. OPENSSL
  1008. ac_ct_SHA1SUM
  1009. SHA1SUM
  1010. ac_ct_AR
  1011. AR
  1012. ac_ct_STRIP
  1013. STRIP
  1014. GNU_MAKE
  1015. LN_S
  1016. INSTALL_DATA
  1017. INSTALL_SCRIPT
  1018. INSTALL_PROGRAM
  1019. AWK
  1020. SED
  1021. CXXCPP
  1022. ac_ct_CXX
  1023. CXXFLAGS
  1024. RANLIB
  1025. LD
  1026. CXX
  1027. PBX_OSREV
  1028. UNAME
  1029. PBX_WINARCH
  1030. OSARCH
  1031. HOST_OS
  1032. HOST_VENDOR
  1033. HOST_CPU
  1034. HOST_PLATFORM
  1035. BUILD_OS
  1036. BUILD_VENDOR
  1037. BUILD_CPU
  1038. BUILD_PLATFORM
  1039. astvarrundir
  1040. astlogdir
  1041. astspooldir
  1042. astkeydir
  1043. astdbdir
  1044. astdatadir
  1045. astvarlibdir
  1046. astmandir
  1047. astlibdir
  1048. astheaderdir
  1049. astetcdir
  1050. astsbindir
  1051. EGREP
  1052. GREP
  1053. CPP
  1054. OBJEXT
  1055. EXEEXT
  1056. ac_ct_CC
  1057. CPPFLAGS
  1058. LDFLAGS
  1059. CFLAGS
  1060. CC
  1061. CONFIG_LDFLAGS
  1062. CONFIG_CFLAGS
  1063. host_os
  1064. host_vendor
  1065. host_cpu
  1066. host
  1067. build_os
  1068. build_vendor
  1069. build_cpu
  1070. build
  1071. target_alias
  1072. host_alias
  1073. build_alias
  1074. LIBS
  1075. ECHO_T
  1076. ECHO_N
  1077. ECHO_C
  1078. DEFS
  1079. mandir
  1080. localedir
  1081. libdir
  1082. psdir
  1083. pdfdir
  1084. dvidir
  1085. htmldir
  1086. infodir
  1087. docdir
  1088. oldincludedir
  1089. includedir
  1090. localstatedir
  1091. sharedstatedir
  1092. sysconfdir
  1093. datadir
  1094. datarootdir
  1095. libexecdir
  1096. sbindir
  1097. bindir
  1098. program_transform_name
  1099. prefix
  1100. exec_prefix
  1101. PACKAGE_BUGREPORT
  1102. PACKAGE_STRING
  1103. PACKAGE_VERSION
  1104. PACKAGE_TARNAME
  1105. PACKAGE_NAME
  1106. PATH_SEPARATOR
  1107. SHELL'
  1108. ac_subst_files=''
  1109. ac_user_opts='
  1110. enable_option_checking
  1111. with_gnu_ld
  1112. enable_dev_mode
  1113. enable_coverage
  1114. with_asound
  1115. with_bfd
  1116. with_execinfo
  1117. with_bluetooth
  1118. with_cap
  1119. with_curses
  1120. with_crypto
  1121. with_dahdi
  1122. with_avcodec
  1123. with_gsm
  1124. with_gtk2
  1125. with_gmime
  1126. with_h323
  1127. with_hoard
  1128. with_ical
  1129. with_iconv
  1130. with_iksemel
  1131. with_imap
  1132. with_inotify
  1133. with_iodbc
  1134. with_isdnnet
  1135. with_jack
  1136. with_kqueue
  1137. with_ldap
  1138. with_libcurl
  1139. with_libxml2
  1140. with_ltdl
  1141. with_lua
  1142. with_misdn
  1143. with_mysqlclient
  1144. with_nbs
  1145. with_ncurses
  1146. with_neon
  1147. with_neon29
  1148. with_netsnmp
  1149. with_newt
  1150. with_ogg
  1151. with_openais
  1152. with_openr2
  1153. with_osptk
  1154. with_oss
  1155. with_postgres
  1156. with_popt
  1157. with_portaudio
  1158. with_pri
  1159. with_pwlib
  1160. with_radius
  1161. with_resample
  1162. with_sdl
  1163. with_SDL_image
  1164. with_sounds_cache
  1165. with_spandsp
  1166. with_ss7
  1167. with_speex
  1168. with_speexdsp
  1169. with_sqlite
  1170. with_sqlite3
  1171. with_srtp
  1172. with_ssl
  1173. with_suppserv
  1174. with_tds
  1175. with_termcap
  1176. with_timerfd
  1177. with_tinfo
  1178. with_tonezone
  1179. with_unixodbc
  1180. with_usb
  1181. with_vorbis
  1182. with_vpb
  1183. with_x11
  1184. with_z
  1185. enable_xmldoc
  1186. enable_largefile
  1187. enable_internal_poll
  1188. '
  1189. ac_precious_vars='build_alias
  1190. host_alias
  1191. target_alias
  1192. CC
  1193. CFLAGS
  1194. LDFLAGS
  1195. LIBS
  1196. CPPFLAGS
  1197. CPP
  1198. CXX
  1199. CXXFLAGS
  1200. CCC
  1201. CXXCPP'
  1202. # Initialize some variables set by options.
  1203. ac_init_help=
  1204. ac_init_version=false
  1205. ac_unrecognized_opts=
  1206. ac_unrecognized_sep=
  1207. # The variables have the same names as the options, with
  1208. # dashes changed to underlines.
  1209. cache_file=/dev/null
  1210. exec_prefix=NONE
  1211. no_create=
  1212. no_recursion=
  1213. prefix=NONE
  1214. program_prefix=NONE
  1215. program_suffix=NONE
  1216. program_transform_name=s,x,x,
  1217. silent=
  1218. site=
  1219. srcdir=
  1220. verbose=
  1221. x_includes=NONE
  1222. x_libraries=NONE
  1223. # Installation directory options.
  1224. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1225. # and all the variables that are supposed to be based on exec_prefix
  1226. # by default will actually change.
  1227. # Use braces instead of parens because sh, perl, etc. also accept them.
  1228. # (The list follows the same order as the GNU Coding Standards.)
  1229. bindir='${exec_prefix}/bin'
  1230. sbindir='${exec_prefix}/sbin'
  1231. libexecdir='${exec_prefix}/libexec'
  1232. datarootdir='${prefix}/share'
  1233. datadir='${datarootdir}'
  1234. sysconfdir='${prefix}/etc'
  1235. sharedstatedir='${prefix}/com'
  1236. localstatedir='${prefix}/var'
  1237. includedir='${prefix}/include'
  1238. oldincludedir='/usr/include'
  1239. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1240. infodir='${datarootdir}/info'
  1241. htmldir='${docdir}'
  1242. dvidir='${docdir}'
  1243. pdfdir='${docdir}'
  1244. psdir='${docdir}'
  1245. libdir='${exec_prefix}/lib'
  1246. localedir='${datarootdir}/locale'
  1247. mandir='${datarootdir}/man'
  1248. ac_prev=
  1249. ac_dashdash=
  1250. for ac_option
  1251. do
  1252. # If the previous option needs an argument, assign it.
  1253. if test -n "$ac_prev"; then
  1254. eval $ac_prev=\$ac_option
  1255. ac_prev=
  1256. continue
  1257. fi
  1258. case $ac_option in
  1259. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1260. *) ac_optarg=yes ;;
  1261. esac
  1262. # Accept the important Cygnus configure options, so we can diagnose typos.
  1263. case $ac_dashdash$ac_option in
  1264. --)
  1265. ac_dashdash=yes ;;
  1266. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1267. ac_prev=bindir ;;
  1268. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1269. bindir=$ac_optarg ;;
  1270. -build | --build | --buil | --bui | --bu)
  1271. ac_prev=build_alias ;;
  1272. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1273. build_alias=$ac_optarg ;;
  1274. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1275. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1276. ac_prev=cache_file ;;
  1277. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1278. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1279. cache_file=$ac_optarg ;;
  1280. --config-cache | -C)
  1281. cache_file=config.cache ;;
  1282. -datadir | --datadir | --datadi | --datad)
  1283. ac_prev=datadir ;;
  1284. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1285. datadir=$ac_optarg ;;
  1286. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1287. | --dataroo | --dataro | --datar)
  1288. ac_prev=datarootdir ;;
  1289. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1290. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1291. datarootdir=$ac_optarg ;;
  1292. -disable-* | --disable-*)
  1293. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1294. # Reject names that are not valid shell variable names.
  1295. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1296. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1297. { (exit 1); exit 1; }; }
  1298. ac_useropt_orig=$ac_useropt
  1299. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1300. case $ac_user_opts in
  1301. *"
  1302. "enable_$ac_useropt"
  1303. "*) ;;
  1304. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1305. ac_unrecognized_sep=', ';;
  1306. esac
  1307. eval enable_$ac_useropt=no ;;
  1308. -docdir | --docdir | --docdi | --doc | --do)
  1309. ac_prev=docdir ;;
  1310. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1311. docdir=$ac_optarg ;;
  1312. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1313. ac_prev=dvidir ;;
  1314. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1315. dvidir=$ac_optarg ;;
  1316. -enable-* | --enable-*)
  1317. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1318. # Reject names that are not valid shell variable names.
  1319. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1320. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1321. { (exit 1); exit 1; }; }
  1322. ac_useropt_orig=$ac_useropt
  1323. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1324. case $ac_user_opts in
  1325. *"
  1326. "enable_$ac_useropt"
  1327. "*) ;;
  1328. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1329. ac_unrecognized_sep=', ';;
  1330. esac
  1331. eval enable_$ac_useropt=\$ac_optarg ;;
  1332. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1333. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1334. | --exec | --exe | --ex)
  1335. ac_prev=exec_prefix ;;
  1336. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1337. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1338. | --exec=* | --exe=* | --ex=*)
  1339. exec_prefix=$ac_optarg ;;
  1340. -gas | --gas | --ga | --g)
  1341. # Obsolete; use --with-gas.
  1342. with_gas=yes ;;
  1343. -help | --help | --hel | --he | -h)
  1344. ac_init_help=long ;;
  1345. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1346. ac_init_help=recursive ;;
  1347. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1348. ac_init_help=short ;;
  1349. -host | --host | --hos | --ho)
  1350. ac_prev=host_alias ;;
  1351. -host=* | --host=* | --hos=* | --ho=*)
  1352. host_alias=$ac_optarg ;;
  1353. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1354. ac_prev=htmldir ;;
  1355. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1356. | --ht=*)
  1357. htmldir=$ac_optarg ;;
  1358. -includedir | --includedir | --includedi | --included | --include \
  1359. | --includ | --inclu | --incl | --inc)
  1360. ac_prev=includedir ;;
  1361. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1362. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1363. includedir=$ac_optarg ;;
  1364. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1365. ac_prev=infodir ;;
  1366. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1367. infodir=$ac_optarg ;;
  1368. -libdir | --libdir | --libdi | --libd)
  1369. ac_prev=libdir ;;
  1370. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1371. libdir=$ac_optarg ;;
  1372. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1373. | --libexe | --libex | --libe)
  1374. ac_prev=libexecdir ;;
  1375. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1376. | --libexe=* | --libex=* | --libe=*)
  1377. libexecdir=$ac_optarg ;;
  1378. -localedir | --localedir | --localedi | --localed | --locale)
  1379. ac_prev=localedir ;;
  1380. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1381. localedir=$ac_optarg ;;
  1382. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1383. | --localstate | --localstat | --localsta | --localst | --locals)
  1384. ac_prev=localstatedir ;;
  1385. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1386. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1387. localstatedir=$ac_optarg ;;
  1388. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1389. ac_prev=mandir ;;
  1390. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1391. mandir=$ac_optarg ;;
  1392. -nfp | --nfp | --nf)
  1393. # Obsolete; use --without-fp.
  1394. with_fp=no ;;
  1395. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1396. | --no-cr | --no-c | -n)
  1397. no_create=yes ;;
  1398. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1399. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1400. no_recursion=yes ;;
  1401. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1402. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1403. | --oldin | --oldi | --old | --ol | --o)
  1404. ac_prev=oldincludedir ;;
  1405. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1406. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1407. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1408. oldincludedir=$ac_optarg ;;
  1409. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1410. ac_prev=prefix ;;
  1411. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1412. prefix=$ac_optarg ;;
  1413. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1414. | --program-pre | --program-pr | --program-p)
  1415. ac_prev=program_prefix ;;
  1416. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1417. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1418. program_prefix=$ac_optarg ;;
  1419. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1420. | --program-suf | --program-su | --program-s)
  1421. ac_prev=program_suffix ;;
  1422. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1423. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1424. program_suffix=$ac_optarg ;;
  1425. -program-transform-name | --program-transform-name \
  1426. | --program-transform-nam | --program-transform-na \
  1427. | --program-transform-n | --program-transform- \
  1428. | --program-transform | --program-transfor \
  1429. | --program-transfo | --program-transf \
  1430. | --program-trans | --program-tran \
  1431. | --progr-tra | --program-tr | --program-t)
  1432. ac_prev=program_transform_name ;;
  1433. -program-transform-name=* | --program-transform-name=* \
  1434. | --program-transform-nam=* | --program-transform-na=* \
  1435. | --program-transform-n=* | --program-transform-=* \
  1436. | --program-transform=* | --program-transfor=* \
  1437. | --program-transfo=* | --program-transf=* \
  1438. | --program-trans=* | --program-tran=* \
  1439. | --progr-tra=* | --program-tr=* | --program-t=*)
  1440. program_transform_name=$ac_optarg ;;
  1441. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1442. ac_prev=pdfdir ;;
  1443. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1444. pdfdir=$ac_optarg ;;
  1445. -psdir | --psdir | --psdi | --psd | --ps)
  1446. ac_prev=psdir ;;
  1447. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1448. psdir=$ac_optarg ;;
  1449. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1450. | -silent | --silent | --silen | --sile | --sil)
  1451. silent=yes ;;
  1452. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1453. ac_prev=sbindir ;;
  1454. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1455. | --sbi=* | --sb=*)
  1456. sbindir=$ac_optarg ;;
  1457. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1458. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1459. | --sharedst | --shareds | --shared | --share | --shar \
  1460. | --sha | --sh)
  1461. ac_prev=sharedstatedir ;;
  1462. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1463. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1464. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1465. | --sha=* | --sh=*)
  1466. sharedstatedir=$ac_optarg ;;
  1467. -site | --site | --sit)
  1468. ac_prev=site ;;
  1469. -site=* | --site=* | --sit=*)
  1470. site=$ac_optarg ;;
  1471. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1472. ac_prev=srcdir ;;
  1473. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1474. srcdir=$ac_optarg ;;
  1475. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1476. | --syscon | --sysco | --sysc | --sys | --sy)
  1477. ac_prev=sysconfdir ;;
  1478. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1479. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1480. sysconfdir=$ac_optarg ;;
  1481. -target | --target | --targe | --targ | --tar | --ta | --t)
  1482. ac_prev=target_alias ;;
  1483. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1484. target_alias=$ac_optarg ;;
  1485. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1486. verbose=yes ;;
  1487. -version | --version | --versio | --versi | --vers | -V)
  1488. ac_init_version=: ;;
  1489. -with-* | --with-*)
  1490. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1491. # Reject names that are not valid shell variable names.
  1492. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1493. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1494. { (exit 1); exit 1; }; }
  1495. ac_useropt_orig=$ac_useropt
  1496. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1497. case $ac_user_opts in
  1498. *"
  1499. "with_$ac_useropt"
  1500. "*) ;;
  1501. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1502. ac_unrecognized_sep=', ';;
  1503. esac
  1504. eval with_$ac_useropt=\$ac_optarg ;;
  1505. -without-* | --without-*)
  1506. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1507. # Reject names that are not valid shell variable names.
  1508. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1509. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1510. { (exit 1); exit 1; }; }
  1511. ac_useropt_orig=$ac_useropt
  1512. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1513. case $ac_user_opts in
  1514. *"
  1515. "with_$ac_useropt"
  1516. "*) ;;
  1517. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1518. ac_unrecognized_sep=', ';;
  1519. esac
  1520. eval with_$ac_useropt=no ;;
  1521. --x)
  1522. # Obsolete; use --with-x.
  1523. with_x=yes ;;
  1524. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1525. | --x-incl | --x-inc | --x-in | --x-i)
  1526. ac_prev=x_includes ;;
  1527. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1528. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1529. x_includes=$ac_optarg ;;
  1530. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1531. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1532. ac_prev=x_libraries ;;
  1533. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1534. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1535. x_libraries=$ac_optarg ;;
  1536. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1537. Try \`$0 --help' for more information." >&2
  1538. { (exit 1); exit 1; }; }
  1539. ;;
  1540. *=*)
  1541. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1542. # Reject names that are not valid shell variable names.
  1543. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1544. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1545. { (exit 1); exit 1; }; }
  1546. eval $ac_envvar=\$ac_optarg
  1547. export $ac_envvar ;;
  1548. *)
  1549. # FIXME: should be removed in autoconf 3.0.
  1550. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1551. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1552. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1553. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1554. ;;
  1555. esac
  1556. done
  1557. if test -n "$ac_prev"; then
  1558. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1559. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1560. { (exit 1); exit 1; }; }
  1561. fi
  1562. if test -n "$ac_unrecognized_opts"; then
  1563. case $enable_option_checking in
  1564. no) ;;
  1565. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1566. { (exit 1); exit 1; }; } ;;
  1567. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1568. esac
  1569. fi
  1570. # Check all directory arguments for consistency.
  1571. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1572. datadir sysconfdir sharedstatedir localstatedir includedir \
  1573. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1574. libdir localedir mandir
  1575. do
  1576. eval ac_val=\$$ac_var
  1577. # Remove trailing slashes.
  1578. case $ac_val in
  1579. */ )
  1580. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1581. eval $ac_var=\$ac_val;;
  1582. esac
  1583. # Be sure to have absolute directory names.
  1584. case $ac_val in
  1585. [\\/$]* | ?:[\\/]* ) continue;;
  1586. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1587. esac
  1588. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1589. { (exit 1); exit 1; }; }
  1590. done
  1591. # There might be people who depend on the old broken behavior: `$host'
  1592. # used to hold the argument of --host etc.
  1593. # FIXME: To remove some day.
  1594. build=$build_alias
  1595. host=$host_alias
  1596. target=$target_alias
  1597. # FIXME: To remove some day.
  1598. if test "x$host_alias" != x; then
  1599. if test "x$build_alias" = x; then
  1600. cross_compiling=maybe
  1601. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1602. If a cross compiler is detected then cross compile mode will be used." >&2
  1603. elif test "x$build_alias" != "x$host_alias"; then
  1604. cross_compiling=yes
  1605. fi
  1606. fi
  1607. ac_tool_prefix=
  1608. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1609. test "$silent" = yes && exec 6>/dev/null
  1610. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1611. ac_ls_di=`ls -di .` &&
  1612. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1613. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1614. { (exit 1); exit 1; }; }
  1615. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1616. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1617. { (exit 1); exit 1; }; }
  1618. # Find the source files, if location was not specified.
  1619. if test -z "$srcdir"; then
  1620. ac_srcdir_defaulted=yes
  1621. # Try the directory containing this script, then the parent directory.
  1622. ac_confdir=`$as_dirname -- "$as_myself" ||
  1623. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1624. X"$as_myself" : 'X\(//\)[^/]' \| \
  1625. X"$as_myself" : 'X\(//\)$' \| \
  1626. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1627. $as_echo X"$as_myself" |
  1628. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1629. s//\1/
  1630. q
  1631. }
  1632. /^X\(\/\/\)[^/].*/{
  1633. s//\1/
  1634. q
  1635. }
  1636. /^X\(\/\/\)$/{
  1637. s//\1/
  1638. q
  1639. }
  1640. /^X\(\/\).*/{
  1641. s//\1/
  1642. q
  1643. }
  1644. s/.*/./; q'`
  1645. srcdir=$ac_confdir
  1646. if test ! -r "$srcdir/$ac_unique_file"; then
  1647. srcdir=..
  1648. fi
  1649. else
  1650. ac_srcdir_defaulted=no
  1651. fi
  1652. if test ! -r "$srcdir/$ac_unique_file"; then
  1653. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1654. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1655. { (exit 1); exit 1; }; }
  1656. fi
  1657. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1658. ac_abs_confdir=`(
  1659. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1660. { (exit 1); exit 1; }; }
  1661. pwd)`
  1662. # When building in place, set srcdir=.
  1663. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1664. srcdir=.
  1665. fi
  1666. # Remove unnecessary trailing slashes from srcdir.
  1667. # Double slashes in file names in object file debugging info
  1668. # mess up M-x gdb in Emacs.
  1669. case $srcdir in
  1670. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1671. esac
  1672. for ac_var in $ac_precious_vars; do
  1673. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1674. eval ac_env_${ac_var}_value=\$${ac_var}
  1675. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1676. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1677. done
  1678. #
  1679. # Report the --help message.
  1680. #
  1681. if test "$ac_init_help" = "long"; then
  1682. # Omit some internal or obsolete options to make the list less imposing.
  1683. # This message is too long to be a string in the A/UX 3.1 sh.
  1684. cat <<_ACEOF
  1685. \`configure' configures asterisk trunk to adapt to many kinds of systems.
  1686. Usage: $0 [OPTION]... [VAR=VALUE]...
  1687. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1688. VAR=VALUE. See below for descriptions of some of the useful variables.
  1689. Defaults for the options are specified in brackets.
  1690. Configuration:
  1691. -h, --help display this help and exit
  1692. --help=short display options specific to this package
  1693. --help=recursive display the short help of all the included packages
  1694. -V, --version display version information and exit
  1695. -q, --quiet, --silent do not print \`checking...' messages
  1696. --cache-file=FILE cache test results in FILE [disabled]
  1697. -C, --config-cache alias for \`--cache-file=config.cache'
  1698. -n, --no-create do not create output files
  1699. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1700. Installation directories:
  1701. --prefix=PREFIX install architecture-independent files in PREFIX
  1702. [$ac_default_prefix]
  1703. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1704. [PREFIX]
  1705. By default, \`make install' will install all the files in
  1706. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1707. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1708. for instance \`--prefix=\$HOME'.
  1709. For better control, use the options below.
  1710. Fine tuning of the installation directories:
  1711. --bindir=DIR user executables [EPREFIX/bin]
  1712. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1713. --libexecdir=DIR program executables [EPREFIX/libexec]
  1714. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1715. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1716. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1717. --libdir=DIR object code libraries [EPREFIX/lib]
  1718. --includedir=DIR C header files [PREFIX/include]
  1719. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1720. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1721. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1722. --infodir=DIR info documentation [DATAROOTDIR/info]
  1723. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1724. --mandir=DIR man documentation [DATAROOTDIR/man]
  1725. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1726. --htmldir=DIR html documentation [DOCDIR]
  1727. --dvidir=DIR dvi documentation [DOCDIR]
  1728. --pdfdir=DIR pdf documentation [DOCDIR]
  1729. --psdir=DIR ps documentation [DOCDIR]
  1730. _ACEOF
  1731. cat <<\_ACEOF
  1732. System types:
  1733. --build=BUILD configure for building on BUILD [guessed]
  1734. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1735. _ACEOF
  1736. fi
  1737. if test -n "$ac_init_help"; then
  1738. case $ac_init_help in
  1739. short | recursive ) echo "Configuration of asterisk trunk:";;
  1740. esac
  1741. cat <<\_ACEOF
  1742. Optional Features:
  1743. --disable-option-checking ignore unrecognized --enable/--with options
  1744. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1745. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1746. --enable-dev-mode Turn on developer mode
  1747. --enable-coverage Turn on code coverage tracking (for gcov)
  1748. --disable-xmldoc Explicity disable XML documentation
  1749. --disable-largefile omit support for large files
  1750. --enable-internal-poll Use Asterisk's poll implementation
  1751. Optional Packages:
  1752. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1753. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1754. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1755. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1756. --with-bfd=PATH use Debug symbol decoding files in PATH
  1757. --with-execinfo=PATH use Stack Backtrace files in PATH
  1758. --with-bluetooth=PATH use Bluetooth files in PATH
  1759. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1760. --with-curses=PATH use curses files in PATH
  1761. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  1762. --with-dahdi=PATH use DAHDI files in PATH
  1763. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  1764. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  1765. otherwise
  1766. --with-gtk2=PATH use gtk2 files in PATH
  1767. --with-gmime=PATH use GMime files in PATH
  1768. --with-h323=PATH use OpenH323 files in PATH
  1769. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  1770. --with-ical=PATH use iCal files in PATH
  1771. --with-iconv=PATH use Iconv files in PATH
  1772. --with-iksemel=PATH use Iksemel Jabber files in PATH
  1773. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1774. --with-inotify=PATH use inotify support files in PATH
  1775. --with-iodbc=PATH use iODBC files in PATH
  1776. --with-isdnnet=PATH use ISDN4Linux files in PATH
  1777. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  1778. --with-kqueue=PATH use kqueue support files in PATH
  1779. --with-ldap=PATH use OpenLDAP files in PATH
  1780. --with-libcurl=DIR look for the curl library in DIR
  1781. --with-libxml2=PATH use LibXML2 files in PATH
  1782. --with-ltdl=PATH use libtool files in PATH
  1783. --with-lua=PATH use Lua files in PATH
  1784. --with-misdn=PATH use mISDN user files in PATH
  1785. --with-mysqlclient=PATH use MySQL client files in PATH
  1786. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1787. --with-ncurses=PATH use ncurses files in PATH
  1788. --with-neon=PATH use neon files in PATH
  1789. --with-neon29=PATH use neon29 files in PATH
  1790. --with-netsnmp=PATH use Net-SNMP files in PATH
  1791. --with-newt=PATH use newt files in PATH
  1792. --with-ogg=PATH use OGG files in PATH
  1793. --with-openais=PATH use OpenAIS files in PATH
  1794. --with-openr2=PATH use MFR2 files in PATH
  1795. --with-osptk=PATH use OSP Toolkit files in PATH
  1796. --with-oss=PATH use Open Sound System files in PATH
  1797. --with-postgres=PATH use PostgreSQL files in PATH
  1798. --with-popt=PATH use popt files in PATH
  1799. --with-portaudio=PATH use PortAudio files in PATH
  1800. --with-pri=PATH use ISDN PRI files in PATH
  1801. --with-pwlib=PATH use PWlib files in PATH
  1802. --with-radius=PATH use Radius Client files in PATH
  1803. --with-resample=PATH use LIBRESAMPLE files in PATH
  1804. --with-sdl=PATH use Sdl files in PATH
  1805. --with-SDL_image=PATH use Sdl Image files in PATH
  1806. --with-sounds-cache=PATH
  1807. use cached sound tarfiles in PATH
  1808. --with-spandsp=PATH use SPANDSP files in PATH
  1809. --with-ss7=PATH use ISDN SS7 files in PATH
  1810. --with-speex=PATH use Speex files in PATH
  1811. --with-speex=PATH use Speex preprocess routines files in PATH
  1812. --with-speexdsp=PATH use SpeexDSP files in PATH
  1813. --with-sqlite=PATH use SQLite files in PATH
  1814. --with-sqlite3=PATH use SQLite files in PATH
  1815. --with-srtp=PATH use Secure RTP files in PATH
  1816. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  1817. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1818. --with-tds=PATH use FreeTDS files in PATH
  1819. --with-termcap=PATH use Termcap files in PATH
  1820. --with-timerfd=PATH use timerfd files in PATH
  1821. --with-tinfo=PATH use Term Info files in PATH
  1822. --with-tonezone=PATH use tonezone files in PATH
  1823. --with-unixodbc=PATH use unixODBC files in PATH
  1824. --with-usb=PATH use usb files in PATH
  1825. --with-vorbis=PATH use Vorbis files in PATH
  1826. --with-vpb=PATH use Voicetronix API files in PATH
  1827. --with-x11=PATH use X11 files in PATH
  1828. --with-z=PATH use zlib compression files in PATH
  1829. Some influential environment variables:
  1830. CC C compiler command
  1831. CFLAGS C compiler flags
  1832. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1833. nonstandard directory <lib dir>
  1834. LIBS libraries to pass to the linker, e.g. -l<library>
  1835. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1836. you have headers in a nonstandard directory <include dir>
  1837. CPP C preprocessor
  1838. CXX C++ compiler command
  1839. CXXFLAGS C++ compiler flags
  1840. CXXCPP C++ preprocessor
  1841. Use these variables to override the choices made by `configure' or to help
  1842. it to find libraries and programs with nonstandard names/locations.
  1843. Report bugs to <https://issues.asterisk.org>.
  1844. _ACEOF
  1845. ac_status=$?
  1846. fi
  1847. if test "$ac_init_help" = "recursive"; then
  1848. # If there are subdirs, report their specific --help.
  1849. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1850. test -d "$ac_dir" ||
  1851. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1852. continue
  1853. ac_builddir=.
  1854. case "$ac_dir" in
  1855. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1856. *)
  1857. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1858. # A ".." for each directory in $ac_dir_suffix.
  1859. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1860. case $ac_top_builddir_sub in
  1861. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1862. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1863. esac ;;
  1864. esac
  1865. ac_abs_top_builddir=$ac_pwd
  1866. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1867. # for backward compatibility:
  1868. ac_top_builddir=$ac_top_build_prefix
  1869. case $srcdir in
  1870. .) # We are building in place.
  1871. ac_srcdir=.
  1872. ac_top_srcdir=$ac_top_builddir_sub
  1873. ac_abs_top_srcdir=$ac_pwd ;;
  1874. [\\/]* | ?:[\\/]* ) # Absolute name.
  1875. ac_srcdir=$srcdir$ac_dir_suffix;
  1876. ac_top_srcdir=$srcdir
  1877. ac_abs_top_srcdir=$srcdir ;;
  1878. *) # Relative name.
  1879. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1880. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1881. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1882. esac
  1883. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1884. cd "$ac_dir" || { ac_status=$?; continue; }
  1885. # Check for guested configure.
  1886. if test -f "$ac_srcdir/configure.gnu"; then
  1887. echo &&
  1888. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1889. elif test -f "$ac_srcdir/configure"; then
  1890. echo &&
  1891. $SHELL "$ac_srcdir/configure" --help=recursive
  1892. else
  1893. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1894. fi || ac_status=$?
  1895. cd "$ac_pwd" || { ac_status=$?; break; }
  1896. done
  1897. fi
  1898. test -n "$ac_init_help" && exit $ac_status
  1899. if $ac_init_version; then
  1900. cat <<\_ACEOF
  1901. asterisk configure trunk
  1902. generated by GNU Autoconf 2.63
  1903. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1904. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1905. This configure script is free software; the Free Software Foundation
  1906. gives unlimited permission to copy, distribute and modify it.
  1907. "Asterisk"
  1908. _ACEOF
  1909. exit
  1910. fi
  1911. cat >config.log <<_ACEOF
  1912. This file contains any messages produced by compilers while
  1913. running configure, to aid debugging if configure makes a mistake.
  1914. It was created by asterisk $as_me trunk, which was
  1915. generated by GNU Autoconf 2.63. Invocation command line was
  1916. $ $0 $@
  1917. _ACEOF
  1918. exec 5>>config.log
  1919. {
  1920. cat <<_ASUNAME
  1921. ## --------- ##
  1922. ## Platform. ##
  1923. ## --------- ##
  1924. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1925. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1926. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1927. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1928. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1929. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1930. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1931. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1932. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1933. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1934. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1935. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1936. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1937. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1938. _ASUNAME
  1939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1940. for as_dir in $PATH
  1941. do
  1942. IFS=$as_save_IFS
  1943. test -z "$as_dir" && as_dir=.
  1944. $as_echo "PATH: $as_dir"
  1945. done
  1946. IFS=$as_save_IFS
  1947. } >&5
  1948. cat >&5 <<_ACEOF
  1949. ## ----------- ##
  1950. ## Core tests. ##
  1951. ## ----------- ##
  1952. _ACEOF
  1953. # Keep a trace of the command line.
  1954. # Strip out --no-create and --no-recursion so they do not pile up.
  1955. # Strip out --silent because we don't want to record it for future runs.
  1956. # Also quote any args containing shell meta-characters.
  1957. # Make two passes to allow for proper duplicate-argument suppression.
  1958. ac_configure_args=
  1959. ac_configure_args0=
  1960. ac_configure_args1=
  1961. ac_must_keep_next=false
  1962. for ac_pass in 1 2
  1963. do
  1964. for ac_arg
  1965. do
  1966. case $ac_arg in
  1967. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1968. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1969. | -silent | --silent | --silen | --sile | --sil)
  1970. continue ;;
  1971. *\'*)
  1972. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1973. esac
  1974. case $ac_pass in
  1975. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1976. 2)
  1977. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1978. if test $ac_must_keep_next = true; then
  1979. ac_must_keep_next=false # Got value, back to normal.
  1980. else
  1981. case $ac_arg in
  1982. *=* | --config-cache | -C | -disable-* | --disable-* \
  1983. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1984. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1985. | -with-* | --with-* | -without-* | --without-* | --x)
  1986. case "$ac_configure_args0 " in
  1987. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1988. esac
  1989. ;;
  1990. -* ) ac_must_keep_next=true ;;
  1991. esac
  1992. fi
  1993. ac_configure_args="$ac_configure_args '$ac_arg'"
  1994. ;;
  1995. esac
  1996. done
  1997. done
  1998. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1999. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  2000. # When interrupted or exit'd, cleanup temporary files, and complete
  2001. # config.log. We remove comments because anyway the quotes in there
  2002. # would cause problems or look ugly.
  2003. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2004. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2005. trap 'exit_status=$?
  2006. # Save into config.log some information that might help in debugging.
  2007. {
  2008. echo
  2009. cat <<\_ASBOX
  2010. ## ---------------- ##
  2011. ## Cache variables. ##
  2012. ## ---------------- ##
  2013. _ASBOX
  2014. echo
  2015. # The following way of writing the cache mishandles newlines in values,
  2016. (
  2017. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2018. eval ac_val=\$$ac_var
  2019. case $ac_val in #(
  2020. *${as_nl}*)
  2021. case $ac_var in #(
  2022. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  2023. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2024. esac
  2025. case $ac_var in #(
  2026. _ | IFS | as_nl) ;; #(
  2027. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2028. *) $as_unset $ac_var ;;
  2029. esac ;;
  2030. esac
  2031. done
  2032. (set) 2>&1 |
  2033. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2034. *${as_nl}ac_space=\ *)
  2035. sed -n \
  2036. "s/'\''/'\''\\\\'\'''\''/g;
  2037. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2038. ;; #(
  2039. *)
  2040. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2041. ;;
  2042. esac |
  2043. sort
  2044. )
  2045. echo
  2046. cat <<\_ASBOX
  2047. ## ----------------- ##
  2048. ## Output variables. ##
  2049. ## ----------------- ##
  2050. _ASBOX
  2051. echo
  2052. for ac_var in $ac_subst_vars
  2053. do
  2054. eval ac_val=\$$ac_var
  2055. case $ac_val in
  2056. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2057. esac
  2058. $as_echo "$ac_var='\''$ac_val'\''"
  2059. done | sort
  2060. echo
  2061. if test -n "$ac_subst_files"; then
  2062. cat <<\_ASBOX
  2063. ## ------------------- ##
  2064. ## File substitutions. ##
  2065. ## ------------------- ##
  2066. _ASBOX
  2067. echo
  2068. for ac_var in $ac_subst_files
  2069. do
  2070. eval ac_val=\$$ac_var
  2071. case $ac_val in
  2072. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2073. esac
  2074. $as_echo "$ac_var='\''$ac_val'\''"
  2075. done | sort
  2076. echo
  2077. fi
  2078. if test -s confdefs.h; then
  2079. cat <<\_ASBOX
  2080. ## ----------- ##
  2081. ## confdefs.h. ##
  2082. ## ----------- ##
  2083. _ASBOX
  2084. echo
  2085. cat confdefs.h
  2086. echo
  2087. fi
  2088. test "$ac_signal" != 0 &&
  2089. $as_echo "$as_me: caught signal $ac_signal"
  2090. $as_echo "$as_me: exit $exit_status"
  2091. } >&5
  2092. rm -f core *.core core.conftest.* &&
  2093. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2094. exit $exit_status
  2095. ' 0
  2096. for ac_signal in 1 2 13 15; do
  2097. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  2098. done
  2099. ac_signal=0
  2100. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2101. rm -f -r conftest* confdefs.h
  2102. # Predefined preprocessor variables.
  2103. cat >>confdefs.h <<_ACEOF
  2104. #define PACKAGE_NAME "$PACKAGE_NAME"
  2105. _ACEOF
  2106. cat >>confdefs.h <<_ACEOF
  2107. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2108. _ACEOF
  2109. cat >>confdefs.h <<_ACEOF
  2110. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2111. _ACEOF
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE_STRING "$PACKAGE_STRING"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2117. _ACEOF
  2118. # Let the site file select an alternate cache file if it wants to.
  2119. # Prefer an explicitly selected file to automatically selected ones.
  2120. ac_site_file1=NONE
  2121. ac_site_file2=NONE
  2122. if test -n "$CONFIG_SITE"; then
  2123. ac_site_file1=$CONFIG_SITE
  2124. elif test "x$prefix" != xNONE; then
  2125. ac_site_file1=$prefix/share/config.site
  2126. ac_site_file2=$prefix/etc/config.site
  2127. else
  2128. ac_site_file1=$ac_default_prefix/share/config.site
  2129. ac_site_file2=$ac_default_prefix/etc/config.site
  2130. fi
  2131. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2132. do
  2133. test "x$ac_site_file" = xNONE && continue
  2134. if test -r "$ac_site_file"; then
  2135. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  2136. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2137. sed 's/^/| /' "$ac_site_file" >&5
  2138. . "$ac_site_file"
  2139. fi
  2140. done
  2141. if test -r "$cache_file"; then
  2142. # Some versions of bash will fail to source /dev/null (special
  2143. # files actually), so we avoid doing that.
  2144. if test -f "$cache_file"; then
  2145. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  2146. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2147. case $cache_file in
  2148. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2149. *) . "./$cache_file";;
  2150. esac
  2151. fi
  2152. else
  2153. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  2154. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2155. >$cache_file
  2156. fi
  2157. ac_header_list="$ac_header_list utime.h"
  2158. # Check that the precious variables saved in the cache have kept the same
  2159. # value.
  2160. ac_cache_corrupted=false
  2161. for ac_var in $ac_precious_vars; do
  2162. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2163. eval ac_new_set=\$ac_env_${ac_var}_set
  2164. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2165. eval ac_new_val=\$ac_env_${ac_var}_value
  2166. case $ac_old_set,$ac_new_set in
  2167. set,)
  2168. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2169. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2170. ac_cache_corrupted=: ;;
  2171. ,set)
  2172. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2173. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2174. ac_cache_corrupted=: ;;
  2175. ,);;
  2176. *)
  2177. if test "x$ac_old_val" != "x$ac_new_val"; then
  2178. # differences in whitespace do not lead to failure.
  2179. ac_old_val_w=`echo x $ac_old_val`
  2180. ac_new_val_w=`echo x $ac_new_val`
  2181. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2182. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2183. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2184. ac_cache_corrupted=:
  2185. else
  2186. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2187. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2188. eval $ac_var=\$ac_old_val
  2189. fi
  2190. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2191. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2192. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2193. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2194. fi;;
  2195. esac
  2196. # Pass precious variables to config.status.
  2197. if test "$ac_new_set" = set; then
  2198. case $ac_new_val in
  2199. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2200. *) ac_arg=$ac_var=$ac_new_val ;;
  2201. esac
  2202. case " $ac_configure_args " in
  2203. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2204. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2205. esac
  2206. fi
  2207. done
  2208. if $ac_cache_corrupted; then
  2209. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2210. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2211. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2212. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2213. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2214. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2215. { (exit 1); exit 1; }; }
  2216. fi
  2217. ac_ext=c
  2218. ac_cpp='$CPP $CPPFLAGS'
  2219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2222. # cross-compile macros
  2223. ac_aux_dir=
  2224. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2225. if test -f "$ac_dir/install-sh"; then
  2226. ac_aux_dir=$ac_dir
  2227. ac_install_sh="$ac_aux_dir/install-sh -c"
  2228. break
  2229. elif test -f "$ac_dir/install.sh"; then
  2230. ac_aux_dir=$ac_dir
  2231. ac_install_sh="$ac_aux_dir/install.sh -c"
  2232. break
  2233. elif test -f "$ac_dir/shtool"; then
  2234. ac_aux_dir=$ac_dir
  2235. ac_install_sh="$ac_aux_dir/shtool install -c"
  2236. break
  2237. fi
  2238. done
  2239. if test -z "$ac_aux_dir"; then
  2240. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2241. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2242. { (exit 1); exit 1; }; }
  2243. fi
  2244. # These three variables are undocumented and unsupported,
  2245. # and are intended to be withdrawn in a future Autoconf release.
  2246. # They can cause serious problems if a builder's source tree is in a directory
  2247. # whose full name contains unusual characters.
  2248. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2249. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2250. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2251. # Make sure we can run config.sub.
  2252. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2253. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2254. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2255. { (exit 1); exit 1; }; }
  2256. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2257. $as_echo_n "checking build system type... " >&6; }
  2258. if test "${ac_cv_build+set}" = set; then
  2259. $as_echo_n "(cached) " >&6
  2260. else
  2261. ac_build_alias=$build_alias
  2262. test "x$ac_build_alias" = x &&
  2263. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2264. test "x$ac_build_alias" = x &&
  2265. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2266. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2267. { (exit 1); exit 1; }; }
  2268. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2269. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2270. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2271. { (exit 1); exit 1; }; }
  2272. fi
  2273. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2274. $as_echo "$ac_cv_build" >&6; }
  2275. case $ac_cv_build in
  2276. *-*-*) ;;
  2277. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2278. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2279. { (exit 1); exit 1; }; };;
  2280. esac
  2281. build=$ac_cv_build
  2282. ac_save_IFS=$IFS; IFS='-'
  2283. set x $ac_cv_build
  2284. shift
  2285. build_cpu=$1
  2286. build_vendor=$2
  2287. shift; shift
  2288. # Remember, the first character of IFS is used to create $*,
  2289. # except with old shells:
  2290. build_os=$*
  2291. IFS=$ac_save_IFS
  2292. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2293. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2294. $as_echo_n "checking host system type... " >&6; }
  2295. if test "${ac_cv_host+set}" = set; then
  2296. $as_echo_n "(cached) " >&6
  2297. else
  2298. if test "x$host_alias" = x; then
  2299. ac_cv_host=$ac_cv_build
  2300. else
  2301. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2302. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2303. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2304. { (exit 1); exit 1; }; }
  2305. fi
  2306. fi
  2307. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2308. $as_echo "$ac_cv_host" >&6; }
  2309. case $ac_cv_host in
  2310. *-*-*) ;;
  2311. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2312. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2313. { (exit 1); exit 1; }; };;
  2314. esac
  2315. host=$ac_cv_host
  2316. ac_save_IFS=$IFS; IFS='-'
  2317. set x $ac_cv_host
  2318. shift
  2319. host_cpu=$1
  2320. host_vendor=$2
  2321. shift; shift
  2322. # Remember, the first character of IFS is used to create $*,
  2323. # except with old shells:
  2324. host_os=$*
  2325. IFS=$ac_save_IFS
  2326. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2327. # check existence of the package
  2328. ac_aux_dir=
  2329. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  2330. if test -f "$ac_dir/install-sh"; then
  2331. ac_aux_dir=$ac_dir
  2332. ac_install_sh="$ac_aux_dir/install-sh -c"
  2333. break
  2334. elif test -f "$ac_dir/install.sh"; then
  2335. ac_aux_dir=$ac_dir
  2336. ac_install_sh="$ac_aux_dir/install.sh -c"
  2337. break
  2338. elif test -f "$ac_dir/shtool"; then
  2339. ac_aux_dir=$ac_dir
  2340. ac_install_sh="$ac_aux_dir/shtool install -c"
  2341. break
  2342. fi
  2343. done
  2344. if test -z "$ac_aux_dir"; then
  2345. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
  2346. $as_echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
  2347. { (exit 1); exit 1; }; }
  2348. fi
  2349. # These three variables are undocumented and unsupported,
  2350. # and are intended to be withdrawn in a future Autoconf release.
  2351. # They can cause serious problems if a builder's source tree is in a directory
  2352. # whose full name contains unusual characters.
  2353. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2354. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2355. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2356. # preserve any CFLAGS or LDFLAGS that may be set
  2357. # NOTE: This must be done before calling any macros that end up
  2358. # calling AC_PROG_CC or the like, since they will set a default
  2359. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  2360. # we don't want those default flags to be carried over into the
  2361. # rest of the build system since we have other means of controlling
  2362. # debugging symbol generation and optimization.
  2363. CONFIG_CFLAGS="${CFLAGS}"
  2364. CONFIG_LDFLAGS="${LDFLAGS}"
  2365. # specify output header file
  2366. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  2367. ac_ext=c
  2368. ac_cpp='$CPP $CPPFLAGS'
  2369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2372. if test -n "$ac_tool_prefix"; then
  2373. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2374. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2375. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2376. $as_echo_n "checking for $ac_word... " >&6; }
  2377. if test "${ac_cv_prog_CC+set}" = set; then
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test -n "$CC"; then
  2381. ac_cv_prog_CC="$CC" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2390. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2391. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. fi
  2399. CC=$ac_cv_prog_CC
  2400. if test -n "$CC"; then
  2401. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2402. $as_echo "$CC" >&6; }
  2403. else
  2404. { $as_echo "$as_me:$LINENO: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. fi
  2408. if test -z "$ac_cv_prog_CC"; then
  2409. ac_ct_CC=$CC
  2410. # Extract the first word of "gcc", so it can be a program name with args.
  2411. set dummy gcc; ac_word=$2
  2412. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2413. $as_echo_n "checking for $ac_word... " >&6; }
  2414. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2415. $as_echo_n "(cached) " >&6
  2416. else
  2417. if test -n "$ac_ct_CC"; then
  2418. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2419. else
  2420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2421. for as_dir in $PATH
  2422. do
  2423. IFS=$as_save_IFS
  2424. test -z "$as_dir" && as_dir=.
  2425. for ac_exec_ext in '' $ac_executable_extensions; do
  2426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2427. ac_cv_prog_ac_ct_CC="gcc"
  2428. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2429. break 2
  2430. fi
  2431. done
  2432. done
  2433. IFS=$as_save_IFS
  2434. fi
  2435. fi
  2436. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2437. if test -n "$ac_ct_CC"; then
  2438. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2439. $as_echo "$ac_ct_CC" >&6; }
  2440. else
  2441. { $as_echo "$as_me:$LINENO: result: no" >&5
  2442. $as_echo "no" >&6; }
  2443. fi
  2444. if test "x$ac_ct_CC" = x; then
  2445. CC=""
  2446. else
  2447. case $cross_compiling:$ac_tool_warned in
  2448. yes:)
  2449. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2450. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2451. ac_tool_warned=yes ;;
  2452. esac
  2453. CC=$ac_ct_CC
  2454. fi
  2455. else
  2456. CC="$ac_cv_prog_CC"
  2457. fi
  2458. if test -z "$CC"; then
  2459. if test -n "$ac_tool_prefix"; then
  2460. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2461. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2462. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2463. $as_echo_n "checking for $ac_word... " >&6; }
  2464. if test "${ac_cv_prog_CC+set}" = set; then
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test -n "$CC"; then
  2468. ac_cv_prog_CC="$CC" # Let the user override the test.
  2469. else
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. for ac_exec_ext in '' $ac_executable_extensions; do
  2476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2477. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2478. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2479. break 2
  2480. fi
  2481. done
  2482. done
  2483. IFS=$as_save_IFS
  2484. fi
  2485. fi
  2486. CC=$ac_cv_prog_CC
  2487. if test -n "$CC"; then
  2488. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2489. $as_echo "$CC" >&6; }
  2490. else
  2491. { $as_echo "$as_me:$LINENO: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. fi
  2494. fi
  2495. fi
  2496. if test -z "$CC"; then
  2497. # Extract the first word of "cc", so it can be a program name with args.
  2498. set dummy cc; ac_word=$2
  2499. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2500. $as_echo_n "checking for $ac_word... " >&6; }
  2501. if test "${ac_cv_prog_CC+set}" = set; then
  2502. $as_echo_n "(cached) " >&6
  2503. else
  2504. if test -n "$CC"; then
  2505. ac_cv_prog_CC="$CC" # Let the user override the test.
  2506. else
  2507. ac_prog_rejected=no
  2508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2509. for as_dir in $PATH
  2510. do
  2511. IFS=$as_save_IFS
  2512. test -z "$as_dir" && as_dir=.
  2513. for ac_exec_ext in '' $ac_executable_extensions; do
  2514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2515. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2516. ac_prog_rejected=yes
  2517. continue
  2518. fi
  2519. ac_cv_prog_CC="cc"
  2520. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. if test $ac_prog_rejected = yes; then
  2527. # We found a bogon in the path, so make sure we never use it.
  2528. set dummy $ac_cv_prog_CC
  2529. shift
  2530. if test $# != 0; then
  2531. # We chose a different compiler from the bogus one.
  2532. # However, it has the same basename, so the bogon will be chosen
  2533. # first if we set CC to just the basename; use the full file name.
  2534. shift
  2535. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2536. fi
  2537. fi
  2538. fi
  2539. fi
  2540. CC=$ac_cv_prog_CC
  2541. if test -n "$CC"; then
  2542. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2543. $as_echo "$CC" >&6; }
  2544. else
  2545. { $as_echo "$as_me:$LINENO: result: no" >&5
  2546. $as_echo "no" >&6; }
  2547. fi
  2548. fi
  2549. if test -z "$CC"; then
  2550. if test -n "$ac_tool_prefix"; then
  2551. for ac_prog in cl.exe
  2552. do
  2553. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2554. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2555. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2556. $as_echo_n "checking for $ac_word... " >&6; }
  2557. if test "${ac_cv_prog_CC+set}" = set; then
  2558. $as_echo_n "(cached) " >&6
  2559. else
  2560. if test -n "$CC"; then
  2561. ac_cv_prog_CC="$CC" # Let the user override the test.
  2562. else
  2563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2564. for as_dir in $PATH
  2565. do
  2566. IFS=$as_save_IFS
  2567. test -z "$as_dir" && as_dir=.
  2568. for ac_exec_ext in '' $ac_executable_extensions; do
  2569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2570. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2571. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2572. break 2
  2573. fi
  2574. done
  2575. done
  2576. IFS=$as_save_IFS
  2577. fi
  2578. fi
  2579. CC=$ac_cv_prog_CC
  2580. if test -n "$CC"; then
  2581. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2582. $as_echo "$CC" >&6; }
  2583. else
  2584. { $as_echo "$as_me:$LINENO: result: no" >&5
  2585. $as_echo "no" >&6; }
  2586. fi
  2587. test -n "$CC" && break
  2588. done
  2589. fi
  2590. if test -z "$CC"; then
  2591. ac_ct_CC=$CC
  2592. for ac_prog in cl.exe
  2593. do
  2594. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2595. set dummy $ac_prog; ac_word=$2
  2596. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2597. $as_echo_n "checking for $ac_word... " >&6; }
  2598. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2599. $as_echo_n "(cached) " >&6
  2600. else
  2601. if test -n "$ac_ct_CC"; then
  2602. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2603. else
  2604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2605. for as_dir in $PATH
  2606. do
  2607. IFS=$as_save_IFS
  2608. test -z "$as_dir" && as_dir=.
  2609. for ac_exec_ext in '' $ac_executable_extensions; do
  2610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2611. ac_cv_prog_ac_ct_CC="$ac_prog"
  2612. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2613. break 2
  2614. fi
  2615. done
  2616. done
  2617. IFS=$as_save_IFS
  2618. fi
  2619. fi
  2620. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2621. if test -n "$ac_ct_CC"; then
  2622. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2623. $as_echo "$ac_ct_CC" >&6; }
  2624. else
  2625. { $as_echo "$as_me:$LINENO: result: no" >&5
  2626. $as_echo "no" >&6; }
  2627. fi
  2628. test -n "$ac_ct_CC" && break
  2629. done
  2630. if test "x$ac_ct_CC" = x; then
  2631. CC=""
  2632. else
  2633. case $cross_compiling:$ac_tool_warned in
  2634. yes:)
  2635. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2637. ac_tool_warned=yes ;;
  2638. esac
  2639. CC=$ac_ct_CC
  2640. fi
  2641. fi
  2642. fi
  2643. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2644. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2645. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2646. See \`config.log' for more details." >&5
  2647. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2648. See \`config.log' for more details." >&2;}
  2649. { (exit 1); exit 1; }; }; }
  2650. # Provide some information about the compiler.
  2651. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2652. set X $ac_compile
  2653. ac_compiler=$2
  2654. { (ac_try="$ac_compiler --version >&5"
  2655. case "(($ac_try" in
  2656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2657. *) ac_try_echo=$ac_try;;
  2658. esac
  2659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2660. $as_echo "$ac_try_echo") >&5
  2661. (eval "$ac_compiler --version >&5") 2>&5
  2662. ac_status=$?
  2663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2664. (exit $ac_status); }
  2665. { (ac_try="$ac_compiler -v >&5"
  2666. case "(($ac_try" in
  2667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2668. *) ac_try_echo=$ac_try;;
  2669. esac
  2670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2671. $as_echo "$ac_try_echo") >&5
  2672. (eval "$ac_compiler -v >&5") 2>&5
  2673. ac_status=$?
  2674. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2675. (exit $ac_status); }
  2676. { (ac_try="$ac_compiler -V >&5"
  2677. case "(($ac_try" in
  2678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2679. *) ac_try_echo=$ac_try;;
  2680. esac
  2681. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2682. $as_echo "$ac_try_echo") >&5
  2683. (eval "$ac_compiler -V >&5") 2>&5
  2684. ac_status=$?
  2685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); }
  2687. cat >conftest.$ac_ext <<_ACEOF
  2688. /* confdefs.h. */
  2689. _ACEOF
  2690. cat confdefs.h >>conftest.$ac_ext
  2691. cat >>conftest.$ac_ext <<_ACEOF
  2692. /* end confdefs.h. */
  2693. int
  2694. main ()
  2695. {
  2696. ;
  2697. return 0;
  2698. }
  2699. _ACEOF
  2700. ac_clean_files_save=$ac_clean_files
  2701. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2702. # Try to create an executable without -o first, disregard a.out.
  2703. # It will help us diagnose broken compilers, and finding out an intuition
  2704. # of exeext.
  2705. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2706. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2707. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2708. # The possible output files:
  2709. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2710. ac_rmfiles=
  2711. for ac_file in $ac_files
  2712. do
  2713. case $ac_file in
  2714. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2715. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2716. esac
  2717. done
  2718. rm -f $ac_rmfiles
  2719. if { (ac_try="$ac_link_default"
  2720. case "(($ac_try" in
  2721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2722. *) ac_try_echo=$ac_try;;
  2723. esac
  2724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2725. $as_echo "$ac_try_echo") >&5
  2726. (eval "$ac_link_default") 2>&5
  2727. ac_status=$?
  2728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2729. (exit $ac_status); }; then
  2730. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2731. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2732. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2733. # so that the user can short-circuit this test for compilers unknown to
  2734. # Autoconf.
  2735. for ac_file in $ac_files ''
  2736. do
  2737. test -f "$ac_file" || continue
  2738. case $ac_file in
  2739. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2740. ;;
  2741. [ab].out )
  2742. # We found the default executable, but exeext='' is most
  2743. # certainly right.
  2744. break;;
  2745. *.* )
  2746. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2747. then :; else
  2748. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2749. fi
  2750. # We set ac_cv_exeext here because the later test for it is not
  2751. # safe: cross compilers may not add the suffix if given an `-o'
  2752. # argument, so we may need to know it at that point already.
  2753. # Even if this section looks crufty: it has the advantage of
  2754. # actually working.
  2755. break;;
  2756. * )
  2757. break;;
  2758. esac
  2759. done
  2760. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2761. else
  2762. ac_file=''
  2763. fi
  2764. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2765. $as_echo "$ac_file" >&6; }
  2766. if test -z "$ac_file"; then
  2767. $as_echo "$as_me: failed program was:" >&5
  2768. sed 's/^/| /' conftest.$ac_ext >&5
  2769. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2770. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2771. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2772. See \`config.log' for more details." >&5
  2773. $as_echo "$as_me: error: C compiler cannot create executables
  2774. See \`config.log' for more details." >&2;}
  2775. { (exit 77); exit 77; }; }; }
  2776. fi
  2777. ac_exeext=$ac_cv_exeext
  2778. # Check that the compiler produces executables we can run. If not, either
  2779. # the compiler is broken, or we cross compile.
  2780. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2781. $as_echo_n "checking whether the C compiler works... " >&6; }
  2782. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2783. # If not cross compiling, check that we can run a simple program.
  2784. if test "$cross_compiling" != yes; then
  2785. if { ac_try='./$ac_file'
  2786. { (case "(($ac_try" in
  2787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2788. *) ac_try_echo=$ac_try;;
  2789. esac
  2790. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2791. $as_echo "$ac_try_echo") >&5
  2792. (eval "$ac_try") 2>&5
  2793. ac_status=$?
  2794. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2795. (exit $ac_status); }; }; then
  2796. cross_compiling=no
  2797. else
  2798. if test "$cross_compiling" = maybe; then
  2799. cross_compiling=yes
  2800. else
  2801. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2803. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2804. If you meant to cross compile, use \`--host'.
  2805. See \`config.log' for more details." >&5
  2806. $as_echo "$as_me: error: cannot run C compiled programs.
  2807. If you meant to cross compile, use \`--host'.
  2808. See \`config.log' for more details." >&2;}
  2809. { (exit 1); exit 1; }; }; }
  2810. fi
  2811. fi
  2812. fi
  2813. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2814. $as_echo "yes" >&6; }
  2815. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2816. ac_clean_files=$ac_clean_files_save
  2817. # Check that the compiler produces executables we can run. If not, either
  2818. # the compiler is broken, or we cross compile.
  2819. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2820. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2821. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2822. $as_echo "$cross_compiling" >&6; }
  2823. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2824. $as_echo_n "checking for suffix of executables... " >&6; }
  2825. if { (ac_try="$ac_link"
  2826. case "(($ac_try" in
  2827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2828. *) ac_try_echo=$ac_try;;
  2829. esac
  2830. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2831. $as_echo "$ac_try_echo") >&5
  2832. (eval "$ac_link") 2>&5
  2833. ac_status=$?
  2834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2835. (exit $ac_status); }; then
  2836. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2837. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2838. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2839. # `rm'.
  2840. for ac_file in conftest.exe conftest conftest.*; do
  2841. test -f "$ac_file" || continue
  2842. case $ac_file in
  2843. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2844. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2845. break;;
  2846. * ) break;;
  2847. esac
  2848. done
  2849. else
  2850. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2851. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2852. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2853. See \`config.log' for more details." >&5
  2854. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2855. See \`config.log' for more details." >&2;}
  2856. { (exit 1); exit 1; }; }; }
  2857. fi
  2858. rm -f conftest$ac_cv_exeext
  2859. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2860. $as_echo "$ac_cv_exeext" >&6; }
  2861. rm -f conftest.$ac_ext
  2862. EXEEXT=$ac_cv_exeext
  2863. ac_exeext=$EXEEXT
  2864. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2865. $as_echo_n "checking for suffix of object files... " >&6; }
  2866. if test "${ac_cv_objext+set}" = set; then
  2867. $as_echo_n "(cached) " >&6
  2868. else
  2869. cat >conftest.$ac_ext <<_ACEOF
  2870. /* confdefs.h. */
  2871. _ACEOF
  2872. cat confdefs.h >>conftest.$ac_ext
  2873. cat >>conftest.$ac_ext <<_ACEOF
  2874. /* end confdefs.h. */
  2875. int
  2876. main ()
  2877. {
  2878. ;
  2879. return 0;
  2880. }
  2881. _ACEOF
  2882. rm -f conftest.o conftest.obj
  2883. if { (ac_try="$ac_compile"
  2884. case "(($ac_try" in
  2885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2886. *) ac_try_echo=$ac_try;;
  2887. esac
  2888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2889. $as_echo "$ac_try_echo") >&5
  2890. (eval "$ac_compile") 2>&5
  2891. ac_status=$?
  2892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); }; then
  2894. for ac_file in conftest.o conftest.obj conftest.*; do
  2895. test -f "$ac_file" || continue;
  2896. case $ac_file in
  2897. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2898. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2899. break;;
  2900. esac
  2901. done
  2902. else
  2903. $as_echo "$as_me: failed program was:" >&5
  2904. sed 's/^/| /' conftest.$ac_ext >&5
  2905. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2906. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2907. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2908. See \`config.log' for more details." >&5
  2909. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2910. See \`config.log' for more details." >&2;}
  2911. { (exit 1); exit 1; }; }; }
  2912. fi
  2913. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2914. fi
  2915. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2916. $as_echo "$ac_cv_objext" >&6; }
  2917. OBJEXT=$ac_cv_objext
  2918. ac_objext=$OBJEXT
  2919. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2920. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2921. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2922. $as_echo_n "(cached) " >&6
  2923. else
  2924. cat >conftest.$ac_ext <<_ACEOF
  2925. /* confdefs.h. */
  2926. _ACEOF
  2927. cat confdefs.h >>conftest.$ac_ext
  2928. cat >>conftest.$ac_ext <<_ACEOF
  2929. /* end confdefs.h. */
  2930. int
  2931. main ()
  2932. {
  2933. #ifndef __GNUC__
  2934. choke me
  2935. #endif
  2936. ;
  2937. return 0;
  2938. }
  2939. _ACEOF
  2940. rm -f conftest.$ac_objext
  2941. if { (ac_try="$ac_compile"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2947. $as_echo "$ac_try_echo") >&5
  2948. (eval "$ac_compile") 2>conftest.er1
  2949. ac_status=$?
  2950. grep -v '^ *+' conftest.er1 >conftest.err
  2951. rm -f conftest.er1
  2952. cat conftest.err >&5
  2953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2954. (exit $ac_status); } && {
  2955. test -z "$ac_c_werror_flag" ||
  2956. test ! -s conftest.err
  2957. } && test -s conftest.$ac_objext; then
  2958. ac_compiler_gnu=yes
  2959. else
  2960. $as_echo "$as_me: failed program was:" >&5
  2961. sed 's/^/| /' conftest.$ac_ext >&5
  2962. ac_compiler_gnu=no
  2963. fi
  2964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2965. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2966. fi
  2967. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2968. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2969. if test $ac_compiler_gnu = yes; then
  2970. GCC=yes
  2971. else
  2972. GCC=
  2973. fi
  2974. ac_test_CFLAGS=${CFLAGS+set}
  2975. ac_save_CFLAGS=$CFLAGS
  2976. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2977. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2978. if test "${ac_cv_prog_cc_g+set}" = set; then
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. ac_save_c_werror_flag=$ac_c_werror_flag
  2982. ac_c_werror_flag=yes
  2983. ac_cv_prog_cc_g=no
  2984. CFLAGS="-g"
  2985. cat >conftest.$ac_ext <<_ACEOF
  2986. /* confdefs.h. */
  2987. _ACEOF
  2988. cat confdefs.h >>conftest.$ac_ext
  2989. cat >>conftest.$ac_ext <<_ACEOF
  2990. /* end confdefs.h. */
  2991. int
  2992. main ()
  2993. {
  2994. ;
  2995. return 0;
  2996. }
  2997. _ACEOF
  2998. rm -f conftest.$ac_objext
  2999. if { (ac_try="$ac_compile"
  3000. case "(($ac_try" in
  3001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3002. *) ac_try_echo=$ac_try;;
  3003. esac
  3004. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3005. $as_echo "$ac_try_echo") >&5
  3006. (eval "$ac_compile") 2>conftest.er1
  3007. ac_status=$?
  3008. grep -v '^ *+' conftest.er1 >conftest.err
  3009. rm -f conftest.er1
  3010. cat conftest.err >&5
  3011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3012. (exit $ac_status); } && {
  3013. test -z "$ac_c_werror_flag" ||
  3014. test ! -s conftest.err
  3015. } && test -s conftest.$ac_objext; then
  3016. ac_cv_prog_cc_g=yes
  3017. else
  3018. $as_echo "$as_me: failed program was:" >&5
  3019. sed 's/^/| /' conftest.$ac_ext >&5
  3020. CFLAGS=""
  3021. cat >conftest.$ac_ext <<_ACEOF
  3022. /* confdefs.h. */
  3023. _ACEOF
  3024. cat confdefs.h >>conftest.$ac_ext
  3025. cat >>conftest.$ac_ext <<_ACEOF
  3026. /* end confdefs.h. */
  3027. int
  3028. main ()
  3029. {
  3030. ;
  3031. return 0;
  3032. }
  3033. _ACEOF
  3034. rm -f conftest.$ac_objext
  3035. if { (ac_try="$ac_compile"
  3036. case "(($ac_try" in
  3037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3038. *) ac_try_echo=$ac_try;;
  3039. esac
  3040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3041. $as_echo "$ac_try_echo") >&5
  3042. (eval "$ac_compile") 2>conftest.er1
  3043. ac_status=$?
  3044. grep -v '^ *+' conftest.er1 >conftest.err
  3045. rm -f conftest.er1
  3046. cat conftest.err >&5
  3047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3048. (exit $ac_status); } && {
  3049. test -z "$ac_c_werror_flag" ||
  3050. test ! -s conftest.err
  3051. } && test -s conftest.$ac_objext; then
  3052. :
  3053. else
  3054. $as_echo "$as_me: failed program was:" >&5
  3055. sed 's/^/| /' conftest.$ac_ext >&5
  3056. ac_c_werror_flag=$ac_save_c_werror_flag
  3057. CFLAGS="-g"
  3058. cat >conftest.$ac_ext <<_ACEOF
  3059. /* confdefs.h. */
  3060. _ACEOF
  3061. cat confdefs.h >>conftest.$ac_ext
  3062. cat >>conftest.$ac_ext <<_ACEOF
  3063. /* end confdefs.h. */
  3064. int
  3065. main ()
  3066. {
  3067. ;
  3068. return 0;
  3069. }
  3070. _ACEOF
  3071. rm -f conftest.$ac_objext
  3072. if { (ac_try="$ac_compile"
  3073. case "(($ac_try" in
  3074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. *) ac_try_echo=$ac_try;;
  3076. esac
  3077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3078. $as_echo "$ac_try_echo") >&5
  3079. (eval "$ac_compile") 2>conftest.er1
  3080. ac_status=$?
  3081. grep -v '^ *+' conftest.er1 >conftest.err
  3082. rm -f conftest.er1
  3083. cat conftest.err >&5
  3084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3085. (exit $ac_status); } && {
  3086. test -z "$ac_c_werror_flag" ||
  3087. test ! -s conftest.err
  3088. } && test -s conftest.$ac_objext; then
  3089. ac_cv_prog_cc_g=yes
  3090. else
  3091. $as_echo "$as_me: failed program was:" >&5
  3092. sed 's/^/| /' conftest.$ac_ext >&5
  3093. fi
  3094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3095. fi
  3096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097. fi
  3098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3099. ac_c_werror_flag=$ac_save_c_werror_flag
  3100. fi
  3101. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3102. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3103. if test "$ac_test_CFLAGS" = set; then
  3104. CFLAGS=$ac_save_CFLAGS
  3105. elif test $ac_cv_prog_cc_g = yes; then
  3106. if test "$GCC" = yes; then
  3107. CFLAGS="-g -O2"
  3108. else
  3109. CFLAGS="-g"
  3110. fi
  3111. else
  3112. if test "$GCC" = yes; then
  3113. CFLAGS="-O2"
  3114. else
  3115. CFLAGS=
  3116. fi
  3117. fi
  3118. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3119. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3120. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3121. $as_echo_n "(cached) " >&6
  3122. else
  3123. ac_cv_prog_cc_c89=no
  3124. ac_save_CC=$CC
  3125. cat >conftest.$ac_ext <<_ACEOF
  3126. /* confdefs.h. */
  3127. _ACEOF
  3128. cat confdefs.h >>conftest.$ac_ext
  3129. cat >>conftest.$ac_ext <<_ACEOF
  3130. /* end confdefs.h. */
  3131. #include <stdarg.h>
  3132. #include <stdio.h>
  3133. #include <sys/types.h>
  3134. #include <sys/stat.h>
  3135. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3136. struct buf { int x; };
  3137. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3138. static char *e (p, i)
  3139. char **p;
  3140. int i;
  3141. {
  3142. return p[i];
  3143. }
  3144. static char *f (char * (*g) (char **, int), char **p, ...)
  3145. {
  3146. char *s;
  3147. va_list v;
  3148. va_start (v,p);
  3149. s = g (p, va_arg (v,int));
  3150. va_end (v);
  3151. return s;
  3152. }
  3153. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3154. function prototypes and stuff, but not '\xHH' hex character constants.
  3155. These don't provoke an error unfortunately, instead are silently treated
  3156. as 'x'. The following induces an error, until -std is added to get
  3157. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3158. array size at least. It's necessary to write '\x00'==0 to get something
  3159. that's true only with -std. */
  3160. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3161. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3162. inside strings and character constants. */
  3163. #define FOO(x) 'x'
  3164. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3165. int test (int i, double x);
  3166. struct s1 {int (*f) (int a);};
  3167. struct s2 {int (*f) (double a);};
  3168. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3169. int argc;
  3170. char **argv;
  3171. int
  3172. main ()
  3173. {
  3174. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3175. ;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3180. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3181. do
  3182. CC="$ac_save_CC $ac_arg"
  3183. rm -f conftest.$ac_objext
  3184. if { (ac_try="$ac_compile"
  3185. case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo") >&5
  3191. (eval "$ac_compile") 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } && {
  3198. test -z "$ac_c_werror_flag" ||
  3199. test ! -s conftest.err
  3200. } && test -s conftest.$ac_objext; then
  3201. ac_cv_prog_cc_c89=$ac_arg
  3202. else
  3203. $as_echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. fi
  3206. rm -f core conftest.err conftest.$ac_objext
  3207. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3208. done
  3209. rm -f conftest.$ac_ext
  3210. CC=$ac_save_CC
  3211. fi
  3212. # AC_CACHE_VAL
  3213. case "x$ac_cv_prog_cc_c89" in
  3214. x)
  3215. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3216. $as_echo "none needed" >&6; } ;;
  3217. xno)
  3218. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3219. $as_echo "unsupported" >&6; } ;;
  3220. *)
  3221. CC="$CC $ac_cv_prog_cc_c89"
  3222. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3223. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3224. esac
  3225. ac_ext=c
  3226. ac_cpp='$CPP $CPPFLAGS'
  3227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3230. ac_ext=c
  3231. ac_cpp='$CPP $CPPFLAGS'
  3232. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3233. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3235. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3236. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3237. # On Suns, sometimes $CPP names a directory.
  3238. if test -n "$CPP" && test -d "$CPP"; then
  3239. CPP=
  3240. fi
  3241. if test -z "$CPP"; then
  3242. if test "${ac_cv_prog_CPP+set}" = set; then
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. # Double quotes because CPP needs to be expanded
  3246. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3247. do
  3248. ac_preproc_ok=false
  3249. for ac_c_preproc_warn_flag in '' yes
  3250. do
  3251. # Use a header file that comes with gcc, so configuring glibc
  3252. # with a fresh cross-compiler works.
  3253. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3254. # <limits.h> exists even on freestanding compilers.
  3255. # On the NeXT, cc -E runs the code through the compiler's parser,
  3256. # not just through cpp. "Syntax error" is here to catch this case.
  3257. cat >conftest.$ac_ext <<_ACEOF
  3258. /* confdefs.h. */
  3259. _ACEOF
  3260. cat confdefs.h >>conftest.$ac_ext
  3261. cat >>conftest.$ac_ext <<_ACEOF
  3262. /* end confdefs.h. */
  3263. #ifdef __STDC__
  3264. # include <limits.h>
  3265. #else
  3266. # include <assert.h>
  3267. #endif
  3268. Syntax error
  3269. _ACEOF
  3270. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3271. case "(($ac_try" in
  3272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3273. *) ac_try_echo=$ac_try;;
  3274. esac
  3275. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3276. $as_echo "$ac_try_echo") >&5
  3277. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3278. ac_status=$?
  3279. grep -v '^ *+' conftest.er1 >conftest.err
  3280. rm -f conftest.er1
  3281. cat conftest.err >&5
  3282. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283. (exit $ac_status); } >/dev/null && {
  3284. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3285. test ! -s conftest.err
  3286. }; then
  3287. :
  3288. else
  3289. $as_echo "$as_me: failed program was:" >&5
  3290. sed 's/^/| /' conftest.$ac_ext >&5
  3291. # Broken: fails on valid input.
  3292. continue
  3293. fi
  3294. rm -f conftest.err conftest.$ac_ext
  3295. # OK, works on sane cases. Now check whether nonexistent headers
  3296. # can be detected and how.
  3297. cat >conftest.$ac_ext <<_ACEOF
  3298. /* confdefs.h. */
  3299. _ACEOF
  3300. cat confdefs.h >>conftest.$ac_ext
  3301. cat >>conftest.$ac_ext <<_ACEOF
  3302. /* end confdefs.h. */
  3303. #include <ac_nonexistent.h>
  3304. _ACEOF
  3305. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3306. case "(($ac_try" in
  3307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3308. *) ac_try_echo=$ac_try;;
  3309. esac
  3310. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3311. $as_echo "$ac_try_echo") >&5
  3312. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3313. ac_status=$?
  3314. grep -v '^ *+' conftest.er1 >conftest.err
  3315. rm -f conftest.er1
  3316. cat conftest.err >&5
  3317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3318. (exit $ac_status); } >/dev/null && {
  3319. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3320. test ! -s conftest.err
  3321. }; then
  3322. # Broken: success on invalid input.
  3323. continue
  3324. else
  3325. $as_echo "$as_me: failed program was:" >&5
  3326. sed 's/^/| /' conftest.$ac_ext >&5
  3327. # Passes both tests.
  3328. ac_preproc_ok=:
  3329. break
  3330. fi
  3331. rm -f conftest.err conftest.$ac_ext
  3332. done
  3333. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3334. rm -f conftest.err conftest.$ac_ext
  3335. if $ac_preproc_ok; then
  3336. break
  3337. fi
  3338. done
  3339. ac_cv_prog_CPP=$CPP
  3340. fi
  3341. CPP=$ac_cv_prog_CPP
  3342. else
  3343. ac_cv_prog_CPP=$CPP
  3344. fi
  3345. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3346. $as_echo "$CPP" >&6; }
  3347. ac_preproc_ok=false
  3348. for ac_c_preproc_warn_flag in '' yes
  3349. do
  3350. # Use a header file that comes with gcc, so configuring glibc
  3351. # with a fresh cross-compiler works.
  3352. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3353. # <limits.h> exists even on freestanding compilers.
  3354. # On the NeXT, cc -E runs the code through the compiler's parser,
  3355. # not just through cpp. "Syntax error" is here to catch this case.
  3356. cat >conftest.$ac_ext <<_ACEOF
  3357. /* confdefs.h. */
  3358. _ACEOF
  3359. cat confdefs.h >>conftest.$ac_ext
  3360. cat >>conftest.$ac_ext <<_ACEOF
  3361. /* end confdefs.h. */
  3362. #ifdef __STDC__
  3363. # include <limits.h>
  3364. #else
  3365. # include <assert.h>
  3366. #endif
  3367. Syntax error
  3368. _ACEOF
  3369. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3370. case "(($ac_try" in
  3371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3372. *) ac_try_echo=$ac_try;;
  3373. esac
  3374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3375. $as_echo "$ac_try_echo") >&5
  3376. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3377. ac_status=$?
  3378. grep -v '^ *+' conftest.er1 >conftest.err
  3379. rm -f conftest.er1
  3380. cat conftest.err >&5
  3381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3382. (exit $ac_status); } >/dev/null && {
  3383. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3384. test ! -s conftest.err
  3385. }; then
  3386. :
  3387. else
  3388. $as_echo "$as_me: failed program was:" >&5
  3389. sed 's/^/| /' conftest.$ac_ext >&5
  3390. # Broken: fails on valid input.
  3391. continue
  3392. fi
  3393. rm -f conftest.err conftest.$ac_ext
  3394. # OK, works on sane cases. Now check whether nonexistent headers
  3395. # can be detected and how.
  3396. cat >conftest.$ac_ext <<_ACEOF
  3397. /* confdefs.h. */
  3398. _ACEOF
  3399. cat confdefs.h >>conftest.$ac_ext
  3400. cat >>conftest.$ac_ext <<_ACEOF
  3401. /* end confdefs.h. */
  3402. #include <ac_nonexistent.h>
  3403. _ACEOF
  3404. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3405. case "(($ac_try" in
  3406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3407. *) ac_try_echo=$ac_try;;
  3408. esac
  3409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3410. $as_echo "$ac_try_echo") >&5
  3411. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3412. ac_status=$?
  3413. grep -v '^ *+' conftest.er1 >conftest.err
  3414. rm -f conftest.er1
  3415. cat conftest.err >&5
  3416. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3417. (exit $ac_status); } >/dev/null && {
  3418. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3419. test ! -s conftest.err
  3420. }; then
  3421. # Broken: success on invalid input.
  3422. continue
  3423. else
  3424. $as_echo "$as_me: failed program was:" >&5
  3425. sed 's/^/| /' conftest.$ac_ext >&5
  3426. # Passes both tests.
  3427. ac_preproc_ok=:
  3428. break
  3429. fi
  3430. rm -f conftest.err conftest.$ac_ext
  3431. done
  3432. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3433. rm -f conftest.err conftest.$ac_ext
  3434. if $ac_preproc_ok; then
  3435. :
  3436. else
  3437. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3439. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3440. See \`config.log' for more details." >&5
  3441. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3442. See \`config.log' for more details." >&2;}
  3443. { (exit 1); exit 1; }; }; }
  3444. fi
  3445. ac_ext=c
  3446. ac_cpp='$CPP $CPPFLAGS'
  3447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3450. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3451. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3452. if test "${ac_cv_path_GREP+set}" = set; then
  3453. $as_echo_n "(cached) " >&6
  3454. else
  3455. if test -z "$GREP"; then
  3456. ac_path_GREP_found=false
  3457. # Loop through the user's path and test for each of PROGNAME-LIST
  3458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3459. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3460. do
  3461. IFS=$as_save_IFS
  3462. test -z "$as_dir" && as_dir=.
  3463. for ac_prog in grep ggrep; do
  3464. for ac_exec_ext in '' $ac_executable_extensions; do
  3465. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3466. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3467. # Check for GNU ac_path_GREP and select it if it is found.
  3468. # Check for GNU $ac_path_GREP
  3469. case `"$ac_path_GREP" --version 2>&1` in
  3470. *GNU*)
  3471. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3472. *)
  3473. ac_count=0
  3474. $as_echo_n 0123456789 >"conftest.in"
  3475. while :
  3476. do
  3477. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3478. mv "conftest.tmp" "conftest.in"
  3479. cp "conftest.in" "conftest.nl"
  3480. $as_echo 'GREP' >> "conftest.nl"
  3481. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3482. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3483. ac_count=`expr $ac_count + 1`
  3484. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3485. # Best one so far, save it but keep looking for a better one
  3486. ac_cv_path_GREP="$ac_path_GREP"
  3487. ac_path_GREP_max=$ac_count
  3488. fi
  3489. # 10*(2^10) chars as input seems more than enough
  3490. test $ac_count -gt 10 && break
  3491. done
  3492. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3493. esac
  3494. $ac_path_GREP_found && break 3
  3495. done
  3496. done
  3497. done
  3498. IFS=$as_save_IFS
  3499. if test -z "$ac_cv_path_GREP"; then
  3500. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3501. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3502. { (exit 1); exit 1; }; }
  3503. fi
  3504. else
  3505. ac_cv_path_GREP=$GREP
  3506. fi
  3507. fi
  3508. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3509. $as_echo "$ac_cv_path_GREP" >&6; }
  3510. GREP="$ac_cv_path_GREP"
  3511. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3512. $as_echo_n "checking for egrep... " >&6; }
  3513. if test "${ac_cv_path_EGREP+set}" = set; then
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3517. then ac_cv_path_EGREP="$GREP -E"
  3518. else
  3519. if test -z "$EGREP"; then
  3520. ac_path_EGREP_found=false
  3521. # Loop through the user's path and test for each of PROGNAME-LIST
  3522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3523. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3524. do
  3525. IFS=$as_save_IFS
  3526. test -z "$as_dir" && as_dir=.
  3527. for ac_prog in egrep; do
  3528. for ac_exec_ext in '' $ac_executable_extensions; do
  3529. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3530. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3531. # Check for GNU ac_path_EGREP and select it if it is found.
  3532. # Check for GNU $ac_path_EGREP
  3533. case `"$ac_path_EGREP" --version 2>&1` in
  3534. *GNU*)
  3535. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3536. *)
  3537. ac_count=0
  3538. $as_echo_n 0123456789 >"conftest.in"
  3539. while :
  3540. do
  3541. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3542. mv "conftest.tmp" "conftest.in"
  3543. cp "conftest.in" "conftest.nl"
  3544. $as_echo 'EGREP' >> "conftest.nl"
  3545. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3546. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3547. ac_count=`expr $ac_count + 1`
  3548. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3549. # Best one so far, save it but keep looking for a better one
  3550. ac_cv_path_EGREP="$ac_path_EGREP"
  3551. ac_path_EGREP_max=$ac_count
  3552. fi
  3553. # 10*(2^10) chars as input seems more than enough
  3554. test $ac_count -gt 10 && break
  3555. done
  3556. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3557. esac
  3558. $ac_path_EGREP_found && break 3
  3559. done
  3560. done
  3561. done
  3562. IFS=$as_save_IFS
  3563. if test -z "$ac_cv_path_EGREP"; then
  3564. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3565. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3566. { (exit 1); exit 1; }; }
  3567. fi
  3568. else
  3569. ac_cv_path_EGREP=$EGREP
  3570. fi
  3571. fi
  3572. fi
  3573. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3574. $as_echo "$ac_cv_path_EGREP" >&6; }
  3575. EGREP="$ac_cv_path_EGREP"
  3576. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3577. $as_echo_n "checking for ANSI C header files... " >&6; }
  3578. if test "${ac_cv_header_stdc+set}" = set; then
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. cat >conftest.$ac_ext <<_ACEOF
  3582. /* confdefs.h. */
  3583. _ACEOF
  3584. cat confdefs.h >>conftest.$ac_ext
  3585. cat >>conftest.$ac_ext <<_ACEOF
  3586. /* end confdefs.h. */
  3587. #include <stdlib.h>
  3588. #include <stdarg.h>
  3589. #include <string.h>
  3590. #include <float.h>
  3591. int
  3592. main ()
  3593. {
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. rm -f conftest.$ac_objext
  3599. if { (ac_try="$ac_compile"
  3600. case "(($ac_try" in
  3601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3602. *) ac_try_echo=$ac_try;;
  3603. esac
  3604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3605. $as_echo "$ac_try_echo") >&5
  3606. (eval "$ac_compile") 2>conftest.er1
  3607. ac_status=$?
  3608. grep -v '^ *+' conftest.er1 >conftest.err
  3609. rm -f conftest.er1
  3610. cat conftest.err >&5
  3611. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3612. (exit $ac_status); } && {
  3613. test -z "$ac_c_werror_flag" ||
  3614. test ! -s conftest.err
  3615. } && test -s conftest.$ac_objext; then
  3616. ac_cv_header_stdc=yes
  3617. else
  3618. $as_echo "$as_me: failed program was:" >&5
  3619. sed 's/^/| /' conftest.$ac_ext >&5
  3620. ac_cv_header_stdc=no
  3621. fi
  3622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3623. if test $ac_cv_header_stdc = yes; then
  3624. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3625. cat >conftest.$ac_ext <<_ACEOF
  3626. /* confdefs.h. */
  3627. _ACEOF
  3628. cat confdefs.h >>conftest.$ac_ext
  3629. cat >>conftest.$ac_ext <<_ACEOF
  3630. /* end confdefs.h. */
  3631. #include <string.h>
  3632. _ACEOF
  3633. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3634. $EGREP "memchr" >/dev/null 2>&1; then
  3635. :
  3636. else
  3637. ac_cv_header_stdc=no
  3638. fi
  3639. rm -f conftest*
  3640. fi
  3641. if test $ac_cv_header_stdc = yes; then
  3642. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3643. cat >conftest.$ac_ext <<_ACEOF
  3644. /* confdefs.h. */
  3645. _ACEOF
  3646. cat confdefs.h >>conftest.$ac_ext
  3647. cat >>conftest.$ac_ext <<_ACEOF
  3648. /* end confdefs.h. */
  3649. #include <stdlib.h>
  3650. _ACEOF
  3651. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3652. $EGREP "free" >/dev/null 2>&1; then
  3653. :
  3654. else
  3655. ac_cv_header_stdc=no
  3656. fi
  3657. rm -f conftest*
  3658. fi
  3659. if test $ac_cv_header_stdc = yes; then
  3660. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3661. if test "$cross_compiling" = yes; then
  3662. :
  3663. else
  3664. cat >conftest.$ac_ext <<_ACEOF
  3665. /* confdefs.h. */
  3666. _ACEOF
  3667. cat confdefs.h >>conftest.$ac_ext
  3668. cat >>conftest.$ac_ext <<_ACEOF
  3669. /* end confdefs.h. */
  3670. #include <ctype.h>
  3671. #include <stdlib.h>
  3672. #if ((' ' & 0x0FF) == 0x020)
  3673. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3674. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3675. #else
  3676. # define ISLOWER(c) \
  3677. (('a' <= (c) && (c) <= 'i') \
  3678. || ('j' <= (c) && (c) <= 'r') \
  3679. || ('s' <= (c) && (c) <= 'z'))
  3680. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3681. #endif
  3682. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3683. int
  3684. main ()
  3685. {
  3686. int i;
  3687. for (i = 0; i < 256; i++)
  3688. if (XOR (islower (i), ISLOWER (i))
  3689. || toupper (i) != TOUPPER (i))
  3690. return 2;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. rm -f conftest$ac_exeext
  3695. if { (ac_try="$ac_link"
  3696. case "(($ac_try" in
  3697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3698. *) ac_try_echo=$ac_try;;
  3699. esac
  3700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3701. $as_echo "$ac_try_echo") >&5
  3702. (eval "$ac_link") 2>&5
  3703. ac_status=$?
  3704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3705. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3706. { (case "(($ac_try" in
  3707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3708. *) ac_try_echo=$ac_try;;
  3709. esac
  3710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3711. $as_echo "$ac_try_echo") >&5
  3712. (eval "$ac_try") 2>&5
  3713. ac_status=$?
  3714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3715. (exit $ac_status); }; }; then
  3716. :
  3717. else
  3718. $as_echo "$as_me: program exited with status $ac_status" >&5
  3719. $as_echo "$as_me: failed program was:" >&5
  3720. sed 's/^/| /' conftest.$ac_ext >&5
  3721. ( exit $ac_status )
  3722. ac_cv_header_stdc=no
  3723. fi
  3724. rm -rf conftest.dSYM
  3725. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3726. fi
  3727. fi
  3728. fi
  3729. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3730. $as_echo "$ac_cv_header_stdc" >&6; }
  3731. if test $ac_cv_header_stdc = yes; then
  3732. cat >>confdefs.h <<\_ACEOF
  3733. #define STDC_HEADERS 1
  3734. _ACEOF
  3735. fi
  3736. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3737. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3738. inttypes.h stdint.h unistd.h
  3739. do
  3740. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3741. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3742. $as_echo_n "checking for $ac_header... " >&6; }
  3743. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. cat >conftest.$ac_ext <<_ACEOF
  3747. /* confdefs.h. */
  3748. _ACEOF
  3749. cat confdefs.h >>conftest.$ac_ext
  3750. cat >>conftest.$ac_ext <<_ACEOF
  3751. /* end confdefs.h. */
  3752. $ac_includes_default
  3753. #include <$ac_header>
  3754. _ACEOF
  3755. rm -f conftest.$ac_objext
  3756. if { (ac_try="$ac_compile"
  3757. case "(($ac_try" in
  3758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3759. *) ac_try_echo=$ac_try;;
  3760. esac
  3761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3762. $as_echo "$ac_try_echo") >&5
  3763. (eval "$ac_compile") 2>conftest.er1
  3764. ac_status=$?
  3765. grep -v '^ *+' conftest.er1 >conftest.err
  3766. rm -f conftest.er1
  3767. cat conftest.err >&5
  3768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); } && {
  3770. test -z "$ac_c_werror_flag" ||
  3771. test ! -s conftest.err
  3772. } && test -s conftest.$ac_objext; then
  3773. eval "$as_ac_Header=yes"
  3774. else
  3775. $as_echo "$as_me: failed program was:" >&5
  3776. sed 's/^/| /' conftest.$ac_ext >&5
  3777. eval "$as_ac_Header=no"
  3778. fi
  3779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3780. fi
  3781. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3782. $as_echo "$as_val"'`
  3783. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3784. $as_echo "$ac_res" >&6; }
  3785. as_val=`eval 'as_val=${'$as_ac_Header'}
  3786. $as_echo "$as_val"'`
  3787. if test "x$as_val" = x""yes; then
  3788. cat >>confdefs.h <<_ACEOF
  3789. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3790. _ACEOF
  3791. fi
  3792. done
  3793. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3794. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3795. $as_echo_n "checking for minix/config.h... " >&6; }
  3796. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3797. $as_echo_n "(cached) " >&6
  3798. fi
  3799. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3800. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3801. else
  3802. # Is the header compilable?
  3803. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3804. $as_echo_n "checking minix/config.h usability... " >&6; }
  3805. cat >conftest.$ac_ext <<_ACEOF
  3806. /* confdefs.h. */
  3807. _ACEOF
  3808. cat confdefs.h >>conftest.$ac_ext
  3809. cat >>conftest.$ac_ext <<_ACEOF
  3810. /* end confdefs.h. */
  3811. $ac_includes_default
  3812. #include <minix/config.h>
  3813. _ACEOF
  3814. rm -f conftest.$ac_objext
  3815. if { (ac_try="$ac_compile"
  3816. case "(($ac_try" in
  3817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3818. *) ac_try_echo=$ac_try;;
  3819. esac
  3820. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3821. $as_echo "$ac_try_echo") >&5
  3822. (eval "$ac_compile") 2>conftest.er1
  3823. ac_status=$?
  3824. grep -v '^ *+' conftest.er1 >conftest.err
  3825. rm -f conftest.er1
  3826. cat conftest.err >&5
  3827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3828. (exit $ac_status); } && {
  3829. test -z "$ac_c_werror_flag" ||
  3830. test ! -s conftest.err
  3831. } && test -s conftest.$ac_objext; then
  3832. ac_header_compiler=yes
  3833. else
  3834. $as_echo "$as_me: failed program was:" >&5
  3835. sed 's/^/| /' conftest.$ac_ext >&5
  3836. ac_header_compiler=no
  3837. fi
  3838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3839. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3840. $as_echo "$ac_header_compiler" >&6; }
  3841. # Is the header present?
  3842. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3843. $as_echo_n "checking minix/config.h presence... " >&6; }
  3844. cat >conftest.$ac_ext <<_ACEOF
  3845. /* confdefs.h. */
  3846. _ACEOF
  3847. cat confdefs.h >>conftest.$ac_ext
  3848. cat >>conftest.$ac_ext <<_ACEOF
  3849. /* end confdefs.h. */
  3850. #include <minix/config.h>
  3851. _ACEOF
  3852. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3853. case "(($ac_try" in
  3854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3855. *) ac_try_echo=$ac_try;;
  3856. esac
  3857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3858. $as_echo "$ac_try_echo") >&5
  3859. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3860. ac_status=$?
  3861. grep -v '^ *+' conftest.er1 >conftest.err
  3862. rm -f conftest.er1
  3863. cat conftest.err >&5
  3864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3865. (exit $ac_status); } >/dev/null && {
  3866. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3867. test ! -s conftest.err
  3868. }; then
  3869. ac_header_preproc=yes
  3870. else
  3871. $as_echo "$as_me: failed program was:" >&5
  3872. sed 's/^/| /' conftest.$ac_ext >&5
  3873. ac_header_preproc=no
  3874. fi
  3875. rm -f conftest.err conftest.$ac_ext
  3876. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3877. $as_echo "$ac_header_preproc" >&6; }
  3878. # So? What about this header?
  3879. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3880. yes:no: )
  3881. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3882. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3883. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3884. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3885. ac_header_preproc=yes
  3886. ;;
  3887. no:yes:* )
  3888. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3889. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3890. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3891. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3892. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3893. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3894. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3895. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3896. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3897. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3898. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3899. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3900. ( cat <<\_ASBOX
  3901. ## ------------------------------------------ ##
  3902. ## Report this to https://issues.asterisk.org ##
  3903. ## ------------------------------------------ ##
  3904. _ASBOX
  3905. ) | sed "s/^/$as_me: WARNING: /" >&2
  3906. ;;
  3907. esac
  3908. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3909. $as_echo_n "checking for minix/config.h... " >&6; }
  3910. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3911. $as_echo_n "(cached) " >&6
  3912. else
  3913. ac_cv_header_minix_config_h=$ac_header_preproc
  3914. fi
  3915. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3916. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3917. fi
  3918. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3919. MINIX=yes
  3920. else
  3921. MINIX=
  3922. fi
  3923. if test "$MINIX" = yes; then
  3924. cat >>confdefs.h <<\_ACEOF
  3925. #define _POSIX_SOURCE 1
  3926. _ACEOF
  3927. cat >>confdefs.h <<\_ACEOF
  3928. #define _POSIX_1_SOURCE 2
  3929. _ACEOF
  3930. cat >>confdefs.h <<\_ACEOF
  3931. #define _MINIX 1
  3932. _ACEOF
  3933. fi
  3934. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3935. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3936. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3937. $as_echo_n "(cached) " >&6
  3938. else
  3939. cat >conftest.$ac_ext <<_ACEOF
  3940. /* confdefs.h. */
  3941. _ACEOF
  3942. cat confdefs.h >>conftest.$ac_ext
  3943. cat >>conftest.$ac_ext <<_ACEOF
  3944. /* end confdefs.h. */
  3945. # define __EXTENSIONS__ 1
  3946. $ac_includes_default
  3947. int
  3948. main ()
  3949. {
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. rm -f conftest.$ac_objext
  3955. if { (ac_try="$ac_compile"
  3956. case "(($ac_try" in
  3957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3958. *) ac_try_echo=$ac_try;;
  3959. esac
  3960. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3961. $as_echo "$ac_try_echo") >&5
  3962. (eval "$ac_compile") 2>conftest.er1
  3963. ac_status=$?
  3964. grep -v '^ *+' conftest.er1 >conftest.err
  3965. rm -f conftest.er1
  3966. cat conftest.err >&5
  3967. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3968. (exit $ac_status); } && {
  3969. test -z "$ac_c_werror_flag" ||
  3970. test ! -s conftest.err
  3971. } && test -s conftest.$ac_objext; then
  3972. ac_cv_safe_to_define___extensions__=yes
  3973. else
  3974. $as_echo "$as_me: failed program was:" >&5
  3975. sed 's/^/| /' conftest.$ac_ext >&5
  3976. ac_cv_safe_to_define___extensions__=no
  3977. fi
  3978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3979. fi
  3980. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3981. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3982. test $ac_cv_safe_to_define___extensions__ = yes &&
  3983. cat >>confdefs.h <<\_ACEOF
  3984. #define __EXTENSIONS__ 1
  3985. _ACEOF
  3986. cat >>confdefs.h <<\_ACEOF
  3987. #define _ALL_SOURCE 1
  3988. _ACEOF
  3989. cat >>confdefs.h <<\_ACEOF
  3990. #define _GNU_SOURCE 1
  3991. _ACEOF
  3992. cat >>confdefs.h <<\_ACEOF
  3993. #define _POSIX_PTHREAD_SEMANTICS 1
  3994. _ACEOF
  3995. cat >>confdefs.h <<\_ACEOF
  3996. #define _TANDEM_SOURCE 1
  3997. _ACEOF
  3998. # System default paths
  3999. astsbindir='${sbindir}'
  4000. astetcdir='${sysconfdir}/asterisk'
  4001. astheaderdir='${includedir}/asterisk'
  4002. astlibdir='${libdir}/asterisk'
  4003. astmandir='${mandir}'
  4004. astvarlibdir='${localstatedir}/lib/asterisk'
  4005. astdatadir='${astvarlibdir}'
  4006. astdbdir='${astvarlibdir}'
  4007. astkeydir='${astvarlibdir}'
  4008. astspooldir='${localstatedir}/spool/asterisk'
  4009. astlogdir='${localstatedir}/log/asterisk'
  4010. astvarrundir='${localstatedir}/run/asterisk'
  4011. case "${host_os}" in
  4012. *bsd*)
  4013. if test ${prefix} = 'NONE'; then
  4014. astvarlibdir='${prefix}/share/asterisk'
  4015. astdbdir='${localstatedir}/db/asterisk'
  4016. fi
  4017. ;;
  4018. darwin*)
  4019. if test ${prefix} = 'NONE'; then
  4020. astvarrundir='/Library/Application Support/Asterisk/Run'
  4021. fi
  4022. ;;
  4023. esac
  4024. case "${host_os}" in
  4025. freebsd*)
  4026. ac_default_prefix=/usr/local
  4027. CPPFLAGS=-I/usr/local/include
  4028. LDFLAGS=-L/usr/local/lib
  4029. ;;
  4030. openbsd*)
  4031. ac_default_prefix=/usr/local
  4032. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  4033. if test ${sysconfdir} = '${prefix}/etc'; then
  4034. astetcdir=/etc/asterisk
  4035. fi
  4036. if test ${mandir} = '${prefix}/man'; then
  4037. astmandir=/usr/share/man
  4038. fi
  4039. fi
  4040. CPPFLAGS=-I/usr/local/include
  4041. LDFLAGS=-L/usr/local/lib
  4042. ;;
  4043. darwin*)
  4044. ac_default_prefix=/usr/local
  4045. if test ${prefix} = 'NONE'; then
  4046. astlibdir='/Library/Application Support/Asterisk/Modules'
  4047. astvarlibdir='/Library/Application Support/Asterisk'
  4048. astlogdir=/Library/Logs/Asterisk
  4049. astvarrundir='/Library/Application Support/Asterisk/Run'
  4050. fi
  4051. cat >>confdefs.h <<\_ACEOF
  4052. #define AST_POLL_COMPAT 1
  4053. _ACEOF
  4054. cat >>confdefs.h <<\_ACEOF
  4055. #define _DARWIN_UNLIMITED_SELECT 1
  4056. _ACEOF
  4057. ;;
  4058. solaris*)
  4059. if test ${prefix} = 'NONE'; then
  4060. astetcdir=/var/etc/asterisk
  4061. astsbindir=/opt/asterisk/sbin
  4062. astlibdir=/opt/asterisk/lib
  4063. astheaderdir=/opt/asterisk/include
  4064. astmandir=/opt/asterisk/man
  4065. astvarlibdir=/var/opt/asterisk
  4066. astspooldir=/var/spool/asterisk
  4067. astlogdir=/var/log/asterisk
  4068. astvarrundir=/var/run/asterisk
  4069. fi
  4070. ;;
  4071. *)
  4072. ac_default_prefix=/usr
  4073. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4074. if test ${sysconfdir} = '${prefix}/etc'; then
  4075. sysconfdir=/etc
  4076. fi
  4077. if test ${mandir} = '${prefix}/man'; then
  4078. mandir=/usr/share/man
  4079. fi
  4080. fi
  4081. ;;
  4082. esac
  4083. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4084. if test ${localstatedir} = '${prefix}/var'; then
  4085. localstatedir=/var
  4086. fi
  4087. fi
  4088. BUILD_PLATFORM=${build}
  4089. BUILD_CPU=${build_cpu}
  4090. BUILD_VENDOR=${build_vendor}
  4091. BUILD_OS=${build_os}
  4092. HOST_PLATFORM=${host}
  4093. HOST_CPU=${host_cpu}
  4094. HOST_VENDOR=${host_vendor}
  4095. HOST_OS=${host_os}
  4096. PBX_WINARCH=0
  4097. case "${host_os}" in
  4098. freebsd*)
  4099. OSARCH=FreeBSD
  4100. ;;
  4101. netbsd*)
  4102. OSARCH=NetBSD
  4103. ;;
  4104. openbsd*)
  4105. OSARCH=OpenBSD
  4106. ;;
  4107. solaris*)
  4108. OSARCH=SunOS
  4109. ;;
  4110. mingw32)
  4111. OSARCH=mingw32
  4112. PBX_WINARCH=1
  4113. ;;
  4114. cygwin)
  4115. OSARCH=cygwin
  4116. PBX_WINARCH=1
  4117. ;;
  4118. linux-gnueabi)
  4119. OSARCH=linux-gnu
  4120. ;;
  4121. *)
  4122. OSARCH=${host_os}
  4123. ;;
  4124. esac
  4125. # check for uname
  4126. if test -n "$ac_tool_prefix"; then
  4127. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4128. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4129. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4130. $as_echo_n "checking for $ac_word... " >&6; }
  4131. if test "${ac_cv_path_UNAME+set}" = set; then
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. case $UNAME in
  4135. [\\/]* | ?:[\\/]*)
  4136. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4137. ;;
  4138. *)
  4139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4140. for as_dir in $PATH
  4141. do
  4142. IFS=$as_save_IFS
  4143. test -z "$as_dir" && as_dir=.
  4144. for ac_exec_ext in '' $ac_executable_extensions; do
  4145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4146. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4147. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4148. break 2
  4149. fi
  4150. done
  4151. done
  4152. IFS=$as_save_IFS
  4153. ;;
  4154. esac
  4155. fi
  4156. UNAME=$ac_cv_path_UNAME
  4157. if test -n "$UNAME"; then
  4158. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  4159. $as_echo "$UNAME" >&6; }
  4160. else
  4161. { $as_echo "$as_me:$LINENO: result: no" >&5
  4162. $as_echo "no" >&6; }
  4163. fi
  4164. fi
  4165. if test -z "$ac_cv_path_UNAME"; then
  4166. ac_pt_UNAME=$UNAME
  4167. # Extract the first word of "uname", so it can be a program name with args.
  4168. set dummy uname; ac_word=$2
  4169. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. case $ac_pt_UNAME in
  4175. [\\/]* | ?:[\\/]*)
  4176. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4177. ;;
  4178. *)
  4179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4180. for as_dir in $PATH
  4181. do
  4182. IFS=$as_save_IFS
  4183. test -z "$as_dir" && as_dir=.
  4184. for ac_exec_ext in '' $ac_executable_extensions; do
  4185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4186. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4187. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4188. break 2
  4189. fi
  4190. done
  4191. done
  4192. IFS=$as_save_IFS
  4193. ;;
  4194. esac
  4195. fi
  4196. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4197. if test -n "$ac_pt_UNAME"; then
  4198. { $as_echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
  4199. $as_echo "$ac_pt_UNAME" >&6; }
  4200. else
  4201. { $as_echo "$as_me:$LINENO: result: no" >&5
  4202. $as_echo "no" >&6; }
  4203. fi
  4204. if test "x$ac_pt_UNAME" = x; then
  4205. UNAME="No"
  4206. else
  4207. case $cross_compiling:$ac_tool_warned in
  4208. yes:)
  4209. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4210. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4211. ac_tool_warned=yes ;;
  4212. esac
  4213. UNAME=$ac_pt_UNAME
  4214. fi
  4215. else
  4216. UNAME="$ac_cv_path_UNAME"
  4217. fi
  4218. if test ! x"${UNAME}" = xNo; then
  4219. PBX_OSREV=$(${UNAME} -r)
  4220. fi
  4221. # cross-compile checks
  4222. if test "${cross_compiling}" = "yes";
  4223. then
  4224. if test -n "$ac_tool_prefix"; then
  4225. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4226. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4227. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4228. $as_echo_n "checking for $ac_word... " >&6; }
  4229. if test "${ac_cv_prog_CC+set}" = set; then
  4230. $as_echo_n "(cached) " >&6
  4231. else
  4232. if test -n "$CC"; then
  4233. ac_cv_prog_CC="$CC" # Let the user override the test.
  4234. else
  4235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4236. for as_dir in $PATH
  4237. do
  4238. IFS=$as_save_IFS
  4239. test -z "$as_dir" && as_dir=.
  4240. for ac_exec_ext in '' $ac_executable_extensions; do
  4241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4242. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4243. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4244. break 2
  4245. fi
  4246. done
  4247. done
  4248. IFS=$as_save_IFS
  4249. fi
  4250. fi
  4251. CC=$ac_cv_prog_CC
  4252. if test -n "$CC"; then
  4253. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4254. $as_echo "$CC" >&6; }
  4255. else
  4256. { $as_echo "$as_me:$LINENO: result: no" >&5
  4257. $as_echo "no" >&6; }
  4258. fi
  4259. fi
  4260. if test -z "$ac_cv_prog_CC"; then
  4261. ac_ct_CC=$CC
  4262. # Extract the first word of "gcc", so it can be a program name with args.
  4263. set dummy gcc; ac_word=$2
  4264. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4265. $as_echo_n "checking for $ac_word... " >&6; }
  4266. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4267. $as_echo_n "(cached) " >&6
  4268. else
  4269. if test -n "$ac_ct_CC"; then
  4270. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4271. else
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH
  4274. do
  4275. IFS=$as_save_IFS
  4276. test -z "$as_dir" && as_dir=.
  4277. for ac_exec_ext in '' $ac_executable_extensions; do
  4278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4279. ac_cv_prog_ac_ct_CC="gcc"
  4280. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4281. break 2
  4282. fi
  4283. done
  4284. done
  4285. IFS=$as_save_IFS
  4286. fi
  4287. fi
  4288. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4289. if test -n "$ac_ct_CC"; then
  4290. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4291. $as_echo "$ac_ct_CC" >&6; }
  4292. else
  4293. { $as_echo "$as_me:$LINENO: result: no" >&5
  4294. $as_echo "no" >&6; }
  4295. fi
  4296. if test "x$ac_ct_CC" = x; then
  4297. CC=":"
  4298. else
  4299. case $cross_compiling:$ac_tool_warned in
  4300. yes:)
  4301. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4303. ac_tool_warned=yes ;;
  4304. esac
  4305. CC=$ac_ct_CC
  4306. fi
  4307. else
  4308. CC="$ac_cv_prog_CC"
  4309. fi
  4310. if test -n "$ac_tool_prefix"; then
  4311. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4312. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4313. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4314. $as_echo_n "checking for $ac_word... " >&6; }
  4315. if test "${ac_cv_prog_CXX+set}" = set; then
  4316. $as_echo_n "(cached) " >&6
  4317. else
  4318. if test -n "$CXX"; then
  4319. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4320. else
  4321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4322. for as_dir in $PATH
  4323. do
  4324. IFS=$as_save_IFS
  4325. test -z "$as_dir" && as_dir=.
  4326. for ac_exec_ext in '' $ac_executable_extensions; do
  4327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4328. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4329. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4330. break 2
  4331. fi
  4332. done
  4333. done
  4334. IFS=$as_save_IFS
  4335. fi
  4336. fi
  4337. CXX=$ac_cv_prog_CXX
  4338. if test -n "$CXX"; then
  4339. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  4340. $as_echo "$CXX" >&6; }
  4341. else
  4342. { $as_echo "$as_me:$LINENO: result: no" >&5
  4343. $as_echo "no" >&6; }
  4344. fi
  4345. fi
  4346. if test -z "$ac_cv_prog_CXX"; then
  4347. ac_ct_CXX=$CXX
  4348. # Extract the first word of "g++", so it can be a program name with args.
  4349. set dummy g++; ac_word=$2
  4350. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4351. $as_echo_n "checking for $ac_word... " >&6; }
  4352. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. if test -n "$ac_ct_CXX"; then
  4356. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4357. else
  4358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4359. for as_dir in $PATH
  4360. do
  4361. IFS=$as_save_IFS
  4362. test -z "$as_dir" && as_dir=.
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4365. ac_cv_prog_ac_ct_CXX="g++"
  4366. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4367. break 2
  4368. fi
  4369. done
  4370. done
  4371. IFS=$as_save_IFS
  4372. fi
  4373. fi
  4374. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4375. if test -n "$ac_ct_CXX"; then
  4376. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4377. $as_echo "$ac_ct_CXX" >&6; }
  4378. else
  4379. { $as_echo "$as_me:$LINENO: result: no" >&5
  4380. $as_echo "no" >&6; }
  4381. fi
  4382. if test "x$ac_ct_CXX" = x; then
  4383. CXX=":"
  4384. else
  4385. case $cross_compiling:$ac_tool_warned in
  4386. yes:)
  4387. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4388. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4389. ac_tool_warned=yes ;;
  4390. esac
  4391. CXX=$ac_ct_CXX
  4392. fi
  4393. else
  4394. CXX="$ac_cv_prog_CXX"
  4395. fi
  4396. if test -n "$ac_tool_prefix"; then
  4397. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4398. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4399. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4400. $as_echo_n "checking for $ac_word... " >&6; }
  4401. if test "${ac_cv_prog_LD+set}" = set; then
  4402. $as_echo_n "(cached) " >&6
  4403. else
  4404. if test -n "$LD"; then
  4405. ac_cv_prog_LD="$LD" # Let the user override the test.
  4406. else
  4407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4408. for as_dir in $PATH
  4409. do
  4410. IFS=$as_save_IFS
  4411. test -z "$as_dir" && as_dir=.
  4412. for ac_exec_ext in '' $ac_executable_extensions; do
  4413. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4414. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4415. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4416. break 2
  4417. fi
  4418. done
  4419. done
  4420. IFS=$as_save_IFS
  4421. fi
  4422. fi
  4423. LD=$ac_cv_prog_LD
  4424. if test -n "$LD"; then
  4425. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4426. $as_echo "$LD" >&6; }
  4427. else
  4428. { $as_echo "$as_me:$LINENO: result: no" >&5
  4429. $as_echo "no" >&6; }
  4430. fi
  4431. fi
  4432. if test -z "$ac_cv_prog_LD"; then
  4433. ac_ct_LD=$LD
  4434. # Extract the first word of "ld", so it can be a program name with args.
  4435. set dummy ld; ac_word=$2
  4436. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4437. $as_echo_n "checking for $ac_word... " >&6; }
  4438. if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -n "$ac_ct_LD"; then
  4442. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4443. else
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_exec_ext in '' $ac_executable_extensions; do
  4450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4451. ac_cv_prog_ac_ct_LD="ld"
  4452. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4453. break 2
  4454. fi
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. fi
  4459. fi
  4460. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4461. if test -n "$ac_ct_LD"; then
  4462. { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
  4463. $as_echo "$ac_ct_LD" >&6; }
  4464. else
  4465. { $as_echo "$as_me:$LINENO: result: no" >&5
  4466. $as_echo "no" >&6; }
  4467. fi
  4468. if test "x$ac_ct_LD" = x; then
  4469. LD=":"
  4470. else
  4471. case $cross_compiling:$ac_tool_warned in
  4472. yes:)
  4473. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4474. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4475. ac_tool_warned=yes ;;
  4476. esac
  4477. LD=$ac_ct_LD
  4478. fi
  4479. else
  4480. LD="$ac_cv_prog_LD"
  4481. fi
  4482. if test -n "$ac_tool_prefix"; then
  4483. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4484. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4485. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4486. $as_echo_n "checking for $ac_word... " >&6; }
  4487. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. if test -n "$RANLIB"; then
  4491. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4492. else
  4493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4494. for as_dir in $PATH
  4495. do
  4496. IFS=$as_save_IFS
  4497. test -z "$as_dir" && as_dir=.
  4498. for ac_exec_ext in '' $ac_executable_extensions; do
  4499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4500. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4501. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4502. break 2
  4503. fi
  4504. done
  4505. done
  4506. IFS=$as_save_IFS
  4507. fi
  4508. fi
  4509. RANLIB=$ac_cv_prog_RANLIB
  4510. if test -n "$RANLIB"; then
  4511. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4512. $as_echo "$RANLIB" >&6; }
  4513. else
  4514. { $as_echo "$as_me:$LINENO: result: no" >&5
  4515. $as_echo "no" >&6; }
  4516. fi
  4517. fi
  4518. if test -z "$ac_cv_prog_RANLIB"; then
  4519. ac_ct_RANLIB=$RANLIB
  4520. # Extract the first word of "ranlib", so it can be a program name with args.
  4521. set dummy ranlib; ac_word=$2
  4522. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4523. $as_echo_n "checking for $ac_word... " >&6; }
  4524. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if test -n "$ac_ct_RANLIB"; then
  4528. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4529. else
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_exec_ext in '' $ac_executable_extensions; do
  4536. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4537. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4538. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4539. break 2
  4540. fi
  4541. done
  4542. done
  4543. IFS=$as_save_IFS
  4544. fi
  4545. fi
  4546. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4547. if test -n "$ac_ct_RANLIB"; then
  4548. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4549. $as_echo "$ac_ct_RANLIB" >&6; }
  4550. else
  4551. { $as_echo "$as_me:$LINENO: result: no" >&5
  4552. $as_echo "no" >&6; }
  4553. fi
  4554. if test "x$ac_ct_RANLIB" = x; then
  4555. RANLIB=":"
  4556. else
  4557. case $cross_compiling:$ac_tool_warned in
  4558. yes:)
  4559. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4560. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4561. ac_tool_warned=yes ;;
  4562. esac
  4563. RANLIB=$ac_ct_RANLIB
  4564. fi
  4565. else
  4566. RANLIB="$ac_cv_prog_RANLIB"
  4567. fi
  4568. fi
  4569. # Checks for programs.
  4570. ac_ext=c
  4571. ac_cpp='$CPP $CPPFLAGS'
  4572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4575. if test -n "$ac_tool_prefix"; then
  4576. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4577. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4578. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4579. $as_echo_n "checking for $ac_word... " >&6; }
  4580. if test "${ac_cv_prog_CC+set}" = set; then
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if test -n "$CC"; then
  4584. ac_cv_prog_CC="$CC" # Let the user override the test.
  4585. else
  4586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587. for as_dir in $PATH
  4588. do
  4589. IFS=$as_save_IFS
  4590. test -z "$as_dir" && as_dir=.
  4591. for ac_exec_ext in '' $ac_executable_extensions; do
  4592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4593. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4594. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595. break 2
  4596. fi
  4597. done
  4598. done
  4599. IFS=$as_save_IFS
  4600. fi
  4601. fi
  4602. CC=$ac_cv_prog_CC
  4603. if test -n "$CC"; then
  4604. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4605. $as_echo "$CC" >&6; }
  4606. else
  4607. { $as_echo "$as_me:$LINENO: result: no" >&5
  4608. $as_echo "no" >&6; }
  4609. fi
  4610. fi
  4611. if test -z "$ac_cv_prog_CC"; then
  4612. ac_ct_CC=$CC
  4613. # Extract the first word of "gcc", so it can be a program name with args.
  4614. set dummy gcc; ac_word=$2
  4615. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4616. $as_echo_n "checking for $ac_word... " >&6; }
  4617. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4618. $as_echo_n "(cached) " >&6
  4619. else
  4620. if test -n "$ac_ct_CC"; then
  4621. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4622. else
  4623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4624. for as_dir in $PATH
  4625. do
  4626. IFS=$as_save_IFS
  4627. test -z "$as_dir" && as_dir=.
  4628. for ac_exec_ext in '' $ac_executable_extensions; do
  4629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4630. ac_cv_prog_ac_ct_CC="gcc"
  4631. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4632. break 2
  4633. fi
  4634. done
  4635. done
  4636. IFS=$as_save_IFS
  4637. fi
  4638. fi
  4639. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4640. if test -n "$ac_ct_CC"; then
  4641. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4642. $as_echo "$ac_ct_CC" >&6; }
  4643. else
  4644. { $as_echo "$as_me:$LINENO: result: no" >&5
  4645. $as_echo "no" >&6; }
  4646. fi
  4647. if test "x$ac_ct_CC" = x; then
  4648. CC=""
  4649. else
  4650. case $cross_compiling:$ac_tool_warned in
  4651. yes:)
  4652. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4654. ac_tool_warned=yes ;;
  4655. esac
  4656. CC=$ac_ct_CC
  4657. fi
  4658. else
  4659. CC="$ac_cv_prog_CC"
  4660. fi
  4661. if test -z "$CC"; then
  4662. if test -n "$ac_tool_prefix"; then
  4663. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4664. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4665. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4666. $as_echo_n "checking for $ac_word... " >&6; }
  4667. if test "${ac_cv_prog_CC+set}" = set; then
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. if test -n "$CC"; then
  4671. ac_cv_prog_CC="$CC" # Let the user override the test.
  4672. else
  4673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4674. for as_dir in $PATH
  4675. do
  4676. IFS=$as_save_IFS
  4677. test -z "$as_dir" && as_dir=.
  4678. for ac_exec_ext in '' $ac_executable_extensions; do
  4679. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4680. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4681. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4682. break 2
  4683. fi
  4684. done
  4685. done
  4686. IFS=$as_save_IFS
  4687. fi
  4688. fi
  4689. CC=$ac_cv_prog_CC
  4690. if test -n "$CC"; then
  4691. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4692. $as_echo "$CC" >&6; }
  4693. else
  4694. { $as_echo "$as_me:$LINENO: result: no" >&5
  4695. $as_echo "no" >&6; }
  4696. fi
  4697. fi
  4698. fi
  4699. if test -z "$CC"; then
  4700. # Extract the first word of "cc", so it can be a program name with args.
  4701. set dummy cc; ac_word=$2
  4702. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4703. $as_echo_n "checking for $ac_word... " >&6; }
  4704. if test "${ac_cv_prog_CC+set}" = set; then
  4705. $as_echo_n "(cached) " >&6
  4706. else
  4707. if test -n "$CC"; then
  4708. ac_cv_prog_CC="$CC" # Let the user override the test.
  4709. else
  4710. ac_prog_rejected=no
  4711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4712. for as_dir in $PATH
  4713. do
  4714. IFS=$as_save_IFS
  4715. test -z "$as_dir" && as_dir=.
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4718. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4719. ac_prog_rejected=yes
  4720. continue
  4721. fi
  4722. ac_cv_prog_CC="cc"
  4723. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4724. break 2
  4725. fi
  4726. done
  4727. done
  4728. IFS=$as_save_IFS
  4729. if test $ac_prog_rejected = yes; then
  4730. # We found a bogon in the path, so make sure we never use it.
  4731. set dummy $ac_cv_prog_CC
  4732. shift
  4733. if test $# != 0; then
  4734. # We chose a different compiler from the bogus one.
  4735. # However, it has the same basename, so the bogon will be chosen
  4736. # first if we set CC to just the basename; use the full file name.
  4737. shift
  4738. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4739. fi
  4740. fi
  4741. fi
  4742. fi
  4743. CC=$ac_cv_prog_CC
  4744. if test -n "$CC"; then
  4745. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4746. $as_echo "$CC" >&6; }
  4747. else
  4748. { $as_echo "$as_me:$LINENO: result: no" >&5
  4749. $as_echo "no" >&6; }
  4750. fi
  4751. fi
  4752. if test -z "$CC"; then
  4753. if test -n "$ac_tool_prefix"; then
  4754. for ac_prog in cl.exe
  4755. do
  4756. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4757. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4758. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4759. $as_echo_n "checking for $ac_word... " >&6; }
  4760. if test "${ac_cv_prog_CC+set}" = set; then
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. if test -n "$CC"; then
  4764. ac_cv_prog_CC="$CC" # Let the user override the test.
  4765. else
  4766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4767. for as_dir in $PATH
  4768. do
  4769. IFS=$as_save_IFS
  4770. test -z "$as_dir" && as_dir=.
  4771. for ac_exec_ext in '' $ac_executable_extensions; do
  4772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4773. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4774. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4775. break 2
  4776. fi
  4777. done
  4778. done
  4779. IFS=$as_save_IFS
  4780. fi
  4781. fi
  4782. CC=$ac_cv_prog_CC
  4783. if test -n "$CC"; then
  4784. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4785. $as_echo "$CC" >&6; }
  4786. else
  4787. { $as_echo "$as_me:$LINENO: result: no" >&5
  4788. $as_echo "no" >&6; }
  4789. fi
  4790. test -n "$CC" && break
  4791. done
  4792. fi
  4793. if test -z "$CC"; then
  4794. ac_ct_CC=$CC
  4795. for ac_prog in cl.exe
  4796. do
  4797. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4798. set dummy $ac_prog; ac_word=$2
  4799. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4800. $as_echo_n "checking for $ac_word... " >&6; }
  4801. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. if test -n "$ac_ct_CC"; then
  4805. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4806. else
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in $PATH
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for ac_exec_ext in '' $ac_executable_extensions; do
  4813. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4814. ac_cv_prog_ac_ct_CC="$ac_prog"
  4815. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4816. break 2
  4817. fi
  4818. done
  4819. done
  4820. IFS=$as_save_IFS
  4821. fi
  4822. fi
  4823. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4824. if test -n "$ac_ct_CC"; then
  4825. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4826. $as_echo "$ac_ct_CC" >&6; }
  4827. else
  4828. { $as_echo "$as_me:$LINENO: result: no" >&5
  4829. $as_echo "no" >&6; }
  4830. fi
  4831. test -n "$ac_ct_CC" && break
  4832. done
  4833. if test "x$ac_ct_CC" = x; then
  4834. CC=""
  4835. else
  4836. case $cross_compiling:$ac_tool_warned in
  4837. yes:)
  4838. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4840. ac_tool_warned=yes ;;
  4841. esac
  4842. CC=$ac_ct_CC
  4843. fi
  4844. fi
  4845. fi
  4846. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4847. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4848. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4849. See \`config.log' for more details." >&5
  4850. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4851. See \`config.log' for more details." >&2;}
  4852. { (exit 1); exit 1; }; }; }
  4853. # Provide some information about the compiler.
  4854. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4855. set X $ac_compile
  4856. ac_compiler=$2
  4857. { (ac_try="$ac_compiler --version >&5"
  4858. case "(($ac_try" in
  4859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4860. *) ac_try_echo=$ac_try;;
  4861. esac
  4862. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4863. $as_echo "$ac_try_echo") >&5
  4864. (eval "$ac_compiler --version >&5") 2>&5
  4865. ac_status=$?
  4866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4867. (exit $ac_status); }
  4868. { (ac_try="$ac_compiler -v >&5"
  4869. case "(($ac_try" in
  4870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4871. *) ac_try_echo=$ac_try;;
  4872. esac
  4873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4874. $as_echo "$ac_try_echo") >&5
  4875. (eval "$ac_compiler -v >&5") 2>&5
  4876. ac_status=$?
  4877. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); }
  4879. { (ac_try="$ac_compiler -V >&5"
  4880. case "(($ac_try" in
  4881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4882. *) ac_try_echo=$ac_try;;
  4883. esac
  4884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4885. $as_echo "$ac_try_echo") >&5
  4886. (eval "$ac_compiler -V >&5") 2>&5
  4887. ac_status=$?
  4888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4889. (exit $ac_status); }
  4890. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4891. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4892. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. cat >conftest.$ac_ext <<_ACEOF
  4896. /* confdefs.h. */
  4897. _ACEOF
  4898. cat confdefs.h >>conftest.$ac_ext
  4899. cat >>conftest.$ac_ext <<_ACEOF
  4900. /* end confdefs.h. */
  4901. int
  4902. main ()
  4903. {
  4904. #ifndef __GNUC__
  4905. choke me
  4906. #endif
  4907. ;
  4908. return 0;
  4909. }
  4910. _ACEOF
  4911. rm -f conftest.$ac_objext
  4912. if { (ac_try="$ac_compile"
  4913. case "(($ac_try" in
  4914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4915. *) ac_try_echo=$ac_try;;
  4916. esac
  4917. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4918. $as_echo "$ac_try_echo") >&5
  4919. (eval "$ac_compile") 2>conftest.er1
  4920. ac_status=$?
  4921. grep -v '^ *+' conftest.er1 >conftest.err
  4922. rm -f conftest.er1
  4923. cat conftest.err >&5
  4924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4925. (exit $ac_status); } && {
  4926. test -z "$ac_c_werror_flag" ||
  4927. test ! -s conftest.err
  4928. } && test -s conftest.$ac_objext; then
  4929. ac_compiler_gnu=yes
  4930. else
  4931. $as_echo "$as_me: failed program was:" >&5
  4932. sed 's/^/| /' conftest.$ac_ext >&5
  4933. ac_compiler_gnu=no
  4934. fi
  4935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4936. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4937. fi
  4938. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4939. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4940. if test $ac_compiler_gnu = yes; then
  4941. GCC=yes
  4942. else
  4943. GCC=
  4944. fi
  4945. ac_test_CFLAGS=${CFLAGS+set}
  4946. ac_save_CFLAGS=$CFLAGS
  4947. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4948. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4949. if test "${ac_cv_prog_cc_g+set}" = set; then
  4950. $as_echo_n "(cached) " >&6
  4951. else
  4952. ac_save_c_werror_flag=$ac_c_werror_flag
  4953. ac_c_werror_flag=yes
  4954. ac_cv_prog_cc_g=no
  4955. CFLAGS="-g"
  4956. cat >conftest.$ac_ext <<_ACEOF
  4957. /* confdefs.h. */
  4958. _ACEOF
  4959. cat confdefs.h >>conftest.$ac_ext
  4960. cat >>conftest.$ac_ext <<_ACEOF
  4961. /* end confdefs.h. */
  4962. int
  4963. main ()
  4964. {
  4965. ;
  4966. return 0;
  4967. }
  4968. _ACEOF
  4969. rm -f conftest.$ac_objext
  4970. if { (ac_try="$ac_compile"
  4971. case "(($ac_try" in
  4972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4973. *) ac_try_echo=$ac_try;;
  4974. esac
  4975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4976. $as_echo "$ac_try_echo") >&5
  4977. (eval "$ac_compile") 2>conftest.er1
  4978. ac_status=$?
  4979. grep -v '^ *+' conftest.er1 >conftest.err
  4980. rm -f conftest.er1
  4981. cat conftest.err >&5
  4982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4983. (exit $ac_status); } && {
  4984. test -z "$ac_c_werror_flag" ||
  4985. test ! -s conftest.err
  4986. } && test -s conftest.$ac_objext; then
  4987. ac_cv_prog_cc_g=yes
  4988. else
  4989. $as_echo "$as_me: failed program was:" >&5
  4990. sed 's/^/| /' conftest.$ac_ext >&5
  4991. CFLAGS=""
  4992. cat >conftest.$ac_ext <<_ACEOF
  4993. /* confdefs.h. */
  4994. _ACEOF
  4995. cat confdefs.h >>conftest.$ac_ext
  4996. cat >>conftest.$ac_ext <<_ACEOF
  4997. /* end confdefs.h. */
  4998. int
  4999. main ()
  5000. {
  5001. ;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. rm -f conftest.$ac_objext
  5006. if { (ac_try="$ac_compile"
  5007. case "(($ac_try" in
  5008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5009. *) ac_try_echo=$ac_try;;
  5010. esac
  5011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5012. $as_echo "$ac_try_echo") >&5
  5013. (eval "$ac_compile") 2>conftest.er1
  5014. ac_status=$?
  5015. grep -v '^ *+' conftest.er1 >conftest.err
  5016. rm -f conftest.er1
  5017. cat conftest.err >&5
  5018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); } && {
  5020. test -z "$ac_c_werror_flag" ||
  5021. test ! -s conftest.err
  5022. } && test -s conftest.$ac_objext; then
  5023. :
  5024. else
  5025. $as_echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027. ac_c_werror_flag=$ac_save_c_werror_flag
  5028. CFLAGS="-g"
  5029. cat >conftest.$ac_ext <<_ACEOF
  5030. /* confdefs.h. */
  5031. _ACEOF
  5032. cat confdefs.h >>conftest.$ac_ext
  5033. cat >>conftest.$ac_ext <<_ACEOF
  5034. /* end confdefs.h. */
  5035. int
  5036. main ()
  5037. {
  5038. ;
  5039. return 0;
  5040. }
  5041. _ACEOF
  5042. rm -f conftest.$ac_objext
  5043. if { (ac_try="$ac_compile"
  5044. case "(($ac_try" in
  5045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5046. *) ac_try_echo=$ac_try;;
  5047. esac
  5048. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5049. $as_echo "$ac_try_echo") >&5
  5050. (eval "$ac_compile") 2>conftest.er1
  5051. ac_status=$?
  5052. grep -v '^ *+' conftest.er1 >conftest.err
  5053. rm -f conftest.er1
  5054. cat conftest.err >&5
  5055. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5056. (exit $ac_status); } && {
  5057. test -z "$ac_c_werror_flag" ||
  5058. test ! -s conftest.err
  5059. } && test -s conftest.$ac_objext; then
  5060. ac_cv_prog_cc_g=yes
  5061. else
  5062. $as_echo "$as_me: failed program was:" >&5
  5063. sed 's/^/| /' conftest.$ac_ext >&5
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5066. fi
  5067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5068. fi
  5069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5070. ac_c_werror_flag=$ac_save_c_werror_flag
  5071. fi
  5072. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5073. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5074. if test "$ac_test_CFLAGS" = set; then
  5075. CFLAGS=$ac_save_CFLAGS
  5076. elif test $ac_cv_prog_cc_g = yes; then
  5077. if test "$GCC" = yes; then
  5078. CFLAGS="-g -O2"
  5079. else
  5080. CFLAGS="-g"
  5081. fi
  5082. else
  5083. if test "$GCC" = yes; then
  5084. CFLAGS="-O2"
  5085. else
  5086. CFLAGS=
  5087. fi
  5088. fi
  5089. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5090. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5091. if test "${ac_cv_prog_cc_c89+set}" = set; then
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. ac_cv_prog_cc_c89=no
  5095. ac_save_CC=$CC
  5096. cat >conftest.$ac_ext <<_ACEOF
  5097. /* confdefs.h. */
  5098. _ACEOF
  5099. cat confdefs.h >>conftest.$ac_ext
  5100. cat >>conftest.$ac_ext <<_ACEOF
  5101. /* end confdefs.h. */
  5102. #include <stdarg.h>
  5103. #include <stdio.h>
  5104. #include <sys/types.h>
  5105. #include <sys/stat.h>
  5106. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5107. struct buf { int x; };
  5108. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5109. static char *e (p, i)
  5110. char **p;
  5111. int i;
  5112. {
  5113. return p[i];
  5114. }
  5115. static char *f (char * (*g) (char **, int), char **p, ...)
  5116. {
  5117. char *s;
  5118. va_list v;
  5119. va_start (v,p);
  5120. s = g (p, va_arg (v,int));
  5121. va_end (v);
  5122. return s;
  5123. }
  5124. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5125. function prototypes and stuff, but not '\xHH' hex character constants.
  5126. These don't provoke an error unfortunately, instead are silently treated
  5127. as 'x'. The following induces an error, until -std is added to get
  5128. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5129. array size at least. It's necessary to write '\x00'==0 to get something
  5130. that's true only with -std. */
  5131. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5132. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5133. inside strings and character constants. */
  5134. #define FOO(x) 'x'
  5135. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5136. int test (int i, double x);
  5137. struct s1 {int (*f) (int a);};
  5138. struct s2 {int (*f) (double a);};
  5139. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5140. int argc;
  5141. char **argv;
  5142. int
  5143. main ()
  5144. {
  5145. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5146. ;
  5147. return 0;
  5148. }
  5149. _ACEOF
  5150. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5151. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5152. do
  5153. CC="$ac_save_CC $ac_arg"
  5154. rm -f conftest.$ac_objext
  5155. if { (ac_try="$ac_compile"
  5156. case "(($ac_try" in
  5157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5158. *) ac_try_echo=$ac_try;;
  5159. esac
  5160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5161. $as_echo "$ac_try_echo") >&5
  5162. (eval "$ac_compile") 2>conftest.er1
  5163. ac_status=$?
  5164. grep -v '^ *+' conftest.er1 >conftest.err
  5165. rm -f conftest.er1
  5166. cat conftest.err >&5
  5167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5168. (exit $ac_status); } && {
  5169. test -z "$ac_c_werror_flag" ||
  5170. test ! -s conftest.err
  5171. } && test -s conftest.$ac_objext; then
  5172. ac_cv_prog_cc_c89=$ac_arg
  5173. else
  5174. $as_echo "$as_me: failed program was:" >&5
  5175. sed 's/^/| /' conftest.$ac_ext >&5
  5176. fi
  5177. rm -f core conftest.err conftest.$ac_objext
  5178. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5179. done
  5180. rm -f conftest.$ac_ext
  5181. CC=$ac_save_CC
  5182. fi
  5183. # AC_CACHE_VAL
  5184. case "x$ac_cv_prog_cc_c89" in
  5185. x)
  5186. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5187. $as_echo "none needed" >&6; } ;;
  5188. xno)
  5189. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5190. $as_echo "unsupported" >&6; } ;;
  5191. *)
  5192. CC="$CC $ac_cv_prog_cc_c89"
  5193. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5194. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5195. esac
  5196. ac_ext=c
  5197. ac_cpp='$CPP $CPPFLAGS'
  5198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5201. ac_ext=cpp
  5202. ac_cpp='$CXXCPP $CPPFLAGS'
  5203. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5204. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5205. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5206. if test -z "$CXX"; then
  5207. if test -n "$CCC"; then
  5208. CXX=$CCC
  5209. else
  5210. if test -n "$ac_tool_prefix"; then
  5211. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5212. do
  5213. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5214. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5215. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5216. $as_echo_n "checking for $ac_word... " >&6; }
  5217. if test "${ac_cv_prog_CXX+set}" = set; then
  5218. $as_echo_n "(cached) " >&6
  5219. else
  5220. if test -n "$CXX"; then
  5221. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5222. else
  5223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5224. for as_dir in $PATH
  5225. do
  5226. IFS=$as_save_IFS
  5227. test -z "$as_dir" && as_dir=.
  5228. for ac_exec_ext in '' $ac_executable_extensions; do
  5229. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5230. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5231. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5232. break 2
  5233. fi
  5234. done
  5235. done
  5236. IFS=$as_save_IFS
  5237. fi
  5238. fi
  5239. CXX=$ac_cv_prog_CXX
  5240. if test -n "$CXX"; then
  5241. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  5242. $as_echo "$CXX" >&6; }
  5243. else
  5244. { $as_echo "$as_me:$LINENO: result: no" >&5
  5245. $as_echo "no" >&6; }
  5246. fi
  5247. test -n "$CXX" && break
  5248. done
  5249. fi
  5250. if test -z "$CXX"; then
  5251. ac_ct_CXX=$CXX
  5252. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5253. do
  5254. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5255. set dummy $ac_prog; ac_word=$2
  5256. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5257. $as_echo_n "checking for $ac_word... " >&6; }
  5258. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. if test -n "$ac_ct_CXX"; then
  5262. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5263. else
  5264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5265. for as_dir in $PATH
  5266. do
  5267. IFS=$as_save_IFS
  5268. test -z "$as_dir" && as_dir=.
  5269. for ac_exec_ext in '' $ac_executable_extensions; do
  5270. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5271. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5272. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5273. break 2
  5274. fi
  5275. done
  5276. done
  5277. IFS=$as_save_IFS
  5278. fi
  5279. fi
  5280. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5281. if test -n "$ac_ct_CXX"; then
  5282. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5283. $as_echo "$ac_ct_CXX" >&6; }
  5284. else
  5285. { $as_echo "$as_me:$LINENO: result: no" >&5
  5286. $as_echo "no" >&6; }
  5287. fi
  5288. test -n "$ac_ct_CXX" && break
  5289. done
  5290. if test "x$ac_ct_CXX" = x; then
  5291. CXX="g++"
  5292. else
  5293. case $cross_compiling:$ac_tool_warned in
  5294. yes:)
  5295. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5296. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5297. ac_tool_warned=yes ;;
  5298. esac
  5299. CXX=$ac_ct_CXX
  5300. fi
  5301. fi
  5302. fi
  5303. fi
  5304. # Provide some information about the compiler.
  5305. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  5306. set X $ac_compile
  5307. ac_compiler=$2
  5308. { (ac_try="$ac_compiler --version >&5"
  5309. case "(($ac_try" in
  5310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5311. *) ac_try_echo=$ac_try;;
  5312. esac
  5313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5314. $as_echo "$ac_try_echo") >&5
  5315. (eval "$ac_compiler --version >&5") 2>&5
  5316. ac_status=$?
  5317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5318. (exit $ac_status); }
  5319. { (ac_try="$ac_compiler -v >&5"
  5320. case "(($ac_try" in
  5321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5322. *) ac_try_echo=$ac_try;;
  5323. esac
  5324. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5325. $as_echo "$ac_try_echo") >&5
  5326. (eval "$ac_compiler -v >&5") 2>&5
  5327. ac_status=$?
  5328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5329. (exit $ac_status); }
  5330. { (ac_try="$ac_compiler -V >&5"
  5331. case "(($ac_try" in
  5332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5333. *) ac_try_echo=$ac_try;;
  5334. esac
  5335. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5336. $as_echo "$ac_try_echo") >&5
  5337. (eval "$ac_compiler -V >&5") 2>&5
  5338. ac_status=$?
  5339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5340. (exit $ac_status); }
  5341. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5342. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5343. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. cat >conftest.$ac_ext <<_ACEOF
  5347. /* confdefs.h. */
  5348. _ACEOF
  5349. cat confdefs.h >>conftest.$ac_ext
  5350. cat >>conftest.$ac_ext <<_ACEOF
  5351. /* end confdefs.h. */
  5352. int
  5353. main ()
  5354. {
  5355. #ifndef __GNUC__
  5356. choke me
  5357. #endif
  5358. ;
  5359. return 0;
  5360. }
  5361. _ACEOF
  5362. rm -f conftest.$ac_objext
  5363. if { (ac_try="$ac_compile"
  5364. case "(($ac_try" in
  5365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5366. *) ac_try_echo=$ac_try;;
  5367. esac
  5368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5369. $as_echo "$ac_try_echo") >&5
  5370. (eval "$ac_compile") 2>conftest.er1
  5371. ac_status=$?
  5372. grep -v '^ *+' conftest.er1 >conftest.err
  5373. rm -f conftest.er1
  5374. cat conftest.err >&5
  5375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); } && {
  5377. test -z "$ac_cxx_werror_flag" ||
  5378. test ! -s conftest.err
  5379. } && test -s conftest.$ac_objext; then
  5380. ac_compiler_gnu=yes
  5381. else
  5382. $as_echo "$as_me: failed program was:" >&5
  5383. sed 's/^/| /' conftest.$ac_ext >&5
  5384. ac_compiler_gnu=no
  5385. fi
  5386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5387. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5388. fi
  5389. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5390. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5391. if test $ac_compiler_gnu = yes; then
  5392. GXX=yes
  5393. else
  5394. GXX=
  5395. fi
  5396. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5397. ac_save_CXXFLAGS=$CXXFLAGS
  5398. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5399. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5400. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5401. $as_echo_n "(cached) " >&6
  5402. else
  5403. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5404. ac_cxx_werror_flag=yes
  5405. ac_cv_prog_cxx_g=no
  5406. CXXFLAGS="-g"
  5407. cat >conftest.$ac_ext <<_ACEOF
  5408. /* confdefs.h. */
  5409. _ACEOF
  5410. cat confdefs.h >>conftest.$ac_ext
  5411. cat >>conftest.$ac_ext <<_ACEOF
  5412. /* end confdefs.h. */
  5413. int
  5414. main ()
  5415. {
  5416. ;
  5417. return 0;
  5418. }
  5419. _ACEOF
  5420. rm -f conftest.$ac_objext
  5421. if { (ac_try="$ac_compile"
  5422. case "(($ac_try" in
  5423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5424. *) ac_try_echo=$ac_try;;
  5425. esac
  5426. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5427. $as_echo "$ac_try_echo") >&5
  5428. (eval "$ac_compile") 2>conftest.er1
  5429. ac_status=$?
  5430. grep -v '^ *+' conftest.er1 >conftest.err
  5431. rm -f conftest.er1
  5432. cat conftest.err >&5
  5433. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5434. (exit $ac_status); } && {
  5435. test -z "$ac_cxx_werror_flag" ||
  5436. test ! -s conftest.err
  5437. } && test -s conftest.$ac_objext; then
  5438. ac_cv_prog_cxx_g=yes
  5439. else
  5440. $as_echo "$as_me: failed program was:" >&5
  5441. sed 's/^/| /' conftest.$ac_ext >&5
  5442. CXXFLAGS=""
  5443. cat >conftest.$ac_ext <<_ACEOF
  5444. /* confdefs.h. */
  5445. _ACEOF
  5446. cat confdefs.h >>conftest.$ac_ext
  5447. cat >>conftest.$ac_ext <<_ACEOF
  5448. /* end confdefs.h. */
  5449. int
  5450. main ()
  5451. {
  5452. ;
  5453. return 0;
  5454. }
  5455. _ACEOF
  5456. rm -f conftest.$ac_objext
  5457. if { (ac_try="$ac_compile"
  5458. case "(($ac_try" in
  5459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5460. *) ac_try_echo=$ac_try;;
  5461. esac
  5462. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5463. $as_echo "$ac_try_echo") >&5
  5464. (eval "$ac_compile") 2>conftest.er1
  5465. ac_status=$?
  5466. grep -v '^ *+' conftest.er1 >conftest.err
  5467. rm -f conftest.er1
  5468. cat conftest.err >&5
  5469. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5470. (exit $ac_status); } && {
  5471. test -z "$ac_cxx_werror_flag" ||
  5472. test ! -s conftest.err
  5473. } && test -s conftest.$ac_objext; then
  5474. :
  5475. else
  5476. $as_echo "$as_me: failed program was:" >&5
  5477. sed 's/^/| /' conftest.$ac_ext >&5
  5478. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5479. CXXFLAGS="-g"
  5480. cat >conftest.$ac_ext <<_ACEOF
  5481. /* confdefs.h. */
  5482. _ACEOF
  5483. cat confdefs.h >>conftest.$ac_ext
  5484. cat >>conftest.$ac_ext <<_ACEOF
  5485. /* end confdefs.h. */
  5486. int
  5487. main ()
  5488. {
  5489. ;
  5490. return 0;
  5491. }
  5492. _ACEOF
  5493. rm -f conftest.$ac_objext
  5494. if { (ac_try="$ac_compile"
  5495. case "(($ac_try" in
  5496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5497. *) ac_try_echo=$ac_try;;
  5498. esac
  5499. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5500. $as_echo "$ac_try_echo") >&5
  5501. (eval "$ac_compile") 2>conftest.er1
  5502. ac_status=$?
  5503. grep -v '^ *+' conftest.er1 >conftest.err
  5504. rm -f conftest.er1
  5505. cat conftest.err >&5
  5506. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5507. (exit $ac_status); } && {
  5508. test -z "$ac_cxx_werror_flag" ||
  5509. test ! -s conftest.err
  5510. } && test -s conftest.$ac_objext; then
  5511. ac_cv_prog_cxx_g=yes
  5512. else
  5513. $as_echo "$as_me: failed program was:" >&5
  5514. sed 's/^/| /' conftest.$ac_ext >&5
  5515. fi
  5516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5517. fi
  5518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5519. fi
  5520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5521. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5522. fi
  5523. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5524. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5525. if test "$ac_test_CXXFLAGS" = set; then
  5526. CXXFLAGS=$ac_save_CXXFLAGS
  5527. elif test $ac_cv_prog_cxx_g = yes; then
  5528. if test "$GXX" = yes; then
  5529. CXXFLAGS="-g -O2"
  5530. else
  5531. CXXFLAGS="-g"
  5532. fi
  5533. else
  5534. if test "$GXX" = yes; then
  5535. CXXFLAGS="-O2"
  5536. else
  5537. CXXFLAGS=
  5538. fi
  5539. fi
  5540. ac_ext=c
  5541. ac_cpp='$CPP $CPPFLAGS'
  5542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5545. ac_ext=c
  5546. ac_cpp='$CPP $CPPFLAGS'
  5547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5550. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5551. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5552. # On Suns, sometimes $CPP names a directory.
  5553. if test -n "$CPP" && test -d "$CPP"; then
  5554. CPP=
  5555. fi
  5556. if test -z "$CPP"; then
  5557. if test "${ac_cv_prog_CPP+set}" = set; then
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. # Double quotes because CPP needs to be expanded
  5561. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5562. do
  5563. ac_preproc_ok=false
  5564. for ac_c_preproc_warn_flag in '' yes
  5565. do
  5566. # Use a header file that comes with gcc, so configuring glibc
  5567. # with a fresh cross-compiler works.
  5568. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5569. # <limits.h> exists even on freestanding compilers.
  5570. # On the NeXT, cc -E runs the code through the compiler's parser,
  5571. # not just through cpp. "Syntax error" is here to catch this case.
  5572. cat >conftest.$ac_ext <<_ACEOF
  5573. /* confdefs.h. */
  5574. _ACEOF
  5575. cat confdefs.h >>conftest.$ac_ext
  5576. cat >>conftest.$ac_ext <<_ACEOF
  5577. /* end confdefs.h. */
  5578. #ifdef __STDC__
  5579. # include <limits.h>
  5580. #else
  5581. # include <assert.h>
  5582. #endif
  5583. Syntax error
  5584. _ACEOF
  5585. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5586. case "(($ac_try" in
  5587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5588. *) ac_try_echo=$ac_try;;
  5589. esac
  5590. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5591. $as_echo "$ac_try_echo") >&5
  5592. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5593. ac_status=$?
  5594. grep -v '^ *+' conftest.er1 >conftest.err
  5595. rm -f conftest.er1
  5596. cat conftest.err >&5
  5597. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5598. (exit $ac_status); } >/dev/null && {
  5599. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5600. test ! -s conftest.err
  5601. }; then
  5602. :
  5603. else
  5604. $as_echo "$as_me: failed program was:" >&5
  5605. sed 's/^/| /' conftest.$ac_ext >&5
  5606. # Broken: fails on valid input.
  5607. continue
  5608. fi
  5609. rm -f conftest.err conftest.$ac_ext
  5610. # OK, works on sane cases. Now check whether nonexistent headers
  5611. # can be detected and how.
  5612. cat >conftest.$ac_ext <<_ACEOF
  5613. /* confdefs.h. */
  5614. _ACEOF
  5615. cat confdefs.h >>conftest.$ac_ext
  5616. cat >>conftest.$ac_ext <<_ACEOF
  5617. /* end confdefs.h. */
  5618. #include <ac_nonexistent.h>
  5619. _ACEOF
  5620. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5621. case "(($ac_try" in
  5622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5623. *) ac_try_echo=$ac_try;;
  5624. esac
  5625. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5626. $as_echo "$ac_try_echo") >&5
  5627. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5628. ac_status=$?
  5629. grep -v '^ *+' conftest.er1 >conftest.err
  5630. rm -f conftest.er1
  5631. cat conftest.err >&5
  5632. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5633. (exit $ac_status); } >/dev/null && {
  5634. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5635. test ! -s conftest.err
  5636. }; then
  5637. # Broken: success on invalid input.
  5638. continue
  5639. else
  5640. $as_echo "$as_me: failed program was:" >&5
  5641. sed 's/^/| /' conftest.$ac_ext >&5
  5642. # Passes both tests.
  5643. ac_preproc_ok=:
  5644. break
  5645. fi
  5646. rm -f conftest.err conftest.$ac_ext
  5647. done
  5648. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5649. rm -f conftest.err conftest.$ac_ext
  5650. if $ac_preproc_ok; then
  5651. break
  5652. fi
  5653. done
  5654. ac_cv_prog_CPP=$CPP
  5655. fi
  5656. CPP=$ac_cv_prog_CPP
  5657. else
  5658. ac_cv_prog_CPP=$CPP
  5659. fi
  5660. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5661. $as_echo "$CPP" >&6; }
  5662. ac_preproc_ok=false
  5663. for ac_c_preproc_warn_flag in '' yes
  5664. do
  5665. # Use a header file that comes with gcc, so configuring glibc
  5666. # with a fresh cross-compiler works.
  5667. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5668. # <limits.h> exists even on freestanding compilers.
  5669. # On the NeXT, cc -E runs the code through the compiler's parser,
  5670. # not just through cpp. "Syntax error" is here to catch this case.
  5671. cat >conftest.$ac_ext <<_ACEOF
  5672. /* confdefs.h. */
  5673. _ACEOF
  5674. cat confdefs.h >>conftest.$ac_ext
  5675. cat >>conftest.$ac_ext <<_ACEOF
  5676. /* end confdefs.h. */
  5677. #ifdef __STDC__
  5678. # include <limits.h>
  5679. #else
  5680. # include <assert.h>
  5681. #endif
  5682. Syntax error
  5683. _ACEOF
  5684. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5685. case "(($ac_try" in
  5686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5687. *) ac_try_echo=$ac_try;;
  5688. esac
  5689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5690. $as_echo "$ac_try_echo") >&5
  5691. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5692. ac_status=$?
  5693. grep -v '^ *+' conftest.er1 >conftest.err
  5694. rm -f conftest.er1
  5695. cat conftest.err >&5
  5696. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5697. (exit $ac_status); } >/dev/null && {
  5698. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5699. test ! -s conftest.err
  5700. }; then
  5701. :
  5702. else
  5703. $as_echo "$as_me: failed program was:" >&5
  5704. sed 's/^/| /' conftest.$ac_ext >&5
  5705. # Broken: fails on valid input.
  5706. continue
  5707. fi
  5708. rm -f conftest.err conftest.$ac_ext
  5709. # OK, works on sane cases. Now check whether nonexistent headers
  5710. # can be detected and how.
  5711. cat >conftest.$ac_ext <<_ACEOF
  5712. /* confdefs.h. */
  5713. _ACEOF
  5714. cat confdefs.h >>conftest.$ac_ext
  5715. cat >>conftest.$ac_ext <<_ACEOF
  5716. /* end confdefs.h. */
  5717. #include <ac_nonexistent.h>
  5718. _ACEOF
  5719. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5720. case "(($ac_try" in
  5721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5722. *) ac_try_echo=$ac_try;;
  5723. esac
  5724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5725. $as_echo "$ac_try_echo") >&5
  5726. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5727. ac_status=$?
  5728. grep -v '^ *+' conftest.er1 >conftest.err
  5729. rm -f conftest.er1
  5730. cat conftest.err >&5
  5731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5732. (exit $ac_status); } >/dev/null && {
  5733. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5734. test ! -s conftest.err
  5735. }; then
  5736. # Broken: success on invalid input.
  5737. continue
  5738. else
  5739. $as_echo "$as_me: failed program was:" >&5
  5740. sed 's/^/| /' conftest.$ac_ext >&5
  5741. # Passes both tests.
  5742. ac_preproc_ok=:
  5743. break
  5744. fi
  5745. rm -f conftest.err conftest.$ac_ext
  5746. done
  5747. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5748. rm -f conftest.err conftest.$ac_ext
  5749. if $ac_preproc_ok; then
  5750. :
  5751. else
  5752. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5753. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5754. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5755. See \`config.log' for more details." >&5
  5756. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5757. See \`config.log' for more details." >&2;}
  5758. { (exit 1); exit 1; }; }; }
  5759. fi
  5760. ac_ext=c
  5761. ac_cpp='$CPP $CPPFLAGS'
  5762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5765. ac_ext=cpp
  5766. ac_cpp='$CXXCPP $CPPFLAGS'
  5767. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5768. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5769. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5770. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5771. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5772. if test -z "$CXXCPP"; then
  5773. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. # Double quotes because CXXCPP needs to be expanded
  5777. for CXXCPP in "$CXX -E" "/lib/cpp"
  5778. do
  5779. ac_preproc_ok=false
  5780. for ac_cxx_preproc_warn_flag in '' yes
  5781. do
  5782. # Use a header file that comes with gcc, so configuring glibc
  5783. # with a fresh cross-compiler works.
  5784. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5785. # <limits.h> exists even on freestanding compilers.
  5786. # On the NeXT, cc -E runs the code through the compiler's parser,
  5787. # not just through cpp. "Syntax error" is here to catch this case.
  5788. cat >conftest.$ac_ext <<_ACEOF
  5789. /* confdefs.h. */
  5790. _ACEOF
  5791. cat confdefs.h >>conftest.$ac_ext
  5792. cat >>conftest.$ac_ext <<_ACEOF
  5793. /* end confdefs.h. */
  5794. #ifdef __STDC__
  5795. # include <limits.h>
  5796. #else
  5797. # include <assert.h>
  5798. #endif
  5799. Syntax error
  5800. _ACEOF
  5801. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5802. case "(($ac_try" in
  5803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5804. *) ac_try_echo=$ac_try;;
  5805. esac
  5806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5807. $as_echo "$ac_try_echo") >&5
  5808. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5809. ac_status=$?
  5810. grep -v '^ *+' conftest.er1 >conftest.err
  5811. rm -f conftest.er1
  5812. cat conftest.err >&5
  5813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5814. (exit $ac_status); } >/dev/null && {
  5815. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5816. test ! -s conftest.err
  5817. }; then
  5818. :
  5819. else
  5820. $as_echo "$as_me: failed program was:" >&5
  5821. sed 's/^/| /' conftest.$ac_ext >&5
  5822. # Broken: fails on valid input.
  5823. continue
  5824. fi
  5825. rm -f conftest.err conftest.$ac_ext
  5826. # OK, works on sane cases. Now check whether nonexistent headers
  5827. # can be detected and how.
  5828. cat >conftest.$ac_ext <<_ACEOF
  5829. /* confdefs.h. */
  5830. _ACEOF
  5831. cat confdefs.h >>conftest.$ac_ext
  5832. cat >>conftest.$ac_ext <<_ACEOF
  5833. /* end confdefs.h. */
  5834. #include <ac_nonexistent.h>
  5835. _ACEOF
  5836. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5837. case "(($ac_try" in
  5838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5839. *) ac_try_echo=$ac_try;;
  5840. esac
  5841. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5842. $as_echo "$ac_try_echo") >&5
  5843. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5844. ac_status=$?
  5845. grep -v '^ *+' conftest.er1 >conftest.err
  5846. rm -f conftest.er1
  5847. cat conftest.err >&5
  5848. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. (exit $ac_status); } >/dev/null && {
  5850. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5851. test ! -s conftest.err
  5852. }; then
  5853. # Broken: success on invalid input.
  5854. continue
  5855. else
  5856. $as_echo "$as_me: failed program was:" >&5
  5857. sed 's/^/| /' conftest.$ac_ext >&5
  5858. # Passes both tests.
  5859. ac_preproc_ok=:
  5860. break
  5861. fi
  5862. rm -f conftest.err conftest.$ac_ext
  5863. done
  5864. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5865. rm -f conftest.err conftest.$ac_ext
  5866. if $ac_preproc_ok; then
  5867. break
  5868. fi
  5869. done
  5870. ac_cv_prog_CXXCPP=$CXXCPP
  5871. fi
  5872. CXXCPP=$ac_cv_prog_CXXCPP
  5873. else
  5874. ac_cv_prog_CXXCPP=$CXXCPP
  5875. fi
  5876. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5877. $as_echo "$CXXCPP" >&6; }
  5878. ac_preproc_ok=false
  5879. for ac_cxx_preproc_warn_flag in '' yes
  5880. do
  5881. # Use a header file that comes with gcc, so configuring glibc
  5882. # with a fresh cross-compiler works.
  5883. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5884. # <limits.h> exists even on freestanding compilers.
  5885. # On the NeXT, cc -E runs the code through the compiler's parser,
  5886. # not just through cpp. "Syntax error" is here to catch this case.
  5887. cat >conftest.$ac_ext <<_ACEOF
  5888. /* confdefs.h. */
  5889. _ACEOF
  5890. cat confdefs.h >>conftest.$ac_ext
  5891. cat >>conftest.$ac_ext <<_ACEOF
  5892. /* end confdefs.h. */
  5893. #ifdef __STDC__
  5894. # include <limits.h>
  5895. #else
  5896. # include <assert.h>
  5897. #endif
  5898. Syntax error
  5899. _ACEOF
  5900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5901. case "(($ac_try" in
  5902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5903. *) ac_try_echo=$ac_try;;
  5904. esac
  5905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5906. $as_echo "$ac_try_echo") >&5
  5907. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5908. ac_status=$?
  5909. grep -v '^ *+' conftest.er1 >conftest.err
  5910. rm -f conftest.er1
  5911. cat conftest.err >&5
  5912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913. (exit $ac_status); } >/dev/null && {
  5914. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5915. test ! -s conftest.err
  5916. }; then
  5917. :
  5918. else
  5919. $as_echo "$as_me: failed program was:" >&5
  5920. sed 's/^/| /' conftest.$ac_ext >&5
  5921. # Broken: fails on valid input.
  5922. continue
  5923. fi
  5924. rm -f conftest.err conftest.$ac_ext
  5925. # OK, works on sane cases. Now check whether nonexistent headers
  5926. # can be detected and how.
  5927. cat >conftest.$ac_ext <<_ACEOF
  5928. /* confdefs.h. */
  5929. _ACEOF
  5930. cat confdefs.h >>conftest.$ac_ext
  5931. cat >>conftest.$ac_ext <<_ACEOF
  5932. /* end confdefs.h. */
  5933. #include <ac_nonexistent.h>
  5934. _ACEOF
  5935. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5936. case "(($ac_try" in
  5937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5938. *) ac_try_echo=$ac_try;;
  5939. esac
  5940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5941. $as_echo "$ac_try_echo") >&5
  5942. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5943. ac_status=$?
  5944. grep -v '^ *+' conftest.er1 >conftest.err
  5945. rm -f conftest.er1
  5946. cat conftest.err >&5
  5947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5948. (exit $ac_status); } >/dev/null && {
  5949. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5950. test ! -s conftest.err
  5951. }; then
  5952. # Broken: success on invalid input.
  5953. continue
  5954. else
  5955. $as_echo "$as_me: failed program was:" >&5
  5956. sed 's/^/| /' conftest.$ac_ext >&5
  5957. # Passes both tests.
  5958. ac_preproc_ok=:
  5959. break
  5960. fi
  5961. rm -f conftest.err conftest.$ac_ext
  5962. done
  5963. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5964. rm -f conftest.err conftest.$ac_ext
  5965. if $ac_preproc_ok; then
  5966. :
  5967. else
  5968. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5970. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5971. See \`config.log' for more details." >&5
  5972. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5973. See \`config.log' for more details." >&2;}
  5974. { (exit 1); exit 1; }; }; }
  5975. fi
  5976. ac_ext=c
  5977. ac_cpp='$CPP $CPPFLAGS'
  5978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5981. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5982. # the developers regenerating the configure script don't have to install libtool.
  5983. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5984. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5985. if test "${ac_cv_path_SED+set}" = set; then
  5986. $as_echo_n "(cached) " >&6
  5987. else
  5988. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5989. for ac_i in 1 2 3 4 5 6 7; do
  5990. ac_script="$ac_script$as_nl$ac_script"
  5991. done
  5992. echo "$ac_script" | sed 99q >conftest.sed
  5993. $as_unset ac_script || ac_script=
  5994. if test -z "$SED"; then
  5995. ac_path_SED_found=false
  5996. # Loop through the user's path and test for each of PROGNAME-LIST
  5997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5998. for as_dir in $PATH
  5999. do
  6000. IFS=$as_save_IFS
  6001. test -z "$as_dir" && as_dir=.
  6002. for ac_prog in sed gsed; do
  6003. for ac_exec_ext in '' $ac_executable_extensions; do
  6004. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6005. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  6006. # Check for GNU ac_path_SED and select it if it is found.
  6007. # Check for GNU $ac_path_SED
  6008. case `"$ac_path_SED" --version 2>&1` in
  6009. *GNU*)
  6010. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6011. *)
  6012. ac_count=0
  6013. $as_echo_n 0123456789 >"conftest.in"
  6014. while :
  6015. do
  6016. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6017. mv "conftest.tmp" "conftest.in"
  6018. cp "conftest.in" "conftest.nl"
  6019. $as_echo '' >> "conftest.nl"
  6020. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6021. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6022. ac_count=`expr $ac_count + 1`
  6023. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6024. # Best one so far, save it but keep looking for a better one
  6025. ac_cv_path_SED="$ac_path_SED"
  6026. ac_path_SED_max=$ac_count
  6027. fi
  6028. # 10*(2^10) chars as input seems more than enough
  6029. test $ac_count -gt 10 && break
  6030. done
  6031. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6032. esac
  6033. $ac_path_SED_found && break 3
  6034. done
  6035. done
  6036. done
  6037. IFS=$as_save_IFS
  6038. if test -z "$ac_cv_path_SED"; then
  6039. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  6040. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  6041. { (exit 1); exit 1; }; }
  6042. fi
  6043. else
  6044. ac_cv_path_SED=$SED
  6045. fi
  6046. fi
  6047. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  6048. $as_echo "$ac_cv_path_SED" >&6; }
  6049. SED="$ac_cv_path_SED"
  6050. rm -f conftest.sed
  6051. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  6052. $as_echo_n "checking for egrep... " >&6; }
  6053. if test "${ac_cv_prog_egrep+set}" = set; then
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  6057. then ac_cv_prog_egrep='grep -E'
  6058. else ac_cv_prog_egrep='egrep'
  6059. fi
  6060. fi
  6061. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  6062. $as_echo "$ac_cv_prog_egrep" >&6; }
  6063. EGREP=$ac_cv_prog_egrep
  6064. # Check whether --with-gnu-ld was given.
  6065. if test "${with_gnu_ld+set}" = set; then
  6066. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6067. else
  6068. with_gnu_ld=no
  6069. fi
  6070. ac_prog=ld
  6071. if test "$GCC" = yes; then
  6072. # Check if gcc -print-prog-name=ld gives a path.
  6073. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  6074. $as_echo_n "checking for ld used by $CC... " >&6; }
  6075. case $host in
  6076. *-*-mingw*)
  6077. # gcc leaves a trailing carriage return which upsets mingw
  6078. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6079. *)
  6080. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6081. esac
  6082. case $ac_prog in
  6083. # Accept absolute paths.
  6084. [\\/]* | ?:[\\/]*)
  6085. re_direlt='/[^/][^/]*/\.\./'
  6086. # Canonicalize the pathname of ld
  6087. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  6088. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6089. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  6090. done
  6091. test -z "$LD" && LD="$ac_prog"
  6092. ;;
  6093. "")
  6094. # If it fails, then pretend we aren't using GCC.
  6095. ac_prog=ld
  6096. ;;
  6097. *)
  6098. # If it is relative, then search for the first ld in PATH.
  6099. with_gnu_ld=unknown
  6100. ;;
  6101. esac
  6102. elif test "$with_gnu_ld" = yes; then
  6103. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  6104. $as_echo_n "checking for GNU ld... " >&6; }
  6105. else
  6106. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6107. $as_echo_n "checking for non-GNU ld... " >&6; }
  6108. fi
  6109. if test "${lt_cv_path_LD+set}" = set; then
  6110. $as_echo_n "(cached) " >&6
  6111. else
  6112. if test -z "$LD"; then
  6113. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6114. for ac_dir in $PATH; do
  6115. IFS="$lt_save_ifs"
  6116. test -z "$ac_dir" && ac_dir=.
  6117. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6118. lt_cv_path_LD="$ac_dir/$ac_prog"
  6119. # Check to see if the program is GNU ld. I'd rather use --version,
  6120. # but apparently some variants of GNU ld only accept -v.
  6121. # Break only if it was the GNU/non-GNU ld that we prefer.
  6122. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6123. *GNU* | *'with BFD'*)
  6124. test "$with_gnu_ld" != no && break
  6125. ;;
  6126. *)
  6127. test "$with_gnu_ld" != yes && break
  6128. ;;
  6129. esac
  6130. fi
  6131. done
  6132. IFS="$lt_save_ifs"
  6133. else
  6134. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6135. fi
  6136. fi
  6137. LD="$lt_cv_path_LD"
  6138. if test -n "$LD"; then
  6139. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  6140. $as_echo "$LD" >&6; }
  6141. else
  6142. { $as_echo "$as_me:$LINENO: result: no" >&5
  6143. $as_echo "no" >&6; }
  6144. fi
  6145. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6146. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6147. { (exit 1); exit 1; }; }
  6148. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6149. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6150. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  6151. $as_echo_n "(cached) " >&6
  6152. else
  6153. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6154. case `$LD -v 2>&1 </dev/null` in
  6155. *GNU* | *'with BFD'*)
  6156. lt_cv_prog_gnu_ld=yes
  6157. ;;
  6158. *)
  6159. lt_cv_prog_gnu_ld=no
  6160. ;;
  6161. esac
  6162. fi
  6163. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  6164. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6165. with_gnu_ld=$lt_cv_prog_gnu_ld
  6166. # note, does not work on FreeBSD
  6167. for ac_prog in gawk mawk nawk awk
  6168. do
  6169. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6170. set dummy $ac_prog; ac_word=$2
  6171. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6172. $as_echo_n "checking for $ac_word... " >&6; }
  6173. if test "${ac_cv_prog_AWK+set}" = set; then
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. if test -n "$AWK"; then
  6177. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6178. else
  6179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6180. for as_dir in $PATH
  6181. do
  6182. IFS=$as_save_IFS
  6183. test -z "$as_dir" && as_dir=.
  6184. for ac_exec_ext in '' $ac_executable_extensions; do
  6185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6186. ac_cv_prog_AWK="$ac_prog"
  6187. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6188. break 2
  6189. fi
  6190. done
  6191. done
  6192. IFS=$as_save_IFS
  6193. fi
  6194. fi
  6195. AWK=$ac_cv_prog_AWK
  6196. if test -n "$AWK"; then
  6197. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  6198. $as_echo "$AWK" >&6; }
  6199. else
  6200. { $as_echo "$as_me:$LINENO: result: no" >&5
  6201. $as_echo "no" >&6; }
  6202. fi
  6203. test -n "$AWK" && break
  6204. done
  6205. # Find a good install program. We prefer a C program (faster),
  6206. # so one script is as good as another. But avoid the broken or
  6207. # incompatible versions:
  6208. # SysV /etc/install, /usr/sbin/install
  6209. # SunOS /usr/etc/install
  6210. # IRIX /sbin/install
  6211. # AIX /bin/install
  6212. # AmigaOS /C/install, which installs bootblocks on floppy discs
  6213. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  6214. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  6215. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6216. # OS/2's system install, which has a completely different semantic
  6217. # ./install, which can be erroneously created by make from ./install.sh.
  6218. # Reject install programs that cannot install multiple files.
  6219. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  6220. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  6221. if test -z "$INSTALL"; then
  6222. if test "${ac_cv_path_install+set}" = set; then
  6223. $as_echo_n "(cached) " >&6
  6224. else
  6225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6226. for as_dir in $PATH
  6227. do
  6228. IFS=$as_save_IFS
  6229. test -z "$as_dir" && as_dir=.
  6230. # Account for people who put trailing slashes in PATH elements.
  6231. case $as_dir/ in
  6232. ./ | .// | /cC/* | \
  6233. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  6234. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  6235. /usr/ucb/* ) ;;
  6236. *)
  6237. # OSF1 and SCO ODT 3.0 have their own names for install.
  6238. # Don't use installbsd from OSF since it installs stuff as root
  6239. # by default.
  6240. for ac_prog in ginstall scoinst install; do
  6241. for ac_exec_ext in '' $ac_executable_extensions; do
  6242. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  6243. if test $ac_prog = install &&
  6244. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6245. # AIX install. It has an incompatible calling convention.
  6246. :
  6247. elif test $ac_prog = install &&
  6248. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6249. # program-specific install script used by HP pwplus--don't use.
  6250. :
  6251. else
  6252. rm -rf conftest.one conftest.two conftest.dir
  6253. echo one > conftest.one
  6254. echo two > conftest.two
  6255. mkdir conftest.dir
  6256. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  6257. test -s conftest.one && test -s conftest.two &&
  6258. test -s conftest.dir/conftest.one &&
  6259. test -s conftest.dir/conftest.two
  6260. then
  6261. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  6262. break 3
  6263. fi
  6264. fi
  6265. fi
  6266. done
  6267. done
  6268. ;;
  6269. esac
  6270. done
  6271. IFS=$as_save_IFS
  6272. rm -rf conftest.one conftest.two conftest.dir
  6273. fi
  6274. if test "${ac_cv_path_install+set}" = set; then
  6275. INSTALL=$ac_cv_path_install
  6276. else
  6277. # As a last resort, use the slow shell script. Don't cache a
  6278. # value for INSTALL within a source directory, because that will
  6279. # break other packages using the cache if that directory is
  6280. # removed, or if the value is a relative name.
  6281. INSTALL=$ac_install_sh
  6282. fi
  6283. fi
  6284. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  6285. $as_echo "$INSTALL" >&6; }
  6286. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  6287. # It thinks the first close brace ends the variable substitution.
  6288. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  6289. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  6290. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  6291. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  6292. $as_echo_n "checking whether ln -s works... " >&6; }
  6293. LN_S=$as_ln_s
  6294. if test "$LN_S" = "ln -s"; then
  6295. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6296. $as_echo "yes" >&6; }
  6297. else
  6298. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  6299. $as_echo "no, using $LN_S" >&6; }
  6300. fi
  6301. if test -n "$ac_tool_prefix"; then
  6302. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6303. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6304. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6305. $as_echo_n "checking for $ac_word... " >&6; }
  6306. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. if test -n "$RANLIB"; then
  6310. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6311. else
  6312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6313. for as_dir in $PATH
  6314. do
  6315. IFS=$as_save_IFS
  6316. test -z "$as_dir" && as_dir=.
  6317. for ac_exec_ext in '' $ac_executable_extensions; do
  6318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6319. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6320. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6321. break 2
  6322. fi
  6323. done
  6324. done
  6325. IFS=$as_save_IFS
  6326. fi
  6327. fi
  6328. RANLIB=$ac_cv_prog_RANLIB
  6329. if test -n "$RANLIB"; then
  6330. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  6331. $as_echo "$RANLIB" >&6; }
  6332. else
  6333. { $as_echo "$as_me:$LINENO: result: no" >&5
  6334. $as_echo "no" >&6; }
  6335. fi
  6336. fi
  6337. if test -z "$ac_cv_prog_RANLIB"; then
  6338. ac_ct_RANLIB=$RANLIB
  6339. # Extract the first word of "ranlib", so it can be a program name with args.
  6340. set dummy ranlib; ac_word=$2
  6341. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6342. $as_echo_n "checking for $ac_word... " >&6; }
  6343. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6344. $as_echo_n "(cached) " >&6
  6345. else
  6346. if test -n "$ac_ct_RANLIB"; then
  6347. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6348. else
  6349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6350. for as_dir in $PATH
  6351. do
  6352. IFS=$as_save_IFS
  6353. test -z "$as_dir" && as_dir=.
  6354. for ac_exec_ext in '' $ac_executable_extensions; do
  6355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6356. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6357. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6358. break 2
  6359. fi
  6360. done
  6361. done
  6362. IFS=$as_save_IFS
  6363. fi
  6364. fi
  6365. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6366. if test -n "$ac_ct_RANLIB"; then
  6367. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6368. $as_echo "$ac_ct_RANLIB" >&6; }
  6369. else
  6370. { $as_echo "$as_me:$LINENO: result: no" >&5
  6371. $as_echo "no" >&6; }
  6372. fi
  6373. if test "x$ac_ct_RANLIB" = x; then
  6374. RANLIB=":"
  6375. else
  6376. case $cross_compiling:$ac_tool_warned in
  6377. yes:)
  6378. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6380. ac_tool_warned=yes ;;
  6381. esac
  6382. RANLIB=$ac_ct_RANLIB
  6383. fi
  6384. else
  6385. RANLIB="$ac_cv_prog_RANLIB"
  6386. fi
  6387. { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
  6388. $as_echo_n "checking for GNU make... " >&6; }
  6389. if test "${ac_cv_GNU_MAKE+set}" = set; then
  6390. $as_echo_n "(cached) " >&6
  6391. else
  6392. ac_cv_GNU_MAKE='Not Found' ;
  6393. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  6394. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  6395. for a in make gmake gnumake ; do
  6396. if test -z "$a" ; then continue ; fi ;
  6397. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  6398. ac_cv_GNU_MAKE=$a ;
  6399. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  6400. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  6401. break;
  6402. fi
  6403. done ;
  6404. fi
  6405. { $as_echo "$as_me:$LINENO: result: $ac_cv_GNU_MAKE" >&5
  6406. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  6407. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  6408. { { $as_echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
  6409. $as_echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
  6410. { (exit 1); exit 1; }; }
  6411. exit 1
  6412. fi
  6413. GNU_MAKE=$ac_cv_GNU_MAKE
  6414. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  6415. $as_echo_n "checking for egrep... " >&6; }
  6416. if test "${ac_cv_path_EGREP+set}" = set; then
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6420. then ac_cv_path_EGREP="$GREP -E"
  6421. else
  6422. if test -z "$EGREP"; then
  6423. ac_path_EGREP_found=false
  6424. # Loop through the user's path and test for each of PROGNAME-LIST
  6425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6426. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6427. do
  6428. IFS=$as_save_IFS
  6429. test -z "$as_dir" && as_dir=.
  6430. for ac_prog in egrep; do
  6431. for ac_exec_ext in '' $ac_executable_extensions; do
  6432. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  6433. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  6434. # Check for GNU ac_path_EGREP and select it if it is found.
  6435. # Check for GNU $ac_path_EGREP
  6436. case `"$ac_path_EGREP" --version 2>&1` in
  6437. *GNU*)
  6438. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6439. *)
  6440. ac_count=0
  6441. $as_echo_n 0123456789 >"conftest.in"
  6442. while :
  6443. do
  6444. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6445. mv "conftest.tmp" "conftest.in"
  6446. cp "conftest.in" "conftest.nl"
  6447. $as_echo 'EGREP' >> "conftest.nl"
  6448. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6449. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6450. ac_count=`expr $ac_count + 1`
  6451. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6452. # Best one so far, save it but keep looking for a better one
  6453. ac_cv_path_EGREP="$ac_path_EGREP"
  6454. ac_path_EGREP_max=$ac_count
  6455. fi
  6456. # 10*(2^10) chars as input seems more than enough
  6457. test $ac_count -gt 10 && break
  6458. done
  6459. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6460. esac
  6461. $ac_path_EGREP_found && break 3
  6462. done
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. if test -z "$ac_cv_path_EGREP"; then
  6467. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  6468. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  6469. { (exit 1); exit 1; }; }
  6470. fi
  6471. else
  6472. ac_cv_path_EGREP=$EGREP
  6473. fi
  6474. fi
  6475. fi
  6476. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  6477. $as_echo "$ac_cv_path_EGREP" >&6; }
  6478. EGREP="$ac_cv_path_EGREP"
  6479. if test -n "$ac_tool_prefix"; then
  6480. for ac_prog in strip gstrip
  6481. do
  6482. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6483. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6484. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6485. $as_echo_n "checking for $ac_word... " >&6; }
  6486. if test "${ac_cv_prog_STRIP+set}" = set; then
  6487. $as_echo_n "(cached) " >&6
  6488. else
  6489. if test -n "$STRIP"; then
  6490. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6491. else
  6492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6493. for as_dir in $PATH
  6494. do
  6495. IFS=$as_save_IFS
  6496. test -z "$as_dir" && as_dir=.
  6497. for ac_exec_ext in '' $ac_executable_extensions; do
  6498. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6499. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  6500. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6501. break 2
  6502. fi
  6503. done
  6504. done
  6505. IFS=$as_save_IFS
  6506. fi
  6507. fi
  6508. STRIP=$ac_cv_prog_STRIP
  6509. if test -n "$STRIP"; then
  6510. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  6511. $as_echo "$STRIP" >&6; }
  6512. else
  6513. { $as_echo "$as_me:$LINENO: result: no" >&5
  6514. $as_echo "no" >&6; }
  6515. fi
  6516. test -n "$STRIP" && break
  6517. done
  6518. fi
  6519. if test -z "$STRIP"; then
  6520. ac_ct_STRIP=$STRIP
  6521. for ac_prog in strip gstrip
  6522. do
  6523. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6524. set dummy $ac_prog; ac_word=$2
  6525. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6526. $as_echo_n "checking for $ac_word... " >&6; }
  6527. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6528. $as_echo_n "(cached) " >&6
  6529. else
  6530. if test -n "$ac_ct_STRIP"; then
  6531. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6532. else
  6533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6534. for as_dir in $PATH
  6535. do
  6536. IFS=$as_save_IFS
  6537. test -z "$as_dir" && as_dir=.
  6538. for ac_exec_ext in '' $ac_executable_extensions; do
  6539. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6540. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  6541. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6542. break 2
  6543. fi
  6544. done
  6545. done
  6546. IFS=$as_save_IFS
  6547. fi
  6548. fi
  6549. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6550. if test -n "$ac_ct_STRIP"; then
  6551. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6552. $as_echo "$ac_ct_STRIP" >&6; }
  6553. else
  6554. { $as_echo "$as_me:$LINENO: result: no" >&5
  6555. $as_echo "no" >&6; }
  6556. fi
  6557. test -n "$ac_ct_STRIP" && break
  6558. done
  6559. if test "x$ac_ct_STRIP" = x; then
  6560. STRIP=":"
  6561. else
  6562. case $cross_compiling:$ac_tool_warned in
  6563. yes:)
  6564. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6565. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6566. ac_tool_warned=yes ;;
  6567. esac
  6568. STRIP=$ac_ct_STRIP
  6569. fi
  6570. fi
  6571. if test -n "$ac_tool_prefix"; then
  6572. for ac_prog in ar gar
  6573. do
  6574. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6575. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6576. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6577. $as_echo_n "checking for $ac_word... " >&6; }
  6578. if test "${ac_cv_prog_AR+set}" = set; then
  6579. $as_echo_n "(cached) " >&6
  6580. else
  6581. if test -n "$AR"; then
  6582. ac_cv_prog_AR="$AR" # Let the user override the test.
  6583. else
  6584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6585. for as_dir in $PATH
  6586. do
  6587. IFS=$as_save_IFS
  6588. test -z "$as_dir" && as_dir=.
  6589. for ac_exec_ext in '' $ac_executable_extensions; do
  6590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6591. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6592. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6593. break 2
  6594. fi
  6595. done
  6596. done
  6597. IFS=$as_save_IFS
  6598. fi
  6599. fi
  6600. AR=$ac_cv_prog_AR
  6601. if test -n "$AR"; then
  6602. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  6603. $as_echo "$AR" >&6; }
  6604. else
  6605. { $as_echo "$as_me:$LINENO: result: no" >&5
  6606. $as_echo "no" >&6; }
  6607. fi
  6608. test -n "$AR" && break
  6609. done
  6610. fi
  6611. if test -z "$AR"; then
  6612. ac_ct_AR=$AR
  6613. for ac_prog in ar gar
  6614. do
  6615. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6616. set dummy $ac_prog; ac_word=$2
  6617. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$ac_ct_AR"; then
  6623. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6632. ac_cv_prog_ac_ct_AR="$ac_prog"
  6633. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6642. if test -n "$ac_ct_AR"; then
  6643. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6644. $as_echo "$ac_ct_AR" >&6; }
  6645. else
  6646. { $as_echo "$as_me:$LINENO: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. test -n "$ac_ct_AR" && break
  6650. done
  6651. if test "x$ac_ct_AR" = x; then
  6652. AR=":"
  6653. else
  6654. case $cross_compiling:$ac_tool_warned in
  6655. yes:)
  6656. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6658. ac_tool_warned=yes ;;
  6659. esac
  6660. AR=$ac_ct_AR
  6661. fi
  6662. fi
  6663. if test -n "$ac_tool_prefix"; then
  6664. for ac_prog in sha1sum
  6665. do
  6666. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6667. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6668. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6669. $as_echo_n "checking for $ac_word... " >&6; }
  6670. if test "${ac_cv_prog_SHA1SUM+set}" = set; then
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. if test -n "$SHA1SUM"; then
  6674. ac_cv_prog_SHA1SUM="$SHA1SUM" # Let the user override the test.
  6675. else
  6676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6677. for as_dir in $PATH
  6678. do
  6679. IFS=$as_save_IFS
  6680. test -z "$as_dir" && as_dir=.
  6681. for ac_exec_ext in '' $ac_executable_extensions; do
  6682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6683. ac_cv_prog_SHA1SUM="$ac_tool_prefix$ac_prog"
  6684. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6685. break 2
  6686. fi
  6687. done
  6688. done
  6689. IFS=$as_save_IFS
  6690. fi
  6691. fi
  6692. SHA1SUM=$ac_cv_prog_SHA1SUM
  6693. if test -n "$SHA1SUM"; then
  6694. { $as_echo "$as_me:$LINENO: result: $SHA1SUM" >&5
  6695. $as_echo "$SHA1SUM" >&6; }
  6696. else
  6697. { $as_echo "$as_me:$LINENO: result: no" >&5
  6698. $as_echo "no" >&6; }
  6699. fi
  6700. test -n "$SHA1SUM" && break
  6701. done
  6702. fi
  6703. if test -z "$SHA1SUM"; then
  6704. ac_ct_SHA1SUM=$SHA1SUM
  6705. for ac_prog in sha1sum
  6706. do
  6707. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6708. set dummy $ac_prog; ac_word=$2
  6709. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6710. $as_echo_n "checking for $ac_word... " >&6; }
  6711. if test "${ac_cv_prog_ac_ct_SHA1SUM+set}" = set; then
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. if test -n "$ac_ct_SHA1SUM"; then
  6715. ac_cv_prog_ac_ct_SHA1SUM="$ac_ct_SHA1SUM" # Let the user override the test.
  6716. else
  6717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6718. for as_dir in $PATH
  6719. do
  6720. IFS=$as_save_IFS
  6721. test -z "$as_dir" && as_dir=.
  6722. for ac_exec_ext in '' $ac_executable_extensions; do
  6723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6724. ac_cv_prog_ac_ct_SHA1SUM="$ac_prog"
  6725. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6726. break 2
  6727. fi
  6728. done
  6729. done
  6730. IFS=$as_save_IFS
  6731. fi
  6732. fi
  6733. ac_ct_SHA1SUM=$ac_cv_prog_ac_ct_SHA1SUM
  6734. if test -n "$ac_ct_SHA1SUM"; then
  6735. { $as_echo "$as_me:$LINENO: result: $ac_ct_SHA1SUM" >&5
  6736. $as_echo "$ac_ct_SHA1SUM" >&6; }
  6737. else
  6738. { $as_echo "$as_me:$LINENO: result: no" >&5
  6739. $as_echo "no" >&6; }
  6740. fi
  6741. test -n "$ac_ct_SHA1SUM" && break
  6742. done
  6743. if test "x$ac_ct_SHA1SUM" = x; then
  6744. SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  6745. else
  6746. case $cross_compiling:$ac_tool_warned in
  6747. yes:)
  6748. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6749. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6750. ac_tool_warned=yes ;;
  6751. esac
  6752. SHA1SUM=$ac_ct_SHA1SUM
  6753. fi
  6754. fi
  6755. if test -n "$ac_tool_prefix"; then
  6756. for ac_prog in openssl
  6757. do
  6758. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6759. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6760. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6761. $as_echo_n "checking for $ac_word... " >&6; }
  6762. if test "${ac_cv_prog_OPENSSL+set}" = set; then
  6763. $as_echo_n "(cached) " >&6
  6764. else
  6765. if test -n "$OPENSSL"; then
  6766. ac_cv_prog_OPENSSL="$OPENSSL" # Let the user override the test.
  6767. else
  6768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6769. for as_dir in $PATH
  6770. do
  6771. IFS=$as_save_IFS
  6772. test -z "$as_dir" && as_dir=.
  6773. for ac_exec_ext in '' $ac_executable_extensions; do
  6774. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6775. ac_cv_prog_OPENSSL="$ac_tool_prefix$ac_prog"
  6776. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6777. break 2
  6778. fi
  6779. done
  6780. done
  6781. IFS=$as_save_IFS
  6782. fi
  6783. fi
  6784. OPENSSL=$ac_cv_prog_OPENSSL
  6785. if test -n "$OPENSSL"; then
  6786. { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
  6787. $as_echo "$OPENSSL" >&6; }
  6788. else
  6789. { $as_echo "$as_me:$LINENO: result: no" >&5
  6790. $as_echo "no" >&6; }
  6791. fi
  6792. test -n "$OPENSSL" && break
  6793. done
  6794. fi
  6795. if test -z "$OPENSSL"; then
  6796. ac_ct_OPENSSL=$OPENSSL
  6797. for ac_prog in openssl
  6798. do
  6799. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6800. set dummy $ac_prog; ac_word=$2
  6801. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6802. $as_echo_n "checking for $ac_word... " >&6; }
  6803. if test "${ac_cv_prog_ac_ct_OPENSSL+set}" = set; then
  6804. $as_echo_n "(cached) " >&6
  6805. else
  6806. if test -n "$ac_ct_OPENSSL"; then
  6807. ac_cv_prog_ac_ct_OPENSSL="$ac_ct_OPENSSL" # Let the user override the test.
  6808. else
  6809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6810. for as_dir in $PATH
  6811. do
  6812. IFS=$as_save_IFS
  6813. test -z "$as_dir" && as_dir=.
  6814. for ac_exec_ext in '' $ac_executable_extensions; do
  6815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6816. ac_cv_prog_ac_ct_OPENSSL="$ac_prog"
  6817. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6818. break 2
  6819. fi
  6820. done
  6821. done
  6822. IFS=$as_save_IFS
  6823. fi
  6824. fi
  6825. ac_ct_OPENSSL=$ac_cv_prog_ac_ct_OPENSSL
  6826. if test -n "$ac_ct_OPENSSL"; then
  6827. { $as_echo "$as_me:$LINENO: result: $ac_ct_OPENSSL" >&5
  6828. $as_echo "$ac_ct_OPENSSL" >&6; }
  6829. else
  6830. { $as_echo "$as_me:$LINENO: result: no" >&5
  6831. $as_echo "no" >&6; }
  6832. fi
  6833. test -n "$ac_ct_OPENSSL" && break
  6834. done
  6835. if test "x$ac_ct_OPENSSL" = x; then
  6836. OPENSSL=":"
  6837. else
  6838. case $cross_compiling:$ac_tool_warned in
  6839. yes:)
  6840. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6842. ac_tool_warned=yes ;;
  6843. esac
  6844. OPENSSL=$ac_ct_OPENSSL
  6845. fi
  6846. fi
  6847. GNU_LD=0
  6848. if test "x$with_gnu_ld" = "xyes" ; then
  6849. GNU_LD=1
  6850. fi
  6851. # Extract the first word of "bison", so it can be a program name with args.
  6852. set dummy bison; ac_word=$2
  6853. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6854. $as_echo_n "checking for $ac_word... " >&6; }
  6855. if test "${ac_cv_path_BISON+set}" = set; then
  6856. $as_echo_n "(cached) " >&6
  6857. else
  6858. case $BISON in
  6859. [\\/]* | ?:[\\/]*)
  6860. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  6861. ;;
  6862. *)
  6863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6864. for as_dir in $PATH
  6865. do
  6866. IFS=$as_save_IFS
  6867. test -z "$as_dir" && as_dir=.
  6868. for ac_exec_ext in '' $ac_executable_extensions; do
  6869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6870. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6871. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6872. break 2
  6873. fi
  6874. done
  6875. done
  6876. IFS=$as_save_IFS
  6877. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6878. ;;
  6879. esac
  6880. fi
  6881. BISON=$ac_cv_path_BISON
  6882. if test -n "$BISON"; then
  6883. { $as_echo "$as_me:$LINENO: result: $BISON" >&5
  6884. $as_echo "$BISON" >&6; }
  6885. else
  6886. { $as_echo "$as_me:$LINENO: result: no" >&5
  6887. $as_echo "no" >&6; }
  6888. fi
  6889. # Extract the first word of "cmp", so it can be a program name with args.
  6890. set dummy cmp; ac_word=$2
  6891. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6892. $as_echo_n "checking for $ac_word... " >&6; }
  6893. if test "${ac_cv_path_CMP+set}" = set; then
  6894. $as_echo_n "(cached) " >&6
  6895. else
  6896. case $CMP in
  6897. [\\/]* | ?:[\\/]*)
  6898. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6899. ;;
  6900. *)
  6901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6902. for as_dir in $PATH
  6903. do
  6904. IFS=$as_save_IFS
  6905. test -z "$as_dir" && as_dir=.
  6906. for ac_exec_ext in '' $ac_executable_extensions; do
  6907. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6908. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6909. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6910. break 2
  6911. fi
  6912. done
  6913. done
  6914. IFS=$as_save_IFS
  6915. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6916. ;;
  6917. esac
  6918. fi
  6919. CMP=$ac_cv_path_CMP
  6920. if test -n "$CMP"; then
  6921. { $as_echo "$as_me:$LINENO: result: $CMP" >&5
  6922. $as_echo "$CMP" >&6; }
  6923. else
  6924. { $as_echo "$as_me:$LINENO: result: no" >&5
  6925. $as_echo "no" >&6; }
  6926. fi
  6927. # Extract the first word of "flex", so it can be a program name with args.
  6928. set dummy flex; ac_word=$2
  6929. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6930. $as_echo_n "checking for $ac_word... " >&6; }
  6931. if test "${ac_cv_path_FLEX+set}" = set; then
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. case $FLEX in
  6935. [\\/]* | ?:[\\/]*)
  6936. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6937. ;;
  6938. *)
  6939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6940. for as_dir in $PATH
  6941. do
  6942. IFS=$as_save_IFS
  6943. test -z "$as_dir" && as_dir=.
  6944. for ac_exec_ext in '' $ac_executable_extensions; do
  6945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6946. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6947. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6948. break 2
  6949. fi
  6950. done
  6951. done
  6952. IFS=$as_save_IFS
  6953. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6954. ;;
  6955. esac
  6956. fi
  6957. FLEX=$ac_cv_path_FLEX
  6958. if test -n "$FLEX"; then
  6959. { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
  6960. $as_echo "$FLEX" >&6; }
  6961. else
  6962. { $as_echo "$as_me:$LINENO: result: no" >&5
  6963. $as_echo "no" >&6; }
  6964. fi
  6965. # Extract the first word of "grep", so it can be a program name with args.
  6966. set dummy grep; ac_word=$2
  6967. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6968. $as_echo_n "checking for $ac_word... " >&6; }
  6969. if test "${ac_cv_path_GREP+set}" = set; then
  6970. $as_echo_n "(cached) " >&6
  6971. else
  6972. case $GREP in
  6973. [\\/]* | ?:[\\/]*)
  6974. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6975. ;;
  6976. *)
  6977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6978. for as_dir in $PATH
  6979. do
  6980. IFS=$as_save_IFS
  6981. test -z "$as_dir" && as_dir=.
  6982. for ac_exec_ext in '' $ac_executable_extensions; do
  6983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6984. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6985. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6986. break 2
  6987. fi
  6988. done
  6989. done
  6990. IFS=$as_save_IFS
  6991. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6992. ;;
  6993. esac
  6994. fi
  6995. GREP=$ac_cv_path_GREP
  6996. if test -n "$GREP"; then
  6997. { $as_echo "$as_me:$LINENO: result: $GREP" >&5
  6998. $as_echo "$GREP" >&6; }
  6999. else
  7000. { $as_echo "$as_me:$LINENO: result: no" >&5
  7001. $as_echo "no" >&6; }
  7002. fi
  7003. # Extract the first word of "find", so it can be a program name with args.
  7004. set dummy find; ac_word=$2
  7005. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7006. $as_echo_n "checking for $ac_word... " >&6; }
  7007. if test "${ac_cv_path_FIND+set}" = set; then
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. case $FIND in
  7011. [\\/]* | ?:[\\/]*)
  7012. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  7013. ;;
  7014. *)
  7015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7016. for as_dir in $PATH
  7017. do
  7018. IFS=$as_save_IFS
  7019. test -z "$as_dir" && as_dir=.
  7020. for ac_exec_ext in '' $ac_executable_extensions; do
  7021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7022. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  7023. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7024. break 2
  7025. fi
  7026. done
  7027. done
  7028. IFS=$as_save_IFS
  7029. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  7030. ;;
  7031. esac
  7032. fi
  7033. FIND=$ac_cv_path_FIND
  7034. if test -n "$FIND"; then
  7035. { $as_echo "$as_me:$LINENO: result: $FIND" >&5
  7036. $as_echo "$FIND" >&6; }
  7037. else
  7038. { $as_echo "$as_me:$LINENO: result: no" >&5
  7039. $as_echo "no" >&6; }
  7040. fi
  7041. # Extract the first word of "compress", so it can be a program name with args.
  7042. set dummy compress; ac_word=$2
  7043. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7044. $as_echo_n "checking for $ac_word... " >&6; }
  7045. if test "${ac_cv_path_COMPRESS+set}" = set; then
  7046. $as_echo_n "(cached) " >&6
  7047. else
  7048. case $COMPRESS in
  7049. [\\/]* | ?:[\\/]*)
  7050. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  7051. ;;
  7052. *)
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7060. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  7061. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  7068. ;;
  7069. esac
  7070. fi
  7071. COMPRESS=$ac_cv_path_COMPRESS
  7072. if test -n "$COMPRESS"; then
  7073. { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
  7074. $as_echo "$COMPRESS" >&6; }
  7075. else
  7076. { $as_echo "$as_me:$LINENO: result: no" >&5
  7077. $as_echo "no" >&6; }
  7078. fi
  7079. # Extract the first word of "basename", so it can be a program name with args.
  7080. set dummy basename; ac_word=$2
  7081. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7082. $as_echo_n "checking for $ac_word... " >&6; }
  7083. if test "${ac_cv_path_BASENAME+set}" = set; then
  7084. $as_echo_n "(cached) " >&6
  7085. else
  7086. case $BASENAME in
  7087. [\\/]* | ?:[\\/]*)
  7088. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  7089. ;;
  7090. *)
  7091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7092. for as_dir in $PATH
  7093. do
  7094. IFS=$as_save_IFS
  7095. test -z "$as_dir" && as_dir=.
  7096. for ac_exec_ext in '' $ac_executable_extensions; do
  7097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7098. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  7099. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7100. break 2
  7101. fi
  7102. done
  7103. done
  7104. IFS=$as_save_IFS
  7105. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  7106. ;;
  7107. esac
  7108. fi
  7109. BASENAME=$ac_cv_path_BASENAME
  7110. if test -n "$BASENAME"; then
  7111. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  7112. $as_echo "$BASENAME" >&6; }
  7113. else
  7114. { $as_echo "$as_me:$LINENO: result: no" >&5
  7115. $as_echo "no" >&6; }
  7116. fi
  7117. # Extract the first word of "dirname", so it can be a program name with args.
  7118. set dummy dirname; ac_word=$2
  7119. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7120. $as_echo_n "checking for $ac_word... " >&6; }
  7121. if test "${ac_cv_path_DIRNAME+set}" = set; then
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. case $DIRNAME in
  7125. [\\/]* | ?:[\\/]*)
  7126. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  7127. ;;
  7128. *)
  7129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7130. for as_dir in $PATH
  7131. do
  7132. IFS=$as_save_IFS
  7133. test -z "$as_dir" && as_dir=.
  7134. for ac_exec_ext in '' $ac_executable_extensions; do
  7135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7136. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  7137. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7138. break 2
  7139. fi
  7140. done
  7141. done
  7142. IFS=$as_save_IFS
  7143. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  7144. ;;
  7145. esac
  7146. fi
  7147. DIRNAME=$ac_cv_path_DIRNAME
  7148. if test -n "$DIRNAME"; then
  7149. { $as_echo "$as_me:$LINENO: result: $DIRNAME" >&5
  7150. $as_echo "$DIRNAME" >&6; }
  7151. else
  7152. { $as_echo "$as_me:$LINENO: result: no" >&5
  7153. $as_echo "no" >&6; }
  7154. fi
  7155. # Extract the first word of "sh", so it can be a program name with args.
  7156. set dummy sh; ac_word=$2
  7157. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7158. $as_echo_n "checking for $ac_word... " >&6; }
  7159. if test "${ac_cv_path_SHELL+set}" = set; then
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. case $SHELL in
  7163. [\\/]* | ?:[\\/]*)
  7164. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  7165. ;;
  7166. *)
  7167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7168. for as_dir in $PATH
  7169. do
  7170. IFS=$as_save_IFS
  7171. test -z "$as_dir" && as_dir=.
  7172. for ac_exec_ext in '' $ac_executable_extensions; do
  7173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7174. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  7175. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7176. break 2
  7177. fi
  7178. done
  7179. done
  7180. IFS=$as_save_IFS
  7181. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  7182. ;;
  7183. esac
  7184. fi
  7185. SHELL=$ac_cv_path_SHELL
  7186. if test -n "$SHELL"; then
  7187. { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
  7188. $as_echo "$SHELL" >&6; }
  7189. else
  7190. { $as_echo "$as_me:$LINENO: result: no" >&5
  7191. $as_echo "no" >&6; }
  7192. fi
  7193. # Extract the first word of "ln", so it can be a program name with args.
  7194. set dummy ln; ac_word=$2
  7195. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7196. $as_echo_n "checking for $ac_word... " >&6; }
  7197. if test "${ac_cv_path_LN+set}" = set; then
  7198. $as_echo_n "(cached) " >&6
  7199. else
  7200. case $LN in
  7201. [\\/]* | ?:[\\/]*)
  7202. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  7203. ;;
  7204. *)
  7205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7206. for as_dir in $PATH
  7207. do
  7208. IFS=$as_save_IFS
  7209. test -z "$as_dir" && as_dir=.
  7210. for ac_exec_ext in '' $ac_executable_extensions; do
  7211. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7212. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  7213. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7214. break 2
  7215. fi
  7216. done
  7217. done
  7218. IFS=$as_save_IFS
  7219. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  7220. ;;
  7221. esac
  7222. fi
  7223. LN=$ac_cv_path_LN
  7224. if test -n "$LN"; then
  7225. { $as_echo "$as_me:$LINENO: result: $LN" >&5
  7226. $as_echo "$LN" >&6; }
  7227. else
  7228. { $as_echo "$as_me:$LINENO: result: no" >&5
  7229. $as_echo "no" >&6; }
  7230. fi
  7231. # Extract the first word of "dot", so it can be a program name with args.
  7232. set dummy dot; ac_word=$2
  7233. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7234. $as_echo_n "checking for $ac_word... " >&6; }
  7235. if test "${ac_cv_path_DOT+set}" = set; then
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. case $DOT in
  7239. [\\/]* | ?:[\\/]*)
  7240. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  7241. ;;
  7242. *)
  7243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7244. for as_dir in $PATH
  7245. do
  7246. IFS=$as_save_IFS
  7247. test -z "$as_dir" && as_dir=.
  7248. for ac_exec_ext in '' $ac_executable_extensions; do
  7249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7250. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  7251. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7252. break 2
  7253. fi
  7254. done
  7255. done
  7256. IFS=$as_save_IFS
  7257. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  7258. ;;
  7259. esac
  7260. fi
  7261. DOT=$ac_cv_path_DOT
  7262. if test -n "$DOT"; then
  7263. { $as_echo "$as_me:$LINENO: result: $DOT" >&5
  7264. $as_echo "$DOT" >&6; }
  7265. else
  7266. { $as_echo "$as_me:$LINENO: result: no" >&5
  7267. $as_echo "no" >&6; }
  7268. fi
  7269. # Extract the first word of "wget", so it can be a program name with args.
  7270. set dummy wget; ac_word=$2
  7271. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7272. $as_echo_n "checking for $ac_word... " >&6; }
  7273. if test "${ac_cv_path_WGET+set}" = set; then
  7274. $as_echo_n "(cached) " >&6
  7275. else
  7276. case $WGET in
  7277. [\\/]* | ?:[\\/]*)
  7278. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  7279. ;;
  7280. *)
  7281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7282. for as_dir in $PATH
  7283. do
  7284. IFS=$as_save_IFS
  7285. test -z "$as_dir" && as_dir=.
  7286. for ac_exec_ext in '' $ac_executable_extensions; do
  7287. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7288. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  7289. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7290. break 2
  7291. fi
  7292. done
  7293. done
  7294. IFS=$as_save_IFS
  7295. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  7296. ;;
  7297. esac
  7298. fi
  7299. WGET=$ac_cv_path_WGET
  7300. if test -n "$WGET"; then
  7301. { $as_echo "$as_me:$LINENO: result: $WGET" >&5
  7302. $as_echo "$WGET" >&6; }
  7303. else
  7304. { $as_echo "$as_me:$LINENO: result: no" >&5
  7305. $as_echo "no" >&6; }
  7306. fi
  7307. # Extract the first word of "curl", so it can be a program name with args.
  7308. set dummy curl; ac_word=$2
  7309. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7310. $as_echo_n "checking for $ac_word... " >&6; }
  7311. if test "${ac_cv_path_CURL+set}" = set; then
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. case $CURL in
  7315. [\\/]* | ?:[\\/]*)
  7316. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  7317. ;;
  7318. *)
  7319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7320. for as_dir in $PATH
  7321. do
  7322. IFS=$as_save_IFS
  7323. test -z "$as_dir" && as_dir=.
  7324. for ac_exec_ext in '' $ac_executable_extensions; do
  7325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7326. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  7327. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7328. break 2
  7329. fi
  7330. done
  7331. done
  7332. IFS=$as_save_IFS
  7333. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  7334. ;;
  7335. esac
  7336. fi
  7337. CURL=$ac_cv_path_CURL
  7338. if test -n "$CURL"; then
  7339. { $as_echo "$as_me:$LINENO: result: $CURL" >&5
  7340. $as_echo "$CURL" >&6; }
  7341. else
  7342. { $as_echo "$as_me:$LINENO: result: no" >&5
  7343. $as_echo "no" >&6; }
  7344. fi
  7345. # Extract the first word of "rubber", so it can be a program name with args.
  7346. set dummy rubber; ac_word=$2
  7347. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7348. $as_echo_n "checking for $ac_word... " >&6; }
  7349. if test "${ac_cv_path_RUBBER+set}" = set; then
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. case $RUBBER in
  7353. [\\/]* | ?:[\\/]*)
  7354. ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
  7355. ;;
  7356. *)
  7357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7358. for as_dir in $PATH
  7359. do
  7360. IFS=$as_save_IFS
  7361. test -z "$as_dir" && as_dir=.
  7362. for ac_exec_ext in '' $ac_executable_extensions; do
  7363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7364. ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
  7365. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7366. break 2
  7367. fi
  7368. done
  7369. done
  7370. IFS=$as_save_IFS
  7371. test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
  7372. ;;
  7373. esac
  7374. fi
  7375. RUBBER=$ac_cv_path_RUBBER
  7376. if test -n "$RUBBER"; then
  7377. { $as_echo "$as_me:$LINENO: result: $RUBBER" >&5
  7378. $as_echo "$RUBBER" >&6; }
  7379. else
  7380. { $as_echo "$as_me:$LINENO: result: no" >&5
  7381. $as_echo "no" >&6; }
  7382. fi
  7383. # Extract the first word of "catdvi", so it can be a program name with args.
  7384. set dummy catdvi; ac_word=$2
  7385. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7386. $as_echo_n "checking for $ac_word... " >&6; }
  7387. if test "${ac_cv_path_CATDVI+set}" = set; then
  7388. $as_echo_n "(cached) " >&6
  7389. else
  7390. case $CATDVI in
  7391. [\\/]* | ?:[\\/]*)
  7392. ac_cv_path_CATDVI="$CATDVI" # Let the user override the test with a path.
  7393. ;;
  7394. *)
  7395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7396. for as_dir in $PATH
  7397. do
  7398. IFS=$as_save_IFS
  7399. test -z "$as_dir" && as_dir=.
  7400. for ac_exec_ext in '' $ac_executable_extensions; do
  7401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7402. ac_cv_path_CATDVI="$as_dir/$ac_word$ac_exec_ext"
  7403. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7404. break 2
  7405. fi
  7406. done
  7407. done
  7408. IFS=$as_save_IFS
  7409. test -z "$ac_cv_path_CATDVI" && ac_cv_path_CATDVI=":"
  7410. ;;
  7411. esac
  7412. fi
  7413. CATDVI=$ac_cv_path_CATDVI
  7414. if test -n "$CATDVI"; then
  7415. { $as_echo "$as_me:$LINENO: result: $CATDVI" >&5
  7416. $as_echo "$CATDVI" >&6; }
  7417. else
  7418. { $as_echo "$as_me:$LINENO: result: no" >&5
  7419. $as_echo "no" >&6; }
  7420. fi
  7421. # Extract the first word of "kpsewhich", so it can be a program name with args.
  7422. set dummy kpsewhich; ac_word=$2
  7423. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7424. $as_echo_n "checking for $ac_word... " >&6; }
  7425. if test "${ac_cv_path_KPATHSEA+set}" = set; then
  7426. $as_echo_n "(cached) " >&6
  7427. else
  7428. case $KPATHSEA in
  7429. [\\/]* | ?:[\\/]*)
  7430. ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
  7431. ;;
  7432. *)
  7433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7434. for as_dir in $PATH
  7435. do
  7436. IFS=$as_save_IFS
  7437. test -z "$as_dir" && as_dir=.
  7438. for ac_exec_ext in '' $ac_executable_extensions; do
  7439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7440. ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
  7441. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7442. break 2
  7443. fi
  7444. done
  7445. done
  7446. IFS=$as_save_IFS
  7447. test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
  7448. ;;
  7449. esac
  7450. fi
  7451. KPATHSEA=$ac_cv_path_KPATHSEA
  7452. if test -n "$KPATHSEA"; then
  7453. { $as_echo "$as_me:$LINENO: result: $KPATHSEA" >&5
  7454. $as_echo "$KPATHSEA" >&6; }
  7455. else
  7456. { $as_echo "$as_me:$LINENO: result: no" >&5
  7457. $as_echo "no" >&6; }
  7458. fi
  7459. # Extract the first word of "xmllint", so it can be a program name with args.
  7460. set dummy xmllint; ac_word=$2
  7461. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7462. $as_echo_n "checking for $ac_word... " >&6; }
  7463. if test "${ac_cv_path_XMLLINT+set}" = set; then
  7464. $as_echo_n "(cached) " >&6
  7465. else
  7466. case $XMLLINT in
  7467. [\\/]* | ?:[\\/]*)
  7468. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  7469. ;;
  7470. *)
  7471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7472. for as_dir in $PATH
  7473. do
  7474. IFS=$as_save_IFS
  7475. test -z "$as_dir" && as_dir=.
  7476. for ac_exec_ext in '' $ac_executable_extensions; do
  7477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7478. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  7479. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7480. break 2
  7481. fi
  7482. done
  7483. done
  7484. IFS=$as_save_IFS
  7485. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  7486. ;;
  7487. esac
  7488. fi
  7489. XMLLINT=$ac_cv_path_XMLLINT
  7490. if test -n "$XMLLINT"; then
  7491. { $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
  7492. $as_echo "$XMLLINT" >&6; }
  7493. else
  7494. { $as_echo "$as_me:$LINENO: result: no" >&5
  7495. $as_echo "no" >&6; }
  7496. fi
  7497. # Extract the first word of "xmlstarlet", so it can be a program name with args.
  7498. set dummy xmlstarlet; ac_word=$2
  7499. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7500. $as_echo_n "checking for $ac_word... " >&6; }
  7501. if test "${ac_cv_path_XMLSTARLET+set}" = set; then
  7502. $as_echo_n "(cached) " >&6
  7503. else
  7504. case $XMLSTARLET in
  7505. [\\/]* | ?:[\\/]*)
  7506. ac_cv_path_XMLSTARLET="$XMLSTARLET" # Let the user override the test with a path.
  7507. ;;
  7508. *)
  7509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7510. for as_dir in $PATH
  7511. do
  7512. IFS=$as_save_IFS
  7513. test -z "$as_dir" && as_dir=.
  7514. for ac_exec_ext in '' $ac_executable_extensions; do
  7515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7516. ac_cv_path_XMLSTARLET="$as_dir/$ac_word$ac_exec_ext"
  7517. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7518. break 2
  7519. fi
  7520. done
  7521. done
  7522. IFS=$as_save_IFS
  7523. test -z "$ac_cv_path_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
  7524. ;;
  7525. esac
  7526. fi
  7527. XMLSTARLET=$ac_cv_path_XMLSTARLET
  7528. if test -n "$XMLSTARLET"; then
  7529. { $as_echo "$as_me:$LINENO: result: $XMLSTARLET" >&5
  7530. $as_echo "$XMLSTARLET" >&6; }
  7531. else
  7532. { $as_echo "$as_me:$LINENO: result: no" >&5
  7533. $as_echo "no" >&6; }
  7534. fi
  7535. if test "${WGET}" != ":" ; then
  7536. DOWNLOAD=${WGET}
  7537. else if test "${CURL}" != ":" ; then
  7538. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  7539. else
  7540. # Extract the first word of "fetch", so it can be a program name with args.
  7541. set dummy fetch; ac_word=$2
  7542. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7543. $as_echo_n "checking for $ac_word... " >&6; }
  7544. if test "${ac_cv_path_FETCH+set}" = set; then
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. case $FETCH in
  7548. [\\/]* | ?:[\\/]*)
  7549. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  7550. ;;
  7551. *)
  7552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7553. for as_dir in $PATH
  7554. do
  7555. IFS=$as_save_IFS
  7556. test -z "$as_dir" && as_dir=.
  7557. for ac_exec_ext in '' $ac_executable_extensions; do
  7558. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7559. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  7560. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7561. break 2
  7562. fi
  7563. done
  7564. done
  7565. IFS=$as_save_IFS
  7566. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  7567. ;;
  7568. esac
  7569. fi
  7570. FETCH=$ac_cv_path_FETCH
  7571. if test -n "$FETCH"; then
  7572. { $as_echo "$as_me:$LINENO: result: $FETCH" >&5
  7573. $as_echo "$FETCH" >&6; }
  7574. else
  7575. { $as_echo "$as_me:$LINENO: result: no" >&5
  7576. $as_echo "no" >&6; }
  7577. fi
  7578. DOWNLOAD=${FETCH}
  7579. fi
  7580. fi
  7581. { $as_echo "$as_me:$LINENO: checking for bison that supports parse-param" >&5
  7582. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  7583. if test "${ac_cv_path_BISON2+set}" = set; then
  7584. $as_echo_n "(cached) " >&6
  7585. else
  7586. if test "x$BISON" != "x:" ; then
  7587. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  7588. # Use mktemp if possible; otherwise fall back on mkdir,
  7589. # with $RANDOM to make collisions less likely.
  7590. : ${TMPDIR=/tmp}
  7591. {
  7592. tmp=`
  7593. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  7594. ` &&
  7595. test -n "$tmp" && test -d "$tmp"
  7596. } || {
  7597. tmp=$TMPDIR/foo$$-$RANDOM
  7598. (umask 077 && mkdir "$tmp")
  7599. } || exit $?
  7600. cat >$tmp/test.y <<__EOL__
  7601. %parse-param {struct parse_io *parseio}
  7602. %%
  7603. file : { \$\$ = parseio->pval = 1; }
  7604. ;
  7605. %%
  7606. __EOL__
  7607. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  7608. if test -e "${tmp}/test.tab.c"; then
  7609. ac_cv_path_BISON2=${BISON}
  7610. fi
  7611. rm -rf ${tmp}
  7612. fi
  7613. fi
  7614. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_BISON2" >&5
  7615. $as_echo "$ac_cv_path_BISON2" >&6; }
  7616. if test "x${ac_cv_path_BISON2}" = "x" ; then
  7617. BISON=:
  7618. PBX_BISON=0
  7619. else
  7620. PBX_BISON=1
  7621. fi
  7622. if test "x${FLEX}" = "x:" ; then
  7623. PBX_FLEX=0
  7624. else
  7625. PBX_FLEX=1
  7626. fi
  7627. if test -n "$ac_tool_prefix"; then
  7628. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  7629. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  7630. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7631. $as_echo_n "checking for $ac_word... " >&6; }
  7632. if test "${ac_cv_prog_SOXMIX+set}" = set; then
  7633. $as_echo_n "(cached) " >&6
  7634. else
  7635. if test -n "$SOXMIX"; then
  7636. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  7637. else
  7638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7639. for as_dir in $PATH
  7640. do
  7641. IFS=$as_save_IFS
  7642. test -z "$as_dir" && as_dir=.
  7643. for ac_exec_ext in '' $ac_executable_extensions; do
  7644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7645. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  7646. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7647. break 2
  7648. fi
  7649. done
  7650. done
  7651. IFS=$as_save_IFS
  7652. fi
  7653. fi
  7654. SOXMIX=$ac_cv_prog_SOXMIX
  7655. if test -n "$SOXMIX"; then
  7656. { $as_echo "$as_me:$LINENO: result: $SOXMIX" >&5
  7657. $as_echo "$SOXMIX" >&6; }
  7658. else
  7659. { $as_echo "$as_me:$LINENO: result: no" >&5
  7660. $as_echo "no" >&6; }
  7661. fi
  7662. fi
  7663. if test -z "$ac_cv_prog_SOXMIX"; then
  7664. ac_ct_SOXMIX=$SOXMIX
  7665. # Extract the first word of "soxmix", so it can be a program name with args.
  7666. set dummy soxmix; ac_word=$2
  7667. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7668. $as_echo_n "checking for $ac_word... " >&6; }
  7669. if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
  7670. $as_echo_n "(cached) " >&6
  7671. else
  7672. if test -n "$ac_ct_SOXMIX"; then
  7673. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  7674. else
  7675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7676. for as_dir in $PATH
  7677. do
  7678. IFS=$as_save_IFS
  7679. test -z "$as_dir" && as_dir=.
  7680. for ac_exec_ext in '' $ac_executable_extensions; do
  7681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7682. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  7683. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7684. break 2
  7685. fi
  7686. done
  7687. done
  7688. IFS=$as_save_IFS
  7689. fi
  7690. fi
  7691. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  7692. if test -n "$ac_ct_SOXMIX"; then
  7693. { $as_echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
  7694. $as_echo "$ac_ct_SOXMIX" >&6; }
  7695. else
  7696. { $as_echo "$as_me:$LINENO: result: no" >&5
  7697. $as_echo "no" >&6; }
  7698. fi
  7699. if test "x$ac_ct_SOXMIX" = x; then
  7700. SOXMIX=":"
  7701. else
  7702. case $cross_compiling:$ac_tool_warned in
  7703. yes:)
  7704. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7706. ac_tool_warned=yes ;;
  7707. esac
  7708. SOXMIX=$ac_ct_SOXMIX
  7709. fi
  7710. else
  7711. SOXMIX="$ac_cv_prog_SOXMIX"
  7712. fi
  7713. if test "${SOXMIX}" != ":" ; then
  7714. cat >>confdefs.h <<\_ACEOF
  7715. #define HAVE_SOXMIX 1
  7716. _ACEOF
  7717. fi
  7718. for ac_prog in md5 md5sum gmd5sum digest
  7719. do
  7720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7721. set dummy $ac_prog; ac_word=$2
  7722. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7723. $as_echo_n "checking for $ac_word... " >&6; }
  7724. if test "${ac_cv_prog_MD5+set}" = set; then
  7725. $as_echo_n "(cached) " >&6
  7726. else
  7727. if test -n "$MD5"; then
  7728. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  7729. else
  7730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7731. for as_dir in $PATH
  7732. do
  7733. IFS=$as_save_IFS
  7734. test -z "$as_dir" && as_dir=.
  7735. for ac_exec_ext in '' $ac_executable_extensions; do
  7736. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7737. ac_cv_prog_MD5="$ac_prog"
  7738. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7739. break 2
  7740. fi
  7741. done
  7742. done
  7743. IFS=$as_save_IFS
  7744. fi
  7745. fi
  7746. MD5=$ac_cv_prog_MD5
  7747. if test -n "$MD5"; then
  7748. { $as_echo "$as_me:$LINENO: result: $MD5" >&5
  7749. $as_echo "$MD5" >&6; }
  7750. else
  7751. { $as_echo "$as_me:$LINENO: result: no" >&5
  7752. $as_echo "no" >&6; }
  7753. fi
  7754. test -n "$MD5" && break
  7755. done
  7756. if test "${MD5}" = "digest" ; then
  7757. MD5="${MD5} -a md5"
  7758. fi
  7759. ac_ext=c
  7760. ac_cpp='$CPP $CPPFLAGS'
  7761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7764. acx_pthread_ok=no
  7765. # We used to check for pthread.h first, but this fails if pthread.h
  7766. # requires special compiler flags (e.g. on True64 or Sequent).
  7767. # It gets checked for in the link test anyway.
  7768. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7769. # etcetera environment variables, and if threads linking works using
  7770. # them:
  7771. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  7772. save_CFLAGS="$CFLAGS"
  7773. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7774. save_LIBS="$LIBS"
  7775. LIBS="$PTHREAD_LIBS $LIBS"
  7776. { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  7777. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  7778. cat >conftest.$ac_ext <<_ACEOF
  7779. /* confdefs.h. */
  7780. _ACEOF
  7781. cat confdefs.h >>conftest.$ac_ext
  7782. cat >>conftest.$ac_ext <<_ACEOF
  7783. /* end confdefs.h. */
  7784. /* Override any GCC internal prototype to avoid an error.
  7785. Use char because int might match the return type of a GCC
  7786. builtin and then its argument prototype would still apply. */
  7787. #ifdef __cplusplus
  7788. extern "C"
  7789. #endif
  7790. char pthread_join ();
  7791. int
  7792. main ()
  7793. {
  7794. return pthread_join ();
  7795. ;
  7796. return 0;
  7797. }
  7798. _ACEOF
  7799. rm -f conftest.$ac_objext conftest$ac_exeext
  7800. if { (ac_try="$ac_link"
  7801. case "(($ac_try" in
  7802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7803. *) ac_try_echo=$ac_try;;
  7804. esac
  7805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7806. $as_echo "$ac_try_echo") >&5
  7807. (eval "$ac_link") 2>conftest.er1
  7808. ac_status=$?
  7809. grep -v '^ *+' conftest.er1 >conftest.err
  7810. rm -f conftest.er1
  7811. cat conftest.err >&5
  7812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7813. (exit $ac_status); } && {
  7814. test -z "$ac_c_werror_flag" ||
  7815. test ! -s conftest.err
  7816. } && test -s conftest$ac_exeext && {
  7817. test "$cross_compiling" = yes ||
  7818. $as_test_x conftest$ac_exeext
  7819. }; then
  7820. acx_pthread_ok=yes
  7821. else
  7822. $as_echo "$as_me: failed program was:" >&5
  7823. sed 's/^/| /' conftest.$ac_ext >&5
  7824. fi
  7825. rm -rf conftest.dSYM
  7826. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7827. conftest$ac_exeext conftest.$ac_ext
  7828. { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  7829. $as_echo "$acx_pthread_ok" >&6; }
  7830. if test x"$acx_pthread_ok" = xno; then
  7831. PTHREAD_LIBS=""
  7832. PTHREAD_CFLAGS=""
  7833. fi
  7834. LIBS="$save_LIBS"
  7835. CFLAGS="$save_CFLAGS"
  7836. fi
  7837. # We must check for the threads library under a number of different
  7838. # names; the ordering is very important because some systems
  7839. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7840. # libraries is broken (non-POSIX).
  7841. # Create a list of thread flags to try. Items starting with a "-" are
  7842. # C compiler flags, and other items are library names, except for "none"
  7843. # which indicates that we try without any flags at all, and "pthread-config"
  7844. # which is a program returning the flags for the Pth emulation library.
  7845. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7846. # The ordering *is* (sometimes) important. Some notes on the
  7847. # individual items follow:
  7848. # pthreads: AIX (must check this before -lpthread)
  7849. # none: in case threads are in libc; should be tried before -Kthread and
  7850. # other compiler flags to prevent continual compiler warnings
  7851. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7852. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7853. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7854. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7855. # -pthreads: Solaris/gcc
  7856. # -mthreads: Mingw32/gcc, Lynx/gcc
  7857. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7858. # doesn't hurt to check since this sometimes defines pthreads too;
  7859. # also defines -D_REENTRANT)
  7860. # ... -mt is also the pthreads flag for HP/aCC
  7861. # pthread: Linux, etcetera
  7862. # --thread-safe: KAI C++
  7863. # pthread-config: use pthread-config program (for GNU Pth library)
  7864. case "${host_cpu}-${host_os}" in
  7865. *solaris*)
  7866. # On Solaris (at least, for some versions), libc contains stubbed
  7867. # (non-functional) versions of the pthreads routines, so link-based
  7868. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  7869. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  7870. # a function called by this macro, so we could check for that, but
  7871. # who knows whether they'll stub that too in a future libc.) So,
  7872. # we'll just look for -pthreads and -lpthread first:
  7873. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  7874. ;;
  7875. esac
  7876. if test x"$acx_pthread_ok" = xno; then
  7877. for flag in $acx_pthread_flags; do
  7878. case $flag in
  7879. none)
  7880. { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  7881. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7882. ;;
  7883. -*)
  7884. { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  7885. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7886. PTHREAD_CFLAGS="$flag"
  7887. ;;
  7888. pthread-config)
  7889. # Extract the first word of "pthread-config", so it can be a program name with args.
  7890. set dummy pthread-config; ac_word=$2
  7891. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7892. $as_echo_n "checking for $ac_word... " >&6; }
  7893. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  7894. $as_echo_n "(cached) " >&6
  7895. else
  7896. if test -n "$acx_pthread_config"; then
  7897. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7898. else
  7899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7900. for as_dir in $PATH
  7901. do
  7902. IFS=$as_save_IFS
  7903. test -z "$as_dir" && as_dir=.
  7904. for ac_exec_ext in '' $ac_executable_extensions; do
  7905. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7906. ac_cv_prog_acx_pthread_config="yes"
  7907. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7908. break 2
  7909. fi
  7910. done
  7911. done
  7912. IFS=$as_save_IFS
  7913. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7914. fi
  7915. fi
  7916. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7917. if test -n "$acx_pthread_config"; then
  7918. { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  7919. $as_echo "$acx_pthread_config" >&6; }
  7920. else
  7921. { $as_echo "$as_me:$LINENO: result: no" >&5
  7922. $as_echo "no" >&6; }
  7923. fi
  7924. if test x"$acx_pthread_config" = xno; then continue; fi
  7925. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7926. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7927. ;;
  7928. *)
  7929. { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  7930. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7931. PTHREAD_LIBS="-l$flag"
  7932. ;;
  7933. esac
  7934. save_LIBS="$LIBS"
  7935. save_CFLAGS="$CFLAGS"
  7936. LIBS="$PTHREAD_LIBS $LIBS"
  7937. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7938. # Check for various functions. We must include pthread.h,
  7939. # since some functions may be macros. (On the Sequent, we
  7940. # need a special flag -Kthread to make this header compile.)
  7941. # We check for pthread_join because it is in -lpthread on IRIX
  7942. # while pthread_create is in libc. We check for pthread_attr_init
  7943. # due to DEC craziness with -lpthreads. We check for
  7944. # pthread_cleanup_push because it is one of the few pthread
  7945. # functions on Solaris that doesn't have a non-functional libc stub.
  7946. # We try pthread_create on general principles.
  7947. cat >conftest.$ac_ext <<_ACEOF
  7948. /* confdefs.h. */
  7949. _ACEOF
  7950. cat confdefs.h >>conftest.$ac_ext
  7951. cat >>conftest.$ac_ext <<_ACEOF
  7952. /* end confdefs.h. */
  7953. #include <pthread.h>
  7954. int
  7955. main ()
  7956. {
  7957. pthread_t th; pthread_join(th, 0);
  7958. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7959. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7960. ;
  7961. return 0;
  7962. }
  7963. _ACEOF
  7964. rm -f conftest.$ac_objext conftest$ac_exeext
  7965. if { (ac_try="$ac_link"
  7966. case "(($ac_try" in
  7967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7968. *) ac_try_echo=$ac_try;;
  7969. esac
  7970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7971. $as_echo "$ac_try_echo") >&5
  7972. (eval "$ac_link") 2>conftest.er1
  7973. ac_status=$?
  7974. grep -v '^ *+' conftest.er1 >conftest.err
  7975. rm -f conftest.er1
  7976. cat conftest.err >&5
  7977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7978. (exit $ac_status); } && {
  7979. test -z "$ac_c_werror_flag" ||
  7980. test ! -s conftest.err
  7981. } && test -s conftest$ac_exeext && {
  7982. test "$cross_compiling" = yes ||
  7983. $as_test_x conftest$ac_exeext
  7984. }; then
  7985. acx_pthread_ok=yes
  7986. else
  7987. $as_echo "$as_me: failed program was:" >&5
  7988. sed 's/^/| /' conftest.$ac_ext >&5
  7989. fi
  7990. rm -rf conftest.dSYM
  7991. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7992. conftest$ac_exeext conftest.$ac_ext
  7993. LIBS="$save_LIBS"
  7994. CFLAGS="$save_CFLAGS"
  7995. { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  7996. $as_echo "$acx_pthread_ok" >&6; }
  7997. if test "x$acx_pthread_ok" = xyes; then
  7998. break;
  7999. fi
  8000. PTHREAD_LIBS=""
  8001. PTHREAD_CFLAGS=""
  8002. done
  8003. fi
  8004. # Various other checks:
  8005. if test "x$acx_pthread_ok" = xyes; then
  8006. save_LIBS="$LIBS"
  8007. LIBS="$PTHREAD_LIBS $LIBS"
  8008. save_CFLAGS="$CFLAGS"
  8009. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  8010. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  8011. { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  8012. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  8013. attr_name=unknown
  8014. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  8015. cat >conftest.$ac_ext <<_ACEOF
  8016. /* confdefs.h. */
  8017. _ACEOF
  8018. cat confdefs.h >>conftest.$ac_ext
  8019. cat >>conftest.$ac_ext <<_ACEOF
  8020. /* end confdefs.h. */
  8021. #include <pthread.h>
  8022. int
  8023. main ()
  8024. {
  8025. int attr=$attr; return attr;
  8026. ;
  8027. return 0;
  8028. }
  8029. _ACEOF
  8030. rm -f conftest.$ac_objext conftest$ac_exeext
  8031. if { (ac_try="$ac_link"
  8032. case "(($ac_try" in
  8033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8034. *) ac_try_echo=$ac_try;;
  8035. esac
  8036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8037. $as_echo "$ac_try_echo") >&5
  8038. (eval "$ac_link") 2>conftest.er1
  8039. ac_status=$?
  8040. grep -v '^ *+' conftest.er1 >conftest.err
  8041. rm -f conftest.er1
  8042. cat conftest.err >&5
  8043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8044. (exit $ac_status); } && {
  8045. test -z "$ac_c_werror_flag" ||
  8046. test ! -s conftest.err
  8047. } && test -s conftest$ac_exeext && {
  8048. test "$cross_compiling" = yes ||
  8049. $as_test_x conftest$ac_exeext
  8050. }; then
  8051. attr_name=$attr; break
  8052. else
  8053. $as_echo "$as_me: failed program was:" >&5
  8054. sed 's/^/| /' conftest.$ac_ext >&5
  8055. fi
  8056. rm -rf conftest.dSYM
  8057. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8058. conftest$ac_exeext conftest.$ac_ext
  8059. done
  8060. { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
  8061. $as_echo "$attr_name" >&6; }
  8062. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  8063. cat >>confdefs.h <<_ACEOF
  8064. #define PTHREAD_CREATE_JOINABLE $attr_name
  8065. _ACEOF
  8066. fi
  8067. { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  8068. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  8069. flag=no
  8070. case "${host_cpu}-${host_os}" in
  8071. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  8072. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  8073. esac
  8074. { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
  8075. $as_echo "${flag}" >&6; }
  8076. if test "x$flag" != xno; then
  8077. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  8078. fi
  8079. LIBS="$save_LIBS"
  8080. CFLAGS="$save_CFLAGS"
  8081. # More AIX lossage: must compile with xlc_r or cc_r
  8082. if test x"$GCC" != xyes; then
  8083. for ac_prog in xlc_r cc_r
  8084. do
  8085. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8086. set dummy $ac_prog; ac_word=$2
  8087. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8088. $as_echo_n "checking for $ac_word... " >&6; }
  8089. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  8090. $as_echo_n "(cached) " >&6
  8091. else
  8092. if test -n "$PTHREAD_CC"; then
  8093. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  8094. else
  8095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8096. for as_dir in $PATH
  8097. do
  8098. IFS=$as_save_IFS
  8099. test -z "$as_dir" && as_dir=.
  8100. for ac_exec_ext in '' $ac_executable_extensions; do
  8101. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8102. ac_cv_prog_PTHREAD_CC="$ac_prog"
  8103. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8104. break 2
  8105. fi
  8106. done
  8107. done
  8108. IFS=$as_save_IFS
  8109. fi
  8110. fi
  8111. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  8112. if test -n "$PTHREAD_CC"; then
  8113. { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  8114. $as_echo "$PTHREAD_CC" >&6; }
  8115. else
  8116. { $as_echo "$as_me:$LINENO: result: no" >&5
  8117. $as_echo "no" >&6; }
  8118. fi
  8119. test -n "$PTHREAD_CC" && break
  8120. done
  8121. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  8122. else
  8123. PTHREAD_CC=$CC
  8124. fi
  8125. else
  8126. PTHREAD_CC="$CC"
  8127. fi
  8128. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  8129. if test x"$acx_pthread_ok" = xyes; then
  8130. cat >>confdefs.h <<\_ACEOF
  8131. #define HAVE_PTHREAD 1
  8132. _ACEOF
  8133. :
  8134. else
  8135. acx_pthread_ok=no
  8136. fi
  8137. ac_ext=c
  8138. ac_cpp='$CPP $CPPFLAGS'
  8139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8142. ac_ext=c
  8143. ac_cpp='$CPP $CPPFLAGS'
  8144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8147. # Check whether --enable-dev-mode was given.
  8148. if test "${enable_dev_mode+set}" = set; then
  8149. enableval=$enable_dev_mode; case "${enableval}" in
  8150. y|ye|yes) AST_DEVMODE=yes ;;
  8151. n|no) AST_DEVMODE=no ;;
  8152. noisy)
  8153. AST_DEVMODE=yes
  8154. NOISY_BUILD=yes
  8155. ;;
  8156. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
  8157. $as_echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
  8158. { (exit 1); exit 1; }; } ;;
  8159. esac
  8160. fi
  8161. AST_CODE_COVERAGE=no
  8162. # Check whether --enable-coverage was given.
  8163. if test "${enable_coverage+set}" = set; then
  8164. enableval=$enable_coverage; case "${enableval}" in
  8165. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  8166. n|no) AST_CODE_COVERAGE=no ;;
  8167. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-coverage" >&5
  8168. $as_echo "$as_me: error: bad value ${enableval} for --enable-coverage" >&2;}
  8169. { (exit 1); exit 1; }; } ;;
  8170. esac
  8171. fi
  8172. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  8173. # various packages.
  8174. # $1 is the prefix for the variables in makeopts and autoconfig.h
  8175. # $2 is the short comment, $4 is the long comment
  8176. # $3 is the name used in --with- or --without- flags for configure.
  8177. #
  8178. # Package option names should be in alphabetical order
  8179. # by the --with option name (the third field),
  8180. # to make things easier for the users.
  8181. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  8182. ALSA_OPTION="asound"
  8183. PBX_ALSA=0
  8184. # Check whether --with-asound was given.
  8185. if test "${with_asound+set}" = set; then
  8186. withval=$with_asound;
  8187. case ${withval} in
  8188. n|no)
  8189. USE_ALSA=no
  8190. # -1 is a magic value used by menuselect to know that the package
  8191. # was disabled, other than 'not found'
  8192. PBX_ALSA=-1
  8193. ;;
  8194. y|ye|yes)
  8195. ac_mandatory_list="${ac_mandatory_list} ALSA"
  8196. ;;
  8197. *)
  8198. ALSA_DIR="${withval}"
  8199. ac_mandatory_list="${ac_mandatory_list} ALSA"
  8200. ;;
  8201. esac
  8202. fi
  8203. BFD_DESCRIP="Debug symbol decoding"
  8204. BFD_OPTION="bfd"
  8205. PBX_BFD=0
  8206. # Check whether --with-bfd was given.
  8207. if test "${with_bfd+set}" = set; then
  8208. withval=$with_bfd;
  8209. case ${withval} in
  8210. n|no)
  8211. USE_BFD=no
  8212. # -1 is a magic value used by menuselect to know that the package
  8213. # was disabled, other than 'not found'
  8214. PBX_BFD=-1
  8215. ;;
  8216. y|ye|yes)
  8217. ac_mandatory_list="${ac_mandatory_list} BFD"
  8218. ;;
  8219. *)
  8220. BFD_DIR="${withval}"
  8221. ac_mandatory_list="${ac_mandatory_list} BFD"
  8222. ;;
  8223. esac
  8224. fi
  8225. # BKTR is used for backtrace support on platforms that do not
  8226. # have it natively.
  8227. BKTR_DESCRIP="Stack Backtrace"
  8228. BKTR_OPTION="execinfo"
  8229. PBX_BKTR=0
  8230. # Check whether --with-execinfo was given.
  8231. if test "${with_execinfo+set}" = set; then
  8232. withval=$with_execinfo;
  8233. case ${withval} in
  8234. n|no)
  8235. USE_BKTR=no
  8236. # -1 is a magic value used by menuselect to know that the package
  8237. # was disabled, other than 'not found'
  8238. PBX_BKTR=-1
  8239. ;;
  8240. y|ye|yes)
  8241. ac_mandatory_list="${ac_mandatory_list} BKTR"
  8242. ;;
  8243. *)
  8244. BKTR_DIR="${withval}"
  8245. ac_mandatory_list="${ac_mandatory_list} BKTR"
  8246. ;;
  8247. esac
  8248. fi
  8249. BLUETOOTH_DESCRIP="Bluetooth"
  8250. BLUETOOTH_OPTION="bluetooth"
  8251. PBX_BLUETOOTH=0
  8252. # Check whether --with-bluetooth was given.
  8253. if test "${with_bluetooth+set}" = set; then
  8254. withval=$with_bluetooth;
  8255. case ${withval} in
  8256. n|no)
  8257. USE_BLUETOOTH=no
  8258. # -1 is a magic value used by menuselect to know that the package
  8259. # was disabled, other than 'not found'
  8260. PBX_BLUETOOTH=-1
  8261. ;;
  8262. y|ye|yes)
  8263. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  8264. ;;
  8265. *)
  8266. BLUETOOTH_DIR="${withval}"
  8267. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  8268. ;;
  8269. esac
  8270. fi
  8271. CAP_DESCRIP="POSIX 1.e capabilities"
  8272. CAP_OPTION="cap"
  8273. PBX_CAP=0
  8274. # Check whether --with-cap was given.
  8275. if test "${with_cap+set}" = set; then
  8276. withval=$with_cap;
  8277. case ${withval} in
  8278. n|no)
  8279. USE_CAP=no
  8280. # -1 is a magic value used by menuselect to know that the package
  8281. # was disabled, other than 'not found'
  8282. PBX_CAP=-1
  8283. ;;
  8284. y|ye|yes)
  8285. ac_mandatory_list="${ac_mandatory_list} CAP"
  8286. ;;
  8287. *)
  8288. CAP_DIR="${withval}"
  8289. ac_mandatory_list="${ac_mandatory_list} CAP"
  8290. ;;
  8291. esac
  8292. fi
  8293. CURSES_DESCRIP="curses"
  8294. CURSES_OPTION="curses"
  8295. PBX_CURSES=0
  8296. # Check whether --with-curses was given.
  8297. if test "${with_curses+set}" = set; then
  8298. withval=$with_curses;
  8299. case ${withval} in
  8300. n|no)
  8301. USE_CURSES=no
  8302. # -1 is a magic value used by menuselect to know that the package
  8303. # was disabled, other than 'not found'
  8304. PBX_CURSES=-1
  8305. ;;
  8306. y|ye|yes)
  8307. ac_mandatory_list="${ac_mandatory_list} CURSES"
  8308. ;;
  8309. *)
  8310. CURSES_DIR="${withval}"
  8311. ac_mandatory_list="${ac_mandatory_list} CURSES"
  8312. ;;
  8313. esac
  8314. fi
  8315. CRYPTO_DESCRIP="OpenSSL Cryptography"
  8316. CRYPTO_OPTION="crypto"
  8317. PBX_CRYPTO=0
  8318. # Check whether --with-crypto was given.
  8319. if test "${with_crypto+set}" = set; then
  8320. withval=$with_crypto;
  8321. case ${withval} in
  8322. n|no)
  8323. USE_CRYPTO=no
  8324. # -1 is a magic value used by menuselect to know that the package
  8325. # was disabled, other than 'not found'
  8326. PBX_CRYPTO=-1
  8327. ;;
  8328. y|ye|yes)
  8329. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  8330. ;;
  8331. *)
  8332. CRYPTO_DIR="${withval}"
  8333. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  8334. ;;
  8335. esac
  8336. fi
  8337. DAHDI_DESCRIP="DAHDI"
  8338. DAHDI_OPTION="dahdi"
  8339. PBX_DAHDI=0
  8340. # Check whether --with-dahdi was given.
  8341. if test "${with_dahdi+set}" = set; then
  8342. withval=$with_dahdi;
  8343. case ${withval} in
  8344. n|no)
  8345. USE_DAHDI=no
  8346. # -1 is a magic value used by menuselect to know that the package
  8347. # was disabled, other than 'not found'
  8348. PBX_DAHDI=-1
  8349. ;;
  8350. y|ye|yes)
  8351. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  8352. ;;
  8353. *)
  8354. DAHDI_DIR="${withval}"
  8355. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  8356. ;;
  8357. esac
  8358. fi
  8359. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  8360. FFMPEG_OPTION="avcodec"
  8361. PBX_FFMPEG=0
  8362. # Check whether --with-avcodec was given.
  8363. if test "${with_avcodec+set}" = set; then
  8364. withval=$with_avcodec;
  8365. case ${withval} in
  8366. n|no)
  8367. USE_FFMPEG=no
  8368. # -1 is a magic value used by menuselect to know that the package
  8369. # was disabled, other than 'not found'
  8370. PBX_FFMPEG=-1
  8371. ;;
  8372. y|ye|yes)
  8373. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  8374. ;;
  8375. *)
  8376. FFMPEG_DIR="${withval}"
  8377. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  8378. ;;
  8379. esac
  8380. fi
  8381. GSM_DESCRIP="External GSM"
  8382. GSM_OPTION="gsm"
  8383. PBX_GSM=0
  8384. # Check whether --with-gsm was given.
  8385. if test "${with_gsm+set}" = set; then
  8386. withval=$with_gsm;
  8387. case ${withval} in
  8388. n|no)
  8389. USE_GSM=no
  8390. # -1 is a magic value used by menuselect to know that the package
  8391. # was disabled, other than 'not found'
  8392. PBX_GSM=-1
  8393. ;;
  8394. y|ye|yes)
  8395. ac_mandatory_list="${ac_mandatory_list} GSM"
  8396. ;;
  8397. *)
  8398. GSM_DIR="${withval}"
  8399. ac_mandatory_list="${ac_mandatory_list} GSM"
  8400. ;;
  8401. esac
  8402. fi
  8403. GTK2_DESCRIP="gtk2"
  8404. GTK2_OPTION="gtk2"
  8405. PBX_GTK2=0
  8406. # Check whether --with-gtk2 was given.
  8407. if test "${with_gtk2+set}" = set; then
  8408. withval=$with_gtk2;
  8409. case ${withval} in
  8410. n|no)
  8411. USE_GTK2=no
  8412. # -1 is a magic value used by menuselect to know that the package
  8413. # was disabled, other than 'not found'
  8414. PBX_GTK2=-1
  8415. ;;
  8416. y|ye|yes)
  8417. ac_mandatory_list="${ac_mandatory_list} GTK2"
  8418. ;;
  8419. *)
  8420. GTK2_DIR="${withval}"
  8421. ac_mandatory_list="${ac_mandatory_list} GTK2"
  8422. ;;
  8423. esac
  8424. fi
  8425. GMIME_DESCRIP="GMime"
  8426. GMIME_OPTION="gmime"
  8427. PBX_GMIME=0
  8428. # Check whether --with-gmime was given.
  8429. if test "${with_gmime+set}" = set; then
  8430. withval=$with_gmime;
  8431. case ${withval} in
  8432. n|no)
  8433. USE_GMIME=no
  8434. # -1 is a magic value used by menuselect to know that the package
  8435. # was disabled, other than 'not found'
  8436. PBX_GMIME=-1
  8437. ;;
  8438. y|ye|yes)
  8439. ac_mandatory_list="${ac_mandatory_list} GMIME"
  8440. ;;
  8441. *)
  8442. GMIME_DIR="${withval}"
  8443. ac_mandatory_list="${ac_mandatory_list} GMIME"
  8444. ;;
  8445. esac
  8446. fi
  8447. OPENH323_DESCRIP="OpenH323"
  8448. OPENH323_OPTION="h323"
  8449. PBX_OPENH323=0
  8450. # Check whether --with-h323 was given.
  8451. if test "${with_h323+set}" = set; then
  8452. withval=$with_h323;
  8453. case ${withval} in
  8454. n|no)
  8455. USE_OPENH323=no
  8456. # -1 is a magic value used by menuselect to know that the package
  8457. # was disabled, other than 'not found'
  8458. PBX_OPENH323=-1
  8459. ;;
  8460. y|ye|yes)
  8461. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  8462. ;;
  8463. *)
  8464. OPENH323_DIR="${withval}"
  8465. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  8466. ;;
  8467. esac
  8468. fi
  8469. HOARD_DESCRIP="Hoard Memory Allocator"
  8470. HOARD_OPTION="hoard"
  8471. PBX_HOARD=0
  8472. # Check whether --with-hoard was given.
  8473. if test "${with_hoard+set}" = set; then
  8474. withval=$with_hoard;
  8475. case ${withval} in
  8476. n|no)
  8477. USE_HOARD=no
  8478. # -1 is a magic value used by menuselect to know that the package
  8479. # was disabled, other than 'not found'
  8480. PBX_HOARD=-1
  8481. ;;
  8482. y|ye|yes)
  8483. ac_mandatory_list="${ac_mandatory_list} HOARD"
  8484. ;;
  8485. *)
  8486. HOARD_DIR="${withval}"
  8487. ac_mandatory_list="${ac_mandatory_list} HOARD"
  8488. ;;
  8489. esac
  8490. fi
  8491. ICAL_DESCRIP="iCal"
  8492. ICAL_OPTION="ical"
  8493. PBX_ICAL=0
  8494. # Check whether --with-ical was given.
  8495. if test "${with_ical+set}" = set; then
  8496. withval=$with_ical;
  8497. case ${withval} in
  8498. n|no)
  8499. USE_ICAL=no
  8500. # -1 is a magic value used by menuselect to know that the package
  8501. # was disabled, other than 'not found'
  8502. PBX_ICAL=-1
  8503. ;;
  8504. y|ye|yes)
  8505. ac_mandatory_list="${ac_mandatory_list} ICAL"
  8506. ;;
  8507. *)
  8508. ICAL_DIR="${withval}"
  8509. ac_mandatory_list="${ac_mandatory_list} ICAL"
  8510. ;;
  8511. esac
  8512. fi
  8513. ICONV_DESCRIP="Iconv"
  8514. ICONV_OPTION="iconv"
  8515. PBX_ICONV=0
  8516. # Check whether --with-iconv was given.
  8517. if test "${with_iconv+set}" = set; then
  8518. withval=$with_iconv;
  8519. case ${withval} in
  8520. n|no)
  8521. USE_ICONV=no
  8522. # -1 is a magic value used by menuselect to know that the package
  8523. # was disabled, other than 'not found'
  8524. PBX_ICONV=-1
  8525. ;;
  8526. y|ye|yes)
  8527. ac_mandatory_list="${ac_mandatory_list} ICONV"
  8528. ;;
  8529. *)
  8530. ICONV_DIR="${withval}"
  8531. ac_mandatory_list="${ac_mandatory_list} ICONV"
  8532. ;;
  8533. esac
  8534. fi
  8535. IKSEMEL_DESCRIP="Iksemel Jabber"
  8536. IKSEMEL_OPTION="iksemel"
  8537. PBX_IKSEMEL=0
  8538. # Check whether --with-iksemel was given.
  8539. if test "${with_iksemel+set}" = set; then
  8540. withval=$with_iksemel;
  8541. case ${withval} in
  8542. n|no)
  8543. USE_IKSEMEL=no
  8544. # -1 is a magic value used by menuselect to know that the package
  8545. # was disabled, other than 'not found'
  8546. PBX_IKSEMEL=-1
  8547. ;;
  8548. y|ye|yes)
  8549. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  8550. ;;
  8551. *)
  8552. IKSEMEL_DIR="${withval}"
  8553. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  8554. ;;
  8555. esac
  8556. fi
  8557. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  8558. IMAP_TK_OPTION="imap"
  8559. PBX_IMAP_TK=0
  8560. # Check whether --with-imap was given.
  8561. if test "${with_imap+set}" = set; then
  8562. withval=$with_imap;
  8563. case ${withval} in
  8564. n|no)
  8565. USE_IMAP_TK=no
  8566. # -1 is a magic value used by menuselect to know that the package
  8567. # was disabled, other than 'not found'
  8568. PBX_IMAP_TK=-1
  8569. ;;
  8570. y|ye|yes)
  8571. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  8572. ;;
  8573. *)
  8574. IMAP_TK_DIR="${withval}"
  8575. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  8576. ;;
  8577. esac
  8578. fi
  8579. INOTIFY_DESCRIP="inotify support"
  8580. INOTIFY_OPTION="inotify"
  8581. PBX_INOTIFY=0
  8582. # Check whether --with-inotify was given.
  8583. if test "${with_inotify+set}" = set; then
  8584. withval=$with_inotify;
  8585. case ${withval} in
  8586. n|no)
  8587. USE_INOTIFY=no
  8588. # -1 is a magic value used by menuselect to know that the package
  8589. # was disabled, other than 'not found'
  8590. PBX_INOTIFY=-1
  8591. ;;
  8592. y|ye|yes)
  8593. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  8594. ;;
  8595. *)
  8596. INOTIFY_DIR="${withval}"
  8597. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  8598. ;;
  8599. esac
  8600. fi
  8601. IODBC_DESCRIP="iODBC"
  8602. IODBC_OPTION="iodbc"
  8603. PBX_IODBC=0
  8604. # Check whether --with-iodbc was given.
  8605. if test "${with_iodbc+set}" = set; then
  8606. withval=$with_iodbc;
  8607. case ${withval} in
  8608. n|no)
  8609. USE_IODBC=no
  8610. # -1 is a magic value used by menuselect to know that the package
  8611. # was disabled, other than 'not found'
  8612. PBX_IODBC=-1
  8613. ;;
  8614. y|ye|yes)
  8615. ac_mandatory_list="${ac_mandatory_list} IODBC"
  8616. ;;
  8617. *)
  8618. IODBC_DIR="${withval}"
  8619. ac_mandatory_list="${ac_mandatory_list} IODBC"
  8620. ;;
  8621. esac
  8622. fi
  8623. ISDNNET_DESCRIP="ISDN4Linux"
  8624. ISDNNET_OPTION="isdnnet"
  8625. PBX_ISDNNET=0
  8626. # Check whether --with-isdnnet was given.
  8627. if test "${with_isdnnet+set}" = set; then
  8628. withval=$with_isdnnet;
  8629. case ${withval} in
  8630. n|no)
  8631. USE_ISDNNET=no
  8632. # -1 is a magic value used by menuselect to know that the package
  8633. # was disabled, other than 'not found'
  8634. PBX_ISDNNET=-1
  8635. ;;
  8636. y|ye|yes)
  8637. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  8638. ;;
  8639. *)
  8640. ISDNNET_DIR="${withval}"
  8641. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  8642. ;;
  8643. esac
  8644. fi
  8645. JACK_DESCRIP="Jack Audio Connection Kit"
  8646. JACK_OPTION="jack"
  8647. PBX_JACK=0
  8648. # Check whether --with-jack was given.
  8649. if test "${with_jack+set}" = set; then
  8650. withval=$with_jack;
  8651. case ${withval} in
  8652. n|no)
  8653. USE_JACK=no
  8654. # -1 is a magic value used by menuselect to know that the package
  8655. # was disabled, other than 'not found'
  8656. PBX_JACK=-1
  8657. ;;
  8658. y|ye|yes)
  8659. ac_mandatory_list="${ac_mandatory_list} JACK"
  8660. ;;
  8661. *)
  8662. JACK_DIR="${withval}"
  8663. ac_mandatory_list="${ac_mandatory_list} JACK"
  8664. ;;
  8665. esac
  8666. fi
  8667. KQUEUE_DESCRIP="kqueue support"
  8668. KQUEUE_OPTION="kqueue"
  8669. PBX_KQUEUE=0
  8670. # Check whether --with-kqueue was given.
  8671. if test "${with_kqueue+set}" = set; then
  8672. withval=$with_kqueue;
  8673. case ${withval} in
  8674. n|no)
  8675. USE_KQUEUE=no
  8676. # -1 is a magic value used by menuselect to know that the package
  8677. # was disabled, other than 'not found'
  8678. PBX_KQUEUE=-1
  8679. ;;
  8680. y|ye|yes)
  8681. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  8682. ;;
  8683. *)
  8684. KQUEUE_DIR="${withval}"
  8685. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  8686. ;;
  8687. esac
  8688. fi
  8689. LDAP_DESCRIP="OpenLDAP"
  8690. LDAP_OPTION="ldap"
  8691. PBX_LDAP=0
  8692. # Check whether --with-ldap was given.
  8693. if test "${with_ldap+set}" = set; then
  8694. withval=$with_ldap;
  8695. case ${withval} in
  8696. n|no)
  8697. USE_LDAP=no
  8698. # -1 is a magic value used by menuselect to know that the package
  8699. # was disabled, other than 'not found'
  8700. PBX_LDAP=-1
  8701. ;;
  8702. y|ye|yes)
  8703. ac_mandatory_list="${ac_mandatory_list} LDAP"
  8704. ;;
  8705. *)
  8706. LDAP_DIR="${withval}"
  8707. ac_mandatory_list="${ac_mandatory_list} LDAP"
  8708. ;;
  8709. esac
  8710. fi
  8711. # Check whether --with-libcurl was given.
  8712. if test "${with_libcurl+set}" = set; then
  8713. withval=$with_libcurl; _libcurl_with=$withval
  8714. else
  8715. _libcurl_with=yes
  8716. fi
  8717. if test "$_libcurl_with" != "no" ; then
  8718. for ac_prog in gawk mawk nawk awk
  8719. do
  8720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8721. set dummy $ac_prog; ac_word=$2
  8722. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8723. $as_echo_n "checking for $ac_word... " >&6; }
  8724. if test "${ac_cv_prog_AWK+set}" = set; then
  8725. $as_echo_n "(cached) " >&6
  8726. else
  8727. if test -n "$AWK"; then
  8728. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8729. else
  8730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8731. for as_dir in $PATH
  8732. do
  8733. IFS=$as_save_IFS
  8734. test -z "$as_dir" && as_dir=.
  8735. for ac_exec_ext in '' $ac_executable_extensions; do
  8736. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8737. ac_cv_prog_AWK="$ac_prog"
  8738. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8739. break 2
  8740. fi
  8741. done
  8742. done
  8743. IFS=$as_save_IFS
  8744. fi
  8745. fi
  8746. AWK=$ac_cv_prog_AWK
  8747. if test -n "$AWK"; then
  8748. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  8749. $as_echo "$AWK" >&6; }
  8750. else
  8751. { $as_echo "$as_me:$LINENO: result: no" >&5
  8752. $as_echo "no" >&6; }
  8753. fi
  8754. test -n "$AWK" && break
  8755. done
  8756. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  8757. _libcurl_try_link=yes
  8758. if test -d "$_libcurl_with" ; then
  8759. CURL_INCLUDE="-I$withval/include"
  8760. _libcurl_ldflags="-L$withval/lib"
  8761. # Extract the first word of "curl-config", so it can be a program name with args.
  8762. set dummy curl-config; ac_word=$2
  8763. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8764. $as_echo_n "checking for $ac_word... " >&6; }
  8765. if test "${ac_cv_path__libcurl_config+set}" = set; then
  8766. $as_echo_n "(cached) " >&6
  8767. else
  8768. case $_libcurl_config in
  8769. [\\/]* | ?:[\\/]*)
  8770. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8771. ;;
  8772. *)
  8773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8774. for as_dir in "$withval/bin"
  8775. do
  8776. IFS=$as_save_IFS
  8777. test -z "$as_dir" && as_dir=.
  8778. for ac_exec_ext in '' $ac_executable_extensions; do
  8779. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8780. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8781. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8782. break 2
  8783. fi
  8784. done
  8785. done
  8786. IFS=$as_save_IFS
  8787. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  8788. ;;
  8789. esac
  8790. fi
  8791. _libcurl_config=$ac_cv_path__libcurl_config
  8792. if test -n "$_libcurl_config"; then
  8793. { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
  8794. $as_echo "$_libcurl_config" >&6; }
  8795. else
  8796. { $as_echo "$as_me:$LINENO: result: no" >&5
  8797. $as_echo "no" >&6; }
  8798. fi
  8799. else
  8800. # Extract the first word of "curl-config", so it can be a program name with args.
  8801. set dummy curl-config; ac_word=$2
  8802. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8803. $as_echo_n "checking for $ac_word... " >&6; }
  8804. if test "${ac_cv_path__libcurl_config+set}" = set; then
  8805. $as_echo_n "(cached) " >&6
  8806. else
  8807. case $_libcurl_config in
  8808. [\\/]* | ?:[\\/]*)
  8809. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8810. ;;
  8811. *)
  8812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8813. for as_dir in $PATH
  8814. do
  8815. IFS=$as_save_IFS
  8816. test -z "$as_dir" && as_dir=.
  8817. for ac_exec_ext in '' $ac_executable_extensions; do
  8818. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8819. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8820. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8821. break 2
  8822. fi
  8823. done
  8824. done
  8825. IFS=$as_save_IFS
  8826. ;;
  8827. esac
  8828. fi
  8829. _libcurl_config=$ac_cv_path__libcurl_config
  8830. if test -n "$_libcurl_config"; then
  8831. { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
  8832. $as_echo "$_libcurl_config" >&6; }
  8833. else
  8834. { $as_echo "$as_me:$LINENO: result: no" >&5
  8835. $as_echo "no" >&6; }
  8836. fi
  8837. fi
  8838. if test x$_libcurl_config != "x" ; then
  8839. { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
  8840. $as_echo_n "checking for the version of libcurl... " >&6; }
  8841. if test "${libcurl_cv_lib_curl_version+set}" = set; then
  8842. $as_echo_n "(cached) " >&6
  8843. else
  8844. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  8845. fi
  8846. { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
  8847. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  8848. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  8849. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  8850. if test $_libcurl_wanted -gt 0 ; then
  8851. { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.1" >&5
  8852. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  8853. if test "${libcurl_cv_lib_version_ok+set}" = set; then
  8854. $as_echo_n "(cached) " >&6
  8855. else
  8856. if test $_libcurl_version -ge $_libcurl_wanted ; then
  8857. libcurl_cv_lib_version_ok=yes
  8858. else
  8859. libcurl_cv_lib_version_ok=no
  8860. fi
  8861. fi
  8862. { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
  8863. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  8864. fi
  8865. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  8866. if test x"$CURL_INCLUDE" = "x" ; then
  8867. CURL_INCLUDE=`$_libcurl_config --cflags`
  8868. fi
  8869. if test x"$CURL_LIB" = "x" ; then
  8870. CURL_LIB=`$_libcurl_config --libs`
  8871. # This is so silly, but Apple actually has a bug in their
  8872. # curl-config script. Fixed in Tiger, but there are still
  8873. # lots of Panther installs around.
  8874. case "${host}" in
  8875. powerpc-apple-darwin7*)
  8876. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  8877. ;;
  8878. esac
  8879. fi
  8880. # All curl-config scripts support --feature
  8881. _libcurl_features=`$_libcurl_config --feature`
  8882. # Is it modern enough to have --protocols? (7.12.4)
  8883. if test $_libcurl_version -ge 461828 ; then
  8884. _libcurl_protocols=`$_libcurl_config --protocols`
  8885. fi
  8886. else
  8887. _libcurl_try_link=no
  8888. fi
  8889. unset _libcurl_wanted
  8890. fi
  8891. if test $_libcurl_try_link = yes ; then
  8892. # we didn't find curl-config, so let's see if the user-supplied
  8893. # link line (or failing that, "-lcurl") is enough.
  8894. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  8895. { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
  8896. $as_echo_n "checking whether libcurl is usable... " >&6; }
  8897. if test "${libcurl_cv_lib_curl_usable+set}" = set; then
  8898. $as_echo_n "(cached) " >&6
  8899. else
  8900. _libcurl_save_cppflags=$CPPFLAGS
  8901. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  8902. _libcurl_save_libs=$LIBS
  8903. LIBS="$CURL_LIB $LIBS"
  8904. cat >conftest.$ac_ext <<_ACEOF
  8905. /* confdefs.h. */
  8906. _ACEOF
  8907. cat confdefs.h >>conftest.$ac_ext
  8908. cat >>conftest.$ac_ext <<_ACEOF
  8909. /* end confdefs.h. */
  8910. #include <curl/curl.h>
  8911. int
  8912. main ()
  8913. {
  8914. /* Try and use a few common options to force a failure if we are
  8915. missing symbols or can't link. */
  8916. int x;
  8917. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  8918. x=CURL_ERROR_SIZE;
  8919. x=CURLOPT_WRITEFUNCTION;
  8920. x=CURLOPT_FILE;
  8921. x=CURLOPT_ERRORBUFFER;
  8922. x=CURLOPT_STDERR;
  8923. x=CURLOPT_VERBOSE;
  8924. ;
  8925. return 0;
  8926. }
  8927. _ACEOF
  8928. rm -f conftest.$ac_objext conftest$ac_exeext
  8929. if { (ac_try="$ac_link"
  8930. case "(($ac_try" in
  8931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8932. *) ac_try_echo=$ac_try;;
  8933. esac
  8934. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8935. $as_echo "$ac_try_echo") >&5
  8936. (eval "$ac_link") 2>conftest.er1
  8937. ac_status=$?
  8938. grep -v '^ *+' conftest.er1 >conftest.err
  8939. rm -f conftest.er1
  8940. cat conftest.err >&5
  8941. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8942. (exit $ac_status); } && {
  8943. test -z "$ac_c_werror_flag" ||
  8944. test ! -s conftest.err
  8945. } && test -s conftest$ac_exeext && {
  8946. test "$cross_compiling" = yes ||
  8947. $as_test_x conftest$ac_exeext
  8948. }; then
  8949. libcurl_cv_lib_curl_usable=yes
  8950. else
  8951. $as_echo "$as_me: failed program was:" >&5
  8952. sed 's/^/| /' conftest.$ac_ext >&5
  8953. libcurl_cv_lib_curl_usable=no
  8954. fi
  8955. rm -rf conftest.dSYM
  8956. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8957. conftest$ac_exeext conftest.$ac_ext
  8958. CPPFLAGS=$_libcurl_save_cppflags
  8959. LIBS=$_libcurl_save_libs
  8960. unset _libcurl_save_cppflags
  8961. unset _libcurl_save_libs
  8962. fi
  8963. { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
  8964. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  8965. if test $libcurl_cv_lib_curl_usable = yes ; then
  8966. # Does curl_free() exist in this version of libcurl?
  8967. # If not, fake it with free()
  8968. _libcurl_save_cppflags=$CPPFLAGS
  8969. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  8970. _libcurl_save_libs=$LIBS
  8971. LIBS="$LIBS $CURL_LIB"
  8972. { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
  8973. $as_echo_n "checking for curl_free... " >&6; }
  8974. if test "${ac_cv_func_curl_free+set}" = set; then
  8975. $as_echo_n "(cached) " >&6
  8976. else
  8977. cat >conftest.$ac_ext <<_ACEOF
  8978. /* confdefs.h. */
  8979. _ACEOF
  8980. cat confdefs.h >>conftest.$ac_ext
  8981. cat >>conftest.$ac_ext <<_ACEOF
  8982. /* end confdefs.h. */
  8983. /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
  8984. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8985. #define curl_free innocuous_curl_free
  8986. /* System header to define __stub macros and hopefully few prototypes,
  8987. which can conflict with char curl_free (); below.
  8988. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8989. <limits.h> exists even on freestanding compilers. */
  8990. #ifdef __STDC__
  8991. # include <limits.h>
  8992. #else
  8993. # include <assert.h>
  8994. #endif
  8995. #undef curl_free
  8996. /* Override any GCC internal prototype to avoid an error.
  8997. Use char because int might match the return type of a GCC
  8998. builtin and then its argument prototype would still apply. */
  8999. #ifdef __cplusplus
  9000. extern "C"
  9001. #endif
  9002. char curl_free ();
  9003. /* The GNU C library defines this for functions which it implements
  9004. to always fail with ENOSYS. Some functions are actually named
  9005. something starting with __ and the normal name is an alias. */
  9006. #if defined __stub_curl_free || defined __stub___curl_free
  9007. choke me
  9008. #endif
  9009. int
  9010. main ()
  9011. {
  9012. return curl_free ();
  9013. ;
  9014. return 0;
  9015. }
  9016. _ACEOF
  9017. rm -f conftest.$ac_objext conftest$ac_exeext
  9018. if { (ac_try="$ac_link"
  9019. case "(($ac_try" in
  9020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9021. *) ac_try_echo=$ac_try;;
  9022. esac
  9023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9024. $as_echo "$ac_try_echo") >&5
  9025. (eval "$ac_link") 2>conftest.er1
  9026. ac_status=$?
  9027. grep -v '^ *+' conftest.er1 >conftest.err
  9028. rm -f conftest.er1
  9029. cat conftest.err >&5
  9030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9031. (exit $ac_status); } && {
  9032. test -z "$ac_c_werror_flag" ||
  9033. test ! -s conftest.err
  9034. } && test -s conftest$ac_exeext && {
  9035. test "$cross_compiling" = yes ||
  9036. $as_test_x conftest$ac_exeext
  9037. }; then
  9038. ac_cv_func_curl_free=yes
  9039. else
  9040. $as_echo "$as_me: failed program was:" >&5
  9041. sed 's/^/| /' conftest.$ac_ext >&5
  9042. ac_cv_func_curl_free=no
  9043. fi
  9044. rm -rf conftest.dSYM
  9045. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9046. conftest$ac_exeext conftest.$ac_ext
  9047. fi
  9048. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
  9049. $as_echo "$ac_cv_func_curl_free" >&6; }
  9050. if test "x$ac_cv_func_curl_free" = x""yes; then
  9051. :
  9052. else
  9053. cat >>confdefs.h <<\_ACEOF
  9054. #define curl_free free
  9055. _ACEOF
  9056. fi
  9057. CPPFLAGS=$_libcurl_save_cppflags
  9058. LIBS=$_libcurl_save_libs
  9059. unset _libcurl_save_cppflags
  9060. unset _libcurl_save_libs
  9061. cat >>confdefs.h <<\_ACEOF
  9062. #define HAVE_CURL 1
  9063. _ACEOF
  9064. PBX_CURL=1
  9065. for _libcurl_feature in $_libcurl_features ; do
  9066. cat >>confdefs.h <<_ACEOF
  9067. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  9068. _ACEOF
  9069. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  9070. done
  9071. if test "x$_libcurl_protocols" = "x" ; then
  9072. # We don't have --protocols, so just assume that all
  9073. # protocols are available
  9074. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  9075. if test x$libcurl_feature_SSL = xyes ; then
  9076. _libcurl_protocols="$_libcurl_protocols HTTPS"
  9077. # FTPS wasn't standards-compliant until version
  9078. # 7.11.0
  9079. if test $_libcurl_version -ge 461568; then
  9080. _libcurl_protocols="$_libcurl_protocols FTPS"
  9081. fi
  9082. fi
  9083. fi
  9084. for _libcurl_protocol in $_libcurl_protocols ; do
  9085. cat >>confdefs.h <<_ACEOF
  9086. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  9087. _ACEOF
  9088. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  9089. done
  9090. else
  9091. unset CURL_LIB
  9092. unset CURL_INCLUDE
  9093. PBX_CURL=0
  9094. fi
  9095. fi
  9096. unset _libcurl_try_link
  9097. unset _libcurl_version_parse
  9098. unset _libcurl_config
  9099. unset _libcurl_feature
  9100. unset _libcurl_features
  9101. unset _libcurl_protocol
  9102. unset _libcurl_protocols
  9103. unset _libcurl_version
  9104. unset _libcurl_ldflags
  9105. fi
  9106. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  9107. # This is the IF-NO path
  9108. :
  9109. else
  9110. # This is the IF-YES path
  9111. :
  9112. fi
  9113. unset _libcurl_with
  9114. LIBXML2_DESCRIP="LibXML2"
  9115. LIBXML2_OPTION="libxml2"
  9116. PBX_LIBXML2=0
  9117. # Check whether --with-libxml2 was given.
  9118. if test "${with_libxml2+set}" = set; then
  9119. withval=$with_libxml2;
  9120. case ${withval} in
  9121. n|no)
  9122. USE_LIBXML2=no
  9123. # -1 is a magic value used by menuselect to know that the package
  9124. # was disabled, other than 'not found'
  9125. PBX_LIBXML2=-1
  9126. ;;
  9127. y|ye|yes)
  9128. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  9129. ;;
  9130. *)
  9131. LIBXML2_DIR="${withval}"
  9132. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  9133. ;;
  9134. esac
  9135. fi
  9136. LTDL_DESCRIP="libtool"
  9137. LTDL_OPTION="ltdl"
  9138. PBX_LTDL=0
  9139. # Check whether --with-ltdl was given.
  9140. if test "${with_ltdl+set}" = set; then
  9141. withval=$with_ltdl;
  9142. case ${withval} in
  9143. n|no)
  9144. USE_LTDL=no
  9145. # -1 is a magic value used by menuselect to know that the package
  9146. # was disabled, other than 'not found'
  9147. PBX_LTDL=-1
  9148. ;;
  9149. y|ye|yes)
  9150. ac_mandatory_list="${ac_mandatory_list} LTDL"
  9151. ;;
  9152. *)
  9153. LTDL_DIR="${withval}"
  9154. ac_mandatory_list="${ac_mandatory_list} LTDL"
  9155. ;;
  9156. esac
  9157. fi
  9158. LUA_DESCRIP="Lua"
  9159. LUA_OPTION="lua"
  9160. PBX_LUA=0
  9161. # Check whether --with-lua was given.
  9162. if test "${with_lua+set}" = set; then
  9163. withval=$with_lua;
  9164. case ${withval} in
  9165. n|no)
  9166. USE_LUA=no
  9167. # -1 is a magic value used by menuselect to know that the package
  9168. # was disabled, other than 'not found'
  9169. PBX_LUA=-1
  9170. ;;
  9171. y|ye|yes)
  9172. ac_mandatory_list="${ac_mandatory_list} LUA"
  9173. ;;
  9174. *)
  9175. LUA_DIR="${withval}"
  9176. ac_mandatory_list="${ac_mandatory_list} LUA"
  9177. ;;
  9178. esac
  9179. fi
  9180. MISDN_DESCRIP="mISDN user"
  9181. MISDN_OPTION="misdn"
  9182. PBX_MISDN=0
  9183. # Check whether --with-misdn was given.
  9184. if test "${with_misdn+set}" = set; then
  9185. withval=$with_misdn;
  9186. case ${withval} in
  9187. n|no)
  9188. USE_MISDN=no
  9189. # -1 is a magic value used by menuselect to know that the package
  9190. # was disabled, other than 'not found'
  9191. PBX_MISDN=-1
  9192. ;;
  9193. y|ye|yes)
  9194. ac_mandatory_list="${ac_mandatory_list} MISDN"
  9195. ;;
  9196. *)
  9197. MISDN_DIR="${withval}"
  9198. ac_mandatory_list="${ac_mandatory_list} MISDN"
  9199. ;;
  9200. esac
  9201. fi
  9202. MYSQLCLIENT_DESCRIP="MySQL client"
  9203. MYSQLCLIENT_OPTION="mysqlclient"
  9204. PBX_MYSQLCLIENT=0
  9205. # Check whether --with-mysqlclient was given.
  9206. if test "${with_mysqlclient+set}" = set; then
  9207. withval=$with_mysqlclient;
  9208. case ${withval} in
  9209. n|no)
  9210. USE_MYSQLCLIENT=no
  9211. # -1 is a magic value used by menuselect to know that the package
  9212. # was disabled, other than 'not found'
  9213. PBX_MYSQLCLIENT=-1
  9214. ;;
  9215. y|ye|yes)
  9216. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  9217. ;;
  9218. *)
  9219. MYSQLCLIENT_DIR="${withval}"
  9220. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  9221. ;;
  9222. esac
  9223. fi
  9224. NBS_DESCRIP="Network Broadcast Sound"
  9225. NBS_OPTION="nbs"
  9226. PBX_NBS=0
  9227. # Check whether --with-nbs was given.
  9228. if test "${with_nbs+set}" = set; then
  9229. withval=$with_nbs;
  9230. case ${withval} in
  9231. n|no)
  9232. USE_NBS=no
  9233. # -1 is a magic value used by menuselect to know that the package
  9234. # was disabled, other than 'not found'
  9235. PBX_NBS=-1
  9236. ;;
  9237. y|ye|yes)
  9238. ac_mandatory_list="${ac_mandatory_list} NBS"
  9239. ;;
  9240. *)
  9241. NBS_DIR="${withval}"
  9242. ac_mandatory_list="${ac_mandatory_list} NBS"
  9243. ;;
  9244. esac
  9245. fi
  9246. NCURSES_DESCRIP="ncurses"
  9247. NCURSES_OPTION="ncurses"
  9248. PBX_NCURSES=0
  9249. # Check whether --with-ncurses was given.
  9250. if test "${with_ncurses+set}" = set; then
  9251. withval=$with_ncurses;
  9252. case ${withval} in
  9253. n|no)
  9254. USE_NCURSES=no
  9255. # -1 is a magic value used by menuselect to know that the package
  9256. # was disabled, other than 'not found'
  9257. PBX_NCURSES=-1
  9258. ;;
  9259. y|ye|yes)
  9260. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  9261. ;;
  9262. *)
  9263. NCURSES_DIR="${withval}"
  9264. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  9265. ;;
  9266. esac
  9267. fi
  9268. NEON_DESCRIP="neon"
  9269. NEON_OPTION="neon"
  9270. PBX_NEON=0
  9271. # Check whether --with-neon was given.
  9272. if test "${with_neon+set}" = set; then
  9273. withval=$with_neon;
  9274. case ${withval} in
  9275. n|no)
  9276. USE_NEON=no
  9277. # -1 is a magic value used by menuselect to know that the package
  9278. # was disabled, other than 'not found'
  9279. PBX_NEON=-1
  9280. ;;
  9281. y|ye|yes)
  9282. ac_mandatory_list="${ac_mandatory_list} NEON"
  9283. ;;
  9284. *)
  9285. NEON_DIR="${withval}"
  9286. ac_mandatory_list="${ac_mandatory_list} NEON"
  9287. ;;
  9288. esac
  9289. fi
  9290. NEON29_DESCRIP="neon29"
  9291. NEON29_OPTION="neon29"
  9292. PBX_NEON29=0
  9293. # Check whether --with-neon29 was given.
  9294. if test "${with_neon29+set}" = set; then
  9295. withval=$with_neon29;
  9296. case ${withval} in
  9297. n|no)
  9298. USE_NEON29=no
  9299. # -1 is a magic value used by menuselect to know that the package
  9300. # was disabled, other than 'not found'
  9301. PBX_NEON29=-1
  9302. ;;
  9303. y|ye|yes)
  9304. ac_mandatory_list="${ac_mandatory_list} NEON29"
  9305. ;;
  9306. *)
  9307. NEON29_DIR="${withval}"
  9308. ac_mandatory_list="${ac_mandatory_list} NEON29"
  9309. ;;
  9310. esac
  9311. fi
  9312. NETSNMP_DESCRIP="Net-SNMP"
  9313. NETSNMP_OPTION="netsnmp"
  9314. PBX_NETSNMP=0
  9315. # Check whether --with-netsnmp was given.
  9316. if test "${with_netsnmp+set}" = set; then
  9317. withval=$with_netsnmp;
  9318. case ${withval} in
  9319. n|no)
  9320. USE_NETSNMP=no
  9321. # -1 is a magic value used by menuselect to know that the package
  9322. # was disabled, other than 'not found'
  9323. PBX_NETSNMP=-1
  9324. ;;
  9325. y|ye|yes)
  9326. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  9327. ;;
  9328. *)
  9329. NETSNMP_DIR="${withval}"
  9330. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  9331. ;;
  9332. esac
  9333. fi
  9334. NEWT_DESCRIP="newt"
  9335. NEWT_OPTION="newt"
  9336. PBX_NEWT=0
  9337. # Check whether --with-newt was given.
  9338. if test "${with_newt+set}" = set; then
  9339. withval=$with_newt;
  9340. case ${withval} in
  9341. n|no)
  9342. USE_NEWT=no
  9343. # -1 is a magic value used by menuselect to know that the package
  9344. # was disabled, other than 'not found'
  9345. PBX_NEWT=-1
  9346. ;;
  9347. y|ye|yes)
  9348. ac_mandatory_list="${ac_mandatory_list} NEWT"
  9349. ;;
  9350. *)
  9351. NEWT_DIR="${withval}"
  9352. ac_mandatory_list="${ac_mandatory_list} NEWT"
  9353. ;;
  9354. esac
  9355. fi
  9356. OGG_DESCRIP="OGG"
  9357. OGG_OPTION="ogg"
  9358. PBX_OGG=0
  9359. # Check whether --with-ogg was given.
  9360. if test "${with_ogg+set}" = set; then
  9361. withval=$with_ogg;
  9362. case ${withval} in
  9363. n|no)
  9364. USE_OGG=no
  9365. # -1 is a magic value used by menuselect to know that the package
  9366. # was disabled, other than 'not found'
  9367. PBX_OGG=-1
  9368. ;;
  9369. y|ye|yes)
  9370. ac_mandatory_list="${ac_mandatory_list} OGG"
  9371. ;;
  9372. *)
  9373. OGG_DIR="${withval}"
  9374. ac_mandatory_list="${ac_mandatory_list} OGG"
  9375. ;;
  9376. esac
  9377. fi
  9378. OPENAIS_DESCRIP="OpenAIS"
  9379. OPENAIS_OPTION="openais"
  9380. PBX_OPENAIS=0
  9381. # Check whether --with-openais was given.
  9382. if test "${with_openais+set}" = set; then
  9383. withval=$with_openais;
  9384. case ${withval} in
  9385. n|no)
  9386. USE_OPENAIS=no
  9387. # -1 is a magic value used by menuselect to know that the package
  9388. # was disabled, other than 'not found'
  9389. PBX_OPENAIS=-1
  9390. ;;
  9391. y|ye|yes)
  9392. ac_mandatory_list="${ac_mandatory_list} OPENAIS"
  9393. ;;
  9394. *)
  9395. OPENAIS_DIR="${withval}"
  9396. ac_mandatory_list="${ac_mandatory_list} OPENAIS"
  9397. ;;
  9398. esac
  9399. fi
  9400. OPENR2_DESCRIP="MFR2"
  9401. OPENR2_OPTION="openr2"
  9402. PBX_OPENR2=0
  9403. # Check whether --with-openr2 was given.
  9404. if test "${with_openr2+set}" = set; then
  9405. withval=$with_openr2;
  9406. case ${withval} in
  9407. n|no)
  9408. USE_OPENR2=no
  9409. # -1 is a magic value used by menuselect to know that the package
  9410. # was disabled, other than 'not found'
  9411. PBX_OPENR2=-1
  9412. ;;
  9413. y|ye|yes)
  9414. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  9415. ;;
  9416. *)
  9417. OPENR2_DIR="${withval}"
  9418. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  9419. ;;
  9420. esac
  9421. fi
  9422. OSPTK_DESCRIP="OSP Toolkit"
  9423. OSPTK_OPTION="osptk"
  9424. PBX_OSPTK=0
  9425. # Check whether --with-osptk was given.
  9426. if test "${with_osptk+set}" = set; then
  9427. withval=$with_osptk;
  9428. case ${withval} in
  9429. n|no)
  9430. USE_OSPTK=no
  9431. # -1 is a magic value used by menuselect to know that the package
  9432. # was disabled, other than 'not found'
  9433. PBX_OSPTK=-1
  9434. ;;
  9435. y|ye|yes)
  9436. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  9437. ;;
  9438. *)
  9439. OSPTK_DIR="${withval}"
  9440. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  9441. ;;
  9442. esac
  9443. fi
  9444. OSS_DESCRIP="Open Sound System"
  9445. OSS_OPTION="oss"
  9446. PBX_OSS=0
  9447. # Check whether --with-oss was given.
  9448. if test "${with_oss+set}" = set; then
  9449. withval=$with_oss;
  9450. case ${withval} in
  9451. n|no)
  9452. USE_OSS=no
  9453. # -1 is a magic value used by menuselect to know that the package
  9454. # was disabled, other than 'not found'
  9455. PBX_OSS=-1
  9456. ;;
  9457. y|ye|yes)
  9458. ac_mandatory_list="${ac_mandatory_list} OSS"
  9459. ;;
  9460. *)
  9461. OSS_DIR="${withval}"
  9462. ac_mandatory_list="${ac_mandatory_list} OSS"
  9463. ;;
  9464. esac
  9465. fi
  9466. PGSQL_DESCRIP="PostgreSQL"
  9467. PGSQL_OPTION="postgres"
  9468. PBX_PGSQL=0
  9469. # Check whether --with-postgres was given.
  9470. if test "${with_postgres+set}" = set; then
  9471. withval=$with_postgres;
  9472. case ${withval} in
  9473. n|no)
  9474. USE_PGSQL=no
  9475. # -1 is a magic value used by menuselect to know that the package
  9476. # was disabled, other than 'not found'
  9477. PBX_PGSQL=-1
  9478. ;;
  9479. y|ye|yes)
  9480. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  9481. ;;
  9482. *)
  9483. PGSQL_DIR="${withval}"
  9484. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  9485. ;;
  9486. esac
  9487. fi
  9488. POPT_DESCRIP="popt"
  9489. POPT_OPTION="popt"
  9490. PBX_POPT=0
  9491. # Check whether --with-popt was given.
  9492. if test "${with_popt+set}" = set; then
  9493. withval=$with_popt;
  9494. case ${withval} in
  9495. n|no)
  9496. USE_POPT=no
  9497. # -1 is a magic value used by menuselect to know that the package
  9498. # was disabled, other than 'not found'
  9499. PBX_POPT=-1
  9500. ;;
  9501. y|ye|yes)
  9502. ac_mandatory_list="${ac_mandatory_list} POPT"
  9503. ;;
  9504. *)
  9505. POPT_DIR="${withval}"
  9506. ac_mandatory_list="${ac_mandatory_list} POPT"
  9507. ;;
  9508. esac
  9509. fi
  9510. PORTAUDIO_DESCRIP="PortAudio"
  9511. PORTAUDIO_OPTION="portaudio"
  9512. PBX_PORTAUDIO=0
  9513. # Check whether --with-portaudio was given.
  9514. if test "${with_portaudio+set}" = set; then
  9515. withval=$with_portaudio;
  9516. case ${withval} in
  9517. n|no)
  9518. USE_PORTAUDIO=no
  9519. # -1 is a magic value used by menuselect to know that the package
  9520. # was disabled, other than 'not found'
  9521. PBX_PORTAUDIO=-1
  9522. ;;
  9523. y|ye|yes)
  9524. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  9525. ;;
  9526. *)
  9527. PORTAUDIO_DIR="${withval}"
  9528. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  9529. ;;
  9530. esac
  9531. fi
  9532. PRI_DESCRIP="ISDN PRI"
  9533. PRI_OPTION="pri"
  9534. PBX_PRI=0
  9535. # Check whether --with-pri was given.
  9536. if test "${with_pri+set}" = set; then
  9537. withval=$with_pri;
  9538. case ${withval} in
  9539. n|no)
  9540. USE_PRI=no
  9541. # -1 is a magic value used by menuselect to know that the package
  9542. # was disabled, other than 'not found'
  9543. PBX_PRI=-1
  9544. ;;
  9545. y|ye|yes)
  9546. ac_mandatory_list="${ac_mandatory_list} PRI"
  9547. ;;
  9548. *)
  9549. PRI_DIR="${withval}"
  9550. ac_mandatory_list="${ac_mandatory_list} PRI"
  9551. ;;
  9552. esac
  9553. fi
  9554. PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
  9555. PRI_L2_PERSISTENCE_OPTION=pri
  9556. PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
  9557. PBX_PRI_L2_PERSISTENCE=0
  9558. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  9559. PRI_MWI_OPTION=pri
  9560. PRI_MWI_DIR=${PRI_DIR}
  9561. PBX_PRI_MWI=0
  9562. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  9563. PRI_MCID_OPTION=pri
  9564. PRI_MCID_DIR=${PRI_DIR}
  9565. PBX_PRI_MCID=0
  9566. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  9567. PRI_CALL_WAITING_OPTION=pri
  9568. PRI_CALL_WAITING_DIR=${PRI_DIR}
  9569. PBX_PRI_CALL_WAITING=0
  9570. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  9571. PRI_AOC_EVENTS_OPTION=pri
  9572. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  9573. PBX_PRI_AOC_EVENTS=0
  9574. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  9575. PRI_TRANSFER_OPTION=pri
  9576. PRI_TRANSFER_DIR=${PRI_DIR}
  9577. PBX_PRI_TRANSFER=0
  9578. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  9579. PRI_CCSS_OPTION=pri
  9580. PRI_CCSS_DIR=${PRI_DIR}
  9581. PBX_PRI_CCSS=0
  9582. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  9583. PRI_HANGUP_FIX_OPTION=pri
  9584. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  9585. PBX_PRI_HANGUP_FIX=0
  9586. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  9587. PRI_SUBADDR_OPTION=pri
  9588. PRI_SUBADDR_DIR=${PRI_DIR}
  9589. PBX_PRI_SUBADDR=0
  9590. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  9591. PRI_CALL_HOLD_OPTION=pri
  9592. PRI_CALL_HOLD_DIR=${PRI_DIR}
  9593. PBX_PRI_CALL_HOLD=0
  9594. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  9595. PRI_CALL_REROUTING_OPTION=pri
  9596. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  9597. PBX_PRI_CALL_REROUTING=0
  9598. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  9599. PRI_SETUP_KEYPAD_OPTION=pri
  9600. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  9601. PBX_PRI_SETUP_KEYPAD=0
  9602. # ------------------------------------v
  9603. # TODO: The code can be changed to always include these features now.
  9604. # These features will always be present if pri_connected_line_update is available.
  9605. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  9606. PRI_INBANDDISCONNECT_OPTION=pri
  9607. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  9608. PBX_PRI_INBANDDISCONNECT=0
  9609. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  9610. PRI_PROG_W_CAUSE_OPTION=pri
  9611. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  9612. PBX_PRI_PROG_W_CAUSE=0
  9613. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  9614. PRI_SERVICE_MESSAGES_OPTION=pri
  9615. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  9616. PBX_PRI_SERVICE_MESSAGES=0
  9617. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  9618. PRI_REVERSE_CHARGE_OPTION=pri
  9619. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  9620. PBX_PRI_REVERSE_CHARGE=0
  9621. # ------------------------------------^
  9622. PWLIB_DESCRIP="PWlib"
  9623. PWLIB_OPTION="pwlib"
  9624. PBX_PWLIB=0
  9625. # Check whether --with-pwlib was given.
  9626. if test "${with_pwlib+set}" = set; then
  9627. withval=$with_pwlib;
  9628. case ${withval} in
  9629. n|no)
  9630. USE_PWLIB=no
  9631. # -1 is a magic value used by menuselect to know that the package
  9632. # was disabled, other than 'not found'
  9633. PBX_PWLIB=-1
  9634. ;;
  9635. y|ye|yes)
  9636. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  9637. ;;
  9638. *)
  9639. PWLIB_DIR="${withval}"
  9640. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  9641. ;;
  9642. esac
  9643. fi
  9644. RADIUS_DESCRIP="Radius Client"
  9645. RADIUS_OPTION="radius"
  9646. PBX_RADIUS=0
  9647. # Check whether --with-radius was given.
  9648. if test "${with_radius+set}" = set; then
  9649. withval=$with_radius;
  9650. case ${withval} in
  9651. n|no)
  9652. USE_RADIUS=no
  9653. # -1 is a magic value used by menuselect to know that the package
  9654. # was disabled, other than 'not found'
  9655. PBX_RADIUS=-1
  9656. ;;
  9657. y|ye|yes)
  9658. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  9659. ;;
  9660. *)
  9661. RADIUS_DIR="${withval}"
  9662. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  9663. ;;
  9664. esac
  9665. fi
  9666. RESAMPLE_DESCRIP="LIBRESAMPLE"
  9667. RESAMPLE_OPTION="resample"
  9668. PBX_RESAMPLE=0
  9669. # Check whether --with-resample was given.
  9670. if test "${with_resample+set}" = set; then
  9671. withval=$with_resample;
  9672. case ${withval} in
  9673. n|no)
  9674. USE_RESAMPLE=no
  9675. # -1 is a magic value used by menuselect to know that the package
  9676. # was disabled, other than 'not found'
  9677. PBX_RESAMPLE=-1
  9678. ;;
  9679. y|ye|yes)
  9680. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  9681. ;;
  9682. *)
  9683. RESAMPLE_DIR="${withval}"
  9684. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  9685. ;;
  9686. esac
  9687. fi
  9688. SDL_DESCRIP="Sdl"
  9689. SDL_OPTION="sdl"
  9690. PBX_SDL=0
  9691. # Check whether --with-sdl was given.
  9692. if test "${with_sdl+set}" = set; then
  9693. withval=$with_sdl;
  9694. case ${withval} in
  9695. n|no)
  9696. USE_SDL=no
  9697. # -1 is a magic value used by menuselect to know that the package
  9698. # was disabled, other than 'not found'
  9699. PBX_SDL=-1
  9700. ;;
  9701. y|ye|yes)
  9702. ac_mandatory_list="${ac_mandatory_list} SDL"
  9703. ;;
  9704. *)
  9705. SDL_DIR="${withval}"
  9706. ac_mandatory_list="${ac_mandatory_list} SDL"
  9707. ;;
  9708. esac
  9709. fi
  9710. SDL_IMAGE_DESCRIP="Sdl Image"
  9711. SDL_IMAGE_OPTION="SDL_image"
  9712. PBX_SDL_IMAGE=0
  9713. # Check whether --with-SDL_image was given.
  9714. if test "${with_SDL_image+set}" = set; then
  9715. withval=$with_SDL_image;
  9716. case ${withval} in
  9717. n|no)
  9718. USE_SDL_IMAGE=no
  9719. # -1 is a magic value used by menuselect to know that the package
  9720. # was disabled, other than 'not found'
  9721. PBX_SDL_IMAGE=-1
  9722. ;;
  9723. y|ye|yes)
  9724. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  9725. ;;
  9726. *)
  9727. SDL_IMAGE_DIR="${withval}"
  9728. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  9729. ;;
  9730. esac
  9731. fi
  9732. # Check whether --with-sounds-cache was given.
  9733. if test "${with_sounds_cache+set}" = set; then
  9734. withval=$with_sounds_cache;
  9735. case ${withval} in
  9736. n|no)
  9737. unset SOUNDS_CACHE_DIR
  9738. ;;
  9739. *)
  9740. if test "x${withval}" = "x"; then
  9741. :
  9742. else
  9743. SOUNDS_CACHE_DIR="${withval}"
  9744. fi
  9745. ;;
  9746. esac
  9747. else
  9748. :
  9749. fi
  9750. SPANDSP_DESCRIP="SPANDSP"
  9751. SPANDSP_OPTION="spandsp"
  9752. PBX_SPANDSP=0
  9753. # Check whether --with-spandsp was given.
  9754. if test "${with_spandsp+set}" = set; then
  9755. withval=$with_spandsp;
  9756. case ${withval} in
  9757. n|no)
  9758. USE_SPANDSP=no
  9759. # -1 is a magic value used by menuselect to know that the package
  9760. # was disabled, other than 'not found'
  9761. PBX_SPANDSP=-1
  9762. ;;
  9763. y|ye|yes)
  9764. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9765. ;;
  9766. *)
  9767. SPANDSP_DIR="${withval}"
  9768. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9769. ;;
  9770. esac
  9771. fi
  9772. SS7_DESCRIP="ISDN SS7"
  9773. SS7_OPTION="ss7"
  9774. PBX_SS7=0
  9775. # Check whether --with-ss7 was given.
  9776. if test "${with_ss7+set}" = set; then
  9777. withval=$with_ss7;
  9778. case ${withval} in
  9779. n|no)
  9780. USE_SS7=no
  9781. # -1 is a magic value used by menuselect to know that the package
  9782. # was disabled, other than 'not found'
  9783. PBX_SS7=-1
  9784. ;;
  9785. y|ye|yes)
  9786. ac_mandatory_list="${ac_mandatory_list} SS7"
  9787. ;;
  9788. *)
  9789. SS7_DIR="${withval}"
  9790. ac_mandatory_list="${ac_mandatory_list} SS7"
  9791. ;;
  9792. esac
  9793. fi
  9794. SPEEX_DESCRIP="Speex"
  9795. SPEEX_OPTION="speex"
  9796. PBX_SPEEX=0
  9797. # Check whether --with-speex was given.
  9798. if test "${with_speex+set}" = set; then
  9799. withval=$with_speex;
  9800. case ${withval} in
  9801. n|no)
  9802. USE_SPEEX=no
  9803. # -1 is a magic value used by menuselect to know that the package
  9804. # was disabled, other than 'not found'
  9805. PBX_SPEEX=-1
  9806. ;;
  9807. y|ye|yes)
  9808. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9809. ;;
  9810. *)
  9811. SPEEX_DIR="${withval}"
  9812. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9813. ;;
  9814. esac
  9815. fi
  9816. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  9817. SPEEX_PREPROCESS_OPTION="speex"
  9818. PBX_SPEEX_PREPROCESS=0
  9819. # Check whether --with-speex was given.
  9820. if test "${with_speex+set}" = set; then
  9821. withval=$with_speex;
  9822. case ${withval} in
  9823. n|no)
  9824. USE_SPEEX_PREPROCESS=no
  9825. # -1 is a magic value used by menuselect to know that the package
  9826. # was disabled, other than 'not found'
  9827. PBX_SPEEX_PREPROCESS=-1
  9828. ;;
  9829. y|ye|yes)
  9830. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9831. ;;
  9832. *)
  9833. SPEEX_PREPROCESS_DIR="${withval}"
  9834. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9835. ;;
  9836. esac
  9837. fi
  9838. SPEEXDSP_DESCRIP="SpeexDSP"
  9839. SPEEXDSP_OPTION="speexdsp"
  9840. PBX_SPEEXDSP=0
  9841. # Check whether --with-speexdsp was given.
  9842. if test "${with_speexdsp+set}" = set; then
  9843. withval=$with_speexdsp;
  9844. case ${withval} in
  9845. n|no)
  9846. USE_SPEEXDSP=no
  9847. # -1 is a magic value used by menuselect to know that the package
  9848. # was disabled, other than 'not found'
  9849. PBX_SPEEXDSP=-1
  9850. ;;
  9851. y|ye|yes)
  9852. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9853. ;;
  9854. *)
  9855. SPEEXDSP_DIR="${withval}"
  9856. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9857. ;;
  9858. esac
  9859. fi
  9860. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  9861. SPEEX_PREPROCESS_OPTION=speex
  9862. PBX_SPEEX_PREPROCESS=0
  9863. SQLITE_DESCRIP="SQLite"
  9864. SQLITE_OPTION="sqlite"
  9865. PBX_SQLITE=0
  9866. # Check whether --with-sqlite was given.
  9867. if test "${with_sqlite+set}" = set; then
  9868. withval=$with_sqlite;
  9869. case ${withval} in
  9870. n|no)
  9871. USE_SQLITE=no
  9872. # -1 is a magic value used by menuselect to know that the package
  9873. # was disabled, other than 'not found'
  9874. PBX_SQLITE=-1
  9875. ;;
  9876. y|ye|yes)
  9877. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9878. ;;
  9879. *)
  9880. SQLITE_DIR="${withval}"
  9881. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9882. ;;
  9883. esac
  9884. fi
  9885. SQLITE3_DESCRIP="SQLite"
  9886. SQLITE3_OPTION="sqlite3"
  9887. PBX_SQLITE3=0
  9888. # Check whether --with-sqlite3 was given.
  9889. if test "${with_sqlite3+set}" = set; then
  9890. withval=$with_sqlite3;
  9891. case ${withval} in
  9892. n|no)
  9893. USE_SQLITE3=no
  9894. # -1 is a magic value used by menuselect to know that the package
  9895. # was disabled, other than 'not found'
  9896. PBX_SQLITE3=-1
  9897. ;;
  9898. y|ye|yes)
  9899. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9900. ;;
  9901. *)
  9902. SQLITE3_DIR="${withval}"
  9903. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9904. ;;
  9905. esac
  9906. fi
  9907. SRTP_DESCRIP="Secure RTP"
  9908. SRTP_OPTION="srtp"
  9909. PBX_SRTP=0
  9910. # Check whether --with-srtp was given.
  9911. if test "${with_srtp+set}" = set; then
  9912. withval=$with_srtp;
  9913. case ${withval} in
  9914. n|no)
  9915. USE_SRTP=no
  9916. # -1 is a magic value used by menuselect to know that the package
  9917. # was disabled, other than 'not found'
  9918. PBX_SRTP=-1
  9919. ;;
  9920. y|ye|yes)
  9921. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9922. ;;
  9923. *)
  9924. SRTP_DIR="${withval}"
  9925. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9926. ;;
  9927. esac
  9928. fi
  9929. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9930. OPENSSL_OPTION="ssl"
  9931. PBX_OPENSSL=0
  9932. # Check whether --with-ssl was given.
  9933. if test "${with_ssl+set}" = set; then
  9934. withval=$with_ssl;
  9935. case ${withval} in
  9936. n|no)
  9937. USE_OPENSSL=no
  9938. # -1 is a magic value used by menuselect to know that the package
  9939. # was disabled, other than 'not found'
  9940. PBX_OPENSSL=-1
  9941. ;;
  9942. y|ye|yes)
  9943. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9944. ;;
  9945. *)
  9946. OPENSSL_DIR="${withval}"
  9947. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9948. ;;
  9949. esac
  9950. fi
  9951. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  9952. SUPPSERV_OPTION="suppserv"
  9953. PBX_SUPPSERV=0
  9954. # Check whether --with-suppserv was given.
  9955. if test "${with_suppserv+set}" = set; then
  9956. withval=$with_suppserv;
  9957. case ${withval} in
  9958. n|no)
  9959. USE_SUPPSERV=no
  9960. # -1 is a magic value used by menuselect to know that the package
  9961. # was disabled, other than 'not found'
  9962. PBX_SUPPSERV=-1
  9963. ;;
  9964. y|ye|yes)
  9965. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9966. ;;
  9967. *)
  9968. SUPPSERV_DIR="${withval}"
  9969. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9970. ;;
  9971. esac
  9972. fi
  9973. FREETDS_DESCRIP="FreeTDS"
  9974. FREETDS_OPTION="tds"
  9975. PBX_FREETDS=0
  9976. # Check whether --with-tds was given.
  9977. if test "${with_tds+set}" = set; then
  9978. withval=$with_tds;
  9979. case ${withval} in
  9980. n|no)
  9981. USE_FREETDS=no
  9982. # -1 is a magic value used by menuselect to know that the package
  9983. # was disabled, other than 'not found'
  9984. PBX_FREETDS=-1
  9985. ;;
  9986. y|ye|yes)
  9987. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9988. ;;
  9989. *)
  9990. FREETDS_DIR="${withval}"
  9991. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9992. ;;
  9993. esac
  9994. fi
  9995. TERMCAP_DESCRIP="Termcap"
  9996. TERMCAP_OPTION="termcap"
  9997. PBX_TERMCAP=0
  9998. # Check whether --with-termcap was given.
  9999. if test "${with_termcap+set}" = set; then
  10000. withval=$with_termcap;
  10001. case ${withval} in
  10002. n|no)
  10003. USE_TERMCAP=no
  10004. # -1 is a magic value used by menuselect to know that the package
  10005. # was disabled, other than 'not found'
  10006. PBX_TERMCAP=-1
  10007. ;;
  10008. y|ye|yes)
  10009. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  10010. ;;
  10011. *)
  10012. TERMCAP_DIR="${withval}"
  10013. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  10014. ;;
  10015. esac
  10016. fi
  10017. TIMERFD_DESCRIP="timerfd"
  10018. TIMERFD_OPTION="timerfd"
  10019. PBX_TIMERFD=0
  10020. # Check whether --with-timerfd was given.
  10021. if test "${with_timerfd+set}" = set; then
  10022. withval=$with_timerfd;
  10023. case ${withval} in
  10024. n|no)
  10025. USE_TIMERFD=no
  10026. # -1 is a magic value used by menuselect to know that the package
  10027. # was disabled, other than 'not found'
  10028. PBX_TIMERFD=-1
  10029. ;;
  10030. y|ye|yes)
  10031. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  10032. ;;
  10033. *)
  10034. TIMERFD_DIR="${withval}"
  10035. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  10036. ;;
  10037. esac
  10038. fi
  10039. TINFO_DESCRIP="Term Info"
  10040. TINFO_OPTION="tinfo"
  10041. PBX_TINFO=0
  10042. # Check whether --with-tinfo was given.
  10043. if test "${with_tinfo+set}" = set; then
  10044. withval=$with_tinfo;
  10045. case ${withval} in
  10046. n|no)
  10047. USE_TINFO=no
  10048. # -1 is a magic value used by menuselect to know that the package
  10049. # was disabled, other than 'not found'
  10050. PBX_TINFO=-1
  10051. ;;
  10052. y|ye|yes)
  10053. ac_mandatory_list="${ac_mandatory_list} TINFO"
  10054. ;;
  10055. *)
  10056. TINFO_DIR="${withval}"
  10057. ac_mandatory_list="${ac_mandatory_list} TINFO"
  10058. ;;
  10059. esac
  10060. fi
  10061. TONEZONE_DESCRIP="tonezone"
  10062. TONEZONE_OPTION="tonezone"
  10063. PBX_TONEZONE=0
  10064. # Check whether --with-tonezone was given.
  10065. if test "${with_tonezone+set}" = set; then
  10066. withval=$with_tonezone;
  10067. case ${withval} in
  10068. n|no)
  10069. USE_TONEZONE=no
  10070. # -1 is a magic value used by menuselect to know that the package
  10071. # was disabled, other than 'not found'
  10072. PBX_TONEZONE=-1
  10073. ;;
  10074. y|ye|yes)
  10075. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  10076. ;;
  10077. *)
  10078. TONEZONE_DIR="${withval}"
  10079. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  10080. ;;
  10081. esac
  10082. fi
  10083. UNIXODBC_DESCRIP="unixODBC"
  10084. UNIXODBC_OPTION="unixodbc"
  10085. PBX_UNIXODBC=0
  10086. # Check whether --with-unixodbc was given.
  10087. if test "${with_unixodbc+set}" = set; then
  10088. withval=$with_unixodbc;
  10089. case ${withval} in
  10090. n|no)
  10091. USE_UNIXODBC=no
  10092. # -1 is a magic value used by menuselect to know that the package
  10093. # was disabled, other than 'not found'
  10094. PBX_UNIXODBC=-1
  10095. ;;
  10096. y|ye|yes)
  10097. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  10098. ;;
  10099. *)
  10100. UNIXODBC_DIR="${withval}"
  10101. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  10102. ;;
  10103. esac
  10104. fi
  10105. USB_DESCRIP="usb"
  10106. USB_OPTION="usb"
  10107. PBX_USB=0
  10108. # Check whether --with-usb was given.
  10109. if test "${with_usb+set}" = set; then
  10110. withval=$with_usb;
  10111. case ${withval} in
  10112. n|no)
  10113. USE_USB=no
  10114. # -1 is a magic value used by menuselect to know that the package
  10115. # was disabled, other than 'not found'
  10116. PBX_USB=-1
  10117. ;;
  10118. y|ye|yes)
  10119. ac_mandatory_list="${ac_mandatory_list} USB"
  10120. ;;
  10121. *)
  10122. USB_DIR="${withval}"
  10123. ac_mandatory_list="${ac_mandatory_list} USB"
  10124. ;;
  10125. esac
  10126. fi
  10127. VORBIS_DESCRIP="Vorbis"
  10128. VORBIS_OPTION="vorbis"
  10129. PBX_VORBIS=0
  10130. # Check whether --with-vorbis was given.
  10131. if test "${with_vorbis+set}" = set; then
  10132. withval=$with_vorbis;
  10133. case ${withval} in
  10134. n|no)
  10135. USE_VORBIS=no
  10136. # -1 is a magic value used by menuselect to know that the package
  10137. # was disabled, other than 'not found'
  10138. PBX_VORBIS=-1
  10139. ;;
  10140. y|ye|yes)
  10141. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  10142. ;;
  10143. *)
  10144. VORBIS_DIR="${withval}"
  10145. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  10146. ;;
  10147. esac
  10148. fi
  10149. VPB_DESCRIP="Voicetronix API"
  10150. VPB_OPTION="vpb"
  10151. PBX_VPB=0
  10152. # Check whether --with-vpb was given.
  10153. if test "${with_vpb+set}" = set; then
  10154. withval=$with_vpb;
  10155. case ${withval} in
  10156. n|no)
  10157. USE_VPB=no
  10158. # -1 is a magic value used by menuselect to know that the package
  10159. # was disabled, other than 'not found'
  10160. PBX_VPB=-1
  10161. ;;
  10162. y|ye|yes)
  10163. ac_mandatory_list="${ac_mandatory_list} VPB"
  10164. ;;
  10165. *)
  10166. VPB_DIR="${withval}"
  10167. ac_mandatory_list="${ac_mandatory_list} VPB"
  10168. ;;
  10169. esac
  10170. fi
  10171. X11_DESCRIP="X11"
  10172. X11_OPTION="x11"
  10173. PBX_X11=0
  10174. # Check whether --with-x11 was given.
  10175. if test "${with_x11+set}" = set; then
  10176. withval=$with_x11;
  10177. case ${withval} in
  10178. n|no)
  10179. USE_X11=no
  10180. # -1 is a magic value used by menuselect to know that the package
  10181. # was disabled, other than 'not found'
  10182. PBX_X11=-1
  10183. ;;
  10184. y|ye|yes)
  10185. ac_mandatory_list="${ac_mandatory_list} X11"
  10186. ;;
  10187. *)
  10188. X11_DIR="${withval}"
  10189. ac_mandatory_list="${ac_mandatory_list} X11"
  10190. ;;
  10191. esac
  10192. fi
  10193. ZLIB_DESCRIP="zlib compression"
  10194. ZLIB_OPTION="z"
  10195. PBX_ZLIB=0
  10196. # Check whether --with-z was given.
  10197. if test "${with_z+set}" = set; then
  10198. withval=$with_z;
  10199. case ${withval} in
  10200. n|no)
  10201. USE_ZLIB=no
  10202. # -1 is a magic value used by menuselect to know that the package
  10203. # was disabled, other than 'not found'
  10204. PBX_ZLIB=-1
  10205. ;;
  10206. y|ye|yes)
  10207. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  10208. ;;
  10209. *)
  10210. ZLIB_DIR="${withval}"
  10211. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  10212. ;;
  10213. esac
  10214. fi
  10215. # check for basic system features and functionality before
  10216. # checking for package libraries
  10217. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  10218. # for constant arguments. Useless!
  10219. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  10220. $as_echo_n "checking for working alloca.h... " >&6; }
  10221. if test "${ac_cv_working_alloca_h+set}" = set; then
  10222. $as_echo_n "(cached) " >&6
  10223. else
  10224. cat >conftest.$ac_ext <<_ACEOF
  10225. /* confdefs.h. */
  10226. _ACEOF
  10227. cat confdefs.h >>conftest.$ac_ext
  10228. cat >>conftest.$ac_ext <<_ACEOF
  10229. /* end confdefs.h. */
  10230. #include <alloca.h>
  10231. int
  10232. main ()
  10233. {
  10234. char *p = (char *) alloca (2 * sizeof (int));
  10235. if (p) return 0;
  10236. ;
  10237. return 0;
  10238. }
  10239. _ACEOF
  10240. rm -f conftest.$ac_objext conftest$ac_exeext
  10241. if { (ac_try="$ac_link"
  10242. case "(($ac_try" in
  10243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10244. *) ac_try_echo=$ac_try;;
  10245. esac
  10246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10247. $as_echo "$ac_try_echo") >&5
  10248. (eval "$ac_link") 2>conftest.er1
  10249. ac_status=$?
  10250. grep -v '^ *+' conftest.er1 >conftest.err
  10251. rm -f conftest.er1
  10252. cat conftest.err >&5
  10253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10254. (exit $ac_status); } && {
  10255. test -z "$ac_c_werror_flag" ||
  10256. test ! -s conftest.err
  10257. } && test -s conftest$ac_exeext && {
  10258. test "$cross_compiling" = yes ||
  10259. $as_test_x conftest$ac_exeext
  10260. }; then
  10261. ac_cv_working_alloca_h=yes
  10262. else
  10263. $as_echo "$as_me: failed program was:" >&5
  10264. sed 's/^/| /' conftest.$ac_ext >&5
  10265. ac_cv_working_alloca_h=no
  10266. fi
  10267. rm -rf conftest.dSYM
  10268. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10269. conftest$ac_exeext conftest.$ac_ext
  10270. fi
  10271. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  10272. $as_echo "$ac_cv_working_alloca_h" >&6; }
  10273. if test $ac_cv_working_alloca_h = yes; then
  10274. cat >>confdefs.h <<\_ACEOF
  10275. #define HAVE_ALLOCA_H 1
  10276. _ACEOF
  10277. fi
  10278. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  10279. $as_echo_n "checking for alloca... " >&6; }
  10280. if test "${ac_cv_func_alloca_works+set}" = set; then
  10281. $as_echo_n "(cached) " >&6
  10282. else
  10283. cat >conftest.$ac_ext <<_ACEOF
  10284. /* confdefs.h. */
  10285. _ACEOF
  10286. cat confdefs.h >>conftest.$ac_ext
  10287. cat >>conftest.$ac_ext <<_ACEOF
  10288. /* end confdefs.h. */
  10289. #ifdef __GNUC__
  10290. # define alloca __builtin_alloca
  10291. #else
  10292. # ifdef _MSC_VER
  10293. # include <malloc.h>
  10294. # define alloca _alloca
  10295. # else
  10296. # ifdef HAVE_ALLOCA_H
  10297. # include <alloca.h>
  10298. # else
  10299. # ifdef _AIX
  10300. #pragma alloca
  10301. # else
  10302. # ifndef alloca /* predefined by HP cc +Olibcalls */
  10303. char *alloca ();
  10304. # endif
  10305. # endif
  10306. # endif
  10307. # endif
  10308. #endif
  10309. int
  10310. main ()
  10311. {
  10312. char *p = (char *) alloca (1);
  10313. if (p) return 0;
  10314. ;
  10315. return 0;
  10316. }
  10317. _ACEOF
  10318. rm -f conftest.$ac_objext conftest$ac_exeext
  10319. if { (ac_try="$ac_link"
  10320. case "(($ac_try" in
  10321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10322. *) ac_try_echo=$ac_try;;
  10323. esac
  10324. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10325. $as_echo "$ac_try_echo") >&5
  10326. (eval "$ac_link") 2>conftest.er1
  10327. ac_status=$?
  10328. grep -v '^ *+' conftest.er1 >conftest.err
  10329. rm -f conftest.er1
  10330. cat conftest.err >&5
  10331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10332. (exit $ac_status); } && {
  10333. test -z "$ac_c_werror_flag" ||
  10334. test ! -s conftest.err
  10335. } && test -s conftest$ac_exeext && {
  10336. test "$cross_compiling" = yes ||
  10337. $as_test_x conftest$ac_exeext
  10338. }; then
  10339. ac_cv_func_alloca_works=yes
  10340. else
  10341. $as_echo "$as_me: failed program was:" >&5
  10342. sed 's/^/| /' conftest.$ac_ext >&5
  10343. ac_cv_func_alloca_works=no
  10344. fi
  10345. rm -rf conftest.dSYM
  10346. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10347. conftest$ac_exeext conftest.$ac_ext
  10348. fi
  10349. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  10350. $as_echo "$ac_cv_func_alloca_works" >&6; }
  10351. if test $ac_cv_func_alloca_works = yes; then
  10352. cat >>confdefs.h <<\_ACEOF
  10353. #define HAVE_ALLOCA 1
  10354. _ACEOF
  10355. else
  10356. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  10357. # that cause trouble. Some versions do not even contain alloca or
  10358. # contain a buggy version. If you still want to use their alloca,
  10359. # use ar to extract alloca.o from them instead of compiling alloca.c.
  10360. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  10361. cat >>confdefs.h <<\_ACEOF
  10362. #define C_ALLOCA 1
  10363. _ACEOF
  10364. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  10365. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  10366. if test "${ac_cv_os_cray+set}" = set; then
  10367. $as_echo_n "(cached) " >&6
  10368. else
  10369. cat >conftest.$ac_ext <<_ACEOF
  10370. /* confdefs.h. */
  10371. _ACEOF
  10372. cat confdefs.h >>conftest.$ac_ext
  10373. cat >>conftest.$ac_ext <<_ACEOF
  10374. /* end confdefs.h. */
  10375. #if defined CRAY && ! defined CRAY2
  10376. webecray
  10377. #else
  10378. wenotbecray
  10379. #endif
  10380. _ACEOF
  10381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10382. $EGREP "webecray" >/dev/null 2>&1; then
  10383. ac_cv_os_cray=yes
  10384. else
  10385. ac_cv_os_cray=no
  10386. fi
  10387. rm -f conftest*
  10388. fi
  10389. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  10390. $as_echo "$ac_cv_os_cray" >&6; }
  10391. if test $ac_cv_os_cray = yes; then
  10392. for ac_func in _getb67 GETB67 getb67; do
  10393. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10394. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10395. $as_echo_n "checking for $ac_func... " >&6; }
  10396. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10397. $as_echo_n "(cached) " >&6
  10398. else
  10399. cat >conftest.$ac_ext <<_ACEOF
  10400. /* confdefs.h. */
  10401. _ACEOF
  10402. cat confdefs.h >>conftest.$ac_ext
  10403. cat >>conftest.$ac_ext <<_ACEOF
  10404. /* end confdefs.h. */
  10405. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10406. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10407. #define $ac_func innocuous_$ac_func
  10408. /* System header to define __stub macros and hopefully few prototypes,
  10409. which can conflict with char $ac_func (); below.
  10410. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10411. <limits.h> exists even on freestanding compilers. */
  10412. #ifdef __STDC__
  10413. # include <limits.h>
  10414. #else
  10415. # include <assert.h>
  10416. #endif
  10417. #undef $ac_func
  10418. /* Override any GCC internal prototype to avoid an error.
  10419. Use char because int might match the return type of a GCC
  10420. builtin and then its argument prototype would still apply. */
  10421. #ifdef __cplusplus
  10422. extern "C"
  10423. #endif
  10424. char $ac_func ();
  10425. /* The GNU C library defines this for functions which it implements
  10426. to always fail with ENOSYS. Some functions are actually named
  10427. something starting with __ and the normal name is an alias. */
  10428. #if defined __stub_$ac_func || defined __stub___$ac_func
  10429. choke me
  10430. #endif
  10431. int
  10432. main ()
  10433. {
  10434. return $ac_func ();
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. rm -f conftest.$ac_objext conftest$ac_exeext
  10440. if { (ac_try="$ac_link"
  10441. case "(($ac_try" in
  10442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10443. *) ac_try_echo=$ac_try;;
  10444. esac
  10445. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10446. $as_echo "$ac_try_echo") >&5
  10447. (eval "$ac_link") 2>conftest.er1
  10448. ac_status=$?
  10449. grep -v '^ *+' conftest.er1 >conftest.err
  10450. rm -f conftest.er1
  10451. cat conftest.err >&5
  10452. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10453. (exit $ac_status); } && {
  10454. test -z "$ac_c_werror_flag" ||
  10455. test ! -s conftest.err
  10456. } && test -s conftest$ac_exeext && {
  10457. test "$cross_compiling" = yes ||
  10458. $as_test_x conftest$ac_exeext
  10459. }; then
  10460. eval "$as_ac_var=yes"
  10461. else
  10462. $as_echo "$as_me: failed program was:" >&5
  10463. sed 's/^/| /' conftest.$ac_ext >&5
  10464. eval "$as_ac_var=no"
  10465. fi
  10466. rm -rf conftest.dSYM
  10467. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10468. conftest$ac_exeext conftest.$ac_ext
  10469. fi
  10470. ac_res=`eval 'as_val=${'$as_ac_var'}
  10471. $as_echo "$as_val"'`
  10472. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10473. $as_echo "$ac_res" >&6; }
  10474. as_val=`eval 'as_val=${'$as_ac_var'}
  10475. $as_echo "$as_val"'`
  10476. if test "x$as_val" = x""yes; then
  10477. cat >>confdefs.h <<_ACEOF
  10478. #define CRAY_STACKSEG_END $ac_func
  10479. _ACEOF
  10480. break
  10481. fi
  10482. done
  10483. fi
  10484. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  10485. $as_echo_n "checking stack direction for C alloca... " >&6; }
  10486. if test "${ac_cv_c_stack_direction+set}" = set; then
  10487. $as_echo_n "(cached) " >&6
  10488. else
  10489. if test "$cross_compiling" = yes; then
  10490. ac_cv_c_stack_direction=0
  10491. else
  10492. cat >conftest.$ac_ext <<_ACEOF
  10493. /* confdefs.h. */
  10494. _ACEOF
  10495. cat confdefs.h >>conftest.$ac_ext
  10496. cat >>conftest.$ac_ext <<_ACEOF
  10497. /* end confdefs.h. */
  10498. $ac_includes_default
  10499. int
  10500. find_stack_direction ()
  10501. {
  10502. static char *addr = 0;
  10503. auto char dummy;
  10504. if (addr == 0)
  10505. {
  10506. addr = &dummy;
  10507. return find_stack_direction ();
  10508. }
  10509. else
  10510. return (&dummy > addr) ? 1 : -1;
  10511. }
  10512. int
  10513. main ()
  10514. {
  10515. return find_stack_direction () < 0;
  10516. }
  10517. _ACEOF
  10518. rm -f conftest$ac_exeext
  10519. if { (ac_try="$ac_link"
  10520. case "(($ac_try" in
  10521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10522. *) ac_try_echo=$ac_try;;
  10523. esac
  10524. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10525. $as_echo "$ac_try_echo") >&5
  10526. (eval "$ac_link") 2>&5
  10527. ac_status=$?
  10528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10529. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10530. { (case "(($ac_try" in
  10531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10532. *) ac_try_echo=$ac_try;;
  10533. esac
  10534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10535. $as_echo "$ac_try_echo") >&5
  10536. (eval "$ac_try") 2>&5
  10537. ac_status=$?
  10538. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10539. (exit $ac_status); }; }; then
  10540. ac_cv_c_stack_direction=1
  10541. else
  10542. $as_echo "$as_me: program exited with status $ac_status" >&5
  10543. $as_echo "$as_me: failed program was:" >&5
  10544. sed 's/^/| /' conftest.$ac_ext >&5
  10545. ( exit $ac_status )
  10546. ac_cv_c_stack_direction=-1
  10547. fi
  10548. rm -rf conftest.dSYM
  10549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10550. fi
  10551. fi
  10552. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  10553. $as_echo "$ac_cv_c_stack_direction" >&6; }
  10554. cat >>confdefs.h <<_ACEOF
  10555. #define STACK_DIRECTION $ac_cv_c_stack_direction
  10556. _ACEOF
  10557. fi
  10558. ac_header_dirent=no
  10559. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  10560. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  10561. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  10562. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  10563. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10564. $as_echo_n "(cached) " >&6
  10565. else
  10566. cat >conftest.$ac_ext <<_ACEOF
  10567. /* confdefs.h. */
  10568. _ACEOF
  10569. cat confdefs.h >>conftest.$ac_ext
  10570. cat >>conftest.$ac_ext <<_ACEOF
  10571. /* end confdefs.h. */
  10572. #include <sys/types.h>
  10573. #include <$ac_hdr>
  10574. int
  10575. main ()
  10576. {
  10577. if ((DIR *) 0)
  10578. return 0;
  10579. ;
  10580. return 0;
  10581. }
  10582. _ACEOF
  10583. rm -f conftest.$ac_objext
  10584. if { (ac_try="$ac_compile"
  10585. case "(($ac_try" in
  10586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10587. *) ac_try_echo=$ac_try;;
  10588. esac
  10589. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10590. $as_echo "$ac_try_echo") >&5
  10591. (eval "$ac_compile") 2>conftest.er1
  10592. ac_status=$?
  10593. grep -v '^ *+' conftest.er1 >conftest.err
  10594. rm -f conftest.er1
  10595. cat conftest.err >&5
  10596. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10597. (exit $ac_status); } && {
  10598. test -z "$ac_c_werror_flag" ||
  10599. test ! -s conftest.err
  10600. } && test -s conftest.$ac_objext; then
  10601. eval "$as_ac_Header=yes"
  10602. else
  10603. $as_echo "$as_me: failed program was:" >&5
  10604. sed 's/^/| /' conftest.$ac_ext >&5
  10605. eval "$as_ac_Header=no"
  10606. fi
  10607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10608. fi
  10609. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10610. $as_echo "$as_val"'`
  10611. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10612. $as_echo "$ac_res" >&6; }
  10613. as_val=`eval 'as_val=${'$as_ac_Header'}
  10614. $as_echo "$as_val"'`
  10615. if test "x$as_val" = x""yes; then
  10616. cat >>confdefs.h <<_ACEOF
  10617. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  10618. _ACEOF
  10619. ac_header_dirent=$ac_hdr; break
  10620. fi
  10621. done
  10622. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  10623. if test $ac_header_dirent = dirent.h; then
  10624. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  10625. $as_echo_n "checking for library containing opendir... " >&6; }
  10626. if test "${ac_cv_search_opendir+set}" = set; then
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. ac_func_search_save_LIBS=$LIBS
  10630. cat >conftest.$ac_ext <<_ACEOF
  10631. /* confdefs.h. */
  10632. _ACEOF
  10633. cat confdefs.h >>conftest.$ac_ext
  10634. cat >>conftest.$ac_ext <<_ACEOF
  10635. /* end confdefs.h. */
  10636. /* Override any GCC internal prototype to avoid an error.
  10637. Use char because int might match the return type of a GCC
  10638. builtin and then its argument prototype would still apply. */
  10639. #ifdef __cplusplus
  10640. extern "C"
  10641. #endif
  10642. char opendir ();
  10643. int
  10644. main ()
  10645. {
  10646. return opendir ();
  10647. ;
  10648. return 0;
  10649. }
  10650. _ACEOF
  10651. for ac_lib in '' dir; do
  10652. if test -z "$ac_lib"; then
  10653. ac_res="none required"
  10654. else
  10655. ac_res=-l$ac_lib
  10656. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10657. fi
  10658. rm -f conftest.$ac_objext conftest$ac_exeext
  10659. if { (ac_try="$ac_link"
  10660. case "(($ac_try" in
  10661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10662. *) ac_try_echo=$ac_try;;
  10663. esac
  10664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10665. $as_echo "$ac_try_echo") >&5
  10666. (eval "$ac_link") 2>conftest.er1
  10667. ac_status=$?
  10668. grep -v '^ *+' conftest.er1 >conftest.err
  10669. rm -f conftest.er1
  10670. cat conftest.err >&5
  10671. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10672. (exit $ac_status); } && {
  10673. test -z "$ac_c_werror_flag" ||
  10674. test ! -s conftest.err
  10675. } && test -s conftest$ac_exeext && {
  10676. test "$cross_compiling" = yes ||
  10677. $as_test_x conftest$ac_exeext
  10678. }; then
  10679. ac_cv_search_opendir=$ac_res
  10680. else
  10681. $as_echo "$as_me: failed program was:" >&5
  10682. sed 's/^/| /' conftest.$ac_ext >&5
  10683. fi
  10684. rm -rf conftest.dSYM
  10685. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10686. conftest$ac_exeext
  10687. if test "${ac_cv_search_opendir+set}" = set; then
  10688. break
  10689. fi
  10690. done
  10691. if test "${ac_cv_search_opendir+set}" = set; then
  10692. :
  10693. else
  10694. ac_cv_search_opendir=no
  10695. fi
  10696. rm conftest.$ac_ext
  10697. LIBS=$ac_func_search_save_LIBS
  10698. fi
  10699. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  10700. $as_echo "$ac_cv_search_opendir" >&6; }
  10701. ac_res=$ac_cv_search_opendir
  10702. if test "$ac_res" != no; then
  10703. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10704. fi
  10705. else
  10706. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  10707. $as_echo_n "checking for library containing opendir... " >&6; }
  10708. if test "${ac_cv_search_opendir+set}" = set; then
  10709. $as_echo_n "(cached) " >&6
  10710. else
  10711. ac_func_search_save_LIBS=$LIBS
  10712. cat >conftest.$ac_ext <<_ACEOF
  10713. /* confdefs.h. */
  10714. _ACEOF
  10715. cat confdefs.h >>conftest.$ac_ext
  10716. cat >>conftest.$ac_ext <<_ACEOF
  10717. /* end confdefs.h. */
  10718. /* Override any GCC internal prototype to avoid an error.
  10719. Use char because int might match the return type of a GCC
  10720. builtin and then its argument prototype would still apply. */
  10721. #ifdef __cplusplus
  10722. extern "C"
  10723. #endif
  10724. char opendir ();
  10725. int
  10726. main ()
  10727. {
  10728. return opendir ();
  10729. ;
  10730. return 0;
  10731. }
  10732. _ACEOF
  10733. for ac_lib in '' x; do
  10734. if test -z "$ac_lib"; then
  10735. ac_res="none required"
  10736. else
  10737. ac_res=-l$ac_lib
  10738. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10739. fi
  10740. rm -f conftest.$ac_objext conftest$ac_exeext
  10741. if { (ac_try="$ac_link"
  10742. case "(($ac_try" in
  10743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10744. *) ac_try_echo=$ac_try;;
  10745. esac
  10746. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10747. $as_echo "$ac_try_echo") >&5
  10748. (eval "$ac_link") 2>conftest.er1
  10749. ac_status=$?
  10750. grep -v '^ *+' conftest.er1 >conftest.err
  10751. rm -f conftest.er1
  10752. cat conftest.err >&5
  10753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10754. (exit $ac_status); } && {
  10755. test -z "$ac_c_werror_flag" ||
  10756. test ! -s conftest.err
  10757. } && test -s conftest$ac_exeext && {
  10758. test "$cross_compiling" = yes ||
  10759. $as_test_x conftest$ac_exeext
  10760. }; then
  10761. ac_cv_search_opendir=$ac_res
  10762. else
  10763. $as_echo "$as_me: failed program was:" >&5
  10764. sed 's/^/| /' conftest.$ac_ext >&5
  10765. fi
  10766. rm -rf conftest.dSYM
  10767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10768. conftest$ac_exeext
  10769. if test "${ac_cv_search_opendir+set}" = set; then
  10770. break
  10771. fi
  10772. done
  10773. if test "${ac_cv_search_opendir+set}" = set; then
  10774. :
  10775. else
  10776. ac_cv_search_opendir=no
  10777. fi
  10778. rm conftest.$ac_ext
  10779. LIBS=$ac_func_search_save_LIBS
  10780. fi
  10781. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  10782. $as_echo "$ac_cv_search_opendir" >&6; }
  10783. ac_res=$ac_cv_search_opendir
  10784. if test "$ac_res" != no; then
  10785. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10786. fi
  10787. fi
  10788. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  10789. $as_echo_n "checking for ANSI C header files... " >&6; }
  10790. if test "${ac_cv_header_stdc+set}" = set; then
  10791. $as_echo_n "(cached) " >&6
  10792. else
  10793. cat >conftest.$ac_ext <<_ACEOF
  10794. /* confdefs.h. */
  10795. _ACEOF
  10796. cat confdefs.h >>conftest.$ac_ext
  10797. cat >>conftest.$ac_ext <<_ACEOF
  10798. /* end confdefs.h. */
  10799. #include <stdlib.h>
  10800. #include <stdarg.h>
  10801. #include <string.h>
  10802. #include <float.h>
  10803. int
  10804. main ()
  10805. {
  10806. ;
  10807. return 0;
  10808. }
  10809. _ACEOF
  10810. rm -f conftest.$ac_objext
  10811. if { (ac_try="$ac_compile"
  10812. case "(($ac_try" in
  10813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10814. *) ac_try_echo=$ac_try;;
  10815. esac
  10816. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10817. $as_echo "$ac_try_echo") >&5
  10818. (eval "$ac_compile") 2>conftest.er1
  10819. ac_status=$?
  10820. grep -v '^ *+' conftest.er1 >conftest.err
  10821. rm -f conftest.er1
  10822. cat conftest.err >&5
  10823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10824. (exit $ac_status); } && {
  10825. test -z "$ac_c_werror_flag" ||
  10826. test ! -s conftest.err
  10827. } && test -s conftest.$ac_objext; then
  10828. ac_cv_header_stdc=yes
  10829. else
  10830. $as_echo "$as_me: failed program was:" >&5
  10831. sed 's/^/| /' conftest.$ac_ext >&5
  10832. ac_cv_header_stdc=no
  10833. fi
  10834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10835. if test $ac_cv_header_stdc = yes; then
  10836. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10837. cat >conftest.$ac_ext <<_ACEOF
  10838. /* confdefs.h. */
  10839. _ACEOF
  10840. cat confdefs.h >>conftest.$ac_ext
  10841. cat >>conftest.$ac_ext <<_ACEOF
  10842. /* end confdefs.h. */
  10843. #include <string.h>
  10844. _ACEOF
  10845. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10846. $EGREP "memchr" >/dev/null 2>&1; then
  10847. :
  10848. else
  10849. ac_cv_header_stdc=no
  10850. fi
  10851. rm -f conftest*
  10852. fi
  10853. if test $ac_cv_header_stdc = yes; then
  10854. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10855. cat >conftest.$ac_ext <<_ACEOF
  10856. /* confdefs.h. */
  10857. _ACEOF
  10858. cat confdefs.h >>conftest.$ac_ext
  10859. cat >>conftest.$ac_ext <<_ACEOF
  10860. /* end confdefs.h. */
  10861. #include <stdlib.h>
  10862. _ACEOF
  10863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10864. $EGREP "free" >/dev/null 2>&1; then
  10865. :
  10866. else
  10867. ac_cv_header_stdc=no
  10868. fi
  10869. rm -f conftest*
  10870. fi
  10871. if test $ac_cv_header_stdc = yes; then
  10872. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10873. if test "$cross_compiling" = yes; then
  10874. :
  10875. else
  10876. cat >conftest.$ac_ext <<_ACEOF
  10877. /* confdefs.h. */
  10878. _ACEOF
  10879. cat confdefs.h >>conftest.$ac_ext
  10880. cat >>conftest.$ac_ext <<_ACEOF
  10881. /* end confdefs.h. */
  10882. #include <ctype.h>
  10883. #include <stdlib.h>
  10884. #if ((' ' & 0x0FF) == 0x020)
  10885. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10886. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10887. #else
  10888. # define ISLOWER(c) \
  10889. (('a' <= (c) && (c) <= 'i') \
  10890. || ('j' <= (c) && (c) <= 'r') \
  10891. || ('s' <= (c) && (c) <= 'z'))
  10892. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10893. #endif
  10894. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10895. int
  10896. main ()
  10897. {
  10898. int i;
  10899. for (i = 0; i < 256; i++)
  10900. if (XOR (islower (i), ISLOWER (i))
  10901. || toupper (i) != TOUPPER (i))
  10902. return 2;
  10903. return 0;
  10904. }
  10905. _ACEOF
  10906. rm -f conftest$ac_exeext
  10907. if { (ac_try="$ac_link"
  10908. case "(($ac_try" in
  10909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10910. *) ac_try_echo=$ac_try;;
  10911. esac
  10912. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10913. $as_echo "$ac_try_echo") >&5
  10914. (eval "$ac_link") 2>&5
  10915. ac_status=$?
  10916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10917. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10918. { (case "(($ac_try" in
  10919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10920. *) ac_try_echo=$ac_try;;
  10921. esac
  10922. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10923. $as_echo "$ac_try_echo") >&5
  10924. (eval "$ac_try") 2>&5
  10925. ac_status=$?
  10926. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10927. (exit $ac_status); }; }; then
  10928. :
  10929. else
  10930. $as_echo "$as_me: program exited with status $ac_status" >&5
  10931. $as_echo "$as_me: failed program was:" >&5
  10932. sed 's/^/| /' conftest.$ac_ext >&5
  10933. ( exit $ac_status )
  10934. ac_cv_header_stdc=no
  10935. fi
  10936. rm -rf conftest.dSYM
  10937. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10938. fi
  10939. fi
  10940. fi
  10941. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  10942. $as_echo "$ac_cv_header_stdc" >&6; }
  10943. if test $ac_cv_header_stdc = yes; then
  10944. cat >>confdefs.h <<\_ACEOF
  10945. #define STDC_HEADERS 1
  10946. _ACEOF
  10947. fi
  10948. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10949. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10950. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  10951. $as_echo_n "(cached) " >&6
  10952. else
  10953. cat >conftest.$ac_ext <<_ACEOF
  10954. /* confdefs.h. */
  10955. _ACEOF
  10956. cat confdefs.h >>conftest.$ac_ext
  10957. cat >>conftest.$ac_ext <<_ACEOF
  10958. /* end confdefs.h. */
  10959. #include <sys/types.h>
  10960. #include <sys/wait.h>
  10961. #ifndef WEXITSTATUS
  10962. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10963. #endif
  10964. #ifndef WIFEXITED
  10965. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10966. #endif
  10967. int
  10968. main ()
  10969. {
  10970. int s;
  10971. wait (&s);
  10972. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10973. ;
  10974. return 0;
  10975. }
  10976. _ACEOF
  10977. rm -f conftest.$ac_objext
  10978. if { (ac_try="$ac_compile"
  10979. case "(($ac_try" in
  10980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10981. *) ac_try_echo=$ac_try;;
  10982. esac
  10983. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10984. $as_echo "$ac_try_echo") >&5
  10985. (eval "$ac_compile") 2>conftest.er1
  10986. ac_status=$?
  10987. grep -v '^ *+' conftest.er1 >conftest.err
  10988. rm -f conftest.er1
  10989. cat conftest.err >&5
  10990. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10991. (exit $ac_status); } && {
  10992. test -z "$ac_c_werror_flag" ||
  10993. test ! -s conftest.err
  10994. } && test -s conftest.$ac_objext; then
  10995. ac_cv_header_sys_wait_h=yes
  10996. else
  10997. $as_echo "$as_me: failed program was:" >&5
  10998. sed 's/^/| /' conftest.$ac_ext >&5
  10999. ac_cv_header_sys_wait_h=no
  11000. fi
  11001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11002. fi
  11003. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  11004. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11005. if test $ac_cv_header_sys_wait_h = yes; then
  11006. cat >>confdefs.h <<\_ACEOF
  11007. #define HAVE_SYS_WAIT_H 1
  11008. _ACEOF
  11009. fi
  11010. 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
  11011. do
  11012. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11013. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11014. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11015. $as_echo_n "checking for $ac_header... " >&6; }
  11016. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11017. $as_echo_n "(cached) " >&6
  11018. fi
  11019. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11020. $as_echo "$as_val"'`
  11021. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11022. $as_echo "$ac_res" >&6; }
  11023. else
  11024. # Is the header compilable?
  11025. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11026. $as_echo_n "checking $ac_header usability... " >&6; }
  11027. cat >conftest.$ac_ext <<_ACEOF
  11028. /* confdefs.h. */
  11029. _ACEOF
  11030. cat confdefs.h >>conftest.$ac_ext
  11031. cat >>conftest.$ac_ext <<_ACEOF
  11032. /* end confdefs.h. */
  11033. $ac_includes_default
  11034. #include <$ac_header>
  11035. _ACEOF
  11036. rm -f conftest.$ac_objext
  11037. if { (ac_try="$ac_compile"
  11038. case "(($ac_try" in
  11039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11040. *) ac_try_echo=$ac_try;;
  11041. esac
  11042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11043. $as_echo "$ac_try_echo") >&5
  11044. (eval "$ac_compile") 2>conftest.er1
  11045. ac_status=$?
  11046. grep -v '^ *+' conftest.er1 >conftest.err
  11047. rm -f conftest.er1
  11048. cat conftest.err >&5
  11049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11050. (exit $ac_status); } && {
  11051. test -z "$ac_c_werror_flag" ||
  11052. test ! -s conftest.err
  11053. } && test -s conftest.$ac_objext; then
  11054. ac_header_compiler=yes
  11055. else
  11056. $as_echo "$as_me: failed program was:" >&5
  11057. sed 's/^/| /' conftest.$ac_ext >&5
  11058. ac_header_compiler=no
  11059. fi
  11060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11061. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11062. $as_echo "$ac_header_compiler" >&6; }
  11063. # Is the header present?
  11064. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11065. $as_echo_n "checking $ac_header presence... " >&6; }
  11066. cat >conftest.$ac_ext <<_ACEOF
  11067. /* confdefs.h. */
  11068. _ACEOF
  11069. cat confdefs.h >>conftest.$ac_ext
  11070. cat >>conftest.$ac_ext <<_ACEOF
  11071. /* end confdefs.h. */
  11072. #include <$ac_header>
  11073. _ACEOF
  11074. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11075. case "(($ac_try" in
  11076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11077. *) ac_try_echo=$ac_try;;
  11078. esac
  11079. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11080. $as_echo "$ac_try_echo") >&5
  11081. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11082. ac_status=$?
  11083. grep -v '^ *+' conftest.er1 >conftest.err
  11084. rm -f conftest.er1
  11085. cat conftest.err >&5
  11086. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11087. (exit $ac_status); } >/dev/null && {
  11088. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11089. test ! -s conftest.err
  11090. }; then
  11091. ac_header_preproc=yes
  11092. else
  11093. $as_echo "$as_me: failed program was:" >&5
  11094. sed 's/^/| /' conftest.$ac_ext >&5
  11095. ac_header_preproc=no
  11096. fi
  11097. rm -f conftest.err conftest.$ac_ext
  11098. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11099. $as_echo "$ac_header_preproc" >&6; }
  11100. # So? What about this header?
  11101. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11102. yes:no: )
  11103. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11104. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11105. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11106. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11107. ac_header_preproc=yes
  11108. ;;
  11109. no:yes:* )
  11110. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11111. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11112. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11113. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11114. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11115. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11116. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11117. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11118. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11119. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11120. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11121. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11122. ( cat <<\_ASBOX
  11123. ## ------------------------------------------ ##
  11124. ## Report this to https://issues.asterisk.org ##
  11125. ## ------------------------------------------ ##
  11126. _ASBOX
  11127. ) | sed "s/^/$as_me: WARNING: /" >&2
  11128. ;;
  11129. esac
  11130. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11131. $as_echo_n "checking for $ac_header... " >&6; }
  11132. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11133. $as_echo_n "(cached) " >&6
  11134. else
  11135. eval "$as_ac_Header=\$ac_header_preproc"
  11136. fi
  11137. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11138. $as_echo "$as_val"'`
  11139. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11140. $as_echo "$ac_res" >&6; }
  11141. fi
  11142. as_val=`eval 'as_val=${'$as_ac_Header'}
  11143. $as_echo "$as_val"'`
  11144. if test "x$as_val" = x""yes; then
  11145. cat >>confdefs.h <<_ACEOF
  11146. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11147. _ACEOF
  11148. fi
  11149. done
  11150. # Any one of these 4 packages support a mandatory requirement, so we want to check on them as early as possible.
  11151. if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
  11152. pbxlibdir=""
  11153. # if --with-TERMCAP=DIR has been specified, use it.
  11154. if test "x${TERMCAP_DIR}" != "x"; then
  11155. if test -d ${TERMCAP_DIR}/lib; then
  11156. pbxlibdir="-L${TERMCAP_DIR}/lib"
  11157. else
  11158. pbxlibdir="-L${TERMCAP_DIR}"
  11159. fi
  11160. fi
  11161. pbxfuncname="tgetent"
  11162. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11163. AST_TERMCAP_FOUND=yes
  11164. else
  11165. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11166. CFLAGS="${CFLAGS} "
  11167. as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
  11168. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
  11169. $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
  11170. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  11171. $as_echo_n "(cached) " >&6
  11172. else
  11173. ac_check_lib_save_LIBS=$LIBS
  11174. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  11175. cat >conftest.$ac_ext <<_ACEOF
  11176. /* confdefs.h. */
  11177. _ACEOF
  11178. cat confdefs.h >>conftest.$ac_ext
  11179. cat >>conftest.$ac_ext <<_ACEOF
  11180. /* end confdefs.h. */
  11181. /* Override any GCC internal prototype to avoid an error.
  11182. Use char because int might match the return type of a GCC
  11183. builtin and then its argument prototype would still apply. */
  11184. #ifdef __cplusplus
  11185. extern "C"
  11186. #endif
  11187. char ${pbxfuncname} ();
  11188. int
  11189. main ()
  11190. {
  11191. return ${pbxfuncname} ();
  11192. ;
  11193. return 0;
  11194. }
  11195. _ACEOF
  11196. rm -f conftest.$ac_objext conftest$ac_exeext
  11197. if { (ac_try="$ac_link"
  11198. case "(($ac_try" in
  11199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11200. *) ac_try_echo=$ac_try;;
  11201. esac
  11202. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11203. $as_echo "$ac_try_echo") >&5
  11204. (eval "$ac_link") 2>conftest.er1
  11205. ac_status=$?
  11206. grep -v '^ *+' conftest.er1 >conftest.err
  11207. rm -f conftest.er1
  11208. cat conftest.err >&5
  11209. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11210. (exit $ac_status); } && {
  11211. test -z "$ac_c_werror_flag" ||
  11212. test ! -s conftest.err
  11213. } && test -s conftest$ac_exeext && {
  11214. test "$cross_compiling" = yes ||
  11215. $as_test_x conftest$ac_exeext
  11216. }; then
  11217. eval "$as_ac_Lib=yes"
  11218. else
  11219. $as_echo "$as_me: failed program was:" >&5
  11220. sed 's/^/| /' conftest.$ac_ext >&5
  11221. eval "$as_ac_Lib=no"
  11222. fi
  11223. rm -rf conftest.dSYM
  11224. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11225. conftest$ac_exeext conftest.$ac_ext
  11226. LIBS=$ac_check_lib_save_LIBS
  11227. fi
  11228. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  11229. $as_echo "$as_val"'`
  11230. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11231. $as_echo "$ac_res" >&6; }
  11232. as_val=`eval 'as_val=${'$as_ac_Lib'}
  11233. $as_echo "$as_val"'`
  11234. if test "x$as_val" = x""yes; then
  11235. AST_TERMCAP_FOUND=yes
  11236. else
  11237. AST_TERMCAP_FOUND=no
  11238. fi
  11239. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11240. fi
  11241. # now check for the header.
  11242. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  11243. TERMCAP_LIB="${pbxlibdir} -ltermcap "
  11244. # if --with-TERMCAP=DIR has been specified, use it.
  11245. if test "x${TERMCAP_DIR}" != "x"; then
  11246. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  11247. fi
  11248. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  11249. if test "x" = "x" ; then # no header, assume found
  11250. TERMCAP_HEADER_FOUND="1"
  11251. else # check for the header
  11252. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11253. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  11254. if test "${ac_cv_header_+set}" = set; then
  11255. { $as_echo "$as_me:$LINENO: checking for " >&5
  11256. $as_echo_n "checking for ... " >&6; }
  11257. if test "${ac_cv_header_+set}" = set; then
  11258. $as_echo_n "(cached) " >&6
  11259. fi
  11260. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  11261. $as_echo "$ac_cv_header_" >&6; }
  11262. else
  11263. # Is the header compilable?
  11264. { $as_echo "$as_me:$LINENO: checking usability" >&5
  11265. $as_echo_n "checking usability... " >&6; }
  11266. cat >conftest.$ac_ext <<_ACEOF
  11267. /* confdefs.h. */
  11268. _ACEOF
  11269. cat confdefs.h >>conftest.$ac_ext
  11270. cat >>conftest.$ac_ext <<_ACEOF
  11271. /* end confdefs.h. */
  11272. $ac_includes_default
  11273. #include <>
  11274. _ACEOF
  11275. rm -f conftest.$ac_objext
  11276. if { (ac_try="$ac_compile"
  11277. case "(($ac_try" in
  11278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11279. *) ac_try_echo=$ac_try;;
  11280. esac
  11281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11282. $as_echo "$ac_try_echo") >&5
  11283. (eval "$ac_compile") 2>conftest.er1
  11284. ac_status=$?
  11285. grep -v '^ *+' conftest.er1 >conftest.err
  11286. rm -f conftest.er1
  11287. cat conftest.err >&5
  11288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11289. (exit $ac_status); } && {
  11290. test -z "$ac_c_werror_flag" ||
  11291. test ! -s conftest.err
  11292. } && test -s conftest.$ac_objext; then
  11293. ac_header_compiler=yes
  11294. else
  11295. $as_echo "$as_me: failed program was:" >&5
  11296. sed 's/^/| /' conftest.$ac_ext >&5
  11297. ac_header_compiler=no
  11298. fi
  11299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11300. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11301. $as_echo "$ac_header_compiler" >&6; }
  11302. # Is the header present?
  11303. { $as_echo "$as_me:$LINENO: checking presence" >&5
  11304. $as_echo_n "checking presence... " >&6; }
  11305. cat >conftest.$ac_ext <<_ACEOF
  11306. /* confdefs.h. */
  11307. _ACEOF
  11308. cat confdefs.h >>conftest.$ac_ext
  11309. cat >>conftest.$ac_ext <<_ACEOF
  11310. /* end confdefs.h. */
  11311. #include <>
  11312. _ACEOF
  11313. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11314. case "(($ac_try" in
  11315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11316. *) ac_try_echo=$ac_try;;
  11317. esac
  11318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11319. $as_echo "$ac_try_echo") >&5
  11320. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11321. ac_status=$?
  11322. grep -v '^ *+' conftest.er1 >conftest.err
  11323. rm -f conftest.er1
  11324. cat conftest.err >&5
  11325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11326. (exit $ac_status); } >/dev/null && {
  11327. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11328. test ! -s conftest.err
  11329. }; then
  11330. ac_header_preproc=yes
  11331. else
  11332. $as_echo "$as_me: failed program was:" >&5
  11333. sed 's/^/| /' conftest.$ac_ext >&5
  11334. ac_header_preproc=no
  11335. fi
  11336. rm -f conftest.err conftest.$ac_ext
  11337. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11338. $as_echo "$ac_header_preproc" >&6; }
  11339. # So? What about this header?
  11340. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11341. yes:no: )
  11342. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  11343. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  11344. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  11345. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  11346. ac_header_preproc=yes
  11347. ;;
  11348. no:yes:* )
  11349. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  11350. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  11351. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  11352. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  11353. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  11354. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  11355. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  11356. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  11357. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  11358. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  11359. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  11360. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  11361. ( cat <<\_ASBOX
  11362. ## ------------------------------------------ ##
  11363. ## Report this to https://issues.asterisk.org ##
  11364. ## ------------------------------------------ ##
  11365. _ASBOX
  11366. ) | sed "s/^/$as_me: WARNING: /" >&2
  11367. ;;
  11368. esac
  11369. { $as_echo "$as_me:$LINENO: checking for " >&5
  11370. $as_echo_n "checking for ... " >&6; }
  11371. if test "${ac_cv_header_+set}" = set; then
  11372. $as_echo_n "(cached) " >&6
  11373. else
  11374. ac_cv_header_=$ac_header_preproc
  11375. fi
  11376. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  11377. $as_echo "$ac_cv_header_" >&6; }
  11378. fi
  11379. if test "x$ac_cv_header_" = x""yes; then
  11380. TERMCAP_HEADER_FOUND=1
  11381. else
  11382. TERMCAP_HEADER_FOUND=0
  11383. fi
  11384. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11385. fi
  11386. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  11387. TERMCAP_LIB=""
  11388. TERMCAP_INCLUDE=""
  11389. else
  11390. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11391. TERMCAP_LIB=""
  11392. fi
  11393. PBX_TERMCAP=1
  11394. cat >>confdefs.h <<_ACEOF
  11395. #define HAVE_TERMCAP 1
  11396. _ACEOF
  11397. fi
  11398. fi
  11399. fi
  11400. if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
  11401. pbxlibdir=""
  11402. # if --with-TINFO=DIR has been specified, use it.
  11403. if test "x${TINFO_DIR}" != "x"; then
  11404. if test -d ${TINFO_DIR}/lib; then
  11405. pbxlibdir="-L${TINFO_DIR}/lib"
  11406. else
  11407. pbxlibdir="-L${TINFO_DIR}"
  11408. fi
  11409. fi
  11410. pbxfuncname="tgetent"
  11411. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11412. AST_TINFO_FOUND=yes
  11413. else
  11414. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11415. CFLAGS="${CFLAGS} "
  11416. as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
  11417. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
  11418. $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
  11419. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  11420. $as_echo_n "(cached) " >&6
  11421. else
  11422. ac_check_lib_save_LIBS=$LIBS
  11423. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  11424. cat >conftest.$ac_ext <<_ACEOF
  11425. /* confdefs.h. */
  11426. _ACEOF
  11427. cat confdefs.h >>conftest.$ac_ext
  11428. cat >>conftest.$ac_ext <<_ACEOF
  11429. /* end confdefs.h. */
  11430. /* Override any GCC internal prototype to avoid an error.
  11431. Use char because int might match the return type of a GCC
  11432. builtin and then its argument prototype would still apply. */
  11433. #ifdef __cplusplus
  11434. extern "C"
  11435. #endif
  11436. char ${pbxfuncname} ();
  11437. int
  11438. main ()
  11439. {
  11440. return ${pbxfuncname} ();
  11441. ;
  11442. return 0;
  11443. }
  11444. _ACEOF
  11445. rm -f conftest.$ac_objext conftest$ac_exeext
  11446. if { (ac_try="$ac_link"
  11447. case "(($ac_try" in
  11448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11449. *) ac_try_echo=$ac_try;;
  11450. esac
  11451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11452. $as_echo "$ac_try_echo") >&5
  11453. (eval "$ac_link") 2>conftest.er1
  11454. ac_status=$?
  11455. grep -v '^ *+' conftest.er1 >conftest.err
  11456. rm -f conftest.er1
  11457. cat conftest.err >&5
  11458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11459. (exit $ac_status); } && {
  11460. test -z "$ac_c_werror_flag" ||
  11461. test ! -s conftest.err
  11462. } && test -s conftest$ac_exeext && {
  11463. test "$cross_compiling" = yes ||
  11464. $as_test_x conftest$ac_exeext
  11465. }; then
  11466. eval "$as_ac_Lib=yes"
  11467. else
  11468. $as_echo "$as_me: failed program was:" >&5
  11469. sed 's/^/| /' conftest.$ac_ext >&5
  11470. eval "$as_ac_Lib=no"
  11471. fi
  11472. rm -rf conftest.dSYM
  11473. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11474. conftest$ac_exeext conftest.$ac_ext
  11475. LIBS=$ac_check_lib_save_LIBS
  11476. fi
  11477. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  11478. $as_echo "$as_val"'`
  11479. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11480. $as_echo "$ac_res" >&6; }
  11481. as_val=`eval 'as_val=${'$as_ac_Lib'}
  11482. $as_echo "$as_val"'`
  11483. if test "x$as_val" = x""yes; then
  11484. AST_TINFO_FOUND=yes
  11485. else
  11486. AST_TINFO_FOUND=no
  11487. fi
  11488. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11489. fi
  11490. # now check for the header.
  11491. if test "${AST_TINFO_FOUND}" = "yes"; then
  11492. TINFO_LIB="${pbxlibdir} -ltinfo "
  11493. # if --with-TINFO=DIR has been specified, use it.
  11494. if test "x${TINFO_DIR}" != "x"; then
  11495. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  11496. fi
  11497. TINFO_INCLUDE="${TINFO_INCLUDE} "
  11498. if test "x" = "x" ; then # no header, assume found
  11499. TINFO_HEADER_FOUND="1"
  11500. else # check for the header
  11501. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11502. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  11503. if test "${ac_cv_header_+set}" = set; then
  11504. { $as_echo "$as_me:$LINENO: checking for " >&5
  11505. $as_echo_n "checking for ... " >&6; }
  11506. if test "${ac_cv_header_+set}" = set; then
  11507. $as_echo_n "(cached) " >&6
  11508. fi
  11509. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  11510. $as_echo "$ac_cv_header_" >&6; }
  11511. else
  11512. # Is the header compilable?
  11513. { $as_echo "$as_me:$LINENO: checking usability" >&5
  11514. $as_echo_n "checking usability... " >&6; }
  11515. cat >conftest.$ac_ext <<_ACEOF
  11516. /* confdefs.h. */
  11517. _ACEOF
  11518. cat confdefs.h >>conftest.$ac_ext
  11519. cat >>conftest.$ac_ext <<_ACEOF
  11520. /* end confdefs.h. */
  11521. $ac_includes_default
  11522. #include <>
  11523. _ACEOF
  11524. rm -f conftest.$ac_objext
  11525. if { (ac_try="$ac_compile"
  11526. case "(($ac_try" in
  11527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11528. *) ac_try_echo=$ac_try;;
  11529. esac
  11530. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11531. $as_echo "$ac_try_echo") >&5
  11532. (eval "$ac_compile") 2>conftest.er1
  11533. ac_status=$?
  11534. grep -v '^ *+' conftest.er1 >conftest.err
  11535. rm -f conftest.er1
  11536. cat conftest.err >&5
  11537. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11538. (exit $ac_status); } && {
  11539. test -z "$ac_c_werror_flag" ||
  11540. test ! -s conftest.err
  11541. } && test -s conftest.$ac_objext; then
  11542. ac_header_compiler=yes
  11543. else
  11544. $as_echo "$as_me: failed program was:" >&5
  11545. sed 's/^/| /' conftest.$ac_ext >&5
  11546. ac_header_compiler=no
  11547. fi
  11548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11549. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11550. $as_echo "$ac_header_compiler" >&6; }
  11551. # Is the header present?
  11552. { $as_echo "$as_me:$LINENO: checking presence" >&5
  11553. $as_echo_n "checking presence... " >&6; }
  11554. cat >conftest.$ac_ext <<_ACEOF
  11555. /* confdefs.h. */
  11556. _ACEOF
  11557. cat confdefs.h >>conftest.$ac_ext
  11558. cat >>conftest.$ac_ext <<_ACEOF
  11559. /* end confdefs.h. */
  11560. #include <>
  11561. _ACEOF
  11562. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11563. case "(($ac_try" in
  11564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11565. *) ac_try_echo=$ac_try;;
  11566. esac
  11567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11568. $as_echo "$ac_try_echo") >&5
  11569. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11570. ac_status=$?
  11571. grep -v '^ *+' conftest.er1 >conftest.err
  11572. rm -f conftest.er1
  11573. cat conftest.err >&5
  11574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11575. (exit $ac_status); } >/dev/null && {
  11576. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11577. test ! -s conftest.err
  11578. }; then
  11579. ac_header_preproc=yes
  11580. else
  11581. $as_echo "$as_me: failed program was:" >&5
  11582. sed 's/^/| /' conftest.$ac_ext >&5
  11583. ac_header_preproc=no
  11584. fi
  11585. rm -f conftest.err conftest.$ac_ext
  11586. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11587. $as_echo "$ac_header_preproc" >&6; }
  11588. # So? What about this header?
  11589. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11590. yes:no: )
  11591. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  11592. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  11593. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  11594. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  11595. ac_header_preproc=yes
  11596. ;;
  11597. no:yes:* )
  11598. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  11599. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  11600. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  11601. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  11602. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  11603. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  11604. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  11605. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  11606. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  11607. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  11608. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  11609. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  11610. ( cat <<\_ASBOX
  11611. ## ------------------------------------------ ##
  11612. ## Report this to https://issues.asterisk.org ##
  11613. ## ------------------------------------------ ##
  11614. _ASBOX
  11615. ) | sed "s/^/$as_me: WARNING: /" >&2
  11616. ;;
  11617. esac
  11618. { $as_echo "$as_me:$LINENO: checking for " >&5
  11619. $as_echo_n "checking for ... " >&6; }
  11620. if test "${ac_cv_header_+set}" = set; then
  11621. $as_echo_n "(cached) " >&6
  11622. else
  11623. ac_cv_header_=$ac_header_preproc
  11624. fi
  11625. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  11626. $as_echo "$ac_cv_header_" >&6; }
  11627. fi
  11628. if test "x$ac_cv_header_" = x""yes; then
  11629. TINFO_HEADER_FOUND=1
  11630. else
  11631. TINFO_HEADER_FOUND=0
  11632. fi
  11633. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11634. fi
  11635. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  11636. TINFO_LIB=""
  11637. TINFO_INCLUDE=""
  11638. else
  11639. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11640. TINFO_LIB=""
  11641. fi
  11642. PBX_TINFO=1
  11643. cat >>confdefs.h <<_ACEOF
  11644. #define HAVE_TINFO 1
  11645. _ACEOF
  11646. fi
  11647. fi
  11648. fi
  11649. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  11650. pbxlibdir=""
  11651. # if --with-CURSES=DIR has been specified, use it.
  11652. if test "x${CURSES_DIR}" != "x"; then
  11653. if test -d ${CURSES_DIR}/lib; then
  11654. pbxlibdir="-L${CURSES_DIR}/lib"
  11655. else
  11656. pbxlibdir="-L${CURSES_DIR}"
  11657. fi
  11658. fi
  11659. pbxfuncname="initscr"
  11660. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11661. AST_CURSES_FOUND=yes
  11662. else
  11663. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11664. CFLAGS="${CFLAGS} "
  11665. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  11666. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
  11667. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  11668. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  11669. $as_echo_n "(cached) " >&6
  11670. else
  11671. ac_check_lib_save_LIBS=$LIBS
  11672. LIBS="-lcurses ${pbxlibdir} $LIBS"
  11673. cat >conftest.$ac_ext <<_ACEOF
  11674. /* confdefs.h. */
  11675. _ACEOF
  11676. cat confdefs.h >>conftest.$ac_ext
  11677. cat >>conftest.$ac_ext <<_ACEOF
  11678. /* end confdefs.h. */
  11679. /* Override any GCC internal prototype to avoid an error.
  11680. Use char because int might match the return type of a GCC
  11681. builtin and then its argument prototype would still apply. */
  11682. #ifdef __cplusplus
  11683. extern "C"
  11684. #endif
  11685. char ${pbxfuncname} ();
  11686. int
  11687. main ()
  11688. {
  11689. return ${pbxfuncname} ();
  11690. ;
  11691. return 0;
  11692. }
  11693. _ACEOF
  11694. rm -f conftest.$ac_objext conftest$ac_exeext
  11695. if { (ac_try="$ac_link"
  11696. case "(($ac_try" in
  11697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11698. *) ac_try_echo=$ac_try;;
  11699. esac
  11700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11701. $as_echo "$ac_try_echo") >&5
  11702. (eval "$ac_link") 2>conftest.er1
  11703. ac_status=$?
  11704. grep -v '^ *+' conftest.er1 >conftest.err
  11705. rm -f conftest.er1
  11706. cat conftest.err >&5
  11707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11708. (exit $ac_status); } && {
  11709. test -z "$ac_c_werror_flag" ||
  11710. test ! -s conftest.err
  11711. } && test -s conftest$ac_exeext && {
  11712. test "$cross_compiling" = yes ||
  11713. $as_test_x conftest$ac_exeext
  11714. }; then
  11715. eval "$as_ac_Lib=yes"
  11716. else
  11717. $as_echo "$as_me: failed program was:" >&5
  11718. sed 's/^/| /' conftest.$ac_ext >&5
  11719. eval "$as_ac_Lib=no"
  11720. fi
  11721. rm -rf conftest.dSYM
  11722. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11723. conftest$ac_exeext conftest.$ac_ext
  11724. LIBS=$ac_check_lib_save_LIBS
  11725. fi
  11726. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  11727. $as_echo "$as_val"'`
  11728. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11729. $as_echo "$ac_res" >&6; }
  11730. as_val=`eval 'as_val=${'$as_ac_Lib'}
  11731. $as_echo "$as_val"'`
  11732. if test "x$as_val" = x""yes; then
  11733. AST_CURSES_FOUND=yes
  11734. else
  11735. AST_CURSES_FOUND=no
  11736. fi
  11737. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11738. fi
  11739. # now check for the header.
  11740. if test "${AST_CURSES_FOUND}" = "yes"; then
  11741. CURSES_LIB="${pbxlibdir} -lcurses "
  11742. # if --with-CURSES=DIR has been specified, use it.
  11743. if test "x${CURSES_DIR}" != "x"; then
  11744. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  11745. fi
  11746. CURSES_INCLUDE="${CURSES_INCLUDE} "
  11747. if test "xcurses.h" = "x" ; then # no header, assume found
  11748. CURSES_HEADER_FOUND="1"
  11749. else # check for the header
  11750. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11751. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  11752. if test "${ac_cv_header_curses_h+set}" = set; then
  11753. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  11754. $as_echo_n "checking for curses.h... " >&6; }
  11755. if test "${ac_cv_header_curses_h+set}" = set; then
  11756. $as_echo_n "(cached) " >&6
  11757. fi
  11758. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  11759. $as_echo "$ac_cv_header_curses_h" >&6; }
  11760. else
  11761. # Is the header compilable?
  11762. { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
  11763. $as_echo_n "checking curses.h usability... " >&6; }
  11764. cat >conftest.$ac_ext <<_ACEOF
  11765. /* confdefs.h. */
  11766. _ACEOF
  11767. cat confdefs.h >>conftest.$ac_ext
  11768. cat >>conftest.$ac_ext <<_ACEOF
  11769. /* end confdefs.h. */
  11770. $ac_includes_default
  11771. #include <curses.h>
  11772. _ACEOF
  11773. rm -f conftest.$ac_objext
  11774. if { (ac_try="$ac_compile"
  11775. case "(($ac_try" in
  11776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11777. *) ac_try_echo=$ac_try;;
  11778. esac
  11779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11780. $as_echo "$ac_try_echo") >&5
  11781. (eval "$ac_compile") 2>conftest.er1
  11782. ac_status=$?
  11783. grep -v '^ *+' conftest.er1 >conftest.err
  11784. rm -f conftest.er1
  11785. cat conftest.err >&5
  11786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11787. (exit $ac_status); } && {
  11788. test -z "$ac_c_werror_flag" ||
  11789. test ! -s conftest.err
  11790. } && test -s conftest.$ac_objext; then
  11791. ac_header_compiler=yes
  11792. else
  11793. $as_echo "$as_me: failed program was:" >&5
  11794. sed 's/^/| /' conftest.$ac_ext >&5
  11795. ac_header_compiler=no
  11796. fi
  11797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11798. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11799. $as_echo "$ac_header_compiler" >&6; }
  11800. # Is the header present?
  11801. { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
  11802. $as_echo_n "checking curses.h presence... " >&6; }
  11803. cat >conftest.$ac_ext <<_ACEOF
  11804. /* confdefs.h. */
  11805. _ACEOF
  11806. cat confdefs.h >>conftest.$ac_ext
  11807. cat >>conftest.$ac_ext <<_ACEOF
  11808. /* end confdefs.h. */
  11809. #include <curses.h>
  11810. _ACEOF
  11811. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11812. case "(($ac_try" in
  11813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11814. *) ac_try_echo=$ac_try;;
  11815. esac
  11816. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11817. $as_echo "$ac_try_echo") >&5
  11818. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11819. ac_status=$?
  11820. grep -v '^ *+' conftest.er1 >conftest.err
  11821. rm -f conftest.er1
  11822. cat conftest.err >&5
  11823. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11824. (exit $ac_status); } >/dev/null && {
  11825. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11826. test ! -s conftest.err
  11827. }; then
  11828. ac_header_preproc=yes
  11829. else
  11830. $as_echo "$as_me: failed program was:" >&5
  11831. sed 's/^/| /' conftest.$ac_ext >&5
  11832. ac_header_preproc=no
  11833. fi
  11834. rm -f conftest.err conftest.$ac_ext
  11835. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11836. $as_echo "$ac_header_preproc" >&6; }
  11837. # So? What about this header?
  11838. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11839. yes:no: )
  11840. { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11841. $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11842. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
  11843. $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
  11844. ac_header_preproc=yes
  11845. ;;
  11846. no:yes:* )
  11847. { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
  11848. $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
  11849. { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
  11850. $as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
  11851. { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
  11852. $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
  11853. { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
  11854. $as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11855. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
  11856. $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
  11857. { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
  11858. $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
  11859. ( cat <<\_ASBOX
  11860. ## ------------------------------------------ ##
  11861. ## Report this to https://issues.asterisk.org ##
  11862. ## ------------------------------------------ ##
  11863. _ASBOX
  11864. ) | sed "s/^/$as_me: WARNING: /" >&2
  11865. ;;
  11866. esac
  11867. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  11868. $as_echo_n "checking for curses.h... " >&6; }
  11869. if test "${ac_cv_header_curses_h+set}" = set; then
  11870. $as_echo_n "(cached) " >&6
  11871. else
  11872. ac_cv_header_curses_h=$ac_header_preproc
  11873. fi
  11874. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  11875. $as_echo "$ac_cv_header_curses_h" >&6; }
  11876. fi
  11877. if test "x$ac_cv_header_curses_h" = x""yes; then
  11878. CURSES_HEADER_FOUND=1
  11879. else
  11880. CURSES_HEADER_FOUND=0
  11881. fi
  11882. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11883. fi
  11884. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  11885. CURSES_LIB=""
  11886. CURSES_INCLUDE=""
  11887. else
  11888. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11889. CURSES_LIB=""
  11890. fi
  11891. PBX_CURSES=1
  11892. cat >>confdefs.h <<_ACEOF
  11893. #define HAVE_CURSES 1
  11894. _ACEOF
  11895. fi
  11896. fi
  11897. fi
  11898. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  11899. pbxlibdir=""
  11900. # if --with-NCURSES=DIR has been specified, use it.
  11901. if test "x${NCURSES_DIR}" != "x"; then
  11902. if test -d ${NCURSES_DIR}/lib; then
  11903. pbxlibdir="-L${NCURSES_DIR}/lib"
  11904. else
  11905. pbxlibdir="-L${NCURSES_DIR}"
  11906. fi
  11907. fi
  11908. pbxfuncname="initscr"
  11909. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11910. AST_NCURSES_FOUND=yes
  11911. else
  11912. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11913. CFLAGS="${CFLAGS} "
  11914. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  11915. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
  11916. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  11917. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  11918. $as_echo_n "(cached) " >&6
  11919. else
  11920. ac_check_lib_save_LIBS=$LIBS
  11921. LIBS="-lncurses ${pbxlibdir} $LIBS"
  11922. cat >conftest.$ac_ext <<_ACEOF
  11923. /* confdefs.h. */
  11924. _ACEOF
  11925. cat confdefs.h >>conftest.$ac_ext
  11926. cat >>conftest.$ac_ext <<_ACEOF
  11927. /* end confdefs.h. */
  11928. /* Override any GCC internal prototype to avoid an error.
  11929. Use char because int might match the return type of a GCC
  11930. builtin and then its argument prototype would still apply. */
  11931. #ifdef __cplusplus
  11932. extern "C"
  11933. #endif
  11934. char ${pbxfuncname} ();
  11935. int
  11936. main ()
  11937. {
  11938. return ${pbxfuncname} ();
  11939. ;
  11940. return 0;
  11941. }
  11942. _ACEOF
  11943. rm -f conftest.$ac_objext conftest$ac_exeext
  11944. if { (ac_try="$ac_link"
  11945. case "(($ac_try" in
  11946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11947. *) ac_try_echo=$ac_try;;
  11948. esac
  11949. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11950. $as_echo "$ac_try_echo") >&5
  11951. (eval "$ac_link") 2>conftest.er1
  11952. ac_status=$?
  11953. grep -v '^ *+' conftest.er1 >conftest.err
  11954. rm -f conftest.er1
  11955. cat conftest.err >&5
  11956. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11957. (exit $ac_status); } && {
  11958. test -z "$ac_c_werror_flag" ||
  11959. test ! -s conftest.err
  11960. } && test -s conftest$ac_exeext && {
  11961. test "$cross_compiling" = yes ||
  11962. $as_test_x conftest$ac_exeext
  11963. }; then
  11964. eval "$as_ac_Lib=yes"
  11965. else
  11966. $as_echo "$as_me: failed program was:" >&5
  11967. sed 's/^/| /' conftest.$ac_ext >&5
  11968. eval "$as_ac_Lib=no"
  11969. fi
  11970. rm -rf conftest.dSYM
  11971. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11972. conftest$ac_exeext conftest.$ac_ext
  11973. LIBS=$ac_check_lib_save_LIBS
  11974. fi
  11975. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  11976. $as_echo "$as_val"'`
  11977. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11978. $as_echo "$ac_res" >&6; }
  11979. as_val=`eval 'as_val=${'$as_ac_Lib'}
  11980. $as_echo "$as_val"'`
  11981. if test "x$as_val" = x""yes; then
  11982. AST_NCURSES_FOUND=yes
  11983. else
  11984. AST_NCURSES_FOUND=no
  11985. fi
  11986. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11987. fi
  11988. # now check for the header.
  11989. if test "${AST_NCURSES_FOUND}" = "yes"; then
  11990. NCURSES_LIB="${pbxlibdir} -lncurses "
  11991. # if --with-NCURSES=DIR has been specified, use it.
  11992. if test "x${NCURSES_DIR}" != "x"; then
  11993. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  11994. fi
  11995. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  11996. if test "xcurses.h" = "x" ; then # no header, assume found
  11997. NCURSES_HEADER_FOUND="1"
  11998. else # check for the header
  11999. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  12000. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  12001. if test "${ac_cv_header_curses_h+set}" = set; then
  12002. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  12003. $as_echo_n "checking for curses.h... " >&6; }
  12004. if test "${ac_cv_header_curses_h+set}" = set; then
  12005. $as_echo_n "(cached) " >&6
  12006. fi
  12007. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  12008. $as_echo "$ac_cv_header_curses_h" >&6; }
  12009. else
  12010. # Is the header compilable?
  12011. { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
  12012. $as_echo_n "checking curses.h usability... " >&6; }
  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. $ac_includes_default
  12020. #include <curses.h>
  12021. _ACEOF
  12022. rm -f conftest.$ac_objext
  12023. if { (ac_try="$ac_compile"
  12024. case "(($ac_try" in
  12025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12026. *) ac_try_echo=$ac_try;;
  12027. esac
  12028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12029. $as_echo "$ac_try_echo") >&5
  12030. (eval "$ac_compile") 2>conftest.er1
  12031. ac_status=$?
  12032. grep -v '^ *+' conftest.er1 >conftest.err
  12033. rm -f conftest.er1
  12034. cat conftest.err >&5
  12035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12036. (exit $ac_status); } && {
  12037. test -z "$ac_c_werror_flag" ||
  12038. test ! -s conftest.err
  12039. } && test -s conftest.$ac_objext; then
  12040. ac_header_compiler=yes
  12041. else
  12042. $as_echo "$as_me: failed program was:" >&5
  12043. sed 's/^/| /' conftest.$ac_ext >&5
  12044. ac_header_compiler=no
  12045. fi
  12046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12047. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12048. $as_echo "$ac_header_compiler" >&6; }
  12049. # Is the header present?
  12050. { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
  12051. $as_echo_n "checking curses.h presence... " >&6; }
  12052. cat >conftest.$ac_ext <<_ACEOF
  12053. /* confdefs.h. */
  12054. _ACEOF
  12055. cat confdefs.h >>conftest.$ac_ext
  12056. cat >>conftest.$ac_ext <<_ACEOF
  12057. /* end confdefs.h. */
  12058. #include <curses.h>
  12059. _ACEOF
  12060. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12061. case "(($ac_try" in
  12062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12063. *) ac_try_echo=$ac_try;;
  12064. esac
  12065. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12066. $as_echo "$ac_try_echo") >&5
  12067. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12068. ac_status=$?
  12069. grep -v '^ *+' conftest.er1 >conftest.err
  12070. rm -f conftest.er1
  12071. cat conftest.err >&5
  12072. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12073. (exit $ac_status); } >/dev/null && {
  12074. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12075. test ! -s conftest.err
  12076. }; then
  12077. ac_header_preproc=yes
  12078. else
  12079. $as_echo "$as_me: failed program was:" >&5
  12080. sed 's/^/| /' conftest.$ac_ext >&5
  12081. ac_header_preproc=no
  12082. fi
  12083. rm -f conftest.err conftest.$ac_ext
  12084. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12085. $as_echo "$ac_header_preproc" >&6; }
  12086. # So? What about this header?
  12087. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12088. yes:no: )
  12089. { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
  12090. $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12091. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
  12092. $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
  12093. ac_header_preproc=yes
  12094. ;;
  12095. no:yes:* )
  12096. { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
  12097. $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
  12098. { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
  12099. $as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
  12100. { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
  12101. $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
  12102. { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
  12103. $as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
  12104. { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
  12105. $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
  12106. { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
  12107. $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
  12108. ( cat <<\_ASBOX
  12109. ## ------------------------------------------ ##
  12110. ## Report this to https://issues.asterisk.org ##
  12111. ## ------------------------------------------ ##
  12112. _ASBOX
  12113. ) | sed "s/^/$as_me: WARNING: /" >&2
  12114. ;;
  12115. esac
  12116. { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
  12117. $as_echo_n "checking for curses.h... " >&6; }
  12118. if test "${ac_cv_header_curses_h+set}" = set; then
  12119. $as_echo_n "(cached) " >&6
  12120. else
  12121. ac_cv_header_curses_h=$ac_header_preproc
  12122. fi
  12123. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
  12124. $as_echo "$ac_cv_header_curses_h" >&6; }
  12125. fi
  12126. if test "x$ac_cv_header_curses_h" = x""yes; then
  12127. NCURSES_HEADER_FOUND=1
  12128. else
  12129. NCURSES_HEADER_FOUND=0
  12130. fi
  12131. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  12132. fi
  12133. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  12134. NCURSES_LIB=""
  12135. NCURSES_INCLUDE=""
  12136. else
  12137. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  12138. NCURSES_LIB=""
  12139. fi
  12140. PBX_NCURSES=1
  12141. cat >>confdefs.h <<_ACEOF
  12142. #define HAVE_NCURSES 1
  12143. _ACEOF
  12144. fi
  12145. fi
  12146. fi
  12147. EDITLINE_LIB=""
  12148. if test "x$TERMCAP_LIB" != "x" ; then
  12149. EDITLINE_LIB="$TERMCAP_LIB"
  12150. elif test "x$TINFO_LIB" != "x" ; then
  12151. EDITLINE_LIB="$TINFO_LIB"
  12152. elif test "x$CURSES_LIB" != "x" ; then
  12153. EDITLINE_LIB="$CURSES_LIB"
  12154. elif test "x$NCURSES_LIB" != "x" ; then
  12155. EDITLINE_LIB="$NCURSES_LIB"
  12156. else
  12157. { { $as_echo "$as_me:$LINENO: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" >&5
  12158. $as_echo "$as_me: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" >&2;}
  12159. { (exit 1); exit 1; }; }
  12160. fi
  12161. # Another mandatory item (unless it's explicitly disabled)
  12162. # Check whether --enable-xmldoc was given.
  12163. if test "${enable_xmldoc+set}" = set; then
  12164. enableval=$enable_xmldoc; case "${enableval}" in
  12165. y|ye|yes) disable_xmldoc=no ;;
  12166. n|no) disable_xmldoc=yes ;;
  12167. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-xmldoc" >&5
  12168. $as_echo "$as_me: error: bad value ${enableval} for --disable-xmldoc" >&2;}
  12169. { (exit 1); exit 1; }; } ;;
  12170. esac
  12171. else
  12172. disable_xmldoc=no
  12173. fi
  12174. if test "${disable_xmldoc}" != "yes"; then
  12175. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  12176. PBX_LIBXML2=0
  12177. if test -n "$ac_tool_prefix"; then
  12178. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  12179. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  12180. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12181. $as_echo_n "checking for $ac_word... " >&6; }
  12182. if test "${ac_cv_path_CONFIG_LIBXML2+set}" = set; then
  12183. $as_echo_n "(cached) " >&6
  12184. else
  12185. case $CONFIG_LIBXML2 in
  12186. [\\/]* | ?:[\\/]*)
  12187. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  12188. ;;
  12189. *)
  12190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12191. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  12192. for as_dir in $as_dummy
  12193. do
  12194. IFS=$as_save_IFS
  12195. test -z "$as_dir" && as_dir=.
  12196. for ac_exec_ext in '' $ac_executable_extensions; do
  12197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12198. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  12199. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12200. break 2
  12201. fi
  12202. done
  12203. done
  12204. IFS=$as_save_IFS
  12205. ;;
  12206. esac
  12207. fi
  12208. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  12209. if test -n "$CONFIG_LIBXML2"; then
  12210. { $as_echo "$as_me:$LINENO: result: $CONFIG_LIBXML2" >&5
  12211. $as_echo "$CONFIG_LIBXML2" >&6; }
  12212. else
  12213. { $as_echo "$as_me:$LINENO: result: no" >&5
  12214. $as_echo "no" >&6; }
  12215. fi
  12216. fi
  12217. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  12218. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  12219. # Extract the first word of "xml2-config", so it can be a program name with args.
  12220. set dummy xml2-config; ac_word=$2
  12221. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12222. $as_echo_n "checking for $ac_word... " >&6; }
  12223. if test "${ac_cv_path_ac_pt_CONFIG_LIBXML2+set}" = set; then
  12224. $as_echo_n "(cached) " >&6
  12225. else
  12226. case $ac_pt_CONFIG_LIBXML2 in
  12227. [\\/]* | ?:[\\/]*)
  12228. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  12229. ;;
  12230. *)
  12231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12232. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  12233. for as_dir in $as_dummy
  12234. do
  12235. IFS=$as_save_IFS
  12236. test -z "$as_dir" && as_dir=.
  12237. for ac_exec_ext in '' $ac_executable_extensions; do
  12238. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12239. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  12240. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12241. break 2
  12242. fi
  12243. done
  12244. done
  12245. IFS=$as_save_IFS
  12246. ;;
  12247. esac
  12248. fi
  12249. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  12250. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  12251. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_LIBXML2" >&5
  12252. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  12253. else
  12254. { $as_echo "$as_me:$LINENO: result: no" >&5
  12255. $as_echo "no" >&6; }
  12256. fi
  12257. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  12258. CONFIG_LIBXML2="No"
  12259. else
  12260. case $cross_compiling:$ac_tool_warned in
  12261. yes:)
  12262. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  12263. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12264. ac_tool_warned=yes ;;
  12265. esac
  12266. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  12267. fi
  12268. else
  12269. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  12270. fi
  12271. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  12272. if test x"" = x ; then A=--cflags ; else A="" ; fi
  12273. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  12274. if test x"" = x ; then A=--libs ; else A="" ; fi
  12275. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  12276. if test x"#include <libxml/tree.h>
  12277. #include <libxml/parser.h>" != x ; then
  12278. saved_cppflags="${CPPFLAGS}"
  12279. if test "x${LIBXML2_DIR}" != "x"; then
  12280. LIBXML2_INCLUDE="-I${LIBXML2_DIR}/include"
  12281. fi
  12282. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  12283. saved_libs="${LIBS}"
  12284. LIBS="${LIBXML2_LIB}"
  12285. cat >conftest.$ac_ext <<_ACEOF
  12286. /* confdefs.h. */
  12287. _ACEOF
  12288. cat confdefs.h >>conftest.$ac_ext
  12289. cat >>conftest.$ac_ext <<_ACEOF
  12290. /* end confdefs.h. */
  12291. #include <libxml/tree.h>
  12292. #include <libxml/parser.h>
  12293. int
  12294. main ()
  12295. {
  12296. LIBXML_TEST_VERSION;
  12297. ;
  12298. return 0;
  12299. }
  12300. _ACEOF
  12301. rm -f conftest.$ac_objext conftest$ac_exeext
  12302. if { (ac_try="$ac_link"
  12303. case "(($ac_try" in
  12304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12305. *) ac_try_echo=$ac_try;;
  12306. esac
  12307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12308. $as_echo "$ac_try_echo") >&5
  12309. (eval "$ac_link") 2>conftest.er1
  12310. ac_status=$?
  12311. grep -v '^ *+' conftest.er1 >conftest.err
  12312. rm -f conftest.er1
  12313. cat conftest.err >&5
  12314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12315. (exit $ac_status); } && {
  12316. test -z "$ac_c_werror_flag" ||
  12317. test ! -s conftest.err
  12318. } && test -s conftest$ac_exeext && {
  12319. test "$cross_compiling" = yes ||
  12320. $as_test_x conftest$ac_exeext
  12321. }; then
  12322. PBX_LIBXML2=1
  12323. cat >>confdefs.h <<\_ACEOF
  12324. #define HAVE_LIBXML2 1
  12325. _ACEOF
  12326. else
  12327. $as_echo "$as_me: failed program was:" >&5
  12328. sed 's/^/| /' conftest.$ac_ext >&5
  12329. fi
  12330. rm -rf conftest.dSYM
  12331. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12332. conftest$ac_exeext conftest.$ac_ext
  12333. CPPFLAGS="${saved_cppflags}"
  12334. LIBS="${saved_libs}"
  12335. else
  12336. PBX_LIBXML2=1
  12337. cat >>confdefs.h <<\_ACEOF
  12338. #define HAVE_LIBXML2 1
  12339. _ACEOF
  12340. fi
  12341. fi
  12342. fi
  12343. if test "${PBX_LIBXML2}" != 1; then
  12344. { $as_echo "$as_me:$LINENO: *** XML documentation will not be available because the 'libxml2' development package is missing." >&5
  12345. $as_echo "$as_me: *** XML documentation will not be available because the 'libxml2' development package is missing." >&6;}
  12346. { $as_echo "$as_me:$LINENO: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&5
  12347. $as_echo "$as_me: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&6;}
  12348. { $as_echo "$as_me:$LINENO: *** or install the 'libxml2' development package." >&5
  12349. $as_echo "$as_me: *** or install the 'libxml2' development package." >&6;}
  12350. exit 1
  12351. fi
  12352. fi
  12353. # some embedded systems omit internationalization (locale) support
  12354. for ac_header in xlocale.h
  12355. do
  12356. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12357. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12358. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12359. $as_echo_n "checking for $ac_header... " >&6; }
  12360. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12361. $as_echo_n "(cached) " >&6
  12362. fi
  12363. ac_res=`eval 'as_val=${'$as_ac_Header'}
  12364. $as_echo "$as_val"'`
  12365. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12366. $as_echo "$ac_res" >&6; }
  12367. else
  12368. # Is the header compilable?
  12369. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12370. $as_echo_n "checking $ac_header usability... " >&6; }
  12371. cat >conftest.$ac_ext <<_ACEOF
  12372. /* confdefs.h. */
  12373. _ACEOF
  12374. cat confdefs.h >>conftest.$ac_ext
  12375. cat >>conftest.$ac_ext <<_ACEOF
  12376. /* end confdefs.h. */
  12377. $ac_includes_default
  12378. #include <$ac_header>
  12379. _ACEOF
  12380. rm -f conftest.$ac_objext
  12381. if { (ac_try="$ac_compile"
  12382. case "(($ac_try" in
  12383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12384. *) ac_try_echo=$ac_try;;
  12385. esac
  12386. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12387. $as_echo "$ac_try_echo") >&5
  12388. (eval "$ac_compile") 2>conftest.er1
  12389. ac_status=$?
  12390. grep -v '^ *+' conftest.er1 >conftest.err
  12391. rm -f conftest.er1
  12392. cat conftest.err >&5
  12393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12394. (exit $ac_status); } && {
  12395. test -z "$ac_c_werror_flag" ||
  12396. test ! -s conftest.err
  12397. } && test -s conftest.$ac_objext; then
  12398. ac_header_compiler=yes
  12399. else
  12400. $as_echo "$as_me: failed program was:" >&5
  12401. sed 's/^/| /' conftest.$ac_ext >&5
  12402. ac_header_compiler=no
  12403. fi
  12404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12405. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12406. $as_echo "$ac_header_compiler" >&6; }
  12407. # Is the header present?
  12408. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12409. $as_echo_n "checking $ac_header presence... " >&6; }
  12410. cat >conftest.$ac_ext <<_ACEOF
  12411. /* confdefs.h. */
  12412. _ACEOF
  12413. cat confdefs.h >>conftest.$ac_ext
  12414. cat >>conftest.$ac_ext <<_ACEOF
  12415. /* end confdefs.h. */
  12416. #include <$ac_header>
  12417. _ACEOF
  12418. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12419. case "(($ac_try" in
  12420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12421. *) ac_try_echo=$ac_try;;
  12422. esac
  12423. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12424. $as_echo "$ac_try_echo") >&5
  12425. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12426. ac_status=$?
  12427. grep -v '^ *+' conftest.er1 >conftest.err
  12428. rm -f conftest.er1
  12429. cat conftest.err >&5
  12430. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12431. (exit $ac_status); } >/dev/null && {
  12432. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12433. test ! -s conftest.err
  12434. }; then
  12435. ac_header_preproc=yes
  12436. else
  12437. $as_echo "$as_me: failed program was:" >&5
  12438. sed 's/^/| /' conftest.$ac_ext >&5
  12439. ac_header_preproc=no
  12440. fi
  12441. rm -f conftest.err conftest.$ac_ext
  12442. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12443. $as_echo "$ac_header_preproc" >&6; }
  12444. # So? What about this header?
  12445. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12446. yes:no: )
  12447. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12448. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12449. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12450. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12451. ac_header_preproc=yes
  12452. ;;
  12453. no:yes:* )
  12454. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12455. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12456. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12457. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12458. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12459. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12460. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12461. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12462. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12463. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12464. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12465. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12466. ( cat <<\_ASBOX
  12467. ## ------------------------------------------ ##
  12468. ## Report this to https://issues.asterisk.org ##
  12469. ## ------------------------------------------ ##
  12470. _ASBOX
  12471. ) | sed "s/^/$as_me: WARNING: /" >&2
  12472. ;;
  12473. esac
  12474. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12475. $as_echo_n "checking for $ac_header... " >&6; }
  12476. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12477. $as_echo_n "(cached) " >&6
  12478. else
  12479. eval "$as_ac_Header=\$ac_header_preproc"
  12480. fi
  12481. ac_res=`eval 'as_val=${'$as_ac_Header'}
  12482. $as_echo "$as_val"'`
  12483. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12484. $as_echo "$ac_res" >&6; }
  12485. fi
  12486. as_val=`eval 'as_val=${'$as_ac_Header'}
  12487. $as_echo "$as_val"'`
  12488. if test "x$as_val" = x""yes; then
  12489. cat >>confdefs.h <<_ACEOF
  12490. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12491. _ACEOF
  12492. fi
  12493. done
  12494. for ac_header in winsock.h winsock2.h
  12495. do
  12496. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12497. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12498. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12499. $as_echo_n "checking for $ac_header... " >&6; }
  12500. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12501. $as_echo_n "(cached) " >&6
  12502. fi
  12503. ac_res=`eval 'as_val=${'$as_ac_Header'}
  12504. $as_echo "$as_val"'`
  12505. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12506. $as_echo "$ac_res" >&6; }
  12507. else
  12508. # Is the header compilable?
  12509. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12510. $as_echo_n "checking $ac_header usability... " >&6; }
  12511. cat >conftest.$ac_ext <<_ACEOF
  12512. /* confdefs.h. */
  12513. _ACEOF
  12514. cat confdefs.h >>conftest.$ac_ext
  12515. cat >>conftest.$ac_ext <<_ACEOF
  12516. /* end confdefs.h. */
  12517. $ac_includes_default
  12518. #include <$ac_header>
  12519. _ACEOF
  12520. rm -f conftest.$ac_objext
  12521. if { (ac_try="$ac_compile"
  12522. case "(($ac_try" in
  12523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12524. *) ac_try_echo=$ac_try;;
  12525. esac
  12526. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12527. $as_echo "$ac_try_echo") >&5
  12528. (eval "$ac_compile") 2>conftest.er1
  12529. ac_status=$?
  12530. grep -v '^ *+' conftest.er1 >conftest.err
  12531. rm -f conftest.er1
  12532. cat conftest.err >&5
  12533. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12534. (exit $ac_status); } && {
  12535. test -z "$ac_c_werror_flag" ||
  12536. test ! -s conftest.err
  12537. } && test -s conftest.$ac_objext; then
  12538. ac_header_compiler=yes
  12539. else
  12540. $as_echo "$as_me: failed program was:" >&5
  12541. sed 's/^/| /' conftest.$ac_ext >&5
  12542. ac_header_compiler=no
  12543. fi
  12544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12545. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12546. $as_echo "$ac_header_compiler" >&6; }
  12547. # Is the header present?
  12548. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12549. $as_echo_n "checking $ac_header presence... " >&6; }
  12550. cat >conftest.$ac_ext <<_ACEOF
  12551. /* confdefs.h. */
  12552. _ACEOF
  12553. cat confdefs.h >>conftest.$ac_ext
  12554. cat >>conftest.$ac_ext <<_ACEOF
  12555. /* end confdefs.h. */
  12556. #include <$ac_header>
  12557. _ACEOF
  12558. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12559. case "(($ac_try" in
  12560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12561. *) ac_try_echo=$ac_try;;
  12562. esac
  12563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12564. $as_echo "$ac_try_echo") >&5
  12565. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12566. ac_status=$?
  12567. grep -v '^ *+' conftest.er1 >conftest.err
  12568. rm -f conftest.er1
  12569. cat conftest.err >&5
  12570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12571. (exit $ac_status); } >/dev/null && {
  12572. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12573. test ! -s conftest.err
  12574. }; then
  12575. ac_header_preproc=yes
  12576. else
  12577. $as_echo "$as_me: failed program was:" >&5
  12578. sed 's/^/| /' conftest.$ac_ext >&5
  12579. ac_header_preproc=no
  12580. fi
  12581. rm -f conftest.err conftest.$ac_ext
  12582. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12583. $as_echo "$ac_header_preproc" >&6; }
  12584. # So? What about this header?
  12585. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12586. yes:no: )
  12587. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12588. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12589. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12590. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12591. ac_header_preproc=yes
  12592. ;;
  12593. no:yes:* )
  12594. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12595. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12596. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12597. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12598. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12599. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12600. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12601. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12602. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12603. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12604. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12605. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12606. ( cat <<\_ASBOX
  12607. ## ------------------------------------------ ##
  12608. ## Report this to https://issues.asterisk.org ##
  12609. ## ------------------------------------------ ##
  12610. _ASBOX
  12611. ) | sed "s/^/$as_me: WARNING: /" >&2
  12612. ;;
  12613. esac
  12614. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  12615. $as_echo_n "checking for $ac_header... " >&6; }
  12616. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12617. $as_echo_n "(cached) " >&6
  12618. else
  12619. eval "$as_ac_Header=\$ac_header_preproc"
  12620. fi
  12621. ac_res=`eval 'as_val=${'$as_ac_Header'}
  12622. $as_echo "$as_val"'`
  12623. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12624. $as_echo "$ac_res" >&6; }
  12625. fi
  12626. as_val=`eval 'as_val=${'$as_ac_Header'}
  12627. $as_echo "$as_val"'`
  12628. if test "x$as_val" = x""yes; then
  12629. cat >>confdefs.h <<_ACEOF
  12630. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12631. _ACEOF
  12632. fi
  12633. done
  12634. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  12635. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  12636. $as_echo_n "checking for sys/poll.h... " >&6; }
  12637. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  12638. $as_echo_n "(cached) " >&6
  12639. fi
  12640. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  12641. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  12642. else
  12643. # Is the header compilable?
  12644. { $as_echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
  12645. $as_echo_n "checking sys/poll.h usability... " >&6; }
  12646. cat >conftest.$ac_ext <<_ACEOF
  12647. /* confdefs.h. */
  12648. _ACEOF
  12649. cat confdefs.h >>conftest.$ac_ext
  12650. cat >>conftest.$ac_ext <<_ACEOF
  12651. /* end confdefs.h. */
  12652. $ac_includes_default
  12653. #include <sys/poll.h>
  12654. _ACEOF
  12655. rm -f conftest.$ac_objext
  12656. if { (ac_try="$ac_compile"
  12657. case "(($ac_try" in
  12658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12659. *) ac_try_echo=$ac_try;;
  12660. esac
  12661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12662. $as_echo "$ac_try_echo") >&5
  12663. (eval "$ac_compile") 2>conftest.er1
  12664. ac_status=$?
  12665. grep -v '^ *+' conftest.er1 >conftest.err
  12666. rm -f conftest.er1
  12667. cat conftest.err >&5
  12668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12669. (exit $ac_status); } && {
  12670. test -z "$ac_c_werror_flag" ||
  12671. test ! -s conftest.err
  12672. } && test -s conftest.$ac_objext; then
  12673. ac_header_compiler=yes
  12674. else
  12675. $as_echo "$as_me: failed program was:" >&5
  12676. sed 's/^/| /' conftest.$ac_ext >&5
  12677. ac_header_compiler=no
  12678. fi
  12679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12680. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12681. $as_echo "$ac_header_compiler" >&6; }
  12682. # Is the header present?
  12683. { $as_echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
  12684. $as_echo_n "checking sys/poll.h presence... " >&6; }
  12685. cat >conftest.$ac_ext <<_ACEOF
  12686. /* confdefs.h. */
  12687. _ACEOF
  12688. cat confdefs.h >>conftest.$ac_ext
  12689. cat >>conftest.$ac_ext <<_ACEOF
  12690. /* end confdefs.h. */
  12691. #include <sys/poll.h>
  12692. _ACEOF
  12693. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12694. case "(($ac_try" in
  12695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12696. *) ac_try_echo=$ac_try;;
  12697. esac
  12698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12699. $as_echo "$ac_try_echo") >&5
  12700. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12701. ac_status=$?
  12702. grep -v '^ *+' conftest.er1 >conftest.err
  12703. rm -f conftest.er1
  12704. cat conftest.err >&5
  12705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12706. (exit $ac_status); } >/dev/null && {
  12707. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12708. test ! -s conftest.err
  12709. }; then
  12710. ac_header_preproc=yes
  12711. else
  12712. $as_echo "$as_me: failed program was:" >&5
  12713. sed 's/^/| /' conftest.$ac_ext >&5
  12714. ac_header_preproc=no
  12715. fi
  12716. rm -f conftest.err conftest.$ac_ext
  12717. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12718. $as_echo "$ac_header_preproc" >&6; }
  12719. # So? What about this header?
  12720. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12721. yes:no: )
  12722. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
  12723. $as_echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12724. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
  12725. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
  12726. ac_header_preproc=yes
  12727. ;;
  12728. no:yes:* )
  12729. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
  12730. $as_echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
  12731. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
  12732. $as_echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
  12733. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
  12734. $as_echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
  12735. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
  12736. $as_echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
  12737. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
  12738. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
  12739. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
  12740. $as_echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
  12741. ( cat <<\_ASBOX
  12742. ## ------------------------------------------ ##
  12743. ## Report this to https://issues.asterisk.org ##
  12744. ## ------------------------------------------ ##
  12745. _ASBOX
  12746. ) | sed "s/^/$as_me: WARNING: /" >&2
  12747. ;;
  12748. esac
  12749. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  12750. $as_echo_n "checking for sys/poll.h... " >&6; }
  12751. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  12752. $as_echo_n "(cached) " >&6
  12753. else
  12754. ac_cv_header_sys_poll_h=$ac_header_preproc
  12755. fi
  12756. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  12757. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  12758. fi
  12759. if test "x$ac_cv_header_sys_poll_h" = x""yes; then
  12760. :
  12761. else
  12762. cat >>confdefs.h <<\_ACEOF
  12763. #define AST_POLL_COMPAT 1
  12764. _ACEOF
  12765. fi
  12766. # Check whether --enable-largefile was given.
  12767. if test "${enable_largefile+set}" = set; then
  12768. enableval=$enable_largefile;
  12769. fi
  12770. if test "$enable_largefile" != no; then
  12771. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  12772. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12773. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  12774. $as_echo_n "(cached) " >&6
  12775. else
  12776. ac_cv_sys_largefile_CC=no
  12777. if test "$GCC" != yes; then
  12778. ac_save_CC=$CC
  12779. while :; do
  12780. # IRIX 6.2 and later do not support large files by default,
  12781. # so use the C compiler's -n32 option if that helps.
  12782. cat >conftest.$ac_ext <<_ACEOF
  12783. /* confdefs.h. */
  12784. _ACEOF
  12785. cat confdefs.h >>conftest.$ac_ext
  12786. cat >>conftest.$ac_ext <<_ACEOF
  12787. /* end confdefs.h. */
  12788. #include <sys/types.h>
  12789. /* Check that off_t can represent 2**63 - 1 correctly.
  12790. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12791. since some C++ compilers masquerading as C compilers
  12792. incorrectly reject 9223372036854775807. */
  12793. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12794. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12795. && LARGE_OFF_T % 2147483647 == 1)
  12796. ? 1 : -1];
  12797. int
  12798. main ()
  12799. {
  12800. ;
  12801. return 0;
  12802. }
  12803. _ACEOF
  12804. rm -f conftest.$ac_objext
  12805. if { (ac_try="$ac_compile"
  12806. case "(($ac_try" in
  12807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12808. *) ac_try_echo=$ac_try;;
  12809. esac
  12810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12811. $as_echo "$ac_try_echo") >&5
  12812. (eval "$ac_compile") 2>conftest.er1
  12813. ac_status=$?
  12814. grep -v '^ *+' conftest.er1 >conftest.err
  12815. rm -f conftest.er1
  12816. cat conftest.err >&5
  12817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12818. (exit $ac_status); } && {
  12819. test -z "$ac_c_werror_flag" ||
  12820. test ! -s conftest.err
  12821. } && test -s conftest.$ac_objext; then
  12822. break
  12823. else
  12824. $as_echo "$as_me: failed program was:" >&5
  12825. sed 's/^/| /' conftest.$ac_ext >&5
  12826. fi
  12827. rm -f core conftest.err conftest.$ac_objext
  12828. CC="$CC -n32"
  12829. rm -f conftest.$ac_objext
  12830. if { (ac_try="$ac_compile"
  12831. case "(($ac_try" in
  12832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12833. *) ac_try_echo=$ac_try;;
  12834. esac
  12835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12836. $as_echo "$ac_try_echo") >&5
  12837. (eval "$ac_compile") 2>conftest.er1
  12838. ac_status=$?
  12839. grep -v '^ *+' conftest.er1 >conftest.err
  12840. rm -f conftest.er1
  12841. cat conftest.err >&5
  12842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12843. (exit $ac_status); } && {
  12844. test -z "$ac_c_werror_flag" ||
  12845. test ! -s conftest.err
  12846. } && test -s conftest.$ac_objext; then
  12847. ac_cv_sys_largefile_CC=' -n32'; break
  12848. else
  12849. $as_echo "$as_me: failed program was:" >&5
  12850. sed 's/^/| /' conftest.$ac_ext >&5
  12851. fi
  12852. rm -f core conftest.err conftest.$ac_objext
  12853. break
  12854. done
  12855. CC=$ac_save_CC
  12856. rm -f conftest.$ac_ext
  12857. fi
  12858. fi
  12859. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  12860. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12861. if test "$ac_cv_sys_largefile_CC" != no; then
  12862. CC=$CC$ac_cv_sys_largefile_CC
  12863. fi
  12864. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12865. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12866. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  12867. $as_echo_n "(cached) " >&6
  12868. else
  12869. while :; do
  12870. cat >conftest.$ac_ext <<_ACEOF
  12871. /* confdefs.h. */
  12872. _ACEOF
  12873. cat confdefs.h >>conftest.$ac_ext
  12874. cat >>conftest.$ac_ext <<_ACEOF
  12875. /* end confdefs.h. */
  12876. #include <sys/types.h>
  12877. /* Check that off_t can represent 2**63 - 1 correctly.
  12878. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12879. since some C++ compilers masquerading as C compilers
  12880. incorrectly reject 9223372036854775807. */
  12881. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12882. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12883. && LARGE_OFF_T % 2147483647 == 1)
  12884. ? 1 : -1];
  12885. int
  12886. main ()
  12887. {
  12888. ;
  12889. return 0;
  12890. }
  12891. _ACEOF
  12892. rm -f conftest.$ac_objext
  12893. if { (ac_try="$ac_compile"
  12894. case "(($ac_try" in
  12895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12896. *) ac_try_echo=$ac_try;;
  12897. esac
  12898. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12899. $as_echo "$ac_try_echo") >&5
  12900. (eval "$ac_compile") 2>conftest.er1
  12901. ac_status=$?
  12902. grep -v '^ *+' conftest.er1 >conftest.err
  12903. rm -f conftest.er1
  12904. cat conftest.err >&5
  12905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12906. (exit $ac_status); } && {
  12907. test -z "$ac_c_werror_flag" ||
  12908. test ! -s conftest.err
  12909. } && test -s conftest.$ac_objext; then
  12910. ac_cv_sys_file_offset_bits=no; break
  12911. else
  12912. $as_echo "$as_me: failed program was:" >&5
  12913. sed 's/^/| /' conftest.$ac_ext >&5
  12914. fi
  12915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12916. cat >conftest.$ac_ext <<_ACEOF
  12917. /* confdefs.h. */
  12918. _ACEOF
  12919. cat confdefs.h >>conftest.$ac_ext
  12920. cat >>conftest.$ac_ext <<_ACEOF
  12921. /* end confdefs.h. */
  12922. #define _FILE_OFFSET_BITS 64
  12923. #include <sys/types.h>
  12924. /* Check that off_t can represent 2**63 - 1 correctly.
  12925. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12926. since some C++ compilers masquerading as C compilers
  12927. incorrectly reject 9223372036854775807. */
  12928. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12929. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12930. && LARGE_OFF_T % 2147483647 == 1)
  12931. ? 1 : -1];
  12932. int
  12933. main ()
  12934. {
  12935. ;
  12936. return 0;
  12937. }
  12938. _ACEOF
  12939. rm -f conftest.$ac_objext
  12940. if { (ac_try="$ac_compile"
  12941. case "(($ac_try" in
  12942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12943. *) ac_try_echo=$ac_try;;
  12944. esac
  12945. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12946. $as_echo "$ac_try_echo") >&5
  12947. (eval "$ac_compile") 2>conftest.er1
  12948. ac_status=$?
  12949. grep -v '^ *+' conftest.er1 >conftest.err
  12950. rm -f conftest.er1
  12951. cat conftest.err >&5
  12952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12953. (exit $ac_status); } && {
  12954. test -z "$ac_c_werror_flag" ||
  12955. test ! -s conftest.err
  12956. } && test -s conftest.$ac_objext; then
  12957. ac_cv_sys_file_offset_bits=64; break
  12958. else
  12959. $as_echo "$as_me: failed program was:" >&5
  12960. sed 's/^/| /' conftest.$ac_ext >&5
  12961. fi
  12962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12963. ac_cv_sys_file_offset_bits=unknown
  12964. break
  12965. done
  12966. fi
  12967. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  12968. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12969. case $ac_cv_sys_file_offset_bits in #(
  12970. no | unknown) ;;
  12971. *)
  12972. cat >>confdefs.h <<_ACEOF
  12973. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12974. _ACEOF
  12975. ;;
  12976. esac
  12977. rm -rf conftest*
  12978. if test $ac_cv_sys_file_offset_bits = unknown; then
  12979. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  12980. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12981. if test "${ac_cv_sys_large_files+set}" = set; then
  12982. $as_echo_n "(cached) " >&6
  12983. else
  12984. while :; do
  12985. cat >conftest.$ac_ext <<_ACEOF
  12986. /* confdefs.h. */
  12987. _ACEOF
  12988. cat confdefs.h >>conftest.$ac_ext
  12989. cat >>conftest.$ac_ext <<_ACEOF
  12990. /* end confdefs.h. */
  12991. #include <sys/types.h>
  12992. /* Check that off_t can represent 2**63 - 1 correctly.
  12993. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12994. since some C++ compilers masquerading as C compilers
  12995. incorrectly reject 9223372036854775807. */
  12996. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12997. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12998. && LARGE_OFF_T % 2147483647 == 1)
  12999. ? 1 : -1];
  13000. int
  13001. main ()
  13002. {
  13003. ;
  13004. return 0;
  13005. }
  13006. _ACEOF
  13007. rm -f conftest.$ac_objext
  13008. if { (ac_try="$ac_compile"
  13009. case "(($ac_try" in
  13010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13011. *) ac_try_echo=$ac_try;;
  13012. esac
  13013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13014. $as_echo "$ac_try_echo") >&5
  13015. (eval "$ac_compile") 2>conftest.er1
  13016. ac_status=$?
  13017. grep -v '^ *+' conftest.er1 >conftest.err
  13018. rm -f conftest.er1
  13019. cat conftest.err >&5
  13020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13021. (exit $ac_status); } && {
  13022. test -z "$ac_c_werror_flag" ||
  13023. test ! -s conftest.err
  13024. } && test -s conftest.$ac_objext; then
  13025. ac_cv_sys_large_files=no; break
  13026. else
  13027. $as_echo "$as_me: failed program was:" >&5
  13028. sed 's/^/| /' conftest.$ac_ext >&5
  13029. fi
  13030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. #define _LARGE_FILES 1
  13038. #include <sys/types.h>
  13039. /* Check that off_t can represent 2**63 - 1 correctly.
  13040. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13041. since some C++ compilers masquerading as C compilers
  13042. incorrectly reject 9223372036854775807. */
  13043. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13044. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13045. && LARGE_OFF_T % 2147483647 == 1)
  13046. ? 1 : -1];
  13047. int
  13048. main ()
  13049. {
  13050. ;
  13051. return 0;
  13052. }
  13053. _ACEOF
  13054. rm -f conftest.$ac_objext
  13055. if { (ac_try="$ac_compile"
  13056. case "(($ac_try" in
  13057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13058. *) ac_try_echo=$ac_try;;
  13059. esac
  13060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13061. $as_echo "$ac_try_echo") >&5
  13062. (eval "$ac_compile") 2>conftest.er1
  13063. ac_status=$?
  13064. grep -v '^ *+' conftest.er1 >conftest.err
  13065. rm -f conftest.er1
  13066. cat conftest.err >&5
  13067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13068. (exit $ac_status); } && {
  13069. test -z "$ac_c_werror_flag" ||
  13070. test ! -s conftest.err
  13071. } && test -s conftest.$ac_objext; then
  13072. ac_cv_sys_large_files=1; break
  13073. else
  13074. $as_echo "$as_me: failed program was:" >&5
  13075. sed 's/^/| /' conftest.$ac_ext >&5
  13076. fi
  13077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13078. ac_cv_sys_large_files=unknown
  13079. break
  13080. done
  13081. fi
  13082. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  13083. $as_echo "$ac_cv_sys_large_files" >&6; }
  13084. case $ac_cv_sys_large_files in #(
  13085. no | unknown) ;;
  13086. *)
  13087. cat >>confdefs.h <<_ACEOF
  13088. #define _LARGE_FILES $ac_cv_sys_large_files
  13089. _ACEOF
  13090. ;;
  13091. esac
  13092. rm -rf conftest*
  13093. fi
  13094. fi
  13095. # Checks for typedefs, structures, and compiler characteristics.
  13096. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  13097. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  13098. if test "${ac_cv_header_stdbool_h+set}" = set; then
  13099. $as_echo_n "(cached) " >&6
  13100. else
  13101. cat >conftest.$ac_ext <<_ACEOF
  13102. /* confdefs.h. */
  13103. _ACEOF
  13104. cat confdefs.h >>conftest.$ac_ext
  13105. cat >>conftest.$ac_ext <<_ACEOF
  13106. /* end confdefs.h. */
  13107. #include <stdbool.h>
  13108. #ifndef bool
  13109. "error: bool is not defined"
  13110. #endif
  13111. #ifndef false
  13112. "error: false is not defined"
  13113. #endif
  13114. #if false
  13115. "error: false is not 0"
  13116. #endif
  13117. #ifndef true
  13118. "error: true is not defined"
  13119. #endif
  13120. #if true != 1
  13121. "error: true is not 1"
  13122. #endif
  13123. #ifndef __bool_true_false_are_defined
  13124. "error: __bool_true_false_are_defined is not defined"
  13125. #endif
  13126. struct s { _Bool s: 1; _Bool t; } s;
  13127. char a[true == 1 ? 1 : -1];
  13128. char b[false == 0 ? 1 : -1];
  13129. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  13130. char d[(bool) 0.5 == true ? 1 : -1];
  13131. bool e = &s;
  13132. char f[(_Bool) 0.0 == false ? 1 : -1];
  13133. char g[true];
  13134. char h[sizeof (_Bool)];
  13135. char i[sizeof s.t];
  13136. enum { j = false, k = true, l = false * true, m = true * 256 };
  13137. /* The following fails for
  13138. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  13139. _Bool n[m];
  13140. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  13141. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  13142. # if defined __xlc__ || defined __GNUC__
  13143. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  13144. reported by James Lemley on 2005-10-05; see
  13145. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  13146. This test is not quite right, since xlc is allowed to
  13147. reject this program, as the initializer for xlcbug is
  13148. not one of the forms that C requires support for.
  13149. However, doing the test right would require a runtime
  13150. test, and that would make cross-compilation harder.
  13151. Let us hope that IBM fixes the xlc bug, and also adds
  13152. support for this kind of constant expression. In the
  13153. meantime, this test will reject xlc, which is OK, since
  13154. our stdbool.h substitute should suffice. We also test
  13155. this with GCC, where it should work, to detect more
  13156. quickly whether someone messes up the test in the
  13157. future. */
  13158. char digs[] = "0123456789";
  13159. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  13160. # endif
  13161. /* Catch a bug in an HP-UX C compiler. See
  13162. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  13163. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  13164. */
  13165. _Bool q = true;
  13166. _Bool *pq = &q;
  13167. int
  13168. main ()
  13169. {
  13170. *pq |= q;
  13171. *pq |= ! q;
  13172. /* Refer to every declared value, to avoid compiler optimizations. */
  13173. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  13174. + !m + !n + !o + !p + !q + !pq);
  13175. ;
  13176. return 0;
  13177. }
  13178. _ACEOF
  13179. rm -f conftest.$ac_objext
  13180. if { (ac_try="$ac_compile"
  13181. case "(($ac_try" in
  13182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13183. *) ac_try_echo=$ac_try;;
  13184. esac
  13185. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13186. $as_echo "$ac_try_echo") >&5
  13187. (eval "$ac_compile") 2>conftest.er1
  13188. ac_status=$?
  13189. grep -v '^ *+' conftest.er1 >conftest.err
  13190. rm -f conftest.er1
  13191. cat conftest.err >&5
  13192. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13193. (exit $ac_status); } && {
  13194. test -z "$ac_c_werror_flag" ||
  13195. test ! -s conftest.err
  13196. } && test -s conftest.$ac_objext; then
  13197. ac_cv_header_stdbool_h=yes
  13198. else
  13199. $as_echo "$as_me: failed program was:" >&5
  13200. sed 's/^/| /' conftest.$ac_ext >&5
  13201. ac_cv_header_stdbool_h=no
  13202. fi
  13203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13204. fi
  13205. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  13206. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  13207. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  13208. $as_echo_n "checking for _Bool... " >&6; }
  13209. if test "${ac_cv_type__Bool+set}" = set; then
  13210. $as_echo_n "(cached) " >&6
  13211. else
  13212. ac_cv_type__Bool=no
  13213. cat >conftest.$ac_ext <<_ACEOF
  13214. /* confdefs.h. */
  13215. _ACEOF
  13216. cat confdefs.h >>conftest.$ac_ext
  13217. cat >>conftest.$ac_ext <<_ACEOF
  13218. /* end confdefs.h. */
  13219. $ac_includes_default
  13220. int
  13221. main ()
  13222. {
  13223. if (sizeof (_Bool))
  13224. return 0;
  13225. ;
  13226. return 0;
  13227. }
  13228. _ACEOF
  13229. rm -f conftest.$ac_objext
  13230. if { (ac_try="$ac_compile"
  13231. case "(($ac_try" in
  13232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13233. *) ac_try_echo=$ac_try;;
  13234. esac
  13235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13236. $as_echo "$ac_try_echo") >&5
  13237. (eval "$ac_compile") 2>conftest.er1
  13238. ac_status=$?
  13239. grep -v '^ *+' conftest.er1 >conftest.err
  13240. rm -f conftest.er1
  13241. cat conftest.err >&5
  13242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13243. (exit $ac_status); } && {
  13244. test -z "$ac_c_werror_flag" ||
  13245. test ! -s conftest.err
  13246. } && test -s conftest.$ac_objext; then
  13247. cat >conftest.$ac_ext <<_ACEOF
  13248. /* confdefs.h. */
  13249. _ACEOF
  13250. cat confdefs.h >>conftest.$ac_ext
  13251. cat >>conftest.$ac_ext <<_ACEOF
  13252. /* end confdefs.h. */
  13253. $ac_includes_default
  13254. int
  13255. main ()
  13256. {
  13257. if (sizeof ((_Bool)))
  13258. return 0;
  13259. ;
  13260. return 0;
  13261. }
  13262. _ACEOF
  13263. rm -f conftest.$ac_objext
  13264. if { (ac_try="$ac_compile"
  13265. case "(($ac_try" in
  13266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13267. *) ac_try_echo=$ac_try;;
  13268. esac
  13269. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13270. $as_echo "$ac_try_echo") >&5
  13271. (eval "$ac_compile") 2>conftest.er1
  13272. ac_status=$?
  13273. grep -v '^ *+' conftest.er1 >conftest.err
  13274. rm -f conftest.er1
  13275. cat conftest.err >&5
  13276. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13277. (exit $ac_status); } && {
  13278. test -z "$ac_c_werror_flag" ||
  13279. test ! -s conftest.err
  13280. } && test -s conftest.$ac_objext; then
  13281. :
  13282. else
  13283. $as_echo "$as_me: failed program was:" >&5
  13284. sed 's/^/| /' conftest.$ac_ext >&5
  13285. ac_cv_type__Bool=yes
  13286. fi
  13287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13288. else
  13289. $as_echo "$as_me: failed program was:" >&5
  13290. sed 's/^/| /' conftest.$ac_ext >&5
  13291. fi
  13292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13293. fi
  13294. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  13295. $as_echo "$ac_cv_type__Bool" >&6; }
  13296. if test "x$ac_cv_type__Bool" = x""yes; then
  13297. cat >>confdefs.h <<_ACEOF
  13298. #define HAVE__BOOL 1
  13299. _ACEOF
  13300. fi
  13301. if test $ac_cv_header_stdbool_h = yes; then
  13302. cat >>confdefs.h <<\_ACEOF
  13303. #define HAVE_STDBOOL_H 1
  13304. _ACEOF
  13305. fi
  13306. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  13307. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13308. if test "${ac_cv_c_const+set}" = set; then
  13309. $as_echo_n "(cached) " >&6
  13310. else
  13311. cat >conftest.$ac_ext <<_ACEOF
  13312. /* confdefs.h. */
  13313. _ACEOF
  13314. cat confdefs.h >>conftest.$ac_ext
  13315. cat >>conftest.$ac_ext <<_ACEOF
  13316. /* end confdefs.h. */
  13317. int
  13318. main ()
  13319. {
  13320. /* FIXME: Include the comments suggested by Paul. */
  13321. #ifndef __cplusplus
  13322. /* Ultrix mips cc rejects this. */
  13323. typedef int charset[2];
  13324. const charset cs;
  13325. /* SunOS 4.1.1 cc rejects this. */
  13326. char const *const *pcpcc;
  13327. char **ppc;
  13328. /* NEC SVR4.0.2 mips cc rejects this. */
  13329. struct point {int x, y;};
  13330. static struct point const zero = {0,0};
  13331. /* AIX XL C 1.02.0.0 rejects this.
  13332. It does not let you subtract one const X* pointer from another in
  13333. an arm of an if-expression whose if-part is not a constant
  13334. expression */
  13335. const char *g = "string";
  13336. pcpcc = &g + (g ? g-g : 0);
  13337. /* HPUX 7.0 cc rejects these. */
  13338. ++pcpcc;
  13339. ppc = (char**) pcpcc;
  13340. pcpcc = (char const *const *) ppc;
  13341. { /* SCO 3.2v4 cc rejects this. */
  13342. char *t;
  13343. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13344. *t++ = 0;
  13345. if (s) return 0;
  13346. }
  13347. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13348. int x[] = {25, 17};
  13349. const int *foo = &x[0];
  13350. ++foo;
  13351. }
  13352. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13353. typedef const int *iptr;
  13354. iptr p = 0;
  13355. ++p;
  13356. }
  13357. { /* AIX XL C 1.02.0.0 rejects this saying
  13358. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13359. struct s { int j; const int *ap[3]; };
  13360. struct s *b; b->j = 5;
  13361. }
  13362. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13363. const int foo = 10;
  13364. if (!foo) return 0;
  13365. }
  13366. return !cs[0] && !zero.x;
  13367. #endif
  13368. ;
  13369. return 0;
  13370. }
  13371. _ACEOF
  13372. rm -f conftest.$ac_objext
  13373. if { (ac_try="$ac_compile"
  13374. case "(($ac_try" in
  13375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13376. *) ac_try_echo=$ac_try;;
  13377. esac
  13378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13379. $as_echo "$ac_try_echo") >&5
  13380. (eval "$ac_compile") 2>conftest.er1
  13381. ac_status=$?
  13382. grep -v '^ *+' conftest.er1 >conftest.err
  13383. rm -f conftest.er1
  13384. cat conftest.err >&5
  13385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13386. (exit $ac_status); } && {
  13387. test -z "$ac_c_werror_flag" ||
  13388. test ! -s conftest.err
  13389. } && test -s conftest.$ac_objext; then
  13390. ac_cv_c_const=yes
  13391. else
  13392. $as_echo "$as_me: failed program was:" >&5
  13393. sed 's/^/| /' conftest.$ac_ext >&5
  13394. ac_cv_c_const=no
  13395. fi
  13396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13397. fi
  13398. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  13399. $as_echo "$ac_cv_c_const" >&6; }
  13400. if test $ac_cv_c_const = no; then
  13401. cat >>confdefs.h <<\_ACEOF
  13402. #define const /**/
  13403. _ACEOF
  13404. fi
  13405. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  13406. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  13407. if test "${ac_cv_type_uid_t+set}" = set; then
  13408. $as_echo_n "(cached) " >&6
  13409. else
  13410. cat >conftest.$ac_ext <<_ACEOF
  13411. /* confdefs.h. */
  13412. _ACEOF
  13413. cat confdefs.h >>conftest.$ac_ext
  13414. cat >>conftest.$ac_ext <<_ACEOF
  13415. /* end confdefs.h. */
  13416. #include <sys/types.h>
  13417. _ACEOF
  13418. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13419. $EGREP "uid_t" >/dev/null 2>&1; then
  13420. ac_cv_type_uid_t=yes
  13421. else
  13422. ac_cv_type_uid_t=no
  13423. fi
  13424. rm -f conftest*
  13425. fi
  13426. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  13427. $as_echo "$ac_cv_type_uid_t" >&6; }
  13428. if test $ac_cv_type_uid_t = no; then
  13429. cat >>confdefs.h <<\_ACEOF
  13430. #define uid_t int
  13431. _ACEOF
  13432. cat >>confdefs.h <<\_ACEOF
  13433. #define gid_t int
  13434. _ACEOF
  13435. fi
  13436. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  13437. $as_echo_n "checking for inline... " >&6; }
  13438. if test "${ac_cv_c_inline+set}" = set; then
  13439. $as_echo_n "(cached) " >&6
  13440. else
  13441. ac_cv_c_inline=no
  13442. for ac_kw in inline __inline__ __inline; do
  13443. cat >conftest.$ac_ext <<_ACEOF
  13444. /* confdefs.h. */
  13445. _ACEOF
  13446. cat confdefs.h >>conftest.$ac_ext
  13447. cat >>conftest.$ac_ext <<_ACEOF
  13448. /* end confdefs.h. */
  13449. #ifndef __cplusplus
  13450. typedef int foo_t;
  13451. static $ac_kw foo_t static_foo () {return 0; }
  13452. $ac_kw foo_t foo () {return 0; }
  13453. #endif
  13454. _ACEOF
  13455. rm -f conftest.$ac_objext
  13456. if { (ac_try="$ac_compile"
  13457. case "(($ac_try" in
  13458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13459. *) ac_try_echo=$ac_try;;
  13460. esac
  13461. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13462. $as_echo "$ac_try_echo") >&5
  13463. (eval "$ac_compile") 2>conftest.er1
  13464. ac_status=$?
  13465. grep -v '^ *+' conftest.er1 >conftest.err
  13466. rm -f conftest.er1
  13467. cat conftest.err >&5
  13468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13469. (exit $ac_status); } && {
  13470. test -z "$ac_c_werror_flag" ||
  13471. test ! -s conftest.err
  13472. } && test -s conftest.$ac_objext; then
  13473. ac_cv_c_inline=$ac_kw
  13474. else
  13475. $as_echo "$as_me: failed program was:" >&5
  13476. sed 's/^/| /' conftest.$ac_ext >&5
  13477. fi
  13478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13479. test "$ac_cv_c_inline" != no && break
  13480. done
  13481. fi
  13482. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  13483. $as_echo "$ac_cv_c_inline" >&6; }
  13484. case $ac_cv_c_inline in
  13485. inline | yes) ;;
  13486. *)
  13487. case $ac_cv_c_inline in
  13488. no) ac_val=;;
  13489. *) ac_val=$ac_cv_c_inline;;
  13490. esac
  13491. cat >>confdefs.h <<_ACEOF
  13492. #ifndef __cplusplus
  13493. #define inline $ac_val
  13494. #endif
  13495. _ACEOF
  13496. ;;
  13497. esac
  13498. { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
  13499. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  13500. if test "${ac_cv_type_long_double_wider+set}" = set; then
  13501. $as_echo_n "(cached) " >&6
  13502. else
  13503. cat >conftest.$ac_ext <<_ACEOF
  13504. /* confdefs.h. */
  13505. _ACEOF
  13506. cat confdefs.h >>conftest.$ac_ext
  13507. cat >>conftest.$ac_ext <<_ACEOF
  13508. /* end confdefs.h. */
  13509. #include <float.h>
  13510. long double const a[] =
  13511. {
  13512. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  13513. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  13514. };
  13515. long double
  13516. f (long double x)
  13517. {
  13518. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  13519. + (x ? f (x) : 'c'));
  13520. }
  13521. int
  13522. main ()
  13523. {
  13524. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  13525. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  13526. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  13527. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  13528. && (int) LDBL_EPSILON == 0
  13529. )];
  13530. test_array [0] = 0
  13531. ;
  13532. return 0;
  13533. }
  13534. _ACEOF
  13535. rm -f conftest.$ac_objext
  13536. if { (ac_try="$ac_compile"
  13537. case "(($ac_try" in
  13538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13539. *) ac_try_echo=$ac_try;;
  13540. esac
  13541. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13542. $as_echo "$ac_try_echo") >&5
  13543. (eval "$ac_compile") 2>conftest.er1
  13544. ac_status=$?
  13545. grep -v '^ *+' conftest.er1 >conftest.err
  13546. rm -f conftest.er1
  13547. cat conftest.err >&5
  13548. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13549. (exit $ac_status); } && {
  13550. test -z "$ac_c_werror_flag" ||
  13551. test ! -s conftest.err
  13552. } && test -s conftest.$ac_objext; then
  13553. ac_cv_type_long_double_wider=yes
  13554. else
  13555. $as_echo "$as_me: failed program was:" >&5
  13556. sed 's/^/| /' conftest.$ac_ext >&5
  13557. ac_cv_type_long_double_wider=no
  13558. fi
  13559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13560. fi
  13561. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
  13562. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  13563. if test $ac_cv_type_long_double_wider = yes; then
  13564. cat >>confdefs.h <<\_ACEOF
  13565. #define HAVE_LONG_DOUBLE_WIDER 1
  13566. _ACEOF
  13567. fi
  13568. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  13569. $as_echo_n "checking for mode_t... " >&6; }
  13570. if test "${ac_cv_type_mode_t+set}" = set; then
  13571. $as_echo_n "(cached) " >&6
  13572. else
  13573. ac_cv_type_mode_t=no
  13574. cat >conftest.$ac_ext <<_ACEOF
  13575. /* confdefs.h. */
  13576. _ACEOF
  13577. cat confdefs.h >>conftest.$ac_ext
  13578. cat >>conftest.$ac_ext <<_ACEOF
  13579. /* end confdefs.h. */
  13580. $ac_includes_default
  13581. int
  13582. main ()
  13583. {
  13584. if (sizeof (mode_t))
  13585. return 0;
  13586. ;
  13587. return 0;
  13588. }
  13589. _ACEOF
  13590. rm -f conftest.$ac_objext
  13591. if { (ac_try="$ac_compile"
  13592. case "(($ac_try" in
  13593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13594. *) ac_try_echo=$ac_try;;
  13595. esac
  13596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13597. $as_echo "$ac_try_echo") >&5
  13598. (eval "$ac_compile") 2>conftest.er1
  13599. ac_status=$?
  13600. grep -v '^ *+' conftest.er1 >conftest.err
  13601. rm -f conftest.er1
  13602. cat conftest.err >&5
  13603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13604. (exit $ac_status); } && {
  13605. test -z "$ac_c_werror_flag" ||
  13606. test ! -s conftest.err
  13607. } && test -s conftest.$ac_objext; then
  13608. cat >conftest.$ac_ext <<_ACEOF
  13609. /* confdefs.h. */
  13610. _ACEOF
  13611. cat confdefs.h >>conftest.$ac_ext
  13612. cat >>conftest.$ac_ext <<_ACEOF
  13613. /* end confdefs.h. */
  13614. $ac_includes_default
  13615. int
  13616. main ()
  13617. {
  13618. if (sizeof ((mode_t)))
  13619. return 0;
  13620. ;
  13621. return 0;
  13622. }
  13623. _ACEOF
  13624. rm -f conftest.$ac_objext
  13625. if { (ac_try="$ac_compile"
  13626. case "(($ac_try" in
  13627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13628. *) ac_try_echo=$ac_try;;
  13629. esac
  13630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13631. $as_echo "$ac_try_echo") >&5
  13632. (eval "$ac_compile") 2>conftest.er1
  13633. ac_status=$?
  13634. grep -v '^ *+' conftest.er1 >conftest.err
  13635. rm -f conftest.er1
  13636. cat conftest.err >&5
  13637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13638. (exit $ac_status); } && {
  13639. test -z "$ac_c_werror_flag" ||
  13640. test ! -s conftest.err
  13641. } && test -s conftest.$ac_objext; then
  13642. :
  13643. else
  13644. $as_echo "$as_me: failed program was:" >&5
  13645. sed 's/^/| /' conftest.$ac_ext >&5
  13646. ac_cv_type_mode_t=yes
  13647. fi
  13648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13649. else
  13650. $as_echo "$as_me: failed program was:" >&5
  13651. sed 's/^/| /' conftest.$ac_ext >&5
  13652. fi
  13653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13654. fi
  13655. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  13656. $as_echo "$ac_cv_type_mode_t" >&6; }
  13657. if test "x$ac_cv_type_mode_t" = x""yes; then
  13658. :
  13659. else
  13660. cat >>confdefs.h <<_ACEOF
  13661. #define mode_t int
  13662. _ACEOF
  13663. fi
  13664. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  13665. $as_echo_n "checking for off_t... " >&6; }
  13666. if test "${ac_cv_type_off_t+set}" = set; then
  13667. $as_echo_n "(cached) " >&6
  13668. else
  13669. ac_cv_type_off_t=no
  13670. cat >conftest.$ac_ext <<_ACEOF
  13671. /* confdefs.h. */
  13672. _ACEOF
  13673. cat confdefs.h >>conftest.$ac_ext
  13674. cat >>conftest.$ac_ext <<_ACEOF
  13675. /* end confdefs.h. */
  13676. $ac_includes_default
  13677. int
  13678. main ()
  13679. {
  13680. if (sizeof (off_t))
  13681. return 0;
  13682. ;
  13683. return 0;
  13684. }
  13685. _ACEOF
  13686. rm -f conftest.$ac_objext
  13687. if { (ac_try="$ac_compile"
  13688. case "(($ac_try" in
  13689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13690. *) ac_try_echo=$ac_try;;
  13691. esac
  13692. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13693. $as_echo "$ac_try_echo") >&5
  13694. (eval "$ac_compile") 2>conftest.er1
  13695. ac_status=$?
  13696. grep -v '^ *+' conftest.er1 >conftest.err
  13697. rm -f conftest.er1
  13698. cat conftest.err >&5
  13699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13700. (exit $ac_status); } && {
  13701. test -z "$ac_c_werror_flag" ||
  13702. test ! -s conftest.err
  13703. } && test -s conftest.$ac_objext; then
  13704. cat >conftest.$ac_ext <<_ACEOF
  13705. /* confdefs.h. */
  13706. _ACEOF
  13707. cat confdefs.h >>conftest.$ac_ext
  13708. cat >>conftest.$ac_ext <<_ACEOF
  13709. /* end confdefs.h. */
  13710. $ac_includes_default
  13711. int
  13712. main ()
  13713. {
  13714. if (sizeof ((off_t)))
  13715. return 0;
  13716. ;
  13717. return 0;
  13718. }
  13719. _ACEOF
  13720. rm -f conftest.$ac_objext
  13721. if { (ac_try="$ac_compile"
  13722. case "(($ac_try" in
  13723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13724. *) ac_try_echo=$ac_try;;
  13725. esac
  13726. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13727. $as_echo "$ac_try_echo") >&5
  13728. (eval "$ac_compile") 2>conftest.er1
  13729. ac_status=$?
  13730. grep -v '^ *+' conftest.er1 >conftest.err
  13731. rm -f conftest.er1
  13732. cat conftest.err >&5
  13733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13734. (exit $ac_status); } && {
  13735. test -z "$ac_c_werror_flag" ||
  13736. test ! -s conftest.err
  13737. } && test -s conftest.$ac_objext; then
  13738. :
  13739. else
  13740. $as_echo "$as_me: failed program was:" >&5
  13741. sed 's/^/| /' conftest.$ac_ext >&5
  13742. ac_cv_type_off_t=yes
  13743. fi
  13744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13745. else
  13746. $as_echo "$as_me: failed program was:" >&5
  13747. sed 's/^/| /' conftest.$ac_ext >&5
  13748. fi
  13749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13750. fi
  13751. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  13752. $as_echo "$ac_cv_type_off_t" >&6; }
  13753. if test "x$ac_cv_type_off_t" = x""yes; then
  13754. :
  13755. else
  13756. cat >>confdefs.h <<_ACEOF
  13757. #define off_t long int
  13758. _ACEOF
  13759. fi
  13760. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  13761. $as_echo_n "checking for pid_t... " >&6; }
  13762. if test "${ac_cv_type_pid_t+set}" = set; then
  13763. $as_echo_n "(cached) " >&6
  13764. else
  13765. ac_cv_type_pid_t=no
  13766. cat >conftest.$ac_ext <<_ACEOF
  13767. /* confdefs.h. */
  13768. _ACEOF
  13769. cat confdefs.h >>conftest.$ac_ext
  13770. cat >>conftest.$ac_ext <<_ACEOF
  13771. /* end confdefs.h. */
  13772. $ac_includes_default
  13773. int
  13774. main ()
  13775. {
  13776. if (sizeof (pid_t))
  13777. return 0;
  13778. ;
  13779. return 0;
  13780. }
  13781. _ACEOF
  13782. rm -f conftest.$ac_objext
  13783. if { (ac_try="$ac_compile"
  13784. case "(($ac_try" in
  13785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13786. *) ac_try_echo=$ac_try;;
  13787. esac
  13788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13789. $as_echo "$ac_try_echo") >&5
  13790. (eval "$ac_compile") 2>conftest.er1
  13791. ac_status=$?
  13792. grep -v '^ *+' conftest.er1 >conftest.err
  13793. rm -f conftest.er1
  13794. cat conftest.err >&5
  13795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13796. (exit $ac_status); } && {
  13797. test -z "$ac_c_werror_flag" ||
  13798. test ! -s conftest.err
  13799. } && test -s conftest.$ac_objext; then
  13800. cat >conftest.$ac_ext <<_ACEOF
  13801. /* confdefs.h. */
  13802. _ACEOF
  13803. cat confdefs.h >>conftest.$ac_ext
  13804. cat >>conftest.$ac_ext <<_ACEOF
  13805. /* end confdefs.h. */
  13806. $ac_includes_default
  13807. int
  13808. main ()
  13809. {
  13810. if (sizeof ((pid_t)))
  13811. return 0;
  13812. ;
  13813. return 0;
  13814. }
  13815. _ACEOF
  13816. rm -f conftest.$ac_objext
  13817. if { (ac_try="$ac_compile"
  13818. case "(($ac_try" in
  13819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13820. *) ac_try_echo=$ac_try;;
  13821. esac
  13822. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13823. $as_echo "$ac_try_echo") >&5
  13824. (eval "$ac_compile") 2>conftest.er1
  13825. ac_status=$?
  13826. grep -v '^ *+' conftest.er1 >conftest.err
  13827. rm -f conftest.er1
  13828. cat conftest.err >&5
  13829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13830. (exit $ac_status); } && {
  13831. test -z "$ac_c_werror_flag" ||
  13832. test ! -s conftest.err
  13833. } && test -s conftest.$ac_objext; then
  13834. :
  13835. else
  13836. $as_echo "$as_me: failed program was:" >&5
  13837. sed 's/^/| /' conftest.$ac_ext >&5
  13838. ac_cv_type_pid_t=yes
  13839. fi
  13840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13841. else
  13842. $as_echo "$as_me: failed program was:" >&5
  13843. sed 's/^/| /' conftest.$ac_ext >&5
  13844. fi
  13845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13846. fi
  13847. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  13848. $as_echo "$ac_cv_type_pid_t" >&6; }
  13849. if test "x$ac_cv_type_pid_t" = x""yes; then
  13850. :
  13851. else
  13852. cat >>confdefs.h <<_ACEOF
  13853. #define pid_t int
  13854. _ACEOF
  13855. fi
  13856. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  13857. $as_echo_n "checking for size_t... " >&6; }
  13858. if test "${ac_cv_type_size_t+set}" = set; then
  13859. $as_echo_n "(cached) " >&6
  13860. else
  13861. ac_cv_type_size_t=no
  13862. cat >conftest.$ac_ext <<_ACEOF
  13863. /* confdefs.h. */
  13864. _ACEOF
  13865. cat confdefs.h >>conftest.$ac_ext
  13866. cat >>conftest.$ac_ext <<_ACEOF
  13867. /* end confdefs.h. */
  13868. $ac_includes_default
  13869. int
  13870. main ()
  13871. {
  13872. if (sizeof (size_t))
  13873. return 0;
  13874. ;
  13875. return 0;
  13876. }
  13877. _ACEOF
  13878. rm -f conftest.$ac_objext
  13879. if { (ac_try="$ac_compile"
  13880. case "(($ac_try" in
  13881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13882. *) ac_try_echo=$ac_try;;
  13883. esac
  13884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13885. $as_echo "$ac_try_echo") >&5
  13886. (eval "$ac_compile") 2>conftest.er1
  13887. ac_status=$?
  13888. grep -v '^ *+' conftest.er1 >conftest.err
  13889. rm -f conftest.er1
  13890. cat conftest.err >&5
  13891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13892. (exit $ac_status); } && {
  13893. test -z "$ac_c_werror_flag" ||
  13894. test ! -s conftest.err
  13895. } && test -s conftest.$ac_objext; then
  13896. cat >conftest.$ac_ext <<_ACEOF
  13897. /* confdefs.h. */
  13898. _ACEOF
  13899. cat confdefs.h >>conftest.$ac_ext
  13900. cat >>conftest.$ac_ext <<_ACEOF
  13901. /* end confdefs.h. */
  13902. $ac_includes_default
  13903. int
  13904. main ()
  13905. {
  13906. if (sizeof ((size_t)))
  13907. return 0;
  13908. ;
  13909. return 0;
  13910. }
  13911. _ACEOF
  13912. rm -f conftest.$ac_objext
  13913. if { (ac_try="$ac_compile"
  13914. case "(($ac_try" in
  13915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13916. *) ac_try_echo=$ac_try;;
  13917. esac
  13918. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13919. $as_echo "$ac_try_echo") >&5
  13920. (eval "$ac_compile") 2>conftest.er1
  13921. ac_status=$?
  13922. grep -v '^ *+' conftest.er1 >conftest.err
  13923. rm -f conftest.er1
  13924. cat conftest.err >&5
  13925. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13926. (exit $ac_status); } && {
  13927. test -z "$ac_c_werror_flag" ||
  13928. test ! -s conftest.err
  13929. } && test -s conftest.$ac_objext; then
  13930. :
  13931. else
  13932. $as_echo "$as_me: failed program was:" >&5
  13933. sed 's/^/| /' conftest.$ac_ext >&5
  13934. ac_cv_type_size_t=yes
  13935. fi
  13936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13937. else
  13938. $as_echo "$as_me: failed program was:" >&5
  13939. sed 's/^/| /' conftest.$ac_ext >&5
  13940. fi
  13941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13942. fi
  13943. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  13944. $as_echo "$ac_cv_type_size_t" >&6; }
  13945. if test "x$ac_cv_type_size_t" = x""yes; then
  13946. :
  13947. else
  13948. cat >>confdefs.h <<_ACEOF
  13949. #define size_t unsigned int
  13950. _ACEOF
  13951. fi
  13952. { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
  13953. $as_echo_n "checking for struct stat.st_blksize... " >&6; }
  13954. if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  13955. $as_echo_n "(cached) " >&6
  13956. else
  13957. cat >conftest.$ac_ext <<_ACEOF
  13958. /* confdefs.h. */
  13959. _ACEOF
  13960. cat confdefs.h >>conftest.$ac_ext
  13961. cat >>conftest.$ac_ext <<_ACEOF
  13962. /* end confdefs.h. */
  13963. $ac_includes_default
  13964. int
  13965. main ()
  13966. {
  13967. static struct stat ac_aggr;
  13968. if (ac_aggr.st_blksize)
  13969. return 0;
  13970. ;
  13971. return 0;
  13972. }
  13973. _ACEOF
  13974. rm -f conftest.$ac_objext
  13975. if { (ac_try="$ac_compile"
  13976. case "(($ac_try" in
  13977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13978. *) ac_try_echo=$ac_try;;
  13979. esac
  13980. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13981. $as_echo "$ac_try_echo") >&5
  13982. (eval "$ac_compile") 2>conftest.er1
  13983. ac_status=$?
  13984. grep -v '^ *+' conftest.er1 >conftest.err
  13985. rm -f conftest.er1
  13986. cat conftest.err >&5
  13987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13988. (exit $ac_status); } && {
  13989. test -z "$ac_c_werror_flag" ||
  13990. test ! -s conftest.err
  13991. } && test -s conftest.$ac_objext; then
  13992. ac_cv_member_struct_stat_st_blksize=yes
  13993. else
  13994. $as_echo "$as_me: failed program was:" >&5
  13995. sed 's/^/| /' conftest.$ac_ext >&5
  13996. cat >conftest.$ac_ext <<_ACEOF
  13997. /* confdefs.h. */
  13998. _ACEOF
  13999. cat confdefs.h >>conftest.$ac_ext
  14000. cat >>conftest.$ac_ext <<_ACEOF
  14001. /* end confdefs.h. */
  14002. $ac_includes_default
  14003. int
  14004. main ()
  14005. {
  14006. static struct stat ac_aggr;
  14007. if (sizeof ac_aggr.st_blksize)
  14008. return 0;
  14009. ;
  14010. return 0;
  14011. }
  14012. _ACEOF
  14013. rm -f conftest.$ac_objext
  14014. if { (ac_try="$ac_compile"
  14015. case "(($ac_try" in
  14016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14017. *) ac_try_echo=$ac_try;;
  14018. esac
  14019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14020. $as_echo "$ac_try_echo") >&5
  14021. (eval "$ac_compile") 2>conftest.er1
  14022. ac_status=$?
  14023. grep -v '^ *+' conftest.er1 >conftest.err
  14024. rm -f conftest.er1
  14025. cat conftest.err >&5
  14026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14027. (exit $ac_status); } && {
  14028. test -z "$ac_c_werror_flag" ||
  14029. test ! -s conftest.err
  14030. } && test -s conftest.$ac_objext; then
  14031. ac_cv_member_struct_stat_st_blksize=yes
  14032. else
  14033. $as_echo "$as_me: failed program was:" >&5
  14034. sed 's/^/| /' conftest.$ac_ext >&5
  14035. ac_cv_member_struct_stat_st_blksize=no
  14036. fi
  14037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14038. fi
  14039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14040. fi
  14041. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
  14042. $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
  14043. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
  14044. cat >>confdefs.h <<_ACEOF
  14045. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  14046. _ACEOF
  14047. fi
  14048. { $as_echo "$as_me:$LINENO: checking for struct ucred.uid" >&5
  14049. $as_echo_n "checking for struct ucred.uid... " >&6; }
  14050. if test "${ac_cv_member_struct_ucred_uid+set}" = set; then
  14051. $as_echo_n "(cached) " >&6
  14052. else
  14053. cat >conftest.$ac_ext <<_ACEOF
  14054. /* confdefs.h. */
  14055. _ACEOF
  14056. cat confdefs.h >>conftest.$ac_ext
  14057. cat >>conftest.$ac_ext <<_ACEOF
  14058. /* end confdefs.h. */
  14059. #include <sys/types.h>
  14060. #include <sys/socket.h>
  14061. int
  14062. main ()
  14063. {
  14064. static struct ucred ac_aggr;
  14065. if (ac_aggr.uid)
  14066. return 0;
  14067. ;
  14068. return 0;
  14069. }
  14070. _ACEOF
  14071. rm -f conftest.$ac_objext
  14072. if { (ac_try="$ac_compile"
  14073. case "(($ac_try" in
  14074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14075. *) ac_try_echo=$ac_try;;
  14076. esac
  14077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14078. $as_echo "$ac_try_echo") >&5
  14079. (eval "$ac_compile") 2>conftest.er1
  14080. ac_status=$?
  14081. grep -v '^ *+' conftest.er1 >conftest.err
  14082. rm -f conftest.er1
  14083. cat conftest.err >&5
  14084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14085. (exit $ac_status); } && {
  14086. test -z "$ac_c_werror_flag" ||
  14087. test ! -s conftest.err
  14088. } && test -s conftest.$ac_objext; then
  14089. ac_cv_member_struct_ucred_uid=yes
  14090. else
  14091. $as_echo "$as_me: failed program was:" >&5
  14092. sed 's/^/| /' conftest.$ac_ext >&5
  14093. cat >conftest.$ac_ext <<_ACEOF
  14094. /* confdefs.h. */
  14095. _ACEOF
  14096. cat confdefs.h >>conftest.$ac_ext
  14097. cat >>conftest.$ac_ext <<_ACEOF
  14098. /* end confdefs.h. */
  14099. #include <sys/types.h>
  14100. #include <sys/socket.h>
  14101. int
  14102. main ()
  14103. {
  14104. static struct ucred ac_aggr;
  14105. if (sizeof ac_aggr.uid)
  14106. return 0;
  14107. ;
  14108. return 0;
  14109. }
  14110. _ACEOF
  14111. rm -f conftest.$ac_objext
  14112. if { (ac_try="$ac_compile"
  14113. case "(($ac_try" in
  14114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14115. *) ac_try_echo=$ac_try;;
  14116. esac
  14117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14118. $as_echo "$ac_try_echo") >&5
  14119. (eval "$ac_compile") 2>conftest.er1
  14120. ac_status=$?
  14121. grep -v '^ *+' conftest.er1 >conftest.err
  14122. rm -f conftest.er1
  14123. cat conftest.err >&5
  14124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14125. (exit $ac_status); } && {
  14126. test -z "$ac_c_werror_flag" ||
  14127. test ! -s conftest.err
  14128. } && test -s conftest.$ac_objext; then
  14129. ac_cv_member_struct_ucred_uid=yes
  14130. else
  14131. $as_echo "$as_me: failed program was:" >&5
  14132. sed 's/^/| /' conftest.$ac_ext >&5
  14133. ac_cv_member_struct_ucred_uid=no
  14134. fi
  14135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14136. fi
  14137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14138. fi
  14139. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ucred_uid" >&5
  14140. $as_echo "$ac_cv_member_struct_ucred_uid" >&6; }
  14141. if test "x$ac_cv_member_struct_ucred_uid" = x""yes; then
  14142. cat >>confdefs.h <<_ACEOF
  14143. #define HAVE_STRUCT_UCRED_UID 1
  14144. _ACEOF
  14145. fi
  14146. { $as_echo "$as_me:$LINENO: checking for struct ucred.cr_uid" >&5
  14147. $as_echo_n "checking for struct ucred.cr_uid... " >&6; }
  14148. if test "${ac_cv_member_struct_ucred_cr_uid+set}" = set; then
  14149. $as_echo_n "(cached) " >&6
  14150. else
  14151. cat >conftest.$ac_ext <<_ACEOF
  14152. /* confdefs.h. */
  14153. _ACEOF
  14154. cat confdefs.h >>conftest.$ac_ext
  14155. cat >>conftest.$ac_ext <<_ACEOF
  14156. /* end confdefs.h. */
  14157. #include <sys/types.h>
  14158. #include <sys/socket.h>
  14159. int
  14160. main ()
  14161. {
  14162. static struct ucred ac_aggr;
  14163. if (ac_aggr.cr_uid)
  14164. return 0;
  14165. ;
  14166. return 0;
  14167. }
  14168. _ACEOF
  14169. rm -f conftest.$ac_objext
  14170. if { (ac_try="$ac_compile"
  14171. case "(($ac_try" in
  14172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14173. *) ac_try_echo=$ac_try;;
  14174. esac
  14175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14176. $as_echo "$ac_try_echo") >&5
  14177. (eval "$ac_compile") 2>conftest.er1
  14178. ac_status=$?
  14179. grep -v '^ *+' conftest.er1 >conftest.err
  14180. rm -f conftest.er1
  14181. cat conftest.err >&5
  14182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14183. (exit $ac_status); } && {
  14184. test -z "$ac_c_werror_flag" ||
  14185. test ! -s conftest.err
  14186. } && test -s conftest.$ac_objext; then
  14187. ac_cv_member_struct_ucred_cr_uid=yes
  14188. else
  14189. $as_echo "$as_me: failed program was:" >&5
  14190. sed 's/^/| /' conftest.$ac_ext >&5
  14191. cat >conftest.$ac_ext <<_ACEOF
  14192. /* confdefs.h. */
  14193. _ACEOF
  14194. cat confdefs.h >>conftest.$ac_ext
  14195. cat >>conftest.$ac_ext <<_ACEOF
  14196. /* end confdefs.h. */
  14197. #include <sys/types.h>
  14198. #include <sys/socket.h>
  14199. int
  14200. main ()
  14201. {
  14202. static struct ucred ac_aggr;
  14203. if (sizeof ac_aggr.cr_uid)
  14204. return 0;
  14205. ;
  14206. return 0;
  14207. }
  14208. _ACEOF
  14209. rm -f conftest.$ac_objext
  14210. if { (ac_try="$ac_compile"
  14211. case "(($ac_try" in
  14212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14213. *) ac_try_echo=$ac_try;;
  14214. esac
  14215. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14216. $as_echo "$ac_try_echo") >&5
  14217. (eval "$ac_compile") 2>conftest.er1
  14218. ac_status=$?
  14219. grep -v '^ *+' conftest.er1 >conftest.err
  14220. rm -f conftest.er1
  14221. cat conftest.err >&5
  14222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14223. (exit $ac_status); } && {
  14224. test -z "$ac_c_werror_flag" ||
  14225. test ! -s conftest.err
  14226. } && test -s conftest.$ac_objext; then
  14227. ac_cv_member_struct_ucred_cr_uid=yes
  14228. else
  14229. $as_echo "$as_me: failed program was:" >&5
  14230. sed 's/^/| /' conftest.$ac_ext >&5
  14231. ac_cv_member_struct_ucred_cr_uid=no
  14232. fi
  14233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14234. fi
  14235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14236. fi
  14237. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ucred_cr_uid" >&5
  14238. $as_echo "$ac_cv_member_struct_ucred_cr_uid" >&6; }
  14239. if test "x$ac_cv_member_struct_ucred_cr_uid" = x""yes; then
  14240. cat >>confdefs.h <<_ACEOF
  14241. #define HAVE_STRUCT_UCRED_CR_UID 1
  14242. _ACEOF
  14243. fi
  14244. { $as_echo "$as_me:$LINENO: checking for struct sockpeercred.uid" >&5
  14245. $as_echo_n "checking for struct sockpeercred.uid... " >&6; }
  14246. if test "${ac_cv_member_struct_sockpeercred_uid+set}" = set; then
  14247. $as_echo_n "(cached) " >&6
  14248. else
  14249. cat >conftest.$ac_ext <<_ACEOF
  14250. /* confdefs.h. */
  14251. _ACEOF
  14252. cat confdefs.h >>conftest.$ac_ext
  14253. cat >>conftest.$ac_ext <<_ACEOF
  14254. /* end confdefs.h. */
  14255. #include <sys/types.h>
  14256. #include <sys/socket.h>
  14257. int
  14258. main ()
  14259. {
  14260. static struct sockpeercred ac_aggr;
  14261. if (ac_aggr.uid)
  14262. return 0;
  14263. ;
  14264. return 0;
  14265. }
  14266. _ACEOF
  14267. rm -f conftest.$ac_objext
  14268. if { (ac_try="$ac_compile"
  14269. case "(($ac_try" in
  14270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14271. *) ac_try_echo=$ac_try;;
  14272. esac
  14273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14274. $as_echo "$ac_try_echo") >&5
  14275. (eval "$ac_compile") 2>conftest.er1
  14276. ac_status=$?
  14277. grep -v '^ *+' conftest.er1 >conftest.err
  14278. rm -f conftest.er1
  14279. cat conftest.err >&5
  14280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14281. (exit $ac_status); } && {
  14282. test -z "$ac_c_werror_flag" ||
  14283. test ! -s conftest.err
  14284. } && test -s conftest.$ac_objext; then
  14285. ac_cv_member_struct_sockpeercred_uid=yes
  14286. else
  14287. $as_echo "$as_me: failed program was:" >&5
  14288. sed 's/^/| /' conftest.$ac_ext >&5
  14289. cat >conftest.$ac_ext <<_ACEOF
  14290. /* confdefs.h. */
  14291. _ACEOF
  14292. cat confdefs.h >>conftest.$ac_ext
  14293. cat >>conftest.$ac_ext <<_ACEOF
  14294. /* end confdefs.h. */
  14295. #include <sys/types.h>
  14296. #include <sys/socket.h>
  14297. int
  14298. main ()
  14299. {
  14300. static struct sockpeercred ac_aggr;
  14301. if (sizeof ac_aggr.uid)
  14302. return 0;
  14303. ;
  14304. return 0;
  14305. }
  14306. _ACEOF
  14307. rm -f conftest.$ac_objext
  14308. if { (ac_try="$ac_compile"
  14309. case "(($ac_try" in
  14310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14311. *) ac_try_echo=$ac_try;;
  14312. esac
  14313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14314. $as_echo "$ac_try_echo") >&5
  14315. (eval "$ac_compile") 2>conftest.er1
  14316. ac_status=$?
  14317. grep -v '^ *+' conftest.er1 >conftest.err
  14318. rm -f conftest.er1
  14319. cat conftest.err >&5
  14320. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14321. (exit $ac_status); } && {
  14322. test -z "$ac_c_werror_flag" ||
  14323. test ! -s conftest.err
  14324. } && test -s conftest.$ac_objext; then
  14325. ac_cv_member_struct_sockpeercred_uid=yes
  14326. else
  14327. $as_echo "$as_me: failed program was:" >&5
  14328. sed 's/^/| /' conftest.$ac_ext >&5
  14329. ac_cv_member_struct_sockpeercred_uid=no
  14330. fi
  14331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14332. fi
  14333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14334. fi
  14335. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockpeercred_uid" >&5
  14336. $as_echo "$ac_cv_member_struct_sockpeercred_uid" >&6; }
  14337. if test "x$ac_cv_member_struct_sockpeercred_uid" = x""yes; then
  14338. cat >>confdefs.h <<_ACEOF
  14339. #define HAVE_STRUCT_SOCKPEERCRED_UID 1
  14340. _ACEOF
  14341. fi
  14342. { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_ifru.ifru_hwaddr" >&5
  14343. $as_echo_n "checking for struct ifreq.ifr_ifru.ifru_hwaddr... " >&6; }
  14344. if test "${ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr+set}" = set; then
  14345. $as_echo_n "(cached) " >&6
  14346. else
  14347. cat >conftest.$ac_ext <<_ACEOF
  14348. /* confdefs.h. */
  14349. _ACEOF
  14350. cat confdefs.h >>conftest.$ac_ext
  14351. cat >>conftest.$ac_ext <<_ACEOF
  14352. /* end confdefs.h. */
  14353. #include <net/if.h>
  14354. int
  14355. main ()
  14356. {
  14357. static struct ifreq ac_aggr;
  14358. if (ac_aggr.ifr_ifru.ifru_hwaddr)
  14359. return 0;
  14360. ;
  14361. return 0;
  14362. }
  14363. _ACEOF
  14364. rm -f conftest.$ac_objext
  14365. if { (ac_try="$ac_compile"
  14366. case "(($ac_try" in
  14367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14368. *) ac_try_echo=$ac_try;;
  14369. esac
  14370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14371. $as_echo "$ac_try_echo") >&5
  14372. (eval "$ac_compile") 2>conftest.er1
  14373. ac_status=$?
  14374. grep -v '^ *+' conftest.er1 >conftest.err
  14375. rm -f conftest.er1
  14376. cat conftest.err >&5
  14377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14378. (exit $ac_status); } && {
  14379. test -z "$ac_c_werror_flag" ||
  14380. test ! -s conftest.err
  14381. } && test -s conftest.$ac_objext; then
  14382. ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr=yes
  14383. else
  14384. $as_echo "$as_me: failed program was:" >&5
  14385. sed 's/^/| /' conftest.$ac_ext >&5
  14386. cat >conftest.$ac_ext <<_ACEOF
  14387. /* confdefs.h. */
  14388. _ACEOF
  14389. cat confdefs.h >>conftest.$ac_ext
  14390. cat >>conftest.$ac_ext <<_ACEOF
  14391. /* end confdefs.h. */
  14392. #include <net/if.h>
  14393. int
  14394. main ()
  14395. {
  14396. static struct ifreq ac_aggr;
  14397. if (sizeof ac_aggr.ifr_ifru.ifru_hwaddr)
  14398. return 0;
  14399. ;
  14400. return 0;
  14401. }
  14402. _ACEOF
  14403. rm -f conftest.$ac_objext
  14404. if { (ac_try="$ac_compile"
  14405. case "(($ac_try" in
  14406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14407. *) ac_try_echo=$ac_try;;
  14408. esac
  14409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14410. $as_echo "$ac_try_echo") >&5
  14411. (eval "$ac_compile") 2>conftest.er1
  14412. ac_status=$?
  14413. grep -v '^ *+' conftest.er1 >conftest.err
  14414. rm -f conftest.er1
  14415. cat conftest.err >&5
  14416. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14417. (exit $ac_status); } && {
  14418. test -z "$ac_c_werror_flag" ||
  14419. test ! -s conftest.err
  14420. } && test -s conftest.$ac_objext; then
  14421. ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr=yes
  14422. else
  14423. $as_echo "$as_me: failed program was:" >&5
  14424. sed 's/^/| /' conftest.$ac_ext >&5
  14425. ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr=no
  14426. fi
  14427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14428. fi
  14429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14430. fi
  14431. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" >&5
  14432. $as_echo "$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" >&6; }
  14433. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = x""yes; then
  14434. cat >>confdefs.h <<_ACEOF
  14435. #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
  14436. _ACEOF
  14437. fi
  14438. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  14439. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14440. if test "${ac_cv_header_time+set}" = set; then
  14441. $as_echo_n "(cached) " >&6
  14442. else
  14443. cat >conftest.$ac_ext <<_ACEOF
  14444. /* confdefs.h. */
  14445. _ACEOF
  14446. cat confdefs.h >>conftest.$ac_ext
  14447. cat >>conftest.$ac_ext <<_ACEOF
  14448. /* end confdefs.h. */
  14449. #include <sys/types.h>
  14450. #include <sys/time.h>
  14451. #include <time.h>
  14452. int
  14453. main ()
  14454. {
  14455. if ((struct tm *) 0)
  14456. return 0;
  14457. ;
  14458. return 0;
  14459. }
  14460. _ACEOF
  14461. rm -f conftest.$ac_objext
  14462. if { (ac_try="$ac_compile"
  14463. case "(($ac_try" in
  14464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14465. *) ac_try_echo=$ac_try;;
  14466. esac
  14467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14468. $as_echo "$ac_try_echo") >&5
  14469. (eval "$ac_compile") 2>conftest.er1
  14470. ac_status=$?
  14471. grep -v '^ *+' conftest.er1 >conftest.err
  14472. rm -f conftest.er1
  14473. cat conftest.err >&5
  14474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14475. (exit $ac_status); } && {
  14476. test -z "$ac_c_werror_flag" ||
  14477. test ! -s conftest.err
  14478. } && test -s conftest.$ac_objext; then
  14479. ac_cv_header_time=yes
  14480. else
  14481. $as_echo "$as_me: failed program was:" >&5
  14482. sed 's/^/| /' conftest.$ac_ext >&5
  14483. ac_cv_header_time=no
  14484. fi
  14485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14486. fi
  14487. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  14488. $as_echo "$ac_cv_header_time" >&6; }
  14489. if test $ac_cv_header_time = yes; then
  14490. cat >>confdefs.h <<\_ACEOF
  14491. #define TIME_WITH_SYS_TIME 1
  14492. _ACEOF
  14493. fi
  14494. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  14495. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14496. if test "${ac_cv_struct_tm+set}" = set; then
  14497. $as_echo_n "(cached) " >&6
  14498. else
  14499. cat >conftest.$ac_ext <<_ACEOF
  14500. /* confdefs.h. */
  14501. _ACEOF
  14502. cat confdefs.h >>conftest.$ac_ext
  14503. cat >>conftest.$ac_ext <<_ACEOF
  14504. /* end confdefs.h. */
  14505. #include <sys/types.h>
  14506. #include <time.h>
  14507. int
  14508. main ()
  14509. {
  14510. struct tm tm;
  14511. int *p = &tm.tm_sec;
  14512. return !p;
  14513. ;
  14514. return 0;
  14515. }
  14516. _ACEOF
  14517. rm -f conftest.$ac_objext
  14518. if { (ac_try="$ac_compile"
  14519. case "(($ac_try" in
  14520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14521. *) ac_try_echo=$ac_try;;
  14522. esac
  14523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14524. $as_echo "$ac_try_echo") >&5
  14525. (eval "$ac_compile") 2>conftest.er1
  14526. ac_status=$?
  14527. grep -v '^ *+' conftest.er1 >conftest.err
  14528. rm -f conftest.er1
  14529. cat conftest.err >&5
  14530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14531. (exit $ac_status); } && {
  14532. test -z "$ac_c_werror_flag" ||
  14533. test ! -s conftest.err
  14534. } && test -s conftest.$ac_objext; then
  14535. ac_cv_struct_tm=time.h
  14536. else
  14537. $as_echo "$as_me: failed program was:" >&5
  14538. sed 's/^/| /' conftest.$ac_ext >&5
  14539. ac_cv_struct_tm=sys/time.h
  14540. fi
  14541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14542. fi
  14543. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  14544. $as_echo "$ac_cv_struct_tm" >&6; }
  14545. if test $ac_cv_struct_tm = sys/time.h; then
  14546. cat >>confdefs.h <<\_ACEOF
  14547. #define TM_IN_SYS_TIME 1
  14548. _ACEOF
  14549. fi
  14550. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  14551. $as_echo_n "checking for working volatile... " >&6; }
  14552. if test "${ac_cv_c_volatile+set}" = set; then
  14553. $as_echo_n "(cached) " >&6
  14554. else
  14555. cat >conftest.$ac_ext <<_ACEOF
  14556. /* confdefs.h. */
  14557. _ACEOF
  14558. cat confdefs.h >>conftest.$ac_ext
  14559. cat >>conftest.$ac_ext <<_ACEOF
  14560. /* end confdefs.h. */
  14561. int
  14562. main ()
  14563. {
  14564. volatile int x;
  14565. int * volatile y = (int *) 0;
  14566. return !x && !y;
  14567. ;
  14568. return 0;
  14569. }
  14570. _ACEOF
  14571. rm -f conftest.$ac_objext
  14572. if { (ac_try="$ac_compile"
  14573. case "(($ac_try" in
  14574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14575. *) ac_try_echo=$ac_try;;
  14576. esac
  14577. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14578. $as_echo "$ac_try_echo") >&5
  14579. (eval "$ac_compile") 2>conftest.er1
  14580. ac_status=$?
  14581. grep -v '^ *+' conftest.er1 >conftest.err
  14582. rm -f conftest.er1
  14583. cat conftest.err >&5
  14584. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14585. (exit $ac_status); } && {
  14586. test -z "$ac_c_werror_flag" ||
  14587. test ! -s conftest.err
  14588. } && test -s conftest.$ac_objext; then
  14589. ac_cv_c_volatile=yes
  14590. else
  14591. $as_echo "$as_me: failed program was:" >&5
  14592. sed 's/^/| /' conftest.$ac_ext >&5
  14593. ac_cv_c_volatile=no
  14594. fi
  14595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14596. fi
  14597. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  14598. $as_echo "$ac_cv_c_volatile" >&6; }
  14599. if test $ac_cv_c_volatile = no; then
  14600. cat >>confdefs.h <<\_ACEOF
  14601. #define volatile /**/
  14602. _ACEOF
  14603. fi
  14604. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14605. $as_echo_n "checking for ptrdiff_t... " >&6; }
  14606. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14607. $as_echo_n "(cached) " >&6
  14608. else
  14609. ac_cv_type_ptrdiff_t=no
  14610. cat >conftest.$ac_ext <<_ACEOF
  14611. /* confdefs.h. */
  14612. _ACEOF
  14613. cat confdefs.h >>conftest.$ac_ext
  14614. cat >>conftest.$ac_ext <<_ACEOF
  14615. /* end confdefs.h. */
  14616. $ac_includes_default
  14617. int
  14618. main ()
  14619. {
  14620. if (sizeof (ptrdiff_t))
  14621. return 0;
  14622. ;
  14623. return 0;
  14624. }
  14625. _ACEOF
  14626. rm -f conftest.$ac_objext
  14627. if { (ac_try="$ac_compile"
  14628. case "(($ac_try" in
  14629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14630. *) ac_try_echo=$ac_try;;
  14631. esac
  14632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14633. $as_echo "$ac_try_echo") >&5
  14634. (eval "$ac_compile") 2>conftest.er1
  14635. ac_status=$?
  14636. grep -v '^ *+' conftest.er1 >conftest.err
  14637. rm -f conftest.er1
  14638. cat conftest.err >&5
  14639. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14640. (exit $ac_status); } && {
  14641. test -z "$ac_c_werror_flag" ||
  14642. test ! -s conftest.err
  14643. } && test -s conftest.$ac_objext; then
  14644. cat >conftest.$ac_ext <<_ACEOF
  14645. /* confdefs.h. */
  14646. _ACEOF
  14647. cat confdefs.h >>conftest.$ac_ext
  14648. cat >>conftest.$ac_ext <<_ACEOF
  14649. /* end confdefs.h. */
  14650. $ac_includes_default
  14651. int
  14652. main ()
  14653. {
  14654. if (sizeof ((ptrdiff_t)))
  14655. return 0;
  14656. ;
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. rm -f conftest.$ac_objext
  14661. if { (ac_try="$ac_compile"
  14662. case "(($ac_try" in
  14663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14664. *) ac_try_echo=$ac_try;;
  14665. esac
  14666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14667. $as_echo "$ac_try_echo") >&5
  14668. (eval "$ac_compile") 2>conftest.er1
  14669. ac_status=$?
  14670. grep -v '^ *+' conftest.er1 >conftest.err
  14671. rm -f conftest.er1
  14672. cat conftest.err >&5
  14673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14674. (exit $ac_status); } && {
  14675. test -z "$ac_c_werror_flag" ||
  14676. test ! -s conftest.err
  14677. } && test -s conftest.$ac_objext; then
  14678. :
  14679. else
  14680. $as_echo "$as_me: failed program was:" >&5
  14681. sed 's/^/| /' conftest.$ac_ext >&5
  14682. ac_cv_type_ptrdiff_t=yes
  14683. fi
  14684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14685. else
  14686. $as_echo "$as_me: failed program was:" >&5
  14687. sed 's/^/| /' conftest.$ac_ext >&5
  14688. fi
  14689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14690. fi
  14691. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14692. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  14693. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  14694. cat >>confdefs.h <<_ACEOF
  14695. #define HAVE_PTRDIFF_T 1
  14696. _ACEOF
  14697. fi
  14698. # Checks for library functions.
  14699. for ac_header in unistd.h
  14700. do
  14701. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14702. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14703. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14704. $as_echo_n "checking for $ac_header... " >&6; }
  14705. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14706. $as_echo_n "(cached) " >&6
  14707. fi
  14708. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14709. $as_echo "$as_val"'`
  14710. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14711. $as_echo "$ac_res" >&6; }
  14712. else
  14713. # Is the header compilable?
  14714. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14715. $as_echo_n "checking $ac_header usability... " >&6; }
  14716. cat >conftest.$ac_ext <<_ACEOF
  14717. /* confdefs.h. */
  14718. _ACEOF
  14719. cat confdefs.h >>conftest.$ac_ext
  14720. cat >>conftest.$ac_ext <<_ACEOF
  14721. /* end confdefs.h. */
  14722. $ac_includes_default
  14723. #include <$ac_header>
  14724. _ACEOF
  14725. rm -f conftest.$ac_objext
  14726. if { (ac_try="$ac_compile"
  14727. case "(($ac_try" in
  14728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14729. *) ac_try_echo=$ac_try;;
  14730. esac
  14731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14732. $as_echo "$ac_try_echo") >&5
  14733. (eval "$ac_compile") 2>conftest.er1
  14734. ac_status=$?
  14735. grep -v '^ *+' conftest.er1 >conftest.err
  14736. rm -f conftest.er1
  14737. cat conftest.err >&5
  14738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14739. (exit $ac_status); } && {
  14740. test -z "$ac_c_werror_flag" ||
  14741. test ! -s conftest.err
  14742. } && test -s conftest.$ac_objext; then
  14743. ac_header_compiler=yes
  14744. else
  14745. $as_echo "$as_me: failed program was:" >&5
  14746. sed 's/^/| /' conftest.$ac_ext >&5
  14747. ac_header_compiler=no
  14748. fi
  14749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14750. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14751. $as_echo "$ac_header_compiler" >&6; }
  14752. # Is the header present?
  14753. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14754. $as_echo_n "checking $ac_header presence... " >&6; }
  14755. cat >conftest.$ac_ext <<_ACEOF
  14756. /* confdefs.h. */
  14757. _ACEOF
  14758. cat confdefs.h >>conftest.$ac_ext
  14759. cat >>conftest.$ac_ext <<_ACEOF
  14760. /* end confdefs.h. */
  14761. #include <$ac_header>
  14762. _ACEOF
  14763. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14764. case "(($ac_try" in
  14765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14766. *) ac_try_echo=$ac_try;;
  14767. esac
  14768. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14769. $as_echo "$ac_try_echo") >&5
  14770. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14771. ac_status=$?
  14772. grep -v '^ *+' conftest.er1 >conftest.err
  14773. rm -f conftest.er1
  14774. cat conftest.err >&5
  14775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14776. (exit $ac_status); } >/dev/null && {
  14777. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14778. test ! -s conftest.err
  14779. }; then
  14780. ac_header_preproc=yes
  14781. else
  14782. $as_echo "$as_me: failed program was:" >&5
  14783. sed 's/^/| /' conftest.$ac_ext >&5
  14784. ac_header_preproc=no
  14785. fi
  14786. rm -f conftest.err conftest.$ac_ext
  14787. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14788. $as_echo "$ac_header_preproc" >&6; }
  14789. # So? What about this header?
  14790. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14791. yes:no: )
  14792. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14793. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14794. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14795. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14796. ac_header_preproc=yes
  14797. ;;
  14798. no:yes:* )
  14799. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14800. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14801. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14802. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14803. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14804. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14805. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14806. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14807. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14808. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14809. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14810. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14811. ( cat <<\_ASBOX
  14812. ## ------------------------------------------ ##
  14813. ## Report this to https://issues.asterisk.org ##
  14814. ## ------------------------------------------ ##
  14815. _ASBOX
  14816. ) | sed "s/^/$as_me: WARNING: /" >&2
  14817. ;;
  14818. esac
  14819. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14820. $as_echo_n "checking for $ac_header... " >&6; }
  14821. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14822. $as_echo_n "(cached) " >&6
  14823. else
  14824. eval "$as_ac_Header=\$ac_header_preproc"
  14825. fi
  14826. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14827. $as_echo "$as_val"'`
  14828. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14829. $as_echo "$ac_res" >&6; }
  14830. fi
  14831. as_val=`eval 'as_val=${'$as_ac_Header'}
  14832. $as_echo "$as_val"'`
  14833. if test "x$as_val" = x""yes; then
  14834. cat >>confdefs.h <<_ACEOF
  14835. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14836. _ACEOF
  14837. fi
  14838. done
  14839. { $as_echo "$as_me:$LINENO: checking for working chown" >&5
  14840. $as_echo_n "checking for working chown... " >&6; }
  14841. if test "${ac_cv_func_chown_works+set}" = set; then
  14842. $as_echo_n "(cached) " >&6
  14843. else
  14844. if test "$cross_compiling" = yes; then
  14845. ac_cv_func_chown_works=no
  14846. else
  14847. cat >conftest.$ac_ext <<_ACEOF
  14848. /* confdefs.h. */
  14849. _ACEOF
  14850. cat confdefs.h >>conftest.$ac_ext
  14851. cat >>conftest.$ac_ext <<_ACEOF
  14852. /* end confdefs.h. */
  14853. $ac_includes_default
  14854. #include <fcntl.h>
  14855. int
  14856. main ()
  14857. {
  14858. char *f = "conftest.chown";
  14859. struct stat before, after;
  14860. if (creat (f, 0600) < 0)
  14861. return 1;
  14862. if (stat (f, &before) < 0)
  14863. return 1;
  14864. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14865. return 1;
  14866. if (stat (f, &after) < 0)
  14867. return 1;
  14868. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14869. ;
  14870. return 0;
  14871. }
  14872. _ACEOF
  14873. rm -f conftest$ac_exeext
  14874. if { (ac_try="$ac_link"
  14875. case "(($ac_try" in
  14876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14877. *) ac_try_echo=$ac_try;;
  14878. esac
  14879. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14880. $as_echo "$ac_try_echo") >&5
  14881. (eval "$ac_link") 2>&5
  14882. ac_status=$?
  14883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14884. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14885. { (case "(($ac_try" in
  14886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14887. *) ac_try_echo=$ac_try;;
  14888. esac
  14889. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14890. $as_echo "$ac_try_echo") >&5
  14891. (eval "$ac_try") 2>&5
  14892. ac_status=$?
  14893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14894. (exit $ac_status); }; }; then
  14895. ac_cv_func_chown_works=yes
  14896. else
  14897. $as_echo "$as_me: program exited with status $ac_status" >&5
  14898. $as_echo "$as_me: failed program was:" >&5
  14899. sed 's/^/| /' conftest.$ac_ext >&5
  14900. ( exit $ac_status )
  14901. ac_cv_func_chown_works=no
  14902. fi
  14903. rm -rf conftest.dSYM
  14904. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14905. fi
  14906. rm -f conftest.chown
  14907. fi
  14908. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  14909. $as_echo "$ac_cv_func_chown_works" >&6; }
  14910. if test $ac_cv_func_chown_works = yes; then
  14911. cat >>confdefs.h <<\_ACEOF
  14912. #define HAVE_CHOWN 1
  14913. _ACEOF
  14914. fi
  14915. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  14916. $as_echo_n "checking whether closedir returns void... " >&6; }
  14917. if test "${ac_cv_func_closedir_void+set}" = set; then
  14918. $as_echo_n "(cached) " >&6
  14919. else
  14920. if test "$cross_compiling" = yes; then
  14921. ac_cv_func_closedir_void=yes
  14922. else
  14923. cat >conftest.$ac_ext <<_ACEOF
  14924. /* confdefs.h. */
  14925. _ACEOF
  14926. cat confdefs.h >>conftest.$ac_ext
  14927. cat >>conftest.$ac_ext <<_ACEOF
  14928. /* end confdefs.h. */
  14929. $ac_includes_default
  14930. #include <$ac_header_dirent>
  14931. #ifndef __cplusplus
  14932. int closedir ();
  14933. #endif
  14934. int
  14935. main ()
  14936. {
  14937. return closedir (opendir (".")) != 0;
  14938. ;
  14939. return 0;
  14940. }
  14941. _ACEOF
  14942. rm -f conftest$ac_exeext
  14943. if { (ac_try="$ac_link"
  14944. case "(($ac_try" in
  14945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14946. *) ac_try_echo=$ac_try;;
  14947. esac
  14948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14949. $as_echo "$ac_try_echo") >&5
  14950. (eval "$ac_link") 2>&5
  14951. ac_status=$?
  14952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14953. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  14961. ac_status=$?
  14962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14963. (exit $ac_status); }; }; then
  14964. ac_cv_func_closedir_void=no
  14965. else
  14966. $as_echo "$as_me: program exited with status $ac_status" >&5
  14967. $as_echo "$as_me: failed program was:" >&5
  14968. sed 's/^/| /' conftest.$ac_ext >&5
  14969. ( exit $ac_status )
  14970. ac_cv_func_closedir_void=yes
  14971. fi
  14972. rm -rf conftest.dSYM
  14973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14974. fi
  14975. fi
  14976. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  14977. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14978. if test $ac_cv_func_closedir_void = yes; then
  14979. cat >>confdefs.h <<\_ACEOF
  14980. #define CLOSEDIR_VOID 1
  14981. _ACEOF
  14982. fi
  14983. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  14984. $as_echo_n "checking for error_at_line... " >&6; }
  14985. if test "${ac_cv_lib_error_at_line+set}" = set; then
  14986. $as_echo_n "(cached) " >&6
  14987. else
  14988. cat >conftest.$ac_ext <<_ACEOF
  14989. /* confdefs.h. */
  14990. _ACEOF
  14991. cat confdefs.h >>conftest.$ac_ext
  14992. cat >>conftest.$ac_ext <<_ACEOF
  14993. /* end confdefs.h. */
  14994. #include <error.h>
  14995. int
  14996. main ()
  14997. {
  14998. error_at_line (0, 0, "", 0, "an error occurred");
  14999. ;
  15000. return 0;
  15001. }
  15002. _ACEOF
  15003. rm -f conftest.$ac_objext conftest$ac_exeext
  15004. if { (ac_try="$ac_link"
  15005. case "(($ac_try" in
  15006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15007. *) ac_try_echo=$ac_try;;
  15008. esac
  15009. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15010. $as_echo "$ac_try_echo") >&5
  15011. (eval "$ac_link") 2>conftest.er1
  15012. ac_status=$?
  15013. grep -v '^ *+' conftest.er1 >conftest.err
  15014. rm -f conftest.er1
  15015. cat conftest.err >&5
  15016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15017. (exit $ac_status); } && {
  15018. test -z "$ac_c_werror_flag" ||
  15019. test ! -s conftest.err
  15020. } && test -s conftest$ac_exeext && {
  15021. test "$cross_compiling" = yes ||
  15022. $as_test_x conftest$ac_exeext
  15023. }; then
  15024. ac_cv_lib_error_at_line=yes
  15025. else
  15026. $as_echo "$as_me: failed program was:" >&5
  15027. sed 's/^/| /' conftest.$ac_ext >&5
  15028. ac_cv_lib_error_at_line=no
  15029. fi
  15030. rm -rf conftest.dSYM
  15031. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15032. conftest$ac_exeext conftest.$ac_ext
  15033. fi
  15034. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15035. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  15036. if test $ac_cv_lib_error_at_line = no; then
  15037. case " $LIBOBJS " in
  15038. *" error.$ac_objext "* ) ;;
  15039. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15040. ;;
  15041. esac
  15042. fi
  15043. for ac_header in vfork.h
  15044. do
  15045. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15046. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15047. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15048. $as_echo_n "checking for $ac_header... " >&6; }
  15049. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15050. $as_echo_n "(cached) " >&6
  15051. fi
  15052. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15053. $as_echo "$as_val"'`
  15054. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15055. $as_echo "$ac_res" >&6; }
  15056. else
  15057. # Is the header compilable?
  15058. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15059. $as_echo_n "checking $ac_header usability... " >&6; }
  15060. cat >conftest.$ac_ext <<_ACEOF
  15061. /* confdefs.h. */
  15062. _ACEOF
  15063. cat confdefs.h >>conftest.$ac_ext
  15064. cat >>conftest.$ac_ext <<_ACEOF
  15065. /* end confdefs.h. */
  15066. $ac_includes_default
  15067. #include <$ac_header>
  15068. _ACEOF
  15069. rm -f conftest.$ac_objext
  15070. if { (ac_try="$ac_compile"
  15071. case "(($ac_try" in
  15072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15073. *) ac_try_echo=$ac_try;;
  15074. esac
  15075. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15076. $as_echo "$ac_try_echo") >&5
  15077. (eval "$ac_compile") 2>conftest.er1
  15078. ac_status=$?
  15079. grep -v '^ *+' conftest.er1 >conftest.err
  15080. rm -f conftest.er1
  15081. cat conftest.err >&5
  15082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15083. (exit $ac_status); } && {
  15084. test -z "$ac_c_werror_flag" ||
  15085. test ! -s conftest.err
  15086. } && test -s conftest.$ac_objext; then
  15087. ac_header_compiler=yes
  15088. else
  15089. $as_echo "$as_me: failed program was:" >&5
  15090. sed 's/^/| /' conftest.$ac_ext >&5
  15091. ac_header_compiler=no
  15092. fi
  15093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15094. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15095. $as_echo "$ac_header_compiler" >&6; }
  15096. # Is the header present?
  15097. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15098. $as_echo_n "checking $ac_header presence... " >&6; }
  15099. cat >conftest.$ac_ext <<_ACEOF
  15100. /* confdefs.h. */
  15101. _ACEOF
  15102. cat confdefs.h >>conftest.$ac_ext
  15103. cat >>conftest.$ac_ext <<_ACEOF
  15104. /* end confdefs.h. */
  15105. #include <$ac_header>
  15106. _ACEOF
  15107. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15108. case "(($ac_try" in
  15109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15110. *) ac_try_echo=$ac_try;;
  15111. esac
  15112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15113. $as_echo "$ac_try_echo") >&5
  15114. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15115. ac_status=$?
  15116. grep -v '^ *+' conftest.er1 >conftest.err
  15117. rm -f conftest.er1
  15118. cat conftest.err >&5
  15119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15120. (exit $ac_status); } >/dev/null && {
  15121. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15122. test ! -s conftest.err
  15123. }; then
  15124. ac_header_preproc=yes
  15125. else
  15126. $as_echo "$as_me: failed program was:" >&5
  15127. sed 's/^/| /' conftest.$ac_ext >&5
  15128. ac_header_preproc=no
  15129. fi
  15130. rm -f conftest.err conftest.$ac_ext
  15131. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15132. $as_echo "$ac_header_preproc" >&6; }
  15133. # So? What about this header?
  15134. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15135. yes:no: )
  15136. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15137. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15138. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15139. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15140. ac_header_preproc=yes
  15141. ;;
  15142. no:yes:* )
  15143. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15144. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15145. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15146. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15147. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15148. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15149. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15150. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15151. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15152. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15153. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15154. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15155. ( cat <<\_ASBOX
  15156. ## ------------------------------------------ ##
  15157. ## Report this to https://issues.asterisk.org ##
  15158. ## ------------------------------------------ ##
  15159. _ASBOX
  15160. ) | sed "s/^/$as_me: WARNING: /" >&2
  15161. ;;
  15162. esac
  15163. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15164. $as_echo_n "checking for $ac_header... " >&6; }
  15165. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15166. $as_echo_n "(cached) " >&6
  15167. else
  15168. eval "$as_ac_Header=\$ac_header_preproc"
  15169. fi
  15170. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15171. $as_echo "$as_val"'`
  15172. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15173. $as_echo "$ac_res" >&6; }
  15174. fi
  15175. as_val=`eval 'as_val=${'$as_ac_Header'}
  15176. $as_echo "$as_val"'`
  15177. if test "x$as_val" = x""yes; then
  15178. cat >>confdefs.h <<_ACEOF
  15179. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15180. _ACEOF
  15181. fi
  15182. done
  15183. for ac_func in fork vfork
  15184. do
  15185. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15186. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15187. $as_echo_n "checking for $ac_func... " >&6; }
  15188. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15189. $as_echo_n "(cached) " >&6
  15190. else
  15191. cat >conftest.$ac_ext <<_ACEOF
  15192. /* confdefs.h. */
  15193. _ACEOF
  15194. cat confdefs.h >>conftest.$ac_ext
  15195. cat >>conftest.$ac_ext <<_ACEOF
  15196. /* end confdefs.h. */
  15197. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15198. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15199. #define $ac_func innocuous_$ac_func
  15200. /* System header to define __stub macros and hopefully few prototypes,
  15201. which can conflict with char $ac_func (); below.
  15202. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15203. <limits.h> exists even on freestanding compilers. */
  15204. #ifdef __STDC__
  15205. # include <limits.h>
  15206. #else
  15207. # include <assert.h>
  15208. #endif
  15209. #undef $ac_func
  15210. /* Override any GCC internal prototype to avoid an error.
  15211. Use char because int might match the return type of a GCC
  15212. builtin and then its argument prototype would still apply. */
  15213. #ifdef __cplusplus
  15214. extern "C"
  15215. #endif
  15216. char $ac_func ();
  15217. /* The GNU C library defines this for functions which it implements
  15218. to always fail with ENOSYS. Some functions are actually named
  15219. something starting with __ and the normal name is an alias. */
  15220. #if defined __stub_$ac_func || defined __stub___$ac_func
  15221. choke me
  15222. #endif
  15223. int
  15224. main ()
  15225. {
  15226. return $ac_func ();
  15227. ;
  15228. return 0;
  15229. }
  15230. _ACEOF
  15231. rm -f conftest.$ac_objext conftest$ac_exeext
  15232. if { (ac_try="$ac_link"
  15233. case "(($ac_try" in
  15234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15235. *) ac_try_echo=$ac_try;;
  15236. esac
  15237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15238. $as_echo "$ac_try_echo") >&5
  15239. (eval "$ac_link") 2>conftest.er1
  15240. ac_status=$?
  15241. grep -v '^ *+' conftest.er1 >conftest.err
  15242. rm -f conftest.er1
  15243. cat conftest.err >&5
  15244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15245. (exit $ac_status); } && {
  15246. test -z "$ac_c_werror_flag" ||
  15247. test ! -s conftest.err
  15248. } && test -s conftest$ac_exeext && {
  15249. test "$cross_compiling" = yes ||
  15250. $as_test_x conftest$ac_exeext
  15251. }; then
  15252. eval "$as_ac_var=yes"
  15253. else
  15254. $as_echo "$as_me: failed program was:" >&5
  15255. sed 's/^/| /' conftest.$ac_ext >&5
  15256. eval "$as_ac_var=no"
  15257. fi
  15258. rm -rf conftest.dSYM
  15259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15260. conftest$ac_exeext conftest.$ac_ext
  15261. fi
  15262. ac_res=`eval 'as_val=${'$as_ac_var'}
  15263. $as_echo "$as_val"'`
  15264. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15265. $as_echo "$ac_res" >&6; }
  15266. as_val=`eval 'as_val=${'$as_ac_var'}
  15267. $as_echo "$as_val"'`
  15268. if test "x$as_val" = x""yes; then
  15269. cat >>confdefs.h <<_ACEOF
  15270. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15271. _ACEOF
  15272. fi
  15273. done
  15274. if test "x$ac_cv_func_fork" = xyes; then
  15275. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  15276. $as_echo_n "checking for working fork... " >&6; }
  15277. if test "${ac_cv_func_fork_works+set}" = set; then
  15278. $as_echo_n "(cached) " >&6
  15279. else
  15280. if test "$cross_compiling" = yes; then
  15281. ac_cv_func_fork_works=cross
  15282. else
  15283. cat >conftest.$ac_ext <<_ACEOF
  15284. /* confdefs.h. */
  15285. _ACEOF
  15286. cat confdefs.h >>conftest.$ac_ext
  15287. cat >>conftest.$ac_ext <<_ACEOF
  15288. /* end confdefs.h. */
  15289. $ac_includes_default
  15290. int
  15291. main ()
  15292. {
  15293. /* By Ruediger Kuhlmann. */
  15294. return fork () < 0;
  15295. ;
  15296. return 0;
  15297. }
  15298. _ACEOF
  15299. rm -f conftest$ac_exeext
  15300. if { (ac_try="$ac_link"
  15301. case "(($ac_try" in
  15302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15303. *) ac_try_echo=$ac_try;;
  15304. esac
  15305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15306. $as_echo "$ac_try_echo") >&5
  15307. (eval "$ac_link") 2>&5
  15308. ac_status=$?
  15309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15310. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15311. { (case "(($ac_try" in
  15312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15313. *) ac_try_echo=$ac_try;;
  15314. esac
  15315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15316. $as_echo "$ac_try_echo") >&5
  15317. (eval "$ac_try") 2>&5
  15318. ac_status=$?
  15319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15320. (exit $ac_status); }; }; then
  15321. ac_cv_func_fork_works=yes
  15322. else
  15323. $as_echo "$as_me: program exited with status $ac_status" >&5
  15324. $as_echo "$as_me: failed program was:" >&5
  15325. sed 's/^/| /' conftest.$ac_ext >&5
  15326. ( exit $ac_status )
  15327. ac_cv_func_fork_works=no
  15328. fi
  15329. rm -rf conftest.dSYM
  15330. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15331. fi
  15332. fi
  15333. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  15334. $as_echo "$ac_cv_func_fork_works" >&6; }
  15335. else
  15336. ac_cv_func_fork_works=$ac_cv_func_fork
  15337. fi
  15338. if test "x$ac_cv_func_fork_works" = xcross; then
  15339. case $host in
  15340. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  15341. # Override, as these systems have only a dummy fork() stub
  15342. ac_cv_func_fork_works=no
  15343. ;;
  15344. *)
  15345. ac_cv_func_fork_works=yes
  15346. ;;
  15347. esac
  15348. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  15349. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  15350. fi
  15351. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15352. if test "x$ac_cv_func_vfork" = xyes; then
  15353. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  15354. $as_echo_n "checking for working vfork... " >&6; }
  15355. if test "${ac_cv_func_vfork_works+set}" = set; then
  15356. $as_echo_n "(cached) " >&6
  15357. else
  15358. if test "$cross_compiling" = yes; then
  15359. ac_cv_func_vfork_works=cross
  15360. else
  15361. cat >conftest.$ac_ext <<_ACEOF
  15362. /* confdefs.h. */
  15363. _ACEOF
  15364. cat confdefs.h >>conftest.$ac_ext
  15365. cat >>conftest.$ac_ext <<_ACEOF
  15366. /* end confdefs.h. */
  15367. /* Thanks to Paul Eggert for this test. */
  15368. $ac_includes_default
  15369. #include <sys/wait.h>
  15370. #ifdef HAVE_VFORK_H
  15371. # include <vfork.h>
  15372. #endif
  15373. /* On some sparc systems, changes by the child to local and incoming
  15374. argument registers are propagated back to the parent. The compiler
  15375. is told about this with #include <vfork.h>, but some compilers
  15376. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  15377. static variable whose address is put into a register that is
  15378. clobbered by the vfork. */
  15379. static void
  15380. #ifdef __cplusplus
  15381. sparc_address_test (int arg)
  15382. # else
  15383. sparc_address_test (arg) int arg;
  15384. #endif
  15385. {
  15386. static pid_t child;
  15387. if (!child) {
  15388. child = vfork ();
  15389. if (child < 0) {
  15390. perror ("vfork");
  15391. _exit(2);
  15392. }
  15393. if (!child) {
  15394. arg = getpid();
  15395. write(-1, "", 0);
  15396. _exit (arg);
  15397. }
  15398. }
  15399. }
  15400. int
  15401. main ()
  15402. {
  15403. pid_t parent = getpid ();
  15404. pid_t child;
  15405. sparc_address_test (0);
  15406. child = vfork ();
  15407. if (child == 0) {
  15408. /* Here is another test for sparc vfork register problems. This
  15409. test uses lots of local variables, at least as many local
  15410. variables as main has allocated so far including compiler
  15411. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  15412. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  15413. reuse the register of parent for one of the local variables,
  15414. since it will think that parent can't possibly be used any more
  15415. in this routine. Assigning to the local variable will thus
  15416. munge parent in the parent process. */
  15417. pid_t
  15418. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  15419. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  15420. /* Convince the compiler that p..p7 are live; otherwise, it might
  15421. use the same hardware register for all 8 local variables. */
  15422. if (p != p1 || p != p2 || p != p3 || p != p4
  15423. || p != p5 || p != p6 || p != p7)
  15424. _exit(1);
  15425. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  15426. from child file descriptors. If the child closes a descriptor
  15427. before it execs or exits, this munges the parent's descriptor
  15428. as well. Test for this by closing stdout in the child. */
  15429. _exit(close(fileno(stdout)) != 0);
  15430. } else {
  15431. int status;
  15432. struct stat st;
  15433. while (wait(&status) != child)
  15434. ;
  15435. return (
  15436. /* Was there some problem with vforking? */
  15437. child < 0
  15438. /* Did the child fail? (This shouldn't happen.) */
  15439. || status
  15440. /* Did the vfork/compiler bug occur? */
  15441. || parent != getpid()
  15442. /* Did the file descriptor bug occur? */
  15443. || fstat(fileno(stdout), &st) != 0
  15444. );
  15445. }
  15446. }
  15447. _ACEOF
  15448. rm -f conftest$ac_exeext
  15449. if { (ac_try="$ac_link"
  15450. case "(($ac_try" in
  15451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15452. *) ac_try_echo=$ac_try;;
  15453. esac
  15454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15455. $as_echo "$ac_try_echo") >&5
  15456. (eval "$ac_link") 2>&5
  15457. ac_status=$?
  15458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15459. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  15467. ac_status=$?
  15468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15469. (exit $ac_status); }; }; then
  15470. ac_cv_func_vfork_works=yes
  15471. else
  15472. $as_echo "$as_me: program exited with status $ac_status" >&5
  15473. $as_echo "$as_me: failed program was:" >&5
  15474. sed 's/^/| /' conftest.$ac_ext >&5
  15475. ( exit $ac_status )
  15476. ac_cv_func_vfork_works=no
  15477. fi
  15478. rm -rf conftest.dSYM
  15479. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15480. fi
  15481. fi
  15482. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  15483. $as_echo "$ac_cv_func_vfork_works" >&6; }
  15484. fi;
  15485. if test "x$ac_cv_func_fork_works" = xcross; then
  15486. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15487. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  15488. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  15489. fi
  15490. if test "x$ac_cv_func_vfork_works" = xyes; then
  15491. cat >>confdefs.h <<\_ACEOF
  15492. #define HAVE_WORKING_VFORK 1
  15493. _ACEOF
  15494. else
  15495. cat >>confdefs.h <<\_ACEOF
  15496. #define vfork fork
  15497. _ACEOF
  15498. fi
  15499. if test "x$ac_cv_func_fork_works" = xyes; then
  15500. cat >>confdefs.h <<\_ACEOF
  15501. #define HAVE_WORKING_FORK 1
  15502. _ACEOF
  15503. PBX_WORKING_FORK=1
  15504. fi
  15505. { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  15506. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  15507. if test "${ac_cv_sys_largefile_source+set}" = set; then
  15508. $as_echo_n "(cached) " >&6
  15509. else
  15510. while :; do
  15511. cat >conftest.$ac_ext <<_ACEOF
  15512. /* confdefs.h. */
  15513. _ACEOF
  15514. cat confdefs.h >>conftest.$ac_ext
  15515. cat >>conftest.$ac_ext <<_ACEOF
  15516. /* end confdefs.h. */
  15517. #include <sys/types.h> /* for off_t */
  15518. #include <stdio.h>
  15519. int
  15520. main ()
  15521. {
  15522. int (*fp) (FILE *, off_t, int) = fseeko;
  15523. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15524. ;
  15525. return 0;
  15526. }
  15527. _ACEOF
  15528. rm -f conftest.$ac_objext conftest$ac_exeext
  15529. if { (ac_try="$ac_link"
  15530. case "(($ac_try" in
  15531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15532. *) ac_try_echo=$ac_try;;
  15533. esac
  15534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15535. $as_echo "$ac_try_echo") >&5
  15536. (eval "$ac_link") 2>conftest.er1
  15537. ac_status=$?
  15538. grep -v '^ *+' conftest.er1 >conftest.err
  15539. rm -f conftest.er1
  15540. cat conftest.err >&5
  15541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15542. (exit $ac_status); } && {
  15543. test -z "$ac_c_werror_flag" ||
  15544. test ! -s conftest.err
  15545. } && test -s conftest$ac_exeext && {
  15546. test "$cross_compiling" = yes ||
  15547. $as_test_x conftest$ac_exeext
  15548. }; then
  15549. ac_cv_sys_largefile_source=no; break
  15550. else
  15551. $as_echo "$as_me: failed program was:" >&5
  15552. sed 's/^/| /' conftest.$ac_ext >&5
  15553. fi
  15554. rm -rf conftest.dSYM
  15555. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15556. conftest$ac_exeext conftest.$ac_ext
  15557. cat >conftest.$ac_ext <<_ACEOF
  15558. /* confdefs.h. */
  15559. _ACEOF
  15560. cat confdefs.h >>conftest.$ac_ext
  15561. cat >>conftest.$ac_ext <<_ACEOF
  15562. /* end confdefs.h. */
  15563. #define _LARGEFILE_SOURCE 1
  15564. #include <sys/types.h> /* for off_t */
  15565. #include <stdio.h>
  15566. int
  15567. main ()
  15568. {
  15569. int (*fp) (FILE *, off_t, int) = fseeko;
  15570. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15571. ;
  15572. return 0;
  15573. }
  15574. _ACEOF
  15575. rm -f conftest.$ac_objext conftest$ac_exeext
  15576. if { (ac_try="$ac_link"
  15577. case "(($ac_try" in
  15578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15579. *) ac_try_echo=$ac_try;;
  15580. esac
  15581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15582. $as_echo "$ac_try_echo") >&5
  15583. (eval "$ac_link") 2>conftest.er1
  15584. ac_status=$?
  15585. grep -v '^ *+' conftest.er1 >conftest.err
  15586. rm -f conftest.er1
  15587. cat conftest.err >&5
  15588. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15589. (exit $ac_status); } && {
  15590. test -z "$ac_c_werror_flag" ||
  15591. test ! -s conftest.err
  15592. } && test -s conftest$ac_exeext && {
  15593. test "$cross_compiling" = yes ||
  15594. $as_test_x conftest$ac_exeext
  15595. }; then
  15596. ac_cv_sys_largefile_source=1; break
  15597. else
  15598. $as_echo "$as_me: failed program was:" >&5
  15599. sed 's/^/| /' conftest.$ac_ext >&5
  15600. fi
  15601. rm -rf conftest.dSYM
  15602. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15603. conftest$ac_exeext conftest.$ac_ext
  15604. ac_cv_sys_largefile_source=unknown
  15605. break
  15606. done
  15607. fi
  15608. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  15609. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  15610. case $ac_cv_sys_largefile_source in #(
  15611. no | unknown) ;;
  15612. *)
  15613. cat >>confdefs.h <<_ACEOF
  15614. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  15615. _ACEOF
  15616. ;;
  15617. esac
  15618. rm -rf conftest*
  15619. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  15620. # in glibc 2.1.3, but that breaks too many other things.
  15621. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  15622. if test $ac_cv_sys_largefile_source != unknown; then
  15623. cat >>confdefs.h <<\_ACEOF
  15624. #define HAVE_FSEEKO 1
  15625. _ACEOF
  15626. fi
  15627. if test $ac_cv_c_compiler_gnu = yes; then
  15628. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15629. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  15630. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15631. $as_echo_n "(cached) " >&6
  15632. else
  15633. ac_pattern="Autoconf.*'x'"
  15634. cat >conftest.$ac_ext <<_ACEOF
  15635. /* confdefs.h. */
  15636. _ACEOF
  15637. cat confdefs.h >>conftest.$ac_ext
  15638. cat >>conftest.$ac_ext <<_ACEOF
  15639. /* end confdefs.h. */
  15640. #include <sgtty.h>
  15641. Autoconf TIOCGETP
  15642. _ACEOF
  15643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15644. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15645. ac_cv_prog_gcc_traditional=yes
  15646. else
  15647. ac_cv_prog_gcc_traditional=no
  15648. fi
  15649. rm -f conftest*
  15650. if test $ac_cv_prog_gcc_traditional = no; then
  15651. cat >conftest.$ac_ext <<_ACEOF
  15652. /* confdefs.h. */
  15653. _ACEOF
  15654. cat confdefs.h >>conftest.$ac_ext
  15655. cat >>conftest.$ac_ext <<_ACEOF
  15656. /* end confdefs.h. */
  15657. #include <termio.h>
  15658. Autoconf TCGETA
  15659. _ACEOF
  15660. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15661. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15662. ac_cv_prog_gcc_traditional=yes
  15663. fi
  15664. rm -f conftest*
  15665. fi
  15666. fi
  15667. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15668. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  15669. if test $ac_cv_prog_gcc_traditional = yes; then
  15670. CC="$CC -traditional"
  15671. fi
  15672. fi
  15673. # XXX: these are commented out until we determine whether it matters if our malloc()
  15674. # acts exactly like glibc's or not
  15675. # AC_FUNC_MALLOC
  15676. # AC_FUNC_REALLOC
  15677. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  15678. $as_echo_n "checking for working memcmp... " >&6; }
  15679. if test "${ac_cv_func_memcmp_working+set}" = set; then
  15680. $as_echo_n "(cached) " >&6
  15681. else
  15682. if test "$cross_compiling" = yes; then
  15683. ac_cv_func_memcmp_working=no
  15684. else
  15685. cat >conftest.$ac_ext <<_ACEOF
  15686. /* confdefs.h. */
  15687. _ACEOF
  15688. cat confdefs.h >>conftest.$ac_ext
  15689. cat >>conftest.$ac_ext <<_ACEOF
  15690. /* end confdefs.h. */
  15691. $ac_includes_default
  15692. int
  15693. main ()
  15694. {
  15695. /* Some versions of memcmp are not 8-bit clean. */
  15696. char c0 = '\100', c1 = '\200', c2 = '\201';
  15697. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15698. return 1;
  15699. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15700. or more and with at least one buffer not starting on a 4-byte boundary.
  15701. William Lewis provided this test program. */
  15702. {
  15703. char foo[21];
  15704. char bar[21];
  15705. int i;
  15706. for (i = 0; i < 4; i++)
  15707. {
  15708. char *a = foo + i;
  15709. char *b = bar + i;
  15710. strcpy (a, "--------01111111");
  15711. strcpy (b, "--------10000000");
  15712. if (memcmp (a, b, 16) >= 0)
  15713. return 1;
  15714. }
  15715. return 0;
  15716. }
  15717. ;
  15718. return 0;
  15719. }
  15720. _ACEOF
  15721. rm -f conftest$ac_exeext
  15722. if { (ac_try="$ac_link"
  15723. case "(($ac_try" in
  15724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15725. *) ac_try_echo=$ac_try;;
  15726. esac
  15727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15728. $as_echo "$ac_try_echo") >&5
  15729. (eval "$ac_link") 2>&5
  15730. ac_status=$?
  15731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15732. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15733. { (case "(($ac_try" in
  15734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15735. *) ac_try_echo=$ac_try;;
  15736. esac
  15737. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15738. $as_echo "$ac_try_echo") >&5
  15739. (eval "$ac_try") 2>&5
  15740. ac_status=$?
  15741. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15742. (exit $ac_status); }; }; then
  15743. ac_cv_func_memcmp_working=yes
  15744. else
  15745. $as_echo "$as_me: program exited with status $ac_status" >&5
  15746. $as_echo "$as_me: failed program was:" >&5
  15747. sed 's/^/| /' conftest.$ac_ext >&5
  15748. ( exit $ac_status )
  15749. ac_cv_func_memcmp_working=no
  15750. fi
  15751. rm -rf conftest.dSYM
  15752. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15753. fi
  15754. fi
  15755. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  15756. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15757. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15758. *" memcmp.$ac_objext "* ) ;;
  15759. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15760. ;;
  15761. esac
  15762. for ac_header in stdlib.h unistd.h
  15763. do
  15764. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15765. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15766. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15767. $as_echo_n "checking for $ac_header... " >&6; }
  15768. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15769. $as_echo_n "(cached) " >&6
  15770. fi
  15771. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15772. $as_echo "$as_val"'`
  15773. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15774. $as_echo "$ac_res" >&6; }
  15775. else
  15776. # Is the header compilable?
  15777. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15778. $as_echo_n "checking $ac_header usability... " >&6; }
  15779. cat >conftest.$ac_ext <<_ACEOF
  15780. /* confdefs.h. */
  15781. _ACEOF
  15782. cat confdefs.h >>conftest.$ac_ext
  15783. cat >>conftest.$ac_ext <<_ACEOF
  15784. /* end confdefs.h. */
  15785. $ac_includes_default
  15786. #include <$ac_header>
  15787. _ACEOF
  15788. rm -f conftest.$ac_objext
  15789. if { (ac_try="$ac_compile"
  15790. case "(($ac_try" in
  15791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15792. *) ac_try_echo=$ac_try;;
  15793. esac
  15794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15795. $as_echo "$ac_try_echo") >&5
  15796. (eval "$ac_compile") 2>conftest.er1
  15797. ac_status=$?
  15798. grep -v '^ *+' conftest.er1 >conftest.err
  15799. rm -f conftest.er1
  15800. cat conftest.err >&5
  15801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15802. (exit $ac_status); } && {
  15803. test -z "$ac_c_werror_flag" ||
  15804. test ! -s conftest.err
  15805. } && test -s conftest.$ac_objext; then
  15806. ac_header_compiler=yes
  15807. else
  15808. $as_echo "$as_me: failed program was:" >&5
  15809. sed 's/^/| /' conftest.$ac_ext >&5
  15810. ac_header_compiler=no
  15811. fi
  15812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15813. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15814. $as_echo "$ac_header_compiler" >&6; }
  15815. # Is the header present?
  15816. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15817. $as_echo_n "checking $ac_header presence... " >&6; }
  15818. cat >conftest.$ac_ext <<_ACEOF
  15819. /* confdefs.h. */
  15820. _ACEOF
  15821. cat confdefs.h >>conftest.$ac_ext
  15822. cat >>conftest.$ac_ext <<_ACEOF
  15823. /* end confdefs.h. */
  15824. #include <$ac_header>
  15825. _ACEOF
  15826. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15827. case "(($ac_try" in
  15828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15829. *) ac_try_echo=$ac_try;;
  15830. esac
  15831. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15832. $as_echo "$ac_try_echo") >&5
  15833. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15834. ac_status=$?
  15835. grep -v '^ *+' conftest.er1 >conftest.err
  15836. rm -f conftest.er1
  15837. cat conftest.err >&5
  15838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15839. (exit $ac_status); } >/dev/null && {
  15840. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15841. test ! -s conftest.err
  15842. }; then
  15843. ac_header_preproc=yes
  15844. else
  15845. $as_echo "$as_me: failed program was:" >&5
  15846. sed 's/^/| /' conftest.$ac_ext >&5
  15847. ac_header_preproc=no
  15848. fi
  15849. rm -f conftest.err conftest.$ac_ext
  15850. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15851. $as_echo "$ac_header_preproc" >&6; }
  15852. # So? What about this header?
  15853. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15854. yes:no: )
  15855. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15856. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15857. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15858. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15859. ac_header_preproc=yes
  15860. ;;
  15861. no:yes:* )
  15862. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15863. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15864. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15865. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15866. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15867. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15868. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15869. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15870. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15871. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15872. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15873. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15874. ( cat <<\_ASBOX
  15875. ## ------------------------------------------ ##
  15876. ## Report this to https://issues.asterisk.org ##
  15877. ## ------------------------------------------ ##
  15878. _ASBOX
  15879. ) | sed "s/^/$as_me: WARNING: /" >&2
  15880. ;;
  15881. esac
  15882. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15883. $as_echo_n "checking for $ac_header... " >&6; }
  15884. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15885. $as_echo_n "(cached) " >&6
  15886. else
  15887. eval "$as_ac_Header=\$ac_header_preproc"
  15888. fi
  15889. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15890. $as_echo "$as_val"'`
  15891. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15892. $as_echo "$ac_res" >&6; }
  15893. fi
  15894. as_val=`eval 'as_val=${'$as_ac_Header'}
  15895. $as_echo "$as_val"'`
  15896. if test "x$as_val" = x""yes; then
  15897. cat >>confdefs.h <<_ACEOF
  15898. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15899. _ACEOF
  15900. fi
  15901. done
  15902. for ac_func in getpagesize
  15903. do
  15904. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15905. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15906. $as_echo_n "checking for $ac_func... " >&6; }
  15907. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15908. $as_echo_n "(cached) " >&6
  15909. else
  15910. cat >conftest.$ac_ext <<_ACEOF
  15911. /* confdefs.h. */
  15912. _ACEOF
  15913. cat confdefs.h >>conftest.$ac_ext
  15914. cat >>conftest.$ac_ext <<_ACEOF
  15915. /* end confdefs.h. */
  15916. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15917. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15918. #define $ac_func innocuous_$ac_func
  15919. /* System header to define __stub macros and hopefully few prototypes,
  15920. which can conflict with char $ac_func (); below.
  15921. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15922. <limits.h> exists even on freestanding compilers. */
  15923. #ifdef __STDC__
  15924. # include <limits.h>
  15925. #else
  15926. # include <assert.h>
  15927. #endif
  15928. #undef $ac_func
  15929. /* Override any GCC internal prototype to avoid an error.
  15930. Use char because int might match the return type of a GCC
  15931. builtin and then its argument prototype would still apply. */
  15932. #ifdef __cplusplus
  15933. extern "C"
  15934. #endif
  15935. char $ac_func ();
  15936. /* The GNU C library defines this for functions which it implements
  15937. to always fail with ENOSYS. Some functions are actually named
  15938. something starting with __ and the normal name is an alias. */
  15939. #if defined __stub_$ac_func || defined __stub___$ac_func
  15940. choke me
  15941. #endif
  15942. int
  15943. main ()
  15944. {
  15945. return $ac_func ();
  15946. ;
  15947. return 0;
  15948. }
  15949. _ACEOF
  15950. rm -f conftest.$ac_objext conftest$ac_exeext
  15951. if { (ac_try="$ac_link"
  15952. case "(($ac_try" in
  15953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15954. *) ac_try_echo=$ac_try;;
  15955. esac
  15956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15957. $as_echo "$ac_try_echo") >&5
  15958. (eval "$ac_link") 2>conftest.er1
  15959. ac_status=$?
  15960. grep -v '^ *+' conftest.er1 >conftest.err
  15961. rm -f conftest.er1
  15962. cat conftest.err >&5
  15963. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15964. (exit $ac_status); } && {
  15965. test -z "$ac_c_werror_flag" ||
  15966. test ! -s conftest.err
  15967. } && test -s conftest$ac_exeext && {
  15968. test "$cross_compiling" = yes ||
  15969. $as_test_x conftest$ac_exeext
  15970. }; then
  15971. eval "$as_ac_var=yes"
  15972. else
  15973. $as_echo "$as_me: failed program was:" >&5
  15974. sed 's/^/| /' conftest.$ac_ext >&5
  15975. eval "$as_ac_var=no"
  15976. fi
  15977. rm -rf conftest.dSYM
  15978. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15979. conftest$ac_exeext conftest.$ac_ext
  15980. fi
  15981. ac_res=`eval 'as_val=${'$as_ac_var'}
  15982. $as_echo "$as_val"'`
  15983. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15984. $as_echo "$ac_res" >&6; }
  15985. as_val=`eval 'as_val=${'$as_ac_var'}
  15986. $as_echo "$as_val"'`
  15987. if test "x$as_val" = x""yes; then
  15988. cat >>confdefs.h <<_ACEOF
  15989. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15990. _ACEOF
  15991. fi
  15992. done
  15993. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  15994. $as_echo_n "checking for working mmap... " >&6; }
  15995. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  15996. $as_echo_n "(cached) " >&6
  15997. else
  15998. if test "$cross_compiling" = yes; then
  15999. ac_cv_func_mmap_fixed_mapped=no
  16000. else
  16001. cat >conftest.$ac_ext <<_ACEOF
  16002. /* confdefs.h. */
  16003. _ACEOF
  16004. cat confdefs.h >>conftest.$ac_ext
  16005. cat >>conftest.$ac_ext <<_ACEOF
  16006. /* end confdefs.h. */
  16007. $ac_includes_default
  16008. /* malloc might have been renamed as rpl_malloc. */
  16009. #undef malloc
  16010. /* Thanks to Mike Haertel and Jim Avera for this test.
  16011. Here is a matrix of mmap possibilities:
  16012. mmap private not fixed
  16013. mmap private fixed at somewhere currently unmapped
  16014. mmap private fixed at somewhere already mapped
  16015. mmap shared not fixed
  16016. mmap shared fixed at somewhere currently unmapped
  16017. mmap shared fixed at somewhere already mapped
  16018. For private mappings, we should verify that changes cannot be read()
  16019. back from the file, nor mmap's back from the file at a different
  16020. address. (There have been systems where private was not correctly
  16021. implemented like the infamous i386 svr4.0, and systems where the
  16022. VM page cache was not coherent with the file system buffer cache
  16023. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16024. For shared mappings, we should conversely verify that changes get
  16025. propagated back to all the places they're supposed to be.
  16026. Grep wants private fixed already mapped.
  16027. The main things grep needs to know about mmap are:
  16028. * does it exist and is it safe to write into the mmap'd area
  16029. * how to use it (BSD variants) */
  16030. #include <fcntl.h>
  16031. #include <sys/mman.h>
  16032. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16033. char *malloc ();
  16034. #endif
  16035. /* This mess was copied from the GNU getpagesize.h. */
  16036. #ifndef HAVE_GETPAGESIZE
  16037. /* Assume that all systems that can run configure have sys/param.h. */
  16038. # ifndef HAVE_SYS_PARAM_H
  16039. # define HAVE_SYS_PARAM_H 1
  16040. # endif
  16041. # ifdef _SC_PAGESIZE
  16042. # define getpagesize() sysconf(_SC_PAGESIZE)
  16043. # else /* no _SC_PAGESIZE */
  16044. # ifdef HAVE_SYS_PARAM_H
  16045. # include <sys/param.h>
  16046. # ifdef EXEC_PAGESIZE
  16047. # define getpagesize() EXEC_PAGESIZE
  16048. # else /* no EXEC_PAGESIZE */
  16049. # ifdef NBPG
  16050. # define getpagesize() NBPG * CLSIZE
  16051. # ifndef CLSIZE
  16052. # define CLSIZE 1
  16053. # endif /* no CLSIZE */
  16054. # else /* no NBPG */
  16055. # ifdef NBPC
  16056. # define getpagesize() NBPC
  16057. # else /* no NBPC */
  16058. # ifdef PAGESIZE
  16059. # define getpagesize() PAGESIZE
  16060. # endif /* PAGESIZE */
  16061. # endif /* no NBPC */
  16062. # endif /* no NBPG */
  16063. # endif /* no EXEC_PAGESIZE */
  16064. # else /* no HAVE_SYS_PARAM_H */
  16065. # define getpagesize() 8192 /* punt totally */
  16066. # endif /* no HAVE_SYS_PARAM_H */
  16067. # endif /* no _SC_PAGESIZE */
  16068. #endif /* no HAVE_GETPAGESIZE */
  16069. int
  16070. main ()
  16071. {
  16072. char *data, *data2, *data3;
  16073. int i, pagesize;
  16074. int fd;
  16075. pagesize = getpagesize ();
  16076. /* First, make a file with some known garbage in it. */
  16077. data = (char *) malloc (pagesize);
  16078. if (!data)
  16079. return 1;
  16080. for (i = 0; i < pagesize; ++i)
  16081. *(data + i) = rand ();
  16082. umask (0);
  16083. fd = creat ("conftest.mmap", 0600);
  16084. if (fd < 0)
  16085. return 1;
  16086. if (write (fd, data, pagesize) != pagesize)
  16087. return 1;
  16088. close (fd);
  16089. /* Next, try to mmap the file at a fixed address which already has
  16090. something else allocated at it. If we can, also make sure that
  16091. we see the same garbage. */
  16092. fd = open ("conftest.mmap", O_RDWR);
  16093. if (fd < 0)
  16094. return 1;
  16095. data2 = (char *) malloc (2 * pagesize);
  16096. if (!data2)
  16097. return 1;
  16098. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16099. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16100. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16101. return 1;
  16102. for (i = 0; i < pagesize; ++i)
  16103. if (*(data + i) != *(data2 + i))
  16104. return 1;
  16105. /* Finally, make sure that changes to the mapped area do not
  16106. percolate back to the file as seen by read(). (This is a bug on
  16107. some variants of i386 svr4.0.) */
  16108. for (i = 0; i < pagesize; ++i)
  16109. *(data2 + i) = *(data2 + i) + 1;
  16110. data3 = (char *) malloc (pagesize);
  16111. if (!data3)
  16112. return 1;
  16113. if (read (fd, data3, pagesize) != pagesize)
  16114. return 1;
  16115. for (i = 0; i < pagesize; ++i)
  16116. if (*(data + i) != *(data3 + i))
  16117. return 1;
  16118. close (fd);
  16119. return 0;
  16120. }
  16121. _ACEOF
  16122. rm -f conftest$ac_exeext
  16123. if { (ac_try="$ac_link"
  16124. case "(($ac_try" in
  16125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16126. *) ac_try_echo=$ac_try;;
  16127. esac
  16128. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16129. $as_echo "$ac_try_echo") >&5
  16130. (eval "$ac_link") 2>&5
  16131. ac_status=$?
  16132. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16133. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16134. { (case "(($ac_try" in
  16135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16136. *) ac_try_echo=$ac_try;;
  16137. esac
  16138. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16139. $as_echo "$ac_try_echo") >&5
  16140. (eval "$ac_try") 2>&5
  16141. ac_status=$?
  16142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16143. (exit $ac_status); }; }; then
  16144. ac_cv_func_mmap_fixed_mapped=yes
  16145. else
  16146. $as_echo "$as_me: program exited with status $ac_status" >&5
  16147. $as_echo "$as_me: failed program was:" >&5
  16148. sed 's/^/| /' conftest.$ac_ext >&5
  16149. ( exit $ac_status )
  16150. ac_cv_func_mmap_fixed_mapped=no
  16151. fi
  16152. rm -rf conftest.dSYM
  16153. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16154. fi
  16155. fi
  16156. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16157. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  16158. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16159. cat >>confdefs.h <<\_ACEOF
  16160. #define HAVE_MMAP 1
  16161. _ACEOF
  16162. fi
  16163. rm -f conftest.mmap
  16164. for ac_header in sys/select.h sys/socket.h
  16165. do
  16166. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16167. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16168. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16169. $as_echo_n "checking for $ac_header... " >&6; }
  16170. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16171. $as_echo_n "(cached) " >&6
  16172. fi
  16173. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16174. $as_echo "$as_val"'`
  16175. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16176. $as_echo "$ac_res" >&6; }
  16177. else
  16178. # Is the header compilable?
  16179. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16180. $as_echo_n "checking $ac_header usability... " >&6; }
  16181. cat >conftest.$ac_ext <<_ACEOF
  16182. /* confdefs.h. */
  16183. _ACEOF
  16184. cat confdefs.h >>conftest.$ac_ext
  16185. cat >>conftest.$ac_ext <<_ACEOF
  16186. /* end confdefs.h. */
  16187. $ac_includes_default
  16188. #include <$ac_header>
  16189. _ACEOF
  16190. rm -f conftest.$ac_objext
  16191. if { (ac_try="$ac_compile"
  16192. case "(($ac_try" in
  16193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16194. *) ac_try_echo=$ac_try;;
  16195. esac
  16196. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16197. $as_echo "$ac_try_echo") >&5
  16198. (eval "$ac_compile") 2>conftest.er1
  16199. ac_status=$?
  16200. grep -v '^ *+' conftest.er1 >conftest.err
  16201. rm -f conftest.er1
  16202. cat conftest.err >&5
  16203. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16204. (exit $ac_status); } && {
  16205. test -z "$ac_c_werror_flag" ||
  16206. test ! -s conftest.err
  16207. } && test -s conftest.$ac_objext; then
  16208. ac_header_compiler=yes
  16209. else
  16210. $as_echo "$as_me: failed program was:" >&5
  16211. sed 's/^/| /' conftest.$ac_ext >&5
  16212. ac_header_compiler=no
  16213. fi
  16214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16215. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16216. $as_echo "$ac_header_compiler" >&6; }
  16217. # Is the header present?
  16218. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16219. $as_echo_n "checking $ac_header presence... " >&6; }
  16220. cat >conftest.$ac_ext <<_ACEOF
  16221. /* confdefs.h. */
  16222. _ACEOF
  16223. cat confdefs.h >>conftest.$ac_ext
  16224. cat >>conftest.$ac_ext <<_ACEOF
  16225. /* end confdefs.h. */
  16226. #include <$ac_header>
  16227. _ACEOF
  16228. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16229. case "(($ac_try" in
  16230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16231. *) ac_try_echo=$ac_try;;
  16232. esac
  16233. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16234. $as_echo "$ac_try_echo") >&5
  16235. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16236. ac_status=$?
  16237. grep -v '^ *+' conftest.er1 >conftest.err
  16238. rm -f conftest.er1
  16239. cat conftest.err >&5
  16240. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16241. (exit $ac_status); } >/dev/null && {
  16242. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16243. test ! -s conftest.err
  16244. }; then
  16245. ac_header_preproc=yes
  16246. else
  16247. $as_echo "$as_me: failed program was:" >&5
  16248. sed 's/^/| /' conftest.$ac_ext >&5
  16249. ac_header_preproc=no
  16250. fi
  16251. rm -f conftest.err conftest.$ac_ext
  16252. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16253. $as_echo "$ac_header_preproc" >&6; }
  16254. # So? What about this header?
  16255. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16256. yes:no: )
  16257. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16258. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16259. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16260. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16261. ac_header_preproc=yes
  16262. ;;
  16263. no:yes:* )
  16264. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16265. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16266. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16267. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16268. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16269. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16270. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16271. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16272. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16273. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16274. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16275. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16276. ( cat <<\_ASBOX
  16277. ## ------------------------------------------ ##
  16278. ## Report this to https://issues.asterisk.org ##
  16279. ## ------------------------------------------ ##
  16280. _ASBOX
  16281. ) | sed "s/^/$as_me: WARNING: /" >&2
  16282. ;;
  16283. esac
  16284. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16285. $as_echo_n "checking for $ac_header... " >&6; }
  16286. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16287. $as_echo_n "(cached) " >&6
  16288. else
  16289. eval "$as_ac_Header=\$ac_header_preproc"
  16290. fi
  16291. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16292. $as_echo "$as_val"'`
  16293. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16294. $as_echo "$ac_res" >&6; }
  16295. fi
  16296. as_val=`eval 'as_val=${'$as_ac_Header'}
  16297. $as_echo "$as_val"'`
  16298. if test "x$as_val" = x""yes; then
  16299. cat >>confdefs.h <<_ACEOF
  16300. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16301. _ACEOF
  16302. fi
  16303. done
  16304. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  16305. $as_echo_n "checking types of arguments for select... " >&6; }
  16306. if test "${ac_cv_func_select_args+set}" = set; then
  16307. $as_echo_n "(cached) " >&6
  16308. else
  16309. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  16310. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  16311. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  16312. cat >conftest.$ac_ext <<_ACEOF
  16313. /* confdefs.h. */
  16314. _ACEOF
  16315. cat confdefs.h >>conftest.$ac_ext
  16316. cat >>conftest.$ac_ext <<_ACEOF
  16317. /* end confdefs.h. */
  16318. $ac_includes_default
  16319. #ifdef HAVE_SYS_SELECT_H
  16320. # include <sys/select.h>
  16321. #endif
  16322. #ifdef HAVE_SYS_SOCKET_H
  16323. # include <sys/socket.h>
  16324. #endif
  16325. int
  16326. main ()
  16327. {
  16328. extern int select ($ac_arg1,
  16329. $ac_arg234, $ac_arg234, $ac_arg234,
  16330. $ac_arg5);
  16331. ;
  16332. return 0;
  16333. }
  16334. _ACEOF
  16335. rm -f conftest.$ac_objext
  16336. if { (ac_try="$ac_compile"
  16337. case "(($ac_try" in
  16338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16339. *) ac_try_echo=$ac_try;;
  16340. esac
  16341. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16342. $as_echo "$ac_try_echo") >&5
  16343. (eval "$ac_compile") 2>conftest.er1
  16344. ac_status=$?
  16345. grep -v '^ *+' conftest.er1 >conftest.err
  16346. rm -f conftest.er1
  16347. cat conftest.err >&5
  16348. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16349. (exit $ac_status); } && {
  16350. test -z "$ac_c_werror_flag" ||
  16351. test ! -s conftest.err
  16352. } && test -s conftest.$ac_objext; then
  16353. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  16354. else
  16355. $as_echo "$as_me: failed program was:" >&5
  16356. sed 's/^/| /' conftest.$ac_ext >&5
  16357. fi
  16358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16359. done
  16360. done
  16361. done
  16362. # Provide a safe default value.
  16363. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  16364. fi
  16365. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  16366. $as_echo "$ac_cv_func_select_args" >&6; }
  16367. ac_save_IFS=$IFS; IFS=','
  16368. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  16369. IFS=$ac_save_IFS
  16370. shift
  16371. cat >>confdefs.h <<_ACEOF
  16372. #define SELECT_TYPE_ARG1 $1
  16373. _ACEOF
  16374. cat >>confdefs.h <<_ACEOF
  16375. #define SELECT_TYPE_ARG234 ($2)
  16376. _ACEOF
  16377. cat >>confdefs.h <<_ACEOF
  16378. #define SELECT_TYPE_ARG5 ($3)
  16379. _ACEOF
  16380. rm -f conftest*
  16381. if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
  16382. $as_echo_n "(cached) " >&6
  16383. else
  16384. ac_cv_func_setvbuf_reversed=no
  16385. fi
  16386. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  16387. $as_echo_n "checking return type of signal handlers... " >&6; }
  16388. if test "${ac_cv_type_signal+set}" = set; then
  16389. $as_echo_n "(cached) " >&6
  16390. else
  16391. cat >conftest.$ac_ext <<_ACEOF
  16392. /* confdefs.h. */
  16393. _ACEOF
  16394. cat confdefs.h >>conftest.$ac_ext
  16395. cat >>conftest.$ac_ext <<_ACEOF
  16396. /* end confdefs.h. */
  16397. #include <sys/types.h>
  16398. #include <signal.h>
  16399. int
  16400. main ()
  16401. {
  16402. return *(signal (0, 0)) (0) == 1;
  16403. ;
  16404. return 0;
  16405. }
  16406. _ACEOF
  16407. rm -f conftest.$ac_objext
  16408. if { (ac_try="$ac_compile"
  16409. case "(($ac_try" in
  16410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16411. *) ac_try_echo=$ac_try;;
  16412. esac
  16413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16414. $as_echo "$ac_try_echo") >&5
  16415. (eval "$ac_compile") 2>conftest.er1
  16416. ac_status=$?
  16417. grep -v '^ *+' conftest.er1 >conftest.err
  16418. rm -f conftest.er1
  16419. cat conftest.err >&5
  16420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16421. (exit $ac_status); } && {
  16422. test -z "$ac_c_werror_flag" ||
  16423. test ! -s conftest.err
  16424. } && test -s conftest.$ac_objext; then
  16425. ac_cv_type_signal=int
  16426. else
  16427. $as_echo "$as_me: failed program was:" >&5
  16428. sed 's/^/| /' conftest.$ac_ext >&5
  16429. ac_cv_type_signal=void
  16430. fi
  16431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16432. fi
  16433. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  16434. $as_echo "$ac_cv_type_signal" >&6; }
  16435. cat >>confdefs.h <<_ACEOF
  16436. #define RETSIGTYPE $ac_cv_type_signal
  16437. _ACEOF
  16438. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  16439. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  16440. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  16441. $as_echo_n "(cached) " >&6
  16442. else
  16443. rm -f conftest.sym conftest.file
  16444. echo >conftest.file
  16445. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  16446. if test "$cross_compiling" = yes; then
  16447. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16448. else
  16449. cat >conftest.$ac_ext <<_ACEOF
  16450. /* confdefs.h. */
  16451. _ACEOF
  16452. cat confdefs.h >>conftest.$ac_ext
  16453. cat >>conftest.$ac_ext <<_ACEOF
  16454. /* end confdefs.h. */
  16455. $ac_includes_default
  16456. int
  16457. main ()
  16458. {
  16459. struct stat sbuf;
  16460. /* Linux will dereference the symlink and fail.
  16461. That is better in the sense that it means we will not
  16462. have to compile and use the lstat wrapper. */
  16463. return lstat ("conftest.sym/", &sbuf) == 0;
  16464. ;
  16465. return 0;
  16466. }
  16467. _ACEOF
  16468. rm -f conftest$ac_exeext
  16469. if { (ac_try="$ac_link"
  16470. case "(($ac_try" in
  16471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16472. *) ac_try_echo=$ac_try;;
  16473. esac
  16474. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16475. $as_echo "$ac_try_echo") >&5
  16476. (eval "$ac_link") 2>&5
  16477. ac_status=$?
  16478. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16479. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16480. { (case "(($ac_try" in
  16481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16482. *) ac_try_echo=$ac_try;;
  16483. esac
  16484. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16485. $as_echo "$ac_try_echo") >&5
  16486. (eval "$ac_try") 2>&5
  16487. ac_status=$?
  16488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16489. (exit $ac_status); }; }; then
  16490. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  16491. else
  16492. $as_echo "$as_me: program exited with status $ac_status" >&5
  16493. $as_echo "$as_me: failed program was:" >&5
  16494. sed 's/^/| /' conftest.$ac_ext >&5
  16495. ( exit $ac_status )
  16496. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16497. fi
  16498. rm -rf conftest.dSYM
  16499. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16500. fi
  16501. else
  16502. # If the `ln -s' command failed, then we probably don't even
  16503. # have an lstat function.
  16504. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16505. fi
  16506. rm -f conftest.sym conftest.file
  16507. fi
  16508. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  16509. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  16510. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  16511. cat >>confdefs.h <<_ACEOF
  16512. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  16513. _ACEOF
  16514. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  16515. case " $LIBOBJS " in
  16516. *" lstat.$ac_objext "* ) ;;
  16517. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  16518. ;;
  16519. esac
  16520. fi
  16521. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  16522. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  16523. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  16524. $as_echo_n "(cached) " >&6
  16525. else
  16526. if test "$cross_compiling" = yes; then
  16527. ac_cv_func_stat_empty_string_bug=yes
  16528. else
  16529. cat >conftest.$ac_ext <<_ACEOF
  16530. /* confdefs.h. */
  16531. _ACEOF
  16532. cat confdefs.h >>conftest.$ac_ext
  16533. cat >>conftest.$ac_ext <<_ACEOF
  16534. /* end confdefs.h. */
  16535. $ac_includes_default
  16536. int
  16537. main ()
  16538. {
  16539. struct stat sbuf;
  16540. return stat ("", &sbuf) == 0;
  16541. ;
  16542. return 0;
  16543. }
  16544. _ACEOF
  16545. rm -f conftest$ac_exeext
  16546. if { (ac_try="$ac_link"
  16547. case "(($ac_try" in
  16548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16549. *) ac_try_echo=$ac_try;;
  16550. esac
  16551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16552. $as_echo "$ac_try_echo") >&5
  16553. (eval "$ac_link") 2>&5
  16554. ac_status=$?
  16555. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16556. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16557. { (case "(($ac_try" in
  16558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16559. *) ac_try_echo=$ac_try;;
  16560. esac
  16561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16562. $as_echo "$ac_try_echo") >&5
  16563. (eval "$ac_try") 2>&5
  16564. ac_status=$?
  16565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16566. (exit $ac_status); }; }; then
  16567. ac_cv_func_stat_empty_string_bug=no
  16568. else
  16569. $as_echo "$as_me: program exited with status $ac_status" >&5
  16570. $as_echo "$as_me: failed program was:" >&5
  16571. sed 's/^/| /' conftest.$ac_ext >&5
  16572. ( exit $ac_status )
  16573. ac_cv_func_stat_empty_string_bug=yes
  16574. fi
  16575. rm -rf conftest.dSYM
  16576. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16577. fi
  16578. fi
  16579. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  16580. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  16581. if test $ac_cv_func_stat_empty_string_bug = yes; then
  16582. case " $LIBOBJS " in
  16583. *" stat.$ac_objext "* ) ;;
  16584. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  16585. ;;
  16586. esac
  16587. cat >>confdefs.h <<_ACEOF
  16588. #define HAVE_STAT_EMPTY_STRING_BUG 1
  16589. _ACEOF
  16590. fi
  16591. { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
  16592. $as_echo_n "checking for working strcoll... " >&6; }
  16593. if test "${ac_cv_func_strcoll_works+set}" = set; then
  16594. $as_echo_n "(cached) " >&6
  16595. else
  16596. if test "$cross_compiling" = yes; then
  16597. ac_cv_func_strcoll_works=no
  16598. else
  16599. cat >conftest.$ac_ext <<_ACEOF
  16600. /* confdefs.h. */
  16601. _ACEOF
  16602. cat confdefs.h >>conftest.$ac_ext
  16603. cat >>conftest.$ac_ext <<_ACEOF
  16604. /* end confdefs.h. */
  16605. $ac_includes_default
  16606. int
  16607. main ()
  16608. {
  16609. return (strcoll ("abc", "def") >= 0 ||
  16610. strcoll ("ABC", "DEF") >= 0 ||
  16611. strcoll ("123", "456") >= 0)
  16612. ;
  16613. return 0;
  16614. }
  16615. _ACEOF
  16616. rm -f conftest$ac_exeext
  16617. if { (ac_try="$ac_link"
  16618. case "(($ac_try" in
  16619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16620. *) ac_try_echo=$ac_try;;
  16621. esac
  16622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16623. $as_echo "$ac_try_echo") >&5
  16624. (eval "$ac_link") 2>&5
  16625. ac_status=$?
  16626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16627. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16628. { (case "(($ac_try" in
  16629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16630. *) ac_try_echo=$ac_try;;
  16631. esac
  16632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16633. $as_echo "$ac_try_echo") >&5
  16634. (eval "$ac_try") 2>&5
  16635. ac_status=$?
  16636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16637. (exit $ac_status); }; }; then
  16638. ac_cv_func_strcoll_works=yes
  16639. else
  16640. $as_echo "$as_me: program exited with status $ac_status" >&5
  16641. $as_echo "$as_me: failed program was:" >&5
  16642. sed 's/^/| /' conftest.$ac_ext >&5
  16643. ( exit $ac_status )
  16644. ac_cv_func_strcoll_works=no
  16645. fi
  16646. rm -rf conftest.dSYM
  16647. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16648. fi
  16649. fi
  16650. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
  16651. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  16652. if test $ac_cv_func_strcoll_works = yes; then
  16653. cat >>confdefs.h <<\_ACEOF
  16654. #define HAVE_STRCOLL 1
  16655. _ACEOF
  16656. fi
  16657. for ac_func in strftime
  16658. do
  16659. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16660. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16661. $as_echo_n "checking for $ac_func... " >&6; }
  16662. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16663. $as_echo_n "(cached) " >&6
  16664. else
  16665. cat >conftest.$ac_ext <<_ACEOF
  16666. /* confdefs.h. */
  16667. _ACEOF
  16668. cat confdefs.h >>conftest.$ac_ext
  16669. cat >>conftest.$ac_ext <<_ACEOF
  16670. /* end confdefs.h. */
  16671. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16672. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16673. #define $ac_func innocuous_$ac_func
  16674. /* System header to define __stub macros and hopefully few prototypes,
  16675. which can conflict with char $ac_func (); below.
  16676. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16677. <limits.h> exists even on freestanding compilers. */
  16678. #ifdef __STDC__
  16679. # include <limits.h>
  16680. #else
  16681. # include <assert.h>
  16682. #endif
  16683. #undef $ac_func
  16684. /* Override any GCC internal prototype to avoid an error.
  16685. Use char because int might match the return type of a GCC
  16686. builtin and then its argument prototype would still apply. */
  16687. #ifdef __cplusplus
  16688. extern "C"
  16689. #endif
  16690. char $ac_func ();
  16691. /* The GNU C library defines this for functions which it implements
  16692. to always fail with ENOSYS. Some functions are actually named
  16693. something starting with __ and the normal name is an alias. */
  16694. #if defined __stub_$ac_func || defined __stub___$ac_func
  16695. choke me
  16696. #endif
  16697. int
  16698. main ()
  16699. {
  16700. return $ac_func ();
  16701. ;
  16702. return 0;
  16703. }
  16704. _ACEOF
  16705. rm -f conftest.$ac_objext conftest$ac_exeext
  16706. if { (ac_try="$ac_link"
  16707. case "(($ac_try" in
  16708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16709. *) ac_try_echo=$ac_try;;
  16710. esac
  16711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16712. $as_echo "$ac_try_echo") >&5
  16713. (eval "$ac_link") 2>conftest.er1
  16714. ac_status=$?
  16715. grep -v '^ *+' conftest.er1 >conftest.err
  16716. rm -f conftest.er1
  16717. cat conftest.err >&5
  16718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16719. (exit $ac_status); } && {
  16720. test -z "$ac_c_werror_flag" ||
  16721. test ! -s conftest.err
  16722. } && test -s conftest$ac_exeext && {
  16723. test "$cross_compiling" = yes ||
  16724. $as_test_x conftest$ac_exeext
  16725. }; then
  16726. eval "$as_ac_var=yes"
  16727. else
  16728. $as_echo "$as_me: failed program was:" >&5
  16729. sed 's/^/| /' conftest.$ac_ext >&5
  16730. eval "$as_ac_var=no"
  16731. fi
  16732. rm -rf conftest.dSYM
  16733. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16734. conftest$ac_exeext conftest.$ac_ext
  16735. fi
  16736. ac_res=`eval 'as_val=${'$as_ac_var'}
  16737. $as_echo "$as_val"'`
  16738. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16739. $as_echo "$ac_res" >&6; }
  16740. as_val=`eval 'as_val=${'$as_ac_var'}
  16741. $as_echo "$as_val"'`
  16742. if test "x$as_val" = x""yes; then
  16743. cat >>confdefs.h <<_ACEOF
  16744. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16745. _ACEOF
  16746. else
  16747. # strftime is in -lintl on SCO UNIX.
  16748. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  16749. $as_echo_n "checking for strftime in -lintl... " >&6; }
  16750. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  16751. $as_echo_n "(cached) " >&6
  16752. else
  16753. ac_check_lib_save_LIBS=$LIBS
  16754. LIBS="-lintl $LIBS"
  16755. cat >conftest.$ac_ext <<_ACEOF
  16756. /* confdefs.h. */
  16757. _ACEOF
  16758. cat confdefs.h >>conftest.$ac_ext
  16759. cat >>conftest.$ac_ext <<_ACEOF
  16760. /* end confdefs.h. */
  16761. /* Override any GCC internal prototype to avoid an error.
  16762. Use char because int might match the return type of a GCC
  16763. builtin and then its argument prototype would still apply. */
  16764. #ifdef __cplusplus
  16765. extern "C"
  16766. #endif
  16767. char strftime ();
  16768. int
  16769. main ()
  16770. {
  16771. return strftime ();
  16772. ;
  16773. return 0;
  16774. }
  16775. _ACEOF
  16776. rm -f conftest.$ac_objext conftest$ac_exeext
  16777. if { (ac_try="$ac_link"
  16778. case "(($ac_try" in
  16779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16780. *) ac_try_echo=$ac_try;;
  16781. esac
  16782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16783. $as_echo "$ac_try_echo") >&5
  16784. (eval "$ac_link") 2>conftest.er1
  16785. ac_status=$?
  16786. grep -v '^ *+' conftest.er1 >conftest.err
  16787. rm -f conftest.er1
  16788. cat conftest.err >&5
  16789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16790. (exit $ac_status); } && {
  16791. test -z "$ac_c_werror_flag" ||
  16792. test ! -s conftest.err
  16793. } && test -s conftest$ac_exeext && {
  16794. test "$cross_compiling" = yes ||
  16795. $as_test_x conftest$ac_exeext
  16796. }; then
  16797. ac_cv_lib_intl_strftime=yes
  16798. else
  16799. $as_echo "$as_me: failed program was:" >&5
  16800. sed 's/^/| /' conftest.$ac_ext >&5
  16801. ac_cv_lib_intl_strftime=no
  16802. fi
  16803. rm -rf conftest.dSYM
  16804. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16805. conftest$ac_exeext conftest.$ac_ext
  16806. LIBS=$ac_check_lib_save_LIBS
  16807. fi
  16808. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  16809. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  16810. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  16811. cat >>confdefs.h <<\_ACEOF
  16812. #define HAVE_STRFTIME 1
  16813. _ACEOF
  16814. LIBS="-lintl $LIBS"
  16815. fi
  16816. fi
  16817. done
  16818. { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
  16819. $as_echo_n "checking for working strnlen... " >&6; }
  16820. if test "${ac_cv_func_strnlen_working+set}" = set; then
  16821. $as_echo_n "(cached) " >&6
  16822. else
  16823. if test "$cross_compiling" = yes; then
  16824. ac_cv_func_strnlen_working=no
  16825. else
  16826. cat >conftest.$ac_ext <<_ACEOF
  16827. /* confdefs.h. */
  16828. _ACEOF
  16829. cat confdefs.h >>conftest.$ac_ext
  16830. cat >>conftest.$ac_ext <<_ACEOF
  16831. /* end confdefs.h. */
  16832. $ac_includes_default
  16833. int
  16834. main ()
  16835. {
  16836. #define S "foobar"
  16837. #define S_LEN (sizeof S - 1)
  16838. /* At least one implementation is buggy: that of AIX 4.3 would
  16839. give strnlen (S, 1) == 3. */
  16840. int i;
  16841. for (i = 0; i < S_LEN + 1; ++i)
  16842. {
  16843. int expected = i <= S_LEN ? i : S_LEN;
  16844. if (strnlen (S, i) != expected)
  16845. return 1;
  16846. }
  16847. return 0;
  16848. ;
  16849. return 0;
  16850. }
  16851. _ACEOF
  16852. rm -f conftest$ac_exeext
  16853. if { (ac_try="$ac_link"
  16854. case "(($ac_try" in
  16855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16856. *) ac_try_echo=$ac_try;;
  16857. esac
  16858. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16859. $as_echo "$ac_try_echo") >&5
  16860. (eval "$ac_link") 2>&5
  16861. ac_status=$?
  16862. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16863. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16864. { (case "(($ac_try" in
  16865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16866. *) ac_try_echo=$ac_try;;
  16867. esac
  16868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16869. $as_echo "$ac_try_echo") >&5
  16870. (eval "$ac_try") 2>&5
  16871. ac_status=$?
  16872. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16873. (exit $ac_status); }; }; then
  16874. ac_cv_func_strnlen_working=yes
  16875. else
  16876. $as_echo "$as_me: program exited with status $ac_status" >&5
  16877. $as_echo "$as_me: failed program was:" >&5
  16878. sed 's/^/| /' conftest.$ac_ext >&5
  16879. ( exit $ac_status )
  16880. ac_cv_func_strnlen_working=no
  16881. fi
  16882. rm -rf conftest.dSYM
  16883. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16884. fi
  16885. fi
  16886. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
  16887. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  16888. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  16889. *" strnlen.$ac_objext "* ) ;;
  16890. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  16891. ;;
  16892. esac
  16893. { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
  16894. $as_echo_n "checking for working strtod... " >&6; }
  16895. if test "${ac_cv_func_strtod+set}" = set; then
  16896. $as_echo_n "(cached) " >&6
  16897. else
  16898. if test "$cross_compiling" = yes; then
  16899. ac_cv_func_strtod=no
  16900. else
  16901. cat >conftest.$ac_ext <<_ACEOF
  16902. /* confdefs.h. */
  16903. _ACEOF
  16904. cat confdefs.h >>conftest.$ac_ext
  16905. cat >>conftest.$ac_ext <<_ACEOF
  16906. /* end confdefs.h. */
  16907. $ac_includes_default
  16908. #ifndef strtod
  16909. double strtod ();
  16910. #endif
  16911. int
  16912. main()
  16913. {
  16914. {
  16915. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  16916. char *string = " +69";
  16917. char *term;
  16918. double value;
  16919. value = strtod (string, &term);
  16920. if (value != 69 || term != (string + 4))
  16921. return 1;
  16922. }
  16923. {
  16924. /* Under Solaris 2.4, strtod returns the wrong value for the
  16925. terminating character under some conditions. */
  16926. char *string = "NaN";
  16927. char *term;
  16928. strtod (string, &term);
  16929. if (term != string && *(term - 1) == 0)
  16930. return 1;
  16931. }
  16932. return 0;
  16933. }
  16934. _ACEOF
  16935. rm -f conftest$ac_exeext
  16936. if { (ac_try="$ac_link"
  16937. case "(($ac_try" in
  16938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16939. *) ac_try_echo=$ac_try;;
  16940. esac
  16941. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16942. $as_echo "$ac_try_echo") >&5
  16943. (eval "$ac_link") 2>&5
  16944. ac_status=$?
  16945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16946. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16947. { (case "(($ac_try" in
  16948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16949. *) ac_try_echo=$ac_try;;
  16950. esac
  16951. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16952. $as_echo "$ac_try_echo") >&5
  16953. (eval "$ac_try") 2>&5
  16954. ac_status=$?
  16955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16956. (exit $ac_status); }; }; then
  16957. ac_cv_func_strtod=yes
  16958. else
  16959. $as_echo "$as_me: program exited with status $ac_status" >&5
  16960. $as_echo "$as_me: failed program was:" >&5
  16961. sed 's/^/| /' conftest.$ac_ext >&5
  16962. ( exit $ac_status )
  16963. ac_cv_func_strtod=no
  16964. fi
  16965. rm -rf conftest.dSYM
  16966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16967. fi
  16968. fi
  16969. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
  16970. $as_echo "$ac_cv_func_strtod" >&6; }
  16971. if test $ac_cv_func_strtod = no; then
  16972. case " $LIBOBJS " in
  16973. *" strtod.$ac_objext "* ) ;;
  16974. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  16975. ;;
  16976. esac
  16977. { $as_echo "$as_me:$LINENO: checking for pow" >&5
  16978. $as_echo_n "checking for pow... " >&6; }
  16979. if test "${ac_cv_func_pow+set}" = set; then
  16980. $as_echo_n "(cached) " >&6
  16981. else
  16982. cat >conftest.$ac_ext <<_ACEOF
  16983. /* confdefs.h. */
  16984. _ACEOF
  16985. cat confdefs.h >>conftest.$ac_ext
  16986. cat >>conftest.$ac_ext <<_ACEOF
  16987. /* end confdefs.h. */
  16988. /* Define pow to an innocuous variant, in case <limits.h> declares pow.
  16989. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16990. #define pow innocuous_pow
  16991. /* System header to define __stub macros and hopefully few prototypes,
  16992. which can conflict with char pow (); below.
  16993. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16994. <limits.h> exists even on freestanding compilers. */
  16995. #ifdef __STDC__
  16996. # include <limits.h>
  16997. #else
  16998. # include <assert.h>
  16999. #endif
  17000. #undef pow
  17001. /* Override any GCC internal prototype to avoid an error.
  17002. Use char because int might match the return type of a GCC
  17003. builtin and then its argument prototype would still apply. */
  17004. #ifdef __cplusplus
  17005. extern "C"
  17006. #endif
  17007. char pow ();
  17008. /* The GNU C library defines this for functions which it implements
  17009. to always fail with ENOSYS. Some functions are actually named
  17010. something starting with __ and the normal name is an alias. */
  17011. #if defined __stub_pow || defined __stub___pow
  17012. choke me
  17013. #endif
  17014. int
  17015. main ()
  17016. {
  17017. return pow ();
  17018. ;
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. rm -f conftest.$ac_objext conftest$ac_exeext
  17023. if { (ac_try="$ac_link"
  17024. case "(($ac_try" in
  17025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17026. *) ac_try_echo=$ac_try;;
  17027. esac
  17028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17029. $as_echo "$ac_try_echo") >&5
  17030. (eval "$ac_link") 2>conftest.er1
  17031. ac_status=$?
  17032. grep -v '^ *+' conftest.er1 >conftest.err
  17033. rm -f conftest.er1
  17034. cat conftest.err >&5
  17035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17036. (exit $ac_status); } && {
  17037. test -z "$ac_c_werror_flag" ||
  17038. test ! -s conftest.err
  17039. } && test -s conftest$ac_exeext && {
  17040. test "$cross_compiling" = yes ||
  17041. $as_test_x conftest$ac_exeext
  17042. }; then
  17043. ac_cv_func_pow=yes
  17044. else
  17045. $as_echo "$as_me: failed program was:" >&5
  17046. sed 's/^/| /' conftest.$ac_ext >&5
  17047. ac_cv_func_pow=no
  17048. fi
  17049. rm -rf conftest.dSYM
  17050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17051. conftest$ac_exeext conftest.$ac_ext
  17052. fi
  17053. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
  17054. $as_echo "$ac_cv_func_pow" >&6; }
  17055. if test $ac_cv_func_pow = no; then
  17056. { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
  17057. $as_echo_n "checking for pow in -lm... " >&6; }
  17058. if test "${ac_cv_lib_m_pow+set}" = set; then
  17059. $as_echo_n "(cached) " >&6
  17060. else
  17061. ac_check_lib_save_LIBS=$LIBS
  17062. LIBS="-lm $LIBS"
  17063. cat >conftest.$ac_ext <<_ACEOF
  17064. /* confdefs.h. */
  17065. _ACEOF
  17066. cat confdefs.h >>conftest.$ac_ext
  17067. cat >>conftest.$ac_ext <<_ACEOF
  17068. /* end confdefs.h. */
  17069. /* Override any GCC internal prototype to avoid an error.
  17070. Use char because int might match the return type of a GCC
  17071. builtin and then its argument prototype would still apply. */
  17072. #ifdef __cplusplus
  17073. extern "C"
  17074. #endif
  17075. char pow ();
  17076. int
  17077. main ()
  17078. {
  17079. return pow ();
  17080. ;
  17081. return 0;
  17082. }
  17083. _ACEOF
  17084. rm -f conftest.$ac_objext conftest$ac_exeext
  17085. if { (ac_try="$ac_link"
  17086. case "(($ac_try" in
  17087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17088. *) ac_try_echo=$ac_try;;
  17089. esac
  17090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17091. $as_echo "$ac_try_echo") >&5
  17092. (eval "$ac_link") 2>conftest.er1
  17093. ac_status=$?
  17094. grep -v '^ *+' conftest.er1 >conftest.err
  17095. rm -f conftest.er1
  17096. cat conftest.err >&5
  17097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17098. (exit $ac_status); } && {
  17099. test -z "$ac_c_werror_flag" ||
  17100. test ! -s conftest.err
  17101. } && test -s conftest$ac_exeext && {
  17102. test "$cross_compiling" = yes ||
  17103. $as_test_x conftest$ac_exeext
  17104. }; then
  17105. ac_cv_lib_m_pow=yes
  17106. else
  17107. $as_echo "$as_me: failed program was:" >&5
  17108. sed 's/^/| /' conftest.$ac_ext >&5
  17109. ac_cv_lib_m_pow=no
  17110. fi
  17111. rm -rf conftest.dSYM
  17112. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17113. conftest$ac_exeext conftest.$ac_ext
  17114. LIBS=$ac_check_lib_save_LIBS
  17115. fi
  17116. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
  17117. $as_echo "$ac_cv_lib_m_pow" >&6; }
  17118. if test "x$ac_cv_lib_m_pow" = x""yes; then
  17119. POW_LIB=-lm
  17120. else
  17121. { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
  17122. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  17123. fi
  17124. fi
  17125. fi
  17126. for ac_header in $ac_header_list
  17127. do
  17128. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17129. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17130. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17131. $as_echo_n "checking for $ac_header... " >&6; }
  17132. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17133. $as_echo_n "(cached) " >&6
  17134. fi
  17135. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17136. $as_echo "$as_val"'`
  17137. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17138. $as_echo "$ac_res" >&6; }
  17139. else
  17140. # Is the header compilable?
  17141. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17142. $as_echo_n "checking $ac_header usability... " >&6; }
  17143. cat >conftest.$ac_ext <<_ACEOF
  17144. /* confdefs.h. */
  17145. _ACEOF
  17146. cat confdefs.h >>conftest.$ac_ext
  17147. cat >>conftest.$ac_ext <<_ACEOF
  17148. /* end confdefs.h. */
  17149. $ac_includes_default
  17150. #include <$ac_header>
  17151. _ACEOF
  17152. rm -f conftest.$ac_objext
  17153. if { (ac_try="$ac_compile"
  17154. case "(($ac_try" in
  17155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17156. *) ac_try_echo=$ac_try;;
  17157. esac
  17158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17159. $as_echo "$ac_try_echo") >&5
  17160. (eval "$ac_compile") 2>conftest.er1
  17161. ac_status=$?
  17162. grep -v '^ *+' conftest.er1 >conftest.err
  17163. rm -f conftest.er1
  17164. cat conftest.err >&5
  17165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17166. (exit $ac_status); } && {
  17167. test -z "$ac_c_werror_flag" ||
  17168. test ! -s conftest.err
  17169. } && test -s conftest.$ac_objext; then
  17170. ac_header_compiler=yes
  17171. else
  17172. $as_echo "$as_me: failed program was:" >&5
  17173. sed 's/^/| /' conftest.$ac_ext >&5
  17174. ac_header_compiler=no
  17175. fi
  17176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17177. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17178. $as_echo "$ac_header_compiler" >&6; }
  17179. # Is the header present?
  17180. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17181. $as_echo_n "checking $ac_header presence... " >&6; }
  17182. cat >conftest.$ac_ext <<_ACEOF
  17183. /* confdefs.h. */
  17184. _ACEOF
  17185. cat confdefs.h >>conftest.$ac_ext
  17186. cat >>conftest.$ac_ext <<_ACEOF
  17187. /* end confdefs.h. */
  17188. #include <$ac_header>
  17189. _ACEOF
  17190. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17191. case "(($ac_try" in
  17192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17193. *) ac_try_echo=$ac_try;;
  17194. esac
  17195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17196. $as_echo "$ac_try_echo") >&5
  17197. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17198. ac_status=$?
  17199. grep -v '^ *+' conftest.er1 >conftest.err
  17200. rm -f conftest.er1
  17201. cat conftest.err >&5
  17202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17203. (exit $ac_status); } >/dev/null && {
  17204. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17205. test ! -s conftest.err
  17206. }; then
  17207. ac_header_preproc=yes
  17208. else
  17209. $as_echo "$as_me: failed program was:" >&5
  17210. sed 's/^/| /' conftest.$ac_ext >&5
  17211. ac_header_preproc=no
  17212. fi
  17213. rm -f conftest.err conftest.$ac_ext
  17214. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17215. $as_echo "$ac_header_preproc" >&6; }
  17216. # So? What about this header?
  17217. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17218. yes:no: )
  17219. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17220. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17221. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17222. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17223. ac_header_preproc=yes
  17224. ;;
  17225. no:yes:* )
  17226. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17227. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17228. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17229. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17230. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17231. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17232. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17233. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17234. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17235. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17236. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17237. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17238. ( cat <<\_ASBOX
  17239. ## ------------------------------------------ ##
  17240. ## Report this to https://issues.asterisk.org ##
  17241. ## ------------------------------------------ ##
  17242. _ASBOX
  17243. ) | sed "s/^/$as_me: WARNING: /" >&2
  17244. ;;
  17245. esac
  17246. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17247. $as_echo_n "checking for $ac_header... " >&6; }
  17248. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17249. $as_echo_n "(cached) " >&6
  17250. else
  17251. eval "$as_ac_Header=\$ac_header_preproc"
  17252. fi
  17253. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17254. $as_echo "$as_val"'`
  17255. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17256. $as_echo "$ac_res" >&6; }
  17257. fi
  17258. as_val=`eval 'as_val=${'$as_ac_Header'}
  17259. $as_echo "$as_val"'`
  17260. if test "x$as_val" = x""yes; then
  17261. cat >>confdefs.h <<_ACEOF
  17262. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17263. _ACEOF
  17264. fi
  17265. done
  17266. { $as_echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
  17267. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  17268. if test "${ac_cv_func_utime_null+set}" = set; then
  17269. $as_echo_n "(cached) " >&6
  17270. else
  17271. rm -f conftest.data; >conftest.data
  17272. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  17273. if test "$cross_compiling" = yes; then
  17274. ac_cv_func_utime_null=no
  17275. else
  17276. cat >conftest.$ac_ext <<_ACEOF
  17277. /* confdefs.h. */
  17278. _ACEOF
  17279. cat confdefs.h >>conftest.$ac_ext
  17280. cat >>conftest.$ac_ext <<_ACEOF
  17281. /* end confdefs.h. */
  17282. $ac_includes_default
  17283. #ifdef HAVE_UTIME_H
  17284. # include <utime.h>
  17285. #endif
  17286. int
  17287. main ()
  17288. {
  17289. struct stat s, t;
  17290. return ! (stat ("conftest.data", &s) == 0
  17291. && utime ("conftest.data", 0) == 0
  17292. && stat ("conftest.data", &t) == 0
  17293. && t.st_mtime >= s.st_mtime
  17294. && t.st_mtime - s.st_mtime < 120);
  17295. ;
  17296. return 0;
  17297. }
  17298. _ACEOF
  17299. rm -f conftest$ac_exeext
  17300. if { (ac_try="$ac_link"
  17301. case "(($ac_try" in
  17302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17303. *) ac_try_echo=$ac_try;;
  17304. esac
  17305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17306. $as_echo "$ac_try_echo") >&5
  17307. (eval "$ac_link") 2>&5
  17308. ac_status=$?
  17309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17310. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17311. { (case "(($ac_try" in
  17312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17313. *) ac_try_echo=$ac_try;;
  17314. esac
  17315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17316. $as_echo "$ac_try_echo") >&5
  17317. (eval "$ac_try") 2>&5
  17318. ac_status=$?
  17319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17320. (exit $ac_status); }; }; then
  17321. ac_cv_func_utime_null=yes
  17322. else
  17323. $as_echo "$as_me: program exited with status $ac_status" >&5
  17324. $as_echo "$as_me: failed program was:" >&5
  17325. sed 's/^/| /' conftest.$ac_ext >&5
  17326. ( exit $ac_status )
  17327. ac_cv_func_utime_null=no
  17328. fi
  17329. rm -rf conftest.dSYM
  17330. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17331. fi
  17332. fi
  17333. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
  17334. $as_echo "$ac_cv_func_utime_null" >&6; }
  17335. if test $ac_cv_func_utime_null = yes; then
  17336. cat >>confdefs.h <<\_ACEOF
  17337. #define HAVE_UTIME_NULL 1
  17338. _ACEOF
  17339. fi
  17340. rm -f conftest.data
  17341. for ac_func in vprintf
  17342. do
  17343. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17344. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17345. $as_echo_n "checking for $ac_func... " >&6; }
  17346. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17347. $as_echo_n "(cached) " >&6
  17348. else
  17349. cat >conftest.$ac_ext <<_ACEOF
  17350. /* confdefs.h. */
  17351. _ACEOF
  17352. cat confdefs.h >>conftest.$ac_ext
  17353. cat >>conftest.$ac_ext <<_ACEOF
  17354. /* end confdefs.h. */
  17355. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17356. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17357. #define $ac_func innocuous_$ac_func
  17358. /* System header to define __stub macros and hopefully few prototypes,
  17359. which can conflict with char $ac_func (); below.
  17360. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17361. <limits.h> exists even on freestanding compilers. */
  17362. #ifdef __STDC__
  17363. # include <limits.h>
  17364. #else
  17365. # include <assert.h>
  17366. #endif
  17367. #undef $ac_func
  17368. /* Override any GCC internal prototype to avoid an error.
  17369. Use char because int might match the return type of a GCC
  17370. builtin and then its argument prototype would still apply. */
  17371. #ifdef __cplusplus
  17372. extern "C"
  17373. #endif
  17374. char $ac_func ();
  17375. /* The GNU C library defines this for functions which it implements
  17376. to always fail with ENOSYS. Some functions are actually named
  17377. something starting with __ and the normal name is an alias. */
  17378. #if defined __stub_$ac_func || defined __stub___$ac_func
  17379. choke me
  17380. #endif
  17381. int
  17382. main ()
  17383. {
  17384. return $ac_func ();
  17385. ;
  17386. return 0;
  17387. }
  17388. _ACEOF
  17389. rm -f conftest.$ac_objext conftest$ac_exeext
  17390. if { (ac_try="$ac_link"
  17391. case "(($ac_try" in
  17392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17393. *) ac_try_echo=$ac_try;;
  17394. esac
  17395. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17396. $as_echo "$ac_try_echo") >&5
  17397. (eval "$ac_link") 2>conftest.er1
  17398. ac_status=$?
  17399. grep -v '^ *+' conftest.er1 >conftest.err
  17400. rm -f conftest.er1
  17401. cat conftest.err >&5
  17402. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17403. (exit $ac_status); } && {
  17404. test -z "$ac_c_werror_flag" ||
  17405. test ! -s conftest.err
  17406. } && test -s conftest$ac_exeext && {
  17407. test "$cross_compiling" = yes ||
  17408. $as_test_x conftest$ac_exeext
  17409. }; then
  17410. eval "$as_ac_var=yes"
  17411. else
  17412. $as_echo "$as_me: failed program was:" >&5
  17413. sed 's/^/| /' conftest.$ac_ext >&5
  17414. eval "$as_ac_var=no"
  17415. fi
  17416. rm -rf conftest.dSYM
  17417. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17418. conftest$ac_exeext conftest.$ac_ext
  17419. fi
  17420. ac_res=`eval 'as_val=${'$as_ac_var'}
  17421. $as_echo "$as_val"'`
  17422. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17423. $as_echo "$ac_res" >&6; }
  17424. as_val=`eval 'as_val=${'$as_ac_var'}
  17425. $as_echo "$as_val"'`
  17426. if test "x$as_val" = x""yes; then
  17427. cat >>confdefs.h <<_ACEOF
  17428. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17429. _ACEOF
  17430. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  17431. $as_echo_n "checking for _doprnt... " >&6; }
  17432. if test "${ac_cv_func__doprnt+set}" = set; then
  17433. $as_echo_n "(cached) " >&6
  17434. else
  17435. cat >conftest.$ac_ext <<_ACEOF
  17436. /* confdefs.h. */
  17437. _ACEOF
  17438. cat confdefs.h >>conftest.$ac_ext
  17439. cat >>conftest.$ac_ext <<_ACEOF
  17440. /* end confdefs.h. */
  17441. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17442. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17443. #define _doprnt innocuous__doprnt
  17444. /* System header to define __stub macros and hopefully few prototypes,
  17445. which can conflict with char _doprnt (); below.
  17446. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17447. <limits.h> exists even on freestanding compilers. */
  17448. #ifdef __STDC__
  17449. # include <limits.h>
  17450. #else
  17451. # include <assert.h>
  17452. #endif
  17453. #undef _doprnt
  17454. /* Override any GCC internal prototype to avoid an error.
  17455. Use char because int might match the return type of a GCC
  17456. builtin and then its argument prototype would still apply. */
  17457. #ifdef __cplusplus
  17458. extern "C"
  17459. #endif
  17460. char _doprnt ();
  17461. /* The GNU C library defines this for functions which it implements
  17462. to always fail with ENOSYS. Some functions are actually named
  17463. something starting with __ and the normal name is an alias. */
  17464. #if defined __stub__doprnt || defined __stub____doprnt
  17465. choke me
  17466. #endif
  17467. int
  17468. main ()
  17469. {
  17470. return _doprnt ();
  17471. ;
  17472. return 0;
  17473. }
  17474. _ACEOF
  17475. rm -f conftest.$ac_objext conftest$ac_exeext
  17476. if { (ac_try="$ac_link"
  17477. case "(($ac_try" in
  17478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17479. *) ac_try_echo=$ac_try;;
  17480. esac
  17481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17482. $as_echo "$ac_try_echo") >&5
  17483. (eval "$ac_link") 2>conftest.er1
  17484. ac_status=$?
  17485. grep -v '^ *+' conftest.er1 >conftest.err
  17486. rm -f conftest.er1
  17487. cat conftest.err >&5
  17488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17489. (exit $ac_status); } && {
  17490. test -z "$ac_c_werror_flag" ||
  17491. test ! -s conftest.err
  17492. } && test -s conftest$ac_exeext && {
  17493. test "$cross_compiling" = yes ||
  17494. $as_test_x conftest$ac_exeext
  17495. }; then
  17496. ac_cv_func__doprnt=yes
  17497. else
  17498. $as_echo "$as_me: failed program was:" >&5
  17499. sed 's/^/| /' conftest.$ac_ext >&5
  17500. ac_cv_func__doprnt=no
  17501. fi
  17502. rm -rf conftest.dSYM
  17503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17504. conftest$ac_exeext conftest.$ac_ext
  17505. fi
  17506. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17507. $as_echo "$ac_cv_func__doprnt" >&6; }
  17508. if test "x$ac_cv_func__doprnt" = x""yes; then
  17509. cat >>confdefs.h <<\_ACEOF
  17510. #define HAVE_DOPRNT 1
  17511. _ACEOF
  17512. fi
  17513. fi
  17514. done
  17515. 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
  17516. do
  17517. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17518. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17519. $as_echo_n "checking for $ac_func... " >&6; }
  17520. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17521. $as_echo_n "(cached) " >&6
  17522. else
  17523. cat >conftest.$ac_ext <<_ACEOF
  17524. /* confdefs.h. */
  17525. _ACEOF
  17526. cat confdefs.h >>conftest.$ac_ext
  17527. cat >>conftest.$ac_ext <<_ACEOF
  17528. /* end confdefs.h. */
  17529. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17530. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17531. #define $ac_func innocuous_$ac_func
  17532. /* System header to define __stub macros and hopefully few prototypes,
  17533. which can conflict with char $ac_func (); below.
  17534. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17535. <limits.h> exists even on freestanding compilers. */
  17536. #ifdef __STDC__
  17537. # include <limits.h>
  17538. #else
  17539. # include <assert.h>
  17540. #endif
  17541. #undef $ac_func
  17542. /* Override any GCC internal prototype to avoid an error.
  17543. Use char because int might match the return type of a GCC
  17544. builtin and then its argument prototype would still apply. */
  17545. #ifdef __cplusplus
  17546. extern "C"
  17547. #endif
  17548. char $ac_func ();
  17549. /* The GNU C library defines this for functions which it implements
  17550. to always fail with ENOSYS. Some functions are actually named
  17551. something starting with __ and the normal name is an alias. */
  17552. #if defined __stub_$ac_func || defined __stub___$ac_func
  17553. choke me
  17554. #endif
  17555. int
  17556. main ()
  17557. {
  17558. return $ac_func ();
  17559. ;
  17560. return 0;
  17561. }
  17562. _ACEOF
  17563. rm -f conftest.$ac_objext conftest$ac_exeext
  17564. if { (ac_try="$ac_link"
  17565. case "(($ac_try" in
  17566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17567. *) ac_try_echo=$ac_try;;
  17568. esac
  17569. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17570. $as_echo "$ac_try_echo") >&5
  17571. (eval "$ac_link") 2>conftest.er1
  17572. ac_status=$?
  17573. grep -v '^ *+' conftest.er1 >conftest.err
  17574. rm -f conftest.er1
  17575. cat conftest.err >&5
  17576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17577. (exit $ac_status); } && {
  17578. test -z "$ac_c_werror_flag" ||
  17579. test ! -s conftest.err
  17580. } && test -s conftest$ac_exeext && {
  17581. test "$cross_compiling" = yes ||
  17582. $as_test_x conftest$ac_exeext
  17583. }; then
  17584. eval "$as_ac_var=yes"
  17585. else
  17586. $as_echo "$as_me: failed program was:" >&5
  17587. sed 's/^/| /' conftest.$ac_ext >&5
  17588. eval "$as_ac_var=no"
  17589. fi
  17590. rm -rf conftest.dSYM
  17591. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17592. conftest$ac_exeext conftest.$ac_ext
  17593. fi
  17594. ac_res=`eval 'as_val=${'$as_ac_var'}
  17595. $as_echo "$as_val"'`
  17596. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17597. $as_echo "$ac_res" >&6; }
  17598. as_val=`eval 'as_val=${'$as_ac_var'}
  17599. $as_echo "$as_val"'`
  17600. if test "x$as_val" = x""yes; then
  17601. cat >>confdefs.h <<_ACEOF
  17602. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17603. _ACEOF
  17604. fi
  17605. done
  17606. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  17607. # so that AC_CHECK_FUNCS can detect functions in that library.
  17608. { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
  17609. $as_echo_n "checking for sqrt in -lm... " >&6; }
  17610. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  17611. $as_echo_n "(cached) " >&6
  17612. else
  17613. ac_check_lib_save_LIBS=$LIBS
  17614. LIBS="-lm $LIBS"
  17615. cat >conftest.$ac_ext <<_ACEOF
  17616. /* confdefs.h. */
  17617. _ACEOF
  17618. cat confdefs.h >>conftest.$ac_ext
  17619. cat >>conftest.$ac_ext <<_ACEOF
  17620. /* end confdefs.h. */
  17621. /* Override any GCC internal prototype to avoid an error.
  17622. Use char because int might match the return type of a GCC
  17623. builtin and then its argument prototype would still apply. */
  17624. #ifdef __cplusplus
  17625. extern "C"
  17626. #endif
  17627. char sqrt ();
  17628. int
  17629. main ()
  17630. {
  17631. return sqrt ();
  17632. ;
  17633. return 0;
  17634. }
  17635. _ACEOF
  17636. rm -f conftest.$ac_objext conftest$ac_exeext
  17637. if { (ac_try="$ac_link"
  17638. case "(($ac_try" in
  17639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17640. *) ac_try_echo=$ac_try;;
  17641. esac
  17642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17643. $as_echo "$ac_try_echo") >&5
  17644. (eval "$ac_link") 2>conftest.er1
  17645. ac_status=$?
  17646. grep -v '^ *+' conftest.er1 >conftest.err
  17647. rm -f conftest.er1
  17648. cat conftest.err >&5
  17649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17650. (exit $ac_status); } && {
  17651. test -z "$ac_c_werror_flag" ||
  17652. test ! -s conftest.err
  17653. } && test -s conftest$ac_exeext && {
  17654. test "$cross_compiling" = yes ||
  17655. $as_test_x conftest$ac_exeext
  17656. }; then
  17657. ac_cv_lib_m_sqrt=yes
  17658. else
  17659. $as_echo "$as_me: failed program was:" >&5
  17660. sed 's/^/| /' conftest.$ac_ext >&5
  17661. ac_cv_lib_m_sqrt=no
  17662. fi
  17663. rm -rf conftest.dSYM
  17664. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17665. conftest$ac_exeext conftest.$ac_ext
  17666. LIBS=$ac_check_lib_save_LIBS
  17667. fi
  17668. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
  17669. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  17670. if test "x$ac_cv_lib_m_sqrt" = x""yes; then
  17671. cat >>confdefs.h <<_ACEOF
  17672. #define HAVE_LIBM 1
  17673. _ACEOF
  17674. LIBS="-lm $LIBS"
  17675. fi
  17676. # BSD might not have exp2, and/or log2
  17677. 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
  17678. do
  17679. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17680. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17681. $as_echo_n "checking for $ac_func... " >&6; }
  17682. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17683. $as_echo_n "(cached) " >&6
  17684. else
  17685. cat >conftest.$ac_ext <<_ACEOF
  17686. /* confdefs.h. */
  17687. _ACEOF
  17688. cat confdefs.h >>conftest.$ac_ext
  17689. cat >>conftest.$ac_ext <<_ACEOF
  17690. /* end confdefs.h. */
  17691. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17692. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17693. #define $ac_func innocuous_$ac_func
  17694. /* System header to define __stub macros and hopefully few prototypes,
  17695. which can conflict with char $ac_func (); below.
  17696. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17697. <limits.h> exists even on freestanding compilers. */
  17698. #ifdef __STDC__
  17699. # include <limits.h>
  17700. #else
  17701. # include <assert.h>
  17702. #endif
  17703. #undef $ac_func
  17704. /* Override any GCC internal prototype to avoid an error.
  17705. Use char because int might match the return type of a GCC
  17706. builtin and then its argument prototype would still apply. */
  17707. #ifdef __cplusplus
  17708. extern "C"
  17709. #endif
  17710. char $ac_func ();
  17711. /* The GNU C library defines this for functions which it implements
  17712. to always fail with ENOSYS. Some functions are actually named
  17713. something starting with __ and the normal name is an alias. */
  17714. #if defined __stub_$ac_func || defined __stub___$ac_func
  17715. choke me
  17716. #endif
  17717. int
  17718. main ()
  17719. {
  17720. return $ac_func ();
  17721. ;
  17722. return 0;
  17723. }
  17724. _ACEOF
  17725. rm -f conftest.$ac_objext conftest$ac_exeext
  17726. if { (ac_try="$ac_link"
  17727. case "(($ac_try" in
  17728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17729. *) ac_try_echo=$ac_try;;
  17730. esac
  17731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17732. $as_echo "$ac_try_echo") >&5
  17733. (eval "$ac_link") 2>conftest.er1
  17734. ac_status=$?
  17735. grep -v '^ *+' conftest.er1 >conftest.err
  17736. rm -f conftest.er1
  17737. cat conftest.err >&5
  17738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17739. (exit $ac_status); } && {
  17740. test -z "$ac_c_werror_flag" ||
  17741. test ! -s conftest.err
  17742. } && test -s conftest$ac_exeext && {
  17743. test "$cross_compiling" = yes ||
  17744. $as_test_x conftest$ac_exeext
  17745. }; then
  17746. eval "$as_ac_var=yes"
  17747. else
  17748. $as_echo "$as_me: failed program was:" >&5
  17749. sed 's/^/| /' conftest.$ac_ext >&5
  17750. eval "$as_ac_var=no"
  17751. fi
  17752. rm -rf conftest.dSYM
  17753. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17754. conftest$ac_exeext conftest.$ac_ext
  17755. fi
  17756. ac_res=`eval 'as_val=${'$as_ac_var'}
  17757. $as_echo "$as_val"'`
  17758. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17759. $as_echo "$ac_res" >&6; }
  17760. as_val=`eval 'as_val=${'$as_ac_var'}
  17761. $as_echo "$as_val"'`
  17762. if test "x$as_val" = x""yes; then
  17763. cat >>confdefs.h <<_ACEOF
  17764. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17765. _ACEOF
  17766. fi
  17767. done
  17768. # Certain architectures don't really have long double, even though
  17769. # AC_CHECK_FUNCS would otherwise find the following functions.
  17770. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  17771. 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
  17772. do
  17773. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17774. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17775. $as_echo_n "checking for $ac_func... " >&6; }
  17776. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17777. $as_echo_n "(cached) " >&6
  17778. else
  17779. cat >conftest.$ac_ext <<_ACEOF
  17780. /* confdefs.h. */
  17781. _ACEOF
  17782. cat confdefs.h >>conftest.$ac_ext
  17783. cat >>conftest.$ac_ext <<_ACEOF
  17784. /* end confdefs.h. */
  17785. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17787. #define $ac_func innocuous_$ac_func
  17788. /* System header to define __stub macros and hopefully few prototypes,
  17789. which can conflict with char $ac_func (); below.
  17790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17791. <limits.h> exists even on freestanding compilers. */
  17792. #ifdef __STDC__
  17793. # include <limits.h>
  17794. #else
  17795. # include <assert.h>
  17796. #endif
  17797. #undef $ac_func
  17798. /* Override any GCC internal prototype to avoid an error.
  17799. Use char because int might match the return type of a GCC
  17800. builtin and then its argument prototype would still apply. */
  17801. #ifdef __cplusplus
  17802. extern "C"
  17803. #endif
  17804. char $ac_func ();
  17805. /* The GNU C library defines this for functions which it implements
  17806. to always fail with ENOSYS. Some functions are actually named
  17807. something starting with __ and the normal name is an alias. */
  17808. #if defined __stub_$ac_func || defined __stub___$ac_func
  17809. choke me
  17810. #endif
  17811. int
  17812. main ()
  17813. {
  17814. return $ac_func ();
  17815. ;
  17816. return 0;
  17817. }
  17818. _ACEOF
  17819. rm -f conftest.$ac_objext conftest$ac_exeext
  17820. if { (ac_try="$ac_link"
  17821. case "(($ac_try" in
  17822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17823. *) ac_try_echo=$ac_try;;
  17824. esac
  17825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17826. $as_echo "$ac_try_echo") >&5
  17827. (eval "$ac_link") 2>conftest.er1
  17828. ac_status=$?
  17829. grep -v '^ *+' conftest.er1 >conftest.err
  17830. rm -f conftest.er1
  17831. cat conftest.err >&5
  17832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17833. (exit $ac_status); } && {
  17834. test -z "$ac_c_werror_flag" ||
  17835. test ! -s conftest.err
  17836. } && test -s conftest$ac_exeext && {
  17837. test "$cross_compiling" = yes ||
  17838. $as_test_x conftest$ac_exeext
  17839. }; then
  17840. eval "$as_ac_var=yes"
  17841. else
  17842. $as_echo "$as_me: failed program was:" >&5
  17843. sed 's/^/| /' conftest.$ac_ext >&5
  17844. eval "$as_ac_var=no"
  17845. fi
  17846. rm -rf conftest.dSYM
  17847. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17848. conftest$ac_exeext conftest.$ac_ext
  17849. fi
  17850. ac_res=`eval 'as_val=${'$as_ac_var'}
  17851. $as_echo "$as_val"'`
  17852. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17853. $as_echo "$ac_res" >&6; }
  17854. as_val=`eval 'as_val=${'$as_ac_var'}
  17855. $as_echo "$as_val"'`
  17856. if test "x$as_val" = x""yes; then
  17857. cat >>confdefs.h <<_ACEOF
  17858. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17859. _ACEOF
  17860. fi
  17861. done
  17862. fi
  17863. { $as_echo "$as_me:$LINENO: checking for LLONG_MAX in limits.h" >&5
  17864. $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
  17865. cat >conftest.$ac_ext <<_ACEOF
  17866. /* confdefs.h. */
  17867. _ACEOF
  17868. cat confdefs.h >>conftest.$ac_ext
  17869. cat >>conftest.$ac_ext <<_ACEOF
  17870. /* end confdefs.h. */
  17871. #include <limits.h>
  17872. int
  17873. main ()
  17874. {
  17875. long long foo = LLONG_MAX
  17876. ;
  17877. return 0;
  17878. }
  17879. _ACEOF
  17880. rm -f conftest.$ac_objext conftest$ac_exeext
  17881. if { (ac_try="$ac_link"
  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_link") 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); } && {
  17895. test -z "$ac_c_werror_flag" ||
  17896. test ! -s conftest.err
  17897. } && test -s conftest$ac_exeext && {
  17898. test "$cross_compiling" = yes ||
  17899. $as_test_x conftest$ac_exeext
  17900. }; then
  17901. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17902. $as_echo "yes" >&6; }
  17903. cat >>confdefs.h <<\_ACEOF
  17904. #define HAVE_LLONG_MAX 1
  17905. _ACEOF
  17906. else
  17907. $as_echo "$as_me: failed program was:" >&5
  17908. sed 's/^/| /' conftest.$ac_ext >&5
  17909. { $as_echo "$as_me:$LINENO: result: no" >&5
  17910. $as_echo "no" >&6; }
  17911. fi
  17912. rm -rf conftest.dSYM
  17913. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17914. conftest$ac_exeext conftest.$ac_ext
  17915. { $as_echo "$as_me:$LINENO: checking for timersub in time.h" >&5
  17916. $as_echo_n "checking for timersub in time.h... " >&6; }
  17917. cat >conftest.$ac_ext <<_ACEOF
  17918. /* confdefs.h. */
  17919. _ACEOF
  17920. cat confdefs.h >>conftest.$ac_ext
  17921. cat >>conftest.$ac_ext <<_ACEOF
  17922. /* end confdefs.h. */
  17923. #include <sys/time.h>
  17924. int
  17925. main ()
  17926. {
  17927. struct timeval *a; timersub(a, a, a);
  17928. ;
  17929. return 0;
  17930. }
  17931. _ACEOF
  17932. rm -f conftest.$ac_objext conftest$ac_exeext
  17933. if { (ac_try="$ac_link"
  17934. case "(($ac_try" in
  17935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17936. *) ac_try_echo=$ac_try;;
  17937. esac
  17938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17939. $as_echo "$ac_try_echo") >&5
  17940. (eval "$ac_link") 2>conftest.er1
  17941. ac_status=$?
  17942. grep -v '^ *+' conftest.er1 >conftest.err
  17943. rm -f conftest.er1
  17944. cat conftest.err >&5
  17945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17946. (exit $ac_status); } && {
  17947. test -z "$ac_c_werror_flag" ||
  17948. test ! -s conftest.err
  17949. } && test -s conftest$ac_exeext && {
  17950. test "$cross_compiling" = yes ||
  17951. $as_test_x conftest$ac_exeext
  17952. }; then
  17953. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17954. $as_echo "yes" >&6; }
  17955. cat >>confdefs.h <<\_ACEOF
  17956. #define HAVE_TIMERSUB 1
  17957. _ACEOF
  17958. else
  17959. $as_echo "$as_me: failed program was:" >&5
  17960. sed 's/^/| /' conftest.$ac_ext >&5
  17961. { $as_echo "$as_me:$LINENO: result: no" >&5
  17962. $as_echo "no" >&6; }
  17963. fi
  17964. rm -rf conftest.dSYM
  17965. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17966. conftest$ac_exeext conftest.$ac_ext
  17967. { $as_echo "$as_me:$LINENO: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  17968. $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  17969. old_LDFLAGS=${LDFLAGS}
  17970. cat >conftest.dynamics <<_ACEOF
  17971. {
  17972. *ast_*;
  17973. };
  17974. _ACEOF
  17975. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  17976. PBX_DYNAMIC_LIST=0
  17977. cat >conftest.$ac_ext <<_ACEOF
  17978. /* confdefs.h. */
  17979. _ACEOF
  17980. cat confdefs.h >>conftest.$ac_ext
  17981. cat >>conftest.$ac_ext <<_ACEOF
  17982. /* end confdefs.h. */
  17983. int
  17984. main ()
  17985. {
  17986. ;
  17987. return 0;
  17988. }
  17989. _ACEOF
  17990. rm -f conftest.$ac_objext conftest$ac_exeext
  17991. if { (ac_try="$ac_link"
  17992. case "(($ac_try" in
  17993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17994. *) ac_try_echo=$ac_try;;
  17995. esac
  17996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17997. $as_echo "$ac_try_echo") >&5
  17998. (eval "$ac_link") 2>conftest.er1
  17999. ac_status=$?
  18000. grep -v '^ *+' conftest.er1 >conftest.err
  18001. rm -f conftest.er1
  18002. cat conftest.err >&5
  18003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18004. (exit $ac_status); } && {
  18005. test -z "$ac_c_werror_flag" ||
  18006. test ! -s conftest.err
  18007. } && test -s conftest$ac_exeext && {
  18008. test "$cross_compiling" = yes ||
  18009. $as_test_x conftest$ac_exeext
  18010. }; then
  18011. PBX_DYNAMIC_LIST=1
  18012. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18013. $as_echo "yes" >&6; }
  18014. else
  18015. $as_echo "$as_me: failed program was:" >&5
  18016. sed 's/^/| /' conftest.$ac_ext >&5
  18017. { $as_echo "$as_me:$LINENO: result: no" >&5
  18018. $as_echo "no" >&6; }
  18019. fi
  18020. rm -rf conftest.dSYM
  18021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18022. conftest$ac_exeext conftest.$ac_ext
  18023. LDFLAGS=${old_LDFLAGS}
  18024. rm -f conftest.dynamics
  18025. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  18026. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  18027. $as_echo_n "checking for sys/poll.h... " >&6; }
  18028. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  18029. $as_echo_n "(cached) " >&6
  18030. fi
  18031. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  18032. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  18033. else
  18034. # Is the header compilable?
  18035. { $as_echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
  18036. $as_echo_n "checking sys/poll.h usability... " >&6; }
  18037. cat >conftest.$ac_ext <<_ACEOF
  18038. /* confdefs.h. */
  18039. _ACEOF
  18040. cat confdefs.h >>conftest.$ac_ext
  18041. cat >>conftest.$ac_ext <<_ACEOF
  18042. /* end confdefs.h. */
  18043. $ac_includes_default
  18044. #include <sys/poll.h>
  18045. _ACEOF
  18046. rm -f conftest.$ac_objext
  18047. if { (ac_try="$ac_compile"
  18048. case "(($ac_try" in
  18049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18050. *) ac_try_echo=$ac_try;;
  18051. esac
  18052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18053. $as_echo "$ac_try_echo") >&5
  18054. (eval "$ac_compile") 2>conftest.er1
  18055. ac_status=$?
  18056. grep -v '^ *+' conftest.er1 >conftest.err
  18057. rm -f conftest.er1
  18058. cat conftest.err >&5
  18059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18060. (exit $ac_status); } && {
  18061. test -z "$ac_c_werror_flag" ||
  18062. test ! -s conftest.err
  18063. } && test -s conftest.$ac_objext; then
  18064. ac_header_compiler=yes
  18065. else
  18066. $as_echo "$as_me: failed program was:" >&5
  18067. sed 's/^/| /' conftest.$ac_ext >&5
  18068. ac_header_compiler=no
  18069. fi
  18070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18071. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18072. $as_echo "$ac_header_compiler" >&6; }
  18073. # Is the header present?
  18074. { $as_echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
  18075. $as_echo_n "checking sys/poll.h presence... " >&6; }
  18076. cat >conftest.$ac_ext <<_ACEOF
  18077. /* confdefs.h. */
  18078. _ACEOF
  18079. cat confdefs.h >>conftest.$ac_ext
  18080. cat >>conftest.$ac_ext <<_ACEOF
  18081. /* end confdefs.h. */
  18082. #include <sys/poll.h>
  18083. _ACEOF
  18084. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18085. case "(($ac_try" in
  18086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18087. *) ac_try_echo=$ac_try;;
  18088. esac
  18089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18090. $as_echo "$ac_try_echo") >&5
  18091. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18092. ac_status=$?
  18093. grep -v '^ *+' conftest.er1 >conftest.err
  18094. rm -f conftest.er1
  18095. cat conftest.err >&5
  18096. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18097. (exit $ac_status); } >/dev/null && {
  18098. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18099. test ! -s conftest.err
  18100. }; then
  18101. ac_header_preproc=yes
  18102. else
  18103. $as_echo "$as_me: failed program was:" >&5
  18104. sed 's/^/| /' conftest.$ac_ext >&5
  18105. ac_header_preproc=no
  18106. fi
  18107. rm -f conftest.err conftest.$ac_ext
  18108. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18109. $as_echo "$ac_header_preproc" >&6; }
  18110. # So? What about this header?
  18111. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18112. yes:no: )
  18113. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18114. $as_echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18115. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
  18116. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
  18117. ac_header_preproc=yes
  18118. ;;
  18119. no:yes:* )
  18120. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
  18121. $as_echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
  18122. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
  18123. $as_echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
  18124. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
  18125. $as_echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
  18126. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
  18127. $as_echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18128. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
  18129. $as_echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
  18130. { $as_echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
  18131. $as_echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
  18132. ( cat <<\_ASBOX
  18133. ## ------------------------------------------ ##
  18134. ## Report this to https://issues.asterisk.org ##
  18135. ## ------------------------------------------ ##
  18136. _ASBOX
  18137. ) | sed "s/^/$as_me: WARNING: /" >&2
  18138. ;;
  18139. esac
  18140. { $as_echo "$as_me:$LINENO: checking for sys/poll.h" >&5
  18141. $as_echo_n "checking for sys/poll.h... " >&6; }
  18142. if test "${ac_cv_header_sys_poll_h+set}" = set; then
  18143. $as_echo_n "(cached) " >&6
  18144. else
  18145. ac_cv_header_sys_poll_h=$ac_header_preproc
  18146. fi
  18147. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
  18148. $as_echo "$ac_cv_header_sys_poll_h" >&6; }
  18149. fi
  18150. if test "x$ac_cv_header_sys_poll_h" = x""yes; then
  18151. HAS_POLL=1
  18152. cat >>confdefs.h <<\_ACEOF
  18153. #define HAVE_SYS_POLL_H 1
  18154. _ACEOF
  18155. fi
  18156. # Check whether --enable-internal-poll was given.
  18157. if test "${enable_internal_poll+set}" = set; then
  18158. enableval=$enable_internal_poll; case "${enableval}" in
  18159. y|ye|yes) HAS_POLL="";;
  18160. n|no) HAS_POLL="${HAS_POLL}" ;;
  18161. *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-internal-poll" >&5
  18162. $as_echo "$as_me: error: bad value ${enableval} for --enable-internal-poll" >&2;}
  18163. { (exit 1); exit 1; }; } ;;
  18164. esac
  18165. fi
  18166. # https support (in main/http.c) uses funopen on BSD systems,
  18167. # fopencookie on linux
  18168. for ac_func in funopen fopencookie
  18169. do
  18170. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18171. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18172. $as_echo_n "checking for $ac_func... " >&6; }
  18173. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18174. $as_echo_n "(cached) " >&6
  18175. else
  18176. cat >conftest.$ac_ext <<_ACEOF
  18177. /* confdefs.h. */
  18178. _ACEOF
  18179. cat confdefs.h >>conftest.$ac_ext
  18180. cat >>conftest.$ac_ext <<_ACEOF
  18181. /* end confdefs.h. */
  18182. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18183. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18184. #define $ac_func innocuous_$ac_func
  18185. /* System header to define __stub macros and hopefully few prototypes,
  18186. which can conflict with char $ac_func (); below.
  18187. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18188. <limits.h> exists even on freestanding compilers. */
  18189. #ifdef __STDC__
  18190. # include <limits.h>
  18191. #else
  18192. # include <assert.h>
  18193. #endif
  18194. #undef $ac_func
  18195. /* Override any GCC internal prototype to avoid an error.
  18196. Use char because int might match the return type of a GCC
  18197. builtin and then its argument prototype would still apply. */
  18198. #ifdef __cplusplus
  18199. extern "C"
  18200. #endif
  18201. char $ac_func ();
  18202. /* The GNU C library defines this for functions which it implements
  18203. to always fail with ENOSYS. Some functions are actually named
  18204. something starting with __ and the normal name is an alias. */
  18205. #if defined __stub_$ac_func || defined __stub___$ac_func
  18206. choke me
  18207. #endif
  18208. int
  18209. main ()
  18210. {
  18211. return $ac_func ();
  18212. ;
  18213. return 0;
  18214. }
  18215. _ACEOF
  18216. rm -f conftest.$ac_objext conftest$ac_exeext
  18217. if { (ac_try="$ac_link"
  18218. case "(($ac_try" in
  18219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18220. *) ac_try_echo=$ac_try;;
  18221. esac
  18222. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18223. $as_echo "$ac_try_echo") >&5
  18224. (eval "$ac_link") 2>conftest.er1
  18225. ac_status=$?
  18226. grep -v '^ *+' conftest.er1 >conftest.err
  18227. rm -f conftest.er1
  18228. cat conftest.err >&5
  18229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18230. (exit $ac_status); } && {
  18231. test -z "$ac_c_werror_flag" ||
  18232. test ! -s conftest.err
  18233. } && test -s conftest$ac_exeext && {
  18234. test "$cross_compiling" = yes ||
  18235. $as_test_x conftest$ac_exeext
  18236. }; then
  18237. eval "$as_ac_var=yes"
  18238. else
  18239. $as_echo "$as_me: failed program was:" >&5
  18240. sed 's/^/| /' conftest.$ac_ext >&5
  18241. eval "$as_ac_var=no"
  18242. fi
  18243. rm -rf conftest.dSYM
  18244. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18245. conftest$ac_exeext conftest.$ac_ext
  18246. fi
  18247. ac_res=`eval 'as_val=${'$as_ac_var'}
  18248. $as_echo "$as_val"'`
  18249. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18250. $as_echo "$ac_res" >&6; }
  18251. as_val=`eval 'as_val=${'$as_ac_var'}
  18252. $as_echo "$as_val"'`
  18253. if test "x$as_val" = x""yes; then
  18254. cat >>confdefs.h <<_ACEOF
  18255. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18256. _ACEOF
  18257. fi
  18258. done
  18259. for ac_func in inet_aton
  18260. do
  18261. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18262. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18263. $as_echo_n "checking for $ac_func... " >&6; }
  18264. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18265. $as_echo_n "(cached) " >&6
  18266. else
  18267. cat >conftest.$ac_ext <<_ACEOF
  18268. /* confdefs.h. */
  18269. _ACEOF
  18270. cat confdefs.h >>conftest.$ac_ext
  18271. cat >>conftest.$ac_ext <<_ACEOF
  18272. /* end confdefs.h. */
  18273. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18274. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18275. #define $ac_func innocuous_$ac_func
  18276. /* System header to define __stub macros and hopefully few prototypes,
  18277. which can conflict with char $ac_func (); below.
  18278. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18279. <limits.h> exists even on freestanding compilers. */
  18280. #ifdef __STDC__
  18281. # include <limits.h>
  18282. #else
  18283. # include <assert.h>
  18284. #endif
  18285. #undef $ac_func
  18286. /* Override any GCC internal prototype to avoid an error.
  18287. Use char because int might match the return type of a GCC
  18288. builtin and then its argument prototype would still apply. */
  18289. #ifdef __cplusplus
  18290. extern "C"
  18291. #endif
  18292. char $ac_func ();
  18293. /* The GNU C library defines this for functions which it implements
  18294. to always fail with ENOSYS. Some functions are actually named
  18295. something starting with __ and the normal name is an alias. */
  18296. #if defined __stub_$ac_func || defined __stub___$ac_func
  18297. choke me
  18298. #endif
  18299. int
  18300. main ()
  18301. {
  18302. return $ac_func ();
  18303. ;
  18304. return 0;
  18305. }
  18306. _ACEOF
  18307. rm -f conftest.$ac_objext conftest$ac_exeext
  18308. if { (ac_try="$ac_link"
  18309. case "(($ac_try" in
  18310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18311. *) ac_try_echo=$ac_try;;
  18312. esac
  18313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18314. $as_echo "$ac_try_echo") >&5
  18315. (eval "$ac_link") 2>conftest.er1
  18316. ac_status=$?
  18317. grep -v '^ *+' conftest.er1 >conftest.err
  18318. rm -f conftest.er1
  18319. cat conftest.err >&5
  18320. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18321. (exit $ac_status); } && {
  18322. test -z "$ac_c_werror_flag" ||
  18323. test ! -s conftest.err
  18324. } && test -s conftest$ac_exeext && {
  18325. test "$cross_compiling" = yes ||
  18326. $as_test_x conftest$ac_exeext
  18327. }; then
  18328. eval "$as_ac_var=yes"
  18329. else
  18330. $as_echo "$as_me: failed program was:" >&5
  18331. sed 's/^/| /' conftest.$ac_ext >&5
  18332. eval "$as_ac_var=no"
  18333. fi
  18334. rm -rf conftest.dSYM
  18335. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18336. conftest$ac_exeext conftest.$ac_ext
  18337. fi
  18338. ac_res=`eval 'as_val=${'$as_ac_var'}
  18339. $as_echo "$as_val"'`
  18340. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18341. $as_echo "$ac_res" >&6; }
  18342. as_val=`eval 'as_val=${'$as_ac_var'}
  18343. $as_echo "$as_val"'`
  18344. if test "x$as_val" = x""yes; then
  18345. cat >>confdefs.h <<_ACEOF
  18346. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18347. _ACEOF
  18348. fi
  18349. done
  18350. # check if we have IP_PKTINFO constant defined
  18351. { $as_echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
  18352. $as_echo_n "checking for IP_PKTINFO... " >&6; }
  18353. cat >conftest.$ac_ext <<_ACEOF
  18354. /* confdefs.h. */
  18355. _ACEOF
  18356. cat confdefs.h >>conftest.$ac_ext
  18357. cat >>conftest.$ac_ext <<_ACEOF
  18358. /* end confdefs.h. */
  18359. #include <netinet/in.h>
  18360. int
  18361. main ()
  18362. {
  18363. int pi = IP_PKTINFO;
  18364. ;
  18365. return 0;
  18366. }
  18367. _ACEOF
  18368. rm -f conftest.$ac_objext conftest$ac_exeext
  18369. if { (ac_try="$ac_link"
  18370. case "(($ac_try" in
  18371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18372. *) ac_try_echo=$ac_try;;
  18373. esac
  18374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18375. $as_echo "$ac_try_echo") >&5
  18376. (eval "$ac_link") 2>conftest.er1
  18377. ac_status=$?
  18378. grep -v '^ *+' conftest.er1 >conftest.err
  18379. rm -f conftest.er1
  18380. cat conftest.err >&5
  18381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18382. (exit $ac_status); } && {
  18383. test -z "$ac_c_werror_flag" ||
  18384. test ! -s conftest.err
  18385. } && test -s conftest$ac_exeext && {
  18386. test "$cross_compiling" = yes ||
  18387. $as_test_x conftest$ac_exeext
  18388. }; then
  18389. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18390. $as_echo "yes" >&6; }
  18391. cat >>confdefs.h <<\_ACEOF
  18392. #define HAVE_PKTINFO 1
  18393. _ACEOF
  18394. else
  18395. $as_echo "$as_me: failed program was:" >&5
  18396. sed 's/^/| /' conftest.$ac_ext >&5
  18397. { $as_echo "$as_me:$LINENO: result: no" >&5
  18398. $as_echo "no" >&6; }
  18399. fi
  18400. rm -rf conftest.dSYM
  18401. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18402. conftest$ac_exeext conftest.$ac_ext
  18403. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  18404. { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
  18405. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  18406. if test "${ac_cv_search_gethostbyname_r+set}" = set; then
  18407. $as_echo_n "(cached) " >&6
  18408. else
  18409. ac_func_search_save_LIBS=$LIBS
  18410. cat >conftest.$ac_ext <<_ACEOF
  18411. /* confdefs.h. */
  18412. _ACEOF
  18413. cat confdefs.h >>conftest.$ac_ext
  18414. cat >>conftest.$ac_ext <<_ACEOF
  18415. /* end confdefs.h. */
  18416. /* Override any GCC internal prototype to avoid an error.
  18417. Use char because int might match the return type of a GCC
  18418. builtin and then its argument prototype would still apply. */
  18419. #ifdef __cplusplus
  18420. extern "C"
  18421. #endif
  18422. char gethostbyname_r ();
  18423. int
  18424. main ()
  18425. {
  18426. return gethostbyname_r ();
  18427. ;
  18428. return 0;
  18429. }
  18430. _ACEOF
  18431. for ac_lib in '' socket nsl; do
  18432. if test -z "$ac_lib"; then
  18433. ac_res="none required"
  18434. else
  18435. ac_res=-l$ac_lib
  18436. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18437. fi
  18438. rm -f conftest.$ac_objext conftest$ac_exeext
  18439. if { (ac_try="$ac_link"
  18440. case "(($ac_try" in
  18441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18442. *) ac_try_echo=$ac_try;;
  18443. esac
  18444. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18445. $as_echo "$ac_try_echo") >&5
  18446. (eval "$ac_link") 2>conftest.er1
  18447. ac_status=$?
  18448. grep -v '^ *+' conftest.er1 >conftest.err
  18449. rm -f conftest.er1
  18450. cat conftest.err >&5
  18451. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18452. (exit $ac_status); } && {
  18453. test -z "$ac_c_werror_flag" ||
  18454. test ! -s conftest.err
  18455. } && test -s conftest$ac_exeext && {
  18456. test "$cross_compiling" = yes ||
  18457. $as_test_x conftest$ac_exeext
  18458. }; then
  18459. ac_cv_search_gethostbyname_r=$ac_res
  18460. else
  18461. $as_echo "$as_me: failed program was:" >&5
  18462. sed 's/^/| /' conftest.$ac_ext >&5
  18463. fi
  18464. rm -rf conftest.dSYM
  18465. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18466. conftest$ac_exeext
  18467. if test "${ac_cv_search_gethostbyname_r+set}" = set; then
  18468. break
  18469. fi
  18470. done
  18471. if test "${ac_cv_search_gethostbyname_r+set}" = set; then
  18472. :
  18473. else
  18474. ac_cv_search_gethostbyname_r=no
  18475. fi
  18476. rm conftest.$ac_ext
  18477. LIBS=$ac_func_search_save_LIBS
  18478. fi
  18479. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
  18480. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  18481. ac_res=$ac_cv_search_gethostbyname_r
  18482. if test "$ac_res" != no; then
  18483. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18484. fi
  18485. { $as_echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
  18486. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  18487. cat >conftest.$ac_ext <<_ACEOF
  18488. /* confdefs.h. */
  18489. _ACEOF
  18490. cat confdefs.h >>conftest.$ac_ext
  18491. cat >>conftest.$ac_ext <<_ACEOF
  18492. /* end confdefs.h. */
  18493. #include <stdlib.h>
  18494. #include <netdb.h>
  18495. int
  18496. main ()
  18497. {
  18498. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  18499. ;
  18500. return 0;
  18501. }
  18502. _ACEOF
  18503. rm -f conftest.$ac_objext conftest$ac_exeext
  18504. if { (ac_try="$ac_link"
  18505. case "(($ac_try" in
  18506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18507. *) ac_try_echo=$ac_try;;
  18508. esac
  18509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18510. $as_echo "$ac_try_echo") >&5
  18511. (eval "$ac_link") 2>conftest.er1
  18512. ac_status=$?
  18513. grep -v '^ *+' conftest.er1 >conftest.err
  18514. rm -f conftest.er1
  18515. cat conftest.err >&5
  18516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18517. (exit $ac_status); } && {
  18518. test -z "$ac_c_werror_flag" ||
  18519. test ! -s conftest.err
  18520. } && test -s conftest$ac_exeext && {
  18521. test "$cross_compiling" = yes ||
  18522. $as_test_x conftest$ac_exeext
  18523. }; then
  18524. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18525. $as_echo "yes" >&6; }
  18526. cat >>confdefs.h <<\_ACEOF
  18527. #define HAVE_GETHOSTBYNAME_R_6 1
  18528. _ACEOF
  18529. else
  18530. $as_echo "$as_me: failed program was:" >&5
  18531. sed 's/^/| /' conftest.$ac_ext >&5
  18532. { $as_echo "$as_me:$LINENO: result: no" >&5
  18533. $as_echo "no" >&6; }
  18534. fi
  18535. rm -rf conftest.dSYM
  18536. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18537. conftest$ac_exeext conftest.$ac_ext
  18538. { $as_echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
  18539. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  18540. cat >conftest.$ac_ext <<_ACEOF
  18541. /* confdefs.h. */
  18542. _ACEOF
  18543. cat confdefs.h >>conftest.$ac_ext
  18544. cat >>conftest.$ac_ext <<_ACEOF
  18545. /* end confdefs.h. */
  18546. #include <stdlib.h>
  18547. #include <netdb.h>
  18548. int
  18549. main ()
  18550. {
  18551. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  18552. ;
  18553. return 0;
  18554. }
  18555. _ACEOF
  18556. rm -f conftest.$ac_objext conftest$ac_exeext
  18557. if { (ac_try="$ac_link"
  18558. case "(($ac_try" in
  18559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18560. *) ac_try_echo=$ac_try;;
  18561. esac
  18562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18563. $as_echo "$ac_try_echo") >&5
  18564. (eval "$ac_link") 2>conftest.er1
  18565. ac_status=$?
  18566. grep -v '^ *+' conftest.er1 >conftest.err
  18567. rm -f conftest.er1
  18568. cat conftest.err >&5
  18569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18570. (exit $ac_status); } && {
  18571. test -z "$ac_c_werror_flag" ||
  18572. test ! -s conftest.err
  18573. } && test -s conftest$ac_exeext && {
  18574. test "$cross_compiling" = yes ||
  18575. $as_test_x conftest$ac_exeext
  18576. }; then
  18577. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18578. $as_echo "yes" >&6; }
  18579. cat >>confdefs.h <<\_ACEOF
  18580. #define HAVE_GETHOSTBYNAME_R_5 1
  18581. _ACEOF
  18582. else
  18583. $as_echo "$as_me: failed program was:" >&5
  18584. sed 's/^/| /' conftest.$ac_ext >&5
  18585. { $as_echo "$as_me:$LINENO: result: no" >&5
  18586. $as_echo "no" >&6; }
  18587. fi
  18588. rm -rf conftest.dSYM
  18589. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18590. conftest$ac_exeext conftest.$ac_ext
  18591. if test "${ac_cv_header_byteswap_h+set}" = set; then
  18592. { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
  18593. $as_echo_n "checking for byteswap.h... " >&6; }
  18594. if test "${ac_cv_header_byteswap_h+set}" = set; then
  18595. $as_echo_n "(cached) " >&6
  18596. fi
  18597. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
  18598. $as_echo "$ac_cv_header_byteswap_h" >&6; }
  18599. else
  18600. # Is the header compilable?
  18601. { $as_echo "$as_me:$LINENO: checking byteswap.h usability" >&5
  18602. $as_echo_n "checking byteswap.h usability... " >&6; }
  18603. cat >conftest.$ac_ext <<_ACEOF
  18604. /* confdefs.h. */
  18605. _ACEOF
  18606. cat confdefs.h >>conftest.$ac_ext
  18607. cat >>conftest.$ac_ext <<_ACEOF
  18608. /* end confdefs.h. */
  18609. $ac_includes_default
  18610. #include <byteswap.h>
  18611. _ACEOF
  18612. rm -f conftest.$ac_objext
  18613. if { (ac_try="$ac_compile"
  18614. case "(($ac_try" in
  18615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18616. *) ac_try_echo=$ac_try;;
  18617. esac
  18618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18619. $as_echo "$ac_try_echo") >&5
  18620. (eval "$ac_compile") 2>conftest.er1
  18621. ac_status=$?
  18622. grep -v '^ *+' conftest.er1 >conftest.err
  18623. rm -f conftest.er1
  18624. cat conftest.err >&5
  18625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18626. (exit $ac_status); } && {
  18627. test -z "$ac_c_werror_flag" ||
  18628. test ! -s conftest.err
  18629. } && test -s conftest.$ac_objext; then
  18630. ac_header_compiler=yes
  18631. else
  18632. $as_echo "$as_me: failed program was:" >&5
  18633. sed 's/^/| /' conftest.$ac_ext >&5
  18634. ac_header_compiler=no
  18635. fi
  18636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18637. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18638. $as_echo "$ac_header_compiler" >&6; }
  18639. # Is the header present?
  18640. { $as_echo "$as_me:$LINENO: checking byteswap.h presence" >&5
  18641. $as_echo_n "checking byteswap.h presence... " >&6; }
  18642. cat >conftest.$ac_ext <<_ACEOF
  18643. /* confdefs.h. */
  18644. _ACEOF
  18645. cat confdefs.h >>conftest.$ac_ext
  18646. cat >>conftest.$ac_ext <<_ACEOF
  18647. /* end confdefs.h. */
  18648. #include <byteswap.h>
  18649. _ACEOF
  18650. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18651. case "(($ac_try" in
  18652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18653. *) ac_try_echo=$ac_try;;
  18654. esac
  18655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18656. $as_echo "$ac_try_echo") >&5
  18657. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18658. ac_status=$?
  18659. grep -v '^ *+' conftest.er1 >conftest.err
  18660. rm -f conftest.er1
  18661. cat conftest.err >&5
  18662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18663. (exit $ac_status); } >/dev/null && {
  18664. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18665. test ! -s conftest.err
  18666. }; then
  18667. ac_header_preproc=yes
  18668. else
  18669. $as_echo "$as_me: failed program was:" >&5
  18670. sed 's/^/| /' conftest.$ac_ext >&5
  18671. ac_header_preproc=no
  18672. fi
  18673. rm -f conftest.err conftest.$ac_ext
  18674. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18675. $as_echo "$ac_header_preproc" >&6; }
  18676. # So? What about this header?
  18677. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18678. yes:no: )
  18679. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18680. $as_echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18681. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
  18682. $as_echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
  18683. ac_header_preproc=yes
  18684. ;;
  18685. no:yes:* )
  18686. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
  18687. $as_echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
  18688. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
  18689. $as_echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
  18690. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
  18691. $as_echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
  18692. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
  18693. $as_echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18694. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
  18695. $as_echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
  18696. { $as_echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
  18697. $as_echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
  18698. ( cat <<\_ASBOX
  18699. ## ------------------------------------------ ##
  18700. ## Report this to https://issues.asterisk.org ##
  18701. ## ------------------------------------------ ##
  18702. _ASBOX
  18703. ) | sed "s/^/$as_me: WARNING: /" >&2
  18704. ;;
  18705. esac
  18706. { $as_echo "$as_me:$LINENO: checking for byteswap.h" >&5
  18707. $as_echo_n "checking for byteswap.h... " >&6; }
  18708. if test "${ac_cv_header_byteswap_h+set}" = set; then
  18709. $as_echo_n "(cached) " >&6
  18710. else
  18711. ac_cv_header_byteswap_h=$ac_header_preproc
  18712. fi
  18713. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
  18714. $as_echo "$ac_cv_header_byteswap_h" >&6; }
  18715. fi
  18716. if test "x$ac_cv_header_byteswap_h" = x""yes; then
  18717. cat >>confdefs.h <<_ACEOF
  18718. #define HAVE_BYTESWAP_H 1
  18719. _ACEOF
  18720. fi
  18721. { $as_echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  18722. $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&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. #include <sys/endian.h>
  18730. int
  18731. main ()
  18732. {
  18733. int a = 1; int b = __swap16(a);
  18734. ;
  18735. return 0;
  18736. }
  18737. _ACEOF
  18738. rm -f conftest.$ac_objext conftest$ac_exeext
  18739. if { (ac_try="$ac_link"
  18740. case "(($ac_try" in
  18741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18742. *) ac_try_echo=$ac_try;;
  18743. esac
  18744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18745. $as_echo "$ac_try_echo") >&5
  18746. (eval "$ac_link") 2>conftest.er1
  18747. ac_status=$?
  18748. grep -v '^ *+' conftest.er1 >conftest.err
  18749. rm -f conftest.er1
  18750. cat conftest.err >&5
  18751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18752. (exit $ac_status); } && {
  18753. test -z "$ac_c_werror_flag" ||
  18754. test ! -s conftest.err
  18755. } && test -s conftest$ac_exeext && {
  18756. test "$cross_compiling" = yes ||
  18757. $as_test_x conftest$ac_exeext
  18758. }; then
  18759. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18760. $as_echo "yes" >&6; }
  18761. cat >>confdefs.h <<\_ACEOF
  18762. #define HAVE_SYS_ENDIAN_SWAP16 1
  18763. _ACEOF
  18764. else
  18765. $as_echo "$as_me: failed program was:" >&5
  18766. sed 's/^/| /' conftest.$ac_ext >&5
  18767. { $as_echo "$as_me:$LINENO: result: no" >&5
  18768. $as_echo "no" >&6; }
  18769. fi
  18770. rm -rf conftest.dSYM
  18771. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18772. conftest$ac_exeext conftest.$ac_ext
  18773. { $as_echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  18774. $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  18775. cat >conftest.$ac_ext <<_ACEOF
  18776. /* confdefs.h. */
  18777. _ACEOF
  18778. cat confdefs.h >>conftest.$ac_ext
  18779. cat >>conftest.$ac_ext <<_ACEOF
  18780. /* end confdefs.h. */
  18781. #include <sys/endian.h>
  18782. int
  18783. main ()
  18784. {
  18785. int a = 1; int b = bswap16(a);
  18786. ;
  18787. return 0;
  18788. }
  18789. _ACEOF
  18790. rm -f conftest.$ac_objext conftest$ac_exeext
  18791. if { (ac_try="$ac_link"
  18792. case "(($ac_try" in
  18793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18794. *) ac_try_echo=$ac_try;;
  18795. esac
  18796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18797. $as_echo "$ac_try_echo") >&5
  18798. (eval "$ac_link") 2>conftest.er1
  18799. ac_status=$?
  18800. grep -v '^ *+' conftest.er1 >conftest.err
  18801. rm -f conftest.er1
  18802. cat conftest.err >&5
  18803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18804. (exit $ac_status); } && {
  18805. test -z "$ac_c_werror_flag" ||
  18806. test ! -s conftest.err
  18807. } && test -s conftest$ac_exeext && {
  18808. test "$cross_compiling" = yes ||
  18809. $as_test_x conftest$ac_exeext
  18810. }; then
  18811. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18812. $as_echo "yes" >&6; }
  18813. cat >>confdefs.h <<\_ACEOF
  18814. #define HAVE_SYS_ENDIAN_BSWAP16 1
  18815. _ACEOF
  18816. else
  18817. $as_echo "$as_me: failed program was:" >&5
  18818. sed 's/^/| /' conftest.$ac_ext >&5
  18819. { $as_echo "$as_me:$LINENO: result: no" >&5
  18820. $as_echo "no" >&6; }
  18821. fi
  18822. rm -rf conftest.dSYM
  18823. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18824. conftest$ac_exeext conftest.$ac_ext
  18825. if test "${cross_compiling}" = "no";
  18826. then
  18827. { $as_echo "$as_me:$LINENO: checking for /dev/urandom" >&5
  18828. $as_echo_n "checking for /dev/urandom... " >&6; }
  18829. if test "${ac_cv_file__dev_urandom+set}" = set; then
  18830. $as_echo_n "(cached) " >&6
  18831. else
  18832. test "$cross_compiling" = yes &&
  18833. { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  18834. $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  18835. { (exit 1); exit 1; }; }
  18836. if test -r "/dev/urandom"; then
  18837. ac_cv_file__dev_urandom=yes
  18838. else
  18839. ac_cv_file__dev_urandom=no
  18840. fi
  18841. fi
  18842. { $as_echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
  18843. $as_echo "$ac_cv_file__dev_urandom" >&6; }
  18844. if test "x$ac_cv_file__dev_urandom" = x""yes; then
  18845. cat >>confdefs.h <<\_ACEOF
  18846. #define HAVE_DEV_URANDOM 1
  18847. _ACEOF
  18848. fi
  18849. fi
  18850. { $as_echo "$as_me:$LINENO: checking for locale_t in locale.h" >&5
  18851. $as_echo_n "checking for locale_t in locale.h... " >&6; }
  18852. cat >conftest.$ac_ext <<_ACEOF
  18853. /* confdefs.h. */
  18854. _ACEOF
  18855. cat confdefs.h >>conftest.$ac_ext
  18856. cat >>conftest.$ac_ext <<_ACEOF
  18857. /* end confdefs.h. */
  18858. #include <locale.h>
  18859. int
  18860. main ()
  18861. {
  18862. locale_t lt = NULL
  18863. ;
  18864. return 0;
  18865. }
  18866. _ACEOF
  18867. rm -f conftest.$ac_objext conftest$ac_exeext
  18868. if { (ac_try="$ac_link"
  18869. case "(($ac_try" in
  18870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18871. *) ac_try_echo=$ac_try;;
  18872. esac
  18873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18874. $as_echo "$ac_try_echo") >&5
  18875. (eval "$ac_link") 2>conftest.er1
  18876. ac_status=$?
  18877. grep -v '^ *+' conftest.er1 >conftest.err
  18878. rm -f conftest.er1
  18879. cat conftest.err >&5
  18880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18881. (exit $ac_status); } && {
  18882. test -z "$ac_c_werror_flag" ||
  18883. test ! -s conftest.err
  18884. } && test -s conftest$ac_exeext && {
  18885. test "$cross_compiling" = yes ||
  18886. $as_test_x conftest$ac_exeext
  18887. }; then
  18888. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18889. $as_echo "yes" >&6; }
  18890. cat >>confdefs.h <<\_ACEOF
  18891. #define HAVE_LOCALE_T_IN_LOCALE_H 1
  18892. _ACEOF
  18893. else
  18894. $as_echo "$as_me: failed program was:" >&5
  18895. sed 's/^/| /' conftest.$ac_ext >&5
  18896. { $as_echo "$as_me:$LINENO: result: no" >&5
  18897. $as_echo "no" >&6; }
  18898. { $as_echo "$as_me:$LINENO: checking for locale_t in xlocale.h" >&5
  18899. $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
  18900. cat >conftest.$ac_ext <<_ACEOF
  18901. /* confdefs.h. */
  18902. _ACEOF
  18903. cat confdefs.h >>conftest.$ac_ext
  18904. cat >>conftest.$ac_ext <<_ACEOF
  18905. /* end confdefs.h. */
  18906. #include <xlocale.h>
  18907. int
  18908. main ()
  18909. {
  18910. locale_t lt = NULL
  18911. ;
  18912. return 0;
  18913. }
  18914. _ACEOF
  18915. rm -f conftest.$ac_objext conftest$ac_exeext
  18916. if { (ac_try="$ac_link"
  18917. case "(($ac_try" in
  18918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18919. *) ac_try_echo=$ac_try;;
  18920. esac
  18921. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18922. $as_echo "$ac_try_echo") >&5
  18923. (eval "$ac_link") 2>conftest.er1
  18924. ac_status=$?
  18925. grep -v '^ *+' conftest.er1 >conftest.err
  18926. rm -f conftest.er1
  18927. cat conftest.err >&5
  18928. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18929. (exit $ac_status); } && {
  18930. test -z "$ac_c_werror_flag" ||
  18931. test ! -s conftest.err
  18932. } && test -s conftest$ac_exeext && {
  18933. test "$cross_compiling" = yes ||
  18934. $as_test_x conftest$ac_exeext
  18935. }; then
  18936. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18937. $as_echo "yes" >&6; }
  18938. cat >>confdefs.h <<\_ACEOF
  18939. #define HAVE_LOCALE_T_IN_XLOCALE_H 1
  18940. _ACEOF
  18941. else
  18942. $as_echo "$as_me: failed program was:" >&5
  18943. sed 's/^/| /' conftest.$ac_ext >&5
  18944. { $as_echo "$as_me:$LINENO: result: no" >&5
  18945. $as_echo "no" >&6; }
  18946. fi
  18947. rm -rf conftest.dSYM
  18948. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18949. conftest$ac_exeext conftest.$ac_ext
  18950. fi
  18951. rm -rf conftest.dSYM
  18952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18953. conftest$ac_exeext conftest.$ac_ext
  18954. { $as_echo "$as_me:$LINENO: checking for O_EVTONLY in fcntl.h" >&5
  18955. $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
  18956. cat >conftest.$ac_ext <<_ACEOF
  18957. /* confdefs.h. */
  18958. _ACEOF
  18959. cat confdefs.h >>conftest.$ac_ext
  18960. cat >>conftest.$ac_ext <<_ACEOF
  18961. /* end confdefs.h. */
  18962. #include <fcntl.h>
  18963. int
  18964. main ()
  18965. {
  18966. int a = O_EVTONLY;
  18967. ;
  18968. return 0;
  18969. }
  18970. _ACEOF
  18971. rm -f conftest.$ac_objext conftest$ac_exeext
  18972. if { (ac_try="$ac_link"
  18973. case "(($ac_try" in
  18974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18975. *) ac_try_echo=$ac_try;;
  18976. esac
  18977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18978. $as_echo "$ac_try_echo") >&5
  18979. (eval "$ac_link") 2>conftest.er1
  18980. ac_status=$?
  18981. grep -v '^ *+' conftest.er1 >conftest.err
  18982. rm -f conftest.er1
  18983. cat conftest.err >&5
  18984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18985. (exit $ac_status); } && {
  18986. test -z "$ac_c_werror_flag" ||
  18987. test ! -s conftest.err
  18988. } && test -s conftest$ac_exeext && {
  18989. test "$cross_compiling" = yes ||
  18990. $as_test_x conftest$ac_exeext
  18991. }; then
  18992. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18993. $as_echo "yes" >&6; }
  18994. cat >>confdefs.h <<\_ACEOF
  18995. #define HAVE_O_EVTONLY 1
  18996. _ACEOF
  18997. else
  18998. $as_echo "$as_me: failed program was:" >&5
  18999. sed 's/^/| /' conftest.$ac_ext >&5
  19000. { $as_echo "$as_me:$LINENO: result: no" >&5
  19001. $as_echo "no" >&6; }
  19002. fi
  19003. rm -rf conftest.dSYM
  19004. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19005. conftest$ac_exeext conftest.$ac_ext
  19006. { $as_echo "$as_me:$LINENO: checking for O_SYMLINK in fcntl.h" >&5
  19007. $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
  19008. cat >conftest.$ac_ext <<_ACEOF
  19009. /* confdefs.h. */
  19010. _ACEOF
  19011. cat confdefs.h >>conftest.$ac_ext
  19012. cat >>conftest.$ac_ext <<_ACEOF
  19013. /* end confdefs.h. */
  19014. #include <fcntl.h>
  19015. int
  19016. main ()
  19017. {
  19018. int a = O_SYMLINK;
  19019. ;
  19020. return 0;
  19021. }
  19022. _ACEOF
  19023. rm -f conftest.$ac_objext conftest$ac_exeext
  19024. if { (ac_try="$ac_link"
  19025. case "(($ac_try" in
  19026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19027. *) ac_try_echo=$ac_try;;
  19028. esac
  19029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19030. $as_echo "$ac_try_echo") >&5
  19031. (eval "$ac_link") 2>conftest.er1
  19032. ac_status=$?
  19033. grep -v '^ *+' conftest.er1 >conftest.err
  19034. rm -f conftest.er1
  19035. cat conftest.err >&5
  19036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19037. (exit $ac_status); } && {
  19038. test -z "$ac_c_werror_flag" ||
  19039. test ! -s conftest.err
  19040. } && test -s conftest$ac_exeext && {
  19041. test "$cross_compiling" = yes ||
  19042. $as_test_x conftest$ac_exeext
  19043. }; then
  19044. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19045. $as_echo "yes" >&6; }
  19046. cat >>confdefs.h <<\_ACEOF
  19047. #define HAVE_O_SYMLINK 1
  19048. _ACEOF
  19049. else
  19050. $as_echo "$as_me: failed program was:" >&5
  19051. sed 's/^/| /' conftest.$ac_ext >&5
  19052. { $as_echo "$as_me:$LINENO: result: no" >&5
  19053. $as_echo "no" >&6; }
  19054. fi
  19055. rm -rf conftest.dSYM
  19056. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19057. conftest$ac_exeext conftest.$ac_ext
  19058. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  19059. { $as_echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  19060. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  19061. saved_cppflags="${CPPFLAGS}"
  19062. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  19063. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  19064. fi
  19065. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  19066. cat >conftest.$ac_ext <<_ACEOF
  19067. /* confdefs.h. */
  19068. _ACEOF
  19069. cat confdefs.h >>conftest.$ac_ext
  19070. cat >>conftest.$ac_ext <<_ACEOF
  19071. /* end confdefs.h. */
  19072. #include <pthread.h>
  19073. int
  19074. main ()
  19075. {
  19076. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  19077. int foo = 0;
  19078. #else
  19079. int foo = bar;
  19080. #endif
  19081. 0
  19082. ;
  19083. return 0;
  19084. }
  19085. _ACEOF
  19086. rm -f conftest.$ac_objext
  19087. if { (ac_try="$ac_compile"
  19088. case "(($ac_try" in
  19089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19090. *) ac_try_echo=$ac_try;;
  19091. esac
  19092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19093. $as_echo "$ac_try_echo") >&5
  19094. (eval "$ac_compile") 2>conftest.er1
  19095. ac_status=$?
  19096. grep -v '^ *+' conftest.er1 >conftest.err
  19097. rm -f conftest.er1
  19098. cat conftest.err >&5
  19099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19100. (exit $ac_status); } && {
  19101. test -z "$ac_c_werror_flag" ||
  19102. test ! -s conftest.err
  19103. } && test -s conftest.$ac_objext; then
  19104. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19105. $as_echo "yes" >&6; }
  19106. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  19107. cat >>confdefs.h <<\_ACEOF
  19108. #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
  19109. _ACEOF
  19110. else
  19111. $as_echo "$as_me: failed program was:" >&5
  19112. sed 's/^/| /' conftest.$ac_ext >&5
  19113. { $as_echo "$as_me:$LINENO: result: no" >&5
  19114. $as_echo "no" >&6; }
  19115. fi
  19116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19117. CPPFLAGS="${saved_cppflags}"
  19118. fi
  19119. { $as_echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  19120. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  19121. cat >conftest.$ac_ext <<_ACEOF
  19122. /* confdefs.h. */
  19123. _ACEOF
  19124. cat confdefs.h >>conftest.$ac_ext
  19125. cat >>conftest.$ac_ext <<_ACEOF
  19126. /* end confdefs.h. */
  19127. #include <pthread.h>
  19128. int
  19129. main ()
  19130. {
  19131. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  19132. ;
  19133. return 0;
  19134. }
  19135. _ACEOF
  19136. rm -f conftest.$ac_objext conftest$ac_exeext
  19137. if { (ac_try="$ac_link"
  19138. case "(($ac_try" in
  19139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19140. *) ac_try_echo=$ac_try;;
  19141. esac
  19142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19143. $as_echo "$ac_try_echo") >&5
  19144. (eval "$ac_link") 2>conftest.er1
  19145. ac_status=$?
  19146. grep -v '^ *+' conftest.er1 >conftest.err
  19147. rm -f conftest.er1
  19148. cat conftest.err >&5
  19149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19150. (exit $ac_status); } && {
  19151. test -z "$ac_c_werror_flag" ||
  19152. test ! -s conftest.err
  19153. } && test -s conftest$ac_exeext && {
  19154. test "$cross_compiling" = yes ||
  19155. $as_test_x conftest$ac_exeext
  19156. }; then
  19157. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19158. $as_echo "yes" >&6; }
  19159. cat >>confdefs.h <<\_ACEOF
  19160. #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
  19161. _ACEOF
  19162. else
  19163. $as_echo "$as_me: failed program was:" >&5
  19164. sed 's/^/| /' conftest.$ac_ext >&5
  19165. { $as_echo "$as_me:$LINENO: result: no" >&5
  19166. $as_echo "no" >&6; }
  19167. fi
  19168. rm -rf conftest.dSYM
  19169. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19170. conftest$ac_exeext conftest.$ac_ext
  19171. { $as_echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  19172. $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  19173. cat >conftest.$ac_ext <<_ACEOF
  19174. /* confdefs.h. */
  19175. _ACEOF
  19176. cat confdefs.h >>conftest.$ac_ext
  19177. cat >>conftest.$ac_ext <<_ACEOF
  19178. /* end confdefs.h. */
  19179. #include <pthread.h>
  19180. int
  19181. main ()
  19182. {
  19183. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  19184. ;
  19185. return 0;
  19186. }
  19187. _ACEOF
  19188. rm -f conftest.$ac_objext conftest$ac_exeext
  19189. if { (ac_try="$ac_link"
  19190. case "(($ac_try" in
  19191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19192. *) ac_try_echo=$ac_try;;
  19193. esac
  19194. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19195. $as_echo "$ac_try_echo") >&5
  19196. (eval "$ac_link") 2>conftest.er1
  19197. ac_status=$?
  19198. grep -v '^ *+' conftest.er1 >conftest.err
  19199. rm -f conftest.er1
  19200. cat conftest.err >&5
  19201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19202. (exit $ac_status); } && {
  19203. test -z "$ac_c_werror_flag" ||
  19204. test ! -s conftest.err
  19205. } && test -s conftest$ac_exeext && {
  19206. test "$cross_compiling" = yes ||
  19207. $as_test_x conftest$ac_exeext
  19208. }; then
  19209. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19210. $as_echo "yes" >&6; }
  19211. cat >>confdefs.h <<\_ACEOF
  19212. #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
  19213. _ACEOF
  19214. else
  19215. $as_echo "$as_me: failed program was:" >&5
  19216. sed 's/^/| /' conftest.$ac_ext >&5
  19217. { $as_echo "$as_me:$LINENO: result: no" >&5
  19218. $as_echo "no" >&6; }
  19219. fi
  19220. rm -rf conftest.dSYM
  19221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19222. conftest$ac_exeext conftest.$ac_ext
  19223. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  19224. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  19225. save_LIBS="$LIBS"
  19226. save_CFLAGS="$CFLAGS"
  19227. LIBS="$PTHREAD_LIBS $LIBS"
  19228. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19229. cat >conftest.$ac_ext <<_ACEOF
  19230. /* confdefs.h. */
  19231. _ACEOF
  19232. cat confdefs.h >>conftest.$ac_ext
  19233. cat >>conftest.$ac_ext <<_ACEOF
  19234. /* end confdefs.h. */
  19235. #include <pthread.h>
  19236. #include <time.h>
  19237. int
  19238. main ()
  19239. {
  19240. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  19241. ;
  19242. return 0;
  19243. }
  19244. _ACEOF
  19245. rm -f conftest.$ac_objext conftest$ac_exeext
  19246. if { (ac_try="$ac_link"
  19247. case "(($ac_try" in
  19248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19249. *) ac_try_echo=$ac_try;;
  19250. esac
  19251. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19252. $as_echo "$ac_try_echo") >&5
  19253. (eval "$ac_link") 2>conftest.er1
  19254. ac_status=$?
  19255. grep -v '^ *+' conftest.er1 >conftest.err
  19256. rm -f conftest.er1
  19257. cat conftest.err >&5
  19258. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19259. (exit $ac_status); } && {
  19260. test -z "$ac_c_werror_flag" ||
  19261. test ! -s conftest.err
  19262. } && test -s conftest$ac_exeext && {
  19263. test "$cross_compiling" = yes ||
  19264. $as_test_x conftest$ac_exeext
  19265. }; then
  19266. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19267. $as_echo "yes" >&6; }
  19268. ac_cv_pthread_rwlock_timedwrlock="yes"
  19269. else
  19270. $as_echo "$as_me: failed program was:" >&5
  19271. sed 's/^/| /' conftest.$ac_ext >&5
  19272. { $as_echo "$as_me:$LINENO: result: no" >&5
  19273. $as_echo "no" >&6; }
  19274. ac_cv_pthread_rwlock_timedwrlock="no"
  19275. fi
  19276. rm -rf conftest.dSYM
  19277. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19278. conftest$ac_exeext conftest.$ac_ext
  19279. LIBS="$save_LIBS"
  19280. CFLAGS="$save_CFLAGS"
  19281. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  19282. cat >>confdefs.h <<\_ACEOF
  19283. #define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1
  19284. _ACEOF
  19285. fi
  19286. { $as_echo "$as_me:$LINENO: checking if PTHREAD_ONCE_INIT needs braces" >&5
  19287. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  19288. saved_CFLAGS="${CFLAGS}"
  19289. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  19290. cat >conftest.$ac_ext <<_ACEOF
  19291. /* confdefs.h. */
  19292. _ACEOF
  19293. cat confdefs.h >>conftest.$ac_ext
  19294. cat >>conftest.$ac_ext <<_ACEOF
  19295. /* end confdefs.h. */
  19296. #include <pthread.h>
  19297. void empty(){}
  19298. int
  19299. main ()
  19300. {
  19301. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  19302. ;
  19303. return 0;
  19304. }
  19305. _ACEOF
  19306. rm -f conftest.$ac_objext
  19307. if { (ac_try="$ac_compile"
  19308. case "(($ac_try" in
  19309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19310. *) ac_try_echo=$ac_try;;
  19311. esac
  19312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19313. $as_echo "$ac_try_echo") >&5
  19314. (eval "$ac_compile") 2>conftest.er1
  19315. ac_status=$?
  19316. grep -v '^ *+' conftest.er1 >conftest.err
  19317. rm -f conftest.er1
  19318. cat conftest.err >&5
  19319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19320. (exit $ac_status); } && {
  19321. test -z "$ac_c_werror_flag" ||
  19322. test ! -s conftest.err
  19323. } && test -s conftest.$ac_objext; then
  19324. { $as_echo "$as_me:$LINENO: result: no" >&5
  19325. $as_echo "no" >&6; }
  19326. ac_cv_pthread_once_needsbraces="no"
  19327. else
  19328. $as_echo "$as_me: failed program was:" >&5
  19329. sed 's/^/| /' conftest.$ac_ext >&5
  19330. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19331. $as_echo "yes" >&6; }
  19332. ac_cv_pthread_once_needsbraces="yes"
  19333. fi
  19334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19335. CFLAGS="${saved_CFLAGS}"
  19336. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  19337. cat >>confdefs.h <<\_ACEOF
  19338. #define PTHREAD_ONCE_INIT_NEEDS_BRACES 1
  19339. _ACEOF
  19340. fi
  19341. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  19342. { $as_echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  19343. $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  19344. saved_cppflags="${CPPFLAGS}"
  19345. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  19346. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  19347. fi
  19348. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  19349. cat >conftest.$ac_ext <<_ACEOF
  19350. /* confdefs.h. */
  19351. _ACEOF
  19352. cat confdefs.h >>conftest.$ac_ext
  19353. cat >>conftest.$ac_ext <<_ACEOF
  19354. /* end confdefs.h. */
  19355. #include <pthread.h>
  19356. int
  19357. main ()
  19358. {
  19359. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  19360. int foo = 0;
  19361. #else
  19362. int foo = bar;
  19363. #endif
  19364. 0
  19365. ;
  19366. return 0;
  19367. }
  19368. _ACEOF
  19369. rm -f conftest.$ac_objext
  19370. if { (ac_try="$ac_compile"
  19371. case "(($ac_try" in
  19372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19373. *) ac_try_echo=$ac_try;;
  19374. esac
  19375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19376. $as_echo "$ac_try_echo") >&5
  19377. (eval "$ac_compile") 2>conftest.er1
  19378. ac_status=$?
  19379. grep -v '^ *+' conftest.er1 >conftest.err
  19380. rm -f conftest.er1
  19381. cat conftest.err >&5
  19382. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19383. (exit $ac_status); } && {
  19384. test -z "$ac_c_werror_flag" ||
  19385. test ! -s conftest.err
  19386. } && test -s conftest.$ac_objext; then
  19387. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19388. $as_echo "yes" >&6; }
  19389. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  19390. cat >>confdefs.h <<\_ACEOF
  19391. #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
  19392. _ACEOF
  19393. else
  19394. $as_echo "$as_me: failed program was:" >&5
  19395. sed 's/^/| /' conftest.$ac_ext >&5
  19396. { $as_echo "$as_me:$LINENO: result: no" >&5
  19397. $as_echo "no" >&6; }
  19398. fi
  19399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19400. CPPFLAGS="${saved_cppflags}"
  19401. fi
  19402. # Can we compare a mutex to its initial value?
  19403. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  19404. { $as_echo "$as_me:$LINENO: checking whether we can compare a mutex to its initial value" >&5
  19405. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  19406. cat >conftest.$ac_ext <<_ACEOF
  19407. /* confdefs.h. */
  19408. _ACEOF
  19409. cat confdefs.h >>conftest.$ac_ext
  19410. cat >>conftest.$ac_ext <<_ACEOF
  19411. /* end confdefs.h. */
  19412. #include <pthread.h>
  19413. int
  19414. main ()
  19415. {
  19416. pthread_mutex_t lock;
  19417. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  19418. return 0;
  19419. }
  19420. return 0
  19421. ;
  19422. return 0;
  19423. }
  19424. _ACEOF
  19425. rm -f conftest.$ac_objext conftest$ac_exeext
  19426. if { (ac_try="$ac_link"
  19427. case "(($ac_try" in
  19428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19429. *) ac_try_echo=$ac_try;;
  19430. esac
  19431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19432. $as_echo "$ac_try_echo") >&5
  19433. (eval "$ac_link") 2>conftest.er1
  19434. ac_status=$?
  19435. grep -v '^ *+' conftest.er1 >conftest.err
  19436. rm -f conftest.er1
  19437. cat conftest.err >&5
  19438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19439. (exit $ac_status); } && {
  19440. test -z "$ac_c_werror_flag" ||
  19441. test ! -s conftest.err
  19442. } && test -s conftest$ac_exeext && {
  19443. test "$cross_compiling" = yes ||
  19444. $as_test_x conftest$ac_exeext
  19445. }; then
  19446. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19447. $as_echo "yes" >&6; }
  19448. cat >>confdefs.h <<\_ACEOF
  19449. #define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1
  19450. _ACEOF
  19451. else
  19452. $as_echo "$as_me: failed program was:" >&5
  19453. sed 's/^/| /' conftest.$ac_ext >&5
  19454. { $as_echo "$as_me:$LINENO: result: no" >&5
  19455. $as_echo "no" >&6; }
  19456. fi
  19457. rm -rf conftest.dSYM
  19458. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19459. conftest$ac_exeext conftest.$ac_ext
  19460. #if test "${cross_compiling}" = "no";
  19461. #then
  19462. #AC_MSG_CHECKING(for working epoll support)
  19463. #AC_LINK_IFELSE(
  19464. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  19465. # if (res < 0)
  19466. # return 1;
  19467. # close (res);
  19468. # return 0;]),
  19469. #AC_MSG_RESULT(yes)
  19470. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  19471. #AC_MSG_RESULT(no)
  19472. #)
  19473. #fi
  19474. { $as_echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
  19475. $as_echo_n "checking for compiler atomic operations... " >&6; }
  19476. cat >conftest.$ac_ext <<_ACEOF
  19477. /* confdefs.h. */
  19478. _ACEOF
  19479. cat confdefs.h >>conftest.$ac_ext
  19480. cat >>conftest.$ac_ext <<_ACEOF
  19481. /* end confdefs.h. */
  19482. int
  19483. main ()
  19484. {
  19485. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  19486. ;
  19487. return 0;
  19488. }
  19489. _ACEOF
  19490. rm -f conftest.$ac_objext conftest$ac_exeext
  19491. if { (ac_try="$ac_link"
  19492. case "(($ac_try" in
  19493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19494. *) ac_try_echo=$ac_try;;
  19495. esac
  19496. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19497. $as_echo "$ac_try_echo") >&5
  19498. (eval "$ac_link") 2>conftest.er1
  19499. ac_status=$?
  19500. grep -v '^ *+' conftest.er1 >conftest.err
  19501. rm -f conftest.er1
  19502. cat conftest.err >&5
  19503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19504. (exit $ac_status); } && {
  19505. test -z "$ac_c_werror_flag" ||
  19506. test ! -s conftest.err
  19507. } && test -s conftest$ac_exeext && {
  19508. test "$cross_compiling" = yes ||
  19509. $as_test_x conftest$ac_exeext
  19510. }; then
  19511. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19512. $as_echo "yes" >&6; }
  19513. cat >>confdefs.h <<\_ACEOF
  19514. #define HAVE_GCC_ATOMICS 1
  19515. _ACEOF
  19516. else
  19517. $as_echo "$as_me: failed program was:" >&5
  19518. sed 's/^/| /' conftest.$ac_ext >&5
  19519. { $as_echo "$as_me:$LINENO: result: no" >&5
  19520. $as_echo "no" >&6; }
  19521. fi
  19522. rm -rf conftest.dSYM
  19523. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19524. conftest$ac_exeext conftest.$ac_ext
  19525. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  19526. { $as_echo "$as_me:$LINENO: checking if your system printf is NULL-safe." >&5
  19527. $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
  19528. if test "$cross_compiling" = yes; then
  19529. # It's unlikely an embedded system will have this.
  19530. { $as_echo "$as_me:$LINENO: result: unknown" >&5
  19531. $as_echo "unknown" >&6; }
  19532. else
  19533. cat >conftest.$ac_ext <<_ACEOF
  19534. /* confdefs.h. */
  19535. _ACEOF
  19536. cat confdefs.h >>conftest.$ac_ext
  19537. cat >>conftest.$ac_ext <<_ACEOF
  19538. /* end confdefs.h. */
  19539. #include <stdio.h>
  19540. int
  19541. main ()
  19542. {
  19543. printf("%s", NULL)
  19544. ;
  19545. return 0;
  19546. }
  19547. _ACEOF
  19548. rm -f conftest$ac_exeext
  19549. if { (ac_try="$ac_link"
  19550. case "(($ac_try" in
  19551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19552. *) ac_try_echo=$ac_try;;
  19553. esac
  19554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19555. $as_echo "$ac_try_echo") >&5
  19556. (eval "$ac_link") 2>&5
  19557. ac_status=$?
  19558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19559. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19560. { (case "(($ac_try" in
  19561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19562. *) ac_try_echo=$ac_try;;
  19563. esac
  19564. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19565. $as_echo "$ac_try_echo") >&5
  19566. (eval "$ac_try") 2>&5
  19567. ac_status=$?
  19568. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19569. (exit $ac_status); }; }; then
  19570. cat >>confdefs.h <<\_ACEOF
  19571. #define HAVE_NULLSAFE_PRINTF 1
  19572. _ACEOF
  19573. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19574. $as_echo "yes" >&6; }
  19575. else
  19576. $as_echo "$as_me: program exited with status $ac_status" >&5
  19577. $as_echo "$as_me: failed program was:" >&5
  19578. sed 's/^/| /' conftest.$ac_ext >&5
  19579. ( exit $ac_status )
  19580. { $as_echo "$as_me:$LINENO: result: no" >&5
  19581. $as_echo "no" >&6; }
  19582. fi
  19583. rm -rf conftest.dSYM
  19584. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19585. fi
  19586. { $as_echo "$as_me:$LINENO: checking if we can increase the maximum select-able file descriptor" >&5
  19587. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  19588. if test "$cross_compiling" = yes; then
  19589. { $as_echo "$as_me:$LINENO: result: cross-compile" >&5
  19590. $as_echo "cross-compile" >&6; }
  19591. else
  19592. cat >conftest.$ac_ext <<_ACEOF
  19593. /* confdefs.h. */
  19594. _ACEOF
  19595. cat confdefs.h >>conftest.$ac_ext
  19596. cat >>conftest.$ac_ext <<_ACEOF
  19597. /* end confdefs.h. */
  19598. #include <stdio.h>
  19599. #include <sys/select.h>
  19600. #include <sys/time.h>
  19601. #include <sys/resource.h>
  19602. #include <string.h>
  19603. #include <errno.h>
  19604. #include <stdlib.h>
  19605. #include <sys/types.h>
  19606. #include <sys/stat.h>
  19607. #include <fcntl.h>
  19608. #include <unistd.h>
  19609. int
  19610. main ()
  19611. {
  19612. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  19613. int fd0, fd1;
  19614. struct timeval tv = { 0, };
  19615. struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
  19616. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  19617. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  19618. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  19619. FD_SET(fd0, (fd_set *) &fds);
  19620. FD_SET(fd1, (fd_set *) &fds);
  19621. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  19622. exit(0)
  19623. ;
  19624. return 0;
  19625. }
  19626. _ACEOF
  19627. rm -f conftest$ac_exeext
  19628. if { (ac_try="$ac_link"
  19629. case "(($ac_try" in
  19630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19631. *) ac_try_echo=$ac_try;;
  19632. esac
  19633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19634. $as_echo "$ac_try_echo") >&5
  19635. (eval "$ac_link") 2>&5
  19636. ac_status=$?
  19637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19638. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19639. { (case "(($ac_try" in
  19640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19641. *) ac_try_echo=$ac_try;;
  19642. esac
  19643. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19644. $as_echo "$ac_try_echo") >&5
  19645. (eval "$ac_try") 2>&5
  19646. ac_status=$?
  19647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19648. (exit $ac_status); }; }; then
  19649. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19650. $as_echo "yes" >&6; }
  19651. cat >>confdefs.h <<\_ACEOF
  19652. #define HAVE_VARIABLE_FDSET 1
  19653. _ACEOF
  19654. else
  19655. $as_echo "$as_me: program exited with status $ac_status" >&5
  19656. $as_echo "$as_me: failed program was:" >&5
  19657. sed 's/^/| /' conftest.$ac_ext >&5
  19658. ( exit $ac_status )
  19659. { $as_echo "$as_me:$LINENO: result: no" >&5
  19660. $as_echo "no" >&6; }
  19661. fi
  19662. rm -rf conftest.dSYM
  19663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19664. fi
  19665. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  19666. if test "$cross_compiling" = yes; then
  19667. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19668. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19669. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19670. See \`config.log' for more details." >&5
  19671. $as_echo "$as_me: error: cannot run test program while cross compiling
  19672. See \`config.log' for more details." >&2;}
  19673. { (exit 1); exit 1; }; }; }
  19674. else
  19675. cat >conftest.$ac_ext <<_ACEOF
  19676. /* confdefs.h. */
  19677. _ACEOF
  19678. cat confdefs.h >>conftest.$ac_ext
  19679. cat >>conftest.$ac_ext <<_ACEOF
  19680. /* end confdefs.h. */
  19681. #include <unistd.h>
  19682. #include <sys/types.h>
  19683. #include <stdlib.h>
  19684. int
  19685. main ()
  19686. {
  19687. if (getuid() != 0) { exit(1); }
  19688. ;
  19689. return 0;
  19690. }
  19691. _ACEOF
  19692. rm -f conftest$ac_exeext
  19693. if { (ac_try="$ac_link"
  19694. case "(($ac_try" in
  19695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19696. *) ac_try_echo=$ac_try;;
  19697. esac
  19698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19699. $as_echo "$ac_try_echo") >&5
  19700. (eval "$ac_link") 2>&5
  19701. ac_status=$?
  19702. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19703. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19704. { (case "(($ac_try" in
  19705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19706. *) ac_try_echo=$ac_try;;
  19707. esac
  19708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19709. $as_echo "$ac_try_echo") >&5
  19710. (eval "$ac_try") 2>&5
  19711. ac_status=$?
  19712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19713. (exit $ac_status); }; }; then
  19714. cat >>confdefs.h <<\_ACEOF
  19715. #define CONFIGURE_RAN_AS_ROOT 1
  19716. _ACEOF
  19717. else
  19718. $as_echo "$as_me: program exited with status $ac_status" >&5
  19719. $as_echo "$as_me: failed program was:" >&5
  19720. sed 's/^/| /' conftest.$ac_ext >&5
  19721. fi
  19722. rm -rf conftest.dSYM
  19723. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19724. fi
  19725. fi
  19726. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
  19727. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  19728. saved_CFLAGS="$CFLAGS"
  19729. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19730. if test "x" = "x"
  19731. then
  19732. cat >conftest.$ac_ext <<_ACEOF
  19733. /* confdefs.h. */
  19734. _ACEOF
  19735. cat confdefs.h >>conftest.$ac_ext
  19736. cat >>conftest.$ac_ext <<_ACEOF
  19737. /* end confdefs.h. */
  19738. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  19739. int
  19740. main ()
  19741. {
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. rm -f conftest.$ac_objext
  19747. if { (ac_try="$ac_compile"
  19748. case "(($ac_try" in
  19749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19750. *) ac_try_echo=$ac_try;;
  19751. esac
  19752. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19753. $as_echo "$ac_try_echo") >&5
  19754. (eval "$ac_compile") 2>conftest.er1
  19755. ac_status=$?
  19756. grep -v '^ *+' conftest.er1 >conftest.err
  19757. rm -f conftest.er1
  19758. cat conftest.err >&5
  19759. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19760. (exit $ac_status); } && {
  19761. test -z "$ac_c_werror_flag" ||
  19762. test ! -s conftest.err
  19763. } && test -s conftest.$ac_objext; then
  19764. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19765. $as_echo "yes" >&6; }
  19766. cat >>confdefs.h <<_ACEOF
  19767. #define HAVE_ATTRIBUTE_pure 1
  19768. _ACEOF
  19769. else
  19770. $as_echo "$as_me: failed program was:" >&5
  19771. sed 's/^/| /' conftest.$ac_ext >&5
  19772. { $as_echo "$as_me:$LINENO: result: no" >&5
  19773. $as_echo "no" >&6; }
  19774. fi
  19775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19776. else
  19777. cat >conftest.$ac_ext <<_ACEOF
  19778. /* confdefs.h. */
  19779. _ACEOF
  19780. cat confdefs.h >>conftest.$ac_ext
  19781. cat >>conftest.$ac_ext <<_ACEOF
  19782. /* end confdefs.h. */
  19783. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19784. int
  19785. main ()
  19786. {
  19787. ;
  19788. return 0;
  19789. }
  19790. _ACEOF
  19791. rm -f conftest.$ac_objext
  19792. if { (ac_try="$ac_compile"
  19793. case "(($ac_try" in
  19794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19795. *) ac_try_echo=$ac_try;;
  19796. esac
  19797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19798. $as_echo "$ac_try_echo") >&5
  19799. (eval "$ac_compile") 2>conftest.er1
  19800. ac_status=$?
  19801. grep -v '^ *+' conftest.er1 >conftest.err
  19802. rm -f conftest.er1
  19803. cat conftest.err >&5
  19804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19805. (exit $ac_status); } && {
  19806. test -z "$ac_c_werror_flag" ||
  19807. test ! -s conftest.err
  19808. } && test -s conftest.$ac_objext; then
  19809. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19810. $as_echo "yes" >&6; }
  19811. cat >>confdefs.h <<_ACEOF
  19812. #define HAVE_ATTRIBUTE_pure 1
  19813. _ACEOF
  19814. else
  19815. $as_echo "$as_me: failed program was:" >&5
  19816. sed 's/^/| /' conftest.$ac_ext >&5
  19817. { $as_echo "$as_me:$LINENO: result: no" >&5
  19818. $as_echo "no" >&6; }
  19819. fi
  19820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19821. fi
  19822. CFLAGS="$saved_CFLAGS"
  19823. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
  19824. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  19825. saved_CFLAGS="$CFLAGS"
  19826. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19827. if test "x" = "x"
  19828. then
  19829. cat >conftest.$ac_ext <<_ACEOF
  19830. /* confdefs.h. */
  19831. _ACEOF
  19832. cat confdefs.h >>conftest.$ac_ext
  19833. cat >>conftest.$ac_ext <<_ACEOF
  19834. /* end confdefs.h. */
  19835. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  19836. int
  19837. main ()
  19838. {
  19839. ;
  19840. return 0;
  19841. }
  19842. _ACEOF
  19843. rm -f conftest.$ac_objext
  19844. if { (ac_try="$ac_compile"
  19845. case "(($ac_try" in
  19846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19847. *) ac_try_echo=$ac_try;;
  19848. esac
  19849. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19850. $as_echo "$ac_try_echo") >&5
  19851. (eval "$ac_compile") 2>conftest.er1
  19852. ac_status=$?
  19853. grep -v '^ *+' conftest.er1 >conftest.err
  19854. rm -f conftest.er1
  19855. cat conftest.err >&5
  19856. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19857. (exit $ac_status); } && {
  19858. test -z "$ac_c_werror_flag" ||
  19859. test ! -s conftest.err
  19860. } && test -s conftest.$ac_objext; then
  19861. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19862. $as_echo "yes" >&6; }
  19863. cat >>confdefs.h <<_ACEOF
  19864. #define HAVE_ATTRIBUTE_malloc 1
  19865. _ACEOF
  19866. else
  19867. $as_echo "$as_me: failed program was:" >&5
  19868. sed 's/^/| /' conftest.$ac_ext >&5
  19869. { $as_echo "$as_me:$LINENO: result: no" >&5
  19870. $as_echo "no" >&6; }
  19871. fi
  19872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19873. else
  19874. cat >conftest.$ac_ext <<_ACEOF
  19875. /* confdefs.h. */
  19876. _ACEOF
  19877. cat confdefs.h >>conftest.$ac_ext
  19878. cat >>conftest.$ac_ext <<_ACEOF
  19879. /* end confdefs.h. */
  19880. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19881. int
  19882. main ()
  19883. {
  19884. ;
  19885. return 0;
  19886. }
  19887. _ACEOF
  19888. rm -f conftest.$ac_objext
  19889. if { (ac_try="$ac_compile"
  19890. case "(($ac_try" in
  19891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19892. *) ac_try_echo=$ac_try;;
  19893. esac
  19894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19895. $as_echo "$ac_try_echo") >&5
  19896. (eval "$ac_compile") 2>conftest.er1
  19897. ac_status=$?
  19898. grep -v '^ *+' conftest.er1 >conftest.err
  19899. rm -f conftest.er1
  19900. cat conftest.err >&5
  19901. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19902. (exit $ac_status); } && {
  19903. test -z "$ac_c_werror_flag" ||
  19904. test ! -s conftest.err
  19905. } && test -s conftest.$ac_objext; then
  19906. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19907. $as_echo "yes" >&6; }
  19908. cat >>confdefs.h <<_ACEOF
  19909. #define HAVE_ATTRIBUTE_malloc 1
  19910. _ACEOF
  19911. else
  19912. $as_echo "$as_me: failed program was:" >&5
  19913. sed 's/^/| /' conftest.$ac_ext >&5
  19914. { $as_echo "$as_me:$LINENO: result: no" >&5
  19915. $as_echo "no" >&6; }
  19916. fi
  19917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19918. fi
  19919. CFLAGS="$saved_CFLAGS"
  19920. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
  19921. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  19922. saved_CFLAGS="$CFLAGS"
  19923. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  19924. if test "x" = "x"
  19925. then
  19926. cat >conftest.$ac_ext <<_ACEOF
  19927. /* confdefs.h. */
  19928. _ACEOF
  19929. cat confdefs.h >>conftest.$ac_ext
  19930. cat >>conftest.$ac_ext <<_ACEOF
  19931. /* end confdefs.h. */
  19932. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  19933. int
  19934. main ()
  19935. {
  19936. ;
  19937. return 0;
  19938. }
  19939. _ACEOF
  19940. rm -f conftest.$ac_objext
  19941. if { (ac_try="$ac_compile"
  19942. case "(($ac_try" in
  19943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19944. *) ac_try_echo=$ac_try;;
  19945. esac
  19946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19947. $as_echo "$ac_try_echo") >&5
  19948. (eval "$ac_compile") 2>conftest.er1
  19949. ac_status=$?
  19950. grep -v '^ *+' conftest.er1 >conftest.err
  19951. rm -f conftest.er1
  19952. cat conftest.err >&5
  19953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19954. (exit $ac_status); } && {
  19955. test -z "$ac_c_werror_flag" ||
  19956. test ! -s conftest.err
  19957. } && test -s conftest.$ac_objext; then
  19958. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19959. $as_echo "yes" >&6; }
  19960. cat >>confdefs.h <<_ACEOF
  19961. #define HAVE_ATTRIBUTE_const 1
  19962. _ACEOF
  19963. else
  19964. $as_echo "$as_me: failed program was:" >&5
  19965. sed 's/^/| /' conftest.$ac_ext >&5
  19966. { $as_echo "$as_me:$LINENO: result: no" >&5
  19967. $as_echo "no" >&6; }
  19968. fi
  19969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19970. else
  19971. cat >conftest.$ac_ext <<_ACEOF
  19972. /* confdefs.h. */
  19973. _ACEOF
  19974. cat confdefs.h >>conftest.$ac_ext
  19975. cat >>conftest.$ac_ext <<_ACEOF
  19976. /* end confdefs.h. */
  19977. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  19978. int
  19979. main ()
  19980. {
  19981. ;
  19982. return 0;
  19983. }
  19984. _ACEOF
  19985. rm -f conftest.$ac_objext
  19986. if { (ac_try="$ac_compile"
  19987. case "(($ac_try" in
  19988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19989. *) ac_try_echo=$ac_try;;
  19990. esac
  19991. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19992. $as_echo "$ac_try_echo") >&5
  19993. (eval "$ac_compile") 2>conftest.er1
  19994. ac_status=$?
  19995. grep -v '^ *+' conftest.er1 >conftest.err
  19996. rm -f conftest.er1
  19997. cat conftest.err >&5
  19998. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19999. (exit $ac_status); } && {
  20000. test -z "$ac_c_werror_flag" ||
  20001. test ! -s conftest.err
  20002. } && test -s conftest.$ac_objext; then
  20003. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20004. $as_echo "yes" >&6; }
  20005. cat >>confdefs.h <<_ACEOF
  20006. #define HAVE_ATTRIBUTE_const 1
  20007. _ACEOF
  20008. else
  20009. $as_echo "$as_me: failed program was:" >&5
  20010. sed 's/^/| /' conftest.$ac_ext >&5
  20011. { $as_echo "$as_me:$LINENO: result: no" >&5
  20012. $as_echo "no" >&6; }
  20013. fi
  20014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20015. fi
  20016. CFLAGS="$saved_CFLAGS"
  20017. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
  20018. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  20019. saved_CFLAGS="$CFLAGS"
  20020. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20021. if test "x" = "x"
  20022. then
  20023. cat >conftest.$ac_ext <<_ACEOF
  20024. /* confdefs.h. */
  20025. _ACEOF
  20026. cat confdefs.h >>conftest.$ac_ext
  20027. cat >>conftest.$ac_ext <<_ACEOF
  20028. /* end confdefs.h. */
  20029. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  20030. int
  20031. main ()
  20032. {
  20033. ;
  20034. return 0;
  20035. }
  20036. _ACEOF
  20037. rm -f conftest.$ac_objext
  20038. if { (ac_try="$ac_compile"
  20039. case "(($ac_try" in
  20040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20041. *) ac_try_echo=$ac_try;;
  20042. esac
  20043. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20044. $as_echo "$ac_try_echo") >&5
  20045. (eval "$ac_compile") 2>conftest.er1
  20046. ac_status=$?
  20047. grep -v '^ *+' conftest.er1 >conftest.err
  20048. rm -f conftest.er1
  20049. cat conftest.err >&5
  20050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20051. (exit $ac_status); } && {
  20052. test -z "$ac_c_werror_flag" ||
  20053. test ! -s conftest.err
  20054. } && test -s conftest.$ac_objext; then
  20055. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20056. $as_echo "yes" >&6; }
  20057. cat >>confdefs.h <<_ACEOF
  20058. #define HAVE_ATTRIBUTE_unused 1
  20059. _ACEOF
  20060. else
  20061. $as_echo "$as_me: failed program was:" >&5
  20062. sed 's/^/| /' conftest.$ac_ext >&5
  20063. { $as_echo "$as_me:$LINENO: result: no" >&5
  20064. $as_echo "no" >&6; }
  20065. fi
  20066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20067. else
  20068. cat >conftest.$ac_ext <<_ACEOF
  20069. /* confdefs.h. */
  20070. _ACEOF
  20071. cat confdefs.h >>conftest.$ac_ext
  20072. cat >>conftest.$ac_ext <<_ACEOF
  20073. /* end confdefs.h. */
  20074. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20075. int
  20076. main ()
  20077. {
  20078. ;
  20079. return 0;
  20080. }
  20081. _ACEOF
  20082. rm -f conftest.$ac_objext
  20083. if { (ac_try="$ac_compile"
  20084. case "(($ac_try" in
  20085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20086. *) ac_try_echo=$ac_try;;
  20087. esac
  20088. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20089. $as_echo "$ac_try_echo") >&5
  20090. (eval "$ac_compile") 2>conftest.er1
  20091. ac_status=$?
  20092. grep -v '^ *+' conftest.er1 >conftest.err
  20093. rm -f conftest.er1
  20094. cat conftest.err >&5
  20095. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20096. (exit $ac_status); } && {
  20097. test -z "$ac_c_werror_flag" ||
  20098. test ! -s conftest.err
  20099. } && test -s conftest.$ac_objext; then
  20100. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20101. $as_echo "yes" >&6; }
  20102. cat >>confdefs.h <<_ACEOF
  20103. #define HAVE_ATTRIBUTE_unused 1
  20104. _ACEOF
  20105. else
  20106. $as_echo "$as_me: failed program was:" >&5
  20107. sed 's/^/| /' conftest.$ac_ext >&5
  20108. { $as_echo "$as_me:$LINENO: result: no" >&5
  20109. $as_echo "no" >&6; }
  20110. fi
  20111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20112. fi
  20113. CFLAGS="$saved_CFLAGS"
  20114. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
  20115. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  20116. saved_CFLAGS="$CFLAGS"
  20117. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20118. if test "x" = "x"
  20119. then
  20120. cat >conftest.$ac_ext <<_ACEOF
  20121. /* confdefs.h. */
  20122. _ACEOF
  20123. cat confdefs.h >>conftest.$ac_ext
  20124. cat >>conftest.$ac_ext <<_ACEOF
  20125. /* end confdefs.h. */
  20126. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  20127. int
  20128. main ()
  20129. {
  20130. ;
  20131. return 0;
  20132. }
  20133. _ACEOF
  20134. rm -f conftest.$ac_objext
  20135. if { (ac_try="$ac_compile"
  20136. case "(($ac_try" in
  20137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20138. *) ac_try_echo=$ac_try;;
  20139. esac
  20140. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20141. $as_echo "$ac_try_echo") >&5
  20142. (eval "$ac_compile") 2>conftest.er1
  20143. ac_status=$?
  20144. grep -v '^ *+' conftest.er1 >conftest.err
  20145. rm -f conftest.er1
  20146. cat conftest.err >&5
  20147. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20148. (exit $ac_status); } && {
  20149. test -z "$ac_c_werror_flag" ||
  20150. test ! -s conftest.err
  20151. } && test -s conftest.$ac_objext; then
  20152. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20153. $as_echo "yes" >&6; }
  20154. cat >>confdefs.h <<_ACEOF
  20155. #define HAVE_ATTRIBUTE_always_inline 1
  20156. _ACEOF
  20157. else
  20158. $as_echo "$as_me: failed program was:" >&5
  20159. sed 's/^/| /' conftest.$ac_ext >&5
  20160. { $as_echo "$as_me:$LINENO: result: no" >&5
  20161. $as_echo "no" >&6; }
  20162. fi
  20163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20164. else
  20165. cat >conftest.$ac_ext <<_ACEOF
  20166. /* confdefs.h. */
  20167. _ACEOF
  20168. cat confdefs.h >>conftest.$ac_ext
  20169. cat >>conftest.$ac_ext <<_ACEOF
  20170. /* end confdefs.h. */
  20171. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20172. int
  20173. main ()
  20174. {
  20175. ;
  20176. return 0;
  20177. }
  20178. _ACEOF
  20179. rm -f conftest.$ac_objext
  20180. if { (ac_try="$ac_compile"
  20181. case "(($ac_try" in
  20182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20183. *) ac_try_echo=$ac_try;;
  20184. esac
  20185. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20186. $as_echo "$ac_try_echo") >&5
  20187. (eval "$ac_compile") 2>conftest.er1
  20188. ac_status=$?
  20189. grep -v '^ *+' conftest.er1 >conftest.err
  20190. rm -f conftest.er1
  20191. cat conftest.err >&5
  20192. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20193. (exit $ac_status); } && {
  20194. test -z "$ac_c_werror_flag" ||
  20195. test ! -s conftest.err
  20196. } && test -s conftest.$ac_objext; then
  20197. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20198. $as_echo "yes" >&6; }
  20199. cat >>confdefs.h <<_ACEOF
  20200. #define HAVE_ATTRIBUTE_always_inline 1
  20201. _ACEOF
  20202. else
  20203. $as_echo "$as_me: failed program was:" >&5
  20204. sed 's/^/| /' conftest.$ac_ext >&5
  20205. { $as_echo "$as_me:$LINENO: result: no" >&5
  20206. $as_echo "no" >&6; }
  20207. fi
  20208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20209. fi
  20210. CFLAGS="$saved_CFLAGS"
  20211. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
  20212. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  20213. saved_CFLAGS="$CFLAGS"
  20214. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20215. if test "x" = "x"
  20216. then
  20217. cat >conftest.$ac_ext <<_ACEOF
  20218. /* confdefs.h. */
  20219. _ACEOF
  20220. cat confdefs.h >>conftest.$ac_ext
  20221. cat >>conftest.$ac_ext <<_ACEOF
  20222. /* end confdefs.h. */
  20223. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  20224. int
  20225. main ()
  20226. {
  20227. ;
  20228. return 0;
  20229. }
  20230. _ACEOF
  20231. rm -f conftest.$ac_objext
  20232. if { (ac_try="$ac_compile"
  20233. case "(($ac_try" in
  20234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20235. *) ac_try_echo=$ac_try;;
  20236. esac
  20237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20238. $as_echo "$ac_try_echo") >&5
  20239. (eval "$ac_compile") 2>conftest.er1
  20240. ac_status=$?
  20241. grep -v '^ *+' conftest.er1 >conftest.err
  20242. rm -f conftest.er1
  20243. cat conftest.err >&5
  20244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20245. (exit $ac_status); } && {
  20246. test -z "$ac_c_werror_flag" ||
  20247. test ! -s conftest.err
  20248. } && test -s conftest.$ac_objext; then
  20249. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20250. $as_echo "yes" >&6; }
  20251. cat >>confdefs.h <<_ACEOF
  20252. #define HAVE_ATTRIBUTE_deprecated 1
  20253. _ACEOF
  20254. else
  20255. $as_echo "$as_me: failed program was:" >&5
  20256. sed 's/^/| /' conftest.$ac_ext >&5
  20257. { $as_echo "$as_me:$LINENO: result: no" >&5
  20258. $as_echo "no" >&6; }
  20259. fi
  20260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20261. else
  20262. cat >conftest.$ac_ext <<_ACEOF
  20263. /* confdefs.h. */
  20264. _ACEOF
  20265. cat confdefs.h >>conftest.$ac_ext
  20266. cat >>conftest.$ac_ext <<_ACEOF
  20267. /* end confdefs.h. */
  20268. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20269. int
  20270. main ()
  20271. {
  20272. ;
  20273. return 0;
  20274. }
  20275. _ACEOF
  20276. rm -f conftest.$ac_objext
  20277. if { (ac_try="$ac_compile"
  20278. case "(($ac_try" in
  20279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20280. *) ac_try_echo=$ac_try;;
  20281. esac
  20282. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20283. $as_echo "$ac_try_echo") >&5
  20284. (eval "$ac_compile") 2>conftest.er1
  20285. ac_status=$?
  20286. grep -v '^ *+' conftest.er1 >conftest.err
  20287. rm -f conftest.er1
  20288. cat conftest.err >&5
  20289. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20290. (exit $ac_status); } && {
  20291. test -z "$ac_c_werror_flag" ||
  20292. test ! -s conftest.err
  20293. } && test -s conftest.$ac_objext; then
  20294. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20295. $as_echo "yes" >&6; }
  20296. cat >>confdefs.h <<_ACEOF
  20297. #define HAVE_ATTRIBUTE_deprecated 1
  20298. _ACEOF
  20299. else
  20300. $as_echo "$as_me: failed program was:" >&5
  20301. sed 's/^/| /' conftest.$ac_ext >&5
  20302. { $as_echo "$as_me:$LINENO: result: no" >&5
  20303. $as_echo "no" >&6; }
  20304. fi
  20305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20306. fi
  20307. CFLAGS="$saved_CFLAGS"
  20308. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
  20309. $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
  20310. saved_CFLAGS="$CFLAGS"
  20311. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20312. if test "x" = "x"
  20313. then
  20314. cat >conftest.$ac_ext <<_ACEOF
  20315. /* confdefs.h. */
  20316. _ACEOF
  20317. cat confdefs.h >>conftest.$ac_ext
  20318. cat >>conftest.$ac_ext <<_ACEOF
  20319. /* end confdefs.h. */
  20320. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  20321. int
  20322. main ()
  20323. {
  20324. ;
  20325. return 0;
  20326. }
  20327. _ACEOF
  20328. rm -f conftest.$ac_objext
  20329. if { (ac_try="$ac_compile"
  20330. case "(($ac_try" in
  20331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20332. *) ac_try_echo=$ac_try;;
  20333. esac
  20334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20335. $as_echo "$ac_try_echo") >&5
  20336. (eval "$ac_compile") 2>conftest.er1
  20337. ac_status=$?
  20338. grep -v '^ *+' conftest.er1 >conftest.err
  20339. rm -f conftest.er1
  20340. cat conftest.err >&5
  20341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20342. (exit $ac_status); } && {
  20343. test -z "$ac_c_werror_flag" ||
  20344. test ! -s conftest.err
  20345. } && test -s conftest.$ac_objext; then
  20346. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20347. $as_echo "yes" >&6; }
  20348. cat >>confdefs.h <<_ACEOF
  20349. #define HAVE_ATTRIBUTE_sentinel 1
  20350. _ACEOF
  20351. else
  20352. $as_echo "$as_me: failed program was:" >&5
  20353. sed 's/^/| /' conftest.$ac_ext >&5
  20354. { $as_echo "$as_me:$LINENO: result: no" >&5
  20355. $as_echo "no" >&6; }
  20356. fi
  20357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20358. else
  20359. cat >conftest.$ac_ext <<_ACEOF
  20360. /* confdefs.h. */
  20361. _ACEOF
  20362. cat confdefs.h >>conftest.$ac_ext
  20363. cat >>conftest.$ac_ext <<_ACEOF
  20364. /* end confdefs.h. */
  20365. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20366. int
  20367. main ()
  20368. {
  20369. ;
  20370. return 0;
  20371. }
  20372. _ACEOF
  20373. rm -f conftest.$ac_objext
  20374. if { (ac_try="$ac_compile"
  20375. case "(($ac_try" in
  20376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20377. *) ac_try_echo=$ac_try;;
  20378. esac
  20379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20380. $as_echo "$ac_try_echo") >&5
  20381. (eval "$ac_compile") 2>conftest.er1
  20382. ac_status=$?
  20383. grep -v '^ *+' conftest.er1 >conftest.err
  20384. rm -f conftest.er1
  20385. cat conftest.err >&5
  20386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20387. (exit $ac_status); } && {
  20388. test -z "$ac_c_werror_flag" ||
  20389. test ! -s conftest.err
  20390. } && test -s conftest.$ac_objext; then
  20391. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20392. $as_echo "yes" >&6; }
  20393. cat >>confdefs.h <<_ACEOF
  20394. #define HAVE_ATTRIBUTE_sentinel 1
  20395. _ACEOF
  20396. else
  20397. $as_echo "$as_me: failed program was:" >&5
  20398. sed 's/^/| /' conftest.$ac_ext >&5
  20399. { $as_echo "$as_me:$LINENO: result: no" >&5
  20400. $as_echo "no" >&6; }
  20401. fi
  20402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20403. fi
  20404. CFLAGS="$saved_CFLAGS"
  20405. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute warn_unused_result' support" >&5
  20406. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  20407. saved_CFLAGS="$CFLAGS"
  20408. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20409. if test "x" = "x"
  20410. then
  20411. cat >conftest.$ac_ext <<_ACEOF
  20412. /* confdefs.h. */
  20413. _ACEOF
  20414. cat confdefs.h >>conftest.$ac_ext
  20415. cat >>conftest.$ac_ext <<_ACEOF
  20416. /* end confdefs.h. */
  20417. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  20418. int
  20419. main ()
  20420. {
  20421. ;
  20422. return 0;
  20423. }
  20424. _ACEOF
  20425. rm -f conftest.$ac_objext
  20426. if { (ac_try="$ac_compile"
  20427. case "(($ac_try" in
  20428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20429. *) ac_try_echo=$ac_try;;
  20430. esac
  20431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20432. $as_echo "$ac_try_echo") >&5
  20433. (eval "$ac_compile") 2>conftest.er1
  20434. ac_status=$?
  20435. grep -v '^ *+' conftest.er1 >conftest.err
  20436. rm -f conftest.er1
  20437. cat conftest.err >&5
  20438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20439. (exit $ac_status); } && {
  20440. test -z "$ac_c_werror_flag" ||
  20441. test ! -s conftest.err
  20442. } && test -s conftest.$ac_objext; then
  20443. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20444. $as_echo "yes" >&6; }
  20445. cat >>confdefs.h <<_ACEOF
  20446. #define HAVE_ATTRIBUTE_warn_unused_result 1
  20447. _ACEOF
  20448. else
  20449. $as_echo "$as_me: failed program was:" >&5
  20450. sed 's/^/| /' conftest.$ac_ext >&5
  20451. { $as_echo "$as_me:$LINENO: result: no" >&5
  20452. $as_echo "no" >&6; }
  20453. fi
  20454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20455. else
  20456. cat >conftest.$ac_ext <<_ACEOF
  20457. /* confdefs.h. */
  20458. _ACEOF
  20459. cat confdefs.h >>conftest.$ac_ext
  20460. cat >>conftest.$ac_ext <<_ACEOF
  20461. /* end confdefs.h. */
  20462. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20463. int
  20464. main ()
  20465. {
  20466. ;
  20467. return 0;
  20468. }
  20469. _ACEOF
  20470. rm -f conftest.$ac_objext
  20471. if { (ac_try="$ac_compile"
  20472. case "(($ac_try" in
  20473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20474. *) ac_try_echo=$ac_try;;
  20475. esac
  20476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20477. $as_echo "$ac_try_echo") >&5
  20478. (eval "$ac_compile") 2>conftest.er1
  20479. ac_status=$?
  20480. grep -v '^ *+' conftest.er1 >conftest.err
  20481. rm -f conftest.er1
  20482. cat conftest.err >&5
  20483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20484. (exit $ac_status); } && {
  20485. test -z "$ac_c_werror_flag" ||
  20486. test ! -s conftest.err
  20487. } && test -s conftest.$ac_objext; then
  20488. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20489. $as_echo "yes" >&6; }
  20490. cat >>confdefs.h <<_ACEOF
  20491. #define HAVE_ATTRIBUTE_warn_unused_result 1
  20492. _ACEOF
  20493. else
  20494. $as_echo "$as_me: failed program was:" >&5
  20495. sed 's/^/| /' conftest.$ac_ext >&5
  20496. { $as_echo "$as_me:$LINENO: result: no" >&5
  20497. $as_echo "no" >&6; }
  20498. fi
  20499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20500. fi
  20501. CFLAGS="$saved_CFLAGS"
  20502. # Support weak symbols on a platform specific basis. The Mac OS X
  20503. # (Darwin) support must be isolated from the other platforms because
  20504. # it has caused other platforms to fail.
  20505. #
  20506. case "${OSARCH}" in
  20507. darwin*)
  20508. # Allow weak symbol support on Darwin platforms only because there
  20509. # is active community support for it.
  20510. # However, Darwin seems to break weak symbols for each new version.
  20511. #
  20512. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weak_import' support" >&5
  20513. $as_echo_n "checking for compiler 'attribute weak_import' support... " >&6; }
  20514. saved_CFLAGS="$CFLAGS"
  20515. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20516. PBX_WEAKREF=0
  20517. if test "x" = "x"
  20518. then
  20519. cat >conftest.$ac_ext <<_ACEOF
  20520. /* confdefs.h. */
  20521. _ACEOF
  20522. cat confdefs.h >>conftest.$ac_ext
  20523. cat >>conftest.$ac_ext <<_ACEOF
  20524. /* end confdefs.h. */
  20525. void __attribute__((weak_import)) *test(void *muffin, ...) {return (void *) 0;}
  20526. int
  20527. main ()
  20528. {
  20529. ;
  20530. return 0;
  20531. }
  20532. _ACEOF
  20533. rm -f conftest.$ac_objext
  20534. if { (ac_try="$ac_compile"
  20535. case "(($ac_try" in
  20536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20537. *) ac_try_echo=$ac_try;;
  20538. esac
  20539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20540. $as_echo "$ac_try_echo") >&5
  20541. (eval "$ac_compile") 2>conftest.er1
  20542. ac_status=$?
  20543. grep -v '^ *+' conftest.er1 >conftest.err
  20544. rm -f conftest.er1
  20545. cat conftest.err >&5
  20546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20547. (exit $ac_status); } && {
  20548. test -z "$ac_c_werror_flag" ||
  20549. test ! -s conftest.err
  20550. } && test -s conftest.$ac_objext; then
  20551. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20552. $as_echo "yes" >&6; }
  20553. PBX_WEAKREF=1
  20554. cat >>confdefs.h <<_ACEOF
  20555. #define HAVE_ATTRIBUTE_weak_import 1
  20556. _ACEOF
  20557. else
  20558. $as_echo "$as_me: failed program was:" >&5
  20559. sed 's/^/| /' conftest.$ac_ext >&5
  20560. { $as_echo "$as_me:$LINENO: result: no" >&5
  20561. $as_echo "no" >&6; }
  20562. fi
  20563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20564. else
  20565. cat >conftest.$ac_ext <<_ACEOF
  20566. /* confdefs.h. */
  20567. _ACEOF
  20568. cat confdefs.h >>conftest.$ac_ext
  20569. cat >>conftest.$ac_ext <<_ACEOF
  20570. /* end confdefs.h. */
  20571. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20572. int
  20573. main ()
  20574. {
  20575. ;
  20576. return 0;
  20577. }
  20578. _ACEOF
  20579. rm -f conftest.$ac_objext
  20580. if { (ac_try="$ac_compile"
  20581. case "(($ac_try" in
  20582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20583. *) ac_try_echo=$ac_try;;
  20584. esac
  20585. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20586. $as_echo "$ac_try_echo") >&5
  20587. (eval "$ac_compile") 2>conftest.er1
  20588. ac_status=$?
  20589. grep -v '^ *+' conftest.er1 >conftest.err
  20590. rm -f conftest.er1
  20591. cat conftest.err >&5
  20592. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20593. (exit $ac_status); } && {
  20594. test -z "$ac_c_werror_flag" ||
  20595. test ! -s conftest.err
  20596. } && test -s conftest.$ac_objext; then
  20597. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20598. $as_echo "yes" >&6; }
  20599. PBX_WEAKREF=1
  20600. cat >>confdefs.h <<_ACEOF
  20601. #define HAVE_ATTRIBUTE_weak_import 1
  20602. _ACEOF
  20603. else
  20604. $as_echo "$as_me: failed program was:" >&5
  20605. sed 's/^/| /' conftest.$ac_ext >&5
  20606. { $as_echo "$as_me:$LINENO: result: no" >&5
  20607. $as_echo "no" >&6; }
  20608. fi
  20609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20610. fi
  20611. CFLAGS="$saved_CFLAGS"
  20612. # Several other platforms including Linux have GCC versions that
  20613. # define the weak attribute. However, this attribute is only
  20614. # setup for use in the code by Darwin.
  20615. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weak' support" >&5
  20616. $as_echo_n "checking for compiler 'attribute weak' support... " >&6; }
  20617. saved_CFLAGS="$CFLAGS"
  20618. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20619. PBX_WEAKREF=0
  20620. if test "x" = "x"
  20621. then
  20622. cat >conftest.$ac_ext <<_ACEOF
  20623. /* confdefs.h. */
  20624. _ACEOF
  20625. cat confdefs.h >>conftest.$ac_ext
  20626. cat >>conftest.$ac_ext <<_ACEOF
  20627. /* end confdefs.h. */
  20628. void __attribute__((weak)) *test(void *muffin, ...) {return (void *) 0;}
  20629. int
  20630. main ()
  20631. {
  20632. ;
  20633. return 0;
  20634. }
  20635. _ACEOF
  20636. rm -f conftest.$ac_objext
  20637. if { (ac_try="$ac_compile"
  20638. case "(($ac_try" in
  20639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20640. *) ac_try_echo=$ac_try;;
  20641. esac
  20642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20643. $as_echo "$ac_try_echo") >&5
  20644. (eval "$ac_compile") 2>conftest.er1
  20645. ac_status=$?
  20646. grep -v '^ *+' conftest.er1 >conftest.err
  20647. rm -f conftest.er1
  20648. cat conftest.err >&5
  20649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20650. (exit $ac_status); } && {
  20651. test -z "$ac_c_werror_flag" ||
  20652. test ! -s conftest.err
  20653. } && test -s conftest.$ac_objext; then
  20654. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20655. $as_echo "yes" >&6; }
  20656. PBX_WEAKREF=1
  20657. cat >>confdefs.h <<_ACEOF
  20658. #define HAVE_ATTRIBUTE_weak 1
  20659. _ACEOF
  20660. else
  20661. $as_echo "$as_me: failed program was:" >&5
  20662. sed 's/^/| /' conftest.$ac_ext >&5
  20663. { $as_echo "$as_me:$LINENO: result: no" >&5
  20664. $as_echo "no" >&6; }
  20665. fi
  20666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20667. else
  20668. cat >conftest.$ac_ext <<_ACEOF
  20669. /* confdefs.h. */
  20670. _ACEOF
  20671. cat confdefs.h >>conftest.$ac_ext
  20672. cat >>conftest.$ac_ext <<_ACEOF
  20673. /* end confdefs.h. */
  20674. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  20675. int
  20676. main ()
  20677. {
  20678. ;
  20679. return 0;
  20680. }
  20681. _ACEOF
  20682. rm -f conftest.$ac_objext
  20683. if { (ac_try="$ac_compile"
  20684. case "(($ac_try" in
  20685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20686. *) ac_try_echo=$ac_try;;
  20687. esac
  20688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20689. $as_echo "$ac_try_echo") >&5
  20690. (eval "$ac_compile") 2>conftest.er1
  20691. ac_status=$?
  20692. grep -v '^ *+' conftest.er1 >conftest.err
  20693. rm -f conftest.er1
  20694. cat conftest.err >&5
  20695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20696. (exit $ac_status); } && {
  20697. test -z "$ac_c_werror_flag" ||
  20698. test ! -s conftest.err
  20699. } && test -s conftest.$ac_objext; then
  20700. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20701. $as_echo "yes" >&6; }
  20702. PBX_WEAKREF=1
  20703. cat >>confdefs.h <<_ACEOF
  20704. #define HAVE_ATTRIBUTE_weak 1
  20705. _ACEOF
  20706. else
  20707. $as_echo "$as_me: failed program was:" >&5
  20708. sed 's/^/| /' conftest.$ac_ext >&5
  20709. { $as_echo "$as_me:$LINENO: result: no" >&5
  20710. $as_echo "no" >&6; }
  20711. fi
  20712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20713. fi
  20714. CFLAGS="$saved_CFLAGS"
  20715. ;;
  20716. linux-gnu)
  20717. # Primarily support weak symbols on Linux platforms.
  20718. #
  20719. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weakref' support" >&5
  20720. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  20721. saved_CFLAGS="$CFLAGS"
  20722. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20723. PBX_WEAKREF=0
  20724. if test "xweakref("foo")" = "x"
  20725. then
  20726. cat >conftest.$ac_ext <<_ACEOF
  20727. /* confdefs.h. */
  20728. _ACEOF
  20729. cat confdefs.h >>conftest.$ac_ext
  20730. cat >>conftest.$ac_ext <<_ACEOF
  20731. /* end confdefs.h. */
  20732. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  20733. int
  20734. main ()
  20735. {
  20736. ;
  20737. return 0;
  20738. }
  20739. _ACEOF
  20740. rm -f conftest.$ac_objext
  20741. if { (ac_try="$ac_compile"
  20742. case "(($ac_try" in
  20743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20744. *) ac_try_echo=$ac_try;;
  20745. esac
  20746. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20747. $as_echo "$ac_try_echo") >&5
  20748. (eval "$ac_compile") 2>conftest.er1
  20749. ac_status=$?
  20750. grep -v '^ *+' conftest.er1 >conftest.err
  20751. rm -f conftest.er1
  20752. cat conftest.err >&5
  20753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20754. (exit $ac_status); } && {
  20755. test -z "$ac_c_werror_flag" ||
  20756. test ! -s conftest.err
  20757. } && test -s conftest.$ac_objext; then
  20758. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20759. $as_echo "yes" >&6; }
  20760. PBX_WEAKREF=1
  20761. cat >>confdefs.h <<_ACEOF
  20762. #define HAVE_ATTRIBUTE_weakref 1
  20763. _ACEOF
  20764. else
  20765. $as_echo "$as_me: failed program was:" >&5
  20766. sed 's/^/| /' conftest.$ac_ext >&5
  20767. { $as_echo "$as_me:$LINENO: result: no" >&5
  20768. $as_echo "no" >&6; }
  20769. fi
  20770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20771. else
  20772. cat >conftest.$ac_ext <<_ACEOF
  20773. /* confdefs.h. */
  20774. _ACEOF
  20775. cat confdefs.h >>conftest.$ac_ext
  20776. cat >>conftest.$ac_ext <<_ACEOF
  20777. /* end confdefs.h. */
  20778. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  20779. int
  20780. main ()
  20781. {
  20782. ;
  20783. return 0;
  20784. }
  20785. _ACEOF
  20786. rm -f conftest.$ac_objext
  20787. if { (ac_try="$ac_compile"
  20788. case "(($ac_try" in
  20789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20790. *) ac_try_echo=$ac_try;;
  20791. esac
  20792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20793. $as_echo "$ac_try_echo") >&5
  20794. (eval "$ac_compile") 2>conftest.er1
  20795. ac_status=$?
  20796. grep -v '^ *+' conftest.er1 >conftest.err
  20797. rm -f conftest.er1
  20798. cat conftest.err >&5
  20799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20800. (exit $ac_status); } && {
  20801. test -z "$ac_c_werror_flag" ||
  20802. test ! -s conftest.err
  20803. } && test -s conftest.$ac_objext; then
  20804. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20805. $as_echo "yes" >&6; }
  20806. PBX_WEAKREF=1
  20807. cat >>confdefs.h <<_ACEOF
  20808. #define HAVE_ATTRIBUTE_weakref 1
  20809. _ACEOF
  20810. else
  20811. $as_echo "$as_me: failed program was:" >&5
  20812. sed 's/^/| /' conftest.$ac_ext >&5
  20813. { $as_echo "$as_me:$LINENO: result: no" >&5
  20814. $as_echo "no" >&6; }
  20815. fi
  20816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20817. fi
  20818. CFLAGS="$saved_CFLAGS"
  20819. ;;
  20820. *)
  20821. # Allow weak symbols on other platforms. However, any problems
  20822. # with this feature on other platforms must be fixed by the
  20823. # community.
  20824. #
  20825. { $as_echo "$as_me:$LINENO: checking for compiler 'attribute weakref' support" >&5
  20826. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  20827. saved_CFLAGS="$CFLAGS"
  20828. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  20829. PBX_WEAKREF=0
  20830. if test "xweakref("foo")" = "x"
  20831. then
  20832. cat >conftest.$ac_ext <<_ACEOF
  20833. /* confdefs.h. */
  20834. _ACEOF
  20835. cat confdefs.h >>conftest.$ac_ext
  20836. cat >>conftest.$ac_ext <<_ACEOF
  20837. /* end confdefs.h. */
  20838. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  20839. int
  20840. main ()
  20841. {
  20842. ;
  20843. return 0;
  20844. }
  20845. _ACEOF
  20846. rm -f conftest.$ac_objext
  20847. if { (ac_try="$ac_compile"
  20848. case "(($ac_try" in
  20849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20850. *) ac_try_echo=$ac_try;;
  20851. esac
  20852. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20853. $as_echo "$ac_try_echo") >&5
  20854. (eval "$ac_compile") 2>conftest.er1
  20855. ac_status=$?
  20856. grep -v '^ *+' conftest.er1 >conftest.err
  20857. rm -f conftest.er1
  20858. cat conftest.err >&5
  20859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20860. (exit $ac_status); } && {
  20861. test -z "$ac_c_werror_flag" ||
  20862. test ! -s conftest.err
  20863. } && test -s conftest.$ac_objext; then
  20864. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20865. $as_echo "yes" >&6; }
  20866. PBX_WEAKREF=1
  20867. cat >>confdefs.h <<_ACEOF
  20868. #define HAVE_ATTRIBUTE_weakref 1
  20869. _ACEOF
  20870. else
  20871. $as_echo "$as_me: failed program was:" >&5
  20872. sed 's/^/| /' conftest.$ac_ext >&5
  20873. { $as_echo "$as_me:$LINENO: result: no" >&5
  20874. $as_echo "no" >&6; }
  20875. fi
  20876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20877. else
  20878. cat >conftest.$ac_ext <<_ACEOF
  20879. /* confdefs.h. */
  20880. _ACEOF
  20881. cat confdefs.h >>conftest.$ac_ext
  20882. cat >>conftest.$ac_ext <<_ACEOF
  20883. /* end confdefs.h. */
  20884. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  20885. int
  20886. main ()
  20887. {
  20888. ;
  20889. return 0;
  20890. }
  20891. _ACEOF
  20892. rm -f conftest.$ac_objext
  20893. if { (ac_try="$ac_compile"
  20894. case "(($ac_try" in
  20895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20896. *) ac_try_echo=$ac_try;;
  20897. esac
  20898. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20899. $as_echo "$ac_try_echo") >&5
  20900. (eval "$ac_compile") 2>conftest.er1
  20901. ac_status=$?
  20902. grep -v '^ *+' conftest.er1 >conftest.err
  20903. rm -f conftest.er1
  20904. cat conftest.err >&5
  20905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20906. (exit $ac_status); } && {
  20907. test -z "$ac_c_werror_flag" ||
  20908. test ! -s conftest.err
  20909. } && test -s conftest.$ac_objext; then
  20910. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20911. $as_echo "yes" >&6; }
  20912. PBX_WEAKREF=1
  20913. cat >>confdefs.h <<_ACEOF
  20914. #define HAVE_ATTRIBUTE_weakref 1
  20915. _ACEOF
  20916. else
  20917. $as_echo "$as_me: failed program was:" >&5
  20918. sed 's/^/| /' conftest.$ac_ext >&5
  20919. { $as_echo "$as_me:$LINENO: result: no" >&5
  20920. $as_echo "no" >&6; }
  20921. fi
  20922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20923. fi
  20924. CFLAGS="$saved_CFLAGS"
  20925. ;;
  20926. esac
  20927. { $as_echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
  20928. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  20929. saved_CFLAGS="${CFLAGS}"
  20930. CFLAGS="${CFLAGS} -ffunction-sections"
  20931. cat >conftest.$ac_ext <<_ACEOF
  20932. /* confdefs.h. */
  20933. _ACEOF
  20934. cat confdefs.h >>conftest.$ac_ext
  20935. cat >>conftest.$ac_ext <<_ACEOF
  20936. /* end confdefs.h. */
  20937. int
  20938. main ()
  20939. {
  20940. int x = 1;
  20941. ;
  20942. return 0;
  20943. }
  20944. _ACEOF
  20945. rm -f conftest.$ac_objext
  20946. if { (ac_try="$ac_compile"
  20947. case "(($ac_try" in
  20948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20949. *) ac_try_echo=$ac_try;;
  20950. esac
  20951. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20952. $as_echo "$ac_try_echo") >&5
  20953. (eval "$ac_compile") 2>conftest.er1
  20954. ac_status=$?
  20955. grep -v '^ *+' conftest.er1 >conftest.err
  20956. rm -f conftest.er1
  20957. cat conftest.err >&5
  20958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20959. (exit $ac_status); } && {
  20960. test -z "$ac_c_werror_flag" ||
  20961. test ! -s conftest.err
  20962. } && test -s conftest.$ac_objext; then
  20963. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20964. $as_echo "yes" >&6; }
  20965. saved_LDFLAGS="${LDFLAGS}"
  20966. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  20967. { $as_echo "$as_me:$LINENO: checking for --gc-sections support" >&5
  20968. $as_echo_n "checking for --gc-sections support... " >&6; }
  20969. cat >conftest.$ac_ext <<_ACEOF
  20970. /* confdefs.h. */
  20971. _ACEOF
  20972. cat confdefs.h >>conftest.$ac_ext
  20973. cat >>conftest.$ac_ext <<_ACEOF
  20974. /* end confdefs.h. */
  20975. int
  20976. main ()
  20977. {
  20978. int x = 1;
  20979. ;
  20980. return 0;
  20981. }
  20982. _ACEOF
  20983. rm -f conftest.$ac_objext conftest$ac_exeext
  20984. if { (ac_try="$ac_link"
  20985. case "(($ac_try" in
  20986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20987. *) ac_try_echo=$ac_try;;
  20988. esac
  20989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20990. $as_echo "$ac_try_echo") >&5
  20991. (eval "$ac_link") 2>conftest.er1
  20992. ac_status=$?
  20993. grep -v '^ *+' conftest.er1 >conftest.err
  20994. rm -f conftest.er1
  20995. cat conftest.err >&5
  20996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20997. (exit $ac_status); } && {
  20998. test -z "$ac_c_werror_flag" ||
  20999. test ! -s conftest.err
  21000. } && test -s conftest$ac_exeext && {
  21001. test "$cross_compiling" = yes ||
  21002. $as_test_x conftest$ac_exeext
  21003. }; then
  21004. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21005. $as_echo "yes" >&6; }
  21006. GC_CFLAGS="-ffunction-sections"
  21007. GC_LDFLAGS="-Wl,--gc-sections"
  21008. else
  21009. $as_echo "$as_me: failed program was:" >&5
  21010. sed 's/^/| /' conftest.$ac_ext >&5
  21011. { $as_echo "$as_me:$LINENO: result: no" >&5
  21012. $as_echo "no" >&6; }
  21013. fi
  21014. rm -rf conftest.dSYM
  21015. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21016. conftest$ac_exeext conftest.$ac_ext
  21017. LDFLAGS="${saved_LDFLAGS}"
  21018. else
  21019. $as_echo "$as_me: failed program was:" >&5
  21020. sed 's/^/| /' conftest.$ac_ext >&5
  21021. { $as_echo "$as_me:$LINENO: result: no" >&5
  21022. $as_echo "no" >&6; }
  21023. fi
  21024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21025. CFLAGS="${saved_CFLAGS}"
  21026. { $as_echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
  21027. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  21028. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  21029. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21030. $as_echo "yes" >&6; }
  21031. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  21032. else
  21033. { $as_echo "$as_me:$LINENO: result: no" >&5
  21034. $as_echo "no" >&6; }
  21035. AST_DECLARATION_AFTER_STATEMENT=
  21036. fi
  21037. { $as_echo "$as_me:$LINENO: checking for _FORTIFY_SOURCE support" >&5
  21038. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  21039. if $(${CC} -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  21040. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21041. $as_echo "yes" >&6; }
  21042. AST_FORTIFY_SOURCE=-D_FORTIFY_SOURCE=2
  21043. else
  21044. { $as_echo "$as_me:$LINENO: result: no" >&5
  21045. $as_echo "no" >&6; }
  21046. AST_FORTIFY_SOURCE=
  21047. fi
  21048. { $as_echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
  21049. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  21050. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  21051. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21052. $as_echo "yes" >&6; }
  21053. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  21054. else
  21055. { $as_echo "$as_me:$LINENO: result: no" >&5
  21056. $as_echo "no" >&6; }
  21057. AST_NO_STRICT_OVERFLOW=
  21058. fi
  21059. { $as_echo "$as_me:$LINENO: checking for -Wshadow" >&5
  21060. $as_echo_n "checking for -Wshadow... " >&6; }
  21061. if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  21062. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21063. $as_echo "yes" >&6; }
  21064. AST_SHADOW_WARNINGS=-Wshadow
  21065. else
  21066. { $as_echo "$as_me:$LINENO: result: no" >&5
  21067. $as_echo "no" >&6; }
  21068. AST_SHADOW_WARNINGS=
  21069. fi
  21070. { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
  21071. $as_echo_n "checking for sysinfo... " >&6; }
  21072. cat >conftest.$ac_ext <<_ACEOF
  21073. /* confdefs.h. */
  21074. _ACEOF
  21075. cat confdefs.h >>conftest.$ac_ext
  21076. cat >>conftest.$ac_ext <<_ACEOF
  21077. /* end confdefs.h. */
  21078. #include <sys/sysinfo.h>
  21079. int
  21080. main ()
  21081. {
  21082. struct sysinfo sys_info; int uptime = sys_info.uptime
  21083. ;
  21084. return 0;
  21085. }
  21086. _ACEOF
  21087. rm -f conftest.$ac_objext conftest$ac_exeext
  21088. if { (ac_try="$ac_link"
  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_link") 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_exeext && {
  21105. test "$cross_compiling" = yes ||
  21106. $as_test_x conftest$ac_exeext
  21107. }; then
  21108. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21109. $as_echo "yes" >&6; }
  21110. cat >>confdefs.h <<\_ACEOF
  21111. #define HAVE_SYSINFO 1
  21112. _ACEOF
  21113. else
  21114. $as_echo "$as_me: failed program was:" >&5
  21115. sed 's/^/| /' conftest.$ac_ext >&5
  21116. { $as_echo "$as_me:$LINENO: result: no" >&5
  21117. $as_echo "no" >&6; }
  21118. fi
  21119. rm -rf conftest.dSYM
  21120. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21121. conftest$ac_exeext conftest.$ac_ext
  21122. { $as_echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
  21123. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  21124. if test "${ac_cv_search_res_9_ninit+set}" = set; then
  21125. $as_echo_n "(cached) " >&6
  21126. else
  21127. ac_func_search_save_LIBS=$LIBS
  21128. cat >conftest.$ac_ext <<_ACEOF
  21129. /* confdefs.h. */
  21130. _ACEOF
  21131. cat confdefs.h >>conftest.$ac_ext
  21132. cat >>conftest.$ac_ext <<_ACEOF
  21133. /* end confdefs.h. */
  21134. /* Override any GCC internal prototype to avoid an error.
  21135. Use char because int might match the return type of a GCC
  21136. builtin and then its argument prototype would still apply. */
  21137. #ifdef __cplusplus
  21138. extern "C"
  21139. #endif
  21140. char res_9_ninit ();
  21141. int
  21142. main ()
  21143. {
  21144. return res_9_ninit ();
  21145. ;
  21146. return 0;
  21147. }
  21148. _ACEOF
  21149. for ac_lib in '' resolv; do
  21150. if test -z "$ac_lib"; then
  21151. ac_res="none required"
  21152. else
  21153. ac_res=-l$ac_lib
  21154. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21155. fi
  21156. rm -f conftest.$ac_objext conftest$ac_exeext
  21157. if { (ac_try="$ac_link"
  21158. case "(($ac_try" in
  21159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21160. *) ac_try_echo=$ac_try;;
  21161. esac
  21162. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21163. $as_echo "$ac_try_echo") >&5
  21164. (eval "$ac_link") 2>conftest.er1
  21165. ac_status=$?
  21166. grep -v '^ *+' conftest.er1 >conftest.err
  21167. rm -f conftest.er1
  21168. cat conftest.err >&5
  21169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21170. (exit $ac_status); } && {
  21171. test -z "$ac_c_werror_flag" ||
  21172. test ! -s conftest.err
  21173. } && test -s conftest$ac_exeext && {
  21174. test "$cross_compiling" = yes ||
  21175. $as_test_x conftest$ac_exeext
  21176. }; then
  21177. ac_cv_search_res_9_ninit=$ac_res
  21178. else
  21179. $as_echo "$as_me: failed program was:" >&5
  21180. sed 's/^/| /' conftest.$ac_ext >&5
  21181. fi
  21182. rm -rf conftest.dSYM
  21183. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21184. conftest$ac_exeext
  21185. if test "${ac_cv_search_res_9_ninit+set}" = set; then
  21186. break
  21187. fi
  21188. done
  21189. if test "${ac_cv_search_res_9_ninit+set}" = set; then
  21190. :
  21191. else
  21192. ac_cv_search_res_9_ninit=no
  21193. fi
  21194. rm conftest.$ac_ext
  21195. LIBS=$ac_func_search_save_LIBS
  21196. fi
  21197. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
  21198. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  21199. ac_res=$ac_cv_search_res_9_ninit
  21200. if test "$ac_res" != no; then
  21201. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21202. fi
  21203. { $as_echo "$as_me:$LINENO: checking for res_ninit" >&5
  21204. $as_echo_n "checking for res_ninit... " >&6; }
  21205. cat >conftest.$ac_ext <<_ACEOF
  21206. /* confdefs.h. */
  21207. _ACEOF
  21208. cat confdefs.h >>conftest.$ac_ext
  21209. cat >>conftest.$ac_ext <<_ACEOF
  21210. /* end confdefs.h. */
  21211. #ifdef HAVE_SYS_SOCKET_H
  21212. #include <sys/socket.h>
  21213. #endif
  21214. #ifdef HAVE_NETINET_IN_H
  21215. #include <netinet/in.h>
  21216. #endif
  21217. #ifdef HAVE_ARPA_NAMESER_H
  21218. #include <arpa/nameser.h>
  21219. #endif
  21220. #include <resolv.h>
  21221. int
  21222. main ()
  21223. {
  21224. int foo = res_ninit(NULL);
  21225. ;
  21226. return 0;
  21227. }
  21228. _ACEOF
  21229. rm -f conftest.$ac_objext conftest$ac_exeext
  21230. if { (ac_try="$ac_link"
  21231. case "(($ac_try" in
  21232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21233. *) ac_try_echo=$ac_try;;
  21234. esac
  21235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21236. $as_echo "$ac_try_echo") >&5
  21237. (eval "$ac_link") 2>conftest.er1
  21238. ac_status=$?
  21239. grep -v '^ *+' conftest.er1 >conftest.err
  21240. rm -f conftest.er1
  21241. cat conftest.err >&5
  21242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21243. (exit $ac_status); } && {
  21244. test -z "$ac_c_werror_flag" ||
  21245. test ! -s conftest.err
  21246. } && test -s conftest$ac_exeext && {
  21247. test "$cross_compiling" = yes ||
  21248. $as_test_x conftest$ac_exeext
  21249. }; then
  21250. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21251. $as_echo "yes" >&6; }
  21252. cat >>confdefs.h <<\_ACEOF
  21253. #define HAVE_RES_NINIT 1
  21254. _ACEOF
  21255. { $as_echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
  21256. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  21257. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
  21258. $as_echo_n "(cached) " >&6
  21259. else
  21260. ac_func_search_save_LIBS=$LIBS
  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. /* Override any GCC internal prototype to avoid an error.
  21268. Use char because int might match the return type of a GCC
  21269. builtin and then its argument prototype would still apply. */
  21270. #ifdef __cplusplus
  21271. extern "C"
  21272. #endif
  21273. char res_9_ndestroy ();
  21274. int
  21275. main ()
  21276. {
  21277. return res_9_ndestroy ();
  21278. ;
  21279. return 0;
  21280. }
  21281. _ACEOF
  21282. for ac_lib in '' resolv; do
  21283. if test -z "$ac_lib"; then
  21284. ac_res="none required"
  21285. else
  21286. ac_res=-l$ac_lib
  21287. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21288. fi
  21289. rm -f conftest.$ac_objext conftest$ac_exeext
  21290. if { (ac_try="$ac_link"
  21291. case "(($ac_try" in
  21292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21293. *) ac_try_echo=$ac_try;;
  21294. esac
  21295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21296. $as_echo "$ac_try_echo") >&5
  21297. (eval "$ac_link") 2>conftest.er1
  21298. ac_status=$?
  21299. grep -v '^ *+' conftest.er1 >conftest.err
  21300. rm -f conftest.er1
  21301. cat conftest.err >&5
  21302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21303. (exit $ac_status); } && {
  21304. test -z "$ac_c_werror_flag" ||
  21305. test ! -s conftest.err
  21306. } && test -s conftest$ac_exeext && {
  21307. test "$cross_compiling" = yes ||
  21308. $as_test_x conftest$ac_exeext
  21309. }; then
  21310. ac_cv_search_res_9_ndestroy=$ac_res
  21311. else
  21312. $as_echo "$as_me: failed program was:" >&5
  21313. sed 's/^/| /' conftest.$ac_ext >&5
  21314. fi
  21315. rm -rf conftest.dSYM
  21316. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21317. conftest$ac_exeext
  21318. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
  21319. break
  21320. fi
  21321. done
  21322. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
  21323. :
  21324. else
  21325. ac_cv_search_res_9_ndestroy=no
  21326. fi
  21327. rm conftest.$ac_ext
  21328. LIBS=$ac_func_search_save_LIBS
  21329. fi
  21330. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
  21331. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  21332. ac_res=$ac_cv_search_res_9_ndestroy
  21333. if test "$ac_res" != no; then
  21334. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21335. fi
  21336. { $as_echo "$as_me:$LINENO: checking for res_ndestroy" >&5
  21337. $as_echo_n "checking for res_ndestroy... " >&6; }
  21338. cat >conftest.$ac_ext <<_ACEOF
  21339. /* confdefs.h. */
  21340. _ACEOF
  21341. cat confdefs.h >>conftest.$ac_ext
  21342. cat >>conftest.$ac_ext <<_ACEOF
  21343. /* end confdefs.h. */
  21344. #ifdef HAVE_SYS_SOCKET_H
  21345. #include <sys/socket.h>
  21346. #endif
  21347. #ifdef HAVE_NETINET_IN_H
  21348. #include <netinet/in.h>
  21349. #endif
  21350. #ifdef HAVE_ARPA_NAMESER_H
  21351. #include <arpa/nameser.h>
  21352. #endif
  21353. #include <resolv.h>
  21354. int
  21355. main ()
  21356. {
  21357. res_ndestroy(NULL);
  21358. ;
  21359. return 0;
  21360. }
  21361. _ACEOF
  21362. rm -f conftest.$ac_objext conftest$ac_exeext
  21363. if { (ac_try="$ac_link"
  21364. case "(($ac_try" in
  21365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21366. *) ac_try_echo=$ac_try;;
  21367. esac
  21368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21369. $as_echo "$ac_try_echo") >&5
  21370. (eval "$ac_link") 2>conftest.er1
  21371. ac_status=$?
  21372. grep -v '^ *+' conftest.er1 >conftest.err
  21373. rm -f conftest.er1
  21374. cat conftest.err >&5
  21375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21376. (exit $ac_status); } && {
  21377. test -z "$ac_c_werror_flag" ||
  21378. test ! -s conftest.err
  21379. } && test -s conftest$ac_exeext && {
  21380. test "$cross_compiling" = yes ||
  21381. $as_test_x conftest$ac_exeext
  21382. }; then
  21383. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21384. $as_echo "yes" >&6; }
  21385. cat >>confdefs.h <<\_ACEOF
  21386. #define HAVE_RES_NDESTROY 1
  21387. _ACEOF
  21388. else
  21389. $as_echo "$as_me: failed program was:" >&5
  21390. sed 's/^/| /' conftest.$ac_ext >&5
  21391. { $as_echo "$as_me:$LINENO: result: no" >&5
  21392. $as_echo "no" >&6; }
  21393. fi
  21394. rm -rf conftest.dSYM
  21395. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21396. conftest$ac_exeext conftest.$ac_ext
  21397. { $as_echo "$as_me:$LINENO: checking for library containing res_9_close" >&5
  21398. $as_echo_n "checking for library containing res_9_close... " >&6; }
  21399. if test "${ac_cv_search_res_9_close+set}" = set; then
  21400. $as_echo_n "(cached) " >&6
  21401. else
  21402. ac_func_search_save_LIBS=$LIBS
  21403. cat >conftest.$ac_ext <<_ACEOF
  21404. /* confdefs.h. */
  21405. _ACEOF
  21406. cat confdefs.h >>conftest.$ac_ext
  21407. cat >>conftest.$ac_ext <<_ACEOF
  21408. /* end confdefs.h. */
  21409. /* Override any GCC internal prototype to avoid an error.
  21410. Use char because int might match the return type of a GCC
  21411. builtin and then its argument prototype would still apply. */
  21412. #ifdef __cplusplus
  21413. extern "C"
  21414. #endif
  21415. char res_9_close ();
  21416. int
  21417. main ()
  21418. {
  21419. return res_9_close ();
  21420. ;
  21421. return 0;
  21422. }
  21423. _ACEOF
  21424. for ac_lib in '' resolv; do
  21425. if test -z "$ac_lib"; then
  21426. ac_res="none required"
  21427. else
  21428. ac_res=-l$ac_lib
  21429. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21430. fi
  21431. rm -f conftest.$ac_objext conftest$ac_exeext
  21432. if { (ac_try="$ac_link"
  21433. case "(($ac_try" in
  21434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21435. *) ac_try_echo=$ac_try;;
  21436. esac
  21437. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21438. $as_echo "$ac_try_echo") >&5
  21439. (eval "$ac_link") 2>conftest.er1
  21440. ac_status=$?
  21441. grep -v '^ *+' conftest.er1 >conftest.err
  21442. rm -f conftest.er1
  21443. cat conftest.err >&5
  21444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21445. (exit $ac_status); } && {
  21446. test -z "$ac_c_werror_flag" ||
  21447. test ! -s conftest.err
  21448. } && test -s conftest$ac_exeext && {
  21449. test "$cross_compiling" = yes ||
  21450. $as_test_x conftest$ac_exeext
  21451. }; then
  21452. ac_cv_search_res_9_close=$ac_res
  21453. else
  21454. $as_echo "$as_me: failed program was:" >&5
  21455. sed 's/^/| /' conftest.$ac_ext >&5
  21456. fi
  21457. rm -rf conftest.dSYM
  21458. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21459. conftest$ac_exeext
  21460. if test "${ac_cv_search_res_9_close+set}" = set; then
  21461. break
  21462. fi
  21463. done
  21464. if test "${ac_cv_search_res_9_close+set}" = set; then
  21465. :
  21466. else
  21467. ac_cv_search_res_9_close=no
  21468. fi
  21469. rm conftest.$ac_ext
  21470. LIBS=$ac_func_search_save_LIBS
  21471. fi
  21472. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_9_close" >&5
  21473. $as_echo "$ac_cv_search_res_9_close" >&6; }
  21474. ac_res=$ac_cv_search_res_9_close
  21475. if test "$ac_res" != no; then
  21476. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21477. fi
  21478. { $as_echo "$as_me:$LINENO: checking for res_close" >&5
  21479. $as_echo_n "checking for res_close... " >&6; }
  21480. cat >conftest.$ac_ext <<_ACEOF
  21481. /* confdefs.h. */
  21482. _ACEOF
  21483. cat confdefs.h >>conftest.$ac_ext
  21484. cat >>conftest.$ac_ext <<_ACEOF
  21485. /* end confdefs.h. */
  21486. #ifdef HAVE_SYS_SOCKET_H
  21487. #include <sys/socket.h>
  21488. #endif
  21489. #ifdef HAVE_NETINET_IN_H
  21490. #include <netinet/in.h>
  21491. #endif
  21492. #ifdef HAVE_ARPA_NAMESER_H
  21493. #include <arpa/nameser.h>
  21494. #endif
  21495. #include <resolv.h>
  21496. int
  21497. main ()
  21498. {
  21499. res_close();
  21500. ;
  21501. return 0;
  21502. }
  21503. _ACEOF
  21504. rm -f conftest.$ac_objext conftest$ac_exeext
  21505. if { (ac_try="$ac_link"
  21506. case "(($ac_try" in
  21507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21508. *) ac_try_echo=$ac_try;;
  21509. esac
  21510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21511. $as_echo "$ac_try_echo") >&5
  21512. (eval "$ac_link") 2>conftest.er1
  21513. ac_status=$?
  21514. grep -v '^ *+' conftest.er1 >conftest.err
  21515. rm -f conftest.er1
  21516. cat conftest.err >&5
  21517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21518. (exit $ac_status); } && {
  21519. test -z "$ac_c_werror_flag" ||
  21520. test ! -s conftest.err
  21521. } && test -s conftest$ac_exeext && {
  21522. test "$cross_compiling" = yes ||
  21523. $as_test_x conftest$ac_exeext
  21524. }; then
  21525. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21526. $as_echo "yes" >&6; }
  21527. cat >>confdefs.h <<\_ACEOF
  21528. #define HAVE_RES_CLOSE 1
  21529. _ACEOF
  21530. else
  21531. $as_echo "$as_me: failed program was:" >&5
  21532. sed 's/^/| /' conftest.$ac_ext >&5
  21533. { $as_echo "$as_me:$LINENO: result: no" >&5
  21534. $as_echo "no" >&6; }
  21535. fi
  21536. rm -rf conftest.dSYM
  21537. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21538. conftest$ac_exeext conftest.$ac_ext
  21539. else
  21540. $as_echo "$as_me: failed program was:" >&5
  21541. sed 's/^/| /' conftest.$ac_ext >&5
  21542. { $as_echo "$as_me:$LINENO: result: no" >&5
  21543. $as_echo "no" >&6; }
  21544. fi
  21545. rm -rf conftest.dSYM
  21546. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21547. conftest$ac_exeext conftest.$ac_ext
  21548. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  21549. { $as_echo "$as_me:$LINENO: checking for GLOB_NOMAGIC in glob.h" >&5
  21550. $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  21551. saved_cppflags="${CPPFLAGS}"
  21552. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  21553. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  21554. fi
  21555. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  21556. cat >conftest.$ac_ext <<_ACEOF
  21557. /* confdefs.h. */
  21558. _ACEOF
  21559. cat confdefs.h >>conftest.$ac_ext
  21560. cat >>conftest.$ac_ext <<_ACEOF
  21561. /* end confdefs.h. */
  21562. #include <glob.h>
  21563. int
  21564. main ()
  21565. {
  21566. #if defined(GLOB_NOMAGIC)
  21567. int foo = 0;
  21568. #else
  21569. int foo = bar;
  21570. #endif
  21571. 0
  21572. ;
  21573. return 0;
  21574. }
  21575. _ACEOF
  21576. rm -f conftest.$ac_objext
  21577. if { (ac_try="$ac_compile"
  21578. case "(($ac_try" in
  21579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21580. *) ac_try_echo=$ac_try;;
  21581. esac
  21582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21583. $as_echo "$ac_try_echo") >&5
  21584. (eval "$ac_compile") 2>conftest.er1
  21585. ac_status=$?
  21586. grep -v '^ *+' conftest.er1 >conftest.err
  21587. rm -f conftest.er1
  21588. cat conftest.err >&5
  21589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21590. (exit $ac_status); } && {
  21591. test -z "$ac_c_werror_flag" ||
  21592. test ! -s conftest.err
  21593. } && test -s conftest.$ac_objext; then
  21594. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21595. $as_echo "yes" >&6; }
  21596. PBX_GLOB_NOMAGIC=1
  21597. cat >>confdefs.h <<\_ACEOF
  21598. #define HAVE_GLOB_NOMAGIC 1
  21599. _ACEOF
  21600. else
  21601. $as_echo "$as_me: failed program was:" >&5
  21602. sed 's/^/| /' conftest.$ac_ext >&5
  21603. { $as_echo "$as_me:$LINENO: result: no" >&5
  21604. $as_echo "no" >&6; }
  21605. fi
  21606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21607. CPPFLAGS="${saved_cppflags}"
  21608. fi
  21609. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  21610. { $as_echo "$as_me:$LINENO: checking for GLOB_BRACE in glob.h" >&5
  21611. $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
  21612. saved_cppflags="${CPPFLAGS}"
  21613. if test "x${GLOB_BRACE_DIR}" != "x"; then
  21614. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  21615. fi
  21616. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  21617. cat >conftest.$ac_ext <<_ACEOF
  21618. /* confdefs.h. */
  21619. _ACEOF
  21620. cat confdefs.h >>conftest.$ac_ext
  21621. cat >>conftest.$ac_ext <<_ACEOF
  21622. /* end confdefs.h. */
  21623. #include <glob.h>
  21624. int
  21625. main ()
  21626. {
  21627. #if defined(GLOB_BRACE)
  21628. int foo = 0;
  21629. #else
  21630. int foo = bar;
  21631. #endif
  21632. 0
  21633. ;
  21634. return 0;
  21635. }
  21636. _ACEOF
  21637. rm -f conftest.$ac_objext
  21638. if { (ac_try="$ac_compile"
  21639. case "(($ac_try" in
  21640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21641. *) ac_try_echo=$ac_try;;
  21642. esac
  21643. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21644. $as_echo "$ac_try_echo") >&5
  21645. (eval "$ac_compile") 2>conftest.er1
  21646. ac_status=$?
  21647. grep -v '^ *+' conftest.er1 >conftest.err
  21648. rm -f conftest.er1
  21649. cat conftest.err >&5
  21650. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21651. (exit $ac_status); } && {
  21652. test -z "$ac_c_werror_flag" ||
  21653. test ! -s conftest.err
  21654. } && test -s conftest.$ac_objext; then
  21655. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21656. $as_echo "yes" >&6; }
  21657. PBX_GLOB_BRACE=1
  21658. cat >>confdefs.h <<\_ACEOF
  21659. #define HAVE_GLOB_BRACE 1
  21660. _ACEOF
  21661. else
  21662. $as_echo "$as_me: failed program was:" >&5
  21663. sed 's/^/| /' conftest.$ac_ext >&5
  21664. { $as_echo "$as_me:$LINENO: result: no" >&5
  21665. $as_echo "no" >&6; }
  21666. fi
  21667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21668. CPPFLAGS="${saved_cppflags}"
  21669. fi
  21670. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  21671. { $as_echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  21672. $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  21673. saved_cppflags="${CPPFLAGS}"
  21674. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  21675. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  21676. fi
  21677. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  21678. cat >conftest.$ac_ext <<_ACEOF
  21679. /* confdefs.h. */
  21680. _ACEOF
  21681. cat confdefs.h >>conftest.$ac_ext
  21682. cat >>conftest.$ac_ext <<_ACEOF
  21683. /* end confdefs.h. */
  21684. #include <netinet/in.h>
  21685. int
  21686. main ()
  21687. {
  21688. #if defined(IP_MTU_DISCOVER)
  21689. int foo = 0;
  21690. #else
  21691. int foo = bar;
  21692. #endif
  21693. 0
  21694. ;
  21695. return 0;
  21696. }
  21697. _ACEOF
  21698. rm -f conftest.$ac_objext
  21699. if { (ac_try="$ac_compile"
  21700. case "(($ac_try" in
  21701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21702. *) ac_try_echo=$ac_try;;
  21703. esac
  21704. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21705. $as_echo "$ac_try_echo") >&5
  21706. (eval "$ac_compile") 2>conftest.er1
  21707. ac_status=$?
  21708. grep -v '^ *+' conftest.er1 >conftest.err
  21709. rm -f conftest.er1
  21710. cat conftest.err >&5
  21711. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21712. (exit $ac_status); } && {
  21713. test -z "$ac_c_werror_flag" ||
  21714. test ! -s conftest.err
  21715. } && test -s conftest.$ac_objext; then
  21716. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21717. $as_echo "yes" >&6; }
  21718. PBX_IP_MTU_DISCOVER=1
  21719. cat >>confdefs.h <<\_ACEOF
  21720. #define HAVE_IP_MTU_DISCOVER 1
  21721. _ACEOF
  21722. else
  21723. $as_echo "$as_me: failed program was:" >&5
  21724. sed 's/^/| /' conftest.$ac_ext >&5
  21725. { $as_echo "$as_me:$LINENO: result: no" >&5
  21726. $as_echo "no" >&6; }
  21727. fi
  21728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21729. CPPFLAGS="${saved_cppflags}"
  21730. fi
  21731. if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
  21732. { $as_echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
  21733. $as_echo_n "checking for libkern/OSAtomic.h... " >&6; }
  21734. if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
  21735. $as_echo_n "(cached) " >&6
  21736. fi
  21737. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
  21738. $as_echo "$ac_cv_header_libkern_OSAtomic_h" >&6; }
  21739. else
  21740. # Is the header compilable?
  21741. { $as_echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
  21742. $as_echo_n "checking libkern/OSAtomic.h usability... " >&6; }
  21743. cat >conftest.$ac_ext <<_ACEOF
  21744. /* confdefs.h. */
  21745. _ACEOF
  21746. cat confdefs.h >>conftest.$ac_ext
  21747. cat >>conftest.$ac_ext <<_ACEOF
  21748. /* end confdefs.h. */
  21749. $ac_includes_default
  21750. #include <libkern/OSAtomic.h>
  21751. _ACEOF
  21752. rm -f conftest.$ac_objext
  21753. if { (ac_try="$ac_compile"
  21754. case "(($ac_try" in
  21755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21756. *) ac_try_echo=$ac_try;;
  21757. esac
  21758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21759. $as_echo "$ac_try_echo") >&5
  21760. (eval "$ac_compile") 2>conftest.er1
  21761. ac_status=$?
  21762. grep -v '^ *+' conftest.er1 >conftest.err
  21763. rm -f conftest.er1
  21764. cat conftest.err >&5
  21765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21766. (exit $ac_status); } && {
  21767. test -z "$ac_c_werror_flag" ||
  21768. test ! -s conftest.err
  21769. } && test -s conftest.$ac_objext; then
  21770. ac_header_compiler=yes
  21771. else
  21772. $as_echo "$as_me: failed program was:" >&5
  21773. sed 's/^/| /' conftest.$ac_ext >&5
  21774. ac_header_compiler=no
  21775. fi
  21776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21777. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21778. $as_echo "$ac_header_compiler" >&6; }
  21779. # Is the header present?
  21780. { $as_echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
  21781. $as_echo_n "checking libkern/OSAtomic.h presence... " >&6; }
  21782. cat >conftest.$ac_ext <<_ACEOF
  21783. /* confdefs.h. */
  21784. _ACEOF
  21785. cat confdefs.h >>conftest.$ac_ext
  21786. cat >>conftest.$ac_ext <<_ACEOF
  21787. /* end confdefs.h. */
  21788. #include <libkern/OSAtomic.h>
  21789. _ACEOF
  21790. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21791. case "(($ac_try" in
  21792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21793. *) ac_try_echo=$ac_try;;
  21794. esac
  21795. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21796. $as_echo "$ac_try_echo") >&5
  21797. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21798. ac_status=$?
  21799. grep -v '^ *+' conftest.er1 >conftest.err
  21800. rm -f conftest.er1
  21801. cat conftest.err >&5
  21802. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21803. (exit $ac_status); } >/dev/null && {
  21804. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21805. test ! -s conftest.err
  21806. }; then
  21807. ac_header_preproc=yes
  21808. else
  21809. $as_echo "$as_me: failed program was:" >&5
  21810. sed 's/^/| /' conftest.$ac_ext >&5
  21811. ac_header_preproc=no
  21812. fi
  21813. rm -f conftest.err conftest.$ac_ext
  21814. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21815. $as_echo "$ac_header_preproc" >&6; }
  21816. # So? What about this header?
  21817. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21818. yes:no: )
  21819. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21820. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21821. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
  21822. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
  21823. ac_header_preproc=yes
  21824. ;;
  21825. no:yes:* )
  21826. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
  21827. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
  21828. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
  21829. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
  21830. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
  21831. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
  21832. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
  21833. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21834. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
  21835. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
  21836. { $as_echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
  21837. $as_echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
  21838. ( cat <<\_ASBOX
  21839. ## ------------------------------------------ ##
  21840. ## Report this to https://issues.asterisk.org ##
  21841. ## ------------------------------------------ ##
  21842. _ASBOX
  21843. ) | sed "s/^/$as_me: WARNING: /" >&2
  21844. ;;
  21845. esac
  21846. { $as_echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
  21847. $as_echo_n "checking for libkern/OSAtomic.h... " >&6; }
  21848. if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
  21849. $as_echo_n "(cached) " >&6
  21850. else
  21851. ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
  21852. fi
  21853. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
  21854. $as_echo "$ac_cv_header_libkern_OSAtomic_h" >&6; }
  21855. fi
  21856. if test "x$ac_cv_header_libkern_OSAtomic_h" = x""yes; then
  21857. cat >>confdefs.h <<_ACEOF
  21858. #define HAVE_OSX_ATOMICS 1
  21859. _ACEOF
  21860. fi
  21861. # The cast to long int works around a bug in the HP C Compiler
  21862. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21863. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21864. # This bug is HP SR number 8606223364.
  21865. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  21866. $as_echo_n "checking size of int... " >&6; }
  21867. if test "${ac_cv_sizeof_int+set}" = set; then
  21868. $as_echo_n "(cached) " >&6
  21869. else
  21870. if test "$cross_compiling" = yes; then
  21871. # Depending upon the size, compute the lo and hi bounds.
  21872. cat >conftest.$ac_ext <<_ACEOF
  21873. /* confdefs.h. */
  21874. _ACEOF
  21875. cat confdefs.h >>conftest.$ac_ext
  21876. cat >>conftest.$ac_ext <<_ACEOF
  21877. /* end confdefs.h. */
  21878. $ac_includes_default
  21879. int
  21880. main ()
  21881. {
  21882. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  21883. test_array [0] = 0
  21884. ;
  21885. return 0;
  21886. }
  21887. _ACEOF
  21888. rm -f conftest.$ac_objext
  21889. if { (ac_try="$ac_compile"
  21890. case "(($ac_try" in
  21891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21892. *) ac_try_echo=$ac_try;;
  21893. esac
  21894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21895. $as_echo "$ac_try_echo") >&5
  21896. (eval "$ac_compile") 2>conftest.er1
  21897. ac_status=$?
  21898. grep -v '^ *+' conftest.er1 >conftest.err
  21899. rm -f conftest.er1
  21900. cat conftest.err >&5
  21901. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21902. (exit $ac_status); } && {
  21903. test -z "$ac_c_werror_flag" ||
  21904. test ! -s conftest.err
  21905. } && test -s conftest.$ac_objext; then
  21906. ac_lo=0 ac_mid=0
  21907. while :; do
  21908. cat >conftest.$ac_ext <<_ACEOF
  21909. /* confdefs.h. */
  21910. _ACEOF
  21911. cat confdefs.h >>conftest.$ac_ext
  21912. cat >>conftest.$ac_ext <<_ACEOF
  21913. /* end confdefs.h. */
  21914. $ac_includes_default
  21915. int
  21916. main ()
  21917. {
  21918. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  21919. test_array [0] = 0
  21920. ;
  21921. return 0;
  21922. }
  21923. _ACEOF
  21924. rm -f conftest.$ac_objext
  21925. if { (ac_try="$ac_compile"
  21926. case "(($ac_try" in
  21927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21928. *) ac_try_echo=$ac_try;;
  21929. esac
  21930. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21931. $as_echo "$ac_try_echo") >&5
  21932. (eval "$ac_compile") 2>conftest.er1
  21933. ac_status=$?
  21934. grep -v '^ *+' conftest.er1 >conftest.err
  21935. rm -f conftest.er1
  21936. cat conftest.err >&5
  21937. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21938. (exit $ac_status); } && {
  21939. test -z "$ac_c_werror_flag" ||
  21940. test ! -s conftest.err
  21941. } && test -s conftest.$ac_objext; then
  21942. ac_hi=$ac_mid; break
  21943. else
  21944. $as_echo "$as_me: failed program was:" >&5
  21945. sed 's/^/| /' conftest.$ac_ext >&5
  21946. ac_lo=`expr $ac_mid + 1`
  21947. if test $ac_lo -le $ac_mid; then
  21948. ac_lo= ac_hi=
  21949. break
  21950. fi
  21951. ac_mid=`expr 2 '*' $ac_mid + 1`
  21952. fi
  21953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21954. done
  21955. else
  21956. $as_echo "$as_me: failed program was:" >&5
  21957. sed 's/^/| /' conftest.$ac_ext >&5
  21958. cat >conftest.$ac_ext <<_ACEOF
  21959. /* confdefs.h. */
  21960. _ACEOF
  21961. cat confdefs.h >>conftest.$ac_ext
  21962. cat >>conftest.$ac_ext <<_ACEOF
  21963. /* end confdefs.h. */
  21964. $ac_includes_default
  21965. int
  21966. main ()
  21967. {
  21968. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  21969. test_array [0] = 0
  21970. ;
  21971. return 0;
  21972. }
  21973. _ACEOF
  21974. rm -f conftest.$ac_objext
  21975. if { (ac_try="$ac_compile"
  21976. case "(($ac_try" in
  21977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21978. *) ac_try_echo=$ac_try;;
  21979. esac
  21980. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21981. $as_echo "$ac_try_echo") >&5
  21982. (eval "$ac_compile") 2>conftest.er1
  21983. ac_status=$?
  21984. grep -v '^ *+' conftest.er1 >conftest.err
  21985. rm -f conftest.er1
  21986. cat conftest.err >&5
  21987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21988. (exit $ac_status); } && {
  21989. test -z "$ac_c_werror_flag" ||
  21990. test ! -s conftest.err
  21991. } && test -s conftest.$ac_objext; then
  21992. ac_hi=-1 ac_mid=-1
  21993. while :; do
  21994. cat >conftest.$ac_ext <<_ACEOF
  21995. /* confdefs.h. */
  21996. _ACEOF
  21997. cat confdefs.h >>conftest.$ac_ext
  21998. cat >>conftest.$ac_ext <<_ACEOF
  21999. /* end confdefs.h. */
  22000. $ac_includes_default
  22001. int
  22002. main ()
  22003. {
  22004. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  22005. test_array [0] = 0
  22006. ;
  22007. return 0;
  22008. }
  22009. _ACEOF
  22010. rm -f conftest.$ac_objext
  22011. if { (ac_try="$ac_compile"
  22012. case "(($ac_try" in
  22013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22014. *) ac_try_echo=$ac_try;;
  22015. esac
  22016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22017. $as_echo "$ac_try_echo") >&5
  22018. (eval "$ac_compile") 2>conftest.er1
  22019. ac_status=$?
  22020. grep -v '^ *+' conftest.er1 >conftest.err
  22021. rm -f conftest.er1
  22022. cat conftest.err >&5
  22023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22024. (exit $ac_status); } && {
  22025. test -z "$ac_c_werror_flag" ||
  22026. test ! -s conftest.err
  22027. } && test -s conftest.$ac_objext; then
  22028. ac_lo=$ac_mid; break
  22029. else
  22030. $as_echo "$as_me: failed program was:" >&5
  22031. sed 's/^/| /' conftest.$ac_ext >&5
  22032. ac_hi=`expr '(' $ac_mid ')' - 1`
  22033. if test $ac_mid -le $ac_hi; then
  22034. ac_lo= ac_hi=
  22035. break
  22036. fi
  22037. ac_mid=`expr 2 '*' $ac_mid`
  22038. fi
  22039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22040. done
  22041. else
  22042. $as_echo "$as_me: failed program was:" >&5
  22043. sed 's/^/| /' conftest.$ac_ext >&5
  22044. ac_lo= ac_hi=
  22045. fi
  22046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22047. fi
  22048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22049. # Binary search between lo and hi bounds.
  22050. while test "x$ac_lo" != "x$ac_hi"; do
  22051. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22052. cat >conftest.$ac_ext <<_ACEOF
  22053. /* confdefs.h. */
  22054. _ACEOF
  22055. cat confdefs.h >>conftest.$ac_ext
  22056. cat >>conftest.$ac_ext <<_ACEOF
  22057. /* end confdefs.h. */
  22058. $ac_includes_default
  22059. int
  22060. main ()
  22061. {
  22062. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  22063. test_array [0] = 0
  22064. ;
  22065. return 0;
  22066. }
  22067. _ACEOF
  22068. rm -f conftest.$ac_objext
  22069. if { (ac_try="$ac_compile"
  22070. case "(($ac_try" in
  22071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22072. *) ac_try_echo=$ac_try;;
  22073. esac
  22074. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22075. $as_echo "$ac_try_echo") >&5
  22076. (eval "$ac_compile") 2>conftest.er1
  22077. ac_status=$?
  22078. grep -v '^ *+' conftest.er1 >conftest.err
  22079. rm -f conftest.er1
  22080. cat conftest.err >&5
  22081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22082. (exit $ac_status); } && {
  22083. test -z "$ac_c_werror_flag" ||
  22084. test ! -s conftest.err
  22085. } && test -s conftest.$ac_objext; then
  22086. ac_hi=$ac_mid
  22087. else
  22088. $as_echo "$as_me: failed program was:" >&5
  22089. sed 's/^/| /' conftest.$ac_ext >&5
  22090. ac_lo=`expr '(' $ac_mid ')' + 1`
  22091. fi
  22092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22093. done
  22094. case $ac_lo in
  22095. ?*) ac_cv_sizeof_int=$ac_lo;;
  22096. '') if test "$ac_cv_type_int" = yes; then
  22097. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22098. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22099. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  22100. See \`config.log' for more details." >&5
  22101. $as_echo "$as_me: error: cannot compute sizeof (int)
  22102. See \`config.log' for more details." >&2;}
  22103. { (exit 77); exit 77; }; }; }
  22104. else
  22105. ac_cv_sizeof_int=0
  22106. fi ;;
  22107. esac
  22108. else
  22109. cat >conftest.$ac_ext <<_ACEOF
  22110. /* confdefs.h. */
  22111. _ACEOF
  22112. cat confdefs.h >>conftest.$ac_ext
  22113. cat >>conftest.$ac_ext <<_ACEOF
  22114. /* end confdefs.h. */
  22115. $ac_includes_default
  22116. static long int longval () { return (long int) (sizeof (int)); }
  22117. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  22118. #include <stdio.h>
  22119. #include <stdlib.h>
  22120. int
  22121. main ()
  22122. {
  22123. FILE *f = fopen ("conftest.val", "w");
  22124. if (! f)
  22125. return 1;
  22126. if (((long int) (sizeof (int))) < 0)
  22127. {
  22128. long int i = longval ();
  22129. if (i != ((long int) (sizeof (int))))
  22130. return 1;
  22131. fprintf (f, "%ld", i);
  22132. }
  22133. else
  22134. {
  22135. unsigned long int i = ulongval ();
  22136. if (i != ((long int) (sizeof (int))))
  22137. return 1;
  22138. fprintf (f, "%lu", i);
  22139. }
  22140. /* Do not output a trailing newline, as this causes \r\n confusion
  22141. on some platforms. */
  22142. return ferror (f) || fclose (f) != 0;
  22143. ;
  22144. return 0;
  22145. }
  22146. _ACEOF
  22147. rm -f conftest$ac_exeext
  22148. if { (ac_try="$ac_link"
  22149. case "(($ac_try" in
  22150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22151. *) ac_try_echo=$ac_try;;
  22152. esac
  22153. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22154. $as_echo "$ac_try_echo") >&5
  22155. (eval "$ac_link") 2>&5
  22156. ac_status=$?
  22157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22158. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22159. { (case "(($ac_try" in
  22160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22161. *) ac_try_echo=$ac_try;;
  22162. esac
  22163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22164. $as_echo "$ac_try_echo") >&5
  22165. (eval "$ac_try") 2>&5
  22166. ac_status=$?
  22167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22168. (exit $ac_status); }; }; then
  22169. ac_cv_sizeof_int=`cat conftest.val`
  22170. else
  22171. $as_echo "$as_me: program exited with status $ac_status" >&5
  22172. $as_echo "$as_me: failed program was:" >&5
  22173. sed 's/^/| /' conftest.$ac_ext >&5
  22174. ( exit $ac_status )
  22175. if test "$ac_cv_type_int" = yes; then
  22176. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22177. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22178. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  22179. See \`config.log' for more details." >&5
  22180. $as_echo "$as_me: error: cannot compute sizeof (int)
  22181. See \`config.log' for more details." >&2;}
  22182. { (exit 77); exit 77; }; }; }
  22183. else
  22184. ac_cv_sizeof_int=0
  22185. fi
  22186. fi
  22187. rm -rf conftest.dSYM
  22188. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22189. fi
  22190. rm -f conftest.val
  22191. fi
  22192. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  22193. $as_echo "$ac_cv_sizeof_int" >&6; }
  22194. cat >>confdefs.h <<_ACEOF
  22195. #define SIZEOF_INT $ac_cv_sizeof_int
  22196. _ACEOF
  22197. # The cast to long int works around a bug in the HP C Compiler
  22198. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22199. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22200. # This bug is HP SR number 8606223364.
  22201. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  22202. $as_echo_n "checking size of long... " >&6; }
  22203. if test "${ac_cv_sizeof_long+set}" = set; then
  22204. $as_echo_n "(cached) " >&6
  22205. else
  22206. if test "$cross_compiling" = yes; then
  22207. # Depending upon the size, compute the lo and hi bounds.
  22208. cat >conftest.$ac_ext <<_ACEOF
  22209. /* confdefs.h. */
  22210. _ACEOF
  22211. cat confdefs.h >>conftest.$ac_ext
  22212. cat >>conftest.$ac_ext <<_ACEOF
  22213. /* end confdefs.h. */
  22214. $ac_includes_default
  22215. int
  22216. main ()
  22217. {
  22218. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  22219. test_array [0] = 0
  22220. ;
  22221. return 0;
  22222. }
  22223. _ACEOF
  22224. rm -f conftest.$ac_objext
  22225. if { (ac_try="$ac_compile"
  22226. case "(($ac_try" in
  22227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22228. *) ac_try_echo=$ac_try;;
  22229. esac
  22230. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22231. $as_echo "$ac_try_echo") >&5
  22232. (eval "$ac_compile") 2>conftest.er1
  22233. ac_status=$?
  22234. grep -v '^ *+' conftest.er1 >conftest.err
  22235. rm -f conftest.er1
  22236. cat conftest.err >&5
  22237. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22238. (exit $ac_status); } && {
  22239. test -z "$ac_c_werror_flag" ||
  22240. test ! -s conftest.err
  22241. } && test -s conftest.$ac_objext; then
  22242. ac_lo=0 ac_mid=0
  22243. while :; do
  22244. cat >conftest.$ac_ext <<_ACEOF
  22245. /* confdefs.h. */
  22246. _ACEOF
  22247. cat confdefs.h >>conftest.$ac_ext
  22248. cat >>conftest.$ac_ext <<_ACEOF
  22249. /* end confdefs.h. */
  22250. $ac_includes_default
  22251. int
  22252. main ()
  22253. {
  22254. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  22255. test_array [0] = 0
  22256. ;
  22257. return 0;
  22258. }
  22259. _ACEOF
  22260. rm -f conftest.$ac_objext
  22261. if { (ac_try="$ac_compile"
  22262. case "(($ac_try" in
  22263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22264. *) ac_try_echo=$ac_try;;
  22265. esac
  22266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22267. $as_echo "$ac_try_echo") >&5
  22268. (eval "$ac_compile") 2>conftest.er1
  22269. ac_status=$?
  22270. grep -v '^ *+' conftest.er1 >conftest.err
  22271. rm -f conftest.er1
  22272. cat conftest.err >&5
  22273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22274. (exit $ac_status); } && {
  22275. test -z "$ac_c_werror_flag" ||
  22276. test ! -s conftest.err
  22277. } && test -s conftest.$ac_objext; then
  22278. ac_hi=$ac_mid; break
  22279. else
  22280. $as_echo "$as_me: failed program was:" >&5
  22281. sed 's/^/| /' conftest.$ac_ext >&5
  22282. ac_lo=`expr $ac_mid + 1`
  22283. if test $ac_lo -le $ac_mid; then
  22284. ac_lo= ac_hi=
  22285. break
  22286. fi
  22287. ac_mid=`expr 2 '*' $ac_mid + 1`
  22288. fi
  22289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22290. done
  22291. else
  22292. $as_echo "$as_me: failed program was:" >&5
  22293. sed 's/^/| /' conftest.$ac_ext >&5
  22294. cat >conftest.$ac_ext <<_ACEOF
  22295. /* confdefs.h. */
  22296. _ACEOF
  22297. cat confdefs.h >>conftest.$ac_ext
  22298. cat >>conftest.$ac_ext <<_ACEOF
  22299. /* end confdefs.h. */
  22300. $ac_includes_default
  22301. int
  22302. main ()
  22303. {
  22304. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  22305. test_array [0] = 0
  22306. ;
  22307. return 0;
  22308. }
  22309. _ACEOF
  22310. rm -f conftest.$ac_objext
  22311. if { (ac_try="$ac_compile"
  22312. case "(($ac_try" in
  22313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22314. *) ac_try_echo=$ac_try;;
  22315. esac
  22316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22317. $as_echo "$ac_try_echo") >&5
  22318. (eval "$ac_compile") 2>conftest.er1
  22319. ac_status=$?
  22320. grep -v '^ *+' conftest.er1 >conftest.err
  22321. rm -f conftest.er1
  22322. cat conftest.err >&5
  22323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22324. (exit $ac_status); } && {
  22325. test -z "$ac_c_werror_flag" ||
  22326. test ! -s conftest.err
  22327. } && test -s conftest.$ac_objext; then
  22328. ac_hi=-1 ac_mid=-1
  22329. while :; do
  22330. cat >conftest.$ac_ext <<_ACEOF
  22331. /* confdefs.h. */
  22332. _ACEOF
  22333. cat confdefs.h >>conftest.$ac_ext
  22334. cat >>conftest.$ac_ext <<_ACEOF
  22335. /* end confdefs.h. */
  22336. $ac_includes_default
  22337. int
  22338. main ()
  22339. {
  22340. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  22341. test_array [0] = 0
  22342. ;
  22343. return 0;
  22344. }
  22345. _ACEOF
  22346. rm -f conftest.$ac_objext
  22347. if { (ac_try="$ac_compile"
  22348. case "(($ac_try" in
  22349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22350. *) ac_try_echo=$ac_try;;
  22351. esac
  22352. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22353. $as_echo "$ac_try_echo") >&5
  22354. (eval "$ac_compile") 2>conftest.er1
  22355. ac_status=$?
  22356. grep -v '^ *+' conftest.er1 >conftest.err
  22357. rm -f conftest.er1
  22358. cat conftest.err >&5
  22359. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22360. (exit $ac_status); } && {
  22361. test -z "$ac_c_werror_flag" ||
  22362. test ! -s conftest.err
  22363. } && test -s conftest.$ac_objext; then
  22364. ac_lo=$ac_mid; break
  22365. else
  22366. $as_echo "$as_me: failed program was:" >&5
  22367. sed 's/^/| /' conftest.$ac_ext >&5
  22368. ac_hi=`expr '(' $ac_mid ')' - 1`
  22369. if test $ac_mid -le $ac_hi; then
  22370. ac_lo= ac_hi=
  22371. break
  22372. fi
  22373. ac_mid=`expr 2 '*' $ac_mid`
  22374. fi
  22375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22376. done
  22377. else
  22378. $as_echo "$as_me: failed program was:" >&5
  22379. sed 's/^/| /' conftest.$ac_ext >&5
  22380. ac_lo= ac_hi=
  22381. fi
  22382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22383. fi
  22384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22385. # Binary search between lo and hi bounds.
  22386. while test "x$ac_lo" != "x$ac_hi"; do
  22387. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22388. cat >conftest.$ac_ext <<_ACEOF
  22389. /* confdefs.h. */
  22390. _ACEOF
  22391. cat confdefs.h >>conftest.$ac_ext
  22392. cat >>conftest.$ac_ext <<_ACEOF
  22393. /* end confdefs.h. */
  22394. $ac_includes_default
  22395. int
  22396. main ()
  22397. {
  22398. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  22399. test_array [0] = 0
  22400. ;
  22401. return 0;
  22402. }
  22403. _ACEOF
  22404. rm -f conftest.$ac_objext
  22405. if { (ac_try="$ac_compile"
  22406. case "(($ac_try" in
  22407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22408. *) ac_try_echo=$ac_try;;
  22409. esac
  22410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22411. $as_echo "$ac_try_echo") >&5
  22412. (eval "$ac_compile") 2>conftest.er1
  22413. ac_status=$?
  22414. grep -v '^ *+' conftest.er1 >conftest.err
  22415. rm -f conftest.er1
  22416. cat conftest.err >&5
  22417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22418. (exit $ac_status); } && {
  22419. test -z "$ac_c_werror_flag" ||
  22420. test ! -s conftest.err
  22421. } && test -s conftest.$ac_objext; then
  22422. ac_hi=$ac_mid
  22423. else
  22424. $as_echo "$as_me: failed program was:" >&5
  22425. sed 's/^/| /' conftest.$ac_ext >&5
  22426. ac_lo=`expr '(' $ac_mid ')' + 1`
  22427. fi
  22428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22429. done
  22430. case $ac_lo in
  22431. ?*) ac_cv_sizeof_long=$ac_lo;;
  22432. '') if test "$ac_cv_type_long" = yes; then
  22433. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22434. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22435. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  22436. See \`config.log' for more details." >&5
  22437. $as_echo "$as_me: error: cannot compute sizeof (long)
  22438. See \`config.log' for more details." >&2;}
  22439. { (exit 77); exit 77; }; }; }
  22440. else
  22441. ac_cv_sizeof_long=0
  22442. fi ;;
  22443. esac
  22444. else
  22445. cat >conftest.$ac_ext <<_ACEOF
  22446. /* confdefs.h. */
  22447. _ACEOF
  22448. cat confdefs.h >>conftest.$ac_ext
  22449. cat >>conftest.$ac_ext <<_ACEOF
  22450. /* end confdefs.h. */
  22451. $ac_includes_default
  22452. static long int longval () { return (long int) (sizeof (long)); }
  22453. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  22454. #include <stdio.h>
  22455. #include <stdlib.h>
  22456. int
  22457. main ()
  22458. {
  22459. FILE *f = fopen ("conftest.val", "w");
  22460. if (! f)
  22461. return 1;
  22462. if (((long int) (sizeof (long))) < 0)
  22463. {
  22464. long int i = longval ();
  22465. if (i != ((long int) (sizeof (long))))
  22466. return 1;
  22467. fprintf (f, "%ld", i);
  22468. }
  22469. else
  22470. {
  22471. unsigned long int i = ulongval ();
  22472. if (i != ((long int) (sizeof (long))))
  22473. return 1;
  22474. fprintf (f, "%lu", i);
  22475. }
  22476. /* Do not output a trailing newline, as this causes \r\n confusion
  22477. on some platforms. */
  22478. return ferror (f) || fclose (f) != 0;
  22479. ;
  22480. return 0;
  22481. }
  22482. _ACEOF
  22483. rm -f conftest$ac_exeext
  22484. if { (ac_try="$ac_link"
  22485. case "(($ac_try" in
  22486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22487. *) ac_try_echo=$ac_try;;
  22488. esac
  22489. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22490. $as_echo "$ac_try_echo") >&5
  22491. (eval "$ac_link") 2>&5
  22492. ac_status=$?
  22493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22494. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22495. { (case "(($ac_try" in
  22496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22497. *) ac_try_echo=$ac_try;;
  22498. esac
  22499. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22500. $as_echo "$ac_try_echo") >&5
  22501. (eval "$ac_try") 2>&5
  22502. ac_status=$?
  22503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22504. (exit $ac_status); }; }; then
  22505. ac_cv_sizeof_long=`cat conftest.val`
  22506. else
  22507. $as_echo "$as_me: program exited with status $ac_status" >&5
  22508. $as_echo "$as_me: failed program was:" >&5
  22509. sed 's/^/| /' conftest.$ac_ext >&5
  22510. ( exit $ac_status )
  22511. if test "$ac_cv_type_long" = yes; then
  22512. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22513. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22514. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  22515. See \`config.log' for more details." >&5
  22516. $as_echo "$as_me: error: cannot compute sizeof (long)
  22517. See \`config.log' for more details." >&2;}
  22518. { (exit 77); exit 77; }; }; }
  22519. else
  22520. ac_cv_sizeof_long=0
  22521. fi
  22522. fi
  22523. rm -rf conftest.dSYM
  22524. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22525. fi
  22526. rm -f conftest.val
  22527. fi
  22528. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  22529. $as_echo "$ac_cv_sizeof_long" >&6; }
  22530. cat >>confdefs.h <<_ACEOF
  22531. #define SIZEOF_LONG $ac_cv_sizeof_long
  22532. _ACEOF
  22533. # The cast to long int works around a bug in the HP C Compiler
  22534. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22535. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22536. # This bug is HP SR number 8606223364.
  22537. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  22538. $as_echo_n "checking size of long long... " >&6; }
  22539. if test "${ac_cv_sizeof_long_long+set}" = set; then
  22540. $as_echo_n "(cached) " >&6
  22541. else
  22542. if test "$cross_compiling" = yes; then
  22543. # Depending upon the size, compute the lo and hi bounds.
  22544. cat >conftest.$ac_ext <<_ACEOF
  22545. /* confdefs.h. */
  22546. _ACEOF
  22547. cat confdefs.h >>conftest.$ac_ext
  22548. cat >>conftest.$ac_ext <<_ACEOF
  22549. /* end confdefs.h. */
  22550. $ac_includes_default
  22551. int
  22552. main ()
  22553. {
  22554. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  22555. test_array [0] = 0
  22556. ;
  22557. return 0;
  22558. }
  22559. _ACEOF
  22560. rm -f conftest.$ac_objext
  22561. if { (ac_try="$ac_compile"
  22562. case "(($ac_try" in
  22563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22564. *) ac_try_echo=$ac_try;;
  22565. esac
  22566. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22567. $as_echo "$ac_try_echo") >&5
  22568. (eval "$ac_compile") 2>conftest.er1
  22569. ac_status=$?
  22570. grep -v '^ *+' conftest.er1 >conftest.err
  22571. rm -f conftest.er1
  22572. cat conftest.err >&5
  22573. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22574. (exit $ac_status); } && {
  22575. test -z "$ac_c_werror_flag" ||
  22576. test ! -s conftest.err
  22577. } && test -s conftest.$ac_objext; then
  22578. ac_lo=0 ac_mid=0
  22579. while :; do
  22580. cat >conftest.$ac_ext <<_ACEOF
  22581. /* confdefs.h. */
  22582. _ACEOF
  22583. cat confdefs.h >>conftest.$ac_ext
  22584. cat >>conftest.$ac_ext <<_ACEOF
  22585. /* end confdefs.h. */
  22586. $ac_includes_default
  22587. int
  22588. main ()
  22589. {
  22590. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  22591. test_array [0] = 0
  22592. ;
  22593. return 0;
  22594. }
  22595. _ACEOF
  22596. rm -f conftest.$ac_objext
  22597. if { (ac_try="$ac_compile"
  22598. case "(($ac_try" in
  22599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22600. *) ac_try_echo=$ac_try;;
  22601. esac
  22602. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22603. $as_echo "$ac_try_echo") >&5
  22604. (eval "$ac_compile") 2>conftest.er1
  22605. ac_status=$?
  22606. grep -v '^ *+' conftest.er1 >conftest.err
  22607. rm -f conftest.er1
  22608. cat conftest.err >&5
  22609. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22610. (exit $ac_status); } && {
  22611. test -z "$ac_c_werror_flag" ||
  22612. test ! -s conftest.err
  22613. } && test -s conftest.$ac_objext; then
  22614. ac_hi=$ac_mid; break
  22615. else
  22616. $as_echo "$as_me: failed program was:" >&5
  22617. sed 's/^/| /' conftest.$ac_ext >&5
  22618. ac_lo=`expr $ac_mid + 1`
  22619. if test $ac_lo -le $ac_mid; then
  22620. ac_lo= ac_hi=
  22621. break
  22622. fi
  22623. ac_mid=`expr 2 '*' $ac_mid + 1`
  22624. fi
  22625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22626. done
  22627. else
  22628. $as_echo "$as_me: failed program was:" >&5
  22629. sed 's/^/| /' conftest.$ac_ext >&5
  22630. cat >conftest.$ac_ext <<_ACEOF
  22631. /* confdefs.h. */
  22632. _ACEOF
  22633. cat confdefs.h >>conftest.$ac_ext
  22634. cat >>conftest.$ac_ext <<_ACEOF
  22635. /* end confdefs.h. */
  22636. $ac_includes_default
  22637. int
  22638. main ()
  22639. {
  22640. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  22641. test_array [0] = 0
  22642. ;
  22643. return 0;
  22644. }
  22645. _ACEOF
  22646. rm -f conftest.$ac_objext
  22647. if { (ac_try="$ac_compile"
  22648. case "(($ac_try" in
  22649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22650. *) ac_try_echo=$ac_try;;
  22651. esac
  22652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22653. $as_echo "$ac_try_echo") >&5
  22654. (eval "$ac_compile") 2>conftest.er1
  22655. ac_status=$?
  22656. grep -v '^ *+' conftest.er1 >conftest.err
  22657. rm -f conftest.er1
  22658. cat conftest.err >&5
  22659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22660. (exit $ac_status); } && {
  22661. test -z "$ac_c_werror_flag" ||
  22662. test ! -s conftest.err
  22663. } && test -s conftest.$ac_objext; then
  22664. ac_hi=-1 ac_mid=-1
  22665. while :; do
  22666. cat >conftest.$ac_ext <<_ACEOF
  22667. /* confdefs.h. */
  22668. _ACEOF
  22669. cat confdefs.h >>conftest.$ac_ext
  22670. cat >>conftest.$ac_ext <<_ACEOF
  22671. /* end confdefs.h. */
  22672. $ac_includes_default
  22673. int
  22674. main ()
  22675. {
  22676. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  22677. test_array [0] = 0
  22678. ;
  22679. return 0;
  22680. }
  22681. _ACEOF
  22682. rm -f conftest.$ac_objext
  22683. if { (ac_try="$ac_compile"
  22684. case "(($ac_try" in
  22685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22686. *) ac_try_echo=$ac_try;;
  22687. esac
  22688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22689. $as_echo "$ac_try_echo") >&5
  22690. (eval "$ac_compile") 2>conftest.er1
  22691. ac_status=$?
  22692. grep -v '^ *+' conftest.er1 >conftest.err
  22693. rm -f conftest.er1
  22694. cat conftest.err >&5
  22695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22696. (exit $ac_status); } && {
  22697. test -z "$ac_c_werror_flag" ||
  22698. test ! -s conftest.err
  22699. } && test -s conftest.$ac_objext; then
  22700. ac_lo=$ac_mid; break
  22701. else
  22702. $as_echo "$as_me: failed program was:" >&5
  22703. sed 's/^/| /' conftest.$ac_ext >&5
  22704. ac_hi=`expr '(' $ac_mid ')' - 1`
  22705. if test $ac_mid -le $ac_hi; then
  22706. ac_lo= ac_hi=
  22707. break
  22708. fi
  22709. ac_mid=`expr 2 '*' $ac_mid`
  22710. fi
  22711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22712. done
  22713. else
  22714. $as_echo "$as_me: failed program was:" >&5
  22715. sed 's/^/| /' conftest.$ac_ext >&5
  22716. ac_lo= ac_hi=
  22717. fi
  22718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22719. fi
  22720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22721. # Binary search between lo and hi bounds.
  22722. while test "x$ac_lo" != "x$ac_hi"; do
  22723. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22724. cat >conftest.$ac_ext <<_ACEOF
  22725. /* confdefs.h. */
  22726. _ACEOF
  22727. cat confdefs.h >>conftest.$ac_ext
  22728. cat >>conftest.$ac_ext <<_ACEOF
  22729. /* end confdefs.h. */
  22730. $ac_includes_default
  22731. int
  22732. main ()
  22733. {
  22734. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  22735. test_array [0] = 0
  22736. ;
  22737. return 0;
  22738. }
  22739. _ACEOF
  22740. rm -f conftest.$ac_objext
  22741. if { (ac_try="$ac_compile"
  22742. case "(($ac_try" in
  22743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22744. *) ac_try_echo=$ac_try;;
  22745. esac
  22746. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22747. $as_echo "$ac_try_echo") >&5
  22748. (eval "$ac_compile") 2>conftest.er1
  22749. ac_status=$?
  22750. grep -v '^ *+' conftest.er1 >conftest.err
  22751. rm -f conftest.er1
  22752. cat conftest.err >&5
  22753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22754. (exit $ac_status); } && {
  22755. test -z "$ac_c_werror_flag" ||
  22756. test ! -s conftest.err
  22757. } && test -s conftest.$ac_objext; then
  22758. ac_hi=$ac_mid
  22759. else
  22760. $as_echo "$as_me: failed program was:" >&5
  22761. sed 's/^/| /' conftest.$ac_ext >&5
  22762. ac_lo=`expr '(' $ac_mid ')' + 1`
  22763. fi
  22764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22765. done
  22766. case $ac_lo in
  22767. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  22768. '') if test "$ac_cv_type_long_long" = yes; then
  22769. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22770. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22771. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  22772. See \`config.log' for more details." >&5
  22773. $as_echo "$as_me: error: cannot compute sizeof (long long)
  22774. See \`config.log' for more details." >&2;}
  22775. { (exit 77); exit 77; }; }; }
  22776. else
  22777. ac_cv_sizeof_long_long=0
  22778. fi ;;
  22779. esac
  22780. else
  22781. cat >conftest.$ac_ext <<_ACEOF
  22782. /* confdefs.h. */
  22783. _ACEOF
  22784. cat confdefs.h >>conftest.$ac_ext
  22785. cat >>conftest.$ac_ext <<_ACEOF
  22786. /* end confdefs.h. */
  22787. $ac_includes_default
  22788. static long int longval () { return (long int) (sizeof (long long)); }
  22789. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  22790. #include <stdio.h>
  22791. #include <stdlib.h>
  22792. int
  22793. main ()
  22794. {
  22795. FILE *f = fopen ("conftest.val", "w");
  22796. if (! f)
  22797. return 1;
  22798. if (((long int) (sizeof (long long))) < 0)
  22799. {
  22800. long int i = longval ();
  22801. if (i != ((long int) (sizeof (long long))))
  22802. return 1;
  22803. fprintf (f, "%ld", i);
  22804. }
  22805. else
  22806. {
  22807. unsigned long int i = ulongval ();
  22808. if (i != ((long int) (sizeof (long long))))
  22809. return 1;
  22810. fprintf (f, "%lu", i);
  22811. }
  22812. /* Do not output a trailing newline, as this causes \r\n confusion
  22813. on some platforms. */
  22814. return ferror (f) || fclose (f) != 0;
  22815. ;
  22816. return 0;
  22817. }
  22818. _ACEOF
  22819. rm -f conftest$ac_exeext
  22820. if { (ac_try="$ac_link"
  22821. case "(($ac_try" in
  22822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22823. *) ac_try_echo=$ac_try;;
  22824. esac
  22825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22826. $as_echo "$ac_try_echo") >&5
  22827. (eval "$ac_link") 2>&5
  22828. ac_status=$?
  22829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22830. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22831. { (case "(($ac_try" in
  22832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22833. *) ac_try_echo=$ac_try;;
  22834. esac
  22835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22836. $as_echo "$ac_try_echo") >&5
  22837. (eval "$ac_try") 2>&5
  22838. ac_status=$?
  22839. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22840. (exit $ac_status); }; }; then
  22841. ac_cv_sizeof_long_long=`cat conftest.val`
  22842. else
  22843. $as_echo "$as_me: program exited with status $ac_status" >&5
  22844. $as_echo "$as_me: failed program was:" >&5
  22845. sed 's/^/| /' conftest.$ac_ext >&5
  22846. ( exit $ac_status )
  22847. if test "$ac_cv_type_long_long" = yes; then
  22848. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22850. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  22851. See \`config.log' for more details." >&5
  22852. $as_echo "$as_me: error: cannot compute sizeof (long long)
  22853. See \`config.log' for more details." >&2;}
  22854. { (exit 77); exit 77; }; }; }
  22855. else
  22856. ac_cv_sizeof_long_long=0
  22857. fi
  22858. fi
  22859. rm -rf conftest.dSYM
  22860. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22861. fi
  22862. rm -f conftest.val
  22863. fi
  22864. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  22865. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  22866. cat >>confdefs.h <<_ACEOF
  22867. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  22868. _ACEOF
  22869. # The cast to long int works around a bug in the HP C Compiler
  22870. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22871. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22872. # This bug is HP SR number 8606223364.
  22873. { $as_echo "$as_me:$LINENO: checking size of char *" >&5
  22874. $as_echo_n "checking size of char *... " >&6; }
  22875. if test "${ac_cv_sizeof_char_p+set}" = set; then
  22876. $as_echo_n "(cached) " >&6
  22877. else
  22878. if test "$cross_compiling" = yes; then
  22879. # Depending upon the size, compute the lo and hi bounds.
  22880. cat >conftest.$ac_ext <<_ACEOF
  22881. /* confdefs.h. */
  22882. _ACEOF
  22883. cat confdefs.h >>conftest.$ac_ext
  22884. cat >>conftest.$ac_ext <<_ACEOF
  22885. /* end confdefs.h. */
  22886. $ac_includes_default
  22887. int
  22888. main ()
  22889. {
  22890. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
  22891. test_array [0] = 0
  22892. ;
  22893. return 0;
  22894. }
  22895. _ACEOF
  22896. rm -f conftest.$ac_objext
  22897. if { (ac_try="$ac_compile"
  22898. case "(($ac_try" in
  22899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22900. *) ac_try_echo=$ac_try;;
  22901. esac
  22902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22903. $as_echo "$ac_try_echo") >&5
  22904. (eval "$ac_compile") 2>conftest.er1
  22905. ac_status=$?
  22906. grep -v '^ *+' conftest.er1 >conftest.err
  22907. rm -f conftest.er1
  22908. cat conftest.err >&5
  22909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22910. (exit $ac_status); } && {
  22911. test -z "$ac_c_werror_flag" ||
  22912. test ! -s conftest.err
  22913. } && test -s conftest.$ac_objext; then
  22914. ac_lo=0 ac_mid=0
  22915. while :; do
  22916. cat >conftest.$ac_ext <<_ACEOF
  22917. /* confdefs.h. */
  22918. _ACEOF
  22919. cat confdefs.h >>conftest.$ac_ext
  22920. cat >>conftest.$ac_ext <<_ACEOF
  22921. /* end confdefs.h. */
  22922. $ac_includes_default
  22923. int
  22924. main ()
  22925. {
  22926. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
  22927. test_array [0] = 0
  22928. ;
  22929. return 0;
  22930. }
  22931. _ACEOF
  22932. rm -f conftest.$ac_objext
  22933. if { (ac_try="$ac_compile"
  22934. case "(($ac_try" in
  22935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22936. *) ac_try_echo=$ac_try;;
  22937. esac
  22938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22939. $as_echo "$ac_try_echo") >&5
  22940. (eval "$ac_compile") 2>conftest.er1
  22941. ac_status=$?
  22942. grep -v '^ *+' conftest.er1 >conftest.err
  22943. rm -f conftest.er1
  22944. cat conftest.err >&5
  22945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22946. (exit $ac_status); } && {
  22947. test -z "$ac_c_werror_flag" ||
  22948. test ! -s conftest.err
  22949. } && test -s conftest.$ac_objext; then
  22950. ac_hi=$ac_mid; break
  22951. else
  22952. $as_echo "$as_me: failed program was:" >&5
  22953. sed 's/^/| /' conftest.$ac_ext >&5
  22954. ac_lo=`expr $ac_mid + 1`
  22955. if test $ac_lo -le $ac_mid; then
  22956. ac_lo= ac_hi=
  22957. break
  22958. fi
  22959. ac_mid=`expr 2 '*' $ac_mid + 1`
  22960. fi
  22961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22962. done
  22963. else
  22964. $as_echo "$as_me: failed program was:" >&5
  22965. sed 's/^/| /' conftest.$ac_ext >&5
  22966. cat >conftest.$ac_ext <<_ACEOF
  22967. /* confdefs.h. */
  22968. _ACEOF
  22969. cat confdefs.h >>conftest.$ac_ext
  22970. cat >>conftest.$ac_ext <<_ACEOF
  22971. /* end confdefs.h. */
  22972. $ac_includes_default
  22973. int
  22974. main ()
  22975. {
  22976. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
  22977. test_array [0] = 0
  22978. ;
  22979. return 0;
  22980. }
  22981. _ACEOF
  22982. rm -f conftest.$ac_objext
  22983. if { (ac_try="$ac_compile"
  22984. case "(($ac_try" in
  22985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22986. *) ac_try_echo=$ac_try;;
  22987. esac
  22988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22989. $as_echo "$ac_try_echo") >&5
  22990. (eval "$ac_compile") 2>conftest.er1
  22991. ac_status=$?
  22992. grep -v '^ *+' conftest.er1 >conftest.err
  22993. rm -f conftest.er1
  22994. cat conftest.err >&5
  22995. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22996. (exit $ac_status); } && {
  22997. test -z "$ac_c_werror_flag" ||
  22998. test ! -s conftest.err
  22999. } && test -s conftest.$ac_objext; then
  23000. ac_hi=-1 ac_mid=-1
  23001. while :; do
  23002. cat >conftest.$ac_ext <<_ACEOF
  23003. /* confdefs.h. */
  23004. _ACEOF
  23005. cat confdefs.h >>conftest.$ac_ext
  23006. cat >>conftest.$ac_ext <<_ACEOF
  23007. /* end confdefs.h. */
  23008. $ac_includes_default
  23009. int
  23010. main ()
  23011. {
  23012. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
  23013. test_array [0] = 0
  23014. ;
  23015. return 0;
  23016. }
  23017. _ACEOF
  23018. rm -f conftest.$ac_objext
  23019. if { (ac_try="$ac_compile"
  23020. case "(($ac_try" in
  23021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23022. *) ac_try_echo=$ac_try;;
  23023. esac
  23024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23025. $as_echo "$ac_try_echo") >&5
  23026. (eval "$ac_compile") 2>conftest.er1
  23027. ac_status=$?
  23028. grep -v '^ *+' conftest.er1 >conftest.err
  23029. rm -f conftest.er1
  23030. cat conftest.err >&5
  23031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23032. (exit $ac_status); } && {
  23033. test -z "$ac_c_werror_flag" ||
  23034. test ! -s conftest.err
  23035. } && test -s conftest.$ac_objext; then
  23036. ac_lo=$ac_mid; break
  23037. else
  23038. $as_echo "$as_me: failed program was:" >&5
  23039. sed 's/^/| /' conftest.$ac_ext >&5
  23040. ac_hi=`expr '(' $ac_mid ')' - 1`
  23041. if test $ac_mid -le $ac_hi; then
  23042. ac_lo= ac_hi=
  23043. break
  23044. fi
  23045. ac_mid=`expr 2 '*' $ac_mid`
  23046. fi
  23047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23048. done
  23049. else
  23050. $as_echo "$as_me: failed program was:" >&5
  23051. sed 's/^/| /' conftest.$ac_ext >&5
  23052. ac_lo= ac_hi=
  23053. fi
  23054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23055. fi
  23056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23057. # Binary search between lo and hi bounds.
  23058. while test "x$ac_lo" != "x$ac_hi"; do
  23059. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23060. cat >conftest.$ac_ext <<_ACEOF
  23061. /* confdefs.h. */
  23062. _ACEOF
  23063. cat confdefs.h >>conftest.$ac_ext
  23064. cat >>conftest.$ac_ext <<_ACEOF
  23065. /* end confdefs.h. */
  23066. $ac_includes_default
  23067. int
  23068. main ()
  23069. {
  23070. static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
  23071. test_array [0] = 0
  23072. ;
  23073. return 0;
  23074. }
  23075. _ACEOF
  23076. rm -f conftest.$ac_objext
  23077. if { (ac_try="$ac_compile"
  23078. case "(($ac_try" in
  23079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23080. *) ac_try_echo=$ac_try;;
  23081. esac
  23082. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23083. $as_echo "$ac_try_echo") >&5
  23084. (eval "$ac_compile") 2>conftest.er1
  23085. ac_status=$?
  23086. grep -v '^ *+' conftest.er1 >conftest.err
  23087. rm -f conftest.er1
  23088. cat conftest.err >&5
  23089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23090. (exit $ac_status); } && {
  23091. test -z "$ac_c_werror_flag" ||
  23092. test ! -s conftest.err
  23093. } && test -s conftest.$ac_objext; then
  23094. ac_hi=$ac_mid
  23095. else
  23096. $as_echo "$as_me: failed program was:" >&5
  23097. sed 's/^/| /' conftest.$ac_ext >&5
  23098. ac_lo=`expr '(' $ac_mid ')' + 1`
  23099. fi
  23100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23101. done
  23102. case $ac_lo in
  23103. ?*) ac_cv_sizeof_char_p=$ac_lo;;
  23104. '') if test "$ac_cv_type_char_p" = yes; then
  23105. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23107. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
  23108. See \`config.log' for more details." >&5
  23109. $as_echo "$as_me: error: cannot compute sizeof (char *)
  23110. See \`config.log' for more details." >&2;}
  23111. { (exit 77); exit 77; }; }; }
  23112. else
  23113. ac_cv_sizeof_char_p=0
  23114. fi ;;
  23115. esac
  23116. else
  23117. cat >conftest.$ac_ext <<_ACEOF
  23118. /* confdefs.h. */
  23119. _ACEOF
  23120. cat confdefs.h >>conftest.$ac_ext
  23121. cat >>conftest.$ac_ext <<_ACEOF
  23122. /* end confdefs.h. */
  23123. $ac_includes_default
  23124. static long int longval () { return (long int) (sizeof (char *)); }
  23125. static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
  23126. #include <stdio.h>
  23127. #include <stdlib.h>
  23128. int
  23129. main ()
  23130. {
  23131. FILE *f = fopen ("conftest.val", "w");
  23132. if (! f)
  23133. return 1;
  23134. if (((long int) (sizeof (char *))) < 0)
  23135. {
  23136. long int i = longval ();
  23137. if (i != ((long int) (sizeof (char *))))
  23138. return 1;
  23139. fprintf (f, "%ld", i);
  23140. }
  23141. else
  23142. {
  23143. unsigned long int i = ulongval ();
  23144. if (i != ((long int) (sizeof (char *))))
  23145. return 1;
  23146. fprintf (f, "%lu", i);
  23147. }
  23148. /* Do not output a trailing newline, as this causes \r\n confusion
  23149. on some platforms. */
  23150. return ferror (f) || fclose (f) != 0;
  23151. ;
  23152. return 0;
  23153. }
  23154. _ACEOF
  23155. rm -f conftest$ac_exeext
  23156. if { (ac_try="$ac_link"
  23157. case "(($ac_try" in
  23158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23159. *) ac_try_echo=$ac_try;;
  23160. esac
  23161. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23162. $as_echo "$ac_try_echo") >&5
  23163. (eval "$ac_link") 2>&5
  23164. ac_status=$?
  23165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23166. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23167. { (case "(($ac_try" in
  23168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23169. *) ac_try_echo=$ac_try;;
  23170. esac
  23171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23172. $as_echo "$ac_try_echo") >&5
  23173. (eval "$ac_try") 2>&5
  23174. ac_status=$?
  23175. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23176. (exit $ac_status); }; }; then
  23177. ac_cv_sizeof_char_p=`cat conftest.val`
  23178. else
  23179. $as_echo "$as_me: program exited with status $ac_status" >&5
  23180. $as_echo "$as_me: failed program was:" >&5
  23181. sed 's/^/| /' conftest.$ac_ext >&5
  23182. ( exit $ac_status )
  23183. if test "$ac_cv_type_char_p" = yes; then
  23184. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23186. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
  23187. See \`config.log' for more details." >&5
  23188. $as_echo "$as_me: error: cannot compute sizeof (char *)
  23189. See \`config.log' for more details." >&2;}
  23190. { (exit 77); exit 77; }; }; }
  23191. else
  23192. ac_cv_sizeof_char_p=0
  23193. fi
  23194. fi
  23195. rm -rf conftest.dSYM
  23196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23197. fi
  23198. rm -f conftest.val
  23199. fi
  23200. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
  23201. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  23202. cat >>confdefs.h <<_ACEOF
  23203. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  23204. _ACEOF
  23205. # The cast to long int works around a bug in the HP C Compiler
  23206. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23207. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23208. # This bug is HP SR number 8606223364.
  23209. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  23210. $as_echo_n "checking size of long... " >&6; }
  23211. if test "${ac_cv_sizeof_long+set}" = set; then
  23212. $as_echo_n "(cached) " >&6
  23213. else
  23214. if test "$cross_compiling" = yes; then
  23215. # Depending upon the size, compute the lo and hi bounds.
  23216. cat >conftest.$ac_ext <<_ACEOF
  23217. /* confdefs.h. */
  23218. _ACEOF
  23219. cat confdefs.h >>conftest.$ac_ext
  23220. cat >>conftest.$ac_ext <<_ACEOF
  23221. /* end confdefs.h. */
  23222. $ac_includes_default
  23223. int
  23224. main ()
  23225. {
  23226. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  23227. test_array [0] = 0
  23228. ;
  23229. return 0;
  23230. }
  23231. _ACEOF
  23232. rm -f conftest.$ac_objext
  23233. if { (ac_try="$ac_compile"
  23234. case "(($ac_try" in
  23235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23236. *) ac_try_echo=$ac_try;;
  23237. esac
  23238. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23239. $as_echo "$ac_try_echo") >&5
  23240. (eval "$ac_compile") 2>conftest.er1
  23241. ac_status=$?
  23242. grep -v '^ *+' conftest.er1 >conftest.err
  23243. rm -f conftest.er1
  23244. cat conftest.err >&5
  23245. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23246. (exit $ac_status); } && {
  23247. test -z "$ac_c_werror_flag" ||
  23248. test ! -s conftest.err
  23249. } && test -s conftest.$ac_objext; then
  23250. ac_lo=0 ac_mid=0
  23251. while :; do
  23252. cat >conftest.$ac_ext <<_ACEOF
  23253. /* confdefs.h. */
  23254. _ACEOF
  23255. cat confdefs.h >>conftest.$ac_ext
  23256. cat >>conftest.$ac_ext <<_ACEOF
  23257. /* end confdefs.h. */
  23258. $ac_includes_default
  23259. int
  23260. main ()
  23261. {
  23262. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  23263. test_array [0] = 0
  23264. ;
  23265. return 0;
  23266. }
  23267. _ACEOF
  23268. rm -f conftest.$ac_objext
  23269. if { (ac_try="$ac_compile"
  23270. case "(($ac_try" in
  23271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23272. *) ac_try_echo=$ac_try;;
  23273. esac
  23274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23275. $as_echo "$ac_try_echo") >&5
  23276. (eval "$ac_compile") 2>conftest.er1
  23277. ac_status=$?
  23278. grep -v '^ *+' conftest.er1 >conftest.err
  23279. rm -f conftest.er1
  23280. cat conftest.err >&5
  23281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23282. (exit $ac_status); } && {
  23283. test -z "$ac_c_werror_flag" ||
  23284. test ! -s conftest.err
  23285. } && test -s conftest.$ac_objext; then
  23286. ac_hi=$ac_mid; break
  23287. else
  23288. $as_echo "$as_me: failed program was:" >&5
  23289. sed 's/^/| /' conftest.$ac_ext >&5
  23290. ac_lo=`expr $ac_mid + 1`
  23291. if test $ac_lo -le $ac_mid; then
  23292. ac_lo= ac_hi=
  23293. break
  23294. fi
  23295. ac_mid=`expr 2 '*' $ac_mid + 1`
  23296. fi
  23297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23298. done
  23299. else
  23300. $as_echo "$as_me: failed program was:" >&5
  23301. sed 's/^/| /' conftest.$ac_ext >&5
  23302. cat >conftest.$ac_ext <<_ACEOF
  23303. /* confdefs.h. */
  23304. _ACEOF
  23305. cat confdefs.h >>conftest.$ac_ext
  23306. cat >>conftest.$ac_ext <<_ACEOF
  23307. /* end confdefs.h. */
  23308. $ac_includes_default
  23309. int
  23310. main ()
  23311. {
  23312. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  23313. test_array [0] = 0
  23314. ;
  23315. return 0;
  23316. }
  23317. _ACEOF
  23318. rm -f conftest.$ac_objext
  23319. if { (ac_try="$ac_compile"
  23320. case "(($ac_try" in
  23321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23322. *) ac_try_echo=$ac_try;;
  23323. esac
  23324. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23325. $as_echo "$ac_try_echo") >&5
  23326. (eval "$ac_compile") 2>conftest.er1
  23327. ac_status=$?
  23328. grep -v '^ *+' conftest.er1 >conftest.err
  23329. rm -f conftest.er1
  23330. cat conftest.err >&5
  23331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23332. (exit $ac_status); } && {
  23333. test -z "$ac_c_werror_flag" ||
  23334. test ! -s conftest.err
  23335. } && test -s conftest.$ac_objext; then
  23336. ac_hi=-1 ac_mid=-1
  23337. while :; do
  23338. cat >conftest.$ac_ext <<_ACEOF
  23339. /* confdefs.h. */
  23340. _ACEOF
  23341. cat confdefs.h >>conftest.$ac_ext
  23342. cat >>conftest.$ac_ext <<_ACEOF
  23343. /* end confdefs.h. */
  23344. $ac_includes_default
  23345. int
  23346. main ()
  23347. {
  23348. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  23349. test_array [0] = 0
  23350. ;
  23351. return 0;
  23352. }
  23353. _ACEOF
  23354. rm -f conftest.$ac_objext
  23355. if { (ac_try="$ac_compile"
  23356. case "(($ac_try" in
  23357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23358. *) ac_try_echo=$ac_try;;
  23359. esac
  23360. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23361. $as_echo "$ac_try_echo") >&5
  23362. (eval "$ac_compile") 2>conftest.er1
  23363. ac_status=$?
  23364. grep -v '^ *+' conftest.er1 >conftest.err
  23365. rm -f conftest.er1
  23366. cat conftest.err >&5
  23367. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23368. (exit $ac_status); } && {
  23369. test -z "$ac_c_werror_flag" ||
  23370. test ! -s conftest.err
  23371. } && test -s conftest.$ac_objext; then
  23372. ac_lo=$ac_mid; break
  23373. else
  23374. $as_echo "$as_me: failed program was:" >&5
  23375. sed 's/^/| /' conftest.$ac_ext >&5
  23376. ac_hi=`expr '(' $ac_mid ')' - 1`
  23377. if test $ac_mid -le $ac_hi; then
  23378. ac_lo= ac_hi=
  23379. break
  23380. fi
  23381. ac_mid=`expr 2 '*' $ac_mid`
  23382. fi
  23383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23384. done
  23385. else
  23386. $as_echo "$as_me: failed program was:" >&5
  23387. sed 's/^/| /' conftest.$ac_ext >&5
  23388. ac_lo= ac_hi=
  23389. fi
  23390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23391. fi
  23392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23393. # Binary search between lo and hi bounds.
  23394. while test "x$ac_lo" != "x$ac_hi"; do
  23395. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23396. cat >conftest.$ac_ext <<_ACEOF
  23397. /* confdefs.h. */
  23398. _ACEOF
  23399. cat confdefs.h >>conftest.$ac_ext
  23400. cat >>conftest.$ac_ext <<_ACEOF
  23401. /* end confdefs.h. */
  23402. $ac_includes_default
  23403. int
  23404. main ()
  23405. {
  23406. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  23407. test_array [0] = 0
  23408. ;
  23409. return 0;
  23410. }
  23411. _ACEOF
  23412. rm -f conftest.$ac_objext
  23413. if { (ac_try="$ac_compile"
  23414. case "(($ac_try" in
  23415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23416. *) ac_try_echo=$ac_try;;
  23417. esac
  23418. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23419. $as_echo "$ac_try_echo") >&5
  23420. (eval "$ac_compile") 2>conftest.er1
  23421. ac_status=$?
  23422. grep -v '^ *+' conftest.er1 >conftest.err
  23423. rm -f conftest.er1
  23424. cat conftest.err >&5
  23425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23426. (exit $ac_status); } && {
  23427. test -z "$ac_c_werror_flag" ||
  23428. test ! -s conftest.err
  23429. } && test -s conftest.$ac_objext; then
  23430. ac_hi=$ac_mid
  23431. else
  23432. $as_echo "$as_me: failed program was:" >&5
  23433. sed 's/^/| /' conftest.$ac_ext >&5
  23434. ac_lo=`expr '(' $ac_mid ')' + 1`
  23435. fi
  23436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23437. done
  23438. case $ac_lo in
  23439. ?*) ac_cv_sizeof_long=$ac_lo;;
  23440. '') if test "$ac_cv_type_long" = yes; then
  23441. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23442. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23443. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  23444. See \`config.log' for more details." >&5
  23445. $as_echo "$as_me: error: cannot compute sizeof (long)
  23446. See \`config.log' for more details." >&2;}
  23447. { (exit 77); exit 77; }; }; }
  23448. else
  23449. ac_cv_sizeof_long=0
  23450. fi ;;
  23451. esac
  23452. else
  23453. cat >conftest.$ac_ext <<_ACEOF
  23454. /* confdefs.h. */
  23455. _ACEOF
  23456. cat confdefs.h >>conftest.$ac_ext
  23457. cat >>conftest.$ac_ext <<_ACEOF
  23458. /* end confdefs.h. */
  23459. $ac_includes_default
  23460. static long int longval () { return (long int) (sizeof (long)); }
  23461. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  23462. #include <stdio.h>
  23463. #include <stdlib.h>
  23464. int
  23465. main ()
  23466. {
  23467. FILE *f = fopen ("conftest.val", "w");
  23468. if (! f)
  23469. return 1;
  23470. if (((long int) (sizeof (long))) < 0)
  23471. {
  23472. long int i = longval ();
  23473. if (i != ((long int) (sizeof (long))))
  23474. return 1;
  23475. fprintf (f, "%ld", i);
  23476. }
  23477. else
  23478. {
  23479. unsigned long int i = ulongval ();
  23480. if (i != ((long int) (sizeof (long))))
  23481. return 1;
  23482. fprintf (f, "%lu", i);
  23483. }
  23484. /* Do not output a trailing newline, as this causes \r\n confusion
  23485. on some platforms. */
  23486. return ferror (f) || fclose (f) != 0;
  23487. ;
  23488. return 0;
  23489. }
  23490. _ACEOF
  23491. rm -f conftest$ac_exeext
  23492. if { (ac_try="$ac_link"
  23493. case "(($ac_try" in
  23494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23495. *) ac_try_echo=$ac_try;;
  23496. esac
  23497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23498. $as_echo "$ac_try_echo") >&5
  23499. (eval "$ac_link") 2>&5
  23500. ac_status=$?
  23501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23502. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23503. { (case "(($ac_try" in
  23504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23505. *) ac_try_echo=$ac_try;;
  23506. esac
  23507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23508. $as_echo "$ac_try_echo") >&5
  23509. (eval "$ac_try") 2>&5
  23510. ac_status=$?
  23511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23512. (exit $ac_status); }; }; then
  23513. ac_cv_sizeof_long=`cat conftest.val`
  23514. else
  23515. $as_echo "$as_me: program exited with status $ac_status" >&5
  23516. $as_echo "$as_me: failed program was:" >&5
  23517. sed 's/^/| /' conftest.$ac_ext >&5
  23518. ( exit $ac_status )
  23519. if test "$ac_cv_type_long" = yes; then
  23520. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23521. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23522. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  23523. See \`config.log' for more details." >&5
  23524. $as_echo "$as_me: error: cannot compute sizeof (long)
  23525. See \`config.log' for more details." >&2;}
  23526. { (exit 77); exit 77; }; }; }
  23527. else
  23528. ac_cv_sizeof_long=0
  23529. fi
  23530. fi
  23531. rm -rf conftest.dSYM
  23532. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23533. fi
  23534. rm -f conftest.val
  23535. fi
  23536. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  23537. $as_echo "$ac_cv_sizeof_long" >&6; }
  23538. cat >>confdefs.h <<_ACEOF
  23539. #define SIZEOF_LONG $ac_cv_sizeof_long
  23540. _ACEOF
  23541. # The cast to long int works around a bug in the HP C Compiler
  23542. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23543. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23544. # This bug is HP SR number 8606223364.
  23545. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  23546. $as_echo_n "checking size of long long... " >&6; }
  23547. if test "${ac_cv_sizeof_long_long+set}" = set; then
  23548. $as_echo_n "(cached) " >&6
  23549. else
  23550. if test "$cross_compiling" = yes; then
  23551. # Depending upon the size, compute the lo and hi bounds.
  23552. cat >conftest.$ac_ext <<_ACEOF
  23553. /* confdefs.h. */
  23554. _ACEOF
  23555. cat confdefs.h >>conftest.$ac_ext
  23556. cat >>conftest.$ac_ext <<_ACEOF
  23557. /* end confdefs.h. */
  23558. $ac_includes_default
  23559. int
  23560. main ()
  23561. {
  23562. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  23563. test_array [0] = 0
  23564. ;
  23565. return 0;
  23566. }
  23567. _ACEOF
  23568. rm -f conftest.$ac_objext
  23569. if { (ac_try="$ac_compile"
  23570. case "(($ac_try" in
  23571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23572. *) ac_try_echo=$ac_try;;
  23573. esac
  23574. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23575. $as_echo "$ac_try_echo") >&5
  23576. (eval "$ac_compile") 2>conftest.er1
  23577. ac_status=$?
  23578. grep -v '^ *+' conftest.er1 >conftest.err
  23579. rm -f conftest.er1
  23580. cat conftest.err >&5
  23581. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23582. (exit $ac_status); } && {
  23583. test -z "$ac_c_werror_flag" ||
  23584. test ! -s conftest.err
  23585. } && test -s conftest.$ac_objext; then
  23586. ac_lo=0 ac_mid=0
  23587. while :; do
  23588. cat >conftest.$ac_ext <<_ACEOF
  23589. /* confdefs.h. */
  23590. _ACEOF
  23591. cat confdefs.h >>conftest.$ac_ext
  23592. cat >>conftest.$ac_ext <<_ACEOF
  23593. /* end confdefs.h. */
  23594. $ac_includes_default
  23595. int
  23596. main ()
  23597. {
  23598. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  23599. test_array [0] = 0
  23600. ;
  23601. return 0;
  23602. }
  23603. _ACEOF
  23604. rm -f conftest.$ac_objext
  23605. if { (ac_try="$ac_compile"
  23606. case "(($ac_try" in
  23607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23608. *) ac_try_echo=$ac_try;;
  23609. esac
  23610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23611. $as_echo "$ac_try_echo") >&5
  23612. (eval "$ac_compile") 2>conftest.er1
  23613. ac_status=$?
  23614. grep -v '^ *+' conftest.er1 >conftest.err
  23615. rm -f conftest.er1
  23616. cat conftest.err >&5
  23617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23618. (exit $ac_status); } && {
  23619. test -z "$ac_c_werror_flag" ||
  23620. test ! -s conftest.err
  23621. } && test -s conftest.$ac_objext; then
  23622. ac_hi=$ac_mid; break
  23623. else
  23624. $as_echo "$as_me: failed program was:" >&5
  23625. sed 's/^/| /' conftest.$ac_ext >&5
  23626. ac_lo=`expr $ac_mid + 1`
  23627. if test $ac_lo -le $ac_mid; then
  23628. ac_lo= ac_hi=
  23629. break
  23630. fi
  23631. ac_mid=`expr 2 '*' $ac_mid + 1`
  23632. fi
  23633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23634. done
  23635. else
  23636. $as_echo "$as_me: failed program was:" >&5
  23637. sed 's/^/| /' conftest.$ac_ext >&5
  23638. cat >conftest.$ac_ext <<_ACEOF
  23639. /* confdefs.h. */
  23640. _ACEOF
  23641. cat confdefs.h >>conftest.$ac_ext
  23642. cat >>conftest.$ac_ext <<_ACEOF
  23643. /* end confdefs.h. */
  23644. $ac_includes_default
  23645. int
  23646. main ()
  23647. {
  23648. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  23649. test_array [0] = 0
  23650. ;
  23651. return 0;
  23652. }
  23653. _ACEOF
  23654. rm -f conftest.$ac_objext
  23655. if { (ac_try="$ac_compile"
  23656. case "(($ac_try" in
  23657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23658. *) ac_try_echo=$ac_try;;
  23659. esac
  23660. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23661. $as_echo "$ac_try_echo") >&5
  23662. (eval "$ac_compile") 2>conftest.er1
  23663. ac_status=$?
  23664. grep -v '^ *+' conftest.er1 >conftest.err
  23665. rm -f conftest.er1
  23666. cat conftest.err >&5
  23667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23668. (exit $ac_status); } && {
  23669. test -z "$ac_c_werror_flag" ||
  23670. test ! -s conftest.err
  23671. } && test -s conftest.$ac_objext; then
  23672. ac_hi=-1 ac_mid=-1
  23673. while :; do
  23674. cat >conftest.$ac_ext <<_ACEOF
  23675. /* confdefs.h. */
  23676. _ACEOF
  23677. cat confdefs.h >>conftest.$ac_ext
  23678. cat >>conftest.$ac_ext <<_ACEOF
  23679. /* end confdefs.h. */
  23680. $ac_includes_default
  23681. int
  23682. main ()
  23683. {
  23684. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  23685. test_array [0] = 0
  23686. ;
  23687. return 0;
  23688. }
  23689. _ACEOF
  23690. rm -f conftest.$ac_objext
  23691. if { (ac_try="$ac_compile"
  23692. case "(($ac_try" in
  23693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23694. *) ac_try_echo=$ac_try;;
  23695. esac
  23696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23697. $as_echo "$ac_try_echo") >&5
  23698. (eval "$ac_compile") 2>conftest.er1
  23699. ac_status=$?
  23700. grep -v '^ *+' conftest.er1 >conftest.err
  23701. rm -f conftest.er1
  23702. cat conftest.err >&5
  23703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23704. (exit $ac_status); } && {
  23705. test -z "$ac_c_werror_flag" ||
  23706. test ! -s conftest.err
  23707. } && test -s conftest.$ac_objext; then
  23708. ac_lo=$ac_mid; break
  23709. else
  23710. $as_echo "$as_me: failed program was:" >&5
  23711. sed 's/^/| /' conftest.$ac_ext >&5
  23712. ac_hi=`expr '(' $ac_mid ')' - 1`
  23713. if test $ac_mid -le $ac_hi; then
  23714. ac_lo= ac_hi=
  23715. break
  23716. fi
  23717. ac_mid=`expr 2 '*' $ac_mid`
  23718. fi
  23719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23720. done
  23721. else
  23722. $as_echo "$as_me: failed program was:" >&5
  23723. sed 's/^/| /' conftest.$ac_ext >&5
  23724. ac_lo= ac_hi=
  23725. fi
  23726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23727. fi
  23728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23729. # Binary search between lo and hi bounds.
  23730. while test "x$ac_lo" != "x$ac_hi"; do
  23731. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23732. cat >conftest.$ac_ext <<_ACEOF
  23733. /* confdefs.h. */
  23734. _ACEOF
  23735. cat confdefs.h >>conftest.$ac_ext
  23736. cat >>conftest.$ac_ext <<_ACEOF
  23737. /* end confdefs.h. */
  23738. $ac_includes_default
  23739. int
  23740. main ()
  23741. {
  23742. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  23743. test_array [0] = 0
  23744. ;
  23745. return 0;
  23746. }
  23747. _ACEOF
  23748. rm -f conftest.$ac_objext
  23749. if { (ac_try="$ac_compile"
  23750. case "(($ac_try" in
  23751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23752. *) ac_try_echo=$ac_try;;
  23753. esac
  23754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23755. $as_echo "$ac_try_echo") >&5
  23756. (eval "$ac_compile") 2>conftest.er1
  23757. ac_status=$?
  23758. grep -v '^ *+' conftest.er1 >conftest.err
  23759. rm -f conftest.er1
  23760. cat conftest.err >&5
  23761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23762. (exit $ac_status); } && {
  23763. test -z "$ac_c_werror_flag" ||
  23764. test ! -s conftest.err
  23765. } && test -s conftest.$ac_objext; then
  23766. ac_hi=$ac_mid
  23767. else
  23768. $as_echo "$as_me: failed program was:" >&5
  23769. sed 's/^/| /' conftest.$ac_ext >&5
  23770. ac_lo=`expr '(' $ac_mid ')' + 1`
  23771. fi
  23772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23773. done
  23774. case $ac_lo in
  23775. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  23776. '') if test "$ac_cv_type_long_long" = yes; then
  23777. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23778. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23779. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  23780. See \`config.log' for more details." >&5
  23781. $as_echo "$as_me: error: cannot compute sizeof (long long)
  23782. See \`config.log' for more details." >&2;}
  23783. { (exit 77); exit 77; }; }; }
  23784. else
  23785. ac_cv_sizeof_long_long=0
  23786. fi ;;
  23787. esac
  23788. else
  23789. cat >conftest.$ac_ext <<_ACEOF
  23790. /* confdefs.h. */
  23791. _ACEOF
  23792. cat confdefs.h >>conftest.$ac_ext
  23793. cat >>conftest.$ac_ext <<_ACEOF
  23794. /* end confdefs.h. */
  23795. $ac_includes_default
  23796. static long int longval () { return (long int) (sizeof (long long)); }
  23797. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  23798. #include <stdio.h>
  23799. #include <stdlib.h>
  23800. int
  23801. main ()
  23802. {
  23803. FILE *f = fopen ("conftest.val", "w");
  23804. if (! f)
  23805. return 1;
  23806. if (((long int) (sizeof (long long))) < 0)
  23807. {
  23808. long int i = longval ();
  23809. if (i != ((long int) (sizeof (long long))))
  23810. return 1;
  23811. fprintf (f, "%ld", i);
  23812. }
  23813. else
  23814. {
  23815. unsigned long int i = ulongval ();
  23816. if (i != ((long int) (sizeof (long long))))
  23817. return 1;
  23818. fprintf (f, "%lu", i);
  23819. }
  23820. /* Do not output a trailing newline, as this causes \r\n confusion
  23821. on some platforms. */
  23822. return ferror (f) || fclose (f) != 0;
  23823. ;
  23824. return 0;
  23825. }
  23826. _ACEOF
  23827. rm -f conftest$ac_exeext
  23828. if { (ac_try="$ac_link"
  23829. case "(($ac_try" in
  23830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23831. *) ac_try_echo=$ac_try;;
  23832. esac
  23833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23834. $as_echo "$ac_try_echo") >&5
  23835. (eval "$ac_link") 2>&5
  23836. ac_status=$?
  23837. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23838. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23839. { (case "(($ac_try" in
  23840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23841. *) ac_try_echo=$ac_try;;
  23842. esac
  23843. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23844. $as_echo "$ac_try_echo") >&5
  23845. (eval "$ac_try") 2>&5
  23846. ac_status=$?
  23847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23848. (exit $ac_status); }; }; then
  23849. ac_cv_sizeof_long_long=`cat conftest.val`
  23850. else
  23851. $as_echo "$as_me: program exited with status $ac_status" >&5
  23852. $as_echo "$as_me: failed program was:" >&5
  23853. sed 's/^/| /' conftest.$ac_ext >&5
  23854. ( exit $ac_status )
  23855. if test "$ac_cv_type_long_long" = yes; then
  23856. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23858. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  23859. See \`config.log' for more details." >&5
  23860. $as_echo "$as_me: error: cannot compute sizeof (long long)
  23861. See \`config.log' for more details." >&2;}
  23862. { (exit 77); exit 77; }; }; }
  23863. else
  23864. ac_cv_sizeof_long_long=0
  23865. fi
  23866. fi
  23867. rm -rf conftest.dSYM
  23868. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23869. fi
  23870. rm -f conftest.val
  23871. fi
  23872. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  23873. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  23874. cat >>confdefs.h <<_ACEOF
  23875. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  23876. _ACEOF
  23877. if test "$cross_compiling" = yes; then
  23878. # Depending upon the size, compute the lo and hi bounds.
  23879. cat >conftest.$ac_ext <<_ACEOF
  23880. /* confdefs.h. */
  23881. _ACEOF
  23882. cat confdefs.h >>conftest.$ac_ext
  23883. cat >>conftest.$ac_ext <<_ACEOF
  23884. /* end confdefs.h. */
  23885. $ac_includes_default
  23886. fd_set foo;
  23887. int
  23888. main ()
  23889. {
  23890. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) >= 0)];
  23891. test_array [0] = 0
  23892. ;
  23893. return 0;
  23894. }
  23895. _ACEOF
  23896. rm -f conftest.$ac_objext
  23897. if { (ac_try="$ac_compile"
  23898. case "(($ac_try" in
  23899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23900. *) ac_try_echo=$ac_try;;
  23901. esac
  23902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23903. $as_echo "$ac_try_echo") >&5
  23904. (eval "$ac_compile") 2>conftest.er1
  23905. ac_status=$?
  23906. grep -v '^ *+' conftest.er1 >conftest.err
  23907. rm -f conftest.er1
  23908. cat conftest.err >&5
  23909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23910. (exit $ac_status); } && {
  23911. test -z "$ac_c_werror_flag" ||
  23912. test ! -s conftest.err
  23913. } && test -s conftest.$ac_objext; then
  23914. ac_lo=0 ac_mid=0
  23915. while :; do
  23916. cat >conftest.$ac_ext <<_ACEOF
  23917. /* confdefs.h. */
  23918. _ACEOF
  23919. cat confdefs.h >>conftest.$ac_ext
  23920. cat >>conftest.$ac_ext <<_ACEOF
  23921. /* end confdefs.h. */
  23922. $ac_includes_default
  23923. fd_set foo;
  23924. int
  23925. main ()
  23926. {
  23927. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) <= $ac_mid)];
  23928. test_array [0] = 0
  23929. ;
  23930. return 0;
  23931. }
  23932. _ACEOF
  23933. rm -f conftest.$ac_objext
  23934. if { (ac_try="$ac_compile"
  23935. case "(($ac_try" in
  23936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23937. *) ac_try_echo=$ac_try;;
  23938. esac
  23939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23940. $as_echo "$ac_try_echo") >&5
  23941. (eval "$ac_compile") 2>conftest.er1
  23942. ac_status=$?
  23943. grep -v '^ *+' conftest.er1 >conftest.err
  23944. rm -f conftest.er1
  23945. cat conftest.err >&5
  23946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23947. (exit $ac_status); } && {
  23948. test -z "$ac_c_werror_flag" ||
  23949. test ! -s conftest.err
  23950. } && test -s conftest.$ac_objext; then
  23951. ac_hi=$ac_mid; break
  23952. else
  23953. $as_echo "$as_me: failed program was:" >&5
  23954. sed 's/^/| /' conftest.$ac_ext >&5
  23955. ac_lo=`expr $ac_mid + 1`
  23956. if test $ac_lo -le $ac_mid; then
  23957. ac_lo= ac_hi=
  23958. break
  23959. fi
  23960. ac_mid=`expr 2 '*' $ac_mid + 1`
  23961. fi
  23962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23963. done
  23964. else
  23965. $as_echo "$as_me: failed program was:" >&5
  23966. sed 's/^/| /' conftest.$ac_ext >&5
  23967. cat >conftest.$ac_ext <<_ACEOF
  23968. /* confdefs.h. */
  23969. _ACEOF
  23970. cat confdefs.h >>conftest.$ac_ext
  23971. cat >>conftest.$ac_ext <<_ACEOF
  23972. /* end confdefs.h. */
  23973. $ac_includes_default
  23974. fd_set foo;
  23975. int
  23976. main ()
  23977. {
  23978. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) < 0)];
  23979. test_array [0] = 0
  23980. ;
  23981. return 0;
  23982. }
  23983. _ACEOF
  23984. rm -f conftest.$ac_objext
  23985. if { (ac_try="$ac_compile"
  23986. case "(($ac_try" in
  23987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23988. *) ac_try_echo=$ac_try;;
  23989. esac
  23990. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23991. $as_echo "$ac_try_echo") >&5
  23992. (eval "$ac_compile") 2>conftest.er1
  23993. ac_status=$?
  23994. grep -v '^ *+' conftest.er1 >conftest.err
  23995. rm -f conftest.er1
  23996. cat conftest.err >&5
  23997. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23998. (exit $ac_status); } && {
  23999. test -z "$ac_c_werror_flag" ||
  24000. test ! -s conftest.err
  24001. } && test -s conftest.$ac_objext; then
  24002. ac_hi=-1 ac_mid=-1
  24003. while :; do
  24004. cat >conftest.$ac_ext <<_ACEOF
  24005. /* confdefs.h. */
  24006. _ACEOF
  24007. cat confdefs.h >>conftest.$ac_ext
  24008. cat >>conftest.$ac_ext <<_ACEOF
  24009. /* end confdefs.h. */
  24010. $ac_includes_default
  24011. fd_set foo;
  24012. int
  24013. main ()
  24014. {
  24015. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) >= $ac_mid)];
  24016. test_array [0] = 0
  24017. ;
  24018. return 0;
  24019. }
  24020. _ACEOF
  24021. rm -f conftest.$ac_objext
  24022. if { (ac_try="$ac_compile"
  24023. case "(($ac_try" in
  24024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24025. *) ac_try_echo=$ac_try;;
  24026. esac
  24027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24028. $as_echo "$ac_try_echo") >&5
  24029. (eval "$ac_compile") 2>conftest.er1
  24030. ac_status=$?
  24031. grep -v '^ *+' conftest.er1 >conftest.err
  24032. rm -f conftest.er1
  24033. cat conftest.err >&5
  24034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24035. (exit $ac_status); } && {
  24036. test -z "$ac_c_werror_flag" ||
  24037. test ! -s conftest.err
  24038. } && test -s conftest.$ac_objext; then
  24039. ac_lo=$ac_mid; break
  24040. else
  24041. $as_echo "$as_me: failed program was:" >&5
  24042. sed 's/^/| /' conftest.$ac_ext >&5
  24043. ac_hi=`expr '(' $ac_mid ')' - 1`
  24044. if test $ac_mid -le $ac_hi; then
  24045. ac_lo= ac_hi=
  24046. break
  24047. fi
  24048. ac_mid=`expr 2 '*' $ac_mid`
  24049. fi
  24050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24051. done
  24052. else
  24053. $as_echo "$as_me: failed program was:" >&5
  24054. sed 's/^/| /' conftest.$ac_ext >&5
  24055. ac_lo= ac_hi=
  24056. fi
  24057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24058. fi
  24059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24060. # Binary search between lo and hi bounds.
  24061. while test "x$ac_lo" != "x$ac_hi"; do
  24062. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  24063. cat >conftest.$ac_ext <<_ACEOF
  24064. /* confdefs.h. */
  24065. _ACEOF
  24066. cat confdefs.h >>conftest.$ac_ext
  24067. cat >>conftest.$ac_ext <<_ACEOF
  24068. /* end confdefs.h. */
  24069. $ac_includes_default
  24070. fd_set foo;
  24071. int
  24072. main ()
  24073. {
  24074. static int test_array [1 - 2 * !((sizeof(foo.fds_bits[0])) <= $ac_mid)];
  24075. test_array [0] = 0
  24076. ;
  24077. return 0;
  24078. }
  24079. _ACEOF
  24080. rm -f conftest.$ac_objext
  24081. if { (ac_try="$ac_compile"
  24082. case "(($ac_try" in
  24083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24084. *) ac_try_echo=$ac_try;;
  24085. esac
  24086. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24087. $as_echo "$ac_try_echo") >&5
  24088. (eval "$ac_compile") 2>conftest.er1
  24089. ac_status=$?
  24090. grep -v '^ *+' conftest.er1 >conftest.err
  24091. rm -f conftest.er1
  24092. cat conftest.err >&5
  24093. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24094. (exit $ac_status); } && {
  24095. test -z "$ac_c_werror_flag" ||
  24096. test ! -s conftest.err
  24097. } && test -s conftest.$ac_objext; then
  24098. ac_hi=$ac_mid
  24099. else
  24100. $as_echo "$as_me: failed program was:" >&5
  24101. sed 's/^/| /' conftest.$ac_ext >&5
  24102. ac_lo=`expr '(' $ac_mid ')' + 1`
  24103. fi
  24104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24105. done
  24106. case $ac_lo in
  24107. ?*) ac_cv_sizeof_fd_set_fds_bits=$ac_lo;;
  24108. '') ;;
  24109. esac
  24110. else
  24111. cat >conftest.$ac_ext <<_ACEOF
  24112. /* confdefs.h. */
  24113. _ACEOF
  24114. cat confdefs.h >>conftest.$ac_ext
  24115. cat >>conftest.$ac_ext <<_ACEOF
  24116. /* end confdefs.h. */
  24117. $ac_includes_default
  24118. fd_set foo;
  24119. static long int longval () { return sizeof(foo.fds_bits[0]); }
  24120. static unsigned long int ulongval () { return sizeof(foo.fds_bits[0]); }
  24121. #include <stdio.h>
  24122. #include <stdlib.h>
  24123. int
  24124. main ()
  24125. {
  24126. FILE *f = fopen ("conftest.val", "w");
  24127. if (! f)
  24128. return 1;
  24129. if ((sizeof(foo.fds_bits[0])) < 0)
  24130. {
  24131. long int i = longval ();
  24132. if (i != (sizeof(foo.fds_bits[0])))
  24133. return 1;
  24134. fprintf (f, "%ld", i);
  24135. }
  24136. else
  24137. {
  24138. unsigned long int i = ulongval ();
  24139. if (i != (sizeof(foo.fds_bits[0])))
  24140. return 1;
  24141. fprintf (f, "%lu", i);
  24142. }
  24143. /* Do not output a trailing newline, as this causes \r\n confusion
  24144. on some platforms. */
  24145. return ferror (f) || fclose (f) != 0;
  24146. ;
  24147. return 0;
  24148. }
  24149. _ACEOF
  24150. rm -f conftest$ac_exeext
  24151. if { (ac_try="$ac_link"
  24152. case "(($ac_try" in
  24153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24154. *) ac_try_echo=$ac_try;;
  24155. esac
  24156. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24157. $as_echo "$ac_try_echo") >&5
  24158. (eval "$ac_link") 2>&5
  24159. ac_status=$?
  24160. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24161. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24162. { (case "(($ac_try" in
  24163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24164. *) ac_try_echo=$ac_try;;
  24165. esac
  24166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24167. $as_echo "$ac_try_echo") >&5
  24168. (eval "$ac_try") 2>&5
  24169. ac_status=$?
  24170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24171. (exit $ac_status); }; }; then
  24172. ac_cv_sizeof_fd_set_fds_bits=`cat conftest.val`
  24173. else
  24174. $as_echo "$as_me: program exited with status $ac_status" >&5
  24175. $as_echo "$as_me: failed program was:" >&5
  24176. sed 's/^/| /' conftest.$ac_ext >&5
  24177. fi
  24178. rm -rf conftest.dSYM
  24179. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24180. fi
  24181. rm -f conftest.val
  24182. # This doesn't actually work; what it does is to use the variable set in the
  24183. # previous test as a cached value to set the right output variables.
  24184. # The cast to long int works around a bug in the HP C Compiler
  24185. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24186. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24187. # This bug is HP SR number 8606223364.
  24188. { $as_echo "$as_me:$LINENO: checking size of fd_set.fds_bits" >&5
  24189. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  24190. if test "${ac_cv_sizeof_fd_set_fds_bits+set}" = set; then
  24191. $as_echo_n "(cached) " >&6
  24192. else
  24193. if test "$cross_compiling" = yes; then
  24194. # Depending upon the size, compute the lo and hi bounds.
  24195. cat >conftest.$ac_ext <<_ACEOF
  24196. /* confdefs.h. */
  24197. _ACEOF
  24198. cat confdefs.h >>conftest.$ac_ext
  24199. cat >>conftest.$ac_ext <<_ACEOF
  24200. /* end confdefs.h. */
  24201. $ac_includes_default
  24202. int
  24203. main ()
  24204. {
  24205. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) >= 0)];
  24206. test_array [0] = 0
  24207. ;
  24208. return 0;
  24209. }
  24210. _ACEOF
  24211. rm -f conftest.$ac_objext
  24212. if { (ac_try="$ac_compile"
  24213. case "(($ac_try" in
  24214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24215. *) ac_try_echo=$ac_try;;
  24216. esac
  24217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24218. $as_echo "$ac_try_echo") >&5
  24219. (eval "$ac_compile") 2>conftest.er1
  24220. ac_status=$?
  24221. grep -v '^ *+' conftest.er1 >conftest.err
  24222. rm -f conftest.er1
  24223. cat conftest.err >&5
  24224. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24225. (exit $ac_status); } && {
  24226. test -z "$ac_c_werror_flag" ||
  24227. test ! -s conftest.err
  24228. } && test -s conftest.$ac_objext; then
  24229. ac_lo=0 ac_mid=0
  24230. while :; do
  24231. cat >conftest.$ac_ext <<_ACEOF
  24232. /* confdefs.h. */
  24233. _ACEOF
  24234. cat confdefs.h >>conftest.$ac_ext
  24235. cat >>conftest.$ac_ext <<_ACEOF
  24236. /* end confdefs.h. */
  24237. $ac_includes_default
  24238. int
  24239. main ()
  24240. {
  24241. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) <= $ac_mid)];
  24242. test_array [0] = 0
  24243. ;
  24244. return 0;
  24245. }
  24246. _ACEOF
  24247. rm -f conftest.$ac_objext
  24248. if { (ac_try="$ac_compile"
  24249. case "(($ac_try" in
  24250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24251. *) ac_try_echo=$ac_try;;
  24252. esac
  24253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24254. $as_echo "$ac_try_echo") >&5
  24255. (eval "$ac_compile") 2>conftest.er1
  24256. ac_status=$?
  24257. grep -v '^ *+' conftest.er1 >conftest.err
  24258. rm -f conftest.er1
  24259. cat conftest.err >&5
  24260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24261. (exit $ac_status); } && {
  24262. test -z "$ac_c_werror_flag" ||
  24263. test ! -s conftest.err
  24264. } && test -s conftest.$ac_objext; then
  24265. ac_hi=$ac_mid; break
  24266. else
  24267. $as_echo "$as_me: failed program was:" >&5
  24268. sed 's/^/| /' conftest.$ac_ext >&5
  24269. ac_lo=`expr $ac_mid + 1`
  24270. if test $ac_lo -le $ac_mid; then
  24271. ac_lo= ac_hi=
  24272. break
  24273. fi
  24274. ac_mid=`expr 2 '*' $ac_mid + 1`
  24275. fi
  24276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24277. done
  24278. else
  24279. $as_echo "$as_me: failed program was:" >&5
  24280. sed 's/^/| /' conftest.$ac_ext >&5
  24281. cat >conftest.$ac_ext <<_ACEOF
  24282. /* confdefs.h. */
  24283. _ACEOF
  24284. cat confdefs.h >>conftest.$ac_ext
  24285. cat >>conftest.$ac_ext <<_ACEOF
  24286. /* end confdefs.h. */
  24287. $ac_includes_default
  24288. int
  24289. main ()
  24290. {
  24291. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) < 0)];
  24292. test_array [0] = 0
  24293. ;
  24294. return 0;
  24295. }
  24296. _ACEOF
  24297. rm -f conftest.$ac_objext
  24298. if { (ac_try="$ac_compile"
  24299. case "(($ac_try" in
  24300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24301. *) ac_try_echo=$ac_try;;
  24302. esac
  24303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24304. $as_echo "$ac_try_echo") >&5
  24305. (eval "$ac_compile") 2>conftest.er1
  24306. ac_status=$?
  24307. grep -v '^ *+' conftest.er1 >conftest.err
  24308. rm -f conftest.er1
  24309. cat conftest.err >&5
  24310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24311. (exit $ac_status); } && {
  24312. test -z "$ac_c_werror_flag" ||
  24313. test ! -s conftest.err
  24314. } && test -s conftest.$ac_objext; then
  24315. ac_hi=-1 ac_mid=-1
  24316. while :; do
  24317. cat >conftest.$ac_ext <<_ACEOF
  24318. /* confdefs.h. */
  24319. _ACEOF
  24320. cat confdefs.h >>conftest.$ac_ext
  24321. cat >>conftest.$ac_ext <<_ACEOF
  24322. /* end confdefs.h. */
  24323. $ac_includes_default
  24324. int
  24325. main ()
  24326. {
  24327. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) >= $ac_mid)];
  24328. test_array [0] = 0
  24329. ;
  24330. return 0;
  24331. }
  24332. _ACEOF
  24333. rm -f conftest.$ac_objext
  24334. if { (ac_try="$ac_compile"
  24335. case "(($ac_try" in
  24336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24337. *) ac_try_echo=$ac_try;;
  24338. esac
  24339. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24340. $as_echo "$ac_try_echo") >&5
  24341. (eval "$ac_compile") 2>conftest.er1
  24342. ac_status=$?
  24343. grep -v '^ *+' conftest.er1 >conftest.err
  24344. rm -f conftest.er1
  24345. cat conftest.err >&5
  24346. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24347. (exit $ac_status); } && {
  24348. test -z "$ac_c_werror_flag" ||
  24349. test ! -s conftest.err
  24350. } && test -s conftest.$ac_objext; then
  24351. ac_lo=$ac_mid; break
  24352. else
  24353. $as_echo "$as_me: failed program was:" >&5
  24354. sed 's/^/| /' conftest.$ac_ext >&5
  24355. ac_hi=`expr '(' $ac_mid ')' - 1`
  24356. if test $ac_mid -le $ac_hi; then
  24357. ac_lo= ac_hi=
  24358. break
  24359. fi
  24360. ac_mid=`expr 2 '*' $ac_mid`
  24361. fi
  24362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24363. done
  24364. else
  24365. $as_echo "$as_me: failed program was:" >&5
  24366. sed 's/^/| /' conftest.$ac_ext >&5
  24367. ac_lo= ac_hi=
  24368. fi
  24369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24370. fi
  24371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24372. # Binary search between lo and hi bounds.
  24373. while test "x$ac_lo" != "x$ac_hi"; do
  24374. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  24375. cat >conftest.$ac_ext <<_ACEOF
  24376. /* confdefs.h. */
  24377. _ACEOF
  24378. cat confdefs.h >>conftest.$ac_ext
  24379. cat >>conftest.$ac_ext <<_ACEOF
  24380. /* end confdefs.h. */
  24381. $ac_includes_default
  24382. int
  24383. main ()
  24384. {
  24385. static int test_array [1 - 2 * !(((long int) (sizeof (fd_set.fds_bits))) <= $ac_mid)];
  24386. test_array [0] = 0
  24387. ;
  24388. return 0;
  24389. }
  24390. _ACEOF
  24391. rm -f conftest.$ac_objext
  24392. if { (ac_try="$ac_compile"
  24393. case "(($ac_try" in
  24394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24395. *) ac_try_echo=$ac_try;;
  24396. esac
  24397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24398. $as_echo "$ac_try_echo") >&5
  24399. (eval "$ac_compile") 2>conftest.er1
  24400. ac_status=$?
  24401. grep -v '^ *+' conftest.er1 >conftest.err
  24402. rm -f conftest.er1
  24403. cat conftest.err >&5
  24404. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24405. (exit $ac_status); } && {
  24406. test -z "$ac_c_werror_flag" ||
  24407. test ! -s conftest.err
  24408. } && test -s conftest.$ac_objext; then
  24409. ac_hi=$ac_mid
  24410. else
  24411. $as_echo "$as_me: failed program was:" >&5
  24412. sed 's/^/| /' conftest.$ac_ext >&5
  24413. ac_lo=`expr '(' $ac_mid ')' + 1`
  24414. fi
  24415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24416. done
  24417. case $ac_lo in
  24418. ?*) ac_cv_sizeof_fd_set_fds_bits=$ac_lo;;
  24419. '') if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  24420. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  24421. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24422. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fd_set.fds_bits)
  24423. See \`config.log' for more details." >&5
  24424. $as_echo "$as_me: error: cannot compute sizeof (fd_set.fds_bits)
  24425. See \`config.log' for more details." >&2;}
  24426. { (exit 77); exit 77; }; }; }
  24427. else
  24428. ac_cv_sizeof_fd_set_fds_bits=0
  24429. fi ;;
  24430. esac
  24431. else
  24432. cat >conftest.$ac_ext <<_ACEOF
  24433. /* confdefs.h. */
  24434. _ACEOF
  24435. cat confdefs.h >>conftest.$ac_ext
  24436. cat >>conftest.$ac_ext <<_ACEOF
  24437. /* end confdefs.h. */
  24438. $ac_includes_default
  24439. static long int longval () { return (long int) (sizeof (fd_set.fds_bits)); }
  24440. static unsigned long int ulongval () { return (long int) (sizeof (fd_set.fds_bits)); }
  24441. #include <stdio.h>
  24442. #include <stdlib.h>
  24443. int
  24444. main ()
  24445. {
  24446. FILE *f = fopen ("conftest.val", "w");
  24447. if (! f)
  24448. return 1;
  24449. if (((long int) (sizeof (fd_set.fds_bits))) < 0)
  24450. {
  24451. long int i = longval ();
  24452. if (i != ((long int) (sizeof (fd_set.fds_bits))))
  24453. return 1;
  24454. fprintf (f, "%ld", i);
  24455. }
  24456. else
  24457. {
  24458. unsigned long int i = ulongval ();
  24459. if (i != ((long int) (sizeof (fd_set.fds_bits))))
  24460. return 1;
  24461. fprintf (f, "%lu", i);
  24462. }
  24463. /* Do not output a trailing newline, as this causes \r\n confusion
  24464. on some platforms. */
  24465. return ferror (f) || fclose (f) != 0;
  24466. ;
  24467. return 0;
  24468. }
  24469. _ACEOF
  24470. rm -f conftest$ac_exeext
  24471. if { (ac_try="$ac_link"
  24472. case "(($ac_try" in
  24473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24474. *) ac_try_echo=$ac_try;;
  24475. esac
  24476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24477. $as_echo "$ac_try_echo") >&5
  24478. (eval "$ac_link") 2>&5
  24479. ac_status=$?
  24480. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24481. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24482. { (case "(($ac_try" in
  24483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24484. *) ac_try_echo=$ac_try;;
  24485. esac
  24486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24487. $as_echo "$ac_try_echo") >&5
  24488. (eval "$ac_try") 2>&5
  24489. ac_status=$?
  24490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24491. (exit $ac_status); }; }; then
  24492. ac_cv_sizeof_fd_set_fds_bits=`cat conftest.val`
  24493. else
  24494. $as_echo "$as_me: program exited with status $ac_status" >&5
  24495. $as_echo "$as_me: failed program was:" >&5
  24496. sed 's/^/| /' conftest.$ac_ext >&5
  24497. ( exit $ac_status )
  24498. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  24499. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  24500. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24501. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fd_set.fds_bits)
  24502. See \`config.log' for more details." >&5
  24503. $as_echo "$as_me: error: cannot compute sizeof (fd_set.fds_bits)
  24504. See \`config.log' for more details." >&2;}
  24505. { (exit 77); exit 77; }; }; }
  24506. else
  24507. ac_cv_sizeof_fd_set_fds_bits=0
  24508. fi
  24509. fi
  24510. rm -rf conftest.dSYM
  24511. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24512. fi
  24513. rm -f conftest.val
  24514. fi
  24515. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  24516. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  24517. cat >>confdefs.h <<_ACEOF
  24518. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  24519. _ACEOF
  24520. # Set a type compatible with the previous. We cannot just use a generic type
  24521. # for these bits, because on big-endian systems, the bits won't match up
  24522. # correctly if the size is wrong.
  24523. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  24524. cat >>confdefs.h <<\_ACEOF
  24525. #define TYPEOF_FD_SET_FDS_BITS int
  24526. _ACEOF
  24527. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  24528. cat >>confdefs.h <<\_ACEOF
  24529. #define TYPEOF_FD_SET_FDS_BITS long
  24530. _ACEOF
  24531. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  24532. cat >>confdefs.h <<\_ACEOF
  24533. #define TYPEOF_FD_SET_FDS_BITS long long
  24534. _ACEOF
  24535. fi ; fi ; fi
  24536. { $as_echo "$as_me:$LINENO: checking for dladdr in dlfcn.h" >&5
  24537. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  24538. PBX_DLADDR=0
  24539. old_LIBS=${LIBS}
  24540. LIBS="${LIBS} -ldl"
  24541. cat >conftest.$ac_ext <<_ACEOF
  24542. /* confdefs.h. */
  24543. _ACEOF
  24544. cat confdefs.h >>conftest.$ac_ext
  24545. cat >>conftest.$ac_ext <<_ACEOF
  24546. /* end confdefs.h. */
  24547. #define _GNU_SOURCE 1
  24548. #include <dlfcn.h>
  24549. int
  24550. main ()
  24551. {
  24552. dladdr((void *)0, (void *)0)
  24553. ;
  24554. return 0;
  24555. }
  24556. _ACEOF
  24557. rm -f conftest.$ac_objext conftest$ac_exeext
  24558. if { (ac_try="$ac_link"
  24559. case "(($ac_try" in
  24560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24561. *) ac_try_echo=$ac_try;;
  24562. esac
  24563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24564. $as_echo "$ac_try_echo") >&5
  24565. (eval "$ac_link") 2>conftest.er1
  24566. ac_status=$?
  24567. grep -v '^ *+' conftest.er1 >conftest.err
  24568. rm -f conftest.er1
  24569. cat conftest.err >&5
  24570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24571. (exit $ac_status); } && {
  24572. test -z "$ac_c_werror_flag" ||
  24573. test ! -s conftest.err
  24574. } && test -s conftest$ac_exeext && {
  24575. test "$cross_compiling" = yes ||
  24576. $as_test_x conftest$ac_exeext
  24577. }; then
  24578. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24579. $as_echo "yes" >&6; }
  24580. PBX_DLADDR=1
  24581. cat >>confdefs.h <<\_ACEOF
  24582. #define HAVE_DLADDR 1
  24583. _ACEOF
  24584. else
  24585. $as_echo "$as_me: failed program was:" >&5
  24586. sed 's/^/| /' conftest.$ac_ext >&5
  24587. { $as_echo "$as_me:$LINENO: result: no" >&5
  24588. $as_echo "no" >&6; }
  24589. fi
  24590. rm -rf conftest.dSYM
  24591. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24592. conftest$ac_exeext conftest.$ac_ext
  24593. LIBS=${old_LIBS}
  24594. # PKGCONFIG is used in later tests
  24595. if test -n "$ac_tool_prefix"; then
  24596. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  24597. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  24598. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24599. $as_echo_n "checking for $ac_word... " >&6; }
  24600. if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
  24601. $as_echo_n "(cached) " >&6
  24602. else
  24603. if test -n "$PKGCONFIG"; then
  24604. ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
  24605. else
  24606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24607. for as_dir in $PATH
  24608. do
  24609. IFS=$as_save_IFS
  24610. test -z "$as_dir" && as_dir=.
  24611. for ac_exec_ext in '' $ac_executable_extensions; do
  24612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24613. ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
  24614. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24615. break 2
  24616. fi
  24617. done
  24618. done
  24619. IFS=$as_save_IFS
  24620. fi
  24621. fi
  24622. PKGCONFIG=$ac_cv_prog_PKGCONFIG
  24623. if test -n "$PKGCONFIG"; then
  24624. { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
  24625. $as_echo "$PKGCONFIG" >&6; }
  24626. else
  24627. { $as_echo "$as_me:$LINENO: result: no" >&5
  24628. $as_echo "no" >&6; }
  24629. fi
  24630. fi
  24631. if test -z "$ac_cv_prog_PKGCONFIG"; then
  24632. ac_ct_PKGCONFIG=$PKGCONFIG
  24633. # Extract the first word of "pkg-config", so it can be a program name with args.
  24634. set dummy pkg-config; ac_word=$2
  24635. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24636. $as_echo_n "checking for $ac_word... " >&6; }
  24637. if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
  24638. $as_echo_n "(cached) " >&6
  24639. else
  24640. if test -n "$ac_ct_PKGCONFIG"; then
  24641. ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
  24642. else
  24643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24644. for as_dir in $PATH
  24645. do
  24646. IFS=$as_save_IFS
  24647. test -z "$as_dir" && as_dir=.
  24648. for ac_exec_ext in '' $ac_executable_extensions; do
  24649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24650. ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
  24651. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24652. break 2
  24653. fi
  24654. done
  24655. done
  24656. IFS=$as_save_IFS
  24657. fi
  24658. fi
  24659. ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
  24660. if test -n "$ac_ct_PKGCONFIG"; then
  24661. { $as_echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
  24662. $as_echo "$ac_ct_PKGCONFIG" >&6; }
  24663. else
  24664. { $as_echo "$as_me:$LINENO: result: no" >&5
  24665. $as_echo "no" >&6; }
  24666. fi
  24667. if test "x$ac_ct_PKGCONFIG" = x; then
  24668. PKGCONFIG="No"
  24669. else
  24670. case $cross_compiling:$ac_tool_warned in
  24671. yes:)
  24672. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  24673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24674. ac_tool_warned=yes ;;
  24675. esac
  24676. PKGCONFIG=$ac_ct_PKGCONFIG
  24677. fi
  24678. else
  24679. PKGCONFIG="$ac_cv_prog_PKGCONFIG"
  24680. fi
  24681. # do the package library checks now
  24682. if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
  24683. pbxlibdir=""
  24684. # if --with-ALSA=DIR has been specified, use it.
  24685. if test "x${ALSA_DIR}" != "x"; then
  24686. if test -d ${ALSA_DIR}/lib; then
  24687. pbxlibdir="-L${ALSA_DIR}/lib"
  24688. else
  24689. pbxlibdir="-L${ALSA_DIR}"
  24690. fi
  24691. fi
  24692. pbxfuncname="snd_spcm_init"
  24693. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24694. AST_ALSA_FOUND=yes
  24695. else
  24696. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24697. CFLAGS="${CFLAGS} "
  24698. as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
  24699. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
  24700. $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
  24701. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  24702. $as_echo_n "(cached) " >&6
  24703. else
  24704. ac_check_lib_save_LIBS=$LIBS
  24705. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  24706. cat >conftest.$ac_ext <<_ACEOF
  24707. /* confdefs.h. */
  24708. _ACEOF
  24709. cat confdefs.h >>conftest.$ac_ext
  24710. cat >>conftest.$ac_ext <<_ACEOF
  24711. /* end confdefs.h. */
  24712. /* Override any GCC internal prototype to avoid an error.
  24713. Use char because int might match the return type of a GCC
  24714. builtin and then its argument prototype would still apply. */
  24715. #ifdef __cplusplus
  24716. extern "C"
  24717. #endif
  24718. char ${pbxfuncname} ();
  24719. int
  24720. main ()
  24721. {
  24722. return ${pbxfuncname} ();
  24723. ;
  24724. return 0;
  24725. }
  24726. _ACEOF
  24727. rm -f conftest.$ac_objext conftest$ac_exeext
  24728. if { (ac_try="$ac_link"
  24729. case "(($ac_try" in
  24730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24731. *) ac_try_echo=$ac_try;;
  24732. esac
  24733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24734. $as_echo "$ac_try_echo") >&5
  24735. (eval "$ac_link") 2>conftest.er1
  24736. ac_status=$?
  24737. grep -v '^ *+' conftest.er1 >conftest.err
  24738. rm -f conftest.er1
  24739. cat conftest.err >&5
  24740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24741. (exit $ac_status); } && {
  24742. test -z "$ac_c_werror_flag" ||
  24743. test ! -s conftest.err
  24744. } && test -s conftest$ac_exeext && {
  24745. test "$cross_compiling" = yes ||
  24746. $as_test_x conftest$ac_exeext
  24747. }; then
  24748. eval "$as_ac_Lib=yes"
  24749. else
  24750. $as_echo "$as_me: failed program was:" >&5
  24751. sed 's/^/| /' conftest.$ac_ext >&5
  24752. eval "$as_ac_Lib=no"
  24753. fi
  24754. rm -rf conftest.dSYM
  24755. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24756. conftest$ac_exeext conftest.$ac_ext
  24757. LIBS=$ac_check_lib_save_LIBS
  24758. fi
  24759. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  24760. $as_echo "$as_val"'`
  24761. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24762. $as_echo "$ac_res" >&6; }
  24763. as_val=`eval 'as_val=${'$as_ac_Lib'}
  24764. $as_echo "$as_val"'`
  24765. if test "x$as_val" = x""yes; then
  24766. AST_ALSA_FOUND=yes
  24767. else
  24768. AST_ALSA_FOUND=no
  24769. fi
  24770. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24771. fi
  24772. # now check for the header.
  24773. if test "${AST_ALSA_FOUND}" = "yes"; then
  24774. ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
  24775. # if --with-ALSA=DIR has been specified, use it.
  24776. if test "x${ALSA_DIR}" != "x"; then
  24777. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  24778. fi
  24779. ALSA_INCLUDE="${ALSA_INCLUDE} "
  24780. if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
  24781. ALSA_HEADER_FOUND="1"
  24782. else # check for the header
  24783. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24784. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  24785. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  24786. { $as_echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
  24787. $as_echo_n "checking for alsa/asoundlib.h... " >&6; }
  24788. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  24789. $as_echo_n "(cached) " >&6
  24790. fi
  24791. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
  24792. $as_echo "$ac_cv_header_alsa_asoundlib_h" >&6; }
  24793. else
  24794. # Is the header compilable?
  24795. { $as_echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
  24796. $as_echo_n "checking alsa/asoundlib.h usability... " >&6; }
  24797. cat >conftest.$ac_ext <<_ACEOF
  24798. /* confdefs.h. */
  24799. _ACEOF
  24800. cat confdefs.h >>conftest.$ac_ext
  24801. cat >>conftest.$ac_ext <<_ACEOF
  24802. /* end confdefs.h. */
  24803. $ac_includes_default
  24804. #include <alsa/asoundlib.h>
  24805. _ACEOF
  24806. rm -f conftest.$ac_objext
  24807. if { (ac_try="$ac_compile"
  24808. case "(($ac_try" in
  24809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24810. *) ac_try_echo=$ac_try;;
  24811. esac
  24812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24813. $as_echo "$ac_try_echo") >&5
  24814. (eval "$ac_compile") 2>conftest.er1
  24815. ac_status=$?
  24816. grep -v '^ *+' conftest.er1 >conftest.err
  24817. rm -f conftest.er1
  24818. cat conftest.err >&5
  24819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24820. (exit $ac_status); } && {
  24821. test -z "$ac_c_werror_flag" ||
  24822. test ! -s conftest.err
  24823. } && test -s conftest.$ac_objext; then
  24824. ac_header_compiler=yes
  24825. else
  24826. $as_echo "$as_me: failed program was:" >&5
  24827. sed 's/^/| /' conftest.$ac_ext >&5
  24828. ac_header_compiler=no
  24829. fi
  24830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24831. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24832. $as_echo "$ac_header_compiler" >&6; }
  24833. # Is the header present?
  24834. { $as_echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
  24835. $as_echo_n "checking alsa/asoundlib.h presence... " >&6; }
  24836. cat >conftest.$ac_ext <<_ACEOF
  24837. /* confdefs.h. */
  24838. _ACEOF
  24839. cat confdefs.h >>conftest.$ac_ext
  24840. cat >>conftest.$ac_ext <<_ACEOF
  24841. /* end confdefs.h. */
  24842. #include <alsa/asoundlib.h>
  24843. _ACEOF
  24844. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24845. case "(($ac_try" in
  24846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24847. *) ac_try_echo=$ac_try;;
  24848. esac
  24849. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24850. $as_echo "$ac_try_echo") >&5
  24851. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24852. ac_status=$?
  24853. grep -v '^ *+' conftest.er1 >conftest.err
  24854. rm -f conftest.er1
  24855. cat conftest.err >&5
  24856. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24857. (exit $ac_status); } >/dev/null && {
  24858. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24859. test ! -s conftest.err
  24860. }; then
  24861. ac_header_preproc=yes
  24862. else
  24863. $as_echo "$as_me: failed program was:" >&5
  24864. sed 's/^/| /' conftest.$ac_ext >&5
  24865. ac_header_preproc=no
  24866. fi
  24867. rm -f conftest.err conftest.$ac_ext
  24868. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24869. $as_echo "$ac_header_preproc" >&6; }
  24870. # So? What about this header?
  24871. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24872. yes:no: )
  24873. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  24874. $as_echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24875. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
  24876. $as_echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
  24877. ac_header_preproc=yes
  24878. ;;
  24879. no:yes:* )
  24880. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
  24881. $as_echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
  24882. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
  24883. $as_echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
  24884. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
  24885. $as_echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
  24886. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
  24887. $as_echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  24888. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
  24889. $as_echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
  24890. { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
  24891. $as_echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
  24892. ( cat <<\_ASBOX
  24893. ## ------------------------------------------ ##
  24894. ## Report this to https://issues.asterisk.org ##
  24895. ## ------------------------------------------ ##
  24896. _ASBOX
  24897. ) | sed "s/^/$as_me: WARNING: /" >&2
  24898. ;;
  24899. esac
  24900. { $as_echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
  24901. $as_echo_n "checking for alsa/asoundlib.h... " >&6; }
  24902. if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
  24903. $as_echo_n "(cached) " >&6
  24904. else
  24905. ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
  24906. fi
  24907. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
  24908. $as_echo "$ac_cv_header_alsa_asoundlib_h" >&6; }
  24909. fi
  24910. if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then
  24911. ALSA_HEADER_FOUND=1
  24912. else
  24913. ALSA_HEADER_FOUND=0
  24914. fi
  24915. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24916. fi
  24917. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  24918. ALSA_LIB=""
  24919. ALSA_INCLUDE=""
  24920. else
  24921. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24922. ALSA_LIB=""
  24923. fi
  24924. PBX_ALSA=1
  24925. cat >>confdefs.h <<_ACEOF
  24926. #define HAVE_ALSA 1
  24927. _ACEOF
  24928. fi
  24929. fi
  24930. fi
  24931. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  24932. pbxlibdir=""
  24933. # if --with-BFD=DIR has been specified, use it.
  24934. if test "x${BFD_DIR}" != "x"; then
  24935. if test -d ${BFD_DIR}/lib; then
  24936. pbxlibdir="-L${BFD_DIR}/lib"
  24937. else
  24938. pbxlibdir="-L${BFD_DIR}"
  24939. fi
  24940. fi
  24941. pbxfuncname="bfd_openr"
  24942. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24943. AST_BFD_FOUND=yes
  24944. else
  24945. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24946. CFLAGS="${CFLAGS} "
  24947. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  24948. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lbfd" >&5
  24949. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  24950. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  24951. $as_echo_n "(cached) " >&6
  24952. else
  24953. ac_check_lib_save_LIBS=$LIBS
  24954. LIBS="-lbfd ${pbxlibdir} $LIBS"
  24955. cat >conftest.$ac_ext <<_ACEOF
  24956. /* confdefs.h. */
  24957. _ACEOF
  24958. cat confdefs.h >>conftest.$ac_ext
  24959. cat >>conftest.$ac_ext <<_ACEOF
  24960. /* end confdefs.h. */
  24961. /* Override any GCC internal prototype to avoid an error.
  24962. Use char because int might match the return type of a GCC
  24963. builtin and then its argument prototype would still apply. */
  24964. #ifdef __cplusplus
  24965. extern "C"
  24966. #endif
  24967. char ${pbxfuncname} ();
  24968. int
  24969. main ()
  24970. {
  24971. return ${pbxfuncname} ();
  24972. ;
  24973. return 0;
  24974. }
  24975. _ACEOF
  24976. rm -f conftest.$ac_objext conftest$ac_exeext
  24977. if { (ac_try="$ac_link"
  24978. case "(($ac_try" in
  24979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24980. *) ac_try_echo=$ac_try;;
  24981. esac
  24982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24983. $as_echo "$ac_try_echo") >&5
  24984. (eval "$ac_link") 2>conftest.er1
  24985. ac_status=$?
  24986. grep -v '^ *+' conftest.er1 >conftest.err
  24987. rm -f conftest.er1
  24988. cat conftest.err >&5
  24989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24990. (exit $ac_status); } && {
  24991. test -z "$ac_c_werror_flag" ||
  24992. test ! -s conftest.err
  24993. } && test -s conftest$ac_exeext && {
  24994. test "$cross_compiling" = yes ||
  24995. $as_test_x conftest$ac_exeext
  24996. }; then
  24997. eval "$as_ac_Lib=yes"
  24998. else
  24999. $as_echo "$as_me: failed program was:" >&5
  25000. sed 's/^/| /' conftest.$ac_ext >&5
  25001. eval "$as_ac_Lib=no"
  25002. fi
  25003. rm -rf conftest.dSYM
  25004. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25005. conftest$ac_exeext conftest.$ac_ext
  25006. LIBS=$ac_check_lib_save_LIBS
  25007. fi
  25008. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  25009. $as_echo "$as_val"'`
  25010. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25011. $as_echo "$ac_res" >&6; }
  25012. as_val=`eval 'as_val=${'$as_ac_Lib'}
  25013. $as_echo "$as_val"'`
  25014. if test "x$as_val" = x""yes; then
  25015. AST_BFD_FOUND=yes
  25016. else
  25017. AST_BFD_FOUND=no
  25018. fi
  25019. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25020. fi
  25021. # now check for the header.
  25022. if test "${AST_BFD_FOUND}" = "yes"; then
  25023. BFD_LIB="${pbxlibdir} -lbfd "
  25024. # if --with-BFD=DIR has been specified, use it.
  25025. if test "x${BFD_DIR}" != "x"; then
  25026. BFD_INCLUDE="-I${BFD_DIR}/include"
  25027. fi
  25028. BFD_INCLUDE="${BFD_INCLUDE} "
  25029. if test "xbfd.h" = "x" ; then # no header, assume found
  25030. BFD_HEADER_FOUND="1"
  25031. else # check for the header
  25032. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25033. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  25034. if test "${ac_cv_header_bfd_h+set}" = set; then
  25035. { $as_echo "$as_me:$LINENO: checking for bfd.h" >&5
  25036. $as_echo_n "checking for bfd.h... " >&6; }
  25037. if test "${ac_cv_header_bfd_h+set}" = set; then
  25038. $as_echo_n "(cached) " >&6
  25039. fi
  25040. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
  25041. $as_echo "$ac_cv_header_bfd_h" >&6; }
  25042. else
  25043. # Is the header compilable?
  25044. { $as_echo "$as_me:$LINENO: checking bfd.h usability" >&5
  25045. $as_echo_n "checking bfd.h usability... " >&6; }
  25046. cat >conftest.$ac_ext <<_ACEOF
  25047. /* confdefs.h. */
  25048. _ACEOF
  25049. cat confdefs.h >>conftest.$ac_ext
  25050. cat >>conftest.$ac_ext <<_ACEOF
  25051. /* end confdefs.h. */
  25052. $ac_includes_default
  25053. #include <bfd.h>
  25054. _ACEOF
  25055. rm -f conftest.$ac_objext
  25056. if { (ac_try="$ac_compile"
  25057. case "(($ac_try" in
  25058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25059. *) ac_try_echo=$ac_try;;
  25060. esac
  25061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25062. $as_echo "$ac_try_echo") >&5
  25063. (eval "$ac_compile") 2>conftest.er1
  25064. ac_status=$?
  25065. grep -v '^ *+' conftest.er1 >conftest.err
  25066. rm -f conftest.er1
  25067. cat conftest.err >&5
  25068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25069. (exit $ac_status); } && {
  25070. test -z "$ac_c_werror_flag" ||
  25071. test ! -s conftest.err
  25072. } && test -s conftest.$ac_objext; then
  25073. ac_header_compiler=yes
  25074. else
  25075. $as_echo "$as_me: failed program was:" >&5
  25076. sed 's/^/| /' conftest.$ac_ext >&5
  25077. ac_header_compiler=no
  25078. fi
  25079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25080. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25081. $as_echo "$ac_header_compiler" >&6; }
  25082. # Is the header present?
  25083. { $as_echo "$as_me:$LINENO: checking bfd.h presence" >&5
  25084. $as_echo_n "checking bfd.h presence... " >&6; }
  25085. cat >conftest.$ac_ext <<_ACEOF
  25086. /* confdefs.h. */
  25087. _ACEOF
  25088. cat confdefs.h >>conftest.$ac_ext
  25089. cat >>conftest.$ac_ext <<_ACEOF
  25090. /* end confdefs.h. */
  25091. #include <bfd.h>
  25092. _ACEOF
  25093. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25094. case "(($ac_try" in
  25095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25096. *) ac_try_echo=$ac_try;;
  25097. esac
  25098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25099. $as_echo "$ac_try_echo") >&5
  25100. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25101. ac_status=$?
  25102. grep -v '^ *+' conftest.er1 >conftest.err
  25103. rm -f conftest.er1
  25104. cat conftest.err >&5
  25105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25106. (exit $ac_status); } >/dev/null && {
  25107. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25108. test ! -s conftest.err
  25109. }; then
  25110. ac_header_preproc=yes
  25111. else
  25112. $as_echo "$as_me: failed program was:" >&5
  25113. sed 's/^/| /' conftest.$ac_ext >&5
  25114. ac_header_preproc=no
  25115. fi
  25116. rm -f conftest.err conftest.$ac_ext
  25117. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25118. $as_echo "$ac_header_preproc" >&6; }
  25119. # So? What about this header?
  25120. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25121. yes:no: )
  25122. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25123. $as_echo "$as_me: WARNING: bfd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25124. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the compiler's result" >&5
  25125. $as_echo "$as_me: WARNING: bfd.h: proceeding with the compiler's result" >&2;}
  25126. ac_header_preproc=yes
  25127. ;;
  25128. no:yes:* )
  25129. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: present but cannot be compiled" >&5
  25130. $as_echo "$as_me: WARNING: bfd.h: present but cannot be compiled" >&2;}
  25131. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: check for missing prerequisite headers?" >&5
  25132. $as_echo "$as_me: WARNING: bfd.h: check for missing prerequisite headers?" >&2;}
  25133. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: see the Autoconf documentation" >&5
  25134. $as_echo "$as_me: WARNING: bfd.h: see the Autoconf documentation" >&2;}
  25135. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: section \"Present But Cannot Be Compiled\"" >&5
  25136. $as_echo "$as_me: WARNING: bfd.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25137. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: proceeding with the preprocessor's result" >&5
  25138. $as_echo "$as_me: WARNING: bfd.h: proceeding with the preprocessor's result" >&2;}
  25139. { $as_echo "$as_me:$LINENO: WARNING: bfd.h: in the future, the compiler will take precedence" >&5
  25140. $as_echo "$as_me: WARNING: bfd.h: in the future, the compiler will take precedence" >&2;}
  25141. ( cat <<\_ASBOX
  25142. ## ------------------------------------------ ##
  25143. ## Report this to https://issues.asterisk.org ##
  25144. ## ------------------------------------------ ##
  25145. _ASBOX
  25146. ) | sed "s/^/$as_me: WARNING: /" >&2
  25147. ;;
  25148. esac
  25149. { $as_echo "$as_me:$LINENO: checking for bfd.h" >&5
  25150. $as_echo_n "checking for bfd.h... " >&6; }
  25151. if test "${ac_cv_header_bfd_h+set}" = set; then
  25152. $as_echo_n "(cached) " >&6
  25153. else
  25154. ac_cv_header_bfd_h=$ac_header_preproc
  25155. fi
  25156. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bfd_h" >&5
  25157. $as_echo "$ac_cv_header_bfd_h" >&6; }
  25158. fi
  25159. if test "x$ac_cv_header_bfd_h" = x""yes; then
  25160. BFD_HEADER_FOUND=1
  25161. else
  25162. BFD_HEADER_FOUND=0
  25163. fi
  25164. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25165. fi
  25166. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  25167. BFD_LIB=""
  25168. BFD_INCLUDE=""
  25169. else
  25170. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25171. BFD_LIB=""
  25172. fi
  25173. PBX_BFD=1
  25174. cat >>confdefs.h <<_ACEOF
  25175. #define HAVE_BFD 1
  25176. _ACEOF
  25177. fi
  25178. fi
  25179. fi
  25180. if test "x${OSARCH}" = "xlinux-gnu" ; then
  25181. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  25182. pbxlibdir=""
  25183. # if --with-CAP=DIR has been specified, use it.
  25184. if test "x${CAP_DIR}" != "x"; then
  25185. if test -d ${CAP_DIR}/lib; then
  25186. pbxlibdir="-L${CAP_DIR}/lib"
  25187. else
  25188. pbxlibdir="-L${CAP_DIR}"
  25189. fi
  25190. fi
  25191. pbxfuncname="cap_from_text"
  25192. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25193. AST_CAP_FOUND=yes
  25194. else
  25195. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25196. CFLAGS="${CFLAGS} "
  25197. as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
  25198. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
  25199. $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
  25200. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  25201. $as_echo_n "(cached) " >&6
  25202. else
  25203. ac_check_lib_save_LIBS=$LIBS
  25204. LIBS="-lcap ${pbxlibdir} $LIBS"
  25205. cat >conftest.$ac_ext <<_ACEOF
  25206. /* confdefs.h. */
  25207. _ACEOF
  25208. cat confdefs.h >>conftest.$ac_ext
  25209. cat >>conftest.$ac_ext <<_ACEOF
  25210. /* end confdefs.h. */
  25211. /* Override any GCC internal prototype to avoid an error.
  25212. Use char because int might match the return type of a GCC
  25213. builtin and then its argument prototype would still apply. */
  25214. #ifdef __cplusplus
  25215. extern "C"
  25216. #endif
  25217. char ${pbxfuncname} ();
  25218. int
  25219. main ()
  25220. {
  25221. return ${pbxfuncname} ();
  25222. ;
  25223. return 0;
  25224. }
  25225. _ACEOF
  25226. rm -f conftest.$ac_objext conftest$ac_exeext
  25227. if { (ac_try="$ac_link"
  25228. case "(($ac_try" in
  25229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25230. *) ac_try_echo=$ac_try;;
  25231. esac
  25232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25233. $as_echo "$ac_try_echo") >&5
  25234. (eval "$ac_link") 2>conftest.er1
  25235. ac_status=$?
  25236. grep -v '^ *+' conftest.er1 >conftest.err
  25237. rm -f conftest.er1
  25238. cat conftest.err >&5
  25239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25240. (exit $ac_status); } && {
  25241. test -z "$ac_c_werror_flag" ||
  25242. test ! -s conftest.err
  25243. } && test -s conftest$ac_exeext && {
  25244. test "$cross_compiling" = yes ||
  25245. $as_test_x conftest$ac_exeext
  25246. }; then
  25247. eval "$as_ac_Lib=yes"
  25248. else
  25249. $as_echo "$as_me: failed program was:" >&5
  25250. sed 's/^/| /' conftest.$ac_ext >&5
  25251. eval "$as_ac_Lib=no"
  25252. fi
  25253. rm -rf conftest.dSYM
  25254. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25255. conftest$ac_exeext conftest.$ac_ext
  25256. LIBS=$ac_check_lib_save_LIBS
  25257. fi
  25258. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  25259. $as_echo "$as_val"'`
  25260. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25261. $as_echo "$ac_res" >&6; }
  25262. as_val=`eval 'as_val=${'$as_ac_Lib'}
  25263. $as_echo "$as_val"'`
  25264. if test "x$as_val" = x""yes; then
  25265. AST_CAP_FOUND=yes
  25266. else
  25267. AST_CAP_FOUND=no
  25268. fi
  25269. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25270. fi
  25271. # now check for the header.
  25272. if test "${AST_CAP_FOUND}" = "yes"; then
  25273. CAP_LIB="${pbxlibdir} -lcap "
  25274. # if --with-CAP=DIR has been specified, use it.
  25275. if test "x${CAP_DIR}" != "x"; then
  25276. CAP_INCLUDE="-I${CAP_DIR}/include"
  25277. fi
  25278. CAP_INCLUDE="${CAP_INCLUDE} "
  25279. if test "xsys/capability.h" = "x" ; then # no header, assume found
  25280. CAP_HEADER_FOUND="1"
  25281. else # check for the header
  25282. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25283. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  25284. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  25285. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  25286. $as_echo_n "checking for sys/capability.h... " >&6; }
  25287. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  25288. $as_echo_n "(cached) " >&6
  25289. fi
  25290. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  25291. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  25292. else
  25293. # Is the header compilable?
  25294. { $as_echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
  25295. $as_echo_n "checking sys/capability.h usability... " >&6; }
  25296. cat >conftest.$ac_ext <<_ACEOF
  25297. /* confdefs.h. */
  25298. _ACEOF
  25299. cat confdefs.h >>conftest.$ac_ext
  25300. cat >>conftest.$ac_ext <<_ACEOF
  25301. /* end confdefs.h. */
  25302. $ac_includes_default
  25303. #include <sys/capability.h>
  25304. _ACEOF
  25305. rm -f conftest.$ac_objext
  25306. if { (ac_try="$ac_compile"
  25307. case "(($ac_try" in
  25308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25309. *) ac_try_echo=$ac_try;;
  25310. esac
  25311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25312. $as_echo "$ac_try_echo") >&5
  25313. (eval "$ac_compile") 2>conftest.er1
  25314. ac_status=$?
  25315. grep -v '^ *+' conftest.er1 >conftest.err
  25316. rm -f conftest.er1
  25317. cat conftest.err >&5
  25318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25319. (exit $ac_status); } && {
  25320. test -z "$ac_c_werror_flag" ||
  25321. test ! -s conftest.err
  25322. } && test -s conftest.$ac_objext; then
  25323. ac_header_compiler=yes
  25324. else
  25325. $as_echo "$as_me: failed program was:" >&5
  25326. sed 's/^/| /' conftest.$ac_ext >&5
  25327. ac_header_compiler=no
  25328. fi
  25329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25330. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25331. $as_echo "$ac_header_compiler" >&6; }
  25332. # Is the header present?
  25333. { $as_echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
  25334. $as_echo_n "checking sys/capability.h presence... " >&6; }
  25335. cat >conftest.$ac_ext <<_ACEOF
  25336. /* confdefs.h. */
  25337. _ACEOF
  25338. cat confdefs.h >>conftest.$ac_ext
  25339. cat >>conftest.$ac_ext <<_ACEOF
  25340. /* end confdefs.h. */
  25341. #include <sys/capability.h>
  25342. _ACEOF
  25343. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25344. case "(($ac_try" in
  25345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25346. *) ac_try_echo=$ac_try;;
  25347. esac
  25348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25349. $as_echo "$ac_try_echo") >&5
  25350. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25351. ac_status=$?
  25352. grep -v '^ *+' conftest.er1 >conftest.err
  25353. rm -f conftest.er1
  25354. cat conftest.err >&5
  25355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25356. (exit $ac_status); } >/dev/null && {
  25357. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25358. test ! -s conftest.err
  25359. }; then
  25360. ac_header_preproc=yes
  25361. else
  25362. $as_echo "$as_me: failed program was:" >&5
  25363. sed 's/^/| /' conftest.$ac_ext >&5
  25364. ac_header_preproc=no
  25365. fi
  25366. rm -f conftest.err conftest.$ac_ext
  25367. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25368. $as_echo "$ac_header_preproc" >&6; }
  25369. # So? What about this header?
  25370. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25371. yes:no: )
  25372. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
  25373. $as_echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25374. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
  25375. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
  25376. ac_header_preproc=yes
  25377. ;;
  25378. no:yes:* )
  25379. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
  25380. $as_echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
  25381. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
  25382. $as_echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
  25383. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
  25384. $as_echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
  25385. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
  25386. $as_echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
  25387. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
  25388. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
  25389. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
  25390. $as_echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
  25391. ( cat <<\_ASBOX
  25392. ## ------------------------------------------ ##
  25393. ## Report this to https://issues.asterisk.org ##
  25394. ## ------------------------------------------ ##
  25395. _ASBOX
  25396. ) | sed "s/^/$as_me: WARNING: /" >&2
  25397. ;;
  25398. esac
  25399. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  25400. $as_echo_n "checking for sys/capability.h... " >&6; }
  25401. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  25402. $as_echo_n "(cached) " >&6
  25403. else
  25404. ac_cv_header_sys_capability_h=$ac_header_preproc
  25405. fi
  25406. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  25407. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  25408. fi
  25409. if test "x$ac_cv_header_sys_capability_h" = x""yes; then
  25410. CAP_HEADER_FOUND=1
  25411. else
  25412. CAP_HEADER_FOUND=0
  25413. fi
  25414. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25415. fi
  25416. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  25417. CAP_LIB=""
  25418. CAP_INCLUDE=""
  25419. else
  25420. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25421. CAP_LIB=""
  25422. fi
  25423. PBX_CAP=1
  25424. cat >>confdefs.h <<_ACEOF
  25425. #define HAVE_CAP 1
  25426. _ACEOF
  25427. fi
  25428. fi
  25429. fi
  25430. fi
  25431. if test "x${PBX_DAHDI}" != "x1"; then
  25432. { $as_echo "$as_me:$LINENO: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  25433. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  25434. saved_cppflags="${CPPFLAGS}"
  25435. if test "x${DAHDI_DIR}" != "x"; then
  25436. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  25437. fi
  25438. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  25439. cat >conftest.$ac_ext <<_ACEOF
  25440. /* confdefs.h. */
  25441. _ACEOF
  25442. cat confdefs.h >>conftest.$ac_ext
  25443. cat >>conftest.$ac_ext <<_ACEOF
  25444. /* end confdefs.h. */
  25445. #include <dahdi/user.h>
  25446. int
  25447. main ()
  25448. {
  25449. #if defined(DAHDI_RESET_COUNTERS)
  25450. int foo = 0;
  25451. #else
  25452. int foo = bar;
  25453. #endif
  25454. 0
  25455. ;
  25456. return 0;
  25457. }
  25458. _ACEOF
  25459. rm -f conftest.$ac_objext
  25460. if { (ac_try="$ac_compile"
  25461. case "(($ac_try" in
  25462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25463. *) ac_try_echo=$ac_try;;
  25464. esac
  25465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25466. $as_echo "$ac_try_echo") >&5
  25467. (eval "$ac_compile") 2>conftest.er1
  25468. ac_status=$?
  25469. grep -v '^ *+' conftest.er1 >conftest.err
  25470. rm -f conftest.er1
  25471. cat conftest.err >&5
  25472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25473. (exit $ac_status); } && {
  25474. test -z "$ac_c_werror_flag" ||
  25475. test ! -s conftest.err
  25476. } && test -s conftest.$ac_objext; then
  25477. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25478. $as_echo "yes" >&6; }
  25479. PBX_DAHDI=1
  25480. cat >>confdefs.h <<\_ACEOF
  25481. #define HAVE_DAHDI 1
  25482. _ACEOF
  25483. cat >>confdefs.h <<\_ACEOF
  25484. #define HAVE_DAHDI_VERSION 230
  25485. _ACEOF
  25486. else
  25487. $as_echo "$as_me: failed program was:" >&5
  25488. sed 's/^/| /' conftest.$ac_ext >&5
  25489. { $as_echo "$as_me:$LINENO: result: no" >&5
  25490. $as_echo "no" >&6; }
  25491. fi
  25492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25493. CPPFLAGS="${saved_cppflags}"
  25494. fi
  25495. if test "x${PBX_DAHDI}" != "x1"; then
  25496. { $as_echo "$as_me:$LINENO: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  25497. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  25498. saved_cppflags="${CPPFLAGS}"
  25499. if test "x${DAHDI_DIR}" != "x"; then
  25500. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  25501. fi
  25502. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  25503. cat >conftest.$ac_ext <<_ACEOF
  25504. /* confdefs.h. */
  25505. _ACEOF
  25506. cat confdefs.h >>conftest.$ac_ext
  25507. cat >>conftest.$ac_ext <<_ACEOF
  25508. /* end confdefs.h. */
  25509. #include <dahdi/user.h>
  25510. int
  25511. main ()
  25512. {
  25513. #if defined(DAHDI_DEFAULT_MTU_MRU)
  25514. int foo = 0;
  25515. #else
  25516. int foo = bar;
  25517. #endif
  25518. 0
  25519. ;
  25520. return 0;
  25521. }
  25522. _ACEOF
  25523. rm -f conftest.$ac_objext
  25524. if { (ac_try="$ac_compile"
  25525. case "(($ac_try" in
  25526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25527. *) ac_try_echo=$ac_try;;
  25528. esac
  25529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25530. $as_echo "$ac_try_echo") >&5
  25531. (eval "$ac_compile") 2>conftest.er1
  25532. ac_status=$?
  25533. grep -v '^ *+' conftest.er1 >conftest.err
  25534. rm -f conftest.er1
  25535. cat conftest.err >&5
  25536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25537. (exit $ac_status); } && {
  25538. test -z "$ac_c_werror_flag" ||
  25539. test ! -s conftest.err
  25540. } && test -s conftest.$ac_objext; then
  25541. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25542. $as_echo "yes" >&6; }
  25543. PBX_DAHDI=1
  25544. cat >>confdefs.h <<\_ACEOF
  25545. #define HAVE_DAHDI 1
  25546. _ACEOF
  25547. cat >>confdefs.h <<\_ACEOF
  25548. #define HAVE_DAHDI_VERSION 220
  25549. _ACEOF
  25550. else
  25551. $as_echo "$as_me: failed program was:" >&5
  25552. sed 's/^/| /' conftest.$ac_ext >&5
  25553. { $as_echo "$as_me:$LINENO: result: no" >&5
  25554. $as_echo "no" >&6; }
  25555. fi
  25556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25557. CPPFLAGS="${saved_cppflags}"
  25558. fi
  25559. if test "x${PBX_DAHDI}" != "x1"; then
  25560. { $as_echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
  25561. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  25562. saved_cppflags="${CPPFLAGS}"
  25563. if test "x${DAHDI_DIR}" != "x"; then
  25564. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  25565. fi
  25566. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  25567. cat >conftest.$ac_ext <<_ACEOF
  25568. /* confdefs.h. */
  25569. _ACEOF
  25570. cat confdefs.h >>conftest.$ac_ext
  25571. cat >>conftest.$ac_ext <<_ACEOF
  25572. /* end confdefs.h. */
  25573. #include <dahdi/user.h>
  25574. int
  25575. main ()
  25576. {
  25577. #if defined(DAHDI_CODE)
  25578. int foo = 0;
  25579. #else
  25580. int foo = bar;
  25581. #endif
  25582. 0
  25583. ;
  25584. return 0;
  25585. }
  25586. _ACEOF
  25587. rm -f conftest.$ac_objext
  25588. if { (ac_try="$ac_compile"
  25589. case "(($ac_try" in
  25590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25591. *) ac_try_echo=$ac_try;;
  25592. esac
  25593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25594. $as_echo "$ac_try_echo") >&5
  25595. (eval "$ac_compile") 2>conftest.er1
  25596. ac_status=$?
  25597. grep -v '^ *+' conftest.er1 >conftest.err
  25598. rm -f conftest.er1
  25599. cat conftest.err >&5
  25600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25601. (exit $ac_status); } && {
  25602. test -z "$ac_c_werror_flag" ||
  25603. test ! -s conftest.err
  25604. } && test -s conftest.$ac_objext; then
  25605. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25606. $as_echo "yes" >&6; }
  25607. PBX_DAHDI=1
  25608. cat >>confdefs.h <<\_ACEOF
  25609. #define HAVE_DAHDI 1
  25610. _ACEOF
  25611. cat >>confdefs.h <<\_ACEOF
  25612. #define HAVE_DAHDI_VERSION 200
  25613. _ACEOF
  25614. else
  25615. $as_echo "$as_me: failed program was:" >&5
  25616. sed 's/^/| /' conftest.$ac_ext >&5
  25617. { $as_echo "$as_me:$LINENO: result: no" >&5
  25618. $as_echo "no" >&6; }
  25619. fi
  25620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25621. CPPFLAGS="${saved_cppflags}"
  25622. fi
  25623. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  25624. { $as_echo "$as_me:$LINENO: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  25625. $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  25626. saved_cppflags="${CPPFLAGS}"
  25627. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  25628. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  25629. fi
  25630. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  25631. cat >conftest.$ac_ext <<_ACEOF
  25632. /* confdefs.h. */
  25633. _ACEOF
  25634. cat confdefs.h >>conftest.$ac_ext
  25635. cat >>conftest.$ac_ext <<_ACEOF
  25636. /* end confdefs.h. */
  25637. #include <dahdi/user.h>
  25638. int
  25639. main ()
  25640. {
  25641. #if defined(DAHDI_POLICY_HALF_FULL)
  25642. int foo = 0;
  25643. #else
  25644. int foo = bar;
  25645. #endif
  25646. 0
  25647. ;
  25648. return 0;
  25649. }
  25650. _ACEOF
  25651. rm -f conftest.$ac_objext
  25652. if { (ac_try="$ac_compile"
  25653. case "(($ac_try" in
  25654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25655. *) ac_try_echo=$ac_try;;
  25656. esac
  25657. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25658. $as_echo "$ac_try_echo") >&5
  25659. (eval "$ac_compile") 2>conftest.er1
  25660. ac_status=$?
  25661. grep -v '^ *+' conftest.er1 >conftest.err
  25662. rm -f conftest.er1
  25663. cat conftest.err >&5
  25664. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25665. (exit $ac_status); } && {
  25666. test -z "$ac_c_werror_flag" ||
  25667. test ! -s conftest.err
  25668. } && test -s conftest.$ac_objext; then
  25669. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25670. $as_echo "yes" >&6; }
  25671. PBX_DAHDI_HALF_FULL=1
  25672. cat >>confdefs.h <<\_ACEOF
  25673. #define HAVE_DAHDI_HALF_FULL 1
  25674. _ACEOF
  25675. else
  25676. $as_echo "$as_me: failed program was:" >&5
  25677. sed 's/^/| /' conftest.$ac_ext >&5
  25678. { $as_echo "$as_me:$LINENO: result: no" >&5
  25679. $as_echo "no" >&6; }
  25680. fi
  25681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25682. CPPFLAGS="${saved_cppflags}"
  25683. fi
  25684. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  25685. if test "xenhanced dahdi vmwi support" != "x"; then
  25686. { $as_echo "$as_me:$LINENO: checking for enhanced dahdi vmwi support" >&5
  25687. $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
  25688. else
  25689. { $as_echo "$as_me:$LINENO: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
  25690. $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
  25691. fi
  25692. saved_cppflags="${CPPFLAGS}"
  25693. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  25694. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  25695. fi
  25696. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  25697. cat >conftest.$ac_ext <<_ACEOF
  25698. /* confdefs.h. */
  25699. _ACEOF
  25700. cat confdefs.h >>conftest.$ac_ext
  25701. cat >>conftest.$ac_ext <<_ACEOF
  25702. /* end confdefs.h. */
  25703. #include <dahdi/user.h>
  25704. int
  25705. main ()
  25706. {
  25707. struct dahdi_vmwi_info booger;
  25708. ;
  25709. return 0;
  25710. }
  25711. _ACEOF
  25712. rm -f conftest.$ac_objext
  25713. if { (ac_try="$ac_compile"
  25714. case "(($ac_try" in
  25715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25716. *) ac_try_echo=$ac_try;;
  25717. esac
  25718. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25719. $as_echo "$ac_try_echo") >&5
  25720. (eval "$ac_compile") 2>conftest.er1
  25721. ac_status=$?
  25722. grep -v '^ *+' conftest.er1 >conftest.err
  25723. rm -f conftest.er1
  25724. cat conftest.err >&5
  25725. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25726. (exit $ac_status); } && {
  25727. test -z "$ac_c_werror_flag" ||
  25728. test ! -s conftest.err
  25729. } && test -s conftest.$ac_objext; then
  25730. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25731. $as_echo "yes" >&6; }
  25732. PBX_DAHDI_LINEREVERSE_VMWI=1
  25733. cat >>confdefs.h <<\_ACEOF
  25734. #define HAVE_DAHDI_LINEREVERSE_VMWI 1
  25735. _ACEOF
  25736. else
  25737. $as_echo "$as_me: failed program was:" >&5
  25738. sed 's/^/| /' conftest.$ac_ext >&5
  25739. { $as_echo "$as_me:$LINENO: result: no" >&5
  25740. $as_echo "no" >&6; }
  25741. fi
  25742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25743. CPPFLAGS="${saved_cppflags}"
  25744. fi
  25745. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  25746. if test "x" != "x"; then
  25747. { $as_echo "$as_me:$LINENO: checking for " >&5
  25748. $as_echo_n "checking for ... " >&6; }
  25749. else
  25750. { $as_echo "$as_me:$LINENO: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  25751. $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  25752. fi
  25753. saved_cppflags="${CPPFLAGS}"
  25754. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  25755. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  25756. fi
  25757. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  25758. cat >conftest.$ac_ext <<_ACEOF
  25759. /* confdefs.h. */
  25760. _ACEOF
  25761. cat confdefs.h >>conftest.$ac_ext
  25762. cat >>conftest.$ac_ext <<_ACEOF
  25763. /* end confdefs.h. */
  25764. #include <dahdi/user.h>
  25765. int
  25766. main ()
  25767. {
  25768. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  25769. ;
  25770. return 0;
  25771. }
  25772. _ACEOF
  25773. rm -f conftest.$ac_objext
  25774. if { (ac_try="$ac_compile"
  25775. case "(($ac_try" in
  25776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25777. *) ac_try_echo=$ac_try;;
  25778. esac
  25779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25780. $as_echo "$ac_try_echo") >&5
  25781. (eval "$ac_compile") 2>conftest.er1
  25782. ac_status=$?
  25783. grep -v '^ *+' conftest.er1 >conftest.err
  25784. rm -f conftest.er1
  25785. cat conftest.err >&5
  25786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25787. (exit $ac_status); } && {
  25788. test -z "$ac_c_werror_flag" ||
  25789. test ! -s conftest.err
  25790. } && test -s conftest.$ac_objext; then
  25791. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25792. $as_echo "yes" >&6; }
  25793. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  25794. cat >>confdefs.h <<\_ACEOF
  25795. #define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1
  25796. _ACEOF
  25797. else
  25798. $as_echo "$as_me: failed program was:" >&5
  25799. sed 's/^/| /' conftest.$ac_ext >&5
  25800. { $as_echo "$as_me:$LINENO: result: no" >&5
  25801. $as_echo "no" >&6; }
  25802. fi
  25803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25804. CPPFLAGS="${saved_cppflags}"
  25805. fi
  25806. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  25807. if test "xgetifaddrs() support" != "x"; then
  25808. { $as_echo "$as_me:$LINENO: checking for getifaddrs() support" >&5
  25809. $as_echo_n "checking for getifaddrs() support... " >&6; }
  25810. else
  25811. { $as_echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  25812. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  25813. fi
  25814. saved_cppflags="${CPPFLAGS}"
  25815. if test "x${GETIFADDRS_DIR}" != "x"; then
  25816. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  25817. fi
  25818. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  25819. cat >conftest.$ac_ext <<_ACEOF
  25820. /* confdefs.h. */
  25821. _ACEOF
  25822. cat confdefs.h >>conftest.$ac_ext
  25823. cat >>conftest.$ac_ext <<_ACEOF
  25824. /* end confdefs.h. */
  25825. #include <ifaddrs.h>
  25826. int
  25827. main ()
  25828. {
  25829. struct ifaddrs *p; getifaddrs(&p);
  25830. ;
  25831. return 0;
  25832. }
  25833. _ACEOF
  25834. rm -f conftest.$ac_objext
  25835. if { (ac_try="$ac_compile"
  25836. case "(($ac_try" in
  25837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25838. *) ac_try_echo=$ac_try;;
  25839. esac
  25840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25841. $as_echo "$ac_try_echo") >&5
  25842. (eval "$ac_compile") 2>conftest.er1
  25843. ac_status=$?
  25844. grep -v '^ *+' conftest.er1 >conftest.err
  25845. rm -f conftest.er1
  25846. cat conftest.err >&5
  25847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25848. (exit $ac_status); } && {
  25849. test -z "$ac_c_werror_flag" ||
  25850. test ! -s conftest.err
  25851. } && test -s conftest.$ac_objext; then
  25852. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25853. $as_echo "yes" >&6; }
  25854. PBX_GETIFADDRS=1
  25855. cat >>confdefs.h <<\_ACEOF
  25856. #define HAVE_GETIFADDRS 1
  25857. _ACEOF
  25858. else
  25859. $as_echo "$as_me: failed program was:" >&5
  25860. sed 's/^/| /' conftest.$ac_ext >&5
  25861. { $as_echo "$as_me:$LINENO: result: no" >&5
  25862. $as_echo "no" >&6; }
  25863. fi
  25864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25865. CPPFLAGS="${saved_cppflags}"
  25866. fi
  25867. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  25868. if test "xtimerfd support" != "x"; then
  25869. { $as_echo "$as_me:$LINENO: checking for timerfd support" >&5
  25870. $as_echo_n "checking for timerfd support... " >&6; }
  25871. else
  25872. { $as_echo "$as_me:$LINENO: checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h" >&5
  25873. $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
  25874. fi
  25875. saved_cppflags="${CPPFLAGS}"
  25876. if test "x${TIMERFD_DIR}" != "x"; then
  25877. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  25878. fi
  25879. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  25880. cat >conftest.$ac_ext <<_ACEOF
  25881. /* confdefs.h. */
  25882. _ACEOF
  25883. cat confdefs.h >>conftest.$ac_ext
  25884. cat >>conftest.$ac_ext <<_ACEOF
  25885. /* end confdefs.h. */
  25886. #include <sys/timerfd.h>
  25887. int
  25888. main ()
  25889. {
  25890. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  25891. ;
  25892. return 0;
  25893. }
  25894. _ACEOF
  25895. rm -f conftest.$ac_objext
  25896. if { (ac_try="$ac_compile"
  25897. case "(($ac_try" in
  25898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25899. *) ac_try_echo=$ac_try;;
  25900. esac
  25901. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25902. $as_echo "$ac_try_echo") >&5
  25903. (eval "$ac_compile") 2>conftest.er1
  25904. ac_status=$?
  25905. grep -v '^ *+' conftest.er1 >conftest.err
  25906. rm -f conftest.er1
  25907. cat conftest.err >&5
  25908. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25909. (exit $ac_status); } && {
  25910. test -z "$ac_c_werror_flag" ||
  25911. test ! -s conftest.err
  25912. } && test -s conftest.$ac_objext; then
  25913. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25914. $as_echo "yes" >&6; }
  25915. PBX_TIMERFD=1
  25916. cat >>confdefs.h <<\_ACEOF
  25917. #define HAVE_TIMERFD 1
  25918. _ACEOF
  25919. else
  25920. $as_echo "$as_me: failed program was:" >&5
  25921. sed 's/^/| /' conftest.$ac_ext >&5
  25922. { $as_echo "$as_me:$LINENO: result: no" >&5
  25923. $as_echo "no" >&6; }
  25924. fi
  25925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25926. CPPFLAGS="${saved_cppflags}"
  25927. fi
  25928. GSM_INTERNAL="yes"
  25929. GSM_SYSTEM="yes"
  25930. if test "${USE_GSM}" != "no"; then
  25931. if test "${GSM_DIR}" = "internal"; then
  25932. GSM_SYSTEM="no"
  25933. elif test "${GSM_DIR}" != ""; then
  25934. GSM_INTERNAL="no"
  25935. fi
  25936. if test "${GSM_SYSTEM}" = "yes"; then
  25937. gsmlibdir=""
  25938. if test "x${GSM_DIR}" != "x"; then
  25939. if test -d ${GSM_DIR}/lib; then
  25940. gsmlibdir="-L${GSM_DIR}/lib"
  25941. else
  25942. gsmlibdir="-L${GSM_DIR}"
  25943. fi
  25944. fi
  25945. { $as_echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
  25946. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  25947. if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
  25948. $as_echo_n "(cached) " >&6
  25949. else
  25950. ac_check_lib_save_LIBS=$LIBS
  25951. LIBS="-lgsm ${gsmlibdir} $LIBS"
  25952. cat >conftest.$ac_ext <<_ACEOF
  25953. /* confdefs.h. */
  25954. _ACEOF
  25955. cat confdefs.h >>conftest.$ac_ext
  25956. cat >>conftest.$ac_ext <<_ACEOF
  25957. /* end confdefs.h. */
  25958. /* Override any GCC internal prototype to avoid an error.
  25959. Use char because int might match the return type of a GCC
  25960. builtin and then its argument prototype would still apply. */
  25961. #ifdef __cplusplus
  25962. extern "C"
  25963. #endif
  25964. char gsm_create ();
  25965. int
  25966. main ()
  25967. {
  25968. return gsm_create ();
  25969. ;
  25970. return 0;
  25971. }
  25972. _ACEOF
  25973. rm -f conftest.$ac_objext conftest$ac_exeext
  25974. if { (ac_try="$ac_link"
  25975. case "(($ac_try" in
  25976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25977. *) ac_try_echo=$ac_try;;
  25978. esac
  25979. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25980. $as_echo "$ac_try_echo") >&5
  25981. (eval "$ac_link") 2>conftest.er1
  25982. ac_status=$?
  25983. grep -v '^ *+' conftest.er1 >conftest.err
  25984. rm -f conftest.er1
  25985. cat conftest.err >&5
  25986. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25987. (exit $ac_status); } && {
  25988. test -z "$ac_c_werror_flag" ||
  25989. test ! -s conftest.err
  25990. } && test -s conftest$ac_exeext && {
  25991. test "$cross_compiling" = yes ||
  25992. $as_test_x conftest$ac_exeext
  25993. }; then
  25994. ac_cv_lib_gsm_gsm_create=yes
  25995. else
  25996. $as_echo "$as_me: failed program was:" >&5
  25997. sed 's/^/| /' conftest.$ac_ext >&5
  25998. ac_cv_lib_gsm_gsm_create=no
  25999. fi
  26000. rm -rf conftest.dSYM
  26001. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26002. conftest$ac_exeext conftest.$ac_ext
  26003. LIBS=$ac_check_lib_save_LIBS
  26004. fi
  26005. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
  26006. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  26007. if test "x$ac_cv_lib_gsm_gsm_create" = x""yes; then
  26008. cat >>confdefs.h <<_ACEOF
  26009. #define HAVE_GSM 1
  26010. _ACEOF
  26011. fi
  26012. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  26013. if test "x${GSM_DIR}" != "x" ; then
  26014. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  26015. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26016. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
  26017. $as_echo_n "checking for ${GSM_DIR}/include/gsm.h... " >&6; }
  26018. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26019. $as_echo_n "(cached) " >&6
  26020. fi
  26021. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26022. $as_echo "$as_val"'`
  26023. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26024. $as_echo "$ac_res" >&6; }
  26025. else
  26026. # Is the header compilable?
  26027. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
  26028. $as_echo_n "checking ${GSM_DIR}/include/gsm.h usability... " >&6; }
  26029. cat >conftest.$ac_ext <<_ACEOF
  26030. /* confdefs.h. */
  26031. _ACEOF
  26032. cat confdefs.h >>conftest.$ac_ext
  26033. cat >>conftest.$ac_ext <<_ACEOF
  26034. /* end confdefs.h. */
  26035. $ac_includes_default
  26036. #include <${GSM_DIR}/include/gsm.h>
  26037. _ACEOF
  26038. rm -f conftest.$ac_objext
  26039. if { (ac_try="$ac_compile"
  26040. case "(($ac_try" in
  26041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26042. *) ac_try_echo=$ac_try;;
  26043. esac
  26044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26045. $as_echo "$ac_try_echo") >&5
  26046. (eval "$ac_compile") 2>conftest.er1
  26047. ac_status=$?
  26048. grep -v '^ *+' conftest.er1 >conftest.err
  26049. rm -f conftest.er1
  26050. cat conftest.err >&5
  26051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26052. (exit $ac_status); } && {
  26053. test -z "$ac_c_werror_flag" ||
  26054. test ! -s conftest.err
  26055. } && test -s conftest.$ac_objext; then
  26056. ac_header_compiler=yes
  26057. else
  26058. $as_echo "$as_me: failed program was:" >&5
  26059. sed 's/^/| /' conftest.$ac_ext >&5
  26060. ac_header_compiler=no
  26061. fi
  26062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26063. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26064. $as_echo "$ac_header_compiler" >&6; }
  26065. # Is the header present?
  26066. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
  26067. $as_echo_n "checking ${GSM_DIR}/include/gsm.h presence... " >&6; }
  26068. cat >conftest.$ac_ext <<_ACEOF
  26069. /* confdefs.h. */
  26070. _ACEOF
  26071. cat confdefs.h >>conftest.$ac_ext
  26072. cat >>conftest.$ac_ext <<_ACEOF
  26073. /* end confdefs.h. */
  26074. #include <${GSM_DIR}/include/gsm.h>
  26075. _ACEOF
  26076. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26077. case "(($ac_try" in
  26078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26079. *) ac_try_echo=$ac_try;;
  26080. esac
  26081. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26082. $as_echo "$ac_try_echo") >&5
  26083. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26084. ac_status=$?
  26085. grep -v '^ *+' conftest.er1 >conftest.err
  26086. rm -f conftest.er1
  26087. cat conftest.err >&5
  26088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26089. (exit $ac_status); } >/dev/null && {
  26090. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26091. test ! -s conftest.err
  26092. }; then
  26093. ac_header_preproc=yes
  26094. else
  26095. $as_echo "$as_me: failed program was:" >&5
  26096. sed 's/^/| /' conftest.$ac_ext >&5
  26097. ac_header_preproc=no
  26098. fi
  26099. rm -f conftest.err conftest.$ac_ext
  26100. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26101. $as_echo "$ac_header_preproc" >&6; }
  26102. # So? What about this header?
  26103. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26104. yes:no: )
  26105. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26106. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26107. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
  26108. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
  26109. ac_header_preproc=yes
  26110. ;;
  26111. no:yes:* )
  26112. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
  26113. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
  26114. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
  26115. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
  26116. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
  26117. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
  26118. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  26119. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26120. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
  26121. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
  26122. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
  26123. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
  26124. ( cat <<\_ASBOX
  26125. ## ------------------------------------------ ##
  26126. ## Report this to https://issues.asterisk.org ##
  26127. ## ------------------------------------------ ##
  26128. _ASBOX
  26129. ) | sed "s/^/$as_me: WARNING: /" >&2
  26130. ;;
  26131. esac
  26132. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
  26133. $as_echo_n "checking for ${GSM_DIR}/include/gsm.h... " >&6; }
  26134. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26135. $as_echo_n "(cached) " >&6
  26136. else
  26137. eval "$as_ac_Header=\$ac_header_preproc"
  26138. fi
  26139. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26140. $as_echo "$as_val"'`
  26141. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26142. $as_echo "$ac_res" >&6; }
  26143. fi
  26144. as_val=`eval 'as_val=${'$as_ac_Header'}
  26145. $as_echo "$as_val"'`
  26146. if test "x$as_val" = x""yes; then
  26147. GSM_HEADER_FOUND=1
  26148. else
  26149. GSM_HEADER_FOUND=0
  26150. fi
  26151. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  26152. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26153. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
  26154. $as_echo_n "checking for ${GSM_DIR}/include/gsm/gsm.h... " >&6; }
  26155. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26156. $as_echo_n "(cached) " >&6
  26157. fi
  26158. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26159. $as_echo "$as_val"'`
  26160. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26161. $as_echo "$ac_res" >&6; }
  26162. else
  26163. # Is the header compilable?
  26164. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
  26165. $as_echo_n "checking ${GSM_DIR}/include/gsm/gsm.h usability... " >&6; }
  26166. cat >conftest.$ac_ext <<_ACEOF
  26167. /* confdefs.h. */
  26168. _ACEOF
  26169. cat confdefs.h >>conftest.$ac_ext
  26170. cat >>conftest.$ac_ext <<_ACEOF
  26171. /* end confdefs.h. */
  26172. $ac_includes_default
  26173. #include <${GSM_DIR}/include/gsm/gsm.h>
  26174. _ACEOF
  26175. rm -f conftest.$ac_objext
  26176. if { (ac_try="$ac_compile"
  26177. case "(($ac_try" in
  26178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26179. *) ac_try_echo=$ac_try;;
  26180. esac
  26181. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26182. $as_echo "$ac_try_echo") >&5
  26183. (eval "$ac_compile") 2>conftest.er1
  26184. ac_status=$?
  26185. grep -v '^ *+' conftest.er1 >conftest.err
  26186. rm -f conftest.er1
  26187. cat conftest.err >&5
  26188. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26189. (exit $ac_status); } && {
  26190. test -z "$ac_c_werror_flag" ||
  26191. test ! -s conftest.err
  26192. } && test -s conftest.$ac_objext; then
  26193. ac_header_compiler=yes
  26194. else
  26195. $as_echo "$as_me: failed program was:" >&5
  26196. sed 's/^/| /' conftest.$ac_ext >&5
  26197. ac_header_compiler=no
  26198. fi
  26199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26200. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26201. $as_echo "$ac_header_compiler" >&6; }
  26202. # Is the header present?
  26203. { $as_echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
  26204. $as_echo_n "checking ${GSM_DIR}/include/gsm/gsm.h presence... " >&6; }
  26205. cat >conftest.$ac_ext <<_ACEOF
  26206. /* confdefs.h. */
  26207. _ACEOF
  26208. cat confdefs.h >>conftest.$ac_ext
  26209. cat >>conftest.$ac_ext <<_ACEOF
  26210. /* end confdefs.h. */
  26211. #include <${GSM_DIR}/include/gsm/gsm.h>
  26212. _ACEOF
  26213. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26214. case "(($ac_try" in
  26215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26216. *) ac_try_echo=$ac_try;;
  26217. esac
  26218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26219. $as_echo "$ac_try_echo") >&5
  26220. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26221. ac_status=$?
  26222. grep -v '^ *+' conftest.er1 >conftest.err
  26223. rm -f conftest.er1
  26224. cat conftest.err >&5
  26225. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26226. (exit $ac_status); } >/dev/null && {
  26227. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26228. test ! -s conftest.err
  26229. }; then
  26230. ac_header_preproc=yes
  26231. else
  26232. $as_echo "$as_me: failed program was:" >&5
  26233. sed 's/^/| /' conftest.$ac_ext >&5
  26234. ac_header_preproc=no
  26235. fi
  26236. rm -f conftest.err conftest.$ac_ext
  26237. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26238. $as_echo "$ac_header_preproc" >&6; }
  26239. # So? What about this header?
  26240. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26241. yes:no: )
  26242. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26243. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26244. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
  26245. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
  26246. ac_header_preproc=yes
  26247. ;;
  26248. no:yes:* )
  26249. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
  26250. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
  26251. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
  26252. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
  26253. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
  26254. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
  26255. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  26256. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26257. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
  26258. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
  26259. { $as_echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
  26260. $as_echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
  26261. ( cat <<\_ASBOX
  26262. ## ------------------------------------------ ##
  26263. ## Report this to https://issues.asterisk.org ##
  26264. ## ------------------------------------------ ##
  26265. _ASBOX
  26266. ) | sed "s/^/$as_me: WARNING: /" >&2
  26267. ;;
  26268. esac
  26269. { $as_echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
  26270. $as_echo_n "checking for ${GSM_DIR}/include/gsm/gsm.h... " >&6; }
  26271. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26272. $as_echo_n "(cached) " >&6
  26273. else
  26274. eval "$as_ac_Header=\$ac_header_preproc"
  26275. fi
  26276. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26277. $as_echo "$as_val"'`
  26278. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26279. $as_echo "$ac_res" >&6; }
  26280. fi
  26281. as_val=`eval 'as_val=${'$as_ac_Header'}
  26282. $as_echo "$as_val"'`
  26283. if test "x$as_val" = x""yes; then
  26284. GSM_GSM_HEADER_FOUND=1
  26285. else
  26286. GSM_GSM_HEADER_FOUND=0
  26287. fi
  26288. else
  26289. if test "${ac_cv_header_gsm_h+set}" = set; then
  26290. { $as_echo "$as_me:$LINENO: checking for gsm.h" >&5
  26291. $as_echo_n "checking for gsm.h... " >&6; }
  26292. if test "${ac_cv_header_gsm_h+set}" = set; then
  26293. $as_echo_n "(cached) " >&6
  26294. fi
  26295. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
  26296. $as_echo "$ac_cv_header_gsm_h" >&6; }
  26297. else
  26298. # Is the header compilable?
  26299. { $as_echo "$as_me:$LINENO: checking gsm.h usability" >&5
  26300. $as_echo_n "checking gsm.h usability... " >&6; }
  26301. cat >conftest.$ac_ext <<_ACEOF
  26302. /* confdefs.h. */
  26303. _ACEOF
  26304. cat confdefs.h >>conftest.$ac_ext
  26305. cat >>conftest.$ac_ext <<_ACEOF
  26306. /* end confdefs.h. */
  26307. $ac_includes_default
  26308. #include <gsm.h>
  26309. _ACEOF
  26310. rm -f conftest.$ac_objext
  26311. if { (ac_try="$ac_compile"
  26312. case "(($ac_try" in
  26313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26314. *) ac_try_echo=$ac_try;;
  26315. esac
  26316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26317. $as_echo "$ac_try_echo") >&5
  26318. (eval "$ac_compile") 2>conftest.er1
  26319. ac_status=$?
  26320. grep -v '^ *+' conftest.er1 >conftest.err
  26321. rm -f conftest.er1
  26322. cat conftest.err >&5
  26323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26324. (exit $ac_status); } && {
  26325. test -z "$ac_c_werror_flag" ||
  26326. test ! -s conftest.err
  26327. } && test -s conftest.$ac_objext; then
  26328. ac_header_compiler=yes
  26329. else
  26330. $as_echo "$as_me: failed program was:" >&5
  26331. sed 's/^/| /' conftest.$ac_ext >&5
  26332. ac_header_compiler=no
  26333. fi
  26334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26335. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26336. $as_echo "$ac_header_compiler" >&6; }
  26337. # Is the header present?
  26338. { $as_echo "$as_me:$LINENO: checking gsm.h presence" >&5
  26339. $as_echo_n "checking gsm.h presence... " >&6; }
  26340. cat >conftest.$ac_ext <<_ACEOF
  26341. /* confdefs.h. */
  26342. _ACEOF
  26343. cat confdefs.h >>conftest.$ac_ext
  26344. cat >>conftest.$ac_ext <<_ACEOF
  26345. /* end confdefs.h. */
  26346. #include <gsm.h>
  26347. _ACEOF
  26348. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26349. case "(($ac_try" in
  26350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26351. *) ac_try_echo=$ac_try;;
  26352. esac
  26353. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26354. $as_echo "$ac_try_echo") >&5
  26355. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26356. ac_status=$?
  26357. grep -v '^ *+' conftest.er1 >conftest.err
  26358. rm -f conftest.er1
  26359. cat conftest.err >&5
  26360. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26361. (exit $ac_status); } >/dev/null && {
  26362. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26363. test ! -s conftest.err
  26364. }; then
  26365. ac_header_preproc=yes
  26366. else
  26367. $as_echo "$as_me: failed program was:" >&5
  26368. sed 's/^/| /' conftest.$ac_ext >&5
  26369. ac_header_preproc=no
  26370. fi
  26371. rm -f conftest.err conftest.$ac_ext
  26372. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26373. $as_echo "$ac_header_preproc" >&6; }
  26374. # So? What about this header?
  26375. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26376. yes:no: )
  26377. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26378. $as_echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26379. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
  26380. $as_echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
  26381. ac_header_preproc=yes
  26382. ;;
  26383. no:yes:* )
  26384. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
  26385. $as_echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
  26386. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
  26387. $as_echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
  26388. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
  26389. $as_echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
  26390. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  26391. $as_echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26392. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
  26393. $as_echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
  26394. { $as_echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
  26395. $as_echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
  26396. ( cat <<\_ASBOX
  26397. ## ------------------------------------------ ##
  26398. ## Report this to https://issues.asterisk.org ##
  26399. ## ------------------------------------------ ##
  26400. _ASBOX
  26401. ) | sed "s/^/$as_me: WARNING: /" >&2
  26402. ;;
  26403. esac
  26404. { $as_echo "$as_me:$LINENO: checking for gsm.h" >&5
  26405. $as_echo_n "checking for gsm.h... " >&6; }
  26406. if test "${ac_cv_header_gsm_h+set}" = set; then
  26407. $as_echo_n "(cached) " >&6
  26408. else
  26409. ac_cv_header_gsm_h=$ac_header_preproc
  26410. fi
  26411. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
  26412. $as_echo "$ac_cv_header_gsm_h" >&6; }
  26413. fi
  26414. if test "x$ac_cv_header_gsm_h" = x""yes; then
  26415. GSM_HEADER_FOUND=1
  26416. else
  26417. GSM_HEADER_FOUND=0
  26418. fi
  26419. if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
  26420. { $as_echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
  26421. $as_echo_n "checking for gsm/gsm.h... " >&6; }
  26422. if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
  26423. $as_echo_n "(cached) " >&6
  26424. fi
  26425. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
  26426. $as_echo "$ac_cv_header_gsm_gsm_h" >&6; }
  26427. else
  26428. # Is the header compilable?
  26429. { $as_echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
  26430. $as_echo_n "checking gsm/gsm.h usability... " >&6; }
  26431. cat >conftest.$ac_ext <<_ACEOF
  26432. /* confdefs.h. */
  26433. _ACEOF
  26434. cat confdefs.h >>conftest.$ac_ext
  26435. cat >>conftest.$ac_ext <<_ACEOF
  26436. /* end confdefs.h. */
  26437. $ac_includes_default
  26438. #include <gsm/gsm.h>
  26439. _ACEOF
  26440. rm -f conftest.$ac_objext
  26441. if { (ac_try="$ac_compile"
  26442. case "(($ac_try" in
  26443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26444. *) ac_try_echo=$ac_try;;
  26445. esac
  26446. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26447. $as_echo "$ac_try_echo") >&5
  26448. (eval "$ac_compile") 2>conftest.er1
  26449. ac_status=$?
  26450. grep -v '^ *+' conftest.er1 >conftest.err
  26451. rm -f conftest.er1
  26452. cat conftest.err >&5
  26453. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26454. (exit $ac_status); } && {
  26455. test -z "$ac_c_werror_flag" ||
  26456. test ! -s conftest.err
  26457. } && test -s conftest.$ac_objext; then
  26458. ac_header_compiler=yes
  26459. else
  26460. $as_echo "$as_me: failed program was:" >&5
  26461. sed 's/^/| /' conftest.$ac_ext >&5
  26462. ac_header_compiler=no
  26463. fi
  26464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26465. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26466. $as_echo "$ac_header_compiler" >&6; }
  26467. # Is the header present?
  26468. { $as_echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
  26469. $as_echo_n "checking gsm/gsm.h presence... " >&6; }
  26470. cat >conftest.$ac_ext <<_ACEOF
  26471. /* confdefs.h. */
  26472. _ACEOF
  26473. cat confdefs.h >>conftest.$ac_ext
  26474. cat >>conftest.$ac_ext <<_ACEOF
  26475. /* end confdefs.h. */
  26476. #include <gsm/gsm.h>
  26477. _ACEOF
  26478. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26479. case "(($ac_try" in
  26480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26481. *) ac_try_echo=$ac_try;;
  26482. esac
  26483. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26484. $as_echo "$ac_try_echo") >&5
  26485. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26486. ac_status=$?
  26487. grep -v '^ *+' conftest.er1 >conftest.err
  26488. rm -f conftest.er1
  26489. cat conftest.err >&5
  26490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26491. (exit $ac_status); } >/dev/null && {
  26492. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26493. test ! -s conftest.err
  26494. }; then
  26495. ac_header_preproc=yes
  26496. else
  26497. $as_echo "$as_me: failed program was:" >&5
  26498. sed 's/^/| /' conftest.$ac_ext >&5
  26499. ac_header_preproc=no
  26500. fi
  26501. rm -f conftest.err conftest.$ac_ext
  26502. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26503. $as_echo "$ac_header_preproc" >&6; }
  26504. # So? What about this header?
  26505. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26506. yes:no: )
  26507. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26508. $as_echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26509. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
  26510. $as_echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
  26511. ac_header_preproc=yes
  26512. ;;
  26513. no:yes:* )
  26514. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
  26515. $as_echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
  26516. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
  26517. $as_echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
  26518. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
  26519. $as_echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
  26520. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
  26521. $as_echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26522. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
  26523. $as_echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
  26524. { $as_echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
  26525. $as_echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
  26526. ( cat <<\_ASBOX
  26527. ## ------------------------------------------ ##
  26528. ## Report this to https://issues.asterisk.org ##
  26529. ## ------------------------------------------ ##
  26530. _ASBOX
  26531. ) | sed "s/^/$as_me: WARNING: /" >&2
  26532. ;;
  26533. esac
  26534. { $as_echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
  26535. $as_echo_n "checking for gsm/gsm.h... " >&6; }
  26536. if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
  26537. $as_echo_n "(cached) " >&6
  26538. else
  26539. ac_cv_header_gsm_gsm_h=$ac_header_preproc
  26540. fi
  26541. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
  26542. $as_echo "$ac_cv_header_gsm_gsm_h" >&6; }
  26543. fi
  26544. if test "x$ac_cv_header_gsm_gsm_h" = x""yes; then
  26545. GSM_GSM_HEADER_FOUND=1
  26546. else
  26547. GSM_GSM_HEADER_FOUND=0
  26548. fi
  26549. fi
  26550. if test "${GSM_HEADER_FOUND}" = "0" ; then
  26551. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  26552. if test "x${GSM_MANDATORY}" = "xyes" ; then
  26553. { $as_echo "$as_me:$LINENO: ***" >&5
  26554. $as_echo "$as_me: ***" >&6;}
  26555. { $as_echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
  26556. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  26557. { $as_echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  26558. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  26559. { $as_echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  26560. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  26561. exit 1
  26562. fi
  26563. fi
  26564. fi
  26565. GSM_OK=0
  26566. if test "${GSM_HEADER_FOUND}" = "1" ; then
  26567. cat >>confdefs.h <<_ACEOF
  26568. #define HAVE_GSM_HEADER 1
  26569. _ACEOF
  26570. GSM_OK=1
  26571. else
  26572. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  26573. cat >>confdefs.h <<_ACEOF
  26574. #define HAVE_GSM_GSM_HEADER 1
  26575. _ACEOF
  26576. GSM_OK=1
  26577. fi
  26578. fi
  26579. if test "${GSM_OK}" = "1" ; then
  26580. GSM_LIB="-lgsm"
  26581. if test "x${GSM_DIR}" != "x"; then
  26582. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  26583. GSM_INCLUDE="-I${GSM_DIR}/include"
  26584. fi
  26585. PBX_GSM=1
  26586. GSM_INTERNAL="no"
  26587. fi
  26588. fi
  26589. fi
  26590. if test "${GSM_INTERNAL}" = "yes"; then
  26591. PBX_GSM=1
  26592. cat >>confdefs.h <<_ACEOF
  26593. #define HAVE_GSM_HEADER 1
  26594. _ACEOF
  26595. fi
  26596. fi
  26597. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  26598. pbxlibdir=""
  26599. # if --with-ICONV=DIR has been specified, use it.
  26600. if test "x${ICONV_DIR}" != "x"; then
  26601. if test -d ${ICONV_DIR}/lib; then
  26602. pbxlibdir="-L${ICONV_DIR}/lib"
  26603. else
  26604. pbxlibdir="-L${ICONV_DIR}"
  26605. fi
  26606. fi
  26607. pbxfuncname="iconv_open"
  26608. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26609. AST_ICONV_FOUND=yes
  26610. else
  26611. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26612. CFLAGS="${CFLAGS} "
  26613. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  26614. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
  26615. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  26616. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  26617. $as_echo_n "(cached) " >&6
  26618. else
  26619. ac_check_lib_save_LIBS=$LIBS
  26620. LIBS="-liconv ${pbxlibdir} $LIBS"
  26621. cat >conftest.$ac_ext <<_ACEOF
  26622. /* confdefs.h. */
  26623. _ACEOF
  26624. cat confdefs.h >>conftest.$ac_ext
  26625. cat >>conftest.$ac_ext <<_ACEOF
  26626. /* end confdefs.h. */
  26627. /* Override any GCC internal prototype to avoid an error.
  26628. Use char because int might match the return type of a GCC
  26629. builtin and then its argument prototype would still apply. */
  26630. #ifdef __cplusplus
  26631. extern "C"
  26632. #endif
  26633. char ${pbxfuncname} ();
  26634. int
  26635. main ()
  26636. {
  26637. return ${pbxfuncname} ();
  26638. ;
  26639. return 0;
  26640. }
  26641. _ACEOF
  26642. rm -f conftest.$ac_objext conftest$ac_exeext
  26643. if { (ac_try="$ac_link"
  26644. case "(($ac_try" in
  26645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26646. *) ac_try_echo=$ac_try;;
  26647. esac
  26648. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26649. $as_echo "$ac_try_echo") >&5
  26650. (eval "$ac_link") 2>conftest.er1
  26651. ac_status=$?
  26652. grep -v '^ *+' conftest.er1 >conftest.err
  26653. rm -f conftest.er1
  26654. cat conftest.err >&5
  26655. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26656. (exit $ac_status); } && {
  26657. test -z "$ac_c_werror_flag" ||
  26658. test ! -s conftest.err
  26659. } && test -s conftest$ac_exeext && {
  26660. test "$cross_compiling" = yes ||
  26661. $as_test_x conftest$ac_exeext
  26662. }; then
  26663. eval "$as_ac_Lib=yes"
  26664. else
  26665. $as_echo "$as_me: failed program was:" >&5
  26666. sed 's/^/| /' conftest.$ac_ext >&5
  26667. eval "$as_ac_Lib=no"
  26668. fi
  26669. rm -rf conftest.dSYM
  26670. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26671. conftest$ac_exeext conftest.$ac_ext
  26672. LIBS=$ac_check_lib_save_LIBS
  26673. fi
  26674. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  26675. $as_echo "$as_val"'`
  26676. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26677. $as_echo "$ac_res" >&6; }
  26678. as_val=`eval 'as_val=${'$as_ac_Lib'}
  26679. $as_echo "$as_val"'`
  26680. if test "x$as_val" = x""yes; then
  26681. AST_ICONV_FOUND=yes
  26682. else
  26683. AST_ICONV_FOUND=no
  26684. fi
  26685. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26686. fi
  26687. # now check for the header.
  26688. if test "${AST_ICONV_FOUND}" = "yes"; then
  26689. ICONV_LIB="${pbxlibdir} -liconv "
  26690. # if --with-ICONV=DIR has been specified, use it.
  26691. if test "x${ICONV_DIR}" != "x"; then
  26692. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  26693. fi
  26694. ICONV_INCLUDE="${ICONV_INCLUDE} "
  26695. if test "xiconv.h" = "x" ; then # no header, assume found
  26696. ICONV_HEADER_FOUND="1"
  26697. else # check for the header
  26698. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26699. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  26700. if test "${ac_cv_header_iconv_h+set}" = set; then
  26701. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26702. $as_echo_n "checking for iconv.h... " >&6; }
  26703. if test "${ac_cv_header_iconv_h+set}" = set; then
  26704. $as_echo_n "(cached) " >&6
  26705. fi
  26706. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26707. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26708. else
  26709. # Is the header compilable?
  26710. { $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
  26711. $as_echo_n "checking iconv.h usability... " >&6; }
  26712. cat >conftest.$ac_ext <<_ACEOF
  26713. /* confdefs.h. */
  26714. _ACEOF
  26715. cat confdefs.h >>conftest.$ac_ext
  26716. cat >>conftest.$ac_ext <<_ACEOF
  26717. /* end confdefs.h. */
  26718. $ac_includes_default
  26719. #include <iconv.h>
  26720. _ACEOF
  26721. rm -f conftest.$ac_objext
  26722. if { (ac_try="$ac_compile"
  26723. case "(($ac_try" in
  26724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26725. *) ac_try_echo=$ac_try;;
  26726. esac
  26727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26728. $as_echo "$ac_try_echo") >&5
  26729. (eval "$ac_compile") 2>conftest.er1
  26730. ac_status=$?
  26731. grep -v '^ *+' conftest.er1 >conftest.err
  26732. rm -f conftest.er1
  26733. cat conftest.err >&5
  26734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26735. (exit $ac_status); } && {
  26736. test -z "$ac_c_werror_flag" ||
  26737. test ! -s conftest.err
  26738. } && test -s conftest.$ac_objext; then
  26739. ac_header_compiler=yes
  26740. else
  26741. $as_echo "$as_me: failed program was:" >&5
  26742. sed 's/^/| /' conftest.$ac_ext >&5
  26743. ac_header_compiler=no
  26744. fi
  26745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26746. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26747. $as_echo "$ac_header_compiler" >&6; }
  26748. # Is the header present?
  26749. { $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
  26750. $as_echo_n "checking iconv.h presence... " >&6; }
  26751. cat >conftest.$ac_ext <<_ACEOF
  26752. /* confdefs.h. */
  26753. _ACEOF
  26754. cat confdefs.h >>conftest.$ac_ext
  26755. cat >>conftest.$ac_ext <<_ACEOF
  26756. /* end confdefs.h. */
  26757. #include <iconv.h>
  26758. _ACEOF
  26759. if { (ac_try="$ac_cpp conftest.$ac_ext"
  26760. case "(($ac_try" in
  26761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26762. *) ac_try_echo=$ac_try;;
  26763. esac
  26764. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26765. $as_echo "$ac_try_echo") >&5
  26766. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  26767. ac_status=$?
  26768. grep -v '^ *+' conftest.er1 >conftest.err
  26769. rm -f conftest.er1
  26770. cat conftest.err >&5
  26771. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26772. (exit $ac_status); } >/dev/null && {
  26773. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  26774. test ! -s conftest.err
  26775. }; then
  26776. ac_header_preproc=yes
  26777. else
  26778. $as_echo "$as_me: failed program was:" >&5
  26779. sed 's/^/| /' conftest.$ac_ext >&5
  26780. ac_header_preproc=no
  26781. fi
  26782. rm -f conftest.err conftest.$ac_ext
  26783. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26784. $as_echo "$ac_header_preproc" >&6; }
  26785. # So? What about this header?
  26786. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26787. yes:no: )
  26788. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  26789. $as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26790. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
  26791. $as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
  26792. ac_header_preproc=yes
  26793. ;;
  26794. no:yes:* )
  26795. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
  26796. $as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
  26797. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
  26798. $as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
  26799. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
  26800. $as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
  26801. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
  26802. $as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  26803. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
  26804. $as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
  26805. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
  26806. $as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
  26807. ( cat <<\_ASBOX
  26808. ## ------------------------------------------ ##
  26809. ## Report this to https://issues.asterisk.org ##
  26810. ## ------------------------------------------ ##
  26811. _ASBOX
  26812. ) | sed "s/^/$as_me: WARNING: /" >&2
  26813. ;;
  26814. esac
  26815. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26816. $as_echo_n "checking for iconv.h... " >&6; }
  26817. if test "${ac_cv_header_iconv_h+set}" = set; then
  26818. $as_echo_n "(cached) " >&6
  26819. else
  26820. ac_cv_header_iconv_h=$ac_header_preproc
  26821. fi
  26822. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26823. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26824. fi
  26825. if test "x$ac_cv_header_iconv_h" = x""yes; then
  26826. ICONV_HEADER_FOUND=1
  26827. else
  26828. ICONV_HEADER_FOUND=0
  26829. fi
  26830. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26831. fi
  26832. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  26833. ICONV_LIB=""
  26834. ICONV_INCLUDE=""
  26835. else
  26836. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26837. ICONV_LIB=""
  26838. fi
  26839. PBX_ICONV=1
  26840. cat >>confdefs.h <<_ACEOF
  26841. #define HAVE_ICONV 1
  26842. _ACEOF
  26843. fi
  26844. fi
  26845. fi
  26846. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  26847. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  26848. pbxlibdir=""
  26849. # if --with-ICONV=DIR has been specified, use it.
  26850. if test "x${ICONV_DIR}" != "x"; then
  26851. if test -d ${ICONV_DIR}/lib; then
  26852. pbxlibdir="-L${ICONV_DIR}/lib"
  26853. else
  26854. pbxlibdir="-L${ICONV_DIR}"
  26855. fi
  26856. fi
  26857. pbxfuncname="libiconv_open"
  26858. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26859. AST_ICONV_FOUND=yes
  26860. else
  26861. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26862. CFLAGS="${CFLAGS} "
  26863. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  26864. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
  26865. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  26866. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  26867. $as_echo_n "(cached) " >&6
  26868. else
  26869. ac_check_lib_save_LIBS=$LIBS
  26870. LIBS="-liconv ${pbxlibdir} $LIBS"
  26871. cat >conftest.$ac_ext <<_ACEOF
  26872. /* confdefs.h. */
  26873. _ACEOF
  26874. cat confdefs.h >>conftest.$ac_ext
  26875. cat >>conftest.$ac_ext <<_ACEOF
  26876. /* end confdefs.h. */
  26877. /* Override any GCC internal prototype to avoid an error.
  26878. Use char because int might match the return type of a GCC
  26879. builtin and then its argument prototype would still apply. */
  26880. #ifdef __cplusplus
  26881. extern "C"
  26882. #endif
  26883. char ${pbxfuncname} ();
  26884. int
  26885. main ()
  26886. {
  26887. return ${pbxfuncname} ();
  26888. ;
  26889. return 0;
  26890. }
  26891. _ACEOF
  26892. rm -f conftest.$ac_objext conftest$ac_exeext
  26893. if { (ac_try="$ac_link"
  26894. case "(($ac_try" in
  26895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26896. *) ac_try_echo=$ac_try;;
  26897. esac
  26898. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26899. $as_echo "$ac_try_echo") >&5
  26900. (eval "$ac_link") 2>conftest.er1
  26901. ac_status=$?
  26902. grep -v '^ *+' conftest.er1 >conftest.err
  26903. rm -f conftest.er1
  26904. cat conftest.err >&5
  26905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26906. (exit $ac_status); } && {
  26907. test -z "$ac_c_werror_flag" ||
  26908. test ! -s conftest.err
  26909. } && test -s conftest$ac_exeext && {
  26910. test "$cross_compiling" = yes ||
  26911. $as_test_x conftest$ac_exeext
  26912. }; then
  26913. eval "$as_ac_Lib=yes"
  26914. else
  26915. $as_echo "$as_me: failed program was:" >&5
  26916. sed 's/^/| /' conftest.$ac_ext >&5
  26917. eval "$as_ac_Lib=no"
  26918. fi
  26919. rm -rf conftest.dSYM
  26920. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26921. conftest$ac_exeext conftest.$ac_ext
  26922. LIBS=$ac_check_lib_save_LIBS
  26923. fi
  26924. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  26925. $as_echo "$as_val"'`
  26926. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26927. $as_echo "$ac_res" >&6; }
  26928. as_val=`eval 'as_val=${'$as_ac_Lib'}
  26929. $as_echo "$as_val"'`
  26930. if test "x$as_val" = x""yes; then
  26931. AST_ICONV_FOUND=yes
  26932. else
  26933. AST_ICONV_FOUND=no
  26934. fi
  26935. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26936. fi
  26937. # now check for the header.
  26938. if test "${AST_ICONV_FOUND}" = "yes"; then
  26939. ICONV_LIB="${pbxlibdir} -liconv "
  26940. # if --with-ICONV=DIR has been specified, use it.
  26941. if test "x${ICONV_DIR}" != "x"; then
  26942. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  26943. fi
  26944. ICONV_INCLUDE="${ICONV_INCLUDE} "
  26945. if test "xiconv.h" = "x" ; then # no header, assume found
  26946. ICONV_HEADER_FOUND="1"
  26947. else # check for the header
  26948. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26949. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  26950. if test "${ac_cv_header_iconv_h+set}" = set; then
  26951. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  26952. $as_echo_n "checking for iconv.h... " >&6; }
  26953. if test "${ac_cv_header_iconv_h+set}" = set; then
  26954. $as_echo_n "(cached) " >&6
  26955. fi
  26956. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  26957. $as_echo "$ac_cv_header_iconv_h" >&6; }
  26958. else
  26959. # Is the header compilable?
  26960. { $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
  26961. $as_echo_n "checking iconv.h usability... " >&6; }
  26962. cat >conftest.$ac_ext <<_ACEOF
  26963. /* confdefs.h. */
  26964. _ACEOF
  26965. cat confdefs.h >>conftest.$ac_ext
  26966. cat >>conftest.$ac_ext <<_ACEOF
  26967. /* end confdefs.h. */
  26968. $ac_includes_default
  26969. #include <iconv.h>
  26970. _ACEOF
  26971. rm -f conftest.$ac_objext
  26972. if { (ac_try="$ac_compile"
  26973. case "(($ac_try" in
  26974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26975. *) ac_try_echo=$ac_try;;
  26976. esac
  26977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26978. $as_echo "$ac_try_echo") >&5
  26979. (eval "$ac_compile") 2>conftest.er1
  26980. ac_status=$?
  26981. grep -v '^ *+' conftest.er1 >conftest.err
  26982. rm -f conftest.er1
  26983. cat conftest.err >&5
  26984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26985. (exit $ac_status); } && {
  26986. test -z "$ac_c_werror_flag" ||
  26987. test ! -s conftest.err
  26988. } && test -s conftest.$ac_objext; then
  26989. ac_header_compiler=yes
  26990. else
  26991. $as_echo "$as_me: failed program was:" >&5
  26992. sed 's/^/| /' conftest.$ac_ext >&5
  26993. ac_header_compiler=no
  26994. fi
  26995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26996. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  26997. $as_echo "$ac_header_compiler" >&6; }
  26998. # Is the header present?
  26999. { $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
  27000. $as_echo_n "checking iconv.h presence... " >&6; }
  27001. cat >conftest.$ac_ext <<_ACEOF
  27002. /* confdefs.h. */
  27003. _ACEOF
  27004. cat confdefs.h >>conftest.$ac_ext
  27005. cat >>conftest.$ac_ext <<_ACEOF
  27006. /* end confdefs.h. */
  27007. #include <iconv.h>
  27008. _ACEOF
  27009. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27010. case "(($ac_try" in
  27011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27012. *) ac_try_echo=$ac_try;;
  27013. esac
  27014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27015. $as_echo "$ac_try_echo") >&5
  27016. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27017. ac_status=$?
  27018. grep -v '^ *+' conftest.er1 >conftest.err
  27019. rm -f conftest.er1
  27020. cat conftest.err >&5
  27021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27022. (exit $ac_status); } >/dev/null && {
  27023. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27024. test ! -s conftest.err
  27025. }; then
  27026. ac_header_preproc=yes
  27027. else
  27028. $as_echo "$as_me: failed program was:" >&5
  27029. sed 's/^/| /' conftest.$ac_ext >&5
  27030. ac_header_preproc=no
  27031. fi
  27032. rm -f conftest.err conftest.$ac_ext
  27033. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27034. $as_echo "$ac_header_preproc" >&6; }
  27035. # So? What about this header?
  27036. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27037. yes:no: )
  27038. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27039. $as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27040. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
  27041. $as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
  27042. ac_header_preproc=yes
  27043. ;;
  27044. no:yes:* )
  27045. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
  27046. $as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
  27047. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
  27048. $as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
  27049. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
  27050. $as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
  27051. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
  27052. $as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27053. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
  27054. $as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
  27055. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
  27056. $as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
  27057. ( cat <<\_ASBOX
  27058. ## ------------------------------------------ ##
  27059. ## Report this to https://issues.asterisk.org ##
  27060. ## ------------------------------------------ ##
  27061. _ASBOX
  27062. ) | sed "s/^/$as_me: WARNING: /" >&2
  27063. ;;
  27064. esac
  27065. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  27066. $as_echo_n "checking for iconv.h... " >&6; }
  27067. if test "${ac_cv_header_iconv_h+set}" = set; then
  27068. $as_echo_n "(cached) " >&6
  27069. else
  27070. ac_cv_header_iconv_h=$ac_header_preproc
  27071. fi
  27072. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  27073. $as_echo "$ac_cv_header_iconv_h" >&6; }
  27074. fi
  27075. if test "x$ac_cv_header_iconv_h" = x""yes; then
  27076. ICONV_HEADER_FOUND=1
  27077. else
  27078. ICONV_HEADER_FOUND=0
  27079. fi
  27080. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27081. fi
  27082. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  27083. ICONV_LIB=""
  27084. ICONV_INCLUDE=""
  27085. else
  27086. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27087. ICONV_LIB=""
  27088. fi
  27089. PBX_ICONV=1
  27090. cat >>confdefs.h <<_ACEOF
  27091. #define HAVE_ICONV 1
  27092. _ACEOF
  27093. fi
  27094. fi
  27095. fi
  27096. # Some versions of Linux package iconv in glibc
  27097. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  27098. pbxlibdir=""
  27099. # if --with-ICONV=DIR has been specified, use it.
  27100. if test "x${ICONV_DIR}" != "x"; then
  27101. if test -d ${ICONV_DIR}/lib; then
  27102. pbxlibdir="-L${ICONV_DIR}/lib"
  27103. else
  27104. pbxlibdir="-L${ICONV_DIR}"
  27105. fi
  27106. fi
  27107. pbxfuncname="iconv_close"
  27108. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27109. AST_ICONV_FOUND=yes
  27110. else
  27111. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27112. CFLAGS="${CFLAGS} "
  27113. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  27114. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  27115. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  27116. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  27117. $as_echo_n "(cached) " >&6
  27118. else
  27119. ac_check_lib_save_LIBS=$LIBS
  27120. LIBS="-lc ${pbxlibdir} $LIBS"
  27121. cat >conftest.$ac_ext <<_ACEOF
  27122. /* confdefs.h. */
  27123. _ACEOF
  27124. cat confdefs.h >>conftest.$ac_ext
  27125. cat >>conftest.$ac_ext <<_ACEOF
  27126. /* end confdefs.h. */
  27127. /* Override any GCC internal prototype to avoid an error.
  27128. Use char because int might match the return type of a GCC
  27129. builtin and then its argument prototype would still apply. */
  27130. #ifdef __cplusplus
  27131. extern "C"
  27132. #endif
  27133. char ${pbxfuncname} ();
  27134. int
  27135. main ()
  27136. {
  27137. return ${pbxfuncname} ();
  27138. ;
  27139. return 0;
  27140. }
  27141. _ACEOF
  27142. rm -f conftest.$ac_objext conftest$ac_exeext
  27143. if { (ac_try="$ac_link"
  27144. case "(($ac_try" in
  27145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27146. *) ac_try_echo=$ac_try;;
  27147. esac
  27148. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27149. $as_echo "$ac_try_echo") >&5
  27150. (eval "$ac_link") 2>conftest.er1
  27151. ac_status=$?
  27152. grep -v '^ *+' conftest.er1 >conftest.err
  27153. rm -f conftest.er1
  27154. cat conftest.err >&5
  27155. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27156. (exit $ac_status); } && {
  27157. test -z "$ac_c_werror_flag" ||
  27158. test ! -s conftest.err
  27159. } && test -s conftest$ac_exeext && {
  27160. test "$cross_compiling" = yes ||
  27161. $as_test_x conftest$ac_exeext
  27162. }; then
  27163. eval "$as_ac_Lib=yes"
  27164. else
  27165. $as_echo "$as_me: failed program was:" >&5
  27166. sed 's/^/| /' conftest.$ac_ext >&5
  27167. eval "$as_ac_Lib=no"
  27168. fi
  27169. rm -rf conftest.dSYM
  27170. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27171. conftest$ac_exeext conftest.$ac_ext
  27172. LIBS=$ac_check_lib_save_LIBS
  27173. fi
  27174. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  27175. $as_echo "$as_val"'`
  27176. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  27177. $as_echo "$ac_res" >&6; }
  27178. as_val=`eval 'as_val=${'$as_ac_Lib'}
  27179. $as_echo "$as_val"'`
  27180. if test "x$as_val" = x""yes; then
  27181. AST_ICONV_FOUND=yes
  27182. else
  27183. AST_ICONV_FOUND=no
  27184. fi
  27185. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27186. fi
  27187. # now check for the header.
  27188. if test "${AST_ICONV_FOUND}" = "yes"; then
  27189. ICONV_LIB="${pbxlibdir} -lc "
  27190. # if --with-ICONV=DIR has been specified, use it.
  27191. if test "x${ICONV_DIR}" != "x"; then
  27192. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  27193. fi
  27194. ICONV_INCLUDE="${ICONV_INCLUDE} "
  27195. if test "xiconv.h" = "x" ; then # no header, assume found
  27196. ICONV_HEADER_FOUND="1"
  27197. else # check for the header
  27198. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27199. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  27200. if test "${ac_cv_header_iconv_h+set}" = set; then
  27201. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  27202. $as_echo_n "checking for iconv.h... " >&6; }
  27203. if test "${ac_cv_header_iconv_h+set}" = set; then
  27204. $as_echo_n "(cached) " >&6
  27205. fi
  27206. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  27207. $as_echo "$ac_cv_header_iconv_h" >&6; }
  27208. else
  27209. # Is the header compilable?
  27210. { $as_echo "$as_me:$LINENO: checking iconv.h usability" >&5
  27211. $as_echo_n "checking iconv.h usability... " >&6; }
  27212. cat >conftest.$ac_ext <<_ACEOF
  27213. /* confdefs.h. */
  27214. _ACEOF
  27215. cat confdefs.h >>conftest.$ac_ext
  27216. cat >>conftest.$ac_ext <<_ACEOF
  27217. /* end confdefs.h. */
  27218. $ac_includes_default
  27219. #include <iconv.h>
  27220. _ACEOF
  27221. rm -f conftest.$ac_objext
  27222. if { (ac_try="$ac_compile"
  27223. case "(($ac_try" in
  27224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27225. *) ac_try_echo=$ac_try;;
  27226. esac
  27227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27228. $as_echo "$ac_try_echo") >&5
  27229. (eval "$ac_compile") 2>conftest.er1
  27230. ac_status=$?
  27231. grep -v '^ *+' conftest.er1 >conftest.err
  27232. rm -f conftest.er1
  27233. cat conftest.err >&5
  27234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27235. (exit $ac_status); } && {
  27236. test -z "$ac_c_werror_flag" ||
  27237. test ! -s conftest.err
  27238. } && test -s conftest.$ac_objext; then
  27239. ac_header_compiler=yes
  27240. else
  27241. $as_echo "$as_me: failed program was:" >&5
  27242. sed 's/^/| /' conftest.$ac_ext >&5
  27243. ac_header_compiler=no
  27244. fi
  27245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27246. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27247. $as_echo "$ac_header_compiler" >&6; }
  27248. # Is the header present?
  27249. { $as_echo "$as_me:$LINENO: checking iconv.h presence" >&5
  27250. $as_echo_n "checking iconv.h presence... " >&6; }
  27251. cat >conftest.$ac_ext <<_ACEOF
  27252. /* confdefs.h. */
  27253. _ACEOF
  27254. cat confdefs.h >>conftest.$ac_ext
  27255. cat >>conftest.$ac_ext <<_ACEOF
  27256. /* end confdefs.h. */
  27257. #include <iconv.h>
  27258. _ACEOF
  27259. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27260. case "(($ac_try" in
  27261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27262. *) ac_try_echo=$ac_try;;
  27263. esac
  27264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27265. $as_echo "$ac_try_echo") >&5
  27266. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27267. ac_status=$?
  27268. grep -v '^ *+' conftest.er1 >conftest.err
  27269. rm -f conftest.er1
  27270. cat conftest.err >&5
  27271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27272. (exit $ac_status); } >/dev/null && {
  27273. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27274. test ! -s conftest.err
  27275. }; then
  27276. ac_header_preproc=yes
  27277. else
  27278. $as_echo "$as_me: failed program was:" >&5
  27279. sed 's/^/| /' conftest.$ac_ext >&5
  27280. ac_header_preproc=no
  27281. fi
  27282. rm -f conftest.err conftest.$ac_ext
  27283. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27284. $as_echo "$ac_header_preproc" >&6; }
  27285. # So? What about this header?
  27286. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27287. yes:no: )
  27288. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27289. $as_echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27290. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
  27291. $as_echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
  27292. ac_header_preproc=yes
  27293. ;;
  27294. no:yes:* )
  27295. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
  27296. $as_echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
  27297. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
  27298. $as_echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
  27299. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
  27300. $as_echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
  27301. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
  27302. $as_echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27303. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
  27304. $as_echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
  27305. { $as_echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
  27306. $as_echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
  27307. ( cat <<\_ASBOX
  27308. ## ------------------------------------------ ##
  27309. ## Report this to https://issues.asterisk.org ##
  27310. ## ------------------------------------------ ##
  27311. _ASBOX
  27312. ) | sed "s/^/$as_me: WARNING: /" >&2
  27313. ;;
  27314. esac
  27315. { $as_echo "$as_me:$LINENO: checking for iconv.h" >&5
  27316. $as_echo_n "checking for iconv.h... " >&6; }
  27317. if test "${ac_cv_header_iconv_h+set}" = set; then
  27318. $as_echo_n "(cached) " >&6
  27319. else
  27320. ac_cv_header_iconv_h=$ac_header_preproc
  27321. fi
  27322. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
  27323. $as_echo "$ac_cv_header_iconv_h" >&6; }
  27324. fi
  27325. if test "x$ac_cv_header_iconv_h" = x""yes; then
  27326. ICONV_HEADER_FOUND=1
  27327. else
  27328. ICONV_HEADER_FOUND=0
  27329. fi
  27330. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27331. fi
  27332. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  27333. ICONV_LIB=""
  27334. ICONV_INCLUDE=""
  27335. else
  27336. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27337. ICONV_LIB=""
  27338. fi
  27339. PBX_ICONV=1
  27340. cat >>confdefs.h <<_ACEOF
  27341. #define HAVE_ICONV 1
  27342. _ACEOF
  27343. fi
  27344. fi
  27345. fi
  27346. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  27347. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  27348. pbxlibdir=""
  27349. # if --with-ICAL=DIR has been specified, use it.
  27350. if test "x${ICAL_DIR}" != "x"; then
  27351. if test -d ${ICAL_DIR}/lib; then
  27352. pbxlibdir="-L${ICAL_DIR}/lib"
  27353. else
  27354. pbxlibdir="-L${ICAL_DIR}"
  27355. fi
  27356. fi
  27357. pbxfuncname="icaltimezone_get_utc_timezone"
  27358. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27359. AST_ICAL_FOUND=yes
  27360. else
  27361. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27362. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  27363. as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
  27364. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lical" >&5
  27365. $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
  27366. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  27367. $as_echo_n "(cached) " >&6
  27368. else
  27369. ac_check_lib_save_LIBS=$LIBS
  27370. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  27371. cat >conftest.$ac_ext <<_ACEOF
  27372. /* confdefs.h. */
  27373. _ACEOF
  27374. cat confdefs.h >>conftest.$ac_ext
  27375. cat >>conftest.$ac_ext <<_ACEOF
  27376. /* end confdefs.h. */
  27377. /* Override any GCC internal prototype to avoid an error.
  27378. Use char because int might match the return type of a GCC
  27379. builtin and then its argument prototype would still apply. */
  27380. #ifdef __cplusplus
  27381. extern "C"
  27382. #endif
  27383. char ${pbxfuncname} ();
  27384. int
  27385. main ()
  27386. {
  27387. return ${pbxfuncname} ();
  27388. ;
  27389. return 0;
  27390. }
  27391. _ACEOF
  27392. rm -f conftest.$ac_objext conftest$ac_exeext
  27393. if { (ac_try="$ac_link"
  27394. case "(($ac_try" in
  27395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27396. *) ac_try_echo=$ac_try;;
  27397. esac
  27398. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27399. $as_echo "$ac_try_echo") >&5
  27400. (eval "$ac_link") 2>conftest.er1
  27401. ac_status=$?
  27402. grep -v '^ *+' conftest.er1 >conftest.err
  27403. rm -f conftest.er1
  27404. cat conftest.err >&5
  27405. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27406. (exit $ac_status); } && {
  27407. test -z "$ac_c_werror_flag" ||
  27408. test ! -s conftest.err
  27409. } && test -s conftest$ac_exeext && {
  27410. test "$cross_compiling" = yes ||
  27411. $as_test_x conftest$ac_exeext
  27412. }; then
  27413. eval "$as_ac_Lib=yes"
  27414. else
  27415. $as_echo "$as_me: failed program was:" >&5
  27416. sed 's/^/| /' conftest.$ac_ext >&5
  27417. eval "$as_ac_Lib=no"
  27418. fi
  27419. rm -rf conftest.dSYM
  27420. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27421. conftest$ac_exeext conftest.$ac_ext
  27422. LIBS=$ac_check_lib_save_LIBS
  27423. fi
  27424. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  27425. $as_echo "$as_val"'`
  27426. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  27427. $as_echo "$ac_res" >&6; }
  27428. as_val=`eval 'as_val=${'$as_ac_Lib'}
  27429. $as_echo "$as_val"'`
  27430. if test "x$as_val" = x""yes; then
  27431. AST_ICAL_FOUND=yes
  27432. else
  27433. AST_ICAL_FOUND=no
  27434. fi
  27435. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27436. fi
  27437. # now check for the header.
  27438. if test "${AST_ICAL_FOUND}" = "yes"; then
  27439. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  27440. # if --with-ICAL=DIR has been specified, use it.
  27441. if test "x${ICAL_DIR}" != "x"; then
  27442. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  27443. fi
  27444. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  27445. if test "xlibical/ical.h" = "x" ; then # no header, assume found
  27446. ICAL_HEADER_FOUND="1"
  27447. else # check for the header
  27448. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27449. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  27450. if test "${ac_cv_header_libical_ical_h+set}" = set; then
  27451. { $as_echo "$as_me:$LINENO: checking for libical/ical.h" >&5
  27452. $as_echo_n "checking for libical/ical.h... " >&6; }
  27453. if test "${ac_cv_header_libical_ical_h+set}" = set; then
  27454. $as_echo_n "(cached) " >&6
  27455. fi
  27456. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libical_ical_h" >&5
  27457. $as_echo "$ac_cv_header_libical_ical_h" >&6; }
  27458. else
  27459. # Is the header compilable?
  27460. { $as_echo "$as_me:$LINENO: checking libical/ical.h usability" >&5
  27461. $as_echo_n "checking libical/ical.h usability... " >&6; }
  27462. cat >conftest.$ac_ext <<_ACEOF
  27463. /* confdefs.h. */
  27464. _ACEOF
  27465. cat confdefs.h >>conftest.$ac_ext
  27466. cat >>conftest.$ac_ext <<_ACEOF
  27467. /* end confdefs.h. */
  27468. $ac_includes_default
  27469. #include <libical/ical.h>
  27470. _ACEOF
  27471. rm -f conftest.$ac_objext
  27472. if { (ac_try="$ac_compile"
  27473. case "(($ac_try" in
  27474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27475. *) ac_try_echo=$ac_try;;
  27476. esac
  27477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27478. $as_echo "$ac_try_echo") >&5
  27479. (eval "$ac_compile") 2>conftest.er1
  27480. ac_status=$?
  27481. grep -v '^ *+' conftest.er1 >conftest.err
  27482. rm -f conftest.er1
  27483. cat conftest.err >&5
  27484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27485. (exit $ac_status); } && {
  27486. test -z "$ac_c_werror_flag" ||
  27487. test ! -s conftest.err
  27488. } && test -s conftest.$ac_objext; then
  27489. ac_header_compiler=yes
  27490. else
  27491. $as_echo "$as_me: failed program was:" >&5
  27492. sed 's/^/| /' conftest.$ac_ext >&5
  27493. ac_header_compiler=no
  27494. fi
  27495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27496. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27497. $as_echo "$ac_header_compiler" >&6; }
  27498. # Is the header present?
  27499. { $as_echo "$as_me:$LINENO: checking libical/ical.h presence" >&5
  27500. $as_echo_n "checking libical/ical.h presence... " >&6; }
  27501. cat >conftest.$ac_ext <<_ACEOF
  27502. /* confdefs.h. */
  27503. _ACEOF
  27504. cat confdefs.h >>conftest.$ac_ext
  27505. cat >>conftest.$ac_ext <<_ACEOF
  27506. /* end confdefs.h. */
  27507. #include <libical/ical.h>
  27508. _ACEOF
  27509. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27510. case "(($ac_try" in
  27511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27512. *) ac_try_echo=$ac_try;;
  27513. esac
  27514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27515. $as_echo "$ac_try_echo") >&5
  27516. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27517. ac_status=$?
  27518. grep -v '^ *+' conftest.er1 >conftest.err
  27519. rm -f conftest.er1
  27520. cat conftest.err >&5
  27521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27522. (exit $ac_status); } >/dev/null && {
  27523. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27524. test ! -s conftest.err
  27525. }; then
  27526. ac_header_preproc=yes
  27527. else
  27528. $as_echo "$as_me: failed program was:" >&5
  27529. sed 's/^/| /' conftest.$ac_ext >&5
  27530. ac_header_preproc=no
  27531. fi
  27532. rm -f conftest.err conftest.$ac_ext
  27533. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27534. $as_echo "$ac_header_preproc" >&6; }
  27535. # So? What about this header?
  27536. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27537. yes:no: )
  27538. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27539. $as_echo "$as_me: WARNING: libical/ical.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27540. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: proceeding with the compiler's result" >&5
  27541. $as_echo "$as_me: WARNING: libical/ical.h: proceeding with the compiler's result" >&2;}
  27542. ac_header_preproc=yes
  27543. ;;
  27544. no:yes:* )
  27545. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: present but cannot be compiled" >&5
  27546. $as_echo "$as_me: WARNING: libical/ical.h: present but cannot be compiled" >&2;}
  27547. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: check for missing prerequisite headers?" >&5
  27548. $as_echo "$as_me: WARNING: libical/ical.h: check for missing prerequisite headers?" >&2;}
  27549. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: see the Autoconf documentation" >&5
  27550. $as_echo "$as_me: WARNING: libical/ical.h: see the Autoconf documentation" >&2;}
  27551. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: section \"Present But Cannot Be Compiled\"" >&5
  27552. $as_echo "$as_me: WARNING: libical/ical.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27553. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: proceeding with the preprocessor's result" >&5
  27554. $as_echo "$as_me: WARNING: libical/ical.h: proceeding with the preprocessor's result" >&2;}
  27555. { $as_echo "$as_me:$LINENO: WARNING: libical/ical.h: in the future, the compiler will take precedence" >&5
  27556. $as_echo "$as_me: WARNING: libical/ical.h: in the future, the compiler will take precedence" >&2;}
  27557. ( cat <<\_ASBOX
  27558. ## ------------------------------------------ ##
  27559. ## Report this to https://issues.asterisk.org ##
  27560. ## ------------------------------------------ ##
  27561. _ASBOX
  27562. ) | sed "s/^/$as_me: WARNING: /" >&2
  27563. ;;
  27564. esac
  27565. { $as_echo "$as_me:$LINENO: checking for libical/ical.h" >&5
  27566. $as_echo_n "checking for libical/ical.h... " >&6; }
  27567. if test "${ac_cv_header_libical_ical_h+set}" = set; then
  27568. $as_echo_n "(cached) " >&6
  27569. else
  27570. ac_cv_header_libical_ical_h=$ac_header_preproc
  27571. fi
  27572. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libical_ical_h" >&5
  27573. $as_echo "$ac_cv_header_libical_ical_h" >&6; }
  27574. fi
  27575. if test "x$ac_cv_header_libical_ical_h" = x""yes; then
  27576. ICAL_HEADER_FOUND=1
  27577. else
  27578. ICAL_HEADER_FOUND=0
  27579. fi
  27580. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27581. fi
  27582. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  27583. ICAL_LIB=""
  27584. ICAL_INCLUDE=""
  27585. else
  27586. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27587. ICAL_LIB=""
  27588. fi
  27589. PBX_ICAL=1
  27590. cat >>confdefs.h <<_ACEOF
  27591. #define HAVE_ICAL 1
  27592. _ACEOF
  27593. fi
  27594. fi
  27595. fi
  27596. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  27597. pbxlibdir=""
  27598. # if --with-IKSEMEL=DIR has been specified, use it.
  27599. if test "x${IKSEMEL_DIR}" != "x"; then
  27600. if test -d ${IKSEMEL_DIR}/lib; then
  27601. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  27602. else
  27603. pbxlibdir="-L${IKSEMEL_DIR}"
  27604. fi
  27605. fi
  27606. pbxfuncname="iks_start_sasl"
  27607. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27608. AST_IKSEMEL_FOUND=yes
  27609. else
  27610. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27611. CFLAGS="${CFLAGS} "
  27612. as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
  27613. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
  27614. $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
  27615. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  27616. $as_echo_n "(cached) " >&6
  27617. else
  27618. ac_check_lib_save_LIBS=$LIBS
  27619. LIBS="-liksemel ${pbxlibdir} $LIBS"
  27620. cat >conftest.$ac_ext <<_ACEOF
  27621. /* confdefs.h. */
  27622. _ACEOF
  27623. cat confdefs.h >>conftest.$ac_ext
  27624. cat >>conftest.$ac_ext <<_ACEOF
  27625. /* end confdefs.h. */
  27626. /* Override any GCC internal prototype to avoid an error.
  27627. Use char because int might match the return type of a GCC
  27628. builtin and then its argument prototype would still apply. */
  27629. #ifdef __cplusplus
  27630. extern "C"
  27631. #endif
  27632. char ${pbxfuncname} ();
  27633. int
  27634. main ()
  27635. {
  27636. return ${pbxfuncname} ();
  27637. ;
  27638. return 0;
  27639. }
  27640. _ACEOF
  27641. rm -f conftest.$ac_objext conftest$ac_exeext
  27642. if { (ac_try="$ac_link"
  27643. case "(($ac_try" in
  27644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27645. *) ac_try_echo=$ac_try;;
  27646. esac
  27647. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27648. $as_echo "$ac_try_echo") >&5
  27649. (eval "$ac_link") 2>conftest.er1
  27650. ac_status=$?
  27651. grep -v '^ *+' conftest.er1 >conftest.err
  27652. rm -f conftest.er1
  27653. cat conftest.err >&5
  27654. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27655. (exit $ac_status); } && {
  27656. test -z "$ac_c_werror_flag" ||
  27657. test ! -s conftest.err
  27658. } && test -s conftest$ac_exeext && {
  27659. test "$cross_compiling" = yes ||
  27660. $as_test_x conftest$ac_exeext
  27661. }; then
  27662. eval "$as_ac_Lib=yes"
  27663. else
  27664. $as_echo "$as_me: failed program was:" >&5
  27665. sed 's/^/| /' conftest.$ac_ext >&5
  27666. eval "$as_ac_Lib=no"
  27667. fi
  27668. rm -rf conftest.dSYM
  27669. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27670. conftest$ac_exeext conftest.$ac_ext
  27671. LIBS=$ac_check_lib_save_LIBS
  27672. fi
  27673. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  27674. $as_echo "$as_val"'`
  27675. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  27676. $as_echo "$ac_res" >&6; }
  27677. as_val=`eval 'as_val=${'$as_ac_Lib'}
  27678. $as_echo "$as_val"'`
  27679. if test "x$as_val" = x""yes; then
  27680. AST_IKSEMEL_FOUND=yes
  27681. else
  27682. AST_IKSEMEL_FOUND=no
  27683. fi
  27684. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27685. fi
  27686. # now check for the header.
  27687. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  27688. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  27689. # if --with-IKSEMEL=DIR has been specified, use it.
  27690. if test "x${IKSEMEL_DIR}" != "x"; then
  27691. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  27692. fi
  27693. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  27694. if test "xiksemel.h" = "x" ; then # no header, assume found
  27695. IKSEMEL_HEADER_FOUND="1"
  27696. else # check for the header
  27697. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27698. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  27699. if test "${ac_cv_header_iksemel_h+set}" = set; then
  27700. { $as_echo "$as_me:$LINENO: checking for iksemel.h" >&5
  27701. $as_echo_n "checking for iksemel.h... " >&6; }
  27702. if test "${ac_cv_header_iksemel_h+set}" = set; then
  27703. $as_echo_n "(cached) " >&6
  27704. fi
  27705. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
  27706. $as_echo "$ac_cv_header_iksemel_h" >&6; }
  27707. else
  27708. # Is the header compilable?
  27709. { $as_echo "$as_me:$LINENO: checking iksemel.h usability" >&5
  27710. $as_echo_n "checking iksemel.h usability... " >&6; }
  27711. cat >conftest.$ac_ext <<_ACEOF
  27712. /* confdefs.h. */
  27713. _ACEOF
  27714. cat confdefs.h >>conftest.$ac_ext
  27715. cat >>conftest.$ac_ext <<_ACEOF
  27716. /* end confdefs.h. */
  27717. $ac_includes_default
  27718. #include <iksemel.h>
  27719. _ACEOF
  27720. rm -f conftest.$ac_objext
  27721. if { (ac_try="$ac_compile"
  27722. case "(($ac_try" in
  27723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27724. *) ac_try_echo=$ac_try;;
  27725. esac
  27726. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27727. $as_echo "$ac_try_echo") >&5
  27728. (eval "$ac_compile") 2>conftest.er1
  27729. ac_status=$?
  27730. grep -v '^ *+' conftest.er1 >conftest.err
  27731. rm -f conftest.er1
  27732. cat conftest.err >&5
  27733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27734. (exit $ac_status); } && {
  27735. test -z "$ac_c_werror_flag" ||
  27736. test ! -s conftest.err
  27737. } && test -s conftest.$ac_objext; then
  27738. ac_header_compiler=yes
  27739. else
  27740. $as_echo "$as_me: failed program was:" >&5
  27741. sed 's/^/| /' conftest.$ac_ext >&5
  27742. ac_header_compiler=no
  27743. fi
  27744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27745. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27746. $as_echo "$ac_header_compiler" >&6; }
  27747. # Is the header present?
  27748. { $as_echo "$as_me:$LINENO: checking iksemel.h presence" >&5
  27749. $as_echo_n "checking iksemel.h presence... " >&6; }
  27750. cat >conftest.$ac_ext <<_ACEOF
  27751. /* confdefs.h. */
  27752. _ACEOF
  27753. cat confdefs.h >>conftest.$ac_ext
  27754. cat >>conftest.$ac_ext <<_ACEOF
  27755. /* end confdefs.h. */
  27756. #include <iksemel.h>
  27757. _ACEOF
  27758. if { (ac_try="$ac_cpp conftest.$ac_ext"
  27759. case "(($ac_try" in
  27760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27761. *) ac_try_echo=$ac_try;;
  27762. esac
  27763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27764. $as_echo "$ac_try_echo") >&5
  27765. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  27766. ac_status=$?
  27767. grep -v '^ *+' conftest.er1 >conftest.err
  27768. rm -f conftest.er1
  27769. cat conftest.err >&5
  27770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27771. (exit $ac_status); } >/dev/null && {
  27772. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  27773. test ! -s conftest.err
  27774. }; then
  27775. ac_header_preproc=yes
  27776. else
  27777. $as_echo "$as_me: failed program was:" >&5
  27778. sed 's/^/| /' conftest.$ac_ext >&5
  27779. ac_header_preproc=no
  27780. fi
  27781. rm -f conftest.err conftest.$ac_ext
  27782. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27783. $as_echo "$ac_header_preproc" >&6; }
  27784. # So? What about this header?
  27785. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27786. yes:no: )
  27787. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
  27788. $as_echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27789. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
  27790. $as_echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
  27791. ac_header_preproc=yes
  27792. ;;
  27793. no:yes:* )
  27794. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
  27795. $as_echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
  27796. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
  27797. $as_echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
  27798. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
  27799. $as_echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
  27800. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
  27801. $as_echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
  27802. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
  27803. $as_echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
  27804. { $as_echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
  27805. $as_echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
  27806. ( cat <<\_ASBOX
  27807. ## ------------------------------------------ ##
  27808. ## Report this to https://issues.asterisk.org ##
  27809. ## ------------------------------------------ ##
  27810. _ASBOX
  27811. ) | sed "s/^/$as_me: WARNING: /" >&2
  27812. ;;
  27813. esac
  27814. { $as_echo "$as_me:$LINENO: checking for iksemel.h" >&5
  27815. $as_echo_n "checking for iksemel.h... " >&6; }
  27816. if test "${ac_cv_header_iksemel_h+set}" = set; then
  27817. $as_echo_n "(cached) " >&6
  27818. else
  27819. ac_cv_header_iksemel_h=$ac_header_preproc
  27820. fi
  27821. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
  27822. $as_echo "$ac_cv_header_iksemel_h" >&6; }
  27823. fi
  27824. if test "x$ac_cv_header_iksemel_h" = x""yes; then
  27825. IKSEMEL_HEADER_FOUND=1
  27826. else
  27827. IKSEMEL_HEADER_FOUND=0
  27828. fi
  27829. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27830. fi
  27831. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  27832. IKSEMEL_LIB=""
  27833. IKSEMEL_INCLUDE=""
  27834. else
  27835. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27836. IKSEMEL_LIB=""
  27837. fi
  27838. PBX_IKSEMEL=1
  27839. cat >>confdefs.h <<_ACEOF
  27840. #define HAVE_IKSEMEL 1
  27841. _ACEOF
  27842. fi
  27843. fi
  27844. fi
  27845. if test "${USE_IMAP_TK}" != "no"; then
  27846. saved_cppflags="${CPPFLAGS}"
  27847. saved_libs="${LIBS}"
  27848. switch_to_system_on_failure="no"
  27849. if test "${IMAP_TK_DIR}" = ""; then
  27850. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  27851. switch_to_system_on_failure="yes"
  27852. fi
  27853. if test "${IMAP_TK_DIR}" != "system"; then
  27854. { $as_echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
  27855. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  27856. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  27857. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  27858. fi
  27859. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  27860. imap_include="-I${IMAP_TK_DIR}/c-client"
  27861. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  27862. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  27863. cat >conftest.$ac_ext <<_ACEOF
  27864. /* confdefs.h. */
  27865. _ACEOF
  27866. cat confdefs.h >>conftest.$ac_ext
  27867. cat >>conftest.$ac_ext <<_ACEOF
  27868. /* end confdefs.h. */
  27869. #include "c-client.h"
  27870. void mm_searched (MAILSTREAM *stream,unsigned long number)
  27871. {
  27872. }
  27873. void mm_exists (MAILSTREAM *stream,unsigned long number)
  27874. {
  27875. }
  27876. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  27877. {
  27878. }
  27879. void mm_flags (MAILSTREAM *stream,unsigned long number)
  27880. {
  27881. }
  27882. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  27883. {
  27884. }
  27885. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27886. {
  27887. }
  27888. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27889. {
  27890. }
  27891. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  27892. {
  27893. }
  27894. void mm_log (char *string,long errflg)
  27895. {
  27896. }
  27897. void mm_dlog (char *string)
  27898. {
  27899. }
  27900. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  27901. {
  27902. }
  27903. void mm_critical (MAILSTREAM *stream)
  27904. {
  27905. }
  27906. void mm_nocritical (MAILSTREAM *stream)
  27907. {
  27908. }
  27909. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  27910. {
  27911. }
  27912. void mm_fatal (char *string)
  27913. {
  27914. }
  27915. int
  27916. main ()
  27917. {
  27918. MAILSTREAM *foo = mail_open(NULL, "", 0);
  27919. ;
  27920. return 0;
  27921. }
  27922. _ACEOF
  27923. rm -f conftest.$ac_objext conftest$ac_exeext
  27924. if { (ac_try="$ac_link"
  27925. case "(($ac_try" in
  27926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27927. *) ac_try_echo=$ac_try;;
  27928. esac
  27929. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27930. $as_echo "$ac_try_echo") >&5
  27931. (eval "$ac_link") 2>conftest.er1
  27932. ac_status=$?
  27933. grep -v '^ *+' conftest.er1 >conftest.err
  27934. rm -f conftest.er1
  27935. cat conftest.err >&5
  27936. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27937. (exit $ac_status); } && {
  27938. test -z "$ac_c_werror_flag" ||
  27939. test ! -s conftest.err
  27940. } && test -s conftest$ac_exeext && {
  27941. test "$cross_compiling" = yes ||
  27942. $as_test_x conftest$ac_exeext
  27943. }; then
  27944. ac_cv_imap_tk="yes"
  27945. else
  27946. $as_echo "$as_me: failed program was:" >&5
  27947. sed 's/^/| /' conftest.$ac_ext >&5
  27948. ac_cv_imap_tk="no"
  27949. fi
  27950. rm -rf conftest.dSYM
  27951. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27952. conftest$ac_exeext conftest.$ac_ext
  27953. if test "${ac_cv_imap_tk}" = "yes"; then
  27954. cat >conftest.$ac_ext <<_ACEOF
  27955. /* confdefs.h. */
  27956. _ACEOF
  27957. cat confdefs.h >>conftest.$ac_ext
  27958. cat >>conftest.$ac_ext <<_ACEOF
  27959. /* end confdefs.h. */
  27960. #include "c-client.h"
  27961. void mm_searched (MAILSTREAM *stream,unsigned long number)
  27962. {
  27963. }
  27964. void mm_exists (MAILSTREAM *stream,unsigned long number)
  27965. {
  27966. }
  27967. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  27968. {
  27969. }
  27970. void mm_flags (MAILSTREAM *stream,unsigned long number)
  27971. {
  27972. }
  27973. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  27974. {
  27975. }
  27976. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27977. {
  27978. }
  27979. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  27980. {
  27981. }
  27982. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  27983. {
  27984. }
  27985. void mm_log (char *string,long errflg)
  27986. {
  27987. }
  27988. void mm_dlog (char *string)
  27989. {
  27990. }
  27991. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  27992. {
  27993. }
  27994. void mm_critical (MAILSTREAM *stream)
  27995. {
  27996. }
  27997. void mm_nocritical (MAILSTREAM *stream)
  27998. {
  27999. }
  28000. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28001. {
  28002. }
  28003. void mm_fatal (char *string)
  28004. {
  28005. }
  28006. int
  28007. main ()
  28008. {
  28009. long check = mail_expunge_full(NULL, "", 0);
  28010. ;
  28011. return 0;
  28012. }
  28013. _ACEOF
  28014. rm -f conftest.$ac_objext conftest$ac_exeext
  28015. if { (ac_try="$ac_link"
  28016. case "(($ac_try" in
  28017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28018. *) ac_try_echo=$ac_try;;
  28019. esac
  28020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28021. $as_echo "$ac_try_echo") >&5
  28022. (eval "$ac_link") 2>conftest.er1
  28023. ac_status=$?
  28024. grep -v '^ *+' conftest.er1 >conftest.err
  28025. rm -f conftest.er1
  28026. cat conftest.err >&5
  28027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28028. (exit $ac_status); } && {
  28029. test -z "$ac_c_werror_flag" ||
  28030. test ! -s conftest.err
  28031. } && test -s conftest$ac_exeext && {
  28032. test "$cross_compiling" = yes ||
  28033. $as_test_x conftest$ac_exeext
  28034. }; then
  28035. ac_cv_imap_tk2006="yes"
  28036. else
  28037. $as_echo "$as_me: failed program was:" >&5
  28038. sed 's/^/| /' conftest.$ac_ext >&5
  28039. ac_cv_imap_tk2006="no"
  28040. fi
  28041. rm -rf conftest.dSYM
  28042. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28043. conftest$ac_exeext conftest.$ac_ext
  28044. fi
  28045. CPPFLAGS="${saved_cppflags}"
  28046. LIBS="${saved_libs}"
  28047. if test "${ac_cv_imap_tk}" = "no"; then
  28048. { $as_echo "$as_me:$LINENO: result: no" >&5
  28049. $as_echo "no" >&6; }
  28050. if test "${switch_to_system_on_failure}" = "yes"; then
  28051. IMAP_TK_DIR="system"
  28052. else #This means they specified a directory. Search for a package installation there too
  28053. { $as_echo "$as_me:$LINENO: checking for system c-client library..." >&5
  28054. $as_echo_n "checking for system c-client library...... " >&6; }
  28055. CPPFLAGS="${saved_cppflags}"
  28056. LIBS="${saved_libs}"
  28057. imap_include="-I${IMAP_TK_DIR}/include"
  28058. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  28059. imap_libs="-lc-client"
  28060. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  28061. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  28062. cat >conftest.$ac_ext <<_ACEOF
  28063. /* confdefs.h. */
  28064. _ACEOF
  28065. cat confdefs.h >>conftest.$ac_ext
  28066. cat >>conftest.$ac_ext <<_ACEOF
  28067. /* end confdefs.h. */
  28068. #include "c-client.h"
  28069. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28070. {
  28071. }
  28072. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28073. {
  28074. }
  28075. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28076. {
  28077. }
  28078. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28079. {
  28080. }
  28081. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28082. {
  28083. }
  28084. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28085. {
  28086. }
  28087. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28088. {
  28089. }
  28090. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28091. {
  28092. }
  28093. void mm_log (char *string,long errflg)
  28094. {
  28095. }
  28096. void mm_dlog (char *string)
  28097. {
  28098. }
  28099. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28100. {
  28101. }
  28102. void mm_critical (MAILSTREAM *stream)
  28103. {
  28104. }
  28105. void mm_nocritical (MAILSTREAM *stream)
  28106. {
  28107. }
  28108. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28109. {
  28110. }
  28111. void mm_fatal (char *string)
  28112. {
  28113. }
  28114. int
  28115. main ()
  28116. {
  28117. MAILSTREAM *foo = mail_open(NULL, "", 0);
  28118. ;
  28119. return 0;
  28120. }
  28121. _ACEOF
  28122. rm -f conftest.$ac_objext conftest$ac_exeext
  28123. if { (ac_try="$ac_link"
  28124. case "(($ac_try" in
  28125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28126. *) ac_try_echo=$ac_try;;
  28127. esac
  28128. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28129. $as_echo "$ac_try_echo") >&5
  28130. (eval "$ac_link") 2>conftest.er1
  28131. ac_status=$?
  28132. grep -v '^ *+' conftest.er1 >conftest.err
  28133. rm -f conftest.er1
  28134. cat conftest.err >&5
  28135. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28136. (exit $ac_status); } && {
  28137. test -z "$ac_c_werror_flag" ||
  28138. test ! -s conftest.err
  28139. } && test -s conftest$ac_exeext && {
  28140. test "$cross_compiling" = yes ||
  28141. $as_test_x conftest$ac_exeext
  28142. }; then
  28143. ac_cv_imap_tk="yes"
  28144. else
  28145. $as_echo "$as_me: failed program was:" >&5
  28146. sed 's/^/| /' conftest.$ac_ext >&5
  28147. ac_cv_imap_tk="no"
  28148. fi
  28149. rm -rf conftest.dSYM
  28150. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28151. conftest$ac_exeext conftest.$ac_ext
  28152. if test "${ac_cv_imap_tk}" = "yes"; then
  28153. cat >conftest.$ac_ext <<_ACEOF
  28154. /* confdefs.h. */
  28155. _ACEOF
  28156. cat confdefs.h >>conftest.$ac_ext
  28157. cat >>conftest.$ac_ext <<_ACEOF
  28158. /* end confdefs.h. */
  28159. #include "c-client.h"
  28160. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28161. {
  28162. }
  28163. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28164. {
  28165. }
  28166. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28167. {
  28168. }
  28169. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28170. {
  28171. }
  28172. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28173. {
  28174. }
  28175. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28176. {
  28177. }
  28178. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28179. {
  28180. }
  28181. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28182. {
  28183. }
  28184. void mm_log (char *string,long errflg)
  28185. {
  28186. }
  28187. void mm_dlog (char *string)
  28188. {
  28189. }
  28190. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28191. {
  28192. }
  28193. void mm_critical (MAILSTREAM *stream)
  28194. {
  28195. }
  28196. void mm_nocritical (MAILSTREAM *stream)
  28197. {
  28198. }
  28199. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28200. {
  28201. }
  28202. void mm_fatal (char *string)
  28203. {
  28204. }
  28205. int
  28206. main ()
  28207. {
  28208. long check = mail_expunge_full(NULL, "", 0);
  28209. ;
  28210. return 0;
  28211. }
  28212. _ACEOF
  28213. rm -f conftest.$ac_objext conftest$ac_exeext
  28214. if { (ac_try="$ac_link"
  28215. case "(($ac_try" in
  28216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28217. *) ac_try_echo=$ac_try;;
  28218. esac
  28219. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28220. $as_echo "$ac_try_echo") >&5
  28221. (eval "$ac_link") 2>conftest.er1
  28222. ac_status=$?
  28223. grep -v '^ *+' conftest.er1 >conftest.err
  28224. rm -f conftest.er1
  28225. cat conftest.err >&5
  28226. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28227. (exit $ac_status); } && {
  28228. test -z "$ac_c_werror_flag" ||
  28229. test ! -s conftest.err
  28230. } && test -s conftest$ac_exeext && {
  28231. test "$cross_compiling" = yes ||
  28232. $as_test_x conftest$ac_exeext
  28233. }; then
  28234. ac_cv_imap_tk2006="yes"
  28235. else
  28236. $as_echo "$as_me: failed program was:" >&5
  28237. sed 's/^/| /' conftest.$ac_ext >&5
  28238. ac_cv_imap_tk2006="no"
  28239. fi
  28240. rm -rf conftest.dSYM
  28241. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28242. conftest$ac_exeext conftest.$ac_ext
  28243. fi
  28244. fi
  28245. fi
  28246. fi
  28247. if test "${IMAP_TK_DIR}" = "system"; then
  28248. #We will enter here if user specified "system" or if any of above checks failed
  28249. { $as_echo "$as_me:$LINENO: checking for system c-client library..." >&5
  28250. $as_echo_n "checking for system c-client library...... " >&6; }
  28251. CPPFLAGS="${saved_cppflags}"
  28252. LIBS="${saved_libs}"
  28253. imap_ldflags=""
  28254. imap_libs="-lc-client"
  28255. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  28256. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  28257. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  28258. cat >conftest.$ac_ext <<_ACEOF
  28259. /* confdefs.h. */
  28260. _ACEOF
  28261. cat confdefs.h >>conftest.$ac_ext
  28262. cat >>conftest.$ac_ext <<_ACEOF
  28263. /* end confdefs.h. */
  28264. #include <stdio.h>
  28265. #include <imap/c-client.h>
  28266. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28267. {
  28268. }
  28269. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28270. {
  28271. }
  28272. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28273. {
  28274. }
  28275. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28276. {
  28277. }
  28278. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28279. {
  28280. }
  28281. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28282. {
  28283. }
  28284. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28285. {
  28286. }
  28287. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28288. {
  28289. }
  28290. void mm_log (char *string,long errflg)
  28291. {
  28292. }
  28293. void mm_dlog (char *string)
  28294. {
  28295. }
  28296. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28297. {
  28298. }
  28299. void mm_critical (MAILSTREAM *stream)
  28300. {
  28301. }
  28302. void mm_nocritical (MAILSTREAM *stream)
  28303. {
  28304. }
  28305. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28306. {
  28307. }
  28308. void mm_fatal (char *string)
  28309. {
  28310. }
  28311. int
  28312. main ()
  28313. {
  28314. MAILSTREAM *foo = mail_open(NULL, "", 0);
  28315. ;
  28316. return 0;
  28317. }
  28318. _ACEOF
  28319. rm -f conftest.$ac_objext conftest$ac_exeext
  28320. if { (ac_try="$ac_link"
  28321. case "(($ac_try" in
  28322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28323. *) ac_try_echo=$ac_try;;
  28324. esac
  28325. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28326. $as_echo "$ac_try_echo") >&5
  28327. (eval "$ac_link") 2>conftest.er1
  28328. ac_status=$?
  28329. grep -v '^ *+' conftest.er1 >conftest.err
  28330. rm -f conftest.er1
  28331. cat conftest.err >&5
  28332. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28333. (exit $ac_status); } && {
  28334. test -z "$ac_c_werror_flag" ||
  28335. test ! -s conftest.err
  28336. } && test -s conftest$ac_exeext && {
  28337. test "$cross_compiling" = yes ||
  28338. $as_test_x conftest$ac_exeext
  28339. }; then
  28340. ac_cv_imap_tk="yes"
  28341. else
  28342. $as_echo "$as_me: failed program was:" >&5
  28343. sed 's/^/| /' conftest.$ac_ext >&5
  28344. ac_cv_imap_tk="no"
  28345. fi
  28346. rm -rf conftest.dSYM
  28347. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28348. conftest$ac_exeext conftest.$ac_ext
  28349. if test "${ac_cv_imap_tk}" = "yes"; then
  28350. cat >conftest.$ac_ext <<_ACEOF
  28351. /* confdefs.h. */
  28352. _ACEOF
  28353. cat confdefs.h >>conftest.$ac_ext
  28354. cat >>conftest.$ac_ext <<_ACEOF
  28355. /* end confdefs.h. */
  28356. #include <stdio.h>
  28357. #include <imap/c-client.h>
  28358. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28359. {
  28360. }
  28361. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28362. {
  28363. }
  28364. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28365. {
  28366. }
  28367. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28368. {
  28369. }
  28370. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28371. {
  28372. }
  28373. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28374. {
  28375. }
  28376. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28377. {
  28378. }
  28379. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28380. {
  28381. }
  28382. void mm_log (char *string,long errflg)
  28383. {
  28384. }
  28385. void mm_dlog (char *string)
  28386. {
  28387. }
  28388. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28389. {
  28390. }
  28391. void mm_critical (MAILSTREAM *stream)
  28392. {
  28393. }
  28394. void mm_nocritical (MAILSTREAM *stream)
  28395. {
  28396. }
  28397. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28398. {
  28399. }
  28400. void mm_fatal (char *string)
  28401. {
  28402. }
  28403. int
  28404. main ()
  28405. {
  28406. long check = mail_expunge_full(NULL, "", 0);
  28407. ;
  28408. return 0;
  28409. }
  28410. _ACEOF
  28411. rm -f conftest.$ac_objext conftest$ac_exeext
  28412. if { (ac_try="$ac_link"
  28413. case "(($ac_try" in
  28414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28415. *) ac_try_echo=$ac_try;;
  28416. esac
  28417. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28418. $as_echo "$ac_try_echo") >&5
  28419. (eval "$ac_link") 2>conftest.er1
  28420. ac_status=$?
  28421. grep -v '^ *+' conftest.er1 >conftest.err
  28422. rm -f conftest.er1
  28423. cat conftest.err >&5
  28424. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28425. (exit $ac_status); } && {
  28426. test -z "$ac_c_werror_flag" ||
  28427. test ! -s conftest.err
  28428. } && test -s conftest$ac_exeext && {
  28429. test "$cross_compiling" = yes ||
  28430. $as_test_x conftest$ac_exeext
  28431. }; then
  28432. ac_cv_imap_tk2006="yes"
  28433. else
  28434. $as_echo "$as_me: failed program was:" >&5
  28435. sed 's/^/| /' conftest.$ac_ext >&5
  28436. ac_cv_imap_tk2006="no"
  28437. fi
  28438. rm -rf conftest.dSYM
  28439. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28440. conftest$ac_exeext conftest.$ac_ext
  28441. else #looking in imap directory didn't work, try c-client
  28442. imap_ldflags=""
  28443. imap_libs="-lc-client"
  28444. imap_include="-DUSE_SYSTEM_CCLIENT"
  28445. CPPFLAGS="${saved_cppflags}"
  28446. LIBS="${saved_libs}"
  28447. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  28448. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  28449. cat >conftest.$ac_ext <<_ACEOF
  28450. /* confdefs.h. */
  28451. _ACEOF
  28452. cat confdefs.h >>conftest.$ac_ext
  28453. cat >>conftest.$ac_ext <<_ACEOF
  28454. /* end confdefs.h. */
  28455. #include <stdio.h>
  28456. #include <c-client/c-client.h>
  28457. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28458. {
  28459. }
  28460. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28461. {
  28462. }
  28463. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28464. {
  28465. }
  28466. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28467. {
  28468. }
  28469. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28470. {
  28471. }
  28472. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28473. {
  28474. }
  28475. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28476. {
  28477. }
  28478. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28479. {
  28480. }
  28481. void mm_log (char *string,long errflg)
  28482. {
  28483. }
  28484. void mm_dlog (char *string)
  28485. {
  28486. }
  28487. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28488. {
  28489. }
  28490. void mm_critical (MAILSTREAM *stream)
  28491. {
  28492. }
  28493. void mm_nocritical (MAILSTREAM *stream)
  28494. {
  28495. }
  28496. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28497. {
  28498. }
  28499. void mm_fatal (char *string)
  28500. {
  28501. }
  28502. int
  28503. main ()
  28504. {
  28505. MAILSTREAM *foo = mail_open(NULL, "", 0);
  28506. ;
  28507. return 0;
  28508. }
  28509. _ACEOF
  28510. rm -f conftest.$ac_objext conftest$ac_exeext
  28511. if { (ac_try="$ac_link"
  28512. case "(($ac_try" in
  28513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28514. *) ac_try_echo=$ac_try;;
  28515. esac
  28516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28517. $as_echo "$ac_try_echo") >&5
  28518. (eval "$ac_link") 2>conftest.er1
  28519. ac_status=$?
  28520. grep -v '^ *+' conftest.er1 >conftest.err
  28521. rm -f conftest.er1
  28522. cat conftest.err >&5
  28523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28524. (exit $ac_status); } && {
  28525. test -z "$ac_c_werror_flag" ||
  28526. test ! -s conftest.err
  28527. } && test -s conftest$ac_exeext && {
  28528. test "$cross_compiling" = yes ||
  28529. $as_test_x conftest$ac_exeext
  28530. }; then
  28531. ac_cv_imap_tk="yes"
  28532. else
  28533. $as_echo "$as_me: failed program was:" >&5
  28534. sed 's/^/| /' conftest.$ac_ext >&5
  28535. ac_cv_imap_tk="no"
  28536. fi
  28537. rm -rf conftest.dSYM
  28538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28539. conftest$ac_exeext conftest.$ac_ext
  28540. if test "${ac_cv_imap_tk}" = "yes"; then
  28541. cat >conftest.$ac_ext <<_ACEOF
  28542. /* confdefs.h. */
  28543. _ACEOF
  28544. cat confdefs.h >>conftest.$ac_ext
  28545. cat >>conftest.$ac_ext <<_ACEOF
  28546. /* end confdefs.h. */
  28547. #include <stdio.h>
  28548. #include <c-client/c-client.h>
  28549. void mm_searched (MAILSTREAM *stream,unsigned long number)
  28550. {
  28551. }
  28552. void mm_exists (MAILSTREAM *stream,unsigned long number)
  28553. {
  28554. }
  28555. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  28556. {
  28557. }
  28558. void mm_flags (MAILSTREAM *stream,unsigned long number)
  28559. {
  28560. }
  28561. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  28562. {
  28563. }
  28564. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28565. {
  28566. }
  28567. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  28568. {
  28569. }
  28570. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  28571. {
  28572. }
  28573. void mm_log (char *string,long errflg)
  28574. {
  28575. }
  28576. void mm_dlog (char *string)
  28577. {
  28578. }
  28579. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  28580. {
  28581. }
  28582. void mm_critical (MAILSTREAM *stream)
  28583. {
  28584. }
  28585. void mm_nocritical (MAILSTREAM *stream)
  28586. {
  28587. }
  28588. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  28589. {
  28590. }
  28591. void mm_fatal (char *string)
  28592. {
  28593. }
  28594. int
  28595. main ()
  28596. {
  28597. long check = mail_expunge_full(NULL, "", 0);
  28598. ;
  28599. return 0;
  28600. }
  28601. _ACEOF
  28602. rm -f conftest.$ac_objext conftest$ac_exeext
  28603. if { (ac_try="$ac_link"
  28604. case "(($ac_try" in
  28605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28606. *) ac_try_echo=$ac_try;;
  28607. esac
  28608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28609. $as_echo "$ac_try_echo") >&5
  28610. (eval "$ac_link") 2>conftest.er1
  28611. ac_status=$?
  28612. grep -v '^ *+' conftest.er1 >conftest.err
  28613. rm -f conftest.er1
  28614. cat conftest.err >&5
  28615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28616. (exit $ac_status); } && {
  28617. test -z "$ac_c_werror_flag" ||
  28618. test ! -s conftest.err
  28619. } && test -s conftest$ac_exeext && {
  28620. test "$cross_compiling" = yes ||
  28621. $as_test_x conftest$ac_exeext
  28622. }; then
  28623. ac_cv_imap_tk2006="yes"
  28624. else
  28625. $as_echo "$as_me: failed program was:" >&5
  28626. sed 's/^/| /' conftest.$ac_ext >&5
  28627. ac_cv_imap_tk2006="no"
  28628. fi
  28629. rm -rf conftest.dSYM
  28630. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28631. conftest$ac_exeext conftest.$ac_ext
  28632. fi
  28633. fi
  28634. fi
  28635. if test "${ac_cv_imap_tk}" = "yes"; then
  28636. { $as_echo "$as_me:$LINENO: result: yes" >&5
  28637. $as_echo "yes" >&6; }
  28638. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  28639. IMAP_TK_INCLUDE="${imap_include}"
  28640. PBX_IMAP_TK=1
  28641. cat >>confdefs.h <<\_ACEOF
  28642. #define HAVE_IMAP_TK 1
  28643. _ACEOF
  28644. if test "${ac_cv_imap_tk2006}" = "yes"; then
  28645. cat >>confdefs.h <<\_ACEOF
  28646. #define HAVE_IMAP_TK2006 1
  28647. _ACEOF
  28648. fi
  28649. else
  28650. { $as_echo "$as_me:$LINENO: result: no" >&5
  28651. $as_echo "no" >&6; }
  28652. fi
  28653. CPPFLAGS="${saved_cppflags}"
  28654. LIBS="${saved_libs}"
  28655. fi
  28656. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  28657. pbxlibdir=""
  28658. # if --with-IODBC=DIR has been specified, use it.
  28659. if test "x${IODBC_DIR}" != "x"; then
  28660. if test -d ${IODBC_DIR}/lib; then
  28661. pbxlibdir="-L${IODBC_DIR}/lib"
  28662. else
  28663. pbxlibdir="-L${IODBC_DIR}"
  28664. fi
  28665. fi
  28666. pbxfuncname="SQLConnect"
  28667. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  28668. AST_IODBC_FOUND=yes
  28669. else
  28670. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28671. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  28672. as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
  28673. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liodbc" >&5
  28674. $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
  28675. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  28676. $as_echo_n "(cached) " >&6
  28677. else
  28678. ac_check_lib_save_LIBS=$LIBS
  28679. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  28680. cat >conftest.$ac_ext <<_ACEOF
  28681. /* confdefs.h. */
  28682. _ACEOF
  28683. cat confdefs.h >>conftest.$ac_ext
  28684. cat >>conftest.$ac_ext <<_ACEOF
  28685. /* end confdefs.h. */
  28686. /* Override any GCC internal prototype to avoid an error.
  28687. Use char because int might match the return type of a GCC
  28688. builtin and then its argument prototype would still apply. */
  28689. #ifdef __cplusplus
  28690. extern "C"
  28691. #endif
  28692. char ${pbxfuncname} ();
  28693. int
  28694. main ()
  28695. {
  28696. return ${pbxfuncname} ();
  28697. ;
  28698. return 0;
  28699. }
  28700. _ACEOF
  28701. rm -f conftest.$ac_objext conftest$ac_exeext
  28702. if { (ac_try="$ac_link"
  28703. case "(($ac_try" in
  28704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28705. *) ac_try_echo=$ac_try;;
  28706. esac
  28707. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28708. $as_echo "$ac_try_echo") >&5
  28709. (eval "$ac_link") 2>conftest.er1
  28710. ac_status=$?
  28711. grep -v '^ *+' conftest.er1 >conftest.err
  28712. rm -f conftest.er1
  28713. cat conftest.err >&5
  28714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28715. (exit $ac_status); } && {
  28716. test -z "$ac_c_werror_flag" ||
  28717. test ! -s conftest.err
  28718. } && test -s conftest$ac_exeext && {
  28719. test "$cross_compiling" = yes ||
  28720. $as_test_x conftest$ac_exeext
  28721. }; then
  28722. eval "$as_ac_Lib=yes"
  28723. else
  28724. $as_echo "$as_me: failed program was:" >&5
  28725. sed 's/^/| /' conftest.$ac_ext >&5
  28726. eval "$as_ac_Lib=no"
  28727. fi
  28728. rm -rf conftest.dSYM
  28729. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28730. conftest$ac_exeext conftest.$ac_ext
  28731. LIBS=$ac_check_lib_save_LIBS
  28732. fi
  28733. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  28734. $as_echo "$as_val"'`
  28735. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28736. $as_echo "$ac_res" >&6; }
  28737. as_val=`eval 'as_val=${'$as_ac_Lib'}
  28738. $as_echo "$as_val"'`
  28739. if test "x$as_val" = x""yes; then
  28740. AST_IODBC_FOUND=yes
  28741. else
  28742. AST_IODBC_FOUND=no
  28743. fi
  28744. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28745. fi
  28746. # now check for the header.
  28747. if test "${AST_IODBC_FOUND}" = "yes"; then
  28748. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  28749. # if --with-IODBC=DIR has been specified, use it.
  28750. if test "x${IODBC_DIR}" != "x"; then
  28751. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  28752. fi
  28753. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  28754. if test "xsql.h" = "x" ; then # no header, assume found
  28755. IODBC_HEADER_FOUND="1"
  28756. else # check for the header
  28757. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28758. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  28759. if test "${ac_cv_header_sql_h+set}" = set; then
  28760. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  28761. $as_echo_n "checking for sql.h... " >&6; }
  28762. if test "${ac_cv_header_sql_h+set}" = set; then
  28763. $as_echo_n "(cached) " >&6
  28764. fi
  28765. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  28766. $as_echo "$ac_cv_header_sql_h" >&6; }
  28767. else
  28768. # Is the header compilable?
  28769. { $as_echo "$as_me:$LINENO: checking sql.h usability" >&5
  28770. $as_echo_n "checking sql.h usability... " >&6; }
  28771. cat >conftest.$ac_ext <<_ACEOF
  28772. /* confdefs.h. */
  28773. _ACEOF
  28774. cat confdefs.h >>conftest.$ac_ext
  28775. cat >>conftest.$ac_ext <<_ACEOF
  28776. /* end confdefs.h. */
  28777. $ac_includes_default
  28778. #include <sql.h>
  28779. _ACEOF
  28780. rm -f conftest.$ac_objext
  28781. if { (ac_try="$ac_compile"
  28782. case "(($ac_try" in
  28783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28784. *) ac_try_echo=$ac_try;;
  28785. esac
  28786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28787. $as_echo "$ac_try_echo") >&5
  28788. (eval "$ac_compile") 2>conftest.er1
  28789. ac_status=$?
  28790. grep -v '^ *+' conftest.er1 >conftest.err
  28791. rm -f conftest.er1
  28792. cat conftest.err >&5
  28793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28794. (exit $ac_status); } && {
  28795. test -z "$ac_c_werror_flag" ||
  28796. test ! -s conftest.err
  28797. } && test -s conftest.$ac_objext; then
  28798. ac_header_compiler=yes
  28799. else
  28800. $as_echo "$as_me: failed program was:" >&5
  28801. sed 's/^/| /' conftest.$ac_ext >&5
  28802. ac_header_compiler=no
  28803. fi
  28804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28805. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28806. $as_echo "$ac_header_compiler" >&6; }
  28807. # Is the header present?
  28808. { $as_echo "$as_me:$LINENO: checking sql.h presence" >&5
  28809. $as_echo_n "checking sql.h presence... " >&6; }
  28810. cat >conftest.$ac_ext <<_ACEOF
  28811. /* confdefs.h. */
  28812. _ACEOF
  28813. cat confdefs.h >>conftest.$ac_ext
  28814. cat >>conftest.$ac_ext <<_ACEOF
  28815. /* end confdefs.h. */
  28816. #include <sql.h>
  28817. _ACEOF
  28818. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28819. case "(($ac_try" in
  28820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28821. *) ac_try_echo=$ac_try;;
  28822. esac
  28823. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28824. $as_echo "$ac_try_echo") >&5
  28825. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28826. ac_status=$?
  28827. grep -v '^ *+' conftest.er1 >conftest.err
  28828. rm -f conftest.er1
  28829. cat conftest.err >&5
  28830. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28831. (exit $ac_status); } >/dev/null && {
  28832. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28833. test ! -s conftest.err
  28834. }; then
  28835. ac_header_preproc=yes
  28836. else
  28837. $as_echo "$as_me: failed program was:" >&5
  28838. sed 's/^/| /' conftest.$ac_ext >&5
  28839. ac_header_preproc=no
  28840. fi
  28841. rm -f conftest.err conftest.$ac_ext
  28842. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28843. $as_echo "$ac_header_preproc" >&6; }
  28844. # So? What about this header?
  28845. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28846. yes:no: )
  28847. { $as_echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
  28848. $as_echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28849. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
  28850. $as_echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
  28851. ac_header_preproc=yes
  28852. ;;
  28853. no:yes:* )
  28854. { $as_echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
  28855. $as_echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
  28856. { $as_echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
  28857. $as_echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
  28858. { $as_echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
  28859. $as_echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
  28860. { $as_echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
  28861. $as_echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
  28862. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
  28863. $as_echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
  28864. { $as_echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
  28865. $as_echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
  28866. ( cat <<\_ASBOX
  28867. ## ------------------------------------------ ##
  28868. ## Report this to https://issues.asterisk.org ##
  28869. ## ------------------------------------------ ##
  28870. _ASBOX
  28871. ) | sed "s/^/$as_me: WARNING: /" >&2
  28872. ;;
  28873. esac
  28874. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  28875. $as_echo_n "checking for sql.h... " >&6; }
  28876. if test "${ac_cv_header_sql_h+set}" = set; then
  28877. $as_echo_n "(cached) " >&6
  28878. else
  28879. ac_cv_header_sql_h=$ac_header_preproc
  28880. fi
  28881. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  28882. $as_echo "$ac_cv_header_sql_h" >&6; }
  28883. fi
  28884. if test "x$ac_cv_header_sql_h" = x""yes; then
  28885. IODBC_HEADER_FOUND=1
  28886. else
  28887. IODBC_HEADER_FOUND=0
  28888. fi
  28889. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  28890. fi
  28891. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  28892. IODBC_LIB=""
  28893. IODBC_INCLUDE=""
  28894. else
  28895. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  28896. IODBC_LIB=""
  28897. fi
  28898. PBX_IODBC=1
  28899. cat >>confdefs.h <<_ACEOF
  28900. #define HAVE_IODBC 1
  28901. _ACEOF
  28902. fi
  28903. fi
  28904. fi
  28905. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  28906. pbxlibdir=""
  28907. # if --with-INOTIFY=DIR has been specified, use it.
  28908. if test "x${INOTIFY_DIR}" != "x"; then
  28909. if test -d ${INOTIFY_DIR}/lib; then
  28910. pbxlibdir="-L${INOTIFY_DIR}/lib"
  28911. else
  28912. pbxlibdir="-L${INOTIFY_DIR}"
  28913. fi
  28914. fi
  28915. pbxfuncname="inotify_init"
  28916. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  28917. AST_INOTIFY_FOUND=yes
  28918. else
  28919. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28920. CFLAGS="${CFLAGS} "
  28921. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  28922. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  28923. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  28924. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  28925. $as_echo_n "(cached) " >&6
  28926. else
  28927. ac_check_lib_save_LIBS=$LIBS
  28928. LIBS="-lc ${pbxlibdir} $LIBS"
  28929. cat >conftest.$ac_ext <<_ACEOF
  28930. /* confdefs.h. */
  28931. _ACEOF
  28932. cat confdefs.h >>conftest.$ac_ext
  28933. cat >>conftest.$ac_ext <<_ACEOF
  28934. /* end confdefs.h. */
  28935. /* Override any GCC internal prototype to avoid an error.
  28936. Use char because int might match the return type of a GCC
  28937. builtin and then its argument prototype would still apply. */
  28938. #ifdef __cplusplus
  28939. extern "C"
  28940. #endif
  28941. char ${pbxfuncname} ();
  28942. int
  28943. main ()
  28944. {
  28945. return ${pbxfuncname} ();
  28946. ;
  28947. return 0;
  28948. }
  28949. _ACEOF
  28950. rm -f conftest.$ac_objext conftest$ac_exeext
  28951. if { (ac_try="$ac_link"
  28952. case "(($ac_try" in
  28953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28954. *) ac_try_echo=$ac_try;;
  28955. esac
  28956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28957. $as_echo "$ac_try_echo") >&5
  28958. (eval "$ac_link") 2>conftest.er1
  28959. ac_status=$?
  28960. grep -v '^ *+' conftest.er1 >conftest.err
  28961. rm -f conftest.er1
  28962. cat conftest.err >&5
  28963. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28964. (exit $ac_status); } && {
  28965. test -z "$ac_c_werror_flag" ||
  28966. test ! -s conftest.err
  28967. } && test -s conftest$ac_exeext && {
  28968. test "$cross_compiling" = yes ||
  28969. $as_test_x conftest$ac_exeext
  28970. }; then
  28971. eval "$as_ac_Lib=yes"
  28972. else
  28973. $as_echo "$as_me: failed program was:" >&5
  28974. sed 's/^/| /' conftest.$ac_ext >&5
  28975. eval "$as_ac_Lib=no"
  28976. fi
  28977. rm -rf conftest.dSYM
  28978. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28979. conftest$ac_exeext conftest.$ac_ext
  28980. LIBS=$ac_check_lib_save_LIBS
  28981. fi
  28982. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  28983. $as_echo "$as_val"'`
  28984. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28985. $as_echo "$ac_res" >&6; }
  28986. as_val=`eval 'as_val=${'$as_ac_Lib'}
  28987. $as_echo "$as_val"'`
  28988. if test "x$as_val" = x""yes; then
  28989. AST_INOTIFY_FOUND=yes
  28990. else
  28991. AST_INOTIFY_FOUND=no
  28992. fi
  28993. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28994. fi
  28995. # now check for the header.
  28996. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  28997. INOTIFY_LIB="${pbxlibdir} -lc "
  28998. # if --with-INOTIFY=DIR has been specified, use it.
  28999. if test "x${INOTIFY_DIR}" != "x"; then
  29000. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  29001. fi
  29002. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  29003. if test "xsys/inotify.h" = "x" ; then # no header, assume found
  29004. INOTIFY_HEADER_FOUND="1"
  29005. else # check for the header
  29006. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29007. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  29008. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  29009. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  29010. $as_echo_n "checking for sys/inotify.h... " >&6; }
  29011. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  29012. $as_echo_n "(cached) " >&6
  29013. fi
  29014. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  29015. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  29016. else
  29017. # Is the header compilable?
  29018. { $as_echo "$as_me:$LINENO: checking sys/inotify.h usability" >&5
  29019. $as_echo_n "checking sys/inotify.h usability... " >&6; }
  29020. cat >conftest.$ac_ext <<_ACEOF
  29021. /* confdefs.h. */
  29022. _ACEOF
  29023. cat confdefs.h >>conftest.$ac_ext
  29024. cat >>conftest.$ac_ext <<_ACEOF
  29025. /* end confdefs.h. */
  29026. $ac_includes_default
  29027. #include <sys/inotify.h>
  29028. _ACEOF
  29029. rm -f conftest.$ac_objext
  29030. if { (ac_try="$ac_compile"
  29031. case "(($ac_try" in
  29032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29033. *) ac_try_echo=$ac_try;;
  29034. esac
  29035. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29036. $as_echo "$ac_try_echo") >&5
  29037. (eval "$ac_compile") 2>conftest.er1
  29038. ac_status=$?
  29039. grep -v '^ *+' conftest.er1 >conftest.err
  29040. rm -f conftest.er1
  29041. cat conftest.err >&5
  29042. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29043. (exit $ac_status); } && {
  29044. test -z "$ac_c_werror_flag" ||
  29045. test ! -s conftest.err
  29046. } && test -s conftest.$ac_objext; then
  29047. ac_header_compiler=yes
  29048. else
  29049. $as_echo "$as_me: failed program was:" >&5
  29050. sed 's/^/| /' conftest.$ac_ext >&5
  29051. ac_header_compiler=no
  29052. fi
  29053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29054. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29055. $as_echo "$ac_header_compiler" >&6; }
  29056. # Is the header present?
  29057. { $as_echo "$as_me:$LINENO: checking sys/inotify.h presence" >&5
  29058. $as_echo_n "checking sys/inotify.h presence... " >&6; }
  29059. cat >conftest.$ac_ext <<_ACEOF
  29060. /* confdefs.h. */
  29061. _ACEOF
  29062. cat confdefs.h >>conftest.$ac_ext
  29063. cat >>conftest.$ac_ext <<_ACEOF
  29064. /* end confdefs.h. */
  29065. #include <sys/inotify.h>
  29066. _ACEOF
  29067. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29068. case "(($ac_try" in
  29069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29070. *) ac_try_echo=$ac_try;;
  29071. esac
  29072. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29073. $as_echo "$ac_try_echo") >&5
  29074. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29075. ac_status=$?
  29076. grep -v '^ *+' conftest.er1 >conftest.err
  29077. rm -f conftest.er1
  29078. cat conftest.err >&5
  29079. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29080. (exit $ac_status); } >/dev/null && {
  29081. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29082. test ! -s conftest.err
  29083. }; then
  29084. ac_header_preproc=yes
  29085. else
  29086. $as_echo "$as_me: failed program was:" >&5
  29087. sed 's/^/| /' conftest.$ac_ext >&5
  29088. ac_header_preproc=no
  29089. fi
  29090. rm -f conftest.err conftest.$ac_ext
  29091. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29092. $as_echo "$ac_header_preproc" >&6; }
  29093. # So? What about this header?
  29094. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29095. yes:no: )
  29096. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29097. $as_echo "$as_me: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29098. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the compiler's result" >&5
  29099. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the compiler's result" >&2;}
  29100. ac_header_preproc=yes
  29101. ;;
  29102. no:yes:* )
  29103. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: present but cannot be compiled" >&5
  29104. $as_echo "$as_me: WARNING: sys/inotify.h: present but cannot be compiled" >&2;}
  29105. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&5
  29106. $as_echo "$as_me: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&2;}
  29107. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: see the Autoconf documentation" >&5
  29108. $as_echo "$as_me: WARNING: sys/inotify.h: see the Autoconf documentation" >&2;}
  29109. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&5
  29110. $as_echo "$as_me: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29111. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&5
  29112. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&2;}
  29113. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&5
  29114. $as_echo "$as_me: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&2;}
  29115. ( cat <<\_ASBOX
  29116. ## ------------------------------------------ ##
  29117. ## Report this to https://issues.asterisk.org ##
  29118. ## ------------------------------------------ ##
  29119. _ASBOX
  29120. ) | sed "s/^/$as_me: WARNING: /" >&2
  29121. ;;
  29122. esac
  29123. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  29124. $as_echo_n "checking for sys/inotify.h... " >&6; }
  29125. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  29126. $as_echo_n "(cached) " >&6
  29127. else
  29128. ac_cv_header_sys_inotify_h=$ac_header_preproc
  29129. fi
  29130. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  29131. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  29132. fi
  29133. if test "x$ac_cv_header_sys_inotify_h" = x""yes; then
  29134. INOTIFY_HEADER_FOUND=1
  29135. else
  29136. INOTIFY_HEADER_FOUND=0
  29137. fi
  29138. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29139. fi
  29140. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  29141. INOTIFY_LIB=""
  29142. INOTIFY_INCLUDE=""
  29143. else
  29144. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29145. INOTIFY_LIB=""
  29146. fi
  29147. PBX_INOTIFY=1
  29148. cat >>confdefs.h <<_ACEOF
  29149. #define HAVE_INOTIFY 1
  29150. _ACEOF
  29151. fi
  29152. fi
  29153. fi
  29154. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  29155. pbxlibdir=""
  29156. # if --with-JACK=DIR has been specified, use it.
  29157. if test "x${JACK_DIR}" != "x"; then
  29158. if test -d ${JACK_DIR}/lib; then
  29159. pbxlibdir="-L${JACK_DIR}/lib"
  29160. else
  29161. pbxlibdir="-L${JACK_DIR}"
  29162. fi
  29163. fi
  29164. pbxfuncname="jack_activate"
  29165. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  29166. AST_JACK_FOUND=yes
  29167. else
  29168. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29169. CFLAGS="${CFLAGS} "
  29170. as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
  29171. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
  29172. $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
  29173. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  29174. $as_echo_n "(cached) " >&6
  29175. else
  29176. ac_check_lib_save_LIBS=$LIBS
  29177. LIBS="-ljack ${pbxlibdir} $LIBS"
  29178. cat >conftest.$ac_ext <<_ACEOF
  29179. /* confdefs.h. */
  29180. _ACEOF
  29181. cat confdefs.h >>conftest.$ac_ext
  29182. cat >>conftest.$ac_ext <<_ACEOF
  29183. /* end confdefs.h. */
  29184. /* Override any GCC internal prototype to avoid an error.
  29185. Use char because int might match the return type of a GCC
  29186. builtin and then its argument prototype would still apply. */
  29187. #ifdef __cplusplus
  29188. extern "C"
  29189. #endif
  29190. char ${pbxfuncname} ();
  29191. int
  29192. main ()
  29193. {
  29194. return ${pbxfuncname} ();
  29195. ;
  29196. return 0;
  29197. }
  29198. _ACEOF
  29199. rm -f conftest.$ac_objext conftest$ac_exeext
  29200. if { (ac_try="$ac_link"
  29201. case "(($ac_try" in
  29202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29203. *) ac_try_echo=$ac_try;;
  29204. esac
  29205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29206. $as_echo "$ac_try_echo") >&5
  29207. (eval "$ac_link") 2>conftest.er1
  29208. ac_status=$?
  29209. grep -v '^ *+' conftest.er1 >conftest.err
  29210. rm -f conftest.er1
  29211. cat conftest.err >&5
  29212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29213. (exit $ac_status); } && {
  29214. test -z "$ac_c_werror_flag" ||
  29215. test ! -s conftest.err
  29216. } && test -s conftest$ac_exeext && {
  29217. test "$cross_compiling" = yes ||
  29218. $as_test_x conftest$ac_exeext
  29219. }; then
  29220. eval "$as_ac_Lib=yes"
  29221. else
  29222. $as_echo "$as_me: failed program was:" >&5
  29223. sed 's/^/| /' conftest.$ac_ext >&5
  29224. eval "$as_ac_Lib=no"
  29225. fi
  29226. rm -rf conftest.dSYM
  29227. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29228. conftest$ac_exeext conftest.$ac_ext
  29229. LIBS=$ac_check_lib_save_LIBS
  29230. fi
  29231. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  29232. $as_echo "$as_val"'`
  29233. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29234. $as_echo "$ac_res" >&6; }
  29235. as_val=`eval 'as_val=${'$as_ac_Lib'}
  29236. $as_echo "$as_val"'`
  29237. if test "x$as_val" = x""yes; then
  29238. AST_JACK_FOUND=yes
  29239. else
  29240. AST_JACK_FOUND=no
  29241. fi
  29242. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29243. fi
  29244. # now check for the header.
  29245. if test "${AST_JACK_FOUND}" = "yes"; then
  29246. JACK_LIB="${pbxlibdir} -ljack "
  29247. # if --with-JACK=DIR has been specified, use it.
  29248. if test "x${JACK_DIR}" != "x"; then
  29249. JACK_INCLUDE="-I${JACK_DIR}/include"
  29250. fi
  29251. JACK_INCLUDE="${JACK_INCLUDE} "
  29252. if test "xjack/jack.h" = "x" ; then # no header, assume found
  29253. JACK_HEADER_FOUND="1"
  29254. else # check for the header
  29255. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29256. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  29257. if test "${ac_cv_header_jack_jack_h+set}" = set; then
  29258. { $as_echo "$as_me:$LINENO: checking for jack/jack.h" >&5
  29259. $as_echo_n "checking for jack/jack.h... " >&6; }
  29260. if test "${ac_cv_header_jack_jack_h+set}" = set; then
  29261. $as_echo_n "(cached) " >&6
  29262. fi
  29263. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
  29264. $as_echo "$ac_cv_header_jack_jack_h" >&6; }
  29265. else
  29266. # Is the header compilable?
  29267. { $as_echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
  29268. $as_echo_n "checking jack/jack.h usability... " >&6; }
  29269. cat >conftest.$ac_ext <<_ACEOF
  29270. /* confdefs.h. */
  29271. _ACEOF
  29272. cat confdefs.h >>conftest.$ac_ext
  29273. cat >>conftest.$ac_ext <<_ACEOF
  29274. /* end confdefs.h. */
  29275. $ac_includes_default
  29276. #include <jack/jack.h>
  29277. _ACEOF
  29278. rm -f conftest.$ac_objext
  29279. if { (ac_try="$ac_compile"
  29280. case "(($ac_try" in
  29281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29282. *) ac_try_echo=$ac_try;;
  29283. esac
  29284. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29285. $as_echo "$ac_try_echo") >&5
  29286. (eval "$ac_compile") 2>conftest.er1
  29287. ac_status=$?
  29288. grep -v '^ *+' conftest.er1 >conftest.err
  29289. rm -f conftest.er1
  29290. cat conftest.err >&5
  29291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29292. (exit $ac_status); } && {
  29293. test -z "$ac_c_werror_flag" ||
  29294. test ! -s conftest.err
  29295. } && test -s conftest.$ac_objext; then
  29296. ac_header_compiler=yes
  29297. else
  29298. $as_echo "$as_me: failed program was:" >&5
  29299. sed 's/^/| /' conftest.$ac_ext >&5
  29300. ac_header_compiler=no
  29301. fi
  29302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29303. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29304. $as_echo "$ac_header_compiler" >&6; }
  29305. # Is the header present?
  29306. { $as_echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
  29307. $as_echo_n "checking jack/jack.h presence... " >&6; }
  29308. cat >conftest.$ac_ext <<_ACEOF
  29309. /* confdefs.h. */
  29310. _ACEOF
  29311. cat confdefs.h >>conftest.$ac_ext
  29312. cat >>conftest.$ac_ext <<_ACEOF
  29313. /* end confdefs.h. */
  29314. #include <jack/jack.h>
  29315. _ACEOF
  29316. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29317. case "(($ac_try" in
  29318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29319. *) ac_try_echo=$ac_try;;
  29320. esac
  29321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29322. $as_echo "$ac_try_echo") >&5
  29323. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29324. ac_status=$?
  29325. grep -v '^ *+' conftest.er1 >conftest.err
  29326. rm -f conftest.er1
  29327. cat conftest.err >&5
  29328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29329. (exit $ac_status); } >/dev/null && {
  29330. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29331. test ! -s conftest.err
  29332. }; then
  29333. ac_header_preproc=yes
  29334. else
  29335. $as_echo "$as_me: failed program was:" >&5
  29336. sed 's/^/| /' conftest.$ac_ext >&5
  29337. ac_header_preproc=no
  29338. fi
  29339. rm -f conftest.err conftest.$ac_ext
  29340. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29341. $as_echo "$ac_header_preproc" >&6; }
  29342. # So? What about this header?
  29343. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29344. yes:no: )
  29345. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29346. $as_echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29347. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
  29348. $as_echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
  29349. ac_header_preproc=yes
  29350. ;;
  29351. no:yes:* )
  29352. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
  29353. $as_echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
  29354. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
  29355. $as_echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
  29356. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
  29357. $as_echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
  29358. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
  29359. $as_echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29360. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
  29361. $as_echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
  29362. { $as_echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
  29363. $as_echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
  29364. ( cat <<\_ASBOX
  29365. ## ------------------------------------------ ##
  29366. ## Report this to https://issues.asterisk.org ##
  29367. ## ------------------------------------------ ##
  29368. _ASBOX
  29369. ) | sed "s/^/$as_me: WARNING: /" >&2
  29370. ;;
  29371. esac
  29372. { $as_echo "$as_me:$LINENO: checking for jack/jack.h" >&5
  29373. $as_echo_n "checking for jack/jack.h... " >&6; }
  29374. if test "${ac_cv_header_jack_jack_h+set}" = set; then
  29375. $as_echo_n "(cached) " >&6
  29376. else
  29377. ac_cv_header_jack_jack_h=$ac_header_preproc
  29378. fi
  29379. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
  29380. $as_echo "$ac_cv_header_jack_jack_h" >&6; }
  29381. fi
  29382. if test "x$ac_cv_header_jack_jack_h" = x""yes; then
  29383. JACK_HEADER_FOUND=1
  29384. else
  29385. JACK_HEADER_FOUND=0
  29386. fi
  29387. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29388. fi
  29389. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  29390. JACK_LIB=""
  29391. JACK_INCLUDE=""
  29392. else
  29393. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29394. JACK_LIB=""
  29395. fi
  29396. PBX_JACK=1
  29397. cat >>confdefs.h <<_ACEOF
  29398. #define HAVE_JACK 1
  29399. _ACEOF
  29400. fi
  29401. fi
  29402. fi
  29403. # BSD (and OS X) equivalent of inotify
  29404. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  29405. pbxlibdir=""
  29406. # if --with-KQUEUE=DIR has been specified, use it.
  29407. if test "x${KQUEUE_DIR}" != "x"; then
  29408. if test -d ${KQUEUE_DIR}/lib; then
  29409. pbxlibdir="-L${KQUEUE_DIR}/lib"
  29410. else
  29411. pbxlibdir="-L${KQUEUE_DIR}"
  29412. fi
  29413. fi
  29414. pbxfuncname="kqueue"
  29415. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  29416. AST_KQUEUE_FOUND=yes
  29417. else
  29418. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29419. CFLAGS="${CFLAGS} "
  29420. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  29421. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  29422. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  29423. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  29424. $as_echo_n "(cached) " >&6
  29425. else
  29426. ac_check_lib_save_LIBS=$LIBS
  29427. LIBS="-lc ${pbxlibdir} $LIBS"
  29428. cat >conftest.$ac_ext <<_ACEOF
  29429. /* confdefs.h. */
  29430. _ACEOF
  29431. cat confdefs.h >>conftest.$ac_ext
  29432. cat >>conftest.$ac_ext <<_ACEOF
  29433. /* end confdefs.h. */
  29434. /* Override any GCC internal prototype to avoid an error.
  29435. Use char because int might match the return type of a GCC
  29436. builtin and then its argument prototype would still apply. */
  29437. #ifdef __cplusplus
  29438. extern "C"
  29439. #endif
  29440. char ${pbxfuncname} ();
  29441. int
  29442. main ()
  29443. {
  29444. return ${pbxfuncname} ();
  29445. ;
  29446. return 0;
  29447. }
  29448. _ACEOF
  29449. rm -f conftest.$ac_objext conftest$ac_exeext
  29450. if { (ac_try="$ac_link"
  29451. case "(($ac_try" in
  29452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29453. *) ac_try_echo=$ac_try;;
  29454. esac
  29455. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29456. $as_echo "$ac_try_echo") >&5
  29457. (eval "$ac_link") 2>conftest.er1
  29458. ac_status=$?
  29459. grep -v '^ *+' conftest.er1 >conftest.err
  29460. rm -f conftest.er1
  29461. cat conftest.err >&5
  29462. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29463. (exit $ac_status); } && {
  29464. test -z "$ac_c_werror_flag" ||
  29465. test ! -s conftest.err
  29466. } && test -s conftest$ac_exeext && {
  29467. test "$cross_compiling" = yes ||
  29468. $as_test_x conftest$ac_exeext
  29469. }; then
  29470. eval "$as_ac_Lib=yes"
  29471. else
  29472. $as_echo "$as_me: failed program was:" >&5
  29473. sed 's/^/| /' conftest.$ac_ext >&5
  29474. eval "$as_ac_Lib=no"
  29475. fi
  29476. rm -rf conftest.dSYM
  29477. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29478. conftest$ac_exeext conftest.$ac_ext
  29479. LIBS=$ac_check_lib_save_LIBS
  29480. fi
  29481. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  29482. $as_echo "$as_val"'`
  29483. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29484. $as_echo "$ac_res" >&6; }
  29485. as_val=`eval 'as_val=${'$as_ac_Lib'}
  29486. $as_echo "$as_val"'`
  29487. if test "x$as_val" = x""yes; then
  29488. AST_KQUEUE_FOUND=yes
  29489. else
  29490. AST_KQUEUE_FOUND=no
  29491. fi
  29492. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29493. fi
  29494. # now check for the header.
  29495. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  29496. KQUEUE_LIB="${pbxlibdir} -lc "
  29497. # if --with-KQUEUE=DIR has been specified, use it.
  29498. if test "x${KQUEUE_DIR}" != "x"; then
  29499. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  29500. fi
  29501. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  29502. if test "xsys/event.h" = "x" ; then # no header, assume found
  29503. KQUEUE_HEADER_FOUND="1"
  29504. else # check for the header
  29505. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29506. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  29507. if test "${ac_cv_header_sys_event_h+set}" = set; then
  29508. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  29509. $as_echo_n "checking for sys/event.h... " >&6; }
  29510. if test "${ac_cv_header_sys_event_h+set}" = set; then
  29511. $as_echo_n "(cached) " >&6
  29512. fi
  29513. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  29514. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  29515. else
  29516. # Is the header compilable?
  29517. { $as_echo "$as_me:$LINENO: checking sys/event.h usability" >&5
  29518. $as_echo_n "checking sys/event.h usability... " >&6; }
  29519. cat >conftest.$ac_ext <<_ACEOF
  29520. /* confdefs.h. */
  29521. _ACEOF
  29522. cat confdefs.h >>conftest.$ac_ext
  29523. cat >>conftest.$ac_ext <<_ACEOF
  29524. /* end confdefs.h. */
  29525. $ac_includes_default
  29526. #include <sys/event.h>
  29527. _ACEOF
  29528. rm -f conftest.$ac_objext
  29529. if { (ac_try="$ac_compile"
  29530. case "(($ac_try" in
  29531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29532. *) ac_try_echo=$ac_try;;
  29533. esac
  29534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29535. $as_echo "$ac_try_echo") >&5
  29536. (eval "$ac_compile") 2>conftest.er1
  29537. ac_status=$?
  29538. grep -v '^ *+' conftest.er1 >conftest.err
  29539. rm -f conftest.er1
  29540. cat conftest.err >&5
  29541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29542. (exit $ac_status); } && {
  29543. test -z "$ac_c_werror_flag" ||
  29544. test ! -s conftest.err
  29545. } && test -s conftest.$ac_objext; then
  29546. ac_header_compiler=yes
  29547. else
  29548. $as_echo "$as_me: failed program was:" >&5
  29549. sed 's/^/| /' conftest.$ac_ext >&5
  29550. ac_header_compiler=no
  29551. fi
  29552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29553. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29554. $as_echo "$ac_header_compiler" >&6; }
  29555. # Is the header present?
  29556. { $as_echo "$as_me:$LINENO: checking sys/event.h presence" >&5
  29557. $as_echo_n "checking sys/event.h presence... " >&6; }
  29558. cat >conftest.$ac_ext <<_ACEOF
  29559. /* confdefs.h. */
  29560. _ACEOF
  29561. cat confdefs.h >>conftest.$ac_ext
  29562. cat >>conftest.$ac_ext <<_ACEOF
  29563. /* end confdefs.h. */
  29564. #include <sys/event.h>
  29565. _ACEOF
  29566. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29567. case "(($ac_try" in
  29568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29569. *) ac_try_echo=$ac_try;;
  29570. esac
  29571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29572. $as_echo "$ac_try_echo") >&5
  29573. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29574. ac_status=$?
  29575. grep -v '^ *+' conftest.er1 >conftest.err
  29576. rm -f conftest.er1
  29577. cat conftest.err >&5
  29578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29579. (exit $ac_status); } >/dev/null && {
  29580. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29581. test ! -s conftest.err
  29582. }; then
  29583. ac_header_preproc=yes
  29584. else
  29585. $as_echo "$as_me: failed program was:" >&5
  29586. sed 's/^/| /' conftest.$ac_ext >&5
  29587. ac_header_preproc=no
  29588. fi
  29589. rm -f conftest.err conftest.$ac_ext
  29590. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29591. $as_echo "$ac_header_preproc" >&6; }
  29592. # So? What about this header?
  29593. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29594. yes:no: )
  29595. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29596. $as_echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29597. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5
  29598. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;}
  29599. ac_header_preproc=yes
  29600. ;;
  29601. no:yes:* )
  29602. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5
  29603. $as_echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;}
  29604. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: check for missing prerequisite headers?" >&5
  29605. $as_echo "$as_me: WARNING: sys/event.h: check for missing prerequisite headers?" >&2;}
  29606. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5
  29607. $as_echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;}
  29608. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&5
  29609. $as_echo "$as_me: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29610. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5
  29611. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;}
  29612. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5
  29613. $as_echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;}
  29614. ( cat <<\_ASBOX
  29615. ## ------------------------------------------ ##
  29616. ## Report this to https://issues.asterisk.org ##
  29617. ## ------------------------------------------ ##
  29618. _ASBOX
  29619. ) | sed "s/^/$as_me: WARNING: /" >&2
  29620. ;;
  29621. esac
  29622. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  29623. $as_echo_n "checking for sys/event.h... " >&6; }
  29624. if test "${ac_cv_header_sys_event_h+set}" = set; then
  29625. $as_echo_n "(cached) " >&6
  29626. else
  29627. ac_cv_header_sys_event_h=$ac_header_preproc
  29628. fi
  29629. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  29630. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  29631. fi
  29632. if test "x$ac_cv_header_sys_event_h" = x""yes; then
  29633. KQUEUE_HEADER_FOUND=1
  29634. else
  29635. KQUEUE_HEADER_FOUND=0
  29636. fi
  29637. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29638. fi
  29639. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  29640. KQUEUE_LIB=""
  29641. KQUEUE_INCLUDE=""
  29642. else
  29643. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29644. KQUEUE_LIB=""
  29645. fi
  29646. PBX_KQUEUE=1
  29647. cat >>confdefs.h <<_ACEOF
  29648. #define HAVE_KQUEUE 1
  29649. _ACEOF
  29650. fi
  29651. fi
  29652. fi
  29653. # 64-bit version of kevent (from kqueue) on OS X
  29654. for ac_func in kevent64
  29655. do
  29656. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  29657. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  29658. $as_echo_n "checking for $ac_func... " >&6; }
  29659. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  29660. $as_echo_n "(cached) " >&6
  29661. else
  29662. cat >conftest.$ac_ext <<_ACEOF
  29663. /* confdefs.h. */
  29664. _ACEOF
  29665. cat confdefs.h >>conftest.$ac_ext
  29666. cat >>conftest.$ac_ext <<_ACEOF
  29667. /* end confdefs.h. */
  29668. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  29669. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29670. #define $ac_func innocuous_$ac_func
  29671. /* System header to define __stub macros and hopefully few prototypes,
  29672. which can conflict with char $ac_func (); below.
  29673. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29674. <limits.h> exists even on freestanding compilers. */
  29675. #ifdef __STDC__
  29676. # include <limits.h>
  29677. #else
  29678. # include <assert.h>
  29679. #endif
  29680. #undef $ac_func
  29681. /* Override any GCC internal prototype to avoid an error.
  29682. Use char because int might match the return type of a GCC
  29683. builtin and then its argument prototype would still apply. */
  29684. #ifdef __cplusplus
  29685. extern "C"
  29686. #endif
  29687. char $ac_func ();
  29688. /* The GNU C library defines this for functions which it implements
  29689. to always fail with ENOSYS. Some functions are actually named
  29690. something starting with __ and the normal name is an alias. */
  29691. #if defined __stub_$ac_func || defined __stub___$ac_func
  29692. choke me
  29693. #endif
  29694. int
  29695. main ()
  29696. {
  29697. return $ac_func ();
  29698. ;
  29699. return 0;
  29700. }
  29701. _ACEOF
  29702. rm -f conftest.$ac_objext conftest$ac_exeext
  29703. if { (ac_try="$ac_link"
  29704. case "(($ac_try" in
  29705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29706. *) ac_try_echo=$ac_try;;
  29707. esac
  29708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29709. $as_echo "$ac_try_echo") >&5
  29710. (eval "$ac_link") 2>conftest.er1
  29711. ac_status=$?
  29712. grep -v '^ *+' conftest.er1 >conftest.err
  29713. rm -f conftest.er1
  29714. cat conftest.err >&5
  29715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29716. (exit $ac_status); } && {
  29717. test -z "$ac_c_werror_flag" ||
  29718. test ! -s conftest.err
  29719. } && test -s conftest$ac_exeext && {
  29720. test "$cross_compiling" = yes ||
  29721. $as_test_x conftest$ac_exeext
  29722. }; then
  29723. eval "$as_ac_var=yes"
  29724. else
  29725. $as_echo "$as_me: failed program was:" >&5
  29726. sed 's/^/| /' conftest.$ac_ext >&5
  29727. eval "$as_ac_var=no"
  29728. fi
  29729. rm -rf conftest.dSYM
  29730. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29731. conftest$ac_exeext conftest.$ac_ext
  29732. fi
  29733. ac_res=`eval 'as_val=${'$as_ac_var'}
  29734. $as_echo "$as_val"'`
  29735. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29736. $as_echo "$ac_res" >&6; }
  29737. as_val=`eval 'as_val=${'$as_ac_var'}
  29738. $as_echo "$as_val"'`
  29739. if test "x$as_val" = x""yes; then
  29740. cat >>confdefs.h <<_ACEOF
  29741. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  29742. _ACEOF
  29743. fi
  29744. done
  29745. # Needed by unixodbc
  29746. if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
  29747. pbxlibdir=""
  29748. # if --with-LTDL=DIR has been specified, use it.
  29749. if test "x${LTDL_DIR}" != "x"; then
  29750. if test -d ${LTDL_DIR}/lib; then
  29751. pbxlibdir="-L${LTDL_DIR}/lib"
  29752. else
  29753. pbxlibdir="-L${LTDL_DIR}"
  29754. fi
  29755. fi
  29756. pbxfuncname="lt_dlinit"
  29757. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  29758. AST_LTDL_FOUND=yes
  29759. else
  29760. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29761. CFLAGS="${CFLAGS} "
  29762. as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
  29763. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
  29764. $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
  29765. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  29766. $as_echo_n "(cached) " >&6
  29767. else
  29768. ac_check_lib_save_LIBS=$LIBS
  29769. LIBS="-lltdl ${pbxlibdir} $LIBS"
  29770. cat >conftest.$ac_ext <<_ACEOF
  29771. /* confdefs.h. */
  29772. _ACEOF
  29773. cat confdefs.h >>conftest.$ac_ext
  29774. cat >>conftest.$ac_ext <<_ACEOF
  29775. /* end confdefs.h. */
  29776. /* Override any GCC internal prototype to avoid an error.
  29777. Use char because int might match the return type of a GCC
  29778. builtin and then its argument prototype would still apply. */
  29779. #ifdef __cplusplus
  29780. extern "C"
  29781. #endif
  29782. char ${pbxfuncname} ();
  29783. int
  29784. main ()
  29785. {
  29786. return ${pbxfuncname} ();
  29787. ;
  29788. return 0;
  29789. }
  29790. _ACEOF
  29791. rm -f conftest.$ac_objext conftest$ac_exeext
  29792. if { (ac_try="$ac_link"
  29793. case "(($ac_try" in
  29794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29795. *) ac_try_echo=$ac_try;;
  29796. esac
  29797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29798. $as_echo "$ac_try_echo") >&5
  29799. (eval "$ac_link") 2>conftest.er1
  29800. ac_status=$?
  29801. grep -v '^ *+' conftest.er1 >conftest.err
  29802. rm -f conftest.er1
  29803. cat conftest.err >&5
  29804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29805. (exit $ac_status); } && {
  29806. test -z "$ac_c_werror_flag" ||
  29807. test ! -s conftest.err
  29808. } && test -s conftest$ac_exeext && {
  29809. test "$cross_compiling" = yes ||
  29810. $as_test_x conftest$ac_exeext
  29811. }; then
  29812. eval "$as_ac_Lib=yes"
  29813. else
  29814. $as_echo "$as_me: failed program was:" >&5
  29815. sed 's/^/| /' conftest.$ac_ext >&5
  29816. eval "$as_ac_Lib=no"
  29817. fi
  29818. rm -rf conftest.dSYM
  29819. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29820. conftest$ac_exeext conftest.$ac_ext
  29821. LIBS=$ac_check_lib_save_LIBS
  29822. fi
  29823. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  29824. $as_echo "$as_val"'`
  29825. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  29826. $as_echo "$ac_res" >&6; }
  29827. as_val=`eval 'as_val=${'$as_ac_Lib'}
  29828. $as_echo "$as_val"'`
  29829. if test "x$as_val" = x""yes; then
  29830. AST_LTDL_FOUND=yes
  29831. else
  29832. AST_LTDL_FOUND=no
  29833. fi
  29834. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29835. fi
  29836. # now check for the header.
  29837. if test "${AST_LTDL_FOUND}" = "yes"; then
  29838. LTDL_LIB="${pbxlibdir} -lltdl "
  29839. # if --with-LTDL=DIR has been specified, use it.
  29840. if test "x${LTDL_DIR}" != "x"; then
  29841. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  29842. fi
  29843. LTDL_INCLUDE="${LTDL_INCLUDE} "
  29844. if test "xltdl.h" = "x" ; then # no header, assume found
  29845. LTDL_HEADER_FOUND="1"
  29846. else # check for the header
  29847. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29848. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  29849. if test "${ac_cv_header_ltdl_h+set}" = set; then
  29850. { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  29851. $as_echo_n "checking for ltdl.h... " >&6; }
  29852. if test "${ac_cv_header_ltdl_h+set}" = set; then
  29853. $as_echo_n "(cached) " >&6
  29854. fi
  29855. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  29856. $as_echo "$ac_cv_header_ltdl_h" >&6; }
  29857. else
  29858. # Is the header compilable?
  29859. { $as_echo "$as_me:$LINENO: checking ltdl.h usability" >&5
  29860. $as_echo_n "checking ltdl.h usability... " >&6; }
  29861. cat >conftest.$ac_ext <<_ACEOF
  29862. /* confdefs.h. */
  29863. _ACEOF
  29864. cat confdefs.h >>conftest.$ac_ext
  29865. cat >>conftest.$ac_ext <<_ACEOF
  29866. /* end confdefs.h. */
  29867. $ac_includes_default
  29868. #include <ltdl.h>
  29869. _ACEOF
  29870. rm -f conftest.$ac_objext
  29871. if { (ac_try="$ac_compile"
  29872. case "(($ac_try" in
  29873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29874. *) ac_try_echo=$ac_try;;
  29875. esac
  29876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29877. $as_echo "$ac_try_echo") >&5
  29878. (eval "$ac_compile") 2>conftest.er1
  29879. ac_status=$?
  29880. grep -v '^ *+' conftest.er1 >conftest.err
  29881. rm -f conftest.er1
  29882. cat conftest.err >&5
  29883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29884. (exit $ac_status); } && {
  29885. test -z "$ac_c_werror_flag" ||
  29886. test ! -s conftest.err
  29887. } && test -s conftest.$ac_objext; then
  29888. ac_header_compiler=yes
  29889. else
  29890. $as_echo "$as_me: failed program was:" >&5
  29891. sed 's/^/| /' conftest.$ac_ext >&5
  29892. ac_header_compiler=no
  29893. fi
  29894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29895. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29896. $as_echo "$ac_header_compiler" >&6; }
  29897. # Is the header present?
  29898. { $as_echo "$as_me:$LINENO: checking ltdl.h presence" >&5
  29899. $as_echo_n "checking ltdl.h presence... " >&6; }
  29900. cat >conftest.$ac_ext <<_ACEOF
  29901. /* confdefs.h. */
  29902. _ACEOF
  29903. cat confdefs.h >>conftest.$ac_ext
  29904. cat >>conftest.$ac_ext <<_ACEOF
  29905. /* end confdefs.h. */
  29906. #include <ltdl.h>
  29907. _ACEOF
  29908. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29909. case "(($ac_try" in
  29910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29911. *) ac_try_echo=$ac_try;;
  29912. esac
  29913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  29914. $as_echo "$ac_try_echo") >&5
  29915. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29916. ac_status=$?
  29917. grep -v '^ *+' conftest.er1 >conftest.err
  29918. rm -f conftest.er1
  29919. cat conftest.err >&5
  29920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29921. (exit $ac_status); } >/dev/null && {
  29922. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29923. test ! -s conftest.err
  29924. }; then
  29925. ac_header_preproc=yes
  29926. else
  29927. $as_echo "$as_me: failed program was:" >&5
  29928. sed 's/^/| /' conftest.$ac_ext >&5
  29929. ac_header_preproc=no
  29930. fi
  29931. rm -f conftest.err conftest.$ac_ext
  29932. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29933. $as_echo "$ac_header_preproc" >&6; }
  29934. # So? What about this header?
  29935. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29936. yes:no: )
  29937. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  29938. $as_echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29939. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
  29940. $as_echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
  29941. ac_header_preproc=yes
  29942. ;;
  29943. no:yes:* )
  29944. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
  29945. $as_echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
  29946. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
  29947. $as_echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
  29948. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
  29949. $as_echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
  29950. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
  29951. $as_echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  29952. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
  29953. $as_echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
  29954. { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
  29955. $as_echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
  29956. ( cat <<\_ASBOX
  29957. ## ------------------------------------------ ##
  29958. ## Report this to https://issues.asterisk.org ##
  29959. ## ------------------------------------------ ##
  29960. _ASBOX
  29961. ) | sed "s/^/$as_me: WARNING: /" >&2
  29962. ;;
  29963. esac
  29964. { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
  29965. $as_echo_n "checking for ltdl.h... " >&6; }
  29966. if test "${ac_cv_header_ltdl_h+set}" = set; then
  29967. $as_echo_n "(cached) " >&6
  29968. else
  29969. ac_cv_header_ltdl_h=$ac_header_preproc
  29970. fi
  29971. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
  29972. $as_echo "$ac_cv_header_ltdl_h" >&6; }
  29973. fi
  29974. if test "x$ac_cv_header_ltdl_h" = x""yes; then
  29975. LTDL_HEADER_FOUND=1
  29976. else
  29977. LTDL_HEADER_FOUND=0
  29978. fi
  29979. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29980. fi
  29981. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  29982. LTDL_LIB=""
  29983. LTDL_INCLUDE=""
  29984. else
  29985. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  29986. LTDL_LIB=""
  29987. fi
  29988. PBX_LTDL=1
  29989. cat >>confdefs.h <<_ACEOF
  29990. #define HAVE_LTDL 1
  29991. _ACEOF
  29992. fi
  29993. fi
  29994. fi
  29995. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  29996. pbxlibdir=""
  29997. # if --with-LDAP=DIR has been specified, use it.
  29998. if test "x${LDAP_DIR}" != "x"; then
  29999. if test -d ${LDAP_DIR}/lib; then
  30000. pbxlibdir="-L${LDAP_DIR}/lib"
  30001. else
  30002. pbxlibdir="-L${LDAP_DIR}"
  30003. fi
  30004. fi
  30005. pbxfuncname="ldap_initialize"
  30006. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  30007. AST_LDAP_FOUND=yes
  30008. else
  30009. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30010. CFLAGS="${CFLAGS} "
  30011. as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
  30012. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
  30013. $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
  30014. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  30015. $as_echo_n "(cached) " >&6
  30016. else
  30017. ac_check_lib_save_LIBS=$LIBS
  30018. LIBS="-lldap ${pbxlibdir} $LIBS"
  30019. cat >conftest.$ac_ext <<_ACEOF
  30020. /* confdefs.h. */
  30021. _ACEOF
  30022. cat confdefs.h >>conftest.$ac_ext
  30023. cat >>conftest.$ac_ext <<_ACEOF
  30024. /* end confdefs.h. */
  30025. /* Override any GCC internal prototype to avoid an error.
  30026. Use char because int might match the return type of a GCC
  30027. builtin and then its argument prototype would still apply. */
  30028. #ifdef __cplusplus
  30029. extern "C"
  30030. #endif
  30031. char ${pbxfuncname} ();
  30032. int
  30033. main ()
  30034. {
  30035. return ${pbxfuncname} ();
  30036. ;
  30037. return 0;
  30038. }
  30039. _ACEOF
  30040. rm -f conftest.$ac_objext conftest$ac_exeext
  30041. if { (ac_try="$ac_link"
  30042. case "(($ac_try" in
  30043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30044. *) ac_try_echo=$ac_try;;
  30045. esac
  30046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30047. $as_echo "$ac_try_echo") >&5
  30048. (eval "$ac_link") 2>conftest.er1
  30049. ac_status=$?
  30050. grep -v '^ *+' conftest.er1 >conftest.err
  30051. rm -f conftest.er1
  30052. cat conftest.err >&5
  30053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30054. (exit $ac_status); } && {
  30055. test -z "$ac_c_werror_flag" ||
  30056. test ! -s conftest.err
  30057. } && test -s conftest$ac_exeext && {
  30058. test "$cross_compiling" = yes ||
  30059. $as_test_x conftest$ac_exeext
  30060. }; then
  30061. eval "$as_ac_Lib=yes"
  30062. else
  30063. $as_echo "$as_me: failed program was:" >&5
  30064. sed 's/^/| /' conftest.$ac_ext >&5
  30065. eval "$as_ac_Lib=no"
  30066. fi
  30067. rm -rf conftest.dSYM
  30068. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30069. conftest$ac_exeext conftest.$ac_ext
  30070. LIBS=$ac_check_lib_save_LIBS
  30071. fi
  30072. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  30073. $as_echo "$as_val"'`
  30074. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30075. $as_echo "$ac_res" >&6; }
  30076. as_val=`eval 'as_val=${'$as_ac_Lib'}
  30077. $as_echo "$as_val"'`
  30078. if test "x$as_val" = x""yes; then
  30079. AST_LDAP_FOUND=yes
  30080. else
  30081. AST_LDAP_FOUND=no
  30082. fi
  30083. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30084. fi
  30085. # now check for the header.
  30086. if test "${AST_LDAP_FOUND}" = "yes"; then
  30087. LDAP_LIB="${pbxlibdir} -lldap "
  30088. # if --with-LDAP=DIR has been specified, use it.
  30089. if test "x${LDAP_DIR}" != "x"; then
  30090. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  30091. fi
  30092. LDAP_INCLUDE="${LDAP_INCLUDE} "
  30093. if test "xldap.h" = "x" ; then # no header, assume found
  30094. LDAP_HEADER_FOUND="1"
  30095. else # check for the header
  30096. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30097. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  30098. if test "${ac_cv_header_ldap_h+set}" = set; then
  30099. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  30100. $as_echo_n "checking for ldap.h... " >&6; }
  30101. if test "${ac_cv_header_ldap_h+set}" = set; then
  30102. $as_echo_n "(cached) " >&6
  30103. fi
  30104. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  30105. $as_echo "$ac_cv_header_ldap_h" >&6; }
  30106. else
  30107. # Is the header compilable?
  30108. { $as_echo "$as_me:$LINENO: checking ldap.h usability" >&5
  30109. $as_echo_n "checking ldap.h usability... " >&6; }
  30110. cat >conftest.$ac_ext <<_ACEOF
  30111. /* confdefs.h. */
  30112. _ACEOF
  30113. cat confdefs.h >>conftest.$ac_ext
  30114. cat >>conftest.$ac_ext <<_ACEOF
  30115. /* end confdefs.h. */
  30116. $ac_includes_default
  30117. #include <ldap.h>
  30118. _ACEOF
  30119. rm -f conftest.$ac_objext
  30120. if { (ac_try="$ac_compile"
  30121. case "(($ac_try" in
  30122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30123. *) ac_try_echo=$ac_try;;
  30124. esac
  30125. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30126. $as_echo "$ac_try_echo") >&5
  30127. (eval "$ac_compile") 2>conftest.er1
  30128. ac_status=$?
  30129. grep -v '^ *+' conftest.er1 >conftest.err
  30130. rm -f conftest.er1
  30131. cat conftest.err >&5
  30132. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30133. (exit $ac_status); } && {
  30134. test -z "$ac_c_werror_flag" ||
  30135. test ! -s conftest.err
  30136. } && test -s conftest.$ac_objext; then
  30137. ac_header_compiler=yes
  30138. else
  30139. $as_echo "$as_me: failed program was:" >&5
  30140. sed 's/^/| /' conftest.$ac_ext >&5
  30141. ac_header_compiler=no
  30142. fi
  30143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30144. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30145. $as_echo "$ac_header_compiler" >&6; }
  30146. # Is the header present?
  30147. { $as_echo "$as_me:$LINENO: checking ldap.h presence" >&5
  30148. $as_echo_n "checking ldap.h presence... " >&6; }
  30149. cat >conftest.$ac_ext <<_ACEOF
  30150. /* confdefs.h. */
  30151. _ACEOF
  30152. cat confdefs.h >>conftest.$ac_ext
  30153. cat >>conftest.$ac_ext <<_ACEOF
  30154. /* end confdefs.h. */
  30155. #include <ldap.h>
  30156. _ACEOF
  30157. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30158. case "(($ac_try" in
  30159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30160. *) ac_try_echo=$ac_try;;
  30161. esac
  30162. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30163. $as_echo "$ac_try_echo") >&5
  30164. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30165. ac_status=$?
  30166. grep -v '^ *+' conftest.er1 >conftest.err
  30167. rm -f conftest.er1
  30168. cat conftest.err >&5
  30169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30170. (exit $ac_status); } >/dev/null && {
  30171. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30172. test ! -s conftest.err
  30173. }; then
  30174. ac_header_preproc=yes
  30175. else
  30176. $as_echo "$as_me: failed program was:" >&5
  30177. sed 's/^/| /' conftest.$ac_ext >&5
  30178. ac_header_preproc=no
  30179. fi
  30180. rm -f conftest.err conftest.$ac_ext
  30181. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30182. $as_echo "$ac_header_preproc" >&6; }
  30183. # So? What about this header?
  30184. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30185. yes:no: )
  30186. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30187. $as_echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30188. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
  30189. $as_echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
  30190. ac_header_preproc=yes
  30191. ;;
  30192. no:yes:* )
  30193. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
  30194. $as_echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
  30195. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
  30196. $as_echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
  30197. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
  30198. $as_echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
  30199. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
  30200. $as_echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30201. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
  30202. $as_echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
  30203. { $as_echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
  30204. $as_echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
  30205. ( cat <<\_ASBOX
  30206. ## ------------------------------------------ ##
  30207. ## Report this to https://issues.asterisk.org ##
  30208. ## ------------------------------------------ ##
  30209. _ASBOX
  30210. ) | sed "s/^/$as_me: WARNING: /" >&2
  30211. ;;
  30212. esac
  30213. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  30214. $as_echo_n "checking for ldap.h... " >&6; }
  30215. if test "${ac_cv_header_ldap_h+set}" = set; then
  30216. $as_echo_n "(cached) " >&6
  30217. else
  30218. ac_cv_header_ldap_h=$ac_header_preproc
  30219. fi
  30220. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  30221. $as_echo "$ac_cv_header_ldap_h" >&6; }
  30222. fi
  30223. if test "x$ac_cv_header_ldap_h" = x""yes; then
  30224. LDAP_HEADER_FOUND=1
  30225. else
  30226. LDAP_HEADER_FOUND=0
  30227. fi
  30228. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30229. fi
  30230. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  30231. LDAP_LIB=""
  30232. LDAP_INCLUDE=""
  30233. else
  30234. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  30235. LDAP_LIB=""
  30236. fi
  30237. PBX_LDAP=1
  30238. cat >>confdefs.h <<_ACEOF
  30239. #define HAVE_LDAP 1
  30240. _ACEOF
  30241. fi
  30242. fi
  30243. fi
  30244. if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
  30245. pbxlibdir=""
  30246. # if --with-MISDN=DIR has been specified, use it.
  30247. if test "x${MISDN_DIR}" != "x"; then
  30248. if test -d ${MISDN_DIR}/lib; then
  30249. pbxlibdir="-L${MISDN_DIR}/lib"
  30250. else
  30251. pbxlibdir="-L${MISDN_DIR}"
  30252. fi
  30253. fi
  30254. pbxfuncname="mISDN_open"
  30255. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  30256. AST_MISDN_FOUND=yes
  30257. else
  30258. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30259. CFLAGS="${CFLAGS} "
  30260. as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
  30261. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
  30262. $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
  30263. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  30264. $as_echo_n "(cached) " >&6
  30265. else
  30266. ac_check_lib_save_LIBS=$LIBS
  30267. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  30268. cat >conftest.$ac_ext <<_ACEOF
  30269. /* confdefs.h. */
  30270. _ACEOF
  30271. cat confdefs.h >>conftest.$ac_ext
  30272. cat >>conftest.$ac_ext <<_ACEOF
  30273. /* end confdefs.h. */
  30274. /* Override any GCC internal prototype to avoid an error.
  30275. Use char because int might match the return type of a GCC
  30276. builtin and then its argument prototype would still apply. */
  30277. #ifdef __cplusplus
  30278. extern "C"
  30279. #endif
  30280. char ${pbxfuncname} ();
  30281. int
  30282. main ()
  30283. {
  30284. return ${pbxfuncname} ();
  30285. ;
  30286. return 0;
  30287. }
  30288. _ACEOF
  30289. rm -f conftest.$ac_objext conftest$ac_exeext
  30290. if { (ac_try="$ac_link"
  30291. case "(($ac_try" in
  30292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30293. *) ac_try_echo=$ac_try;;
  30294. esac
  30295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30296. $as_echo "$ac_try_echo") >&5
  30297. (eval "$ac_link") 2>conftest.er1
  30298. ac_status=$?
  30299. grep -v '^ *+' conftest.er1 >conftest.err
  30300. rm -f conftest.er1
  30301. cat conftest.err >&5
  30302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30303. (exit $ac_status); } && {
  30304. test -z "$ac_c_werror_flag" ||
  30305. test ! -s conftest.err
  30306. } && test -s conftest$ac_exeext && {
  30307. test "$cross_compiling" = yes ||
  30308. $as_test_x conftest$ac_exeext
  30309. }; then
  30310. eval "$as_ac_Lib=yes"
  30311. else
  30312. $as_echo "$as_me: failed program was:" >&5
  30313. sed 's/^/| /' conftest.$ac_ext >&5
  30314. eval "$as_ac_Lib=no"
  30315. fi
  30316. rm -rf conftest.dSYM
  30317. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30318. conftest$ac_exeext conftest.$ac_ext
  30319. LIBS=$ac_check_lib_save_LIBS
  30320. fi
  30321. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  30322. $as_echo "$as_val"'`
  30323. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30324. $as_echo "$ac_res" >&6; }
  30325. as_val=`eval 'as_val=${'$as_ac_Lib'}
  30326. $as_echo "$as_val"'`
  30327. if test "x$as_val" = x""yes; then
  30328. AST_MISDN_FOUND=yes
  30329. else
  30330. AST_MISDN_FOUND=no
  30331. fi
  30332. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30333. fi
  30334. # now check for the header.
  30335. if test "${AST_MISDN_FOUND}" = "yes"; then
  30336. MISDN_LIB="${pbxlibdir} -lmISDN "
  30337. # if --with-MISDN=DIR has been specified, use it.
  30338. if test "x${MISDN_DIR}" != "x"; then
  30339. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  30340. fi
  30341. MISDN_INCLUDE="${MISDN_INCLUDE} "
  30342. if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
  30343. MISDN_HEADER_FOUND="1"
  30344. else # check for the header
  30345. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30346. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  30347. if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
  30348. { $as_echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
  30349. $as_echo_n "checking for mISDNuser/mISDNlib.h... " >&6; }
  30350. if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
  30351. $as_echo_n "(cached) " >&6
  30352. fi
  30353. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
  30354. $as_echo "$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
  30355. else
  30356. # Is the header compilable?
  30357. { $as_echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
  30358. $as_echo_n "checking mISDNuser/mISDNlib.h usability... " >&6; }
  30359. cat >conftest.$ac_ext <<_ACEOF
  30360. /* confdefs.h. */
  30361. _ACEOF
  30362. cat confdefs.h >>conftest.$ac_ext
  30363. cat >>conftest.$ac_ext <<_ACEOF
  30364. /* end confdefs.h. */
  30365. $ac_includes_default
  30366. #include <mISDNuser/mISDNlib.h>
  30367. _ACEOF
  30368. rm -f conftest.$ac_objext
  30369. if { (ac_try="$ac_compile"
  30370. case "(($ac_try" in
  30371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30372. *) ac_try_echo=$ac_try;;
  30373. esac
  30374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30375. $as_echo "$ac_try_echo") >&5
  30376. (eval "$ac_compile") 2>conftest.er1
  30377. ac_status=$?
  30378. grep -v '^ *+' conftest.er1 >conftest.err
  30379. rm -f conftest.er1
  30380. cat conftest.err >&5
  30381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30382. (exit $ac_status); } && {
  30383. test -z "$ac_c_werror_flag" ||
  30384. test ! -s conftest.err
  30385. } && test -s conftest.$ac_objext; then
  30386. ac_header_compiler=yes
  30387. else
  30388. $as_echo "$as_me: failed program was:" >&5
  30389. sed 's/^/| /' conftest.$ac_ext >&5
  30390. ac_header_compiler=no
  30391. fi
  30392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30393. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30394. $as_echo "$ac_header_compiler" >&6; }
  30395. # Is the header present?
  30396. { $as_echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
  30397. $as_echo_n "checking mISDNuser/mISDNlib.h presence... " >&6; }
  30398. cat >conftest.$ac_ext <<_ACEOF
  30399. /* confdefs.h. */
  30400. _ACEOF
  30401. cat confdefs.h >>conftest.$ac_ext
  30402. cat >>conftest.$ac_ext <<_ACEOF
  30403. /* end confdefs.h. */
  30404. #include <mISDNuser/mISDNlib.h>
  30405. _ACEOF
  30406. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30407. case "(($ac_try" in
  30408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30409. *) ac_try_echo=$ac_try;;
  30410. esac
  30411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30412. $as_echo "$ac_try_echo") >&5
  30413. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30414. ac_status=$?
  30415. grep -v '^ *+' conftest.er1 >conftest.err
  30416. rm -f conftest.er1
  30417. cat conftest.err >&5
  30418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30419. (exit $ac_status); } >/dev/null && {
  30420. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30421. test ! -s conftest.err
  30422. }; then
  30423. ac_header_preproc=yes
  30424. else
  30425. $as_echo "$as_me: failed program was:" >&5
  30426. sed 's/^/| /' conftest.$ac_ext >&5
  30427. ac_header_preproc=no
  30428. fi
  30429. rm -f conftest.err conftest.$ac_ext
  30430. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30431. $as_echo "$ac_header_preproc" >&6; }
  30432. # So? What about this header?
  30433. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30434. yes:no: )
  30435. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30436. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30437. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
  30438. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
  30439. ac_header_preproc=yes
  30440. ;;
  30441. no:yes:* )
  30442. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
  30443. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
  30444. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
  30445. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
  30446. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
  30447. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
  30448. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
  30449. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30450. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
  30451. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
  30452. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
  30453. $as_echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
  30454. ( cat <<\_ASBOX
  30455. ## ------------------------------------------ ##
  30456. ## Report this to https://issues.asterisk.org ##
  30457. ## ------------------------------------------ ##
  30458. _ASBOX
  30459. ) | sed "s/^/$as_me: WARNING: /" >&2
  30460. ;;
  30461. esac
  30462. { $as_echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
  30463. $as_echo_n "checking for mISDNuser/mISDNlib.h... " >&6; }
  30464. if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
  30465. $as_echo_n "(cached) " >&6
  30466. else
  30467. ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
  30468. fi
  30469. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
  30470. $as_echo "$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
  30471. fi
  30472. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = x""yes; then
  30473. MISDN_HEADER_FOUND=1
  30474. else
  30475. MISDN_HEADER_FOUND=0
  30476. fi
  30477. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30478. fi
  30479. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  30480. MISDN_LIB=""
  30481. MISDN_INCLUDE=""
  30482. else
  30483. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  30484. MISDN_LIB=""
  30485. fi
  30486. PBX_MISDN=1
  30487. cat >>confdefs.h <<_ACEOF
  30488. #define HAVE_MISDN 1
  30489. _ACEOF
  30490. fi
  30491. fi
  30492. fi
  30493. if test "${PBX_MISDN}" = 1; then
  30494. if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
  30495. pbxlibdir=""
  30496. # if --with-ISDNNET=DIR has been specified, use it.
  30497. if test "x${ISDNNET_DIR}" != "x"; then
  30498. if test -d ${ISDNNET_DIR}/lib; then
  30499. pbxlibdir="-L${ISDNNET_DIR}/lib"
  30500. else
  30501. pbxlibdir="-L${ISDNNET_DIR}"
  30502. fi
  30503. fi
  30504. pbxfuncname="init_manager"
  30505. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  30506. AST_ISDNNET_FOUND=yes
  30507. else
  30508. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30509. CFLAGS="${CFLAGS} "
  30510. as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
  30511. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
  30512. $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
  30513. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  30514. $as_echo_n "(cached) " >&6
  30515. else
  30516. ac_check_lib_save_LIBS=$LIBS
  30517. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  30518. cat >conftest.$ac_ext <<_ACEOF
  30519. /* confdefs.h. */
  30520. _ACEOF
  30521. cat confdefs.h >>conftest.$ac_ext
  30522. cat >>conftest.$ac_ext <<_ACEOF
  30523. /* end confdefs.h. */
  30524. /* Override any GCC internal prototype to avoid an error.
  30525. Use char because int might match the return type of a GCC
  30526. builtin and then its argument prototype would still apply. */
  30527. #ifdef __cplusplus
  30528. extern "C"
  30529. #endif
  30530. char ${pbxfuncname} ();
  30531. int
  30532. main ()
  30533. {
  30534. return ${pbxfuncname} ();
  30535. ;
  30536. return 0;
  30537. }
  30538. _ACEOF
  30539. rm -f conftest.$ac_objext conftest$ac_exeext
  30540. if { (ac_try="$ac_link"
  30541. case "(($ac_try" in
  30542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30543. *) ac_try_echo=$ac_try;;
  30544. esac
  30545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30546. $as_echo "$ac_try_echo") >&5
  30547. (eval "$ac_link") 2>conftest.er1
  30548. ac_status=$?
  30549. grep -v '^ *+' conftest.er1 >conftest.err
  30550. rm -f conftest.er1
  30551. cat conftest.err >&5
  30552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30553. (exit $ac_status); } && {
  30554. test -z "$ac_c_werror_flag" ||
  30555. test ! -s conftest.err
  30556. } && test -s conftest$ac_exeext && {
  30557. test "$cross_compiling" = yes ||
  30558. $as_test_x conftest$ac_exeext
  30559. }; then
  30560. eval "$as_ac_Lib=yes"
  30561. else
  30562. $as_echo "$as_me: failed program was:" >&5
  30563. sed 's/^/| /' conftest.$ac_ext >&5
  30564. eval "$as_ac_Lib=no"
  30565. fi
  30566. rm -rf conftest.dSYM
  30567. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30568. conftest$ac_exeext conftest.$ac_ext
  30569. LIBS=$ac_check_lib_save_LIBS
  30570. fi
  30571. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  30572. $as_echo "$as_val"'`
  30573. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30574. $as_echo "$ac_res" >&6; }
  30575. as_val=`eval 'as_val=${'$as_ac_Lib'}
  30576. $as_echo "$as_val"'`
  30577. if test "x$as_val" = x""yes; then
  30578. AST_ISDNNET_FOUND=yes
  30579. else
  30580. AST_ISDNNET_FOUND=no
  30581. fi
  30582. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30583. fi
  30584. # now check for the header.
  30585. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  30586. ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
  30587. # if --with-ISDNNET=DIR has been specified, use it.
  30588. if test "x${ISDNNET_DIR}" != "x"; then
  30589. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  30590. fi
  30591. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  30592. if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
  30593. ISDNNET_HEADER_FOUND="1"
  30594. else # check for the header
  30595. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30596. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  30597. if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
  30598. { $as_echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
  30599. $as_echo_n "checking for mISDNuser/isdn_net.h... " >&6; }
  30600. if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
  30601. $as_echo_n "(cached) " >&6
  30602. fi
  30603. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
  30604. $as_echo "$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
  30605. else
  30606. # Is the header compilable?
  30607. { $as_echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
  30608. $as_echo_n "checking mISDNuser/isdn_net.h usability... " >&6; }
  30609. cat >conftest.$ac_ext <<_ACEOF
  30610. /* confdefs.h. */
  30611. _ACEOF
  30612. cat confdefs.h >>conftest.$ac_ext
  30613. cat >>conftest.$ac_ext <<_ACEOF
  30614. /* end confdefs.h. */
  30615. $ac_includes_default
  30616. #include <mISDNuser/isdn_net.h>
  30617. _ACEOF
  30618. rm -f conftest.$ac_objext
  30619. if { (ac_try="$ac_compile"
  30620. case "(($ac_try" in
  30621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30622. *) ac_try_echo=$ac_try;;
  30623. esac
  30624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30625. $as_echo "$ac_try_echo") >&5
  30626. (eval "$ac_compile") 2>conftest.er1
  30627. ac_status=$?
  30628. grep -v '^ *+' conftest.er1 >conftest.err
  30629. rm -f conftest.er1
  30630. cat conftest.err >&5
  30631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30632. (exit $ac_status); } && {
  30633. test -z "$ac_c_werror_flag" ||
  30634. test ! -s conftest.err
  30635. } && test -s conftest.$ac_objext; then
  30636. ac_header_compiler=yes
  30637. else
  30638. $as_echo "$as_me: failed program was:" >&5
  30639. sed 's/^/| /' conftest.$ac_ext >&5
  30640. ac_header_compiler=no
  30641. fi
  30642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30643. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30644. $as_echo "$ac_header_compiler" >&6; }
  30645. # Is the header present?
  30646. { $as_echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
  30647. $as_echo_n "checking mISDNuser/isdn_net.h presence... " >&6; }
  30648. cat >conftest.$ac_ext <<_ACEOF
  30649. /* confdefs.h. */
  30650. _ACEOF
  30651. cat confdefs.h >>conftest.$ac_ext
  30652. cat >>conftest.$ac_ext <<_ACEOF
  30653. /* end confdefs.h. */
  30654. #include <mISDNuser/isdn_net.h>
  30655. _ACEOF
  30656. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30657. case "(($ac_try" in
  30658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30659. *) ac_try_echo=$ac_try;;
  30660. esac
  30661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30662. $as_echo "$ac_try_echo") >&5
  30663. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30664. ac_status=$?
  30665. grep -v '^ *+' conftest.er1 >conftest.err
  30666. rm -f conftest.er1
  30667. cat conftest.err >&5
  30668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30669. (exit $ac_status); } >/dev/null && {
  30670. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30671. test ! -s conftest.err
  30672. }; then
  30673. ac_header_preproc=yes
  30674. else
  30675. $as_echo "$as_me: failed program was:" >&5
  30676. sed 's/^/| /' conftest.$ac_ext >&5
  30677. ac_header_preproc=no
  30678. fi
  30679. rm -f conftest.err conftest.$ac_ext
  30680. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30681. $as_echo "$ac_header_preproc" >&6; }
  30682. # So? What about this header?
  30683. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30684. yes:no: )
  30685. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30686. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30687. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
  30688. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
  30689. ac_header_preproc=yes
  30690. ;;
  30691. no:yes:* )
  30692. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
  30693. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
  30694. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
  30695. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
  30696. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
  30697. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
  30698. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
  30699. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30700. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
  30701. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
  30702. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
  30703. $as_echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
  30704. ( cat <<\_ASBOX
  30705. ## ------------------------------------------ ##
  30706. ## Report this to https://issues.asterisk.org ##
  30707. ## ------------------------------------------ ##
  30708. _ASBOX
  30709. ) | sed "s/^/$as_me: WARNING: /" >&2
  30710. ;;
  30711. esac
  30712. { $as_echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
  30713. $as_echo_n "checking for mISDNuser/isdn_net.h... " >&6; }
  30714. if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
  30715. $as_echo_n "(cached) " >&6
  30716. else
  30717. ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
  30718. fi
  30719. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
  30720. $as_echo "$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
  30721. fi
  30722. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = x""yes; then
  30723. ISDNNET_HEADER_FOUND=1
  30724. else
  30725. ISDNNET_HEADER_FOUND=0
  30726. fi
  30727. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30728. fi
  30729. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  30730. ISDNNET_LIB=""
  30731. ISDNNET_INCLUDE=""
  30732. else
  30733. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  30734. ISDNNET_LIB=""
  30735. fi
  30736. PBX_ISDNNET=1
  30737. cat >>confdefs.h <<_ACEOF
  30738. #define HAVE_ISDNNET 1
  30739. _ACEOF
  30740. fi
  30741. fi
  30742. fi
  30743. if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
  30744. pbxlibdir=""
  30745. # if --with-SUPPSERV=DIR has been specified, use it.
  30746. if test "x${SUPPSERV_DIR}" != "x"; then
  30747. if test -d ${SUPPSERV_DIR}/lib; then
  30748. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  30749. else
  30750. pbxlibdir="-L${SUPPSERV_DIR}"
  30751. fi
  30752. fi
  30753. pbxfuncname="encodeFac"
  30754. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  30755. AST_SUPPSERV_FOUND=yes
  30756. else
  30757. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30758. CFLAGS="${CFLAGS} "
  30759. as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
  30760. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
  30761. $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
  30762. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  30763. $as_echo_n "(cached) " >&6
  30764. else
  30765. ac_check_lib_save_LIBS=$LIBS
  30766. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  30774. Use char because int might match the return type of a GCC
  30775. builtin and then its argument prototype would still apply. */
  30776. #ifdef __cplusplus
  30777. extern "C"
  30778. #endif
  30779. char ${pbxfuncname} ();
  30780. int
  30781. main ()
  30782. {
  30783. return ${pbxfuncname} ();
  30784. ;
  30785. return 0;
  30786. }
  30787. _ACEOF
  30788. rm -f conftest.$ac_objext conftest$ac_exeext
  30789. if { (ac_try="$ac_link"
  30790. case "(($ac_try" in
  30791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30792. *) ac_try_echo=$ac_try;;
  30793. esac
  30794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30795. $as_echo "$ac_try_echo") >&5
  30796. (eval "$ac_link") 2>conftest.er1
  30797. ac_status=$?
  30798. grep -v '^ *+' conftest.er1 >conftest.err
  30799. rm -f conftest.er1
  30800. cat conftest.err >&5
  30801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30802. (exit $ac_status); } && {
  30803. test -z "$ac_c_werror_flag" ||
  30804. test ! -s conftest.err
  30805. } && test -s conftest$ac_exeext && {
  30806. test "$cross_compiling" = yes ||
  30807. $as_test_x conftest$ac_exeext
  30808. }; then
  30809. eval "$as_ac_Lib=yes"
  30810. else
  30811. $as_echo "$as_me: failed program was:" >&5
  30812. sed 's/^/| /' conftest.$ac_ext >&5
  30813. eval "$as_ac_Lib=no"
  30814. fi
  30815. rm -rf conftest.dSYM
  30816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30817. conftest$ac_exeext conftest.$ac_ext
  30818. LIBS=$ac_check_lib_save_LIBS
  30819. fi
  30820. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  30821. $as_echo "$as_val"'`
  30822. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  30823. $as_echo "$ac_res" >&6; }
  30824. as_val=`eval 'as_val=${'$as_ac_Lib'}
  30825. $as_echo "$as_val"'`
  30826. if test "x$as_val" = x""yes; then
  30827. AST_SUPPSERV_FOUND=yes
  30828. else
  30829. AST_SUPPSERV_FOUND=no
  30830. fi
  30831. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30832. fi
  30833. # now check for the header.
  30834. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  30835. SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
  30836. # if --with-SUPPSERV=DIR has been specified, use it.
  30837. if test "x${SUPPSERV_DIR}" != "x"; then
  30838. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  30839. fi
  30840. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  30841. if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
  30842. SUPPSERV_HEADER_FOUND="1"
  30843. else # check for the header
  30844. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30845. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  30846. if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
  30847. { $as_echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
  30848. $as_echo_n "checking for mISDNuser/suppserv.h... " >&6; }
  30849. if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
  30850. $as_echo_n "(cached) " >&6
  30851. fi
  30852. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
  30853. $as_echo "$ac_cv_header_mISDNuser_suppserv_h" >&6; }
  30854. else
  30855. # Is the header compilable?
  30856. { $as_echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
  30857. $as_echo_n "checking mISDNuser/suppserv.h usability... " >&6; }
  30858. cat >conftest.$ac_ext <<_ACEOF
  30859. /* confdefs.h. */
  30860. _ACEOF
  30861. cat confdefs.h >>conftest.$ac_ext
  30862. cat >>conftest.$ac_ext <<_ACEOF
  30863. /* end confdefs.h. */
  30864. $ac_includes_default
  30865. #include <mISDNuser/suppserv.h>
  30866. _ACEOF
  30867. rm -f conftest.$ac_objext
  30868. if { (ac_try="$ac_compile"
  30869. case "(($ac_try" in
  30870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30871. *) ac_try_echo=$ac_try;;
  30872. esac
  30873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30874. $as_echo "$ac_try_echo") >&5
  30875. (eval "$ac_compile") 2>conftest.er1
  30876. ac_status=$?
  30877. grep -v '^ *+' conftest.er1 >conftest.err
  30878. rm -f conftest.er1
  30879. cat conftest.err >&5
  30880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30881. (exit $ac_status); } && {
  30882. test -z "$ac_c_werror_flag" ||
  30883. test ! -s conftest.err
  30884. } && test -s conftest.$ac_objext; then
  30885. ac_header_compiler=yes
  30886. else
  30887. $as_echo "$as_me: failed program was:" >&5
  30888. sed 's/^/| /' conftest.$ac_ext >&5
  30889. ac_header_compiler=no
  30890. fi
  30891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30892. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  30893. $as_echo "$ac_header_compiler" >&6; }
  30894. # Is the header present?
  30895. { $as_echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
  30896. $as_echo_n "checking mISDNuser/suppserv.h presence... " >&6; }
  30897. cat >conftest.$ac_ext <<_ACEOF
  30898. /* confdefs.h. */
  30899. _ACEOF
  30900. cat confdefs.h >>conftest.$ac_ext
  30901. cat >>conftest.$ac_ext <<_ACEOF
  30902. /* end confdefs.h. */
  30903. #include <mISDNuser/suppserv.h>
  30904. _ACEOF
  30905. if { (ac_try="$ac_cpp conftest.$ac_ext"
  30906. case "(($ac_try" in
  30907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30908. *) ac_try_echo=$ac_try;;
  30909. esac
  30910. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30911. $as_echo "$ac_try_echo") >&5
  30912. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  30913. ac_status=$?
  30914. grep -v '^ *+' conftest.er1 >conftest.err
  30915. rm -f conftest.er1
  30916. cat conftest.err >&5
  30917. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30918. (exit $ac_status); } >/dev/null && {
  30919. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  30920. test ! -s conftest.err
  30921. }; then
  30922. ac_header_preproc=yes
  30923. else
  30924. $as_echo "$as_me: failed program was:" >&5
  30925. sed 's/^/| /' conftest.$ac_ext >&5
  30926. ac_header_preproc=no
  30927. fi
  30928. rm -f conftest.err conftest.$ac_ext
  30929. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  30930. $as_echo "$ac_header_preproc" >&6; }
  30931. # So? What about this header?
  30932. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  30933. yes:no: )
  30934. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
  30935. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  30936. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
  30937. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
  30938. ac_header_preproc=yes
  30939. ;;
  30940. no:yes:* )
  30941. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
  30942. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
  30943. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
  30944. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
  30945. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
  30946. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
  30947. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
  30948. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
  30949. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
  30950. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
  30951. { $as_echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
  30952. $as_echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
  30953. ( cat <<\_ASBOX
  30954. ## ------------------------------------------ ##
  30955. ## Report this to https://issues.asterisk.org ##
  30956. ## ------------------------------------------ ##
  30957. _ASBOX
  30958. ) | sed "s/^/$as_me: WARNING: /" >&2
  30959. ;;
  30960. esac
  30961. { $as_echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
  30962. $as_echo_n "checking for mISDNuser/suppserv.h... " >&6; }
  30963. if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
  30964. $as_echo_n "(cached) " >&6
  30965. else
  30966. ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
  30967. fi
  30968. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
  30969. $as_echo "$ac_cv_header_mISDNuser_suppserv_h" >&6; }
  30970. fi
  30971. if test "x$ac_cv_header_mISDNuser_suppserv_h" = x""yes; then
  30972. SUPPSERV_HEADER_FOUND=1
  30973. else
  30974. SUPPSERV_HEADER_FOUND=0
  30975. fi
  30976. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30977. fi
  30978. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  30979. SUPPSERV_LIB=""
  30980. SUPPSERV_INCLUDE=""
  30981. else
  30982. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  30983. SUPPSERV_LIB=""
  30984. fi
  30985. PBX_SUPPSERV=1
  30986. cat >>confdefs.h <<_ACEOF
  30987. #define HAVE_SUPPSERV 1
  30988. _ACEOF
  30989. fi
  30990. fi
  30991. fi
  30992. if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
  30993. { $as_echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
  30994. $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
  30995. saved_cppflags="${CPPFLAGS}"
  30996. if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
  30997. MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
  30998. fi
  30999. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
  31000. cat >conftest.$ac_ext <<_ACEOF
  31001. /* confdefs.h. */
  31002. _ACEOF
  31003. cat confdefs.h >>conftest.$ac_ext
  31004. cat >>conftest.$ac_ext <<_ACEOF
  31005. /* end confdefs.h. */
  31006. #include <mISDNuser/suppserv.h>
  31007. int
  31008. main ()
  31009. {
  31010. #if defined(Fac_RESULT)
  31011. int foo = 0;
  31012. #else
  31013. int foo = bar;
  31014. #endif
  31015. 0
  31016. ;
  31017. return 0;
  31018. }
  31019. _ACEOF
  31020. rm -f conftest.$ac_objext
  31021. if { (ac_try="$ac_compile"
  31022. case "(($ac_try" in
  31023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31024. *) ac_try_echo=$ac_try;;
  31025. esac
  31026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31027. $as_echo "$ac_try_echo") >&5
  31028. (eval "$ac_compile") 2>conftest.er1
  31029. ac_status=$?
  31030. grep -v '^ *+' conftest.er1 >conftest.err
  31031. rm -f conftest.er1
  31032. cat conftest.err >&5
  31033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31034. (exit $ac_status); } && {
  31035. test -z "$ac_c_werror_flag" ||
  31036. test ! -s conftest.err
  31037. } && test -s conftest.$ac_objext; then
  31038. { $as_echo "$as_me:$LINENO: result: yes" >&5
  31039. $as_echo "yes" >&6; }
  31040. PBX_MISDN_FAC_RESULT=1
  31041. cat >>confdefs.h <<\_ACEOF
  31042. #define HAVE_MISDN_FAC_RESULT 1
  31043. _ACEOF
  31044. else
  31045. $as_echo "$as_me: failed program was:" >&5
  31046. sed 's/^/| /' conftest.$ac_ext >&5
  31047. { $as_echo "$as_me:$LINENO: result: no" >&5
  31048. $as_echo "no" >&6; }
  31049. fi
  31050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31051. CPPFLAGS="${saved_cppflags}"
  31052. fi
  31053. if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
  31054. { $as_echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
  31055. $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
  31056. saved_cppflags="${CPPFLAGS}"
  31057. if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
  31058. MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
  31059. fi
  31060. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
  31061. cat >conftest.$ac_ext <<_ACEOF
  31062. /* confdefs.h. */
  31063. _ACEOF
  31064. cat confdefs.h >>conftest.$ac_ext
  31065. cat >>conftest.$ac_ext <<_ACEOF
  31066. /* end confdefs.h. */
  31067. #include <mISDNuser/suppserv.h>
  31068. int
  31069. main ()
  31070. {
  31071. #if defined(Fac_ERROR)
  31072. int foo = 0;
  31073. #else
  31074. int foo = bar;
  31075. #endif
  31076. 0
  31077. ;
  31078. return 0;
  31079. }
  31080. _ACEOF
  31081. rm -f conftest.$ac_objext
  31082. if { (ac_try="$ac_compile"
  31083. case "(($ac_try" in
  31084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31085. *) ac_try_echo=$ac_try;;
  31086. esac
  31087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31088. $as_echo "$ac_try_echo") >&5
  31089. (eval "$ac_compile") 2>conftest.er1
  31090. ac_status=$?
  31091. grep -v '^ *+' conftest.er1 >conftest.err
  31092. rm -f conftest.er1
  31093. cat conftest.err >&5
  31094. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31095. (exit $ac_status); } && {
  31096. test -z "$ac_c_werror_flag" ||
  31097. test ! -s conftest.err
  31098. } && test -s conftest.$ac_objext; then
  31099. { $as_echo "$as_me:$LINENO: result: yes" >&5
  31100. $as_echo "yes" >&6; }
  31101. PBX_MISDN_FAC_ERROR=1
  31102. cat >>confdefs.h <<\_ACEOF
  31103. #define HAVE_MISDN_FAC_ERROR 1
  31104. _ACEOF
  31105. else
  31106. $as_echo "$as_me: failed program was:" >&5
  31107. sed 's/^/| /' conftest.$ac_ext >&5
  31108. { $as_echo "$as_me:$LINENO: result: no" >&5
  31109. $as_echo "no" >&6; }
  31110. fi
  31111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31112. CPPFLAGS="${saved_cppflags}"
  31113. fi
  31114. if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
  31115. { $as_echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
  31116. $as_echo_n "checking for linux/mISDNdsp.h... " >&6; }
  31117. if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
  31118. $as_echo_n "(cached) " >&6
  31119. fi
  31120. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
  31121. $as_echo "$ac_cv_header_linux_mISDNdsp_h" >&6; }
  31122. else
  31123. # Is the header compilable?
  31124. { $as_echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
  31125. $as_echo_n "checking linux/mISDNdsp.h usability... " >&6; }
  31126. cat >conftest.$ac_ext <<_ACEOF
  31127. /* confdefs.h. */
  31128. _ACEOF
  31129. cat confdefs.h >>conftest.$ac_ext
  31130. cat >>conftest.$ac_ext <<_ACEOF
  31131. /* end confdefs.h. */
  31132. $ac_includes_default
  31133. #include <linux/mISDNdsp.h>
  31134. _ACEOF
  31135. rm -f conftest.$ac_objext
  31136. if { (ac_try="$ac_compile"
  31137. case "(($ac_try" in
  31138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31139. *) ac_try_echo=$ac_try;;
  31140. esac
  31141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31142. $as_echo "$ac_try_echo") >&5
  31143. (eval "$ac_compile") 2>conftest.er1
  31144. ac_status=$?
  31145. grep -v '^ *+' conftest.er1 >conftest.err
  31146. rm -f conftest.er1
  31147. cat conftest.err >&5
  31148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31149. (exit $ac_status); } && {
  31150. test -z "$ac_c_werror_flag" ||
  31151. test ! -s conftest.err
  31152. } && test -s conftest.$ac_objext; then
  31153. ac_header_compiler=yes
  31154. else
  31155. $as_echo "$as_me: failed program was:" >&5
  31156. sed 's/^/| /' conftest.$ac_ext >&5
  31157. ac_header_compiler=no
  31158. fi
  31159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31160. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  31161. $as_echo "$ac_header_compiler" >&6; }
  31162. # Is the header present?
  31163. { $as_echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
  31164. $as_echo_n "checking linux/mISDNdsp.h presence... " >&6; }
  31165. cat >conftest.$ac_ext <<_ACEOF
  31166. /* confdefs.h. */
  31167. _ACEOF
  31168. cat confdefs.h >>conftest.$ac_ext
  31169. cat >>conftest.$ac_ext <<_ACEOF
  31170. /* end confdefs.h. */
  31171. #include <linux/mISDNdsp.h>
  31172. _ACEOF
  31173. if { (ac_try="$ac_cpp conftest.$ac_ext"
  31174. case "(($ac_try" in
  31175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31176. *) ac_try_echo=$ac_try;;
  31177. esac
  31178. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31179. $as_echo "$ac_try_echo") >&5
  31180. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  31181. ac_status=$?
  31182. grep -v '^ *+' conftest.er1 >conftest.err
  31183. rm -f conftest.er1
  31184. cat conftest.err >&5
  31185. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31186. (exit $ac_status); } >/dev/null && {
  31187. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  31188. test ! -s conftest.err
  31189. }; then
  31190. ac_header_preproc=yes
  31191. else
  31192. $as_echo "$as_me: failed program was:" >&5
  31193. sed 's/^/| /' conftest.$ac_ext >&5
  31194. ac_header_preproc=no
  31195. fi
  31196. rm -f conftest.err conftest.$ac_ext
  31197. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  31198. $as_echo "$ac_header_preproc" >&6; }
  31199. # So? What about this header?
  31200. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  31201. yes:no: )
  31202. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  31203. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  31204. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
  31205. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
  31206. ac_header_preproc=yes
  31207. ;;
  31208. no:yes:* )
  31209. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
  31210. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
  31211. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
  31212. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
  31213. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
  31214. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
  31215. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
  31216. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  31217. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
  31218. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
  31219. { $as_echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
  31220. $as_echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
  31221. ( cat <<\_ASBOX
  31222. ## ------------------------------------------ ##
  31223. ## Report this to https://issues.asterisk.org ##
  31224. ## ------------------------------------------ ##
  31225. _ASBOX
  31226. ) | sed "s/^/$as_me: WARNING: /" >&2
  31227. ;;
  31228. esac
  31229. { $as_echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
  31230. $as_echo_n "checking for linux/mISDNdsp.h... " >&6; }
  31231. if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
  31232. $as_echo_n "(cached) " >&6
  31233. else
  31234. ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
  31235. fi
  31236. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
  31237. $as_echo "$ac_cv_header_linux_mISDNdsp_h" >&6; }
  31238. fi
  31239. if test "x$ac_cv_header_linux_mISDNdsp_h" = x""yes; then
  31240. cat >>confdefs.h <<_ACEOF
  31241. #define MISDN_1_2 1
  31242. _ACEOF
  31243. fi
  31244. { $as_echo "$as_me:$LINENO: checking for Q931_info_t.redirect_dn" >&5
  31245. $as_echo_n "checking for Q931_info_t.redirect_dn... " >&6; }
  31246. if test "${ac_cv_member_Q931_info_t_redirect_dn+set}" = set; then
  31247. $as_echo_n "(cached) " >&6
  31248. else
  31249. cat >conftest.$ac_ext <<_ACEOF
  31250. /* confdefs.h. */
  31251. _ACEOF
  31252. cat confdefs.h >>conftest.$ac_ext
  31253. cat >>conftest.$ac_ext <<_ACEOF
  31254. /* end confdefs.h. */
  31255. #include <mISDNuser/mISDNlib.h>
  31256. int
  31257. main ()
  31258. {
  31259. static Q931_info_t ac_aggr;
  31260. if (ac_aggr.redirect_dn)
  31261. return 0;
  31262. ;
  31263. return 0;
  31264. }
  31265. _ACEOF
  31266. rm -f conftest.$ac_objext
  31267. if { (ac_try="$ac_compile"
  31268. case "(($ac_try" in
  31269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31270. *) ac_try_echo=$ac_try;;
  31271. esac
  31272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31273. $as_echo "$ac_try_echo") >&5
  31274. (eval "$ac_compile") 2>conftest.er1
  31275. ac_status=$?
  31276. grep -v '^ *+' conftest.er1 >conftest.err
  31277. rm -f conftest.er1
  31278. cat conftest.err >&5
  31279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31280. (exit $ac_status); } && {
  31281. test -z "$ac_c_werror_flag" ||
  31282. test ! -s conftest.err
  31283. } && test -s conftest.$ac_objext; then
  31284. ac_cv_member_Q931_info_t_redirect_dn=yes
  31285. else
  31286. $as_echo "$as_me: failed program was:" >&5
  31287. sed 's/^/| /' conftest.$ac_ext >&5
  31288. cat >conftest.$ac_ext <<_ACEOF
  31289. /* confdefs.h. */
  31290. _ACEOF
  31291. cat confdefs.h >>conftest.$ac_ext
  31292. cat >>conftest.$ac_ext <<_ACEOF
  31293. /* end confdefs.h. */
  31294. #include <mISDNuser/mISDNlib.h>
  31295. int
  31296. main ()
  31297. {
  31298. static Q931_info_t ac_aggr;
  31299. if (sizeof ac_aggr.redirect_dn)
  31300. return 0;
  31301. ;
  31302. return 0;
  31303. }
  31304. _ACEOF
  31305. rm -f conftest.$ac_objext
  31306. if { (ac_try="$ac_compile"
  31307. case "(($ac_try" in
  31308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31309. *) ac_try_echo=$ac_try;;
  31310. esac
  31311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31312. $as_echo "$ac_try_echo") >&5
  31313. (eval "$ac_compile") 2>conftest.er1
  31314. ac_status=$?
  31315. grep -v '^ *+' conftest.er1 >conftest.err
  31316. rm -f conftest.er1
  31317. cat conftest.err >&5
  31318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31319. (exit $ac_status); } && {
  31320. test -z "$ac_c_werror_flag" ||
  31321. test ! -s conftest.err
  31322. } && test -s conftest.$ac_objext; then
  31323. ac_cv_member_Q931_info_t_redirect_dn=yes
  31324. else
  31325. $as_echo "$as_me: failed program was:" >&5
  31326. sed 's/^/| /' conftest.$ac_ext >&5
  31327. ac_cv_member_Q931_info_t_redirect_dn=no
  31328. fi
  31329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31330. fi
  31331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31332. fi
  31333. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_Q931_info_t_redirect_dn" >&5
  31334. $as_echo "$ac_cv_member_Q931_info_t_redirect_dn" >&6; }
  31335. if test "x$ac_cv_member_Q931_info_t_redirect_dn" = x""yes; then
  31336. :
  31337. else
  31338. PBX_MISDN=0
  31339. fi
  31340. fi
  31341. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  31342. PBX_MYSQLCLIENT=0
  31343. if test -n "$ac_tool_prefix"; then
  31344. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  31345. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  31346. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31347. $as_echo_n "checking for $ac_word... " >&6; }
  31348. if test "${ac_cv_path_CONFIG_MYSQLCLIENT+set}" = set; then
  31349. $as_echo_n "(cached) " >&6
  31350. else
  31351. case $CONFIG_MYSQLCLIENT in
  31352. [\\/]* | ?:[\\/]*)
  31353. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  31354. ;;
  31355. *)
  31356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31357. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  31358. for as_dir in $as_dummy
  31359. do
  31360. IFS=$as_save_IFS
  31361. test -z "$as_dir" && as_dir=.
  31362. for ac_exec_ext in '' $ac_executable_extensions; do
  31363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31364. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  31365. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31366. break 2
  31367. fi
  31368. done
  31369. done
  31370. IFS=$as_save_IFS
  31371. ;;
  31372. esac
  31373. fi
  31374. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  31375. if test -n "$CONFIG_MYSQLCLIENT"; then
  31376. { $as_echo "$as_me:$LINENO: result: $CONFIG_MYSQLCLIENT" >&5
  31377. $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
  31378. else
  31379. { $as_echo "$as_me:$LINENO: result: no" >&5
  31380. $as_echo "no" >&6; }
  31381. fi
  31382. fi
  31383. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  31384. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  31385. # Extract the first word of "mysql_config", so it can be a program name with args.
  31386. set dummy mysql_config; ac_word=$2
  31387. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31388. $as_echo_n "checking for $ac_word... " >&6; }
  31389. if test "${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+set}" = set; then
  31390. $as_echo_n "(cached) " >&6
  31391. else
  31392. case $ac_pt_CONFIG_MYSQLCLIENT in
  31393. [\\/]* | ?:[\\/]*)
  31394. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  31395. ;;
  31396. *)
  31397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31398. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  31399. for as_dir in $as_dummy
  31400. do
  31401. IFS=$as_save_IFS
  31402. test -z "$as_dir" && as_dir=.
  31403. for ac_exec_ext in '' $ac_executable_extensions; do
  31404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31405. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  31406. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31407. break 2
  31408. fi
  31409. done
  31410. done
  31411. IFS=$as_save_IFS
  31412. ;;
  31413. esac
  31414. fi
  31415. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  31416. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  31417. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  31418. $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  31419. else
  31420. { $as_echo "$as_me:$LINENO: result: no" >&5
  31421. $as_echo "no" >&6; }
  31422. fi
  31423. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  31424. CONFIG_MYSQLCLIENT="No"
  31425. else
  31426. case $cross_compiling:$ac_tool_warned in
  31427. yes:)
  31428. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  31429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31430. ac_tool_warned=yes ;;
  31431. esac
  31432. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  31433. fi
  31434. else
  31435. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  31436. fi
  31437. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  31438. if test x"" = x ; then A=--cflags ; else A="" ; fi
  31439. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
  31440. if test x"" = x ; then A=--libs ; else A="" ; fi
  31441. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
  31442. if test x"" != x ; then
  31443. saved_cppflags="${CPPFLAGS}"
  31444. if test "x${MYSQLCLIENT_DIR}" != "x"; then
  31445. MYSQLCLIENT_INCLUDE="-I${MYSQLCLIENT_DIR}/include"
  31446. fi
  31447. CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
  31448. saved_libs="${LIBS}"
  31449. LIBS="${MYSQLCLIENT_LIB}"
  31450. cat >conftest.$ac_ext <<_ACEOF
  31451. /* confdefs.h. */
  31452. _ACEOF
  31453. cat confdefs.h >>conftest.$ac_ext
  31454. cat >>conftest.$ac_ext <<_ACEOF
  31455. /* end confdefs.h. */
  31456. int
  31457. main ()
  31458. {
  31459. ;
  31460. ;
  31461. return 0;
  31462. }
  31463. _ACEOF
  31464. rm -f conftest.$ac_objext conftest$ac_exeext
  31465. if { (ac_try="$ac_link"
  31466. case "(($ac_try" in
  31467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31468. *) ac_try_echo=$ac_try;;
  31469. esac
  31470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31471. $as_echo "$ac_try_echo") >&5
  31472. (eval "$ac_link") 2>conftest.er1
  31473. ac_status=$?
  31474. grep -v '^ *+' conftest.er1 >conftest.err
  31475. rm -f conftest.er1
  31476. cat conftest.err >&5
  31477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31478. (exit $ac_status); } && {
  31479. test -z "$ac_c_werror_flag" ||
  31480. test ! -s conftest.err
  31481. } && test -s conftest$ac_exeext && {
  31482. test "$cross_compiling" = yes ||
  31483. $as_test_x conftest$ac_exeext
  31484. }; then
  31485. PBX_MYSQLCLIENT=1
  31486. cat >>confdefs.h <<\_ACEOF
  31487. #define HAVE_MYSQLCLIENT 1
  31488. _ACEOF
  31489. else
  31490. $as_echo "$as_me: failed program was:" >&5
  31491. sed 's/^/| /' conftest.$ac_ext >&5
  31492. fi
  31493. rm -rf conftest.dSYM
  31494. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31495. conftest$ac_exeext conftest.$ac_ext
  31496. CPPFLAGS="${saved_cppflags}"
  31497. LIBS="${saved_libs}"
  31498. else
  31499. PBX_MYSQLCLIENT=1
  31500. cat >>confdefs.h <<\_ACEOF
  31501. #define HAVE_MYSQLCLIENT 1
  31502. _ACEOF
  31503. fi
  31504. fi
  31505. fi
  31506. if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
  31507. pbxlibdir=""
  31508. # if --with-NBS=DIR has been specified, use it.
  31509. if test "x${NBS_DIR}" != "x"; then
  31510. if test -d ${NBS_DIR}/lib; then
  31511. pbxlibdir="-L${NBS_DIR}/lib"
  31512. else
  31513. pbxlibdir="-L${NBS_DIR}"
  31514. fi
  31515. fi
  31516. pbxfuncname="nbs_connect"
  31517. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  31518. AST_NBS_FOUND=yes
  31519. else
  31520. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  31521. CFLAGS="${CFLAGS} "
  31522. as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
  31523. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
  31524. $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
  31525. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  31526. $as_echo_n "(cached) " >&6
  31527. else
  31528. ac_check_lib_save_LIBS=$LIBS
  31529. LIBS="-lnbs ${pbxlibdir} $LIBS"
  31530. cat >conftest.$ac_ext <<_ACEOF
  31531. /* confdefs.h. */
  31532. _ACEOF
  31533. cat confdefs.h >>conftest.$ac_ext
  31534. cat >>conftest.$ac_ext <<_ACEOF
  31535. /* end confdefs.h. */
  31536. /* Override any GCC internal prototype to avoid an error.
  31537. Use char because int might match the return type of a GCC
  31538. builtin and then its argument prototype would still apply. */
  31539. #ifdef __cplusplus
  31540. extern "C"
  31541. #endif
  31542. char ${pbxfuncname} ();
  31543. int
  31544. main ()
  31545. {
  31546. return ${pbxfuncname} ();
  31547. ;
  31548. return 0;
  31549. }
  31550. _ACEOF
  31551. rm -f conftest.$ac_objext conftest$ac_exeext
  31552. if { (ac_try="$ac_link"
  31553. case "(($ac_try" in
  31554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31555. *) ac_try_echo=$ac_try;;
  31556. esac
  31557. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31558. $as_echo "$ac_try_echo") >&5
  31559. (eval "$ac_link") 2>conftest.er1
  31560. ac_status=$?
  31561. grep -v '^ *+' conftest.er1 >conftest.err
  31562. rm -f conftest.er1
  31563. cat conftest.err >&5
  31564. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31565. (exit $ac_status); } && {
  31566. test -z "$ac_c_werror_flag" ||
  31567. test ! -s conftest.err
  31568. } && test -s conftest$ac_exeext && {
  31569. test "$cross_compiling" = yes ||
  31570. $as_test_x conftest$ac_exeext
  31571. }; then
  31572. eval "$as_ac_Lib=yes"
  31573. else
  31574. $as_echo "$as_me: failed program was:" >&5
  31575. sed 's/^/| /' conftest.$ac_ext >&5
  31576. eval "$as_ac_Lib=no"
  31577. fi
  31578. rm -rf conftest.dSYM
  31579. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31580. conftest$ac_exeext conftest.$ac_ext
  31581. LIBS=$ac_check_lib_save_LIBS
  31582. fi
  31583. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  31584. $as_echo "$as_val"'`
  31585. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  31586. $as_echo "$ac_res" >&6; }
  31587. as_val=`eval 'as_val=${'$as_ac_Lib'}
  31588. $as_echo "$as_val"'`
  31589. if test "x$as_val" = x""yes; then
  31590. AST_NBS_FOUND=yes
  31591. else
  31592. AST_NBS_FOUND=no
  31593. fi
  31594. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  31595. fi
  31596. # now check for the header.
  31597. if test "${AST_NBS_FOUND}" = "yes"; then
  31598. NBS_LIB="${pbxlibdir} -lnbs "
  31599. # if --with-NBS=DIR has been specified, use it.
  31600. if test "x${NBS_DIR}" != "x"; then
  31601. NBS_INCLUDE="-I${NBS_DIR}/include"
  31602. fi
  31603. NBS_INCLUDE="${NBS_INCLUDE} "
  31604. if test "xnbs.h" = "x" ; then # no header, assume found
  31605. NBS_HEADER_FOUND="1"
  31606. else # check for the header
  31607. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  31608. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  31609. if test "${ac_cv_header_nbs_h+set}" = set; then
  31610. { $as_echo "$as_me:$LINENO: checking for nbs.h" >&5
  31611. $as_echo_n "checking for nbs.h... " >&6; }
  31612. if test "${ac_cv_header_nbs_h+set}" = set; then
  31613. $as_echo_n "(cached) " >&6
  31614. fi
  31615. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
  31616. $as_echo "$ac_cv_header_nbs_h" >&6; }
  31617. else
  31618. # Is the header compilable?
  31619. { $as_echo "$as_me:$LINENO: checking nbs.h usability" >&5
  31620. $as_echo_n "checking nbs.h usability... " >&6; }
  31621. cat >conftest.$ac_ext <<_ACEOF
  31622. /* confdefs.h. */
  31623. _ACEOF
  31624. cat confdefs.h >>conftest.$ac_ext
  31625. cat >>conftest.$ac_ext <<_ACEOF
  31626. /* end confdefs.h. */
  31627. $ac_includes_default
  31628. #include <nbs.h>
  31629. _ACEOF
  31630. rm -f conftest.$ac_objext
  31631. if { (ac_try="$ac_compile"
  31632. case "(($ac_try" in
  31633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31634. *) ac_try_echo=$ac_try;;
  31635. esac
  31636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31637. $as_echo "$ac_try_echo") >&5
  31638. (eval "$ac_compile") 2>conftest.er1
  31639. ac_status=$?
  31640. grep -v '^ *+' conftest.er1 >conftest.err
  31641. rm -f conftest.er1
  31642. cat conftest.err >&5
  31643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31644. (exit $ac_status); } && {
  31645. test -z "$ac_c_werror_flag" ||
  31646. test ! -s conftest.err
  31647. } && test -s conftest.$ac_objext; then
  31648. ac_header_compiler=yes
  31649. else
  31650. $as_echo "$as_me: failed program was:" >&5
  31651. sed 's/^/| /' conftest.$ac_ext >&5
  31652. ac_header_compiler=no
  31653. fi
  31654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31655. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  31656. $as_echo "$ac_header_compiler" >&6; }
  31657. # Is the header present?
  31658. { $as_echo "$as_me:$LINENO: checking nbs.h presence" >&5
  31659. $as_echo_n "checking nbs.h presence... " >&6; }
  31660. cat >conftest.$ac_ext <<_ACEOF
  31661. /* confdefs.h. */
  31662. _ACEOF
  31663. cat confdefs.h >>conftest.$ac_ext
  31664. cat >>conftest.$ac_ext <<_ACEOF
  31665. /* end confdefs.h. */
  31666. #include <nbs.h>
  31667. _ACEOF
  31668. if { (ac_try="$ac_cpp conftest.$ac_ext"
  31669. case "(($ac_try" in
  31670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31671. *) ac_try_echo=$ac_try;;
  31672. esac
  31673. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31674. $as_echo "$ac_try_echo") >&5
  31675. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  31676. ac_status=$?
  31677. grep -v '^ *+' conftest.er1 >conftest.err
  31678. rm -f conftest.er1
  31679. cat conftest.err >&5
  31680. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31681. (exit $ac_status); } >/dev/null && {
  31682. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  31683. test ! -s conftest.err
  31684. }; then
  31685. ac_header_preproc=yes
  31686. else
  31687. $as_echo "$as_me: failed program was:" >&5
  31688. sed 's/^/| /' conftest.$ac_ext >&5
  31689. ac_header_preproc=no
  31690. fi
  31691. rm -f conftest.err conftest.$ac_ext
  31692. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  31693. $as_echo "$ac_header_preproc" >&6; }
  31694. # So? What about this header?
  31695. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  31696. yes:no: )
  31697. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
  31698. $as_echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  31699. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
  31700. $as_echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
  31701. ac_header_preproc=yes
  31702. ;;
  31703. no:yes:* )
  31704. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
  31705. $as_echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
  31706. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
  31707. $as_echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
  31708. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
  31709. $as_echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
  31710. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
  31711. $as_echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
  31712. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
  31713. $as_echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
  31714. { $as_echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
  31715. $as_echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
  31716. ( cat <<\_ASBOX
  31717. ## ------------------------------------------ ##
  31718. ## Report this to https://issues.asterisk.org ##
  31719. ## ------------------------------------------ ##
  31720. _ASBOX
  31721. ) | sed "s/^/$as_me: WARNING: /" >&2
  31722. ;;
  31723. esac
  31724. { $as_echo "$as_me:$LINENO: checking for nbs.h" >&5
  31725. $as_echo_n "checking for nbs.h... " >&6; }
  31726. if test "${ac_cv_header_nbs_h+set}" = set; then
  31727. $as_echo_n "(cached) " >&6
  31728. else
  31729. ac_cv_header_nbs_h=$ac_header_preproc
  31730. fi
  31731. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
  31732. $as_echo "$ac_cv_header_nbs_h" >&6; }
  31733. fi
  31734. if test "x$ac_cv_header_nbs_h" = x""yes; then
  31735. NBS_HEADER_FOUND=1
  31736. else
  31737. NBS_HEADER_FOUND=0
  31738. fi
  31739. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  31740. fi
  31741. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  31742. NBS_LIB=""
  31743. NBS_INCLUDE=""
  31744. else
  31745. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  31746. NBS_LIB=""
  31747. fi
  31748. PBX_NBS=1
  31749. cat >>confdefs.h <<_ACEOF
  31750. #define HAVE_NBS 1
  31751. _ACEOF
  31752. fi
  31753. fi
  31754. fi
  31755. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  31756. PBX_NEON=0
  31757. if test -n "$ac_tool_prefix"; then
  31758. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  31759. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  31760. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31761. $as_echo_n "checking for $ac_word... " >&6; }
  31762. if test "${ac_cv_path_CONFIG_NEON+set}" = set; then
  31763. $as_echo_n "(cached) " >&6
  31764. else
  31765. case $CONFIG_NEON in
  31766. [\\/]* | ?:[\\/]*)
  31767. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  31768. ;;
  31769. *)
  31770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31771. as_dummy="${NEON_DIR}/bin:$PATH"
  31772. for as_dir in $as_dummy
  31773. do
  31774. IFS=$as_save_IFS
  31775. test -z "$as_dir" && as_dir=.
  31776. for ac_exec_ext in '' $ac_executable_extensions; do
  31777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31778. ac_cv_path_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  31779. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31780. break 2
  31781. fi
  31782. done
  31783. done
  31784. IFS=$as_save_IFS
  31785. ;;
  31786. esac
  31787. fi
  31788. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  31789. if test -n "$CONFIG_NEON"; then
  31790. { $as_echo "$as_me:$LINENO: result: $CONFIG_NEON" >&5
  31791. $as_echo "$CONFIG_NEON" >&6; }
  31792. else
  31793. { $as_echo "$as_me:$LINENO: result: no" >&5
  31794. $as_echo "no" >&6; }
  31795. fi
  31796. fi
  31797. if test -z "$ac_cv_path_CONFIG_NEON"; then
  31798. ac_pt_CONFIG_NEON=$CONFIG_NEON
  31799. # Extract the first word of "neon-config", so it can be a program name with args.
  31800. set dummy neon-config; ac_word=$2
  31801. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31802. $as_echo_n "checking for $ac_word... " >&6; }
  31803. if test "${ac_cv_path_ac_pt_CONFIG_NEON+set}" = set; then
  31804. $as_echo_n "(cached) " >&6
  31805. else
  31806. case $ac_pt_CONFIG_NEON in
  31807. [\\/]* | ?:[\\/]*)
  31808. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  31809. ;;
  31810. *)
  31811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31812. as_dummy="${NEON_DIR}/bin:$PATH"
  31813. for as_dir in $as_dummy
  31814. do
  31815. IFS=$as_save_IFS
  31816. test -z "$as_dir" && as_dir=.
  31817. for ac_exec_ext in '' $ac_executable_extensions; do
  31818. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31819. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  31820. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31821. break 2
  31822. fi
  31823. done
  31824. done
  31825. IFS=$as_save_IFS
  31826. ;;
  31827. esac
  31828. fi
  31829. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  31830. if test -n "$ac_pt_CONFIG_NEON"; then
  31831. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_NEON" >&5
  31832. $as_echo "$ac_pt_CONFIG_NEON" >&6; }
  31833. else
  31834. { $as_echo "$as_me:$LINENO: result: no" >&5
  31835. $as_echo "no" >&6; }
  31836. fi
  31837. if test "x$ac_pt_CONFIG_NEON" = x; then
  31838. CONFIG_NEON="No"
  31839. else
  31840. case $cross_compiling:$ac_tool_warned in
  31841. yes:)
  31842. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  31843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  31844. ac_tool_warned=yes ;;
  31845. esac
  31846. CONFIG_NEON=$ac_pt_CONFIG_NEON
  31847. fi
  31848. else
  31849. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  31850. fi
  31851. if test ! "x${CONFIG_NEON}" = xNo; then
  31852. if test x"" = x ; then A=--cflags ; else A="" ; fi
  31853. NEON_INCLUDE=$(${CONFIG_NEON} $A)
  31854. if test x"" = x ; then A=--libs ; else A="" ; fi
  31855. NEON_LIB=$(${CONFIG_NEON} $A)
  31856. if test x"" != x ; then
  31857. saved_cppflags="${CPPFLAGS}"
  31858. if test "x${NEON_DIR}" != "x"; then
  31859. NEON_INCLUDE="-I${NEON_DIR}/include"
  31860. fi
  31861. CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
  31862. saved_libs="${LIBS}"
  31863. LIBS="${NEON_LIB}"
  31864. cat >conftest.$ac_ext <<_ACEOF
  31865. /* confdefs.h. */
  31866. _ACEOF
  31867. cat confdefs.h >>conftest.$ac_ext
  31868. cat >>conftest.$ac_ext <<_ACEOF
  31869. /* end confdefs.h. */
  31870. int
  31871. main ()
  31872. {
  31873. ;
  31874. ;
  31875. return 0;
  31876. }
  31877. _ACEOF
  31878. rm -f conftest.$ac_objext conftest$ac_exeext
  31879. if { (ac_try="$ac_link"
  31880. case "(($ac_try" in
  31881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31882. *) ac_try_echo=$ac_try;;
  31883. esac
  31884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  31885. $as_echo "$ac_try_echo") >&5
  31886. (eval "$ac_link") 2>conftest.er1
  31887. ac_status=$?
  31888. grep -v '^ *+' conftest.er1 >conftest.err
  31889. rm -f conftest.er1
  31890. cat conftest.err >&5
  31891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31892. (exit $ac_status); } && {
  31893. test -z "$ac_c_werror_flag" ||
  31894. test ! -s conftest.err
  31895. } && test -s conftest$ac_exeext && {
  31896. test "$cross_compiling" = yes ||
  31897. $as_test_x conftest$ac_exeext
  31898. }; then
  31899. PBX_NEON=1
  31900. cat >>confdefs.h <<\_ACEOF
  31901. #define HAVE_NEON 1
  31902. _ACEOF
  31903. else
  31904. $as_echo "$as_me: failed program was:" >&5
  31905. sed 's/^/| /' conftest.$ac_ext >&5
  31906. fi
  31907. rm -rf conftest.dSYM
  31908. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31909. conftest$ac_exeext conftest.$ac_ext
  31910. CPPFLAGS="${saved_cppflags}"
  31911. LIBS="${saved_libs}"
  31912. else
  31913. PBX_NEON=1
  31914. cat >>confdefs.h <<\_ACEOF
  31915. #define HAVE_NEON 1
  31916. _ACEOF
  31917. fi
  31918. fi
  31919. fi
  31920. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  31921. PBX_NEON29=0
  31922. if test -n "$ac_tool_prefix"; then
  31923. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  31924. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  31925. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31926. $as_echo_n "checking for $ac_word... " >&6; }
  31927. if test "${ac_cv_path_CONFIG_NEON29+set}" = set; then
  31928. $as_echo_n "(cached) " >&6
  31929. else
  31930. case $CONFIG_NEON29 in
  31931. [\\/]* | ?:[\\/]*)
  31932. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  31933. ;;
  31934. *)
  31935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31936. as_dummy="${NEON29_DIR}/bin:$PATH"
  31937. for as_dir in $as_dummy
  31938. do
  31939. IFS=$as_save_IFS
  31940. test -z "$as_dir" && as_dir=.
  31941. for ac_exec_ext in '' $ac_executable_extensions; do
  31942. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31943. ac_cv_path_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  31944. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31945. break 2
  31946. fi
  31947. done
  31948. done
  31949. IFS=$as_save_IFS
  31950. ;;
  31951. esac
  31952. fi
  31953. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  31954. if test -n "$CONFIG_NEON29"; then
  31955. { $as_echo "$as_me:$LINENO: result: $CONFIG_NEON29" >&5
  31956. $as_echo "$CONFIG_NEON29" >&6; }
  31957. else
  31958. { $as_echo "$as_me:$LINENO: result: no" >&5
  31959. $as_echo "no" >&6; }
  31960. fi
  31961. fi
  31962. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  31963. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  31964. # Extract the first word of "neon-config", so it can be a program name with args.
  31965. set dummy neon-config; ac_word=$2
  31966. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  31967. $as_echo_n "checking for $ac_word... " >&6; }
  31968. if test "${ac_cv_path_ac_pt_CONFIG_NEON29+set}" = set; then
  31969. $as_echo_n "(cached) " >&6
  31970. else
  31971. case $ac_pt_CONFIG_NEON29 in
  31972. [\\/]* | ?:[\\/]*)
  31973. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  31974. ;;
  31975. *)
  31976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31977. as_dummy="${NEON29_DIR}/bin:$PATH"
  31978. for as_dir in $as_dummy
  31979. do
  31980. IFS=$as_save_IFS
  31981. test -z "$as_dir" && as_dir=.
  31982. for ac_exec_ext in '' $ac_executable_extensions; do
  31983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31984. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  31985. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  31986. break 2
  31987. fi
  31988. done
  31989. done
  31990. IFS=$as_save_IFS
  31991. ;;
  31992. esac
  31993. fi
  31994. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  31995. if test -n "$ac_pt_CONFIG_NEON29"; then
  31996. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_NEON29" >&5
  31997. $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
  31998. else
  31999. { $as_echo "$as_me:$LINENO: result: no" >&5
  32000. $as_echo "no" >&6; }
  32001. fi
  32002. if test "x$ac_pt_CONFIG_NEON29" = x; then
  32003. CONFIG_NEON29="No"
  32004. else
  32005. case $cross_compiling:$ac_tool_warned in
  32006. yes:)
  32007. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  32008. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  32009. ac_tool_warned=yes ;;
  32010. esac
  32011. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  32012. fi
  32013. else
  32014. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  32015. fi
  32016. if test ! "x${CONFIG_NEON29}" = xNo; then
  32017. if test x"" = x ; then A=--cflags ; else A="" ; fi
  32018. NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
  32019. if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
  32020. NEON29_LIB=$(${CONFIG_NEON29} $A)
  32021. if test x"#include <ne_auth.h>" != x ; then
  32022. saved_cppflags="${CPPFLAGS}"
  32023. if test "x${NEON29_DIR}" != "x"; then
  32024. NEON29_INCLUDE="-I${NEON29_DIR}/include"
  32025. fi
  32026. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  32027. saved_libs="${LIBS}"
  32028. LIBS="${NEON29_LIB}"
  32029. cat >conftest.$ac_ext <<_ACEOF
  32030. /* confdefs.h. */
  32031. _ACEOF
  32032. cat confdefs.h >>conftest.$ac_ext
  32033. cat >>conftest.$ac_ext <<_ACEOF
  32034. /* end confdefs.h. */
  32035. #include <ne_auth.h>
  32036. int
  32037. main ()
  32038. {
  32039. #ifndef NE_AUTH_NTLM
  32040. #error Need libneon >= 0.29.0
  32041. #endif;
  32042. ;
  32043. return 0;
  32044. }
  32045. _ACEOF
  32046. rm -f conftest.$ac_objext conftest$ac_exeext
  32047. if { (ac_try="$ac_link"
  32048. case "(($ac_try" in
  32049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32050. *) ac_try_echo=$ac_try;;
  32051. esac
  32052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32053. $as_echo "$ac_try_echo") >&5
  32054. (eval "$ac_link") 2>conftest.er1
  32055. ac_status=$?
  32056. grep -v '^ *+' conftest.er1 >conftest.err
  32057. rm -f conftest.er1
  32058. cat conftest.err >&5
  32059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32060. (exit $ac_status); } && {
  32061. test -z "$ac_c_werror_flag" ||
  32062. test ! -s conftest.err
  32063. } && test -s conftest$ac_exeext && {
  32064. test "$cross_compiling" = yes ||
  32065. $as_test_x conftest$ac_exeext
  32066. }; then
  32067. PBX_NEON29=1
  32068. cat >>confdefs.h <<\_ACEOF
  32069. #define HAVE_NEON29 1
  32070. _ACEOF
  32071. else
  32072. $as_echo "$as_me: failed program was:" >&5
  32073. sed 's/^/| /' conftest.$ac_ext >&5
  32074. fi
  32075. rm -rf conftest.dSYM
  32076. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32077. conftest$ac_exeext conftest.$ac_ext
  32078. CPPFLAGS="${saved_cppflags}"
  32079. LIBS="${saved_libs}"
  32080. else
  32081. PBX_NEON29=1
  32082. cat >>confdefs.h <<\_ACEOF
  32083. #define HAVE_NEON29 1
  32084. _ACEOF
  32085. fi
  32086. fi
  32087. fi
  32088. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  32089. PBX_NETSNMP=0
  32090. if test -n "$ac_tool_prefix"; then
  32091. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  32092. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  32093. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  32094. $as_echo_n "checking for $ac_word... " >&6; }
  32095. if test "${ac_cv_path_CONFIG_NETSNMP+set}" = set; then
  32096. $as_echo_n "(cached) " >&6
  32097. else
  32098. case $CONFIG_NETSNMP in
  32099. [\\/]* | ?:[\\/]*)
  32100. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  32101. ;;
  32102. *)
  32103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32104. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  32105. for as_dir in $as_dummy
  32106. do
  32107. IFS=$as_save_IFS
  32108. test -z "$as_dir" && as_dir=.
  32109. for ac_exec_ext in '' $ac_executable_extensions; do
  32110. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32111. ac_cv_path_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  32112. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32113. break 2
  32114. fi
  32115. done
  32116. done
  32117. IFS=$as_save_IFS
  32118. ;;
  32119. esac
  32120. fi
  32121. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  32122. if test -n "$CONFIG_NETSNMP"; then
  32123. { $as_echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
  32124. $as_echo "$CONFIG_NETSNMP" >&6; }
  32125. else
  32126. { $as_echo "$as_me:$LINENO: result: no" >&5
  32127. $as_echo "no" >&6; }
  32128. fi
  32129. fi
  32130. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  32131. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  32132. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  32133. set dummy net-snmp-config; ac_word=$2
  32134. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  32135. $as_echo_n "checking for $ac_word... " >&6; }
  32136. if test "${ac_cv_path_ac_pt_CONFIG_NETSNMP+set}" = set; then
  32137. $as_echo_n "(cached) " >&6
  32138. else
  32139. case $ac_pt_CONFIG_NETSNMP in
  32140. [\\/]* | ?:[\\/]*)
  32141. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  32142. ;;
  32143. *)
  32144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32145. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  32146. for as_dir in $as_dummy
  32147. do
  32148. IFS=$as_save_IFS
  32149. test -z "$as_dir" && as_dir=.
  32150. for ac_exec_ext in '' $ac_executable_extensions; do
  32151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32152. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  32153. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32154. break 2
  32155. fi
  32156. done
  32157. done
  32158. IFS=$as_save_IFS
  32159. ;;
  32160. esac
  32161. fi
  32162. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  32163. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  32164. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_NETSNMP" >&5
  32165. $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
  32166. else
  32167. { $as_echo "$as_me:$LINENO: result: no" >&5
  32168. $as_echo "no" >&6; }
  32169. fi
  32170. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  32171. CONFIG_NETSNMP="No"
  32172. else
  32173. case $cross_compiling:$ac_tool_warned in
  32174. yes:)
  32175. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  32176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  32177. ac_tool_warned=yes ;;
  32178. esac
  32179. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  32180. fi
  32181. else
  32182. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  32183. fi
  32184. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  32185. if test x"" = x ; then A=--cflags ; else A="" ; fi
  32186. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
  32187. if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
  32188. NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
  32189. if test x"#include <net-snmp/net-snmp-config.h>
  32190. #include <net-snmp/net-snmp-includes.h>
  32191. #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
  32192. saved_cppflags="${CPPFLAGS}"
  32193. if test "x${NETSNMP_DIR}" != "x"; then
  32194. NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
  32195. fi
  32196. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  32197. saved_libs="${LIBS}"
  32198. LIBS="${NETSNMP_LIB}"
  32199. cat >conftest.$ac_ext <<_ACEOF
  32200. /* confdefs.h. */
  32201. _ACEOF
  32202. cat confdefs.h >>conftest.$ac_ext
  32203. cat >>conftest.$ac_ext <<_ACEOF
  32204. /* end confdefs.h. */
  32205. #include <net-snmp/net-snmp-config.h>
  32206. #include <net-snmp/net-snmp-includes.h>
  32207. #include <net-snmp/agent/net-snmp-agent-includes.h>
  32208. int
  32209. main ()
  32210. {
  32211. int callback = snmp_register_callback(0, 0, NULL, NULL);
  32212. ;
  32213. return 0;
  32214. }
  32215. _ACEOF
  32216. rm -f conftest.$ac_objext conftest$ac_exeext
  32217. if { (ac_try="$ac_link"
  32218. case "(($ac_try" in
  32219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32220. *) ac_try_echo=$ac_try;;
  32221. esac
  32222. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32223. $as_echo "$ac_try_echo") >&5
  32224. (eval "$ac_link") 2>conftest.er1
  32225. ac_status=$?
  32226. grep -v '^ *+' conftest.er1 >conftest.err
  32227. rm -f conftest.er1
  32228. cat conftest.err >&5
  32229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32230. (exit $ac_status); } && {
  32231. test -z "$ac_c_werror_flag" ||
  32232. test ! -s conftest.err
  32233. } && test -s conftest$ac_exeext && {
  32234. test "$cross_compiling" = yes ||
  32235. $as_test_x conftest$ac_exeext
  32236. }; then
  32237. PBX_NETSNMP=1
  32238. cat >>confdefs.h <<\_ACEOF
  32239. #define HAVE_NETSNMP 1
  32240. _ACEOF
  32241. else
  32242. $as_echo "$as_me: failed program was:" >&5
  32243. sed 's/^/| /' conftest.$ac_ext >&5
  32244. fi
  32245. rm -rf conftest.dSYM
  32246. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32247. conftest$ac_exeext conftest.$ac_ext
  32248. CPPFLAGS="${saved_cppflags}"
  32249. LIBS="${saved_libs}"
  32250. else
  32251. PBX_NETSNMP=1
  32252. cat >>confdefs.h <<\_ACEOF
  32253. #define HAVE_NETSNMP 1
  32254. _ACEOF
  32255. fi
  32256. fi
  32257. fi
  32258. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  32259. pbxlibdir=""
  32260. # if --with-NEWT=DIR has been specified, use it.
  32261. if test "x${NEWT_DIR}" != "x"; then
  32262. if test -d ${NEWT_DIR}/lib; then
  32263. pbxlibdir="-L${NEWT_DIR}/lib"
  32264. else
  32265. pbxlibdir="-L${NEWT_DIR}"
  32266. fi
  32267. fi
  32268. pbxfuncname="newtBell"
  32269. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  32270. AST_NEWT_FOUND=yes
  32271. else
  32272. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  32273. CFLAGS="${CFLAGS} "
  32274. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  32275. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
  32276. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  32277. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  32278. $as_echo_n "(cached) " >&6
  32279. else
  32280. ac_check_lib_save_LIBS=$LIBS
  32281. LIBS="-lnewt ${pbxlibdir} $LIBS"
  32282. cat >conftest.$ac_ext <<_ACEOF
  32283. /* confdefs.h. */
  32284. _ACEOF
  32285. cat confdefs.h >>conftest.$ac_ext
  32286. cat >>conftest.$ac_ext <<_ACEOF
  32287. /* end confdefs.h. */
  32288. /* Override any GCC internal prototype to avoid an error.
  32289. Use char because int might match the return type of a GCC
  32290. builtin and then its argument prototype would still apply. */
  32291. #ifdef __cplusplus
  32292. extern "C"
  32293. #endif
  32294. char ${pbxfuncname} ();
  32295. int
  32296. main ()
  32297. {
  32298. return ${pbxfuncname} ();
  32299. ;
  32300. return 0;
  32301. }
  32302. _ACEOF
  32303. rm -f conftest.$ac_objext conftest$ac_exeext
  32304. if { (ac_try="$ac_link"
  32305. case "(($ac_try" in
  32306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32307. *) ac_try_echo=$ac_try;;
  32308. esac
  32309. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32310. $as_echo "$ac_try_echo") >&5
  32311. (eval "$ac_link") 2>conftest.er1
  32312. ac_status=$?
  32313. grep -v '^ *+' conftest.er1 >conftest.err
  32314. rm -f conftest.er1
  32315. cat conftest.err >&5
  32316. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32317. (exit $ac_status); } && {
  32318. test -z "$ac_c_werror_flag" ||
  32319. test ! -s conftest.err
  32320. } && test -s conftest$ac_exeext && {
  32321. test "$cross_compiling" = yes ||
  32322. $as_test_x conftest$ac_exeext
  32323. }; then
  32324. eval "$as_ac_Lib=yes"
  32325. else
  32326. $as_echo "$as_me: failed program was:" >&5
  32327. sed 's/^/| /' conftest.$ac_ext >&5
  32328. eval "$as_ac_Lib=no"
  32329. fi
  32330. rm -rf conftest.dSYM
  32331. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32332. conftest$ac_exeext conftest.$ac_ext
  32333. LIBS=$ac_check_lib_save_LIBS
  32334. fi
  32335. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  32336. $as_echo "$as_val"'`
  32337. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32338. $as_echo "$ac_res" >&6; }
  32339. as_val=`eval 'as_val=${'$as_ac_Lib'}
  32340. $as_echo "$as_val"'`
  32341. if test "x$as_val" = x""yes; then
  32342. AST_NEWT_FOUND=yes
  32343. else
  32344. AST_NEWT_FOUND=no
  32345. fi
  32346. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  32347. fi
  32348. # now check for the header.
  32349. if test "${AST_NEWT_FOUND}" = "yes"; then
  32350. NEWT_LIB="${pbxlibdir} -lnewt "
  32351. # if --with-NEWT=DIR has been specified, use it.
  32352. if test "x${NEWT_DIR}" != "x"; then
  32353. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  32354. fi
  32355. NEWT_INCLUDE="${NEWT_INCLUDE} "
  32356. if test "xnewt.h" = "x" ; then # no header, assume found
  32357. NEWT_HEADER_FOUND="1"
  32358. else # check for the header
  32359. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32360. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  32361. if test "${ac_cv_header_newt_h+set}" = set; then
  32362. { $as_echo "$as_me:$LINENO: checking for newt.h" >&5
  32363. $as_echo_n "checking for newt.h... " >&6; }
  32364. if test "${ac_cv_header_newt_h+set}" = set; then
  32365. $as_echo_n "(cached) " >&6
  32366. fi
  32367. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
  32368. $as_echo "$ac_cv_header_newt_h" >&6; }
  32369. else
  32370. # Is the header compilable?
  32371. { $as_echo "$as_me:$LINENO: checking newt.h usability" >&5
  32372. $as_echo_n "checking newt.h usability... " >&6; }
  32373. cat >conftest.$ac_ext <<_ACEOF
  32374. /* confdefs.h. */
  32375. _ACEOF
  32376. cat confdefs.h >>conftest.$ac_ext
  32377. cat >>conftest.$ac_ext <<_ACEOF
  32378. /* end confdefs.h. */
  32379. $ac_includes_default
  32380. #include <newt.h>
  32381. _ACEOF
  32382. rm -f conftest.$ac_objext
  32383. if { (ac_try="$ac_compile"
  32384. case "(($ac_try" in
  32385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32386. *) ac_try_echo=$ac_try;;
  32387. esac
  32388. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32389. $as_echo "$ac_try_echo") >&5
  32390. (eval "$ac_compile") 2>conftest.er1
  32391. ac_status=$?
  32392. grep -v '^ *+' conftest.er1 >conftest.err
  32393. rm -f conftest.er1
  32394. cat conftest.err >&5
  32395. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32396. (exit $ac_status); } && {
  32397. test -z "$ac_c_werror_flag" ||
  32398. test ! -s conftest.err
  32399. } && test -s conftest.$ac_objext; then
  32400. ac_header_compiler=yes
  32401. else
  32402. $as_echo "$as_me: failed program was:" >&5
  32403. sed 's/^/| /' conftest.$ac_ext >&5
  32404. ac_header_compiler=no
  32405. fi
  32406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32407. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32408. $as_echo "$ac_header_compiler" >&6; }
  32409. # Is the header present?
  32410. { $as_echo "$as_me:$LINENO: checking newt.h presence" >&5
  32411. $as_echo_n "checking newt.h presence... " >&6; }
  32412. cat >conftest.$ac_ext <<_ACEOF
  32413. /* confdefs.h. */
  32414. _ACEOF
  32415. cat confdefs.h >>conftest.$ac_ext
  32416. cat >>conftest.$ac_ext <<_ACEOF
  32417. /* end confdefs.h. */
  32418. #include <newt.h>
  32419. _ACEOF
  32420. if { (ac_try="$ac_cpp conftest.$ac_ext"
  32421. case "(($ac_try" in
  32422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32423. *) ac_try_echo=$ac_try;;
  32424. esac
  32425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32426. $as_echo "$ac_try_echo") >&5
  32427. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32428. ac_status=$?
  32429. grep -v '^ *+' conftest.er1 >conftest.err
  32430. rm -f conftest.er1
  32431. cat conftest.err >&5
  32432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32433. (exit $ac_status); } >/dev/null && {
  32434. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32435. test ! -s conftest.err
  32436. }; then
  32437. ac_header_preproc=yes
  32438. else
  32439. $as_echo "$as_me: failed program was:" >&5
  32440. sed 's/^/| /' conftest.$ac_ext >&5
  32441. ac_header_preproc=no
  32442. fi
  32443. rm -f conftest.err conftest.$ac_ext
  32444. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32445. $as_echo "$ac_header_preproc" >&6; }
  32446. # So? What about this header?
  32447. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32448. yes:no: )
  32449. { $as_echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32450. $as_echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32451. { $as_echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
  32452. $as_echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
  32453. ac_header_preproc=yes
  32454. ;;
  32455. no:yes:* )
  32456. { $as_echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
  32457. $as_echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
  32458. { $as_echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
  32459. $as_echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
  32460. { $as_echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
  32461. $as_echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
  32462. { $as_echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
  32463. $as_echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
  32464. { $as_echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
  32465. $as_echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
  32466. { $as_echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
  32467. $as_echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
  32468. ( cat <<\_ASBOX
  32469. ## ------------------------------------------ ##
  32470. ## Report this to https://issues.asterisk.org ##
  32471. ## ------------------------------------------ ##
  32472. _ASBOX
  32473. ) | sed "s/^/$as_me: WARNING: /" >&2
  32474. ;;
  32475. esac
  32476. { $as_echo "$as_me:$LINENO: checking for newt.h" >&5
  32477. $as_echo_n "checking for newt.h... " >&6; }
  32478. if test "${ac_cv_header_newt_h+set}" = set; then
  32479. $as_echo_n "(cached) " >&6
  32480. else
  32481. ac_cv_header_newt_h=$ac_header_preproc
  32482. fi
  32483. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
  32484. $as_echo "$ac_cv_header_newt_h" >&6; }
  32485. fi
  32486. if test "x$ac_cv_header_newt_h" = x""yes; then
  32487. NEWT_HEADER_FOUND=1
  32488. else
  32489. NEWT_HEADER_FOUND=0
  32490. fi
  32491. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  32492. fi
  32493. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  32494. NEWT_LIB=""
  32495. NEWT_INCLUDE=""
  32496. else
  32497. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  32498. NEWT_LIB=""
  32499. fi
  32500. PBX_NEWT=1
  32501. cat >>confdefs.h <<_ACEOF
  32502. #define HAVE_NEWT 1
  32503. _ACEOF
  32504. fi
  32505. fi
  32506. fi
  32507. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  32508. pbxlibdir=""
  32509. # if --with-UNIXODBC=DIR has been specified, use it.
  32510. if test "x${UNIXODBC_DIR}" != "x"; then
  32511. if test -d ${UNIXODBC_DIR}/lib; then
  32512. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  32513. else
  32514. pbxlibdir="-L${UNIXODBC_DIR}"
  32515. fi
  32516. fi
  32517. pbxfuncname="SQLConnect"
  32518. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  32519. AST_UNIXODBC_FOUND=yes
  32520. else
  32521. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  32522. CFLAGS="${CFLAGS} "
  32523. as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
  32524. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
  32525. $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
  32526. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  32527. $as_echo_n "(cached) " >&6
  32528. else
  32529. ac_check_lib_save_LIBS=$LIBS
  32530. LIBS="-lodbc ${pbxlibdir} $LIBS"
  32531. cat >conftest.$ac_ext <<_ACEOF
  32532. /* confdefs.h. */
  32533. _ACEOF
  32534. cat confdefs.h >>conftest.$ac_ext
  32535. cat >>conftest.$ac_ext <<_ACEOF
  32536. /* end confdefs.h. */
  32537. /* Override any GCC internal prototype to avoid an error.
  32538. Use char because int might match the return type of a GCC
  32539. builtin and then its argument prototype would still apply. */
  32540. #ifdef __cplusplus
  32541. extern "C"
  32542. #endif
  32543. char ${pbxfuncname} ();
  32544. int
  32545. main ()
  32546. {
  32547. return ${pbxfuncname} ();
  32548. ;
  32549. return 0;
  32550. }
  32551. _ACEOF
  32552. rm -f conftest.$ac_objext conftest$ac_exeext
  32553. if { (ac_try="$ac_link"
  32554. case "(($ac_try" in
  32555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32556. *) ac_try_echo=$ac_try;;
  32557. esac
  32558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32559. $as_echo "$ac_try_echo") >&5
  32560. (eval "$ac_link") 2>conftest.er1
  32561. ac_status=$?
  32562. grep -v '^ *+' conftest.er1 >conftest.err
  32563. rm -f conftest.er1
  32564. cat conftest.err >&5
  32565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32566. (exit $ac_status); } && {
  32567. test -z "$ac_c_werror_flag" ||
  32568. test ! -s conftest.err
  32569. } && test -s conftest$ac_exeext && {
  32570. test "$cross_compiling" = yes ||
  32571. $as_test_x conftest$ac_exeext
  32572. }; then
  32573. eval "$as_ac_Lib=yes"
  32574. else
  32575. $as_echo "$as_me: failed program was:" >&5
  32576. sed 's/^/| /' conftest.$ac_ext >&5
  32577. eval "$as_ac_Lib=no"
  32578. fi
  32579. rm -rf conftest.dSYM
  32580. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32581. conftest$ac_exeext conftest.$ac_ext
  32582. LIBS=$ac_check_lib_save_LIBS
  32583. fi
  32584. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  32585. $as_echo "$as_val"'`
  32586. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32587. $as_echo "$ac_res" >&6; }
  32588. as_val=`eval 'as_val=${'$as_ac_Lib'}
  32589. $as_echo "$as_val"'`
  32590. if test "x$as_val" = x""yes; then
  32591. AST_UNIXODBC_FOUND=yes
  32592. else
  32593. AST_UNIXODBC_FOUND=no
  32594. fi
  32595. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  32596. fi
  32597. # now check for the header.
  32598. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  32599. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  32600. # if --with-UNIXODBC=DIR has been specified, use it.
  32601. if test "x${UNIXODBC_DIR}" != "x"; then
  32602. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  32603. fi
  32604. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  32605. if test "xsql.h" = "x" ; then # no header, assume found
  32606. UNIXODBC_HEADER_FOUND="1"
  32607. else # check for the header
  32608. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32609. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  32610. if test "${ac_cv_header_sql_h+set}" = set; then
  32611. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  32612. $as_echo_n "checking for sql.h... " >&6; }
  32613. if test "${ac_cv_header_sql_h+set}" = set; then
  32614. $as_echo_n "(cached) " >&6
  32615. fi
  32616. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  32617. $as_echo "$ac_cv_header_sql_h" >&6; }
  32618. else
  32619. # Is the header compilable?
  32620. { $as_echo "$as_me:$LINENO: checking sql.h usability" >&5
  32621. $as_echo_n "checking sql.h usability... " >&6; }
  32622. cat >conftest.$ac_ext <<_ACEOF
  32623. /* confdefs.h. */
  32624. _ACEOF
  32625. cat confdefs.h >>conftest.$ac_ext
  32626. cat >>conftest.$ac_ext <<_ACEOF
  32627. /* end confdefs.h. */
  32628. $ac_includes_default
  32629. #include <sql.h>
  32630. _ACEOF
  32631. rm -f conftest.$ac_objext
  32632. if { (ac_try="$ac_compile"
  32633. case "(($ac_try" in
  32634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32635. *) ac_try_echo=$ac_try;;
  32636. esac
  32637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32638. $as_echo "$ac_try_echo") >&5
  32639. (eval "$ac_compile") 2>conftest.er1
  32640. ac_status=$?
  32641. grep -v '^ *+' conftest.er1 >conftest.err
  32642. rm -f conftest.er1
  32643. cat conftest.err >&5
  32644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32645. (exit $ac_status); } && {
  32646. test -z "$ac_c_werror_flag" ||
  32647. test ! -s conftest.err
  32648. } && test -s conftest.$ac_objext; then
  32649. ac_header_compiler=yes
  32650. else
  32651. $as_echo "$as_me: failed program was:" >&5
  32652. sed 's/^/| /' conftest.$ac_ext >&5
  32653. ac_header_compiler=no
  32654. fi
  32655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32656. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32657. $as_echo "$ac_header_compiler" >&6; }
  32658. # Is the header present?
  32659. { $as_echo "$as_me:$LINENO: checking sql.h presence" >&5
  32660. $as_echo_n "checking sql.h presence... " >&6; }
  32661. cat >conftest.$ac_ext <<_ACEOF
  32662. /* confdefs.h. */
  32663. _ACEOF
  32664. cat confdefs.h >>conftest.$ac_ext
  32665. cat >>conftest.$ac_ext <<_ACEOF
  32666. /* end confdefs.h. */
  32667. #include <sql.h>
  32668. _ACEOF
  32669. if { (ac_try="$ac_cpp conftest.$ac_ext"
  32670. case "(($ac_try" in
  32671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32672. *) ac_try_echo=$ac_try;;
  32673. esac
  32674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32675. $as_echo "$ac_try_echo") >&5
  32676. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32677. ac_status=$?
  32678. grep -v '^ *+' conftest.er1 >conftest.err
  32679. rm -f conftest.er1
  32680. cat conftest.err >&5
  32681. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32682. (exit $ac_status); } >/dev/null && {
  32683. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32684. test ! -s conftest.err
  32685. }; then
  32686. ac_header_preproc=yes
  32687. else
  32688. $as_echo "$as_me: failed program was:" >&5
  32689. sed 's/^/| /' conftest.$ac_ext >&5
  32690. ac_header_preproc=no
  32691. fi
  32692. rm -f conftest.err conftest.$ac_ext
  32693. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32694. $as_echo "$ac_header_preproc" >&6; }
  32695. # So? What about this header?
  32696. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32697. yes:no: )
  32698. { $as_echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
  32699. $as_echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32700. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
  32701. $as_echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
  32702. ac_header_preproc=yes
  32703. ;;
  32704. no:yes:* )
  32705. { $as_echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
  32706. $as_echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
  32707. { $as_echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
  32708. $as_echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
  32709. { $as_echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
  32710. $as_echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
  32711. { $as_echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
  32712. $as_echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
  32713. { $as_echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
  32714. $as_echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
  32715. { $as_echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
  32716. $as_echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
  32717. ( cat <<\_ASBOX
  32718. ## ------------------------------------------ ##
  32719. ## Report this to https://issues.asterisk.org ##
  32720. ## ------------------------------------------ ##
  32721. _ASBOX
  32722. ) | sed "s/^/$as_me: WARNING: /" >&2
  32723. ;;
  32724. esac
  32725. { $as_echo "$as_me:$LINENO: checking for sql.h" >&5
  32726. $as_echo_n "checking for sql.h... " >&6; }
  32727. if test "${ac_cv_header_sql_h+set}" = set; then
  32728. $as_echo_n "(cached) " >&6
  32729. else
  32730. ac_cv_header_sql_h=$ac_header_preproc
  32731. fi
  32732. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
  32733. $as_echo "$ac_cv_header_sql_h" >&6; }
  32734. fi
  32735. if test "x$ac_cv_header_sql_h" = x""yes; then
  32736. UNIXODBC_HEADER_FOUND=1
  32737. else
  32738. UNIXODBC_HEADER_FOUND=0
  32739. fi
  32740. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  32741. fi
  32742. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  32743. UNIXODBC_LIB=""
  32744. UNIXODBC_INCLUDE=""
  32745. else
  32746. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  32747. UNIXODBC_LIB=""
  32748. fi
  32749. PBX_UNIXODBC=1
  32750. cat >>confdefs.h <<_ACEOF
  32751. #define HAVE_UNIXODBC 1
  32752. _ACEOF
  32753. fi
  32754. fi
  32755. fi
  32756. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  32757. pbxlibdir=""
  32758. # if --with-OGG=DIR has been specified, use it.
  32759. if test "x${OGG_DIR}" != "x"; then
  32760. if test -d ${OGG_DIR}/lib; then
  32761. pbxlibdir="-L${OGG_DIR}/lib"
  32762. else
  32763. pbxlibdir="-L${OGG_DIR}"
  32764. fi
  32765. fi
  32766. pbxfuncname="ogg_sync_init"
  32767. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  32768. AST_OGG_FOUND=yes
  32769. else
  32770. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  32771. CFLAGS="${CFLAGS} "
  32772. as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
  32773. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
  32774. $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
  32775. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  32776. $as_echo_n "(cached) " >&6
  32777. else
  32778. ac_check_lib_save_LIBS=$LIBS
  32779. LIBS="-logg ${pbxlibdir} $LIBS"
  32780. cat >conftest.$ac_ext <<_ACEOF
  32781. /* confdefs.h. */
  32782. _ACEOF
  32783. cat confdefs.h >>conftest.$ac_ext
  32784. cat >>conftest.$ac_ext <<_ACEOF
  32785. /* end confdefs.h. */
  32786. /* Override any GCC internal prototype to avoid an error.
  32787. Use char because int might match the return type of a GCC
  32788. builtin and then its argument prototype would still apply. */
  32789. #ifdef __cplusplus
  32790. extern "C"
  32791. #endif
  32792. char ${pbxfuncname} ();
  32793. int
  32794. main ()
  32795. {
  32796. return ${pbxfuncname} ();
  32797. ;
  32798. return 0;
  32799. }
  32800. _ACEOF
  32801. rm -f conftest.$ac_objext conftest$ac_exeext
  32802. if { (ac_try="$ac_link"
  32803. case "(($ac_try" in
  32804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32805. *) ac_try_echo=$ac_try;;
  32806. esac
  32807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32808. $as_echo "$ac_try_echo") >&5
  32809. (eval "$ac_link") 2>conftest.er1
  32810. ac_status=$?
  32811. grep -v '^ *+' conftest.er1 >conftest.err
  32812. rm -f conftest.er1
  32813. cat conftest.err >&5
  32814. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32815. (exit $ac_status); } && {
  32816. test -z "$ac_c_werror_flag" ||
  32817. test ! -s conftest.err
  32818. } && test -s conftest$ac_exeext && {
  32819. test "$cross_compiling" = yes ||
  32820. $as_test_x conftest$ac_exeext
  32821. }; then
  32822. eval "$as_ac_Lib=yes"
  32823. else
  32824. $as_echo "$as_me: failed program was:" >&5
  32825. sed 's/^/| /' conftest.$ac_ext >&5
  32826. eval "$as_ac_Lib=no"
  32827. fi
  32828. rm -rf conftest.dSYM
  32829. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32830. conftest$ac_exeext conftest.$ac_ext
  32831. LIBS=$ac_check_lib_save_LIBS
  32832. fi
  32833. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  32834. $as_echo "$as_val"'`
  32835. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  32836. $as_echo "$ac_res" >&6; }
  32837. as_val=`eval 'as_val=${'$as_ac_Lib'}
  32838. $as_echo "$as_val"'`
  32839. if test "x$as_val" = x""yes; then
  32840. AST_OGG_FOUND=yes
  32841. else
  32842. AST_OGG_FOUND=no
  32843. fi
  32844. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  32845. fi
  32846. # now check for the header.
  32847. if test "${AST_OGG_FOUND}" = "yes"; then
  32848. OGG_LIB="${pbxlibdir} -logg "
  32849. # if --with-OGG=DIR has been specified, use it.
  32850. if test "x${OGG_DIR}" != "x"; then
  32851. OGG_INCLUDE="-I${OGG_DIR}/include"
  32852. fi
  32853. OGG_INCLUDE="${OGG_INCLUDE} "
  32854. if test "x" = "x" ; then # no header, assume found
  32855. OGG_HEADER_FOUND="1"
  32856. else # check for the header
  32857. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  32858. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  32859. if test "${ac_cv_header_+set}" = set; then
  32860. { $as_echo "$as_me:$LINENO: checking for " >&5
  32861. $as_echo_n "checking for ... " >&6; }
  32862. if test "${ac_cv_header_+set}" = set; then
  32863. $as_echo_n "(cached) " >&6
  32864. fi
  32865. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  32866. $as_echo "$ac_cv_header_" >&6; }
  32867. else
  32868. # Is the header compilable?
  32869. { $as_echo "$as_me:$LINENO: checking usability" >&5
  32870. $as_echo_n "checking usability... " >&6; }
  32871. cat >conftest.$ac_ext <<_ACEOF
  32872. /* confdefs.h. */
  32873. _ACEOF
  32874. cat confdefs.h >>conftest.$ac_ext
  32875. cat >>conftest.$ac_ext <<_ACEOF
  32876. /* end confdefs.h. */
  32877. $ac_includes_default
  32878. #include <>
  32879. _ACEOF
  32880. rm -f conftest.$ac_objext
  32881. if { (ac_try="$ac_compile"
  32882. case "(($ac_try" in
  32883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32884. *) ac_try_echo=$ac_try;;
  32885. esac
  32886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32887. $as_echo "$ac_try_echo") >&5
  32888. (eval "$ac_compile") 2>conftest.er1
  32889. ac_status=$?
  32890. grep -v '^ *+' conftest.er1 >conftest.err
  32891. rm -f conftest.er1
  32892. cat conftest.err >&5
  32893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32894. (exit $ac_status); } && {
  32895. test -z "$ac_c_werror_flag" ||
  32896. test ! -s conftest.err
  32897. } && test -s conftest.$ac_objext; then
  32898. ac_header_compiler=yes
  32899. else
  32900. $as_echo "$as_me: failed program was:" >&5
  32901. sed 's/^/| /' conftest.$ac_ext >&5
  32902. ac_header_compiler=no
  32903. fi
  32904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32905. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32906. $as_echo "$ac_header_compiler" >&6; }
  32907. # Is the header present?
  32908. { $as_echo "$as_me:$LINENO: checking presence" >&5
  32909. $as_echo_n "checking presence... " >&6; }
  32910. cat >conftest.$ac_ext <<_ACEOF
  32911. /* confdefs.h. */
  32912. _ACEOF
  32913. cat confdefs.h >>conftest.$ac_ext
  32914. cat >>conftest.$ac_ext <<_ACEOF
  32915. /* end confdefs.h. */
  32916. #include <>
  32917. _ACEOF
  32918. if { (ac_try="$ac_cpp conftest.$ac_ext"
  32919. case "(($ac_try" in
  32920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32921. *) ac_try_echo=$ac_try;;
  32922. esac
  32923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32924. $as_echo "$ac_try_echo") >&5
  32925. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32926. ac_status=$?
  32927. grep -v '^ *+' conftest.er1 >conftest.err
  32928. rm -f conftest.er1
  32929. cat conftest.err >&5
  32930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32931. (exit $ac_status); } >/dev/null && {
  32932. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32933. test ! -s conftest.err
  32934. }; then
  32935. ac_header_preproc=yes
  32936. else
  32937. $as_echo "$as_me: failed program was:" >&5
  32938. sed 's/^/| /' conftest.$ac_ext >&5
  32939. ac_header_preproc=no
  32940. fi
  32941. rm -f conftest.err conftest.$ac_ext
  32942. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32943. $as_echo "$ac_header_preproc" >&6; }
  32944. # So? What about this header?
  32945. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32946. yes:no: )
  32947. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  32948. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  32949. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  32950. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  32951. ac_header_preproc=yes
  32952. ;;
  32953. no:yes:* )
  32954. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  32955. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  32956. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  32957. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  32958. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  32959. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  32960. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  32961. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  32962. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  32963. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  32964. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  32965. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  32966. ( cat <<\_ASBOX
  32967. ## ------------------------------------------ ##
  32968. ## Report this to https://issues.asterisk.org ##
  32969. ## ------------------------------------------ ##
  32970. _ASBOX
  32971. ) | sed "s/^/$as_me: WARNING: /" >&2
  32972. ;;
  32973. esac
  32974. { $as_echo "$as_me:$LINENO: checking for " >&5
  32975. $as_echo_n "checking for ... " >&6; }
  32976. if test "${ac_cv_header_+set}" = set; then
  32977. $as_echo_n "(cached) " >&6
  32978. else
  32979. ac_cv_header_=$ac_header_preproc
  32980. fi
  32981. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  32982. $as_echo "$ac_cv_header_" >&6; }
  32983. fi
  32984. if test "x$ac_cv_header_" = x""yes; then
  32985. OGG_HEADER_FOUND=1
  32986. else
  32987. OGG_HEADER_FOUND=0
  32988. fi
  32989. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  32990. fi
  32991. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  32992. OGG_LIB=""
  32993. OGG_INCLUDE=""
  32994. else
  32995. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  32996. OGG_LIB=""
  32997. fi
  32998. PBX_OGG=1
  32999. cat >>confdefs.h <<_ACEOF
  33000. #define HAVE_OGG 1
  33001. _ACEOF
  33002. fi
  33003. fi
  33004. fi
  33005. # Non-glibc platforms require libexecinfo for backtrace support
  33006. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  33007. pbxlibdir=""
  33008. # if --with-BKTR=DIR has been specified, use it.
  33009. if test "x${BKTR_DIR}" != "x"; then
  33010. if test -d ${BKTR_DIR}/lib; then
  33011. pbxlibdir="-L${BKTR_DIR}/lib"
  33012. else
  33013. pbxlibdir="-L${BKTR_DIR}"
  33014. fi
  33015. fi
  33016. pbxfuncname="backtrace"
  33017. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33018. AST_BKTR_FOUND=yes
  33019. else
  33020. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33021. CFLAGS="${CFLAGS} "
  33022. as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
  33023. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
  33024. $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
  33025. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33026. $as_echo_n "(cached) " >&6
  33027. else
  33028. ac_check_lib_save_LIBS=$LIBS
  33029. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  33030. cat >conftest.$ac_ext <<_ACEOF
  33031. /* confdefs.h. */
  33032. _ACEOF
  33033. cat confdefs.h >>conftest.$ac_ext
  33034. cat >>conftest.$ac_ext <<_ACEOF
  33035. /* end confdefs.h. */
  33036. /* Override any GCC internal prototype to avoid an error.
  33037. Use char because int might match the return type of a GCC
  33038. builtin and then its argument prototype would still apply. */
  33039. #ifdef __cplusplus
  33040. extern "C"
  33041. #endif
  33042. char ${pbxfuncname} ();
  33043. int
  33044. main ()
  33045. {
  33046. return ${pbxfuncname} ();
  33047. ;
  33048. return 0;
  33049. }
  33050. _ACEOF
  33051. rm -f conftest.$ac_objext conftest$ac_exeext
  33052. if { (ac_try="$ac_link"
  33053. case "(($ac_try" in
  33054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33055. *) ac_try_echo=$ac_try;;
  33056. esac
  33057. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33058. $as_echo "$ac_try_echo") >&5
  33059. (eval "$ac_link") 2>conftest.er1
  33060. ac_status=$?
  33061. grep -v '^ *+' conftest.er1 >conftest.err
  33062. rm -f conftest.er1
  33063. cat conftest.err >&5
  33064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33065. (exit $ac_status); } && {
  33066. test -z "$ac_c_werror_flag" ||
  33067. test ! -s conftest.err
  33068. } && test -s conftest$ac_exeext && {
  33069. test "$cross_compiling" = yes ||
  33070. $as_test_x conftest$ac_exeext
  33071. }; then
  33072. eval "$as_ac_Lib=yes"
  33073. else
  33074. $as_echo "$as_me: failed program was:" >&5
  33075. sed 's/^/| /' conftest.$ac_ext >&5
  33076. eval "$as_ac_Lib=no"
  33077. fi
  33078. rm -rf conftest.dSYM
  33079. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33080. conftest$ac_exeext conftest.$ac_ext
  33081. LIBS=$ac_check_lib_save_LIBS
  33082. fi
  33083. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33084. $as_echo "$as_val"'`
  33085. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33086. $as_echo "$ac_res" >&6; }
  33087. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33088. $as_echo "$as_val"'`
  33089. if test "x$as_val" = x""yes; then
  33090. AST_BKTR_FOUND=yes
  33091. else
  33092. AST_BKTR_FOUND=no
  33093. fi
  33094. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33095. fi
  33096. # now check for the header.
  33097. if test "${AST_BKTR_FOUND}" = "yes"; then
  33098. BKTR_LIB="${pbxlibdir} -lexecinfo "
  33099. # if --with-BKTR=DIR has been specified, use it.
  33100. if test "x${BKTR_DIR}" != "x"; then
  33101. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  33102. fi
  33103. BKTR_INCLUDE="${BKTR_INCLUDE} "
  33104. if test "xexecinfo.h" = "x" ; then # no header, assume found
  33105. BKTR_HEADER_FOUND="1"
  33106. else # check for the header
  33107. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33108. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  33109. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33110. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  33111. $as_echo_n "checking for execinfo.h... " >&6; }
  33112. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33113. $as_echo_n "(cached) " >&6
  33114. fi
  33115. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  33116. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  33117. else
  33118. # Is the header compilable?
  33119. { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
  33120. $as_echo_n "checking execinfo.h usability... " >&6; }
  33121. cat >conftest.$ac_ext <<_ACEOF
  33122. /* confdefs.h. */
  33123. _ACEOF
  33124. cat confdefs.h >>conftest.$ac_ext
  33125. cat >>conftest.$ac_ext <<_ACEOF
  33126. /* end confdefs.h. */
  33127. $ac_includes_default
  33128. #include <execinfo.h>
  33129. _ACEOF
  33130. rm -f conftest.$ac_objext
  33131. if { (ac_try="$ac_compile"
  33132. case "(($ac_try" in
  33133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33134. *) ac_try_echo=$ac_try;;
  33135. esac
  33136. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33137. $as_echo "$ac_try_echo") >&5
  33138. (eval "$ac_compile") 2>conftest.er1
  33139. ac_status=$?
  33140. grep -v '^ *+' conftest.er1 >conftest.err
  33141. rm -f conftest.er1
  33142. cat conftest.err >&5
  33143. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33144. (exit $ac_status); } && {
  33145. test -z "$ac_c_werror_flag" ||
  33146. test ! -s conftest.err
  33147. } && test -s conftest.$ac_objext; then
  33148. ac_header_compiler=yes
  33149. else
  33150. $as_echo "$as_me: failed program was:" >&5
  33151. sed 's/^/| /' conftest.$ac_ext >&5
  33152. ac_header_compiler=no
  33153. fi
  33154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33155. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33156. $as_echo "$ac_header_compiler" >&6; }
  33157. # Is the header present?
  33158. { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
  33159. $as_echo_n "checking execinfo.h presence... " >&6; }
  33160. cat >conftest.$ac_ext <<_ACEOF
  33161. /* confdefs.h. */
  33162. _ACEOF
  33163. cat confdefs.h >>conftest.$ac_ext
  33164. cat >>conftest.$ac_ext <<_ACEOF
  33165. /* end confdefs.h. */
  33166. #include <execinfo.h>
  33167. _ACEOF
  33168. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33169. case "(($ac_try" in
  33170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33171. *) ac_try_echo=$ac_try;;
  33172. esac
  33173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33174. $as_echo "$ac_try_echo") >&5
  33175. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33176. ac_status=$?
  33177. grep -v '^ *+' conftest.er1 >conftest.err
  33178. rm -f conftest.er1
  33179. cat conftest.err >&5
  33180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33181. (exit $ac_status); } >/dev/null && {
  33182. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33183. test ! -s conftest.err
  33184. }; then
  33185. ac_header_preproc=yes
  33186. else
  33187. $as_echo "$as_me: failed program was:" >&5
  33188. sed 's/^/| /' conftest.$ac_ext >&5
  33189. ac_header_preproc=no
  33190. fi
  33191. rm -f conftest.err conftest.$ac_ext
  33192. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33193. $as_echo "$ac_header_preproc" >&6; }
  33194. # So? What about this header?
  33195. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33196. yes:no: )
  33197. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33198. $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33199. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
  33200. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
  33201. ac_header_preproc=yes
  33202. ;;
  33203. no:yes:* )
  33204. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
  33205. $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
  33206. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
  33207. $as_echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
  33208. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
  33209. $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
  33210. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
  33211. $as_echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33212. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
  33213. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
  33214. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
  33215. $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
  33216. ( cat <<\_ASBOX
  33217. ## ------------------------------------------ ##
  33218. ## Report this to https://issues.asterisk.org ##
  33219. ## ------------------------------------------ ##
  33220. _ASBOX
  33221. ) | sed "s/^/$as_me: WARNING: /" >&2
  33222. ;;
  33223. esac
  33224. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  33225. $as_echo_n "checking for execinfo.h... " >&6; }
  33226. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33227. $as_echo_n "(cached) " >&6
  33228. else
  33229. ac_cv_header_execinfo_h=$ac_header_preproc
  33230. fi
  33231. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  33232. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  33233. fi
  33234. if test "x$ac_cv_header_execinfo_h" = x""yes; then
  33235. BKTR_HEADER_FOUND=1
  33236. else
  33237. BKTR_HEADER_FOUND=0
  33238. fi
  33239. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33240. fi
  33241. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  33242. BKTR_LIB=""
  33243. BKTR_INCLUDE=""
  33244. else
  33245. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33246. BKTR_LIB=""
  33247. fi
  33248. PBX_BKTR=1
  33249. cat >>confdefs.h <<_ACEOF
  33250. #define HAVE_BKTR 1
  33251. _ACEOF
  33252. fi
  33253. fi
  33254. fi
  33255. # Linux, however, has backtrace directly in glibc
  33256. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  33257. pbxlibdir=""
  33258. # if --with-BKTR=DIR has been specified, use it.
  33259. if test "x${BKTR_DIR}" != "x"; then
  33260. if test -d ${BKTR_DIR}/lib; then
  33261. pbxlibdir="-L${BKTR_DIR}/lib"
  33262. else
  33263. pbxlibdir="-L${BKTR_DIR}"
  33264. fi
  33265. fi
  33266. pbxfuncname="backtrace"
  33267. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33268. AST_BKTR_FOUND=yes
  33269. else
  33270. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33271. CFLAGS="${CFLAGS} "
  33272. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  33273. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
  33274. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  33275. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33276. $as_echo_n "(cached) " >&6
  33277. else
  33278. ac_check_lib_save_LIBS=$LIBS
  33279. LIBS="-lc ${pbxlibdir} $LIBS"
  33280. cat >conftest.$ac_ext <<_ACEOF
  33281. /* confdefs.h. */
  33282. _ACEOF
  33283. cat confdefs.h >>conftest.$ac_ext
  33284. cat >>conftest.$ac_ext <<_ACEOF
  33285. /* end confdefs.h. */
  33286. /* Override any GCC internal prototype to avoid an error.
  33287. Use char because int might match the return type of a GCC
  33288. builtin and then its argument prototype would still apply. */
  33289. #ifdef __cplusplus
  33290. extern "C"
  33291. #endif
  33292. char ${pbxfuncname} ();
  33293. int
  33294. main ()
  33295. {
  33296. return ${pbxfuncname} ();
  33297. ;
  33298. return 0;
  33299. }
  33300. _ACEOF
  33301. rm -f conftest.$ac_objext conftest$ac_exeext
  33302. if { (ac_try="$ac_link"
  33303. case "(($ac_try" in
  33304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33305. *) ac_try_echo=$ac_try;;
  33306. esac
  33307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33308. $as_echo "$ac_try_echo") >&5
  33309. (eval "$ac_link") 2>conftest.er1
  33310. ac_status=$?
  33311. grep -v '^ *+' conftest.er1 >conftest.err
  33312. rm -f conftest.er1
  33313. cat conftest.err >&5
  33314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33315. (exit $ac_status); } && {
  33316. test -z "$ac_c_werror_flag" ||
  33317. test ! -s conftest.err
  33318. } && test -s conftest$ac_exeext && {
  33319. test "$cross_compiling" = yes ||
  33320. $as_test_x conftest$ac_exeext
  33321. }; then
  33322. eval "$as_ac_Lib=yes"
  33323. else
  33324. $as_echo "$as_me: failed program was:" >&5
  33325. sed 's/^/| /' conftest.$ac_ext >&5
  33326. eval "$as_ac_Lib=no"
  33327. fi
  33328. rm -rf conftest.dSYM
  33329. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33330. conftest$ac_exeext conftest.$ac_ext
  33331. LIBS=$ac_check_lib_save_LIBS
  33332. fi
  33333. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33334. $as_echo "$as_val"'`
  33335. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33336. $as_echo "$ac_res" >&6; }
  33337. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33338. $as_echo "$as_val"'`
  33339. if test "x$as_val" = x""yes; then
  33340. AST_BKTR_FOUND=yes
  33341. else
  33342. AST_BKTR_FOUND=no
  33343. fi
  33344. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33345. fi
  33346. # now check for the header.
  33347. if test "${AST_BKTR_FOUND}" = "yes"; then
  33348. BKTR_LIB="${pbxlibdir} -lc "
  33349. # if --with-BKTR=DIR has been specified, use it.
  33350. if test "x${BKTR_DIR}" != "x"; then
  33351. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  33352. fi
  33353. BKTR_INCLUDE="${BKTR_INCLUDE} "
  33354. if test "xexecinfo.h" = "x" ; then # no header, assume found
  33355. BKTR_HEADER_FOUND="1"
  33356. else # check for the header
  33357. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33358. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  33359. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33360. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  33361. $as_echo_n "checking for execinfo.h... " >&6; }
  33362. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33363. $as_echo_n "(cached) " >&6
  33364. fi
  33365. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  33366. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  33367. else
  33368. # Is the header compilable?
  33369. { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
  33370. $as_echo_n "checking execinfo.h usability... " >&6; }
  33371. cat >conftest.$ac_ext <<_ACEOF
  33372. /* confdefs.h. */
  33373. _ACEOF
  33374. cat confdefs.h >>conftest.$ac_ext
  33375. cat >>conftest.$ac_ext <<_ACEOF
  33376. /* end confdefs.h. */
  33377. $ac_includes_default
  33378. #include <execinfo.h>
  33379. _ACEOF
  33380. rm -f conftest.$ac_objext
  33381. if { (ac_try="$ac_compile"
  33382. case "(($ac_try" in
  33383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33384. *) ac_try_echo=$ac_try;;
  33385. esac
  33386. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33387. $as_echo "$ac_try_echo") >&5
  33388. (eval "$ac_compile") 2>conftest.er1
  33389. ac_status=$?
  33390. grep -v '^ *+' conftest.er1 >conftest.err
  33391. rm -f conftest.er1
  33392. cat conftest.err >&5
  33393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33394. (exit $ac_status); } && {
  33395. test -z "$ac_c_werror_flag" ||
  33396. test ! -s conftest.err
  33397. } && test -s conftest.$ac_objext; then
  33398. ac_header_compiler=yes
  33399. else
  33400. $as_echo "$as_me: failed program was:" >&5
  33401. sed 's/^/| /' conftest.$ac_ext >&5
  33402. ac_header_compiler=no
  33403. fi
  33404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33405. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33406. $as_echo "$ac_header_compiler" >&6; }
  33407. # Is the header present?
  33408. { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
  33409. $as_echo_n "checking execinfo.h presence... " >&6; }
  33410. cat >conftest.$ac_ext <<_ACEOF
  33411. /* confdefs.h. */
  33412. _ACEOF
  33413. cat confdefs.h >>conftest.$ac_ext
  33414. cat >>conftest.$ac_ext <<_ACEOF
  33415. /* end confdefs.h. */
  33416. #include <execinfo.h>
  33417. _ACEOF
  33418. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33419. case "(($ac_try" in
  33420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33421. *) ac_try_echo=$ac_try;;
  33422. esac
  33423. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33424. $as_echo "$ac_try_echo") >&5
  33425. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33426. ac_status=$?
  33427. grep -v '^ *+' conftest.er1 >conftest.err
  33428. rm -f conftest.er1
  33429. cat conftest.err >&5
  33430. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33431. (exit $ac_status); } >/dev/null && {
  33432. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33433. test ! -s conftest.err
  33434. }; then
  33435. ac_header_preproc=yes
  33436. else
  33437. $as_echo "$as_me: failed program was:" >&5
  33438. sed 's/^/| /' conftest.$ac_ext >&5
  33439. ac_header_preproc=no
  33440. fi
  33441. rm -f conftest.err conftest.$ac_ext
  33442. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33443. $as_echo "$ac_header_preproc" >&6; }
  33444. # So? What about this header?
  33445. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33446. yes:no: )
  33447. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33448. $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33449. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
  33450. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
  33451. ac_header_preproc=yes
  33452. ;;
  33453. no:yes:* )
  33454. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
  33455. $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
  33456. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
  33457. $as_echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
  33458. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
  33459. $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
  33460. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
  33461. $as_echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33462. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
  33463. $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
  33464. { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
  33465. $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
  33466. ( cat <<\_ASBOX
  33467. ## ------------------------------------------ ##
  33468. ## Report this to https://issues.asterisk.org ##
  33469. ## ------------------------------------------ ##
  33470. _ASBOX
  33471. ) | sed "s/^/$as_me: WARNING: /" >&2
  33472. ;;
  33473. esac
  33474. { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
  33475. $as_echo_n "checking for execinfo.h... " >&6; }
  33476. if test "${ac_cv_header_execinfo_h+set}" = set; then
  33477. $as_echo_n "(cached) " >&6
  33478. else
  33479. ac_cv_header_execinfo_h=$ac_header_preproc
  33480. fi
  33481. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
  33482. $as_echo "$ac_cv_header_execinfo_h" >&6; }
  33483. fi
  33484. if test "x$ac_cv_header_execinfo_h" = x""yes; then
  33485. BKTR_HEADER_FOUND=1
  33486. else
  33487. BKTR_HEADER_FOUND=0
  33488. fi
  33489. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33490. fi
  33491. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  33492. BKTR_LIB=""
  33493. BKTR_INCLUDE=""
  33494. else
  33495. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33496. BKTR_LIB=""
  33497. fi
  33498. PBX_BKTR=1
  33499. cat >>confdefs.h <<_ACEOF
  33500. #define HAVE_BKTR 1
  33501. _ACEOF
  33502. fi
  33503. fi
  33504. fi
  33505. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  33506. pbxlibdir=""
  33507. # if --with-BLUETOOTH=DIR has been specified, use it.
  33508. if test "x${BLUETOOTH_DIR}" != "x"; then
  33509. if test -d ${BLUETOOTH_DIR}/lib; then
  33510. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  33511. else
  33512. pbxlibdir="-L${BLUETOOTH_DIR}"
  33513. fi
  33514. fi
  33515. pbxfuncname="ba2str"
  33516. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33517. AST_BLUETOOTH_FOUND=yes
  33518. else
  33519. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33520. CFLAGS="${CFLAGS} "
  33521. as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
  33522. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lbluetooth" >&5
  33523. $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
  33524. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33525. $as_echo_n "(cached) " >&6
  33526. else
  33527. ac_check_lib_save_LIBS=$LIBS
  33528. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  33529. cat >conftest.$ac_ext <<_ACEOF
  33530. /* confdefs.h. */
  33531. _ACEOF
  33532. cat confdefs.h >>conftest.$ac_ext
  33533. cat >>conftest.$ac_ext <<_ACEOF
  33534. /* end confdefs.h. */
  33535. /* Override any GCC internal prototype to avoid an error.
  33536. Use char because int might match the return type of a GCC
  33537. builtin and then its argument prototype would still apply. */
  33538. #ifdef __cplusplus
  33539. extern "C"
  33540. #endif
  33541. char ${pbxfuncname} ();
  33542. int
  33543. main ()
  33544. {
  33545. return ${pbxfuncname} ();
  33546. ;
  33547. return 0;
  33548. }
  33549. _ACEOF
  33550. rm -f conftest.$ac_objext conftest$ac_exeext
  33551. if { (ac_try="$ac_link"
  33552. case "(($ac_try" in
  33553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33554. *) ac_try_echo=$ac_try;;
  33555. esac
  33556. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33557. $as_echo "$ac_try_echo") >&5
  33558. (eval "$ac_link") 2>conftest.er1
  33559. ac_status=$?
  33560. grep -v '^ *+' conftest.er1 >conftest.err
  33561. rm -f conftest.er1
  33562. cat conftest.err >&5
  33563. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33564. (exit $ac_status); } && {
  33565. test -z "$ac_c_werror_flag" ||
  33566. test ! -s conftest.err
  33567. } && test -s conftest$ac_exeext && {
  33568. test "$cross_compiling" = yes ||
  33569. $as_test_x conftest$ac_exeext
  33570. }; then
  33571. eval "$as_ac_Lib=yes"
  33572. else
  33573. $as_echo "$as_me: failed program was:" >&5
  33574. sed 's/^/| /' conftest.$ac_ext >&5
  33575. eval "$as_ac_Lib=no"
  33576. fi
  33577. rm -rf conftest.dSYM
  33578. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33579. conftest$ac_exeext conftest.$ac_ext
  33580. LIBS=$ac_check_lib_save_LIBS
  33581. fi
  33582. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33583. $as_echo "$as_val"'`
  33584. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33585. $as_echo "$ac_res" >&6; }
  33586. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33587. $as_echo "$as_val"'`
  33588. if test "x$as_val" = x""yes; then
  33589. AST_BLUETOOTH_FOUND=yes
  33590. else
  33591. AST_BLUETOOTH_FOUND=no
  33592. fi
  33593. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33594. fi
  33595. # now check for the header.
  33596. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  33597. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  33598. # if --with-BLUETOOTH=DIR has been specified, use it.
  33599. if test "x${BLUETOOTH_DIR}" != "x"; then
  33600. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  33601. fi
  33602. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  33603. if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
  33604. BLUETOOTH_HEADER_FOUND="1"
  33605. else # check for the header
  33606. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33607. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  33608. if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
  33609. { $as_echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
  33610. $as_echo_n "checking for bluetooth/bluetooth.h... " >&6; }
  33611. if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
  33612. $as_echo_n "(cached) " >&6
  33613. fi
  33614. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
  33615. $as_echo "$ac_cv_header_bluetooth_bluetooth_h" >&6; }
  33616. else
  33617. # Is the header compilable?
  33618. { $as_echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
  33619. $as_echo_n "checking bluetooth/bluetooth.h usability... " >&6; }
  33620. cat >conftest.$ac_ext <<_ACEOF
  33621. /* confdefs.h. */
  33622. _ACEOF
  33623. cat confdefs.h >>conftest.$ac_ext
  33624. cat >>conftest.$ac_ext <<_ACEOF
  33625. /* end confdefs.h. */
  33626. $ac_includes_default
  33627. #include <bluetooth/bluetooth.h>
  33628. _ACEOF
  33629. rm -f conftest.$ac_objext
  33630. if { (ac_try="$ac_compile"
  33631. case "(($ac_try" in
  33632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33633. *) ac_try_echo=$ac_try;;
  33634. esac
  33635. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33636. $as_echo "$ac_try_echo") >&5
  33637. (eval "$ac_compile") 2>conftest.er1
  33638. ac_status=$?
  33639. grep -v '^ *+' conftest.er1 >conftest.err
  33640. rm -f conftest.er1
  33641. cat conftest.err >&5
  33642. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33643. (exit $ac_status); } && {
  33644. test -z "$ac_c_werror_flag" ||
  33645. test ! -s conftest.err
  33646. } && test -s conftest.$ac_objext; then
  33647. ac_header_compiler=yes
  33648. else
  33649. $as_echo "$as_me: failed program was:" >&5
  33650. sed 's/^/| /' conftest.$ac_ext >&5
  33651. ac_header_compiler=no
  33652. fi
  33653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33654. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33655. $as_echo "$ac_header_compiler" >&6; }
  33656. # Is the header present?
  33657. { $as_echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
  33658. $as_echo_n "checking bluetooth/bluetooth.h presence... " >&6; }
  33659. cat >conftest.$ac_ext <<_ACEOF
  33660. /* confdefs.h. */
  33661. _ACEOF
  33662. cat confdefs.h >>conftest.$ac_ext
  33663. cat >>conftest.$ac_ext <<_ACEOF
  33664. /* end confdefs.h. */
  33665. #include <bluetooth/bluetooth.h>
  33666. _ACEOF
  33667. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33668. case "(($ac_try" in
  33669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33670. *) ac_try_echo=$ac_try;;
  33671. esac
  33672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33673. $as_echo "$ac_try_echo") >&5
  33674. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33675. ac_status=$?
  33676. grep -v '^ *+' conftest.er1 >conftest.err
  33677. rm -f conftest.er1
  33678. cat conftest.err >&5
  33679. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33680. (exit $ac_status); } >/dev/null && {
  33681. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33682. test ! -s conftest.err
  33683. }; then
  33684. ac_header_preproc=yes
  33685. else
  33686. $as_echo "$as_me: failed program was:" >&5
  33687. sed 's/^/| /' conftest.$ac_ext >&5
  33688. ac_header_preproc=no
  33689. fi
  33690. rm -f conftest.err conftest.$ac_ext
  33691. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33692. $as_echo "$ac_header_preproc" >&6; }
  33693. # So? What about this header?
  33694. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33695. yes:no: )
  33696. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33697. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33698. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
  33699. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
  33700. ac_header_preproc=yes
  33701. ;;
  33702. no:yes:* )
  33703. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
  33704. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
  33705. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
  33706. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
  33707. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
  33708. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
  33709. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
  33710. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33711. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
  33712. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
  33713. { $as_echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
  33714. $as_echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
  33715. ( cat <<\_ASBOX
  33716. ## ------------------------------------------ ##
  33717. ## Report this to https://issues.asterisk.org ##
  33718. ## ------------------------------------------ ##
  33719. _ASBOX
  33720. ) | sed "s/^/$as_me: WARNING: /" >&2
  33721. ;;
  33722. esac
  33723. { $as_echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
  33724. $as_echo_n "checking for bluetooth/bluetooth.h... " >&6; }
  33725. if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
  33726. $as_echo_n "(cached) " >&6
  33727. else
  33728. ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
  33729. fi
  33730. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
  33731. $as_echo "$ac_cv_header_bluetooth_bluetooth_h" >&6; }
  33732. fi
  33733. if test "x$ac_cv_header_bluetooth_bluetooth_h" = x""yes; then
  33734. BLUETOOTH_HEADER_FOUND=1
  33735. else
  33736. BLUETOOTH_HEADER_FOUND=0
  33737. fi
  33738. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33739. fi
  33740. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  33741. BLUETOOTH_LIB=""
  33742. BLUETOOTH_INCLUDE=""
  33743. else
  33744. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33745. BLUETOOTH_LIB=""
  33746. fi
  33747. PBX_BLUETOOTH=1
  33748. cat >>confdefs.h <<_ACEOF
  33749. #define HAVE_BLUETOOTH 1
  33750. _ACEOF
  33751. fi
  33752. fi
  33753. fi
  33754. # possible places for oss definitions
  33755. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  33756. pbxlibdir=""
  33757. # if --with-OSS=DIR has been specified, use it.
  33758. if test "x${OSS_DIR}" != "x"; then
  33759. if test -d ${OSS_DIR}/lib; then
  33760. pbxlibdir="-L${OSS_DIR}/lib"
  33761. else
  33762. pbxlibdir="-L${OSS_DIR}"
  33763. fi
  33764. fi
  33765. pbxfuncname=""
  33766. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  33767. AST_OSS_FOUND=yes
  33768. else
  33769. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  33770. CFLAGS="${CFLAGS} "
  33771. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  33772. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
  33773. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  33774. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  33775. $as_echo_n "(cached) " >&6
  33776. else
  33777. ac_check_lib_save_LIBS=$LIBS
  33778. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  33779. cat >conftest.$ac_ext <<_ACEOF
  33780. /* confdefs.h. */
  33781. _ACEOF
  33782. cat confdefs.h >>conftest.$ac_ext
  33783. cat >>conftest.$ac_ext <<_ACEOF
  33784. /* end confdefs.h. */
  33785. /* Override any GCC internal prototype to avoid an error.
  33786. Use char because int might match the return type of a GCC
  33787. builtin and then its argument prototype would still apply. */
  33788. #ifdef __cplusplus
  33789. extern "C"
  33790. #endif
  33791. char ${pbxfuncname} ();
  33792. int
  33793. main ()
  33794. {
  33795. return ${pbxfuncname} ();
  33796. ;
  33797. return 0;
  33798. }
  33799. _ACEOF
  33800. rm -f conftest.$ac_objext conftest$ac_exeext
  33801. if { (ac_try="$ac_link"
  33802. case "(($ac_try" in
  33803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33804. *) ac_try_echo=$ac_try;;
  33805. esac
  33806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33807. $as_echo "$ac_try_echo") >&5
  33808. (eval "$ac_link") 2>conftest.er1
  33809. ac_status=$?
  33810. grep -v '^ *+' conftest.er1 >conftest.err
  33811. rm -f conftest.er1
  33812. cat conftest.err >&5
  33813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33814. (exit $ac_status); } && {
  33815. test -z "$ac_c_werror_flag" ||
  33816. test ! -s conftest.err
  33817. } && test -s conftest$ac_exeext && {
  33818. test "$cross_compiling" = yes ||
  33819. $as_test_x conftest$ac_exeext
  33820. }; then
  33821. eval "$as_ac_Lib=yes"
  33822. else
  33823. $as_echo "$as_me: failed program was:" >&5
  33824. sed 's/^/| /' conftest.$ac_ext >&5
  33825. eval "$as_ac_Lib=no"
  33826. fi
  33827. rm -rf conftest.dSYM
  33828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33829. conftest$ac_exeext conftest.$ac_ext
  33830. LIBS=$ac_check_lib_save_LIBS
  33831. fi
  33832. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  33833. $as_echo "$as_val"'`
  33834. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  33835. $as_echo "$ac_res" >&6; }
  33836. as_val=`eval 'as_val=${'$as_ac_Lib'}
  33837. $as_echo "$as_val"'`
  33838. if test "x$as_val" = x""yes; then
  33839. AST_OSS_FOUND=yes
  33840. else
  33841. AST_OSS_FOUND=no
  33842. fi
  33843. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  33844. fi
  33845. # now check for the header.
  33846. if test "${AST_OSS_FOUND}" = "yes"; then
  33847. OSS_LIB="${pbxlibdir} -lossaudio "
  33848. # if --with-OSS=DIR has been specified, use it.
  33849. if test "x${OSS_DIR}" != "x"; then
  33850. OSS_INCLUDE="-I${OSS_DIR}/include"
  33851. fi
  33852. OSS_INCLUDE="${OSS_INCLUDE} "
  33853. if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
  33854. OSS_HEADER_FOUND="1"
  33855. else # check for the header
  33856. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  33857. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  33858. if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
  33859. { $as_echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
  33860. $as_echo_n "checking for linux/soundcard.h... " >&6; }
  33861. if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
  33862. $as_echo_n "(cached) " >&6
  33863. fi
  33864. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
  33865. $as_echo "$ac_cv_header_linux_soundcard_h" >&6; }
  33866. else
  33867. # Is the header compilable?
  33868. { $as_echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
  33869. $as_echo_n "checking linux/soundcard.h usability... " >&6; }
  33870. cat >conftest.$ac_ext <<_ACEOF
  33871. /* confdefs.h. */
  33872. _ACEOF
  33873. cat confdefs.h >>conftest.$ac_ext
  33874. cat >>conftest.$ac_ext <<_ACEOF
  33875. /* end confdefs.h. */
  33876. $ac_includes_default
  33877. #include <linux/soundcard.h>
  33878. _ACEOF
  33879. rm -f conftest.$ac_objext
  33880. if { (ac_try="$ac_compile"
  33881. case "(($ac_try" in
  33882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33883. *) ac_try_echo=$ac_try;;
  33884. esac
  33885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33886. $as_echo "$ac_try_echo") >&5
  33887. (eval "$ac_compile") 2>conftest.er1
  33888. ac_status=$?
  33889. grep -v '^ *+' conftest.er1 >conftest.err
  33890. rm -f conftest.er1
  33891. cat conftest.err >&5
  33892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33893. (exit $ac_status); } && {
  33894. test -z "$ac_c_werror_flag" ||
  33895. test ! -s conftest.err
  33896. } && test -s conftest.$ac_objext; then
  33897. ac_header_compiler=yes
  33898. else
  33899. $as_echo "$as_me: failed program was:" >&5
  33900. sed 's/^/| /' conftest.$ac_ext >&5
  33901. ac_header_compiler=no
  33902. fi
  33903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33904. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33905. $as_echo "$ac_header_compiler" >&6; }
  33906. # Is the header present?
  33907. { $as_echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
  33908. $as_echo_n "checking linux/soundcard.h presence... " >&6; }
  33909. cat >conftest.$ac_ext <<_ACEOF
  33910. /* confdefs.h. */
  33911. _ACEOF
  33912. cat confdefs.h >>conftest.$ac_ext
  33913. cat >>conftest.$ac_ext <<_ACEOF
  33914. /* end confdefs.h. */
  33915. #include <linux/soundcard.h>
  33916. _ACEOF
  33917. if { (ac_try="$ac_cpp conftest.$ac_ext"
  33918. case "(($ac_try" in
  33919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33920. *) ac_try_echo=$ac_try;;
  33921. esac
  33922. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  33923. $as_echo "$ac_try_echo") >&5
  33924. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33925. ac_status=$?
  33926. grep -v '^ *+' conftest.er1 >conftest.err
  33927. rm -f conftest.er1
  33928. cat conftest.err >&5
  33929. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33930. (exit $ac_status); } >/dev/null && {
  33931. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33932. test ! -s conftest.err
  33933. }; then
  33934. ac_header_preproc=yes
  33935. else
  33936. $as_echo "$as_me: failed program was:" >&5
  33937. sed 's/^/| /' conftest.$ac_ext >&5
  33938. ac_header_preproc=no
  33939. fi
  33940. rm -f conftest.err conftest.$ac_ext
  33941. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33942. $as_echo "$ac_header_preproc" >&6; }
  33943. # So? What about this header?
  33944. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33945. yes:no: )
  33946. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33947. $as_echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33948. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
  33949. $as_echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
  33950. ac_header_preproc=yes
  33951. ;;
  33952. no:yes:* )
  33953. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
  33954. $as_echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
  33955. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
  33956. $as_echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
  33957. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
  33958. $as_echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
  33959. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
  33960. $as_echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33961. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
  33962. $as_echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
  33963. { $as_echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
  33964. $as_echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
  33965. ( cat <<\_ASBOX
  33966. ## ------------------------------------------ ##
  33967. ## Report this to https://issues.asterisk.org ##
  33968. ## ------------------------------------------ ##
  33969. _ASBOX
  33970. ) | sed "s/^/$as_me: WARNING: /" >&2
  33971. ;;
  33972. esac
  33973. { $as_echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
  33974. $as_echo_n "checking for linux/soundcard.h... " >&6; }
  33975. if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
  33976. $as_echo_n "(cached) " >&6
  33977. else
  33978. ac_cv_header_linux_soundcard_h=$ac_header_preproc
  33979. fi
  33980. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
  33981. $as_echo "$ac_cv_header_linux_soundcard_h" >&6; }
  33982. fi
  33983. if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then
  33984. OSS_HEADER_FOUND=1
  33985. else
  33986. OSS_HEADER_FOUND=0
  33987. fi
  33988. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  33989. fi
  33990. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  33991. OSS_LIB=""
  33992. OSS_INCLUDE=""
  33993. else
  33994. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  33995. OSS_LIB=""
  33996. fi
  33997. PBX_OSS=1
  33998. cat >>confdefs.h <<_ACEOF
  33999. #define HAVE_OSS 1
  34000. _ACEOF
  34001. fi
  34002. fi
  34003. fi
  34004. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  34005. pbxlibdir=""
  34006. # if --with-OSS=DIR has been specified, use it.
  34007. if test "x${OSS_DIR}" != "x"; then
  34008. if test -d ${OSS_DIR}/lib; then
  34009. pbxlibdir="-L${OSS_DIR}/lib"
  34010. else
  34011. pbxlibdir="-L${OSS_DIR}"
  34012. fi
  34013. fi
  34014. pbxfuncname=""
  34015. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  34016. AST_OSS_FOUND=yes
  34017. else
  34018. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  34019. CFLAGS="${CFLAGS} "
  34020. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  34021. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
  34022. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  34023. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  34024. $as_echo_n "(cached) " >&6
  34025. else
  34026. ac_check_lib_save_LIBS=$LIBS
  34027. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  34028. cat >conftest.$ac_ext <<_ACEOF
  34029. /* confdefs.h. */
  34030. _ACEOF
  34031. cat confdefs.h >>conftest.$ac_ext
  34032. cat >>conftest.$ac_ext <<_ACEOF
  34033. /* end confdefs.h. */
  34034. /* Override any GCC internal prototype to avoid an error.
  34035. Use char because int might match the return type of a GCC
  34036. builtin and then its argument prototype would still apply. */
  34037. #ifdef __cplusplus
  34038. extern "C"
  34039. #endif
  34040. char ${pbxfuncname} ();
  34041. int
  34042. main ()
  34043. {
  34044. return ${pbxfuncname} ();
  34045. ;
  34046. return 0;
  34047. }
  34048. _ACEOF
  34049. rm -f conftest.$ac_objext conftest$ac_exeext
  34050. if { (ac_try="$ac_link"
  34051. case "(($ac_try" in
  34052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34053. *) ac_try_echo=$ac_try;;
  34054. esac
  34055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34056. $as_echo "$ac_try_echo") >&5
  34057. (eval "$ac_link") 2>conftest.er1
  34058. ac_status=$?
  34059. grep -v '^ *+' conftest.er1 >conftest.err
  34060. rm -f conftest.er1
  34061. cat conftest.err >&5
  34062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34063. (exit $ac_status); } && {
  34064. test -z "$ac_c_werror_flag" ||
  34065. test ! -s conftest.err
  34066. } && test -s conftest$ac_exeext && {
  34067. test "$cross_compiling" = yes ||
  34068. $as_test_x conftest$ac_exeext
  34069. }; then
  34070. eval "$as_ac_Lib=yes"
  34071. else
  34072. $as_echo "$as_me: failed program was:" >&5
  34073. sed 's/^/| /' conftest.$ac_ext >&5
  34074. eval "$as_ac_Lib=no"
  34075. fi
  34076. rm -rf conftest.dSYM
  34077. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34078. conftest$ac_exeext conftest.$ac_ext
  34079. LIBS=$ac_check_lib_save_LIBS
  34080. fi
  34081. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  34082. $as_echo "$as_val"'`
  34083. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  34084. $as_echo "$ac_res" >&6; }
  34085. as_val=`eval 'as_val=${'$as_ac_Lib'}
  34086. $as_echo "$as_val"'`
  34087. if test "x$as_val" = x""yes; then
  34088. AST_OSS_FOUND=yes
  34089. else
  34090. AST_OSS_FOUND=no
  34091. fi
  34092. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  34093. fi
  34094. # now check for the header.
  34095. if test "${AST_OSS_FOUND}" = "yes"; then
  34096. OSS_LIB="${pbxlibdir} -lossaudio "
  34097. # if --with-OSS=DIR has been specified, use it.
  34098. if test "x${OSS_DIR}" != "x"; then
  34099. OSS_INCLUDE="-I${OSS_DIR}/include"
  34100. fi
  34101. OSS_INCLUDE="${OSS_INCLUDE} "
  34102. if test "xsys/soundcard.h" = "x" ; then # no header, assume found
  34103. OSS_HEADER_FOUND="1"
  34104. else # check for the header
  34105. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  34106. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  34107. if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
  34108. { $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
  34109. $as_echo_n "checking for sys/soundcard.h... " >&6; }
  34110. if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
  34111. $as_echo_n "(cached) " >&6
  34112. fi
  34113. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
  34114. $as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
  34115. else
  34116. # Is the header compilable?
  34117. { $as_echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
  34118. $as_echo_n "checking sys/soundcard.h usability... " >&6; }
  34119. cat >conftest.$ac_ext <<_ACEOF
  34120. /* confdefs.h. */
  34121. _ACEOF
  34122. cat confdefs.h >>conftest.$ac_ext
  34123. cat >>conftest.$ac_ext <<_ACEOF
  34124. /* end confdefs.h. */
  34125. $ac_includes_default
  34126. #include <sys/soundcard.h>
  34127. _ACEOF
  34128. rm -f conftest.$ac_objext
  34129. if { (ac_try="$ac_compile"
  34130. case "(($ac_try" in
  34131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34132. *) ac_try_echo=$ac_try;;
  34133. esac
  34134. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34135. $as_echo "$ac_try_echo") >&5
  34136. (eval "$ac_compile") 2>conftest.er1
  34137. ac_status=$?
  34138. grep -v '^ *+' conftest.er1 >conftest.err
  34139. rm -f conftest.er1
  34140. cat conftest.err >&5
  34141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34142. (exit $ac_status); } && {
  34143. test -z "$ac_c_werror_flag" ||
  34144. test ! -s conftest.err
  34145. } && test -s conftest.$ac_objext; then
  34146. ac_header_compiler=yes
  34147. else
  34148. $as_echo "$as_me: failed program was:" >&5
  34149. sed 's/^/| /' conftest.$ac_ext >&5
  34150. ac_header_compiler=no
  34151. fi
  34152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34153. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34154. $as_echo "$ac_header_compiler" >&6; }
  34155. # Is the header present?
  34156. { $as_echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
  34157. $as_echo_n "checking sys/soundcard.h presence... " >&6; }
  34158. cat >conftest.$ac_ext <<_ACEOF
  34159. /* confdefs.h. */
  34160. _ACEOF
  34161. cat confdefs.h >>conftest.$ac_ext
  34162. cat >>conftest.$ac_ext <<_ACEOF
  34163. /* end confdefs.h. */
  34164. #include <sys/soundcard.h>
  34165. _ACEOF
  34166. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34167. case "(($ac_try" in
  34168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34169. *) ac_try_echo=$ac_try;;
  34170. esac
  34171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34172. $as_echo "$ac_try_echo") >&5
  34173. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34174. ac_status=$?
  34175. grep -v '^ *+' conftest.er1 >conftest.err
  34176. rm -f conftest.er1
  34177. cat conftest.err >&5
  34178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34179. (exit $ac_status); } >/dev/null && {
  34180. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34181. test ! -s conftest.err
  34182. }; then
  34183. ac_header_preproc=yes
  34184. else
  34185. $as_echo "$as_me: failed program was:" >&5
  34186. sed 's/^/| /' conftest.$ac_ext >&5
  34187. ac_header_preproc=no
  34188. fi
  34189. rm -f conftest.err conftest.$ac_ext
  34190. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34191. $as_echo "$ac_header_preproc" >&6; }
  34192. # So? What about this header?
  34193. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34194. yes:no: )
  34195. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
  34196. $as_echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34197. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
  34198. $as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
  34199. ac_header_preproc=yes
  34200. ;;
  34201. no:yes:* )
  34202. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
  34203. $as_echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
  34204. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
  34205. $as_echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
  34206. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
  34207. $as_echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
  34208. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
  34209. $as_echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
  34210. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
  34211. $as_echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
  34212. { $as_echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
  34213. $as_echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
  34214. ( cat <<\_ASBOX
  34215. ## ------------------------------------------ ##
  34216. ## Report this to https://issues.asterisk.org ##
  34217. ## ------------------------------------------ ##
  34218. _ASBOX
  34219. ) | sed "s/^/$as_me: WARNING: /" >&2
  34220. ;;
  34221. esac
  34222. { $as_echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
  34223. $as_echo_n "checking for sys/soundcard.h... " >&6; }
  34224. if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
  34225. $as_echo_n "(cached) " >&6
  34226. else
  34227. ac_cv_header_sys_soundcard_h=$ac_header_preproc
  34228. fi
  34229. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
  34230. $as_echo "$ac_cv_header_sys_soundcard_h" >&6; }
  34231. fi
  34232. if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then
  34233. OSS_HEADER_FOUND=1
  34234. else
  34235. OSS_HEADER_FOUND=0
  34236. fi
  34237. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  34238. fi
  34239. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  34240. OSS_LIB=""
  34241. OSS_INCLUDE=""
  34242. else
  34243. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  34244. OSS_LIB=""
  34245. fi
  34246. PBX_OSS=1
  34247. cat >>confdefs.h <<_ACEOF
  34248. #define HAVE_OSS 1
  34249. _ACEOF
  34250. fi
  34251. fi
  34252. fi
  34253. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  34254. pbxlibdir=""
  34255. # if --with-OSS=DIR has been specified, use it.
  34256. if test "x${OSS_DIR}" != "x"; then
  34257. if test -d ${OSS_DIR}/lib; then
  34258. pbxlibdir="-L${OSS_DIR}/lib"
  34259. else
  34260. pbxlibdir="-L${OSS_DIR}"
  34261. fi
  34262. fi
  34263. pbxfuncname="oss_ioctl_mixer"
  34264. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  34265. AST_OSS_FOUND=yes
  34266. else
  34267. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  34268. CFLAGS="${CFLAGS} "
  34269. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  34270. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
  34271. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  34272. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  34273. $as_echo_n "(cached) " >&6
  34274. else
  34275. ac_check_lib_save_LIBS=$LIBS
  34276. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  34277. cat >conftest.$ac_ext <<_ACEOF
  34278. /* confdefs.h. */
  34279. _ACEOF
  34280. cat confdefs.h >>conftest.$ac_ext
  34281. cat >>conftest.$ac_ext <<_ACEOF
  34282. /* end confdefs.h. */
  34283. /* Override any GCC internal prototype to avoid an error.
  34284. Use char because int might match the return type of a GCC
  34285. builtin and then its argument prototype would still apply. */
  34286. #ifdef __cplusplus
  34287. extern "C"
  34288. #endif
  34289. char ${pbxfuncname} ();
  34290. int
  34291. main ()
  34292. {
  34293. return ${pbxfuncname} ();
  34294. ;
  34295. return 0;
  34296. }
  34297. _ACEOF
  34298. rm -f conftest.$ac_objext conftest$ac_exeext
  34299. if { (ac_try="$ac_link"
  34300. case "(($ac_try" in
  34301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34302. *) ac_try_echo=$ac_try;;
  34303. esac
  34304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34305. $as_echo "$ac_try_echo") >&5
  34306. (eval "$ac_link") 2>conftest.er1
  34307. ac_status=$?
  34308. grep -v '^ *+' conftest.er1 >conftest.err
  34309. rm -f conftest.er1
  34310. cat conftest.err >&5
  34311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34312. (exit $ac_status); } && {
  34313. test -z "$ac_c_werror_flag" ||
  34314. test ! -s conftest.err
  34315. } && test -s conftest$ac_exeext && {
  34316. test "$cross_compiling" = yes ||
  34317. $as_test_x conftest$ac_exeext
  34318. }; then
  34319. eval "$as_ac_Lib=yes"
  34320. else
  34321. $as_echo "$as_me: failed program was:" >&5
  34322. sed 's/^/| /' conftest.$ac_ext >&5
  34323. eval "$as_ac_Lib=no"
  34324. fi
  34325. rm -rf conftest.dSYM
  34326. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34327. conftest$ac_exeext conftest.$ac_ext
  34328. LIBS=$ac_check_lib_save_LIBS
  34329. fi
  34330. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  34331. $as_echo "$as_val"'`
  34332. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  34333. $as_echo "$ac_res" >&6; }
  34334. as_val=`eval 'as_val=${'$as_ac_Lib'}
  34335. $as_echo "$as_val"'`
  34336. if test "x$as_val" = x""yes; then
  34337. AST_OSS_FOUND=yes
  34338. else
  34339. AST_OSS_FOUND=no
  34340. fi
  34341. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  34342. fi
  34343. # now check for the header.
  34344. if test "${AST_OSS_FOUND}" = "yes"; then
  34345. OSS_LIB="${pbxlibdir} -lossaudio "
  34346. # if --with-OSS=DIR has been specified, use it.
  34347. if test "x${OSS_DIR}" != "x"; then
  34348. OSS_INCLUDE="-I${OSS_DIR}/include"
  34349. fi
  34350. OSS_INCLUDE="${OSS_INCLUDE} "
  34351. if test "xsoundcard.h" = "x" ; then # no header, assume found
  34352. OSS_HEADER_FOUND="1"
  34353. else # check for the header
  34354. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  34355. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  34356. if test "${ac_cv_header_soundcard_h+set}" = set; then
  34357. { $as_echo "$as_me:$LINENO: checking for soundcard.h" >&5
  34358. $as_echo_n "checking for soundcard.h... " >&6; }
  34359. if test "${ac_cv_header_soundcard_h+set}" = set; then
  34360. $as_echo_n "(cached) " >&6
  34361. fi
  34362. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
  34363. $as_echo "$ac_cv_header_soundcard_h" >&6; }
  34364. else
  34365. # Is the header compilable?
  34366. { $as_echo "$as_me:$LINENO: checking soundcard.h usability" >&5
  34367. $as_echo_n "checking soundcard.h usability... " >&6; }
  34368. cat >conftest.$ac_ext <<_ACEOF
  34369. /* confdefs.h. */
  34370. _ACEOF
  34371. cat confdefs.h >>conftest.$ac_ext
  34372. cat >>conftest.$ac_ext <<_ACEOF
  34373. /* end confdefs.h. */
  34374. $ac_includes_default
  34375. #include <soundcard.h>
  34376. _ACEOF
  34377. rm -f conftest.$ac_objext
  34378. if { (ac_try="$ac_compile"
  34379. case "(($ac_try" in
  34380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34381. *) ac_try_echo=$ac_try;;
  34382. esac
  34383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34384. $as_echo "$ac_try_echo") >&5
  34385. (eval "$ac_compile") 2>conftest.er1
  34386. ac_status=$?
  34387. grep -v '^ *+' conftest.er1 >conftest.err
  34388. rm -f conftest.er1
  34389. cat conftest.err >&5
  34390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34391. (exit $ac_status); } && {
  34392. test -z "$ac_c_werror_flag" ||
  34393. test ! -s conftest.err
  34394. } && test -s conftest.$ac_objext; then
  34395. ac_header_compiler=yes
  34396. else
  34397. $as_echo "$as_me: failed program was:" >&5
  34398. sed 's/^/| /' conftest.$ac_ext >&5
  34399. ac_header_compiler=no
  34400. fi
  34401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34402. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  34403. $as_echo "$ac_header_compiler" >&6; }
  34404. # Is the header present?
  34405. { $as_echo "$as_me:$LINENO: checking soundcard.h presence" >&5
  34406. $as_echo_n "checking soundcard.h presence... " >&6; }
  34407. cat >conftest.$ac_ext <<_ACEOF
  34408. /* confdefs.h. */
  34409. _ACEOF
  34410. cat confdefs.h >>conftest.$ac_ext
  34411. cat >>conftest.$ac_ext <<_ACEOF
  34412. /* end confdefs.h. */
  34413. #include <soundcard.h>
  34414. _ACEOF
  34415. if { (ac_try="$ac_cpp conftest.$ac_ext"
  34416. case "(($ac_try" in
  34417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34418. *) ac_try_echo=$ac_try;;
  34419. esac
  34420. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34421. $as_echo "$ac_try_echo") >&5
  34422. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  34423. ac_status=$?
  34424. grep -v '^ *+' conftest.er1 >conftest.err
  34425. rm -f conftest.er1
  34426. cat conftest.err >&5
  34427. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34428. (exit $ac_status); } >/dev/null && {
  34429. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  34430. test ! -s conftest.err
  34431. }; then
  34432. ac_header_preproc=yes
  34433. else
  34434. $as_echo "$as_me: failed program was:" >&5
  34435. sed 's/^/| /' conftest.$ac_ext >&5
  34436. ac_header_preproc=no
  34437. fi
  34438. rm -f conftest.err conftest.$ac_ext
  34439. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  34440. $as_echo "$ac_header_preproc" >&6; }
  34441. # So? What about this header?
  34442. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  34443. yes:no: )
  34444. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
  34445. $as_echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  34446. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
  34447. $as_echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
  34448. ac_header_preproc=yes
  34449. ;;
  34450. no:yes:* )
  34451. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
  34452. $as_echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
  34453. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
  34454. $as_echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
  34455. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
  34456. $as_echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
  34457. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
  34458. $as_echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
  34459. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
  34460. $as_echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
  34461. { $as_echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
  34462. $as_echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
  34463. ( cat <<\_ASBOX
  34464. ## ------------------------------------------ ##
  34465. ## Report this to https://issues.asterisk.org ##
  34466. ## ------------------------------------------ ##
  34467. _ASBOX
  34468. ) | sed "s/^/$as_me: WARNING: /" >&2
  34469. ;;
  34470. esac
  34471. { $as_echo "$as_me:$LINENO: checking for soundcard.h" >&5
  34472. $as_echo_n "checking for soundcard.h... " >&6; }
  34473. if test "${ac_cv_header_soundcard_h+set}" = set; then
  34474. $as_echo_n "(cached) " >&6
  34475. else
  34476. ac_cv_header_soundcard_h=$ac_header_preproc
  34477. fi
  34478. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
  34479. $as_echo "$ac_cv_header_soundcard_h" >&6; }
  34480. fi
  34481. if test "x$ac_cv_header_soundcard_h" = x""yes; then
  34482. OSS_HEADER_FOUND=1
  34483. else
  34484. OSS_HEADER_FOUND=0
  34485. fi
  34486. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  34487. fi
  34488. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  34489. OSS_LIB=""
  34490. OSS_INCLUDE=""
  34491. else
  34492. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  34493. OSS_LIB=""
  34494. fi
  34495. PBX_OSS=1
  34496. cat >>confdefs.h <<_ACEOF
  34497. #define HAVE_OSS 1
  34498. _ACEOF
  34499. fi
  34500. fi
  34501. fi
  34502. PG_CONFIG=No
  34503. if test "${USE_PGSQL}" != "no"; then
  34504. if test "x${PGSQL_DIR}" != "x"; then
  34505. if test -n "$ac_tool_prefix"; then
  34506. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  34507. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  34508. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34509. $as_echo_n "checking for $ac_word... " >&6; }
  34510. if test "${ac_cv_path_PG_CONFIG+set}" = set; then
  34511. $as_echo_n "(cached) " >&6
  34512. else
  34513. case $PG_CONFIG in
  34514. [\\/]* | ?:[\\/]*)
  34515. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  34516. ;;
  34517. *)
  34518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34519. for as_dir in ${PGSQL_DIR}/bin
  34520. do
  34521. IFS=$as_save_IFS
  34522. test -z "$as_dir" && as_dir=.
  34523. for ac_exec_ext in '' $ac_executable_extensions; do
  34524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34525. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34526. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34527. break 2
  34528. fi
  34529. done
  34530. done
  34531. IFS=$as_save_IFS
  34532. ;;
  34533. esac
  34534. fi
  34535. PG_CONFIG=$ac_cv_path_PG_CONFIG
  34536. if test -n "$PG_CONFIG"; then
  34537. { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
  34538. $as_echo "$PG_CONFIG" >&6; }
  34539. else
  34540. { $as_echo "$as_me:$LINENO: result: no" >&5
  34541. $as_echo "no" >&6; }
  34542. fi
  34543. fi
  34544. if test -z "$ac_cv_path_PG_CONFIG"; then
  34545. ac_pt_PG_CONFIG=$PG_CONFIG
  34546. # Extract the first word of "pg_config", so it can be a program name with args.
  34547. set dummy pg_config; ac_word=$2
  34548. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34549. $as_echo_n "checking for $ac_word... " >&6; }
  34550. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
  34551. $as_echo_n "(cached) " >&6
  34552. else
  34553. case $ac_pt_PG_CONFIG in
  34554. [\\/]* | ?:[\\/]*)
  34555. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  34556. ;;
  34557. *)
  34558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34559. for as_dir in ${PGSQL_DIR}/bin
  34560. do
  34561. IFS=$as_save_IFS
  34562. test -z "$as_dir" && as_dir=.
  34563. for ac_exec_ext in '' $ac_executable_extensions; do
  34564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34565. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34566. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34567. break 2
  34568. fi
  34569. done
  34570. done
  34571. IFS=$as_save_IFS
  34572. ;;
  34573. esac
  34574. fi
  34575. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  34576. if test -n "$ac_pt_PG_CONFIG"; then
  34577. { $as_echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
  34578. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  34579. else
  34580. { $as_echo "$as_me:$LINENO: result: no" >&5
  34581. $as_echo "no" >&6; }
  34582. fi
  34583. if test "x$ac_pt_PG_CONFIG" = x; then
  34584. PG_CONFIG="No"
  34585. else
  34586. case $cross_compiling:$ac_tool_warned in
  34587. yes:)
  34588. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  34589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34590. ac_tool_warned=yes ;;
  34591. esac
  34592. PG_CONFIG=$ac_pt_PG_CONFIG
  34593. fi
  34594. else
  34595. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  34596. fi
  34597. if test x"${PG_CONFIG}" = xNo; then
  34598. { $as_echo "$as_me:$LINENO: ***" >&5
  34599. $as_echo "$as_me: ***" >&6;}
  34600. { $as_echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
  34601. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  34602. { $as_echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
  34603. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  34604. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  34605. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  34606. { $as_echo "$as_me:$LINENO: *** including --without-postgres" >&5
  34607. $as_echo "$as_me: *** including --without-postgres" >&6;}
  34608. exit 1
  34609. fi
  34610. else
  34611. if test -n "$ac_tool_prefix"; then
  34612. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  34613. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  34614. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34615. $as_echo_n "checking for $ac_word... " >&6; }
  34616. if test "${ac_cv_path_PG_CONFIG+set}" = set; then
  34617. $as_echo_n "(cached) " >&6
  34618. else
  34619. case $PG_CONFIG in
  34620. [\\/]* | ?:[\\/]*)
  34621. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  34622. ;;
  34623. *)
  34624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34625. for as_dir in $PATH
  34626. do
  34627. IFS=$as_save_IFS
  34628. test -z "$as_dir" && as_dir=.
  34629. for ac_exec_ext in '' $ac_executable_extensions; do
  34630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34631. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34632. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34633. break 2
  34634. fi
  34635. done
  34636. done
  34637. IFS=$as_save_IFS
  34638. ;;
  34639. esac
  34640. fi
  34641. PG_CONFIG=$ac_cv_path_PG_CONFIG
  34642. if test -n "$PG_CONFIG"; then
  34643. { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
  34644. $as_echo "$PG_CONFIG" >&6; }
  34645. else
  34646. { $as_echo "$as_me:$LINENO: result: no" >&5
  34647. $as_echo "no" >&6; }
  34648. fi
  34649. fi
  34650. if test -z "$ac_cv_path_PG_CONFIG"; then
  34651. ac_pt_PG_CONFIG=$PG_CONFIG
  34652. # Extract the first word of "pg_config", so it can be a program name with args.
  34653. set dummy pg_config; ac_word=$2
  34654. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  34655. $as_echo_n "checking for $ac_word... " >&6; }
  34656. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
  34657. $as_echo_n "(cached) " >&6
  34658. else
  34659. case $ac_pt_PG_CONFIG in
  34660. [\\/]* | ?:[\\/]*)
  34661. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  34662. ;;
  34663. *)
  34664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34665. for as_dir in $PATH
  34666. do
  34667. IFS=$as_save_IFS
  34668. test -z "$as_dir" && as_dir=.
  34669. for ac_exec_ext in '' $ac_executable_extensions; do
  34670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34671. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  34672. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34673. break 2
  34674. fi
  34675. done
  34676. done
  34677. IFS=$as_save_IFS
  34678. ;;
  34679. esac
  34680. fi
  34681. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  34682. if test -n "$ac_pt_PG_CONFIG"; then
  34683. { $as_echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
  34684. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  34685. else
  34686. { $as_echo "$as_me:$LINENO: result: no" >&5
  34687. $as_echo "no" >&6; }
  34688. fi
  34689. if test "x$ac_pt_PG_CONFIG" = x; then
  34690. PG_CONFIG="No"
  34691. else
  34692. case $cross_compiling:$ac_tool_warned in
  34693. yes:)
  34694. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  34695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  34696. ac_tool_warned=yes ;;
  34697. esac
  34698. PG_CONFIG=$ac_pt_PG_CONFIG
  34699. fi
  34700. else
  34701. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  34702. fi
  34703. fi
  34704. fi
  34705. if test "${PG_CONFIG}" != No; then
  34706. PGSQL_libdir=`${PG_CONFIG} --libdir`
  34707. PGSQL_includedir=`${PG_CONFIG} --includedir`
  34708. if test "x$?" != "x0" ; then
  34709. if test -n "${PGSQL_MANDATORY}" ; then
  34710. { $as_echo "$as_me:$LINENO: ***" >&5
  34711. $as_echo "$as_me: ***" >&6;}
  34712. { $as_echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
  34713. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  34714. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  34715. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  34716. { $as_echo "$as_me:$LINENO: *** including --without-postgres" >&5
  34717. $as_echo "$as_me: *** including --without-postgres" >&6;}
  34718. exit 1
  34719. fi
  34720. else
  34721. { $as_echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
  34722. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  34723. if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
  34724. $as_echo_n "(cached) " >&6
  34725. else
  34726. ac_check_lib_save_LIBS=$LIBS
  34727. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  34728. cat >conftest.$ac_ext <<_ACEOF
  34729. /* confdefs.h. */
  34730. _ACEOF
  34731. cat confdefs.h >>conftest.$ac_ext
  34732. cat >>conftest.$ac_ext <<_ACEOF
  34733. /* end confdefs.h. */
  34734. /* Override any GCC internal prototype to avoid an error.
  34735. Use char because int might match the return type of a GCC
  34736. builtin and then its argument prototype would still apply. */
  34737. #ifdef __cplusplus
  34738. extern "C"
  34739. #endif
  34740. char PQescapeStringConn ();
  34741. int
  34742. main ()
  34743. {
  34744. return PQescapeStringConn ();
  34745. ;
  34746. return 0;
  34747. }
  34748. _ACEOF
  34749. rm -f conftest.$ac_objext conftest$ac_exeext
  34750. if { (ac_try="$ac_link"
  34751. case "(($ac_try" in
  34752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34753. *) ac_try_echo=$ac_try;;
  34754. esac
  34755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34756. $as_echo "$ac_try_echo") >&5
  34757. (eval "$ac_link") 2>conftest.er1
  34758. ac_status=$?
  34759. grep -v '^ *+' conftest.er1 >conftest.err
  34760. rm -f conftest.er1
  34761. cat conftest.err >&5
  34762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34763. (exit $ac_status); } && {
  34764. test -z "$ac_c_werror_flag" ||
  34765. test ! -s conftest.err
  34766. } && test -s conftest$ac_exeext && {
  34767. test "$cross_compiling" = yes ||
  34768. $as_test_x conftest$ac_exeext
  34769. }; then
  34770. ac_cv_lib_pq_PQescapeStringConn=yes
  34771. else
  34772. $as_echo "$as_me: failed program was:" >&5
  34773. sed 's/^/| /' conftest.$ac_ext >&5
  34774. ac_cv_lib_pq_PQescapeStringConn=no
  34775. fi
  34776. rm -rf conftest.dSYM
  34777. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34778. conftest$ac_exeext conftest.$ac_ext
  34779. LIBS=$ac_check_lib_save_LIBS
  34780. fi
  34781. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  34782. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  34783. if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then
  34784. cat >>confdefs.h <<_ACEOF
  34785. #define HAVE_PGSQL 1
  34786. _ACEOF
  34787. fi
  34788. { $as_echo "$as_me:$LINENO: checking for pg_encoding_to_char within Postgres headers" >&5
  34789. $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  34790. old_CFLAGS=${CFLAGS}
  34791. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  34792. old_LDFLAGS=${LDFLAGS}
  34793. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  34794. cat >conftest.$ac_ext <<_ACEOF
  34795. /* confdefs.h. */
  34796. _ACEOF
  34797. cat confdefs.h >>conftest.$ac_ext
  34798. cat >>conftest.$ac_ext <<_ACEOF
  34799. /* end confdefs.h. */
  34800. #include <libpq-fe.h>
  34801. int
  34802. main ()
  34803. {
  34804. const char *foo = pg_encoding_to_char(1)
  34805. ;
  34806. return 0;
  34807. }
  34808. _ACEOF
  34809. rm -f conftest.$ac_objext conftest$ac_exeext
  34810. if { (ac_try="$ac_link"
  34811. case "(($ac_try" in
  34812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34813. *) ac_try_echo=$ac_try;;
  34814. esac
  34815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34816. $as_echo "$ac_try_echo") >&5
  34817. (eval "$ac_link") 2>conftest.er1
  34818. ac_status=$?
  34819. grep -v '^ *+' conftest.er1 >conftest.err
  34820. rm -f conftest.er1
  34821. cat conftest.err >&5
  34822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34823. (exit $ac_status); } && {
  34824. test -z "$ac_c_werror_flag" ||
  34825. test ! -s conftest.err
  34826. } && test -s conftest$ac_exeext && {
  34827. test "$cross_compiling" = yes ||
  34828. $as_test_x conftest$ac_exeext
  34829. }; then
  34830. { $as_echo "$as_me:$LINENO: result: yes" >&5
  34831. $as_echo "yes" >&6; }
  34832. cat >>confdefs.h <<_ACEOF
  34833. #define HAVE_PGSQL_pg_encoding_to_char 1
  34834. _ACEOF
  34835. else
  34836. $as_echo "$as_me: failed program was:" >&5
  34837. sed 's/^/| /' conftest.$ac_ext >&5
  34838. { $as_echo "$as_me:$LINENO: result: no" >&5
  34839. $as_echo "no" >&6; }
  34840. fi
  34841. rm -rf conftest.dSYM
  34842. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34843. conftest$ac_exeext conftest.$ac_ext
  34844. CFLAGS=${old_CFLAGS}
  34845. LDFLAGS=${old_LDFLAGS}
  34846. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  34847. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  34848. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  34849. PBX_PGSQL=1
  34850. elif test -n "${PGSQL_MANDATORY}";
  34851. then
  34852. { $as_echo "$as_me:$LINENO: ***" >&5
  34853. $as_echo "$as_me: ***" >&6;}
  34854. { $as_echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
  34855. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  34856. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  34857. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  34858. { $as_echo "$as_me:$LINENO: *** including --without-postgres" >&5
  34859. $as_echo "$as_me: *** including --without-postgres" >&6;}
  34860. exit 1
  34861. fi
  34862. fi
  34863. fi
  34864. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  34865. pbxlibdir=""
  34866. # if --with-POPT=DIR has been specified, use it.
  34867. if test "x${POPT_DIR}" != "x"; then
  34868. if test -d ${POPT_DIR}/lib; then
  34869. pbxlibdir="-L${POPT_DIR}/lib"
  34870. else
  34871. pbxlibdir="-L${POPT_DIR}"
  34872. fi
  34873. fi
  34874. pbxfuncname="poptStrerror"
  34875. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  34876. AST_POPT_FOUND=yes
  34877. else
  34878. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  34879. CFLAGS="${CFLAGS} "
  34880. as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
  34881. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
  34882. $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
  34883. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  34884. $as_echo_n "(cached) " >&6
  34885. else
  34886. ac_check_lib_save_LIBS=$LIBS
  34887. LIBS="-lpopt ${pbxlibdir} $LIBS"
  34888. cat >conftest.$ac_ext <<_ACEOF
  34889. /* confdefs.h. */
  34890. _ACEOF
  34891. cat confdefs.h >>conftest.$ac_ext
  34892. cat >>conftest.$ac_ext <<_ACEOF
  34893. /* end confdefs.h. */
  34894. /* Override any GCC internal prototype to avoid an error.
  34895. Use char because int might match the return type of a GCC
  34896. builtin and then its argument prototype would still apply. */
  34897. #ifdef __cplusplus
  34898. extern "C"
  34899. #endif
  34900. char ${pbxfuncname} ();
  34901. int
  34902. main ()
  34903. {
  34904. return ${pbxfuncname} ();
  34905. ;
  34906. return 0;
  34907. }
  34908. _ACEOF
  34909. rm -f conftest.$ac_objext conftest$ac_exeext
  34910. if { (ac_try="$ac_link"
  34911. case "(($ac_try" in
  34912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34913. *) ac_try_echo=$ac_try;;
  34914. esac
  34915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34916. $as_echo "$ac_try_echo") >&5
  34917. (eval "$ac_link") 2>conftest.er1
  34918. ac_status=$?
  34919. grep -v '^ *+' conftest.er1 >conftest.err
  34920. rm -f conftest.er1
  34921. cat conftest.err >&5
  34922. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34923. (exit $ac_status); } && {
  34924. test -z "$ac_c_werror_flag" ||
  34925. test ! -s conftest.err
  34926. } && test -s conftest$ac_exeext && {
  34927. test "$cross_compiling" = yes ||
  34928. $as_test_x conftest$ac_exeext
  34929. }; then
  34930. eval "$as_ac_Lib=yes"
  34931. else
  34932. $as_echo "$as_me: failed program was:" >&5
  34933. sed 's/^/| /' conftest.$ac_ext >&5
  34934. eval "$as_ac_Lib=no"
  34935. fi
  34936. rm -rf conftest.dSYM
  34937. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34938. conftest$ac_exeext conftest.$ac_ext
  34939. LIBS=$ac_check_lib_save_LIBS
  34940. fi
  34941. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  34942. $as_echo "$as_val"'`
  34943. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  34944. $as_echo "$ac_res" >&6; }
  34945. as_val=`eval 'as_val=${'$as_ac_Lib'}
  34946. $as_echo "$as_val"'`
  34947. if test "x$as_val" = x""yes; then
  34948. AST_POPT_FOUND=yes
  34949. else
  34950. AST_POPT_FOUND=no
  34951. fi
  34952. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  34953. fi
  34954. # now check for the header.
  34955. if test "${AST_POPT_FOUND}" = "yes"; then
  34956. POPT_LIB="${pbxlibdir} -lpopt "
  34957. # if --with-POPT=DIR has been specified, use it.
  34958. if test "x${POPT_DIR}" != "x"; then
  34959. POPT_INCLUDE="-I${POPT_DIR}/include"
  34960. fi
  34961. POPT_INCLUDE="${POPT_INCLUDE} "
  34962. if test "xpopt.h" = "x" ; then # no header, assume found
  34963. POPT_HEADER_FOUND="1"
  34964. else # check for the header
  34965. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  34966. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  34967. if test "${ac_cv_header_popt_h+set}" = set; then
  34968. { $as_echo "$as_me:$LINENO: checking for popt.h" >&5
  34969. $as_echo_n "checking for popt.h... " >&6; }
  34970. if test "${ac_cv_header_popt_h+set}" = set; then
  34971. $as_echo_n "(cached) " >&6
  34972. fi
  34973. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
  34974. $as_echo "$ac_cv_header_popt_h" >&6; }
  34975. else
  34976. # Is the header compilable?
  34977. { $as_echo "$as_me:$LINENO: checking popt.h usability" >&5
  34978. $as_echo_n "checking popt.h usability... " >&6; }
  34979. cat >conftest.$ac_ext <<_ACEOF
  34980. /* confdefs.h. */
  34981. _ACEOF
  34982. cat confdefs.h >>conftest.$ac_ext
  34983. cat >>conftest.$ac_ext <<_ACEOF
  34984. /* end confdefs.h. */
  34985. $ac_includes_default
  34986. #include <popt.h>
  34987. _ACEOF
  34988. rm -f conftest.$ac_objext
  34989. if { (ac_try="$ac_compile"
  34990. case "(($ac_try" in
  34991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34992. *) ac_try_echo=$ac_try;;
  34993. esac
  34994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  34995. $as_echo "$ac_try_echo") >&5
  34996. (eval "$ac_compile") 2>conftest.er1
  34997. ac_status=$?
  34998. grep -v '^ *+' conftest.er1 >conftest.err
  34999. rm -f conftest.er1
  35000. cat conftest.err >&5
  35001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35002. (exit $ac_status); } && {
  35003. test -z "$ac_c_werror_flag" ||
  35004. test ! -s conftest.err
  35005. } && test -s conftest.$ac_objext; then
  35006. ac_header_compiler=yes
  35007. else
  35008. $as_echo "$as_me: failed program was:" >&5
  35009. sed 's/^/| /' conftest.$ac_ext >&5
  35010. ac_header_compiler=no
  35011. fi
  35012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35013. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35014. $as_echo "$ac_header_compiler" >&6; }
  35015. # Is the header present?
  35016. { $as_echo "$as_me:$LINENO: checking popt.h presence" >&5
  35017. $as_echo_n "checking popt.h presence... " >&6; }
  35018. cat >conftest.$ac_ext <<_ACEOF
  35019. /* confdefs.h. */
  35020. _ACEOF
  35021. cat confdefs.h >>conftest.$ac_ext
  35022. cat >>conftest.$ac_ext <<_ACEOF
  35023. /* end confdefs.h. */
  35024. #include <popt.h>
  35025. _ACEOF
  35026. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35027. case "(($ac_try" in
  35028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35029. *) ac_try_echo=$ac_try;;
  35030. esac
  35031. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35032. $as_echo "$ac_try_echo") >&5
  35033. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35034. ac_status=$?
  35035. grep -v '^ *+' conftest.er1 >conftest.err
  35036. rm -f conftest.er1
  35037. cat conftest.err >&5
  35038. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35039. (exit $ac_status); } >/dev/null && {
  35040. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35041. test ! -s conftest.err
  35042. }; then
  35043. ac_header_preproc=yes
  35044. else
  35045. $as_echo "$as_me: failed program was:" >&5
  35046. sed 's/^/| /' conftest.$ac_ext >&5
  35047. ac_header_preproc=no
  35048. fi
  35049. rm -f conftest.err conftest.$ac_ext
  35050. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35051. $as_echo "$ac_header_preproc" >&6; }
  35052. # So? What about this header?
  35053. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35054. yes:no: )
  35055. { $as_echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35056. $as_echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35057. { $as_echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
  35058. $as_echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
  35059. ac_header_preproc=yes
  35060. ;;
  35061. no:yes:* )
  35062. { $as_echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
  35063. $as_echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
  35064. { $as_echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
  35065. $as_echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
  35066. { $as_echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
  35067. $as_echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
  35068. { $as_echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
  35069. $as_echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35070. { $as_echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
  35071. $as_echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
  35072. { $as_echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
  35073. $as_echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
  35074. ( cat <<\_ASBOX
  35075. ## ------------------------------------------ ##
  35076. ## Report this to https://issues.asterisk.org ##
  35077. ## ------------------------------------------ ##
  35078. _ASBOX
  35079. ) | sed "s/^/$as_me: WARNING: /" >&2
  35080. ;;
  35081. esac
  35082. { $as_echo "$as_me:$LINENO: checking for popt.h" >&5
  35083. $as_echo_n "checking for popt.h... " >&6; }
  35084. if test "${ac_cv_header_popt_h+set}" = set; then
  35085. $as_echo_n "(cached) " >&6
  35086. else
  35087. ac_cv_header_popt_h=$ac_header_preproc
  35088. fi
  35089. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
  35090. $as_echo "$ac_cv_header_popt_h" >&6; }
  35091. fi
  35092. if test "x$ac_cv_header_popt_h" = x""yes; then
  35093. POPT_HEADER_FOUND=1
  35094. else
  35095. POPT_HEADER_FOUND=0
  35096. fi
  35097. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35098. fi
  35099. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  35100. POPT_LIB=""
  35101. POPT_INCLUDE=""
  35102. else
  35103. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35104. POPT_LIB=""
  35105. fi
  35106. PBX_POPT=1
  35107. cat >>confdefs.h <<_ACEOF
  35108. #define HAVE_POPT 1
  35109. _ACEOF
  35110. fi
  35111. fi
  35112. fi
  35113. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  35114. pbxlibdir=""
  35115. # if --with-PORTAUDIO=DIR has been specified, use it.
  35116. if test "x${PORTAUDIO_DIR}" != "x"; then
  35117. if test -d ${PORTAUDIO_DIR}/lib; then
  35118. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  35119. else
  35120. pbxlibdir="-L${PORTAUDIO_DIR}"
  35121. fi
  35122. fi
  35123. pbxfuncname="Pa_GetDeviceCount"
  35124. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35125. AST_PORTAUDIO_FOUND=yes
  35126. else
  35127. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35128. CFLAGS="${CFLAGS} "
  35129. as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
  35130. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
  35131. $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
  35132. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35133. $as_echo_n "(cached) " >&6
  35134. else
  35135. ac_check_lib_save_LIBS=$LIBS
  35136. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  35137. cat >conftest.$ac_ext <<_ACEOF
  35138. /* confdefs.h. */
  35139. _ACEOF
  35140. cat confdefs.h >>conftest.$ac_ext
  35141. cat >>conftest.$ac_ext <<_ACEOF
  35142. /* end confdefs.h. */
  35143. /* Override any GCC internal prototype to avoid an error.
  35144. Use char because int might match the return type of a GCC
  35145. builtin and then its argument prototype would still apply. */
  35146. #ifdef __cplusplus
  35147. extern "C"
  35148. #endif
  35149. char ${pbxfuncname} ();
  35150. int
  35151. main ()
  35152. {
  35153. return ${pbxfuncname} ();
  35154. ;
  35155. return 0;
  35156. }
  35157. _ACEOF
  35158. rm -f conftest.$ac_objext conftest$ac_exeext
  35159. if { (ac_try="$ac_link"
  35160. case "(($ac_try" in
  35161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35162. *) ac_try_echo=$ac_try;;
  35163. esac
  35164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35165. $as_echo "$ac_try_echo") >&5
  35166. (eval "$ac_link") 2>conftest.er1
  35167. ac_status=$?
  35168. grep -v '^ *+' conftest.er1 >conftest.err
  35169. rm -f conftest.er1
  35170. cat conftest.err >&5
  35171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35172. (exit $ac_status); } && {
  35173. test -z "$ac_c_werror_flag" ||
  35174. test ! -s conftest.err
  35175. } && test -s conftest$ac_exeext && {
  35176. test "$cross_compiling" = yes ||
  35177. $as_test_x conftest$ac_exeext
  35178. }; then
  35179. eval "$as_ac_Lib=yes"
  35180. else
  35181. $as_echo "$as_me: failed program was:" >&5
  35182. sed 's/^/| /' conftest.$ac_ext >&5
  35183. eval "$as_ac_Lib=no"
  35184. fi
  35185. rm -rf conftest.dSYM
  35186. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35187. conftest$ac_exeext conftest.$ac_ext
  35188. LIBS=$ac_check_lib_save_LIBS
  35189. fi
  35190. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35191. $as_echo "$as_val"'`
  35192. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35193. $as_echo "$ac_res" >&6; }
  35194. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35195. $as_echo "$as_val"'`
  35196. if test "x$as_val" = x""yes; then
  35197. AST_PORTAUDIO_FOUND=yes
  35198. else
  35199. AST_PORTAUDIO_FOUND=no
  35200. fi
  35201. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35202. fi
  35203. # now check for the header.
  35204. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  35205. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  35206. # if --with-PORTAUDIO=DIR has been specified, use it.
  35207. if test "x${PORTAUDIO_DIR}" != "x"; then
  35208. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  35209. fi
  35210. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  35211. if test "xportaudio.h" = "x" ; then # no header, assume found
  35212. PORTAUDIO_HEADER_FOUND="1"
  35213. else # check for the header
  35214. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35215. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  35216. if test "${ac_cv_header_portaudio_h+set}" = set; then
  35217. { $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
  35218. $as_echo_n "checking for portaudio.h... " >&6; }
  35219. if test "${ac_cv_header_portaudio_h+set}" = set; then
  35220. $as_echo_n "(cached) " >&6
  35221. fi
  35222. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
  35223. $as_echo "$ac_cv_header_portaudio_h" >&6; }
  35224. else
  35225. # Is the header compilable?
  35226. { $as_echo "$as_me:$LINENO: checking portaudio.h usability" >&5
  35227. $as_echo_n "checking portaudio.h usability... " >&6; }
  35228. cat >conftest.$ac_ext <<_ACEOF
  35229. /* confdefs.h. */
  35230. _ACEOF
  35231. cat confdefs.h >>conftest.$ac_ext
  35232. cat >>conftest.$ac_ext <<_ACEOF
  35233. /* end confdefs.h. */
  35234. $ac_includes_default
  35235. #include <portaudio.h>
  35236. _ACEOF
  35237. rm -f conftest.$ac_objext
  35238. if { (ac_try="$ac_compile"
  35239. case "(($ac_try" in
  35240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35241. *) ac_try_echo=$ac_try;;
  35242. esac
  35243. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35244. $as_echo "$ac_try_echo") >&5
  35245. (eval "$ac_compile") 2>conftest.er1
  35246. ac_status=$?
  35247. grep -v '^ *+' conftest.er1 >conftest.err
  35248. rm -f conftest.er1
  35249. cat conftest.err >&5
  35250. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35251. (exit $ac_status); } && {
  35252. test -z "$ac_c_werror_flag" ||
  35253. test ! -s conftest.err
  35254. } && test -s conftest.$ac_objext; then
  35255. ac_header_compiler=yes
  35256. else
  35257. $as_echo "$as_me: failed program was:" >&5
  35258. sed 's/^/| /' conftest.$ac_ext >&5
  35259. ac_header_compiler=no
  35260. fi
  35261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35262. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35263. $as_echo "$ac_header_compiler" >&6; }
  35264. # Is the header present?
  35265. { $as_echo "$as_me:$LINENO: checking portaudio.h presence" >&5
  35266. $as_echo_n "checking portaudio.h presence... " >&6; }
  35267. cat >conftest.$ac_ext <<_ACEOF
  35268. /* confdefs.h. */
  35269. _ACEOF
  35270. cat confdefs.h >>conftest.$ac_ext
  35271. cat >>conftest.$ac_ext <<_ACEOF
  35272. /* end confdefs.h. */
  35273. #include <portaudio.h>
  35274. _ACEOF
  35275. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35276. case "(($ac_try" in
  35277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35278. *) ac_try_echo=$ac_try;;
  35279. esac
  35280. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35281. $as_echo "$ac_try_echo") >&5
  35282. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35283. ac_status=$?
  35284. grep -v '^ *+' conftest.er1 >conftest.err
  35285. rm -f conftest.er1
  35286. cat conftest.err >&5
  35287. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35288. (exit $ac_status); } >/dev/null && {
  35289. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35290. test ! -s conftest.err
  35291. }; then
  35292. ac_header_preproc=yes
  35293. else
  35294. $as_echo "$as_me: failed program was:" >&5
  35295. sed 's/^/| /' conftest.$ac_ext >&5
  35296. ac_header_preproc=no
  35297. fi
  35298. rm -f conftest.err conftest.$ac_ext
  35299. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35300. $as_echo "$ac_header_preproc" >&6; }
  35301. # So? What about this header?
  35302. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35303. yes:no: )
  35304. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35305. $as_echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35306. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
  35307. $as_echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
  35308. ac_header_preproc=yes
  35309. ;;
  35310. no:yes:* )
  35311. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
  35312. $as_echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
  35313. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
  35314. $as_echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
  35315. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
  35316. $as_echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
  35317. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
  35318. $as_echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35319. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
  35320. $as_echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
  35321. { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
  35322. $as_echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
  35323. ( cat <<\_ASBOX
  35324. ## ------------------------------------------ ##
  35325. ## Report this to https://issues.asterisk.org ##
  35326. ## ------------------------------------------ ##
  35327. _ASBOX
  35328. ) | sed "s/^/$as_me: WARNING: /" >&2
  35329. ;;
  35330. esac
  35331. { $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
  35332. $as_echo_n "checking for portaudio.h... " >&6; }
  35333. if test "${ac_cv_header_portaudio_h+set}" = set; then
  35334. $as_echo_n "(cached) " >&6
  35335. else
  35336. ac_cv_header_portaudio_h=$ac_header_preproc
  35337. fi
  35338. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
  35339. $as_echo "$ac_cv_header_portaudio_h" >&6; }
  35340. fi
  35341. if test "x$ac_cv_header_portaudio_h" = x""yes; then
  35342. PORTAUDIO_HEADER_FOUND=1
  35343. else
  35344. PORTAUDIO_HEADER_FOUND=0
  35345. fi
  35346. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35347. fi
  35348. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  35349. PORTAUDIO_LIB=""
  35350. PORTAUDIO_INCLUDE=""
  35351. else
  35352. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35353. PORTAUDIO_LIB=""
  35354. fi
  35355. PBX_PORTAUDIO=1
  35356. cat >>confdefs.h <<_ACEOF
  35357. #define HAVE_PORTAUDIO 1
  35358. _ACEOF
  35359. fi
  35360. fi
  35361. fi
  35362. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  35363. pbxlibdir=""
  35364. # if --with-PRI=DIR has been specified, use it.
  35365. if test "x${PRI_DIR}" != "x"; then
  35366. if test -d ${PRI_DIR}/lib; then
  35367. pbxlibdir="-L${PRI_DIR}/lib"
  35368. else
  35369. pbxlibdir="-L${PRI_DIR}"
  35370. fi
  35371. fi
  35372. pbxfuncname="pri_connected_line_update"
  35373. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35374. AST_PRI_FOUND=yes
  35375. else
  35376. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35377. CFLAGS="${CFLAGS} "
  35378. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  35379. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  35380. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  35381. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35382. $as_echo_n "(cached) " >&6
  35383. else
  35384. ac_check_lib_save_LIBS=$LIBS
  35385. LIBS="-lpri ${pbxlibdir} $LIBS"
  35386. cat >conftest.$ac_ext <<_ACEOF
  35387. /* confdefs.h. */
  35388. _ACEOF
  35389. cat confdefs.h >>conftest.$ac_ext
  35390. cat >>conftest.$ac_ext <<_ACEOF
  35391. /* end confdefs.h. */
  35392. /* Override any GCC internal prototype to avoid an error.
  35393. Use char because int might match the return type of a GCC
  35394. builtin and then its argument prototype would still apply. */
  35395. #ifdef __cplusplus
  35396. extern "C"
  35397. #endif
  35398. char ${pbxfuncname} ();
  35399. int
  35400. main ()
  35401. {
  35402. return ${pbxfuncname} ();
  35403. ;
  35404. return 0;
  35405. }
  35406. _ACEOF
  35407. rm -f conftest.$ac_objext conftest$ac_exeext
  35408. if { (ac_try="$ac_link"
  35409. case "(($ac_try" in
  35410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35411. *) ac_try_echo=$ac_try;;
  35412. esac
  35413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35414. $as_echo "$ac_try_echo") >&5
  35415. (eval "$ac_link") 2>conftest.er1
  35416. ac_status=$?
  35417. grep -v '^ *+' conftest.er1 >conftest.err
  35418. rm -f conftest.er1
  35419. cat conftest.err >&5
  35420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35421. (exit $ac_status); } && {
  35422. test -z "$ac_c_werror_flag" ||
  35423. test ! -s conftest.err
  35424. } && test -s conftest$ac_exeext && {
  35425. test "$cross_compiling" = yes ||
  35426. $as_test_x conftest$ac_exeext
  35427. }; then
  35428. eval "$as_ac_Lib=yes"
  35429. else
  35430. $as_echo "$as_me: failed program was:" >&5
  35431. sed 's/^/| /' conftest.$ac_ext >&5
  35432. eval "$as_ac_Lib=no"
  35433. fi
  35434. rm -rf conftest.dSYM
  35435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35436. conftest$ac_exeext conftest.$ac_ext
  35437. LIBS=$ac_check_lib_save_LIBS
  35438. fi
  35439. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35440. $as_echo "$as_val"'`
  35441. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35442. $as_echo "$ac_res" >&6; }
  35443. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35444. $as_echo "$as_val"'`
  35445. if test "x$as_val" = x""yes; then
  35446. AST_PRI_FOUND=yes
  35447. else
  35448. AST_PRI_FOUND=no
  35449. fi
  35450. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35451. fi
  35452. # now check for the header.
  35453. if test "${AST_PRI_FOUND}" = "yes"; then
  35454. PRI_LIB="${pbxlibdir} -lpri "
  35455. # if --with-PRI=DIR has been specified, use it.
  35456. if test "x${PRI_DIR}" != "x"; then
  35457. PRI_INCLUDE="-I${PRI_DIR}/include"
  35458. fi
  35459. PRI_INCLUDE="${PRI_INCLUDE} "
  35460. if test "xlibpri.h" = "x" ; then # no header, assume found
  35461. PRI_HEADER_FOUND="1"
  35462. else # check for the header
  35463. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35464. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  35465. if test "${ac_cv_header_libpri_h+set}" = set; then
  35466. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35467. $as_echo_n "checking for libpri.h... " >&6; }
  35468. if test "${ac_cv_header_libpri_h+set}" = set; then
  35469. $as_echo_n "(cached) " >&6
  35470. fi
  35471. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35472. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35473. else
  35474. # Is the header compilable?
  35475. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  35476. $as_echo_n "checking libpri.h usability... " >&6; }
  35477. cat >conftest.$ac_ext <<_ACEOF
  35478. /* confdefs.h. */
  35479. _ACEOF
  35480. cat confdefs.h >>conftest.$ac_ext
  35481. cat >>conftest.$ac_ext <<_ACEOF
  35482. /* end confdefs.h. */
  35483. $ac_includes_default
  35484. #include <libpri.h>
  35485. _ACEOF
  35486. rm -f conftest.$ac_objext
  35487. if { (ac_try="$ac_compile"
  35488. case "(($ac_try" in
  35489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35490. *) ac_try_echo=$ac_try;;
  35491. esac
  35492. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35493. $as_echo "$ac_try_echo") >&5
  35494. (eval "$ac_compile") 2>conftest.er1
  35495. ac_status=$?
  35496. grep -v '^ *+' conftest.er1 >conftest.err
  35497. rm -f conftest.er1
  35498. cat conftest.err >&5
  35499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35500. (exit $ac_status); } && {
  35501. test -z "$ac_c_werror_flag" ||
  35502. test ! -s conftest.err
  35503. } && test -s conftest.$ac_objext; then
  35504. ac_header_compiler=yes
  35505. else
  35506. $as_echo "$as_me: failed program was:" >&5
  35507. sed 's/^/| /' conftest.$ac_ext >&5
  35508. ac_header_compiler=no
  35509. fi
  35510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35511. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35512. $as_echo "$ac_header_compiler" >&6; }
  35513. # Is the header present?
  35514. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  35515. $as_echo_n "checking libpri.h presence... " >&6; }
  35516. cat >conftest.$ac_ext <<_ACEOF
  35517. /* confdefs.h. */
  35518. _ACEOF
  35519. cat confdefs.h >>conftest.$ac_ext
  35520. cat >>conftest.$ac_ext <<_ACEOF
  35521. /* end confdefs.h. */
  35522. #include <libpri.h>
  35523. _ACEOF
  35524. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35525. case "(($ac_try" in
  35526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35527. *) ac_try_echo=$ac_try;;
  35528. esac
  35529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35530. $as_echo "$ac_try_echo") >&5
  35531. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35532. ac_status=$?
  35533. grep -v '^ *+' conftest.er1 >conftest.err
  35534. rm -f conftest.er1
  35535. cat conftest.err >&5
  35536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35537. (exit $ac_status); } >/dev/null && {
  35538. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35539. test ! -s conftest.err
  35540. }; then
  35541. ac_header_preproc=yes
  35542. else
  35543. $as_echo "$as_me: failed program was:" >&5
  35544. sed 's/^/| /' conftest.$ac_ext >&5
  35545. ac_header_preproc=no
  35546. fi
  35547. rm -f conftest.err conftest.$ac_ext
  35548. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35549. $as_echo "$ac_header_preproc" >&6; }
  35550. # So? What about this header?
  35551. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35552. yes:no: )
  35553. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35554. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35555. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  35556. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  35557. ac_header_preproc=yes
  35558. ;;
  35559. no:yes:* )
  35560. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  35561. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  35562. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  35563. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  35564. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  35565. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  35566. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  35567. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35568. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  35569. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  35570. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  35571. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  35572. ( cat <<\_ASBOX
  35573. ## ------------------------------------------ ##
  35574. ## Report this to https://issues.asterisk.org ##
  35575. ## ------------------------------------------ ##
  35576. _ASBOX
  35577. ) | sed "s/^/$as_me: WARNING: /" >&2
  35578. ;;
  35579. esac
  35580. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35581. $as_echo_n "checking for libpri.h... " >&6; }
  35582. if test "${ac_cv_header_libpri_h+set}" = set; then
  35583. $as_echo_n "(cached) " >&6
  35584. else
  35585. ac_cv_header_libpri_h=$ac_header_preproc
  35586. fi
  35587. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35588. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35589. fi
  35590. if test "x$ac_cv_header_libpri_h" = x""yes; then
  35591. PRI_HEADER_FOUND=1
  35592. else
  35593. PRI_HEADER_FOUND=0
  35594. fi
  35595. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35596. fi
  35597. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  35598. PRI_LIB=""
  35599. PRI_INCLUDE=""
  35600. else
  35601. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35602. PRI_LIB=""
  35603. fi
  35604. PBX_PRI=1
  35605. cat >>confdefs.h <<_ACEOF
  35606. #define HAVE_PRI 1
  35607. _ACEOF
  35608. fi
  35609. fi
  35610. fi
  35611. if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
  35612. pbxlibdir=""
  35613. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  35614. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  35615. if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
  35616. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
  35617. else
  35618. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
  35619. fi
  35620. fi
  35621. pbxfuncname="pri_persistent_layer2_option"
  35622. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35623. AST_PRI_L2_PERSISTENCE_FOUND=yes
  35624. else
  35625. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35626. CFLAGS="${CFLAGS} "
  35627. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  35628. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  35629. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  35630. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35631. $as_echo_n "(cached) " >&6
  35632. else
  35633. ac_check_lib_save_LIBS=$LIBS
  35634. LIBS="-lpri ${pbxlibdir} $LIBS"
  35635. cat >conftest.$ac_ext <<_ACEOF
  35636. /* confdefs.h. */
  35637. _ACEOF
  35638. cat confdefs.h >>conftest.$ac_ext
  35639. cat >>conftest.$ac_ext <<_ACEOF
  35640. /* end confdefs.h. */
  35641. /* Override any GCC internal prototype to avoid an error.
  35642. Use char because int might match the return type of a GCC
  35643. builtin and then its argument prototype would still apply. */
  35644. #ifdef __cplusplus
  35645. extern "C"
  35646. #endif
  35647. char ${pbxfuncname} ();
  35648. int
  35649. main ()
  35650. {
  35651. return ${pbxfuncname} ();
  35652. ;
  35653. return 0;
  35654. }
  35655. _ACEOF
  35656. rm -f conftest.$ac_objext conftest$ac_exeext
  35657. if { (ac_try="$ac_link"
  35658. case "(($ac_try" in
  35659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35660. *) ac_try_echo=$ac_try;;
  35661. esac
  35662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35663. $as_echo "$ac_try_echo") >&5
  35664. (eval "$ac_link") 2>conftest.er1
  35665. ac_status=$?
  35666. grep -v '^ *+' conftest.er1 >conftest.err
  35667. rm -f conftest.er1
  35668. cat conftest.err >&5
  35669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35670. (exit $ac_status); } && {
  35671. test -z "$ac_c_werror_flag" ||
  35672. test ! -s conftest.err
  35673. } && test -s conftest$ac_exeext && {
  35674. test "$cross_compiling" = yes ||
  35675. $as_test_x conftest$ac_exeext
  35676. }; then
  35677. eval "$as_ac_Lib=yes"
  35678. else
  35679. $as_echo "$as_me: failed program was:" >&5
  35680. sed 's/^/| /' conftest.$ac_ext >&5
  35681. eval "$as_ac_Lib=no"
  35682. fi
  35683. rm -rf conftest.dSYM
  35684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35685. conftest$ac_exeext conftest.$ac_ext
  35686. LIBS=$ac_check_lib_save_LIBS
  35687. fi
  35688. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35689. $as_echo "$as_val"'`
  35690. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35691. $as_echo "$ac_res" >&6; }
  35692. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35693. $as_echo "$as_val"'`
  35694. if test "x$as_val" = x""yes; then
  35695. AST_PRI_L2_PERSISTENCE_FOUND=yes
  35696. else
  35697. AST_PRI_L2_PERSISTENCE_FOUND=no
  35698. fi
  35699. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35700. fi
  35701. # now check for the header.
  35702. if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
  35703. PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
  35704. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  35705. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  35706. PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
  35707. fi
  35708. PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
  35709. if test "xlibpri.h" = "x" ; then # no header, assume found
  35710. PRI_L2_PERSISTENCE_HEADER_FOUND="1"
  35711. else # check for the header
  35712. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35713. CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
  35714. if test "${ac_cv_header_libpri_h+set}" = set; then
  35715. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35716. $as_echo_n "checking for libpri.h... " >&6; }
  35717. if test "${ac_cv_header_libpri_h+set}" = set; then
  35718. $as_echo_n "(cached) " >&6
  35719. fi
  35720. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35721. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35722. else
  35723. # Is the header compilable?
  35724. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  35725. $as_echo_n "checking libpri.h usability... " >&6; }
  35726. cat >conftest.$ac_ext <<_ACEOF
  35727. /* confdefs.h. */
  35728. _ACEOF
  35729. cat confdefs.h >>conftest.$ac_ext
  35730. cat >>conftest.$ac_ext <<_ACEOF
  35731. /* end confdefs.h. */
  35732. $ac_includes_default
  35733. #include <libpri.h>
  35734. _ACEOF
  35735. rm -f conftest.$ac_objext
  35736. if { (ac_try="$ac_compile"
  35737. case "(($ac_try" in
  35738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35739. *) ac_try_echo=$ac_try;;
  35740. esac
  35741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35742. $as_echo "$ac_try_echo") >&5
  35743. (eval "$ac_compile") 2>conftest.er1
  35744. ac_status=$?
  35745. grep -v '^ *+' conftest.er1 >conftest.err
  35746. rm -f conftest.er1
  35747. cat conftest.err >&5
  35748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35749. (exit $ac_status); } && {
  35750. test -z "$ac_c_werror_flag" ||
  35751. test ! -s conftest.err
  35752. } && test -s conftest.$ac_objext; then
  35753. ac_header_compiler=yes
  35754. else
  35755. $as_echo "$as_me: failed program was:" >&5
  35756. sed 's/^/| /' conftest.$ac_ext >&5
  35757. ac_header_compiler=no
  35758. fi
  35759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35760. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  35761. $as_echo "$ac_header_compiler" >&6; }
  35762. # Is the header present?
  35763. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  35764. $as_echo_n "checking libpri.h presence... " >&6; }
  35765. cat >conftest.$ac_ext <<_ACEOF
  35766. /* confdefs.h. */
  35767. _ACEOF
  35768. cat confdefs.h >>conftest.$ac_ext
  35769. cat >>conftest.$ac_ext <<_ACEOF
  35770. /* end confdefs.h. */
  35771. #include <libpri.h>
  35772. _ACEOF
  35773. if { (ac_try="$ac_cpp conftest.$ac_ext"
  35774. case "(($ac_try" in
  35775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35776. *) ac_try_echo=$ac_try;;
  35777. esac
  35778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35779. $as_echo "$ac_try_echo") >&5
  35780. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  35781. ac_status=$?
  35782. grep -v '^ *+' conftest.er1 >conftest.err
  35783. rm -f conftest.er1
  35784. cat conftest.err >&5
  35785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35786. (exit $ac_status); } >/dev/null && {
  35787. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  35788. test ! -s conftest.err
  35789. }; then
  35790. ac_header_preproc=yes
  35791. else
  35792. $as_echo "$as_me: failed program was:" >&5
  35793. sed 's/^/| /' conftest.$ac_ext >&5
  35794. ac_header_preproc=no
  35795. fi
  35796. rm -f conftest.err conftest.$ac_ext
  35797. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  35798. $as_echo "$ac_header_preproc" >&6; }
  35799. # So? What about this header?
  35800. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  35801. yes:no: )
  35802. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  35803. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  35804. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  35805. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  35806. ac_header_preproc=yes
  35807. ;;
  35808. no:yes:* )
  35809. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  35810. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  35811. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  35812. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  35813. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  35814. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  35815. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  35816. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  35817. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  35818. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  35819. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  35820. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  35821. ( cat <<\_ASBOX
  35822. ## ------------------------------------------ ##
  35823. ## Report this to https://issues.asterisk.org ##
  35824. ## ------------------------------------------ ##
  35825. _ASBOX
  35826. ) | sed "s/^/$as_me: WARNING: /" >&2
  35827. ;;
  35828. esac
  35829. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35830. $as_echo_n "checking for libpri.h... " >&6; }
  35831. if test "${ac_cv_header_libpri_h+set}" = set; then
  35832. $as_echo_n "(cached) " >&6
  35833. else
  35834. ac_cv_header_libpri_h=$ac_header_preproc
  35835. fi
  35836. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35837. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35838. fi
  35839. if test "x$ac_cv_header_libpri_h" = x""yes; then
  35840. PRI_L2_PERSISTENCE_HEADER_FOUND=1
  35841. else
  35842. PRI_L2_PERSISTENCE_HEADER_FOUND=0
  35843. fi
  35844. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  35845. fi
  35846. if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
  35847. PRI_L2_PERSISTENCE_LIB=""
  35848. PRI_L2_PERSISTENCE_INCLUDE=""
  35849. else
  35850. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  35851. PRI_L2_PERSISTENCE_LIB=""
  35852. fi
  35853. PBX_PRI_L2_PERSISTENCE=1
  35854. cat >>confdefs.h <<_ACEOF
  35855. #define HAVE_PRI_L2_PERSISTENCE 1
  35856. _ACEOF
  35857. fi
  35858. fi
  35859. fi
  35860. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  35861. pbxlibdir=""
  35862. # if --with-PRI_MWI=DIR has been specified, use it.
  35863. if test "x${PRI_MWI_DIR}" != "x"; then
  35864. if test -d ${PRI_MWI_DIR}/lib; then
  35865. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  35866. else
  35867. pbxlibdir="-L${PRI_MWI_DIR}"
  35868. fi
  35869. fi
  35870. pbxfuncname="pri_mwi_indicate"
  35871. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  35872. AST_PRI_MWI_FOUND=yes
  35873. else
  35874. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  35875. CFLAGS="${CFLAGS} "
  35876. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  35877. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  35878. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  35879. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  35880. $as_echo_n "(cached) " >&6
  35881. else
  35882. ac_check_lib_save_LIBS=$LIBS
  35883. LIBS="-lpri ${pbxlibdir} $LIBS"
  35884. cat >conftest.$ac_ext <<_ACEOF
  35885. /* confdefs.h. */
  35886. _ACEOF
  35887. cat confdefs.h >>conftest.$ac_ext
  35888. cat >>conftest.$ac_ext <<_ACEOF
  35889. /* end confdefs.h. */
  35890. /* Override any GCC internal prototype to avoid an error.
  35891. Use char because int might match the return type of a GCC
  35892. builtin and then its argument prototype would still apply. */
  35893. #ifdef __cplusplus
  35894. extern "C"
  35895. #endif
  35896. char ${pbxfuncname} ();
  35897. int
  35898. main ()
  35899. {
  35900. return ${pbxfuncname} ();
  35901. ;
  35902. return 0;
  35903. }
  35904. _ACEOF
  35905. rm -f conftest.$ac_objext conftest$ac_exeext
  35906. if { (ac_try="$ac_link"
  35907. case "(($ac_try" in
  35908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35909. *) ac_try_echo=$ac_try;;
  35910. esac
  35911. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35912. $as_echo "$ac_try_echo") >&5
  35913. (eval "$ac_link") 2>conftest.er1
  35914. ac_status=$?
  35915. grep -v '^ *+' conftest.er1 >conftest.err
  35916. rm -f conftest.er1
  35917. cat conftest.err >&5
  35918. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35919. (exit $ac_status); } && {
  35920. test -z "$ac_c_werror_flag" ||
  35921. test ! -s conftest.err
  35922. } && test -s conftest$ac_exeext && {
  35923. test "$cross_compiling" = yes ||
  35924. $as_test_x conftest$ac_exeext
  35925. }; then
  35926. eval "$as_ac_Lib=yes"
  35927. else
  35928. $as_echo "$as_me: failed program was:" >&5
  35929. sed 's/^/| /' conftest.$ac_ext >&5
  35930. eval "$as_ac_Lib=no"
  35931. fi
  35932. rm -rf conftest.dSYM
  35933. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35934. conftest$ac_exeext conftest.$ac_ext
  35935. LIBS=$ac_check_lib_save_LIBS
  35936. fi
  35937. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  35938. $as_echo "$as_val"'`
  35939. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  35940. $as_echo "$ac_res" >&6; }
  35941. as_val=`eval 'as_val=${'$as_ac_Lib'}
  35942. $as_echo "$as_val"'`
  35943. if test "x$as_val" = x""yes; then
  35944. AST_PRI_MWI_FOUND=yes
  35945. else
  35946. AST_PRI_MWI_FOUND=no
  35947. fi
  35948. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  35949. fi
  35950. # now check for the header.
  35951. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  35952. PRI_MWI_LIB="${pbxlibdir} -lpri "
  35953. # if --with-PRI_MWI=DIR has been specified, use it.
  35954. if test "x${PRI_MWI_DIR}" != "x"; then
  35955. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  35956. fi
  35957. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  35958. if test "xlibpri.h" = "x" ; then # no header, assume found
  35959. PRI_MWI_HEADER_FOUND="1"
  35960. else # check for the header
  35961. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  35962. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  35963. if test "${ac_cv_header_libpri_h+set}" = set; then
  35964. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  35965. $as_echo_n "checking for libpri.h... " >&6; }
  35966. if test "${ac_cv_header_libpri_h+set}" = set; then
  35967. $as_echo_n "(cached) " >&6
  35968. fi
  35969. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  35970. $as_echo "$ac_cv_header_libpri_h" >&6; }
  35971. else
  35972. # Is the header compilable?
  35973. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  35974. $as_echo_n "checking libpri.h usability... " >&6; }
  35975. cat >conftest.$ac_ext <<_ACEOF
  35976. /* confdefs.h. */
  35977. _ACEOF
  35978. cat confdefs.h >>conftest.$ac_ext
  35979. cat >>conftest.$ac_ext <<_ACEOF
  35980. /* end confdefs.h. */
  35981. $ac_includes_default
  35982. #include <libpri.h>
  35983. _ACEOF
  35984. rm -f conftest.$ac_objext
  35985. if { (ac_try="$ac_compile"
  35986. case "(($ac_try" in
  35987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35988. *) ac_try_echo=$ac_try;;
  35989. esac
  35990. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35991. $as_echo "$ac_try_echo") >&5
  35992. (eval "$ac_compile") 2>conftest.er1
  35993. ac_status=$?
  35994. grep -v '^ *+' conftest.er1 >conftest.err
  35995. rm -f conftest.er1
  35996. cat conftest.err >&5
  35997. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35998. (exit $ac_status); } && {
  35999. test -z "$ac_c_werror_flag" ||
  36000. test ! -s conftest.err
  36001. } && test -s conftest.$ac_objext; then
  36002. ac_header_compiler=yes
  36003. else
  36004. $as_echo "$as_me: failed program was:" >&5
  36005. sed 's/^/| /' conftest.$ac_ext >&5
  36006. ac_header_compiler=no
  36007. fi
  36008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36009. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36010. $as_echo "$ac_header_compiler" >&6; }
  36011. # Is the header present?
  36012. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36013. $as_echo_n "checking libpri.h presence... " >&6; }
  36014. cat >conftest.$ac_ext <<_ACEOF
  36015. /* confdefs.h. */
  36016. _ACEOF
  36017. cat confdefs.h >>conftest.$ac_ext
  36018. cat >>conftest.$ac_ext <<_ACEOF
  36019. /* end confdefs.h. */
  36020. #include <libpri.h>
  36021. _ACEOF
  36022. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36023. case "(($ac_try" in
  36024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36025. *) ac_try_echo=$ac_try;;
  36026. esac
  36027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36028. $as_echo "$ac_try_echo") >&5
  36029. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36030. ac_status=$?
  36031. grep -v '^ *+' conftest.er1 >conftest.err
  36032. rm -f conftest.er1
  36033. cat conftest.err >&5
  36034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36035. (exit $ac_status); } >/dev/null && {
  36036. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36037. test ! -s conftest.err
  36038. }; then
  36039. ac_header_preproc=yes
  36040. else
  36041. $as_echo "$as_me: failed program was:" >&5
  36042. sed 's/^/| /' conftest.$ac_ext >&5
  36043. ac_header_preproc=no
  36044. fi
  36045. rm -f conftest.err conftest.$ac_ext
  36046. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36047. $as_echo "$ac_header_preproc" >&6; }
  36048. # So? What about this header?
  36049. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36050. yes:no: )
  36051. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36052. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36053. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36054. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36055. ac_header_preproc=yes
  36056. ;;
  36057. no:yes:* )
  36058. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36059. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36060. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36061. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36062. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36063. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36064. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36065. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36066. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36067. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36068. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36069. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36070. ( cat <<\_ASBOX
  36071. ## ------------------------------------------ ##
  36072. ## Report this to https://issues.asterisk.org ##
  36073. ## ------------------------------------------ ##
  36074. _ASBOX
  36075. ) | sed "s/^/$as_me: WARNING: /" >&2
  36076. ;;
  36077. esac
  36078. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36079. $as_echo_n "checking for libpri.h... " >&6; }
  36080. if test "${ac_cv_header_libpri_h+set}" = set; then
  36081. $as_echo_n "(cached) " >&6
  36082. else
  36083. ac_cv_header_libpri_h=$ac_header_preproc
  36084. fi
  36085. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36086. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36087. fi
  36088. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36089. PRI_MWI_HEADER_FOUND=1
  36090. else
  36091. PRI_MWI_HEADER_FOUND=0
  36092. fi
  36093. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36094. fi
  36095. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  36096. PRI_MWI_LIB=""
  36097. PRI_MWI_INCLUDE=""
  36098. else
  36099. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36100. PRI_MWI_LIB=""
  36101. fi
  36102. PBX_PRI_MWI=1
  36103. cat >>confdefs.h <<_ACEOF
  36104. #define HAVE_PRI_MWI 1
  36105. _ACEOF
  36106. fi
  36107. fi
  36108. fi
  36109. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  36110. pbxlibdir=""
  36111. # if --with-PRI_MCID=DIR has been specified, use it.
  36112. if test "x${PRI_MCID_DIR}" != "x"; then
  36113. if test -d ${PRI_MCID_DIR}/lib; then
  36114. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  36115. else
  36116. pbxlibdir="-L${PRI_MCID_DIR}"
  36117. fi
  36118. fi
  36119. pbxfuncname="pri_mcid_enable"
  36120. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36121. AST_PRI_MCID_FOUND=yes
  36122. else
  36123. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36124. CFLAGS="${CFLAGS} "
  36125. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36126. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36127. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36128. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36129. $as_echo_n "(cached) " >&6
  36130. else
  36131. ac_check_lib_save_LIBS=$LIBS
  36132. LIBS="-lpri ${pbxlibdir} $LIBS"
  36133. cat >conftest.$ac_ext <<_ACEOF
  36134. /* confdefs.h. */
  36135. _ACEOF
  36136. cat confdefs.h >>conftest.$ac_ext
  36137. cat >>conftest.$ac_ext <<_ACEOF
  36138. /* end confdefs.h. */
  36139. /* Override any GCC internal prototype to avoid an error.
  36140. Use char because int might match the return type of a GCC
  36141. builtin and then its argument prototype would still apply. */
  36142. #ifdef __cplusplus
  36143. extern "C"
  36144. #endif
  36145. char ${pbxfuncname} ();
  36146. int
  36147. main ()
  36148. {
  36149. return ${pbxfuncname} ();
  36150. ;
  36151. return 0;
  36152. }
  36153. _ACEOF
  36154. rm -f conftest.$ac_objext conftest$ac_exeext
  36155. if { (ac_try="$ac_link"
  36156. case "(($ac_try" in
  36157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36158. *) ac_try_echo=$ac_try;;
  36159. esac
  36160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36161. $as_echo "$ac_try_echo") >&5
  36162. (eval "$ac_link") 2>conftest.er1
  36163. ac_status=$?
  36164. grep -v '^ *+' conftest.er1 >conftest.err
  36165. rm -f conftest.er1
  36166. cat conftest.err >&5
  36167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36168. (exit $ac_status); } && {
  36169. test -z "$ac_c_werror_flag" ||
  36170. test ! -s conftest.err
  36171. } && test -s conftest$ac_exeext && {
  36172. test "$cross_compiling" = yes ||
  36173. $as_test_x conftest$ac_exeext
  36174. }; then
  36175. eval "$as_ac_Lib=yes"
  36176. else
  36177. $as_echo "$as_me: failed program was:" >&5
  36178. sed 's/^/| /' conftest.$ac_ext >&5
  36179. eval "$as_ac_Lib=no"
  36180. fi
  36181. rm -rf conftest.dSYM
  36182. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36183. conftest$ac_exeext conftest.$ac_ext
  36184. LIBS=$ac_check_lib_save_LIBS
  36185. fi
  36186. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36187. $as_echo "$as_val"'`
  36188. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36189. $as_echo "$ac_res" >&6; }
  36190. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36191. $as_echo "$as_val"'`
  36192. if test "x$as_val" = x""yes; then
  36193. AST_PRI_MCID_FOUND=yes
  36194. else
  36195. AST_PRI_MCID_FOUND=no
  36196. fi
  36197. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36198. fi
  36199. # now check for the header.
  36200. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  36201. PRI_MCID_LIB="${pbxlibdir} -lpri "
  36202. # if --with-PRI_MCID=DIR has been specified, use it.
  36203. if test "x${PRI_MCID_DIR}" != "x"; then
  36204. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  36205. fi
  36206. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  36207. if test "xlibpri.h" = "x" ; then # no header, assume found
  36208. PRI_MCID_HEADER_FOUND="1"
  36209. else # check for the header
  36210. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36211. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  36212. if test "${ac_cv_header_libpri_h+set}" = set; then
  36213. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36214. $as_echo_n "checking for libpri.h... " >&6; }
  36215. if test "${ac_cv_header_libpri_h+set}" = set; then
  36216. $as_echo_n "(cached) " >&6
  36217. fi
  36218. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36219. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36220. else
  36221. # Is the header compilable?
  36222. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36223. $as_echo_n "checking libpri.h usability... " >&6; }
  36224. cat >conftest.$ac_ext <<_ACEOF
  36225. /* confdefs.h. */
  36226. _ACEOF
  36227. cat confdefs.h >>conftest.$ac_ext
  36228. cat >>conftest.$ac_ext <<_ACEOF
  36229. /* end confdefs.h. */
  36230. $ac_includes_default
  36231. #include <libpri.h>
  36232. _ACEOF
  36233. rm -f conftest.$ac_objext
  36234. if { (ac_try="$ac_compile"
  36235. case "(($ac_try" in
  36236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36237. *) ac_try_echo=$ac_try;;
  36238. esac
  36239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36240. $as_echo "$ac_try_echo") >&5
  36241. (eval "$ac_compile") 2>conftest.er1
  36242. ac_status=$?
  36243. grep -v '^ *+' conftest.er1 >conftest.err
  36244. rm -f conftest.er1
  36245. cat conftest.err >&5
  36246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36247. (exit $ac_status); } && {
  36248. test -z "$ac_c_werror_flag" ||
  36249. test ! -s conftest.err
  36250. } && test -s conftest.$ac_objext; then
  36251. ac_header_compiler=yes
  36252. else
  36253. $as_echo "$as_me: failed program was:" >&5
  36254. sed 's/^/| /' conftest.$ac_ext >&5
  36255. ac_header_compiler=no
  36256. fi
  36257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36258. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36259. $as_echo "$ac_header_compiler" >&6; }
  36260. # Is the header present?
  36261. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36262. $as_echo_n "checking libpri.h presence... " >&6; }
  36263. cat >conftest.$ac_ext <<_ACEOF
  36264. /* confdefs.h. */
  36265. _ACEOF
  36266. cat confdefs.h >>conftest.$ac_ext
  36267. cat >>conftest.$ac_ext <<_ACEOF
  36268. /* end confdefs.h. */
  36269. #include <libpri.h>
  36270. _ACEOF
  36271. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36272. case "(($ac_try" in
  36273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36274. *) ac_try_echo=$ac_try;;
  36275. esac
  36276. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36277. $as_echo "$ac_try_echo") >&5
  36278. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36279. ac_status=$?
  36280. grep -v '^ *+' conftest.er1 >conftest.err
  36281. rm -f conftest.er1
  36282. cat conftest.err >&5
  36283. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36284. (exit $ac_status); } >/dev/null && {
  36285. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36286. test ! -s conftest.err
  36287. }; then
  36288. ac_header_preproc=yes
  36289. else
  36290. $as_echo "$as_me: failed program was:" >&5
  36291. sed 's/^/| /' conftest.$ac_ext >&5
  36292. ac_header_preproc=no
  36293. fi
  36294. rm -f conftest.err conftest.$ac_ext
  36295. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36296. $as_echo "$ac_header_preproc" >&6; }
  36297. # So? What about this header?
  36298. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36299. yes:no: )
  36300. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36301. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36302. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36303. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36304. ac_header_preproc=yes
  36305. ;;
  36306. no:yes:* )
  36307. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36308. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36309. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36310. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36311. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36312. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36313. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36314. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36315. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36316. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36317. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36318. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36319. ( cat <<\_ASBOX
  36320. ## ------------------------------------------ ##
  36321. ## Report this to https://issues.asterisk.org ##
  36322. ## ------------------------------------------ ##
  36323. _ASBOX
  36324. ) | sed "s/^/$as_me: WARNING: /" >&2
  36325. ;;
  36326. esac
  36327. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36328. $as_echo_n "checking for libpri.h... " >&6; }
  36329. if test "${ac_cv_header_libpri_h+set}" = set; then
  36330. $as_echo_n "(cached) " >&6
  36331. else
  36332. ac_cv_header_libpri_h=$ac_header_preproc
  36333. fi
  36334. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36335. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36336. fi
  36337. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36338. PRI_MCID_HEADER_FOUND=1
  36339. else
  36340. PRI_MCID_HEADER_FOUND=0
  36341. fi
  36342. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36343. fi
  36344. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  36345. PRI_MCID_LIB=""
  36346. PRI_MCID_INCLUDE=""
  36347. else
  36348. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36349. PRI_MCID_LIB=""
  36350. fi
  36351. PBX_PRI_MCID=1
  36352. cat >>confdefs.h <<_ACEOF
  36353. #define HAVE_PRI_MCID 1
  36354. _ACEOF
  36355. fi
  36356. fi
  36357. fi
  36358. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  36359. pbxlibdir=""
  36360. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  36361. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  36362. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  36363. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  36364. else
  36365. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  36366. fi
  36367. fi
  36368. pbxfuncname="pri_connect_ack_enable"
  36369. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36370. AST_PRI_CALL_WAITING_FOUND=yes
  36371. else
  36372. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36373. CFLAGS="${CFLAGS} "
  36374. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36375. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36376. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36377. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36378. $as_echo_n "(cached) " >&6
  36379. else
  36380. ac_check_lib_save_LIBS=$LIBS
  36381. LIBS="-lpri ${pbxlibdir} $LIBS"
  36382. cat >conftest.$ac_ext <<_ACEOF
  36383. /* confdefs.h. */
  36384. _ACEOF
  36385. cat confdefs.h >>conftest.$ac_ext
  36386. cat >>conftest.$ac_ext <<_ACEOF
  36387. /* end confdefs.h. */
  36388. /* Override any GCC internal prototype to avoid an error.
  36389. Use char because int might match the return type of a GCC
  36390. builtin and then its argument prototype would still apply. */
  36391. #ifdef __cplusplus
  36392. extern "C"
  36393. #endif
  36394. char ${pbxfuncname} ();
  36395. int
  36396. main ()
  36397. {
  36398. return ${pbxfuncname} ();
  36399. ;
  36400. return 0;
  36401. }
  36402. _ACEOF
  36403. rm -f conftest.$ac_objext conftest$ac_exeext
  36404. if { (ac_try="$ac_link"
  36405. case "(($ac_try" in
  36406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36407. *) ac_try_echo=$ac_try;;
  36408. esac
  36409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36410. $as_echo "$ac_try_echo") >&5
  36411. (eval "$ac_link") 2>conftest.er1
  36412. ac_status=$?
  36413. grep -v '^ *+' conftest.er1 >conftest.err
  36414. rm -f conftest.er1
  36415. cat conftest.err >&5
  36416. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36417. (exit $ac_status); } && {
  36418. test -z "$ac_c_werror_flag" ||
  36419. test ! -s conftest.err
  36420. } && test -s conftest$ac_exeext && {
  36421. test "$cross_compiling" = yes ||
  36422. $as_test_x conftest$ac_exeext
  36423. }; then
  36424. eval "$as_ac_Lib=yes"
  36425. else
  36426. $as_echo "$as_me: failed program was:" >&5
  36427. sed 's/^/| /' conftest.$ac_ext >&5
  36428. eval "$as_ac_Lib=no"
  36429. fi
  36430. rm -rf conftest.dSYM
  36431. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36432. conftest$ac_exeext conftest.$ac_ext
  36433. LIBS=$ac_check_lib_save_LIBS
  36434. fi
  36435. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36436. $as_echo "$as_val"'`
  36437. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36438. $as_echo "$ac_res" >&6; }
  36439. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36440. $as_echo "$as_val"'`
  36441. if test "x$as_val" = x""yes; then
  36442. AST_PRI_CALL_WAITING_FOUND=yes
  36443. else
  36444. AST_PRI_CALL_WAITING_FOUND=no
  36445. fi
  36446. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36447. fi
  36448. # now check for the header.
  36449. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  36450. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  36451. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  36452. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  36453. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  36454. fi
  36455. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  36456. if test "xlibpri.h" = "x" ; then # no header, assume found
  36457. PRI_CALL_WAITING_HEADER_FOUND="1"
  36458. else # check for the header
  36459. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36460. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  36461. if test "${ac_cv_header_libpri_h+set}" = set; then
  36462. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36463. $as_echo_n "checking for libpri.h... " >&6; }
  36464. if test "${ac_cv_header_libpri_h+set}" = set; then
  36465. $as_echo_n "(cached) " >&6
  36466. fi
  36467. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36468. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36469. else
  36470. # Is the header compilable?
  36471. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36472. $as_echo_n "checking libpri.h usability... " >&6; }
  36473. cat >conftest.$ac_ext <<_ACEOF
  36474. /* confdefs.h. */
  36475. _ACEOF
  36476. cat confdefs.h >>conftest.$ac_ext
  36477. cat >>conftest.$ac_ext <<_ACEOF
  36478. /* end confdefs.h. */
  36479. $ac_includes_default
  36480. #include <libpri.h>
  36481. _ACEOF
  36482. rm -f conftest.$ac_objext
  36483. if { (ac_try="$ac_compile"
  36484. case "(($ac_try" in
  36485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36486. *) ac_try_echo=$ac_try;;
  36487. esac
  36488. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36489. $as_echo "$ac_try_echo") >&5
  36490. (eval "$ac_compile") 2>conftest.er1
  36491. ac_status=$?
  36492. grep -v '^ *+' conftest.er1 >conftest.err
  36493. rm -f conftest.er1
  36494. cat conftest.err >&5
  36495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36496. (exit $ac_status); } && {
  36497. test -z "$ac_c_werror_flag" ||
  36498. test ! -s conftest.err
  36499. } && test -s conftest.$ac_objext; then
  36500. ac_header_compiler=yes
  36501. else
  36502. $as_echo "$as_me: failed program was:" >&5
  36503. sed 's/^/| /' conftest.$ac_ext >&5
  36504. ac_header_compiler=no
  36505. fi
  36506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36507. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36508. $as_echo "$ac_header_compiler" >&6; }
  36509. # Is the header present?
  36510. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36511. $as_echo_n "checking libpri.h presence... " >&6; }
  36512. cat >conftest.$ac_ext <<_ACEOF
  36513. /* confdefs.h. */
  36514. _ACEOF
  36515. cat confdefs.h >>conftest.$ac_ext
  36516. cat >>conftest.$ac_ext <<_ACEOF
  36517. /* end confdefs.h. */
  36518. #include <libpri.h>
  36519. _ACEOF
  36520. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36521. case "(($ac_try" in
  36522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36523. *) ac_try_echo=$ac_try;;
  36524. esac
  36525. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36526. $as_echo "$ac_try_echo") >&5
  36527. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36528. ac_status=$?
  36529. grep -v '^ *+' conftest.er1 >conftest.err
  36530. rm -f conftest.er1
  36531. cat conftest.err >&5
  36532. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36533. (exit $ac_status); } >/dev/null && {
  36534. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36535. test ! -s conftest.err
  36536. }; then
  36537. ac_header_preproc=yes
  36538. else
  36539. $as_echo "$as_me: failed program was:" >&5
  36540. sed 's/^/| /' conftest.$ac_ext >&5
  36541. ac_header_preproc=no
  36542. fi
  36543. rm -f conftest.err conftest.$ac_ext
  36544. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36545. $as_echo "$ac_header_preproc" >&6; }
  36546. # So? What about this header?
  36547. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36548. yes:no: )
  36549. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36550. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36551. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36552. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36553. ac_header_preproc=yes
  36554. ;;
  36555. no:yes:* )
  36556. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36557. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36558. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36559. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36560. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36561. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36562. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36563. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36564. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36565. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36566. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36567. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36568. ( cat <<\_ASBOX
  36569. ## ------------------------------------------ ##
  36570. ## Report this to https://issues.asterisk.org ##
  36571. ## ------------------------------------------ ##
  36572. _ASBOX
  36573. ) | sed "s/^/$as_me: WARNING: /" >&2
  36574. ;;
  36575. esac
  36576. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36577. $as_echo_n "checking for libpri.h... " >&6; }
  36578. if test "${ac_cv_header_libpri_h+set}" = set; then
  36579. $as_echo_n "(cached) " >&6
  36580. else
  36581. ac_cv_header_libpri_h=$ac_header_preproc
  36582. fi
  36583. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36584. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36585. fi
  36586. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36587. PRI_CALL_WAITING_HEADER_FOUND=1
  36588. else
  36589. PRI_CALL_WAITING_HEADER_FOUND=0
  36590. fi
  36591. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36592. fi
  36593. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  36594. PRI_CALL_WAITING_LIB=""
  36595. PRI_CALL_WAITING_INCLUDE=""
  36596. else
  36597. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36598. PRI_CALL_WAITING_LIB=""
  36599. fi
  36600. PBX_PRI_CALL_WAITING=1
  36601. cat >>confdefs.h <<_ACEOF
  36602. #define HAVE_PRI_CALL_WAITING 1
  36603. _ACEOF
  36604. fi
  36605. fi
  36606. fi
  36607. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  36608. pbxlibdir=""
  36609. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  36610. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  36611. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  36612. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  36613. else
  36614. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  36615. fi
  36616. fi
  36617. pbxfuncname="pri_aoc_events_enable"
  36618. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36619. AST_PRI_AOC_EVENTS_FOUND=yes
  36620. else
  36621. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36622. CFLAGS="${CFLAGS} "
  36623. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36624. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36625. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36626. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36627. $as_echo_n "(cached) " >&6
  36628. else
  36629. ac_check_lib_save_LIBS=$LIBS
  36630. LIBS="-lpri ${pbxlibdir} $LIBS"
  36631. cat >conftest.$ac_ext <<_ACEOF
  36632. /* confdefs.h. */
  36633. _ACEOF
  36634. cat confdefs.h >>conftest.$ac_ext
  36635. cat >>conftest.$ac_ext <<_ACEOF
  36636. /* end confdefs.h. */
  36637. /* Override any GCC internal prototype to avoid an error.
  36638. Use char because int might match the return type of a GCC
  36639. builtin and then its argument prototype would still apply. */
  36640. #ifdef __cplusplus
  36641. extern "C"
  36642. #endif
  36643. char ${pbxfuncname} ();
  36644. int
  36645. main ()
  36646. {
  36647. return ${pbxfuncname} ();
  36648. ;
  36649. return 0;
  36650. }
  36651. _ACEOF
  36652. rm -f conftest.$ac_objext conftest$ac_exeext
  36653. if { (ac_try="$ac_link"
  36654. case "(($ac_try" in
  36655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36656. *) ac_try_echo=$ac_try;;
  36657. esac
  36658. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36659. $as_echo "$ac_try_echo") >&5
  36660. (eval "$ac_link") 2>conftest.er1
  36661. ac_status=$?
  36662. grep -v '^ *+' conftest.er1 >conftest.err
  36663. rm -f conftest.er1
  36664. cat conftest.err >&5
  36665. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36666. (exit $ac_status); } && {
  36667. test -z "$ac_c_werror_flag" ||
  36668. test ! -s conftest.err
  36669. } && test -s conftest$ac_exeext && {
  36670. test "$cross_compiling" = yes ||
  36671. $as_test_x conftest$ac_exeext
  36672. }; then
  36673. eval "$as_ac_Lib=yes"
  36674. else
  36675. $as_echo "$as_me: failed program was:" >&5
  36676. sed 's/^/| /' conftest.$ac_ext >&5
  36677. eval "$as_ac_Lib=no"
  36678. fi
  36679. rm -rf conftest.dSYM
  36680. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36681. conftest$ac_exeext conftest.$ac_ext
  36682. LIBS=$ac_check_lib_save_LIBS
  36683. fi
  36684. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36685. $as_echo "$as_val"'`
  36686. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36687. $as_echo "$ac_res" >&6; }
  36688. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36689. $as_echo "$as_val"'`
  36690. if test "x$as_val" = x""yes; then
  36691. AST_PRI_AOC_EVENTS_FOUND=yes
  36692. else
  36693. AST_PRI_AOC_EVENTS_FOUND=no
  36694. fi
  36695. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36696. fi
  36697. # now check for the header.
  36698. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  36699. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  36700. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  36701. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  36702. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  36703. fi
  36704. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  36705. if test "xlibpri.h" = "x" ; then # no header, assume found
  36706. PRI_AOC_EVENTS_HEADER_FOUND="1"
  36707. else # check for the header
  36708. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36709. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  36710. if test "${ac_cv_header_libpri_h+set}" = set; then
  36711. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36712. $as_echo_n "checking for libpri.h... " >&6; }
  36713. if test "${ac_cv_header_libpri_h+set}" = set; then
  36714. $as_echo_n "(cached) " >&6
  36715. fi
  36716. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36717. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36718. else
  36719. # Is the header compilable?
  36720. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36721. $as_echo_n "checking libpri.h usability... " >&6; }
  36722. cat >conftest.$ac_ext <<_ACEOF
  36723. /* confdefs.h. */
  36724. _ACEOF
  36725. cat confdefs.h >>conftest.$ac_ext
  36726. cat >>conftest.$ac_ext <<_ACEOF
  36727. /* end confdefs.h. */
  36728. $ac_includes_default
  36729. #include <libpri.h>
  36730. _ACEOF
  36731. rm -f conftest.$ac_objext
  36732. if { (ac_try="$ac_compile"
  36733. case "(($ac_try" in
  36734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36735. *) ac_try_echo=$ac_try;;
  36736. esac
  36737. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36738. $as_echo "$ac_try_echo") >&5
  36739. (eval "$ac_compile") 2>conftest.er1
  36740. ac_status=$?
  36741. grep -v '^ *+' conftest.er1 >conftest.err
  36742. rm -f conftest.er1
  36743. cat conftest.err >&5
  36744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36745. (exit $ac_status); } && {
  36746. test -z "$ac_c_werror_flag" ||
  36747. test ! -s conftest.err
  36748. } && test -s conftest.$ac_objext; then
  36749. ac_header_compiler=yes
  36750. else
  36751. $as_echo "$as_me: failed program was:" >&5
  36752. sed 's/^/| /' conftest.$ac_ext >&5
  36753. ac_header_compiler=no
  36754. fi
  36755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36756. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36757. $as_echo "$ac_header_compiler" >&6; }
  36758. # Is the header present?
  36759. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  36760. $as_echo_n "checking libpri.h presence... " >&6; }
  36761. cat >conftest.$ac_ext <<_ACEOF
  36762. /* confdefs.h. */
  36763. _ACEOF
  36764. cat confdefs.h >>conftest.$ac_ext
  36765. cat >>conftest.$ac_ext <<_ACEOF
  36766. /* end confdefs.h. */
  36767. #include <libpri.h>
  36768. _ACEOF
  36769. if { (ac_try="$ac_cpp conftest.$ac_ext"
  36770. case "(($ac_try" in
  36771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36772. *) ac_try_echo=$ac_try;;
  36773. esac
  36774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36775. $as_echo "$ac_try_echo") >&5
  36776. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36777. ac_status=$?
  36778. grep -v '^ *+' conftest.er1 >conftest.err
  36779. rm -f conftest.er1
  36780. cat conftest.err >&5
  36781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36782. (exit $ac_status); } >/dev/null && {
  36783. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36784. test ! -s conftest.err
  36785. }; then
  36786. ac_header_preproc=yes
  36787. else
  36788. $as_echo "$as_me: failed program was:" >&5
  36789. sed 's/^/| /' conftest.$ac_ext >&5
  36790. ac_header_preproc=no
  36791. fi
  36792. rm -f conftest.err conftest.$ac_ext
  36793. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36794. $as_echo "$ac_header_preproc" >&6; }
  36795. # So? What about this header?
  36796. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36797. yes:no: )
  36798. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  36799. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36800. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  36801. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  36802. ac_header_preproc=yes
  36803. ;;
  36804. no:yes:* )
  36805. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  36806. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  36807. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  36808. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  36809. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  36810. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  36811. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  36812. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  36813. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  36814. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  36815. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  36816. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  36817. ( cat <<\_ASBOX
  36818. ## ------------------------------------------ ##
  36819. ## Report this to https://issues.asterisk.org ##
  36820. ## ------------------------------------------ ##
  36821. _ASBOX
  36822. ) | sed "s/^/$as_me: WARNING: /" >&2
  36823. ;;
  36824. esac
  36825. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36826. $as_echo_n "checking for libpri.h... " >&6; }
  36827. if test "${ac_cv_header_libpri_h+set}" = set; then
  36828. $as_echo_n "(cached) " >&6
  36829. else
  36830. ac_cv_header_libpri_h=$ac_header_preproc
  36831. fi
  36832. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36833. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36834. fi
  36835. if test "x$ac_cv_header_libpri_h" = x""yes; then
  36836. PRI_AOC_EVENTS_HEADER_FOUND=1
  36837. else
  36838. PRI_AOC_EVENTS_HEADER_FOUND=0
  36839. fi
  36840. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  36841. fi
  36842. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  36843. PRI_AOC_EVENTS_LIB=""
  36844. PRI_AOC_EVENTS_INCLUDE=""
  36845. else
  36846. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  36847. PRI_AOC_EVENTS_LIB=""
  36848. fi
  36849. PBX_PRI_AOC_EVENTS=1
  36850. cat >>confdefs.h <<_ACEOF
  36851. #define HAVE_PRI_AOC_EVENTS 1
  36852. _ACEOF
  36853. fi
  36854. fi
  36855. fi
  36856. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  36857. pbxlibdir=""
  36858. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  36859. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  36860. if test -d ${PRI_TRANSFER_DIR}/lib; then
  36861. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  36862. else
  36863. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  36864. fi
  36865. fi
  36866. pbxfuncname="pri_transfer_enable"
  36867. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  36868. AST_PRI_TRANSFER_FOUND=yes
  36869. else
  36870. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  36871. CFLAGS="${CFLAGS} "
  36872. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  36873. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  36874. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  36875. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  36876. $as_echo_n "(cached) " >&6
  36877. else
  36878. ac_check_lib_save_LIBS=$LIBS
  36879. LIBS="-lpri ${pbxlibdir} $LIBS"
  36880. cat >conftest.$ac_ext <<_ACEOF
  36881. /* confdefs.h. */
  36882. _ACEOF
  36883. cat confdefs.h >>conftest.$ac_ext
  36884. cat >>conftest.$ac_ext <<_ACEOF
  36885. /* end confdefs.h. */
  36886. /* Override any GCC internal prototype to avoid an error.
  36887. Use char because int might match the return type of a GCC
  36888. builtin and then its argument prototype would still apply. */
  36889. #ifdef __cplusplus
  36890. extern "C"
  36891. #endif
  36892. char ${pbxfuncname} ();
  36893. int
  36894. main ()
  36895. {
  36896. return ${pbxfuncname} ();
  36897. ;
  36898. return 0;
  36899. }
  36900. _ACEOF
  36901. rm -f conftest.$ac_objext conftest$ac_exeext
  36902. if { (ac_try="$ac_link"
  36903. case "(($ac_try" in
  36904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36905. *) ac_try_echo=$ac_try;;
  36906. esac
  36907. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36908. $as_echo "$ac_try_echo") >&5
  36909. (eval "$ac_link") 2>conftest.er1
  36910. ac_status=$?
  36911. grep -v '^ *+' conftest.er1 >conftest.err
  36912. rm -f conftest.er1
  36913. cat conftest.err >&5
  36914. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36915. (exit $ac_status); } && {
  36916. test -z "$ac_c_werror_flag" ||
  36917. test ! -s conftest.err
  36918. } && test -s conftest$ac_exeext && {
  36919. test "$cross_compiling" = yes ||
  36920. $as_test_x conftest$ac_exeext
  36921. }; then
  36922. eval "$as_ac_Lib=yes"
  36923. else
  36924. $as_echo "$as_me: failed program was:" >&5
  36925. sed 's/^/| /' conftest.$ac_ext >&5
  36926. eval "$as_ac_Lib=no"
  36927. fi
  36928. rm -rf conftest.dSYM
  36929. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36930. conftest$ac_exeext conftest.$ac_ext
  36931. LIBS=$ac_check_lib_save_LIBS
  36932. fi
  36933. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  36934. $as_echo "$as_val"'`
  36935. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36936. $as_echo "$ac_res" >&6; }
  36937. as_val=`eval 'as_val=${'$as_ac_Lib'}
  36938. $as_echo "$as_val"'`
  36939. if test "x$as_val" = x""yes; then
  36940. AST_PRI_TRANSFER_FOUND=yes
  36941. else
  36942. AST_PRI_TRANSFER_FOUND=no
  36943. fi
  36944. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  36945. fi
  36946. # now check for the header.
  36947. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  36948. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  36949. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  36950. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  36951. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  36952. fi
  36953. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  36954. if test "xlibpri.h" = "x" ; then # no header, assume found
  36955. PRI_TRANSFER_HEADER_FOUND="1"
  36956. else # check for the header
  36957. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  36958. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  36959. if test "${ac_cv_header_libpri_h+set}" = set; then
  36960. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  36961. $as_echo_n "checking for libpri.h... " >&6; }
  36962. if test "${ac_cv_header_libpri_h+set}" = set; then
  36963. $as_echo_n "(cached) " >&6
  36964. fi
  36965. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  36966. $as_echo "$ac_cv_header_libpri_h" >&6; }
  36967. else
  36968. # Is the header compilable?
  36969. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  36970. $as_echo_n "checking libpri.h usability... " >&6; }
  36971. cat >conftest.$ac_ext <<_ACEOF
  36972. /* confdefs.h. */
  36973. _ACEOF
  36974. cat confdefs.h >>conftest.$ac_ext
  36975. cat >>conftest.$ac_ext <<_ACEOF
  36976. /* end confdefs.h. */
  36977. $ac_includes_default
  36978. #include <libpri.h>
  36979. _ACEOF
  36980. rm -f conftest.$ac_objext
  36981. if { (ac_try="$ac_compile"
  36982. case "(($ac_try" in
  36983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36984. *) ac_try_echo=$ac_try;;
  36985. esac
  36986. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36987. $as_echo "$ac_try_echo") >&5
  36988. (eval "$ac_compile") 2>conftest.er1
  36989. ac_status=$?
  36990. grep -v '^ *+' conftest.er1 >conftest.err
  36991. rm -f conftest.er1
  36992. cat conftest.err >&5
  36993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36994. (exit $ac_status); } && {
  36995. test -z "$ac_c_werror_flag" ||
  36996. test ! -s conftest.err
  36997. } && test -s conftest.$ac_objext; then
  36998. ac_header_compiler=yes
  36999. else
  37000. $as_echo "$as_me: failed program was:" >&5
  37001. sed 's/^/| /' conftest.$ac_ext >&5
  37002. ac_header_compiler=no
  37003. fi
  37004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37005. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37006. $as_echo "$ac_header_compiler" >&6; }
  37007. # Is the header present?
  37008. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37009. $as_echo_n "checking libpri.h presence... " >&6; }
  37010. cat >conftest.$ac_ext <<_ACEOF
  37011. /* confdefs.h. */
  37012. _ACEOF
  37013. cat confdefs.h >>conftest.$ac_ext
  37014. cat >>conftest.$ac_ext <<_ACEOF
  37015. /* end confdefs.h. */
  37016. #include <libpri.h>
  37017. _ACEOF
  37018. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37019. case "(($ac_try" in
  37020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37021. *) ac_try_echo=$ac_try;;
  37022. esac
  37023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37024. $as_echo "$ac_try_echo") >&5
  37025. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37026. ac_status=$?
  37027. grep -v '^ *+' conftest.er1 >conftest.err
  37028. rm -f conftest.er1
  37029. cat conftest.err >&5
  37030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37031. (exit $ac_status); } >/dev/null && {
  37032. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37033. test ! -s conftest.err
  37034. }; then
  37035. ac_header_preproc=yes
  37036. else
  37037. $as_echo "$as_me: failed program was:" >&5
  37038. sed 's/^/| /' conftest.$ac_ext >&5
  37039. ac_header_preproc=no
  37040. fi
  37041. rm -f conftest.err conftest.$ac_ext
  37042. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37043. $as_echo "$ac_header_preproc" >&6; }
  37044. # So? What about this header?
  37045. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37046. yes:no: )
  37047. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37048. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37049. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37050. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37051. ac_header_preproc=yes
  37052. ;;
  37053. no:yes:* )
  37054. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37055. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37056. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37057. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37058. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37059. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37060. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37061. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37062. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37063. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37064. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37065. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37066. ( cat <<\_ASBOX
  37067. ## ------------------------------------------ ##
  37068. ## Report this to https://issues.asterisk.org ##
  37069. ## ------------------------------------------ ##
  37070. _ASBOX
  37071. ) | sed "s/^/$as_me: WARNING: /" >&2
  37072. ;;
  37073. esac
  37074. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37075. $as_echo_n "checking for libpri.h... " >&6; }
  37076. if test "${ac_cv_header_libpri_h+set}" = set; then
  37077. $as_echo_n "(cached) " >&6
  37078. else
  37079. ac_cv_header_libpri_h=$ac_header_preproc
  37080. fi
  37081. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37082. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37083. fi
  37084. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37085. PRI_TRANSFER_HEADER_FOUND=1
  37086. else
  37087. PRI_TRANSFER_HEADER_FOUND=0
  37088. fi
  37089. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37090. fi
  37091. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  37092. PRI_TRANSFER_LIB=""
  37093. PRI_TRANSFER_INCLUDE=""
  37094. else
  37095. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37096. PRI_TRANSFER_LIB=""
  37097. fi
  37098. PBX_PRI_TRANSFER=1
  37099. cat >>confdefs.h <<_ACEOF
  37100. #define HAVE_PRI_TRANSFER 1
  37101. _ACEOF
  37102. fi
  37103. fi
  37104. fi
  37105. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  37106. pbxlibdir=""
  37107. # if --with-PRI_CCSS=DIR has been specified, use it.
  37108. if test "x${PRI_CCSS_DIR}" != "x"; then
  37109. if test -d ${PRI_CCSS_DIR}/lib; then
  37110. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  37111. else
  37112. pbxlibdir="-L${PRI_CCSS_DIR}"
  37113. fi
  37114. fi
  37115. pbxfuncname="pri_cc_enable"
  37116. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37117. AST_PRI_CCSS_FOUND=yes
  37118. else
  37119. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37120. CFLAGS="${CFLAGS} "
  37121. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37122. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37123. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37124. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37125. $as_echo_n "(cached) " >&6
  37126. else
  37127. ac_check_lib_save_LIBS=$LIBS
  37128. LIBS="-lpri ${pbxlibdir} $LIBS"
  37129. cat >conftest.$ac_ext <<_ACEOF
  37130. /* confdefs.h. */
  37131. _ACEOF
  37132. cat confdefs.h >>conftest.$ac_ext
  37133. cat >>conftest.$ac_ext <<_ACEOF
  37134. /* end confdefs.h. */
  37135. /* Override any GCC internal prototype to avoid an error.
  37136. Use char because int might match the return type of a GCC
  37137. builtin and then its argument prototype would still apply. */
  37138. #ifdef __cplusplus
  37139. extern "C"
  37140. #endif
  37141. char ${pbxfuncname} ();
  37142. int
  37143. main ()
  37144. {
  37145. return ${pbxfuncname} ();
  37146. ;
  37147. return 0;
  37148. }
  37149. _ACEOF
  37150. rm -f conftest.$ac_objext conftest$ac_exeext
  37151. if { (ac_try="$ac_link"
  37152. case "(($ac_try" in
  37153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37154. *) ac_try_echo=$ac_try;;
  37155. esac
  37156. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37157. $as_echo "$ac_try_echo") >&5
  37158. (eval "$ac_link") 2>conftest.er1
  37159. ac_status=$?
  37160. grep -v '^ *+' conftest.er1 >conftest.err
  37161. rm -f conftest.er1
  37162. cat conftest.err >&5
  37163. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37164. (exit $ac_status); } && {
  37165. test -z "$ac_c_werror_flag" ||
  37166. test ! -s conftest.err
  37167. } && test -s conftest$ac_exeext && {
  37168. test "$cross_compiling" = yes ||
  37169. $as_test_x conftest$ac_exeext
  37170. }; then
  37171. eval "$as_ac_Lib=yes"
  37172. else
  37173. $as_echo "$as_me: failed program was:" >&5
  37174. sed 's/^/| /' conftest.$ac_ext >&5
  37175. eval "$as_ac_Lib=no"
  37176. fi
  37177. rm -rf conftest.dSYM
  37178. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37179. conftest$ac_exeext conftest.$ac_ext
  37180. LIBS=$ac_check_lib_save_LIBS
  37181. fi
  37182. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37183. $as_echo "$as_val"'`
  37184. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37185. $as_echo "$ac_res" >&6; }
  37186. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37187. $as_echo "$as_val"'`
  37188. if test "x$as_val" = x""yes; then
  37189. AST_PRI_CCSS_FOUND=yes
  37190. else
  37191. AST_PRI_CCSS_FOUND=no
  37192. fi
  37193. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37194. fi
  37195. # now check for the header.
  37196. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  37197. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  37198. # if --with-PRI_CCSS=DIR has been specified, use it.
  37199. if test "x${PRI_CCSS_DIR}" != "x"; then
  37200. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  37201. fi
  37202. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  37203. if test "xlibpri.h" = "x" ; then # no header, assume found
  37204. PRI_CCSS_HEADER_FOUND="1"
  37205. else # check for the header
  37206. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37207. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  37208. if test "${ac_cv_header_libpri_h+set}" = set; then
  37209. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37210. $as_echo_n "checking for libpri.h... " >&6; }
  37211. if test "${ac_cv_header_libpri_h+set}" = set; then
  37212. $as_echo_n "(cached) " >&6
  37213. fi
  37214. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37215. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37216. else
  37217. # Is the header compilable?
  37218. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37219. $as_echo_n "checking libpri.h usability... " >&6; }
  37220. cat >conftest.$ac_ext <<_ACEOF
  37221. /* confdefs.h. */
  37222. _ACEOF
  37223. cat confdefs.h >>conftest.$ac_ext
  37224. cat >>conftest.$ac_ext <<_ACEOF
  37225. /* end confdefs.h. */
  37226. $ac_includes_default
  37227. #include <libpri.h>
  37228. _ACEOF
  37229. rm -f conftest.$ac_objext
  37230. if { (ac_try="$ac_compile"
  37231. case "(($ac_try" in
  37232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37233. *) ac_try_echo=$ac_try;;
  37234. esac
  37235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37236. $as_echo "$ac_try_echo") >&5
  37237. (eval "$ac_compile") 2>conftest.er1
  37238. ac_status=$?
  37239. grep -v '^ *+' conftest.er1 >conftest.err
  37240. rm -f conftest.er1
  37241. cat conftest.err >&5
  37242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37243. (exit $ac_status); } && {
  37244. test -z "$ac_c_werror_flag" ||
  37245. test ! -s conftest.err
  37246. } && test -s conftest.$ac_objext; then
  37247. ac_header_compiler=yes
  37248. else
  37249. $as_echo "$as_me: failed program was:" >&5
  37250. sed 's/^/| /' conftest.$ac_ext >&5
  37251. ac_header_compiler=no
  37252. fi
  37253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37254. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37255. $as_echo "$ac_header_compiler" >&6; }
  37256. # Is the header present?
  37257. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37258. $as_echo_n "checking libpri.h presence... " >&6; }
  37259. cat >conftest.$ac_ext <<_ACEOF
  37260. /* confdefs.h. */
  37261. _ACEOF
  37262. cat confdefs.h >>conftest.$ac_ext
  37263. cat >>conftest.$ac_ext <<_ACEOF
  37264. /* end confdefs.h. */
  37265. #include <libpri.h>
  37266. _ACEOF
  37267. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37268. case "(($ac_try" in
  37269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37270. *) ac_try_echo=$ac_try;;
  37271. esac
  37272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37273. $as_echo "$ac_try_echo") >&5
  37274. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37275. ac_status=$?
  37276. grep -v '^ *+' conftest.er1 >conftest.err
  37277. rm -f conftest.er1
  37278. cat conftest.err >&5
  37279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37280. (exit $ac_status); } >/dev/null && {
  37281. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37282. test ! -s conftest.err
  37283. }; then
  37284. ac_header_preproc=yes
  37285. else
  37286. $as_echo "$as_me: failed program was:" >&5
  37287. sed 's/^/| /' conftest.$ac_ext >&5
  37288. ac_header_preproc=no
  37289. fi
  37290. rm -f conftest.err conftest.$ac_ext
  37291. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37292. $as_echo "$ac_header_preproc" >&6; }
  37293. # So? What about this header?
  37294. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37295. yes:no: )
  37296. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37297. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37298. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37299. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37300. ac_header_preproc=yes
  37301. ;;
  37302. no:yes:* )
  37303. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37304. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37305. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37306. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37307. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37308. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37309. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37310. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37311. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37312. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37313. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37314. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37315. ( cat <<\_ASBOX
  37316. ## ------------------------------------------ ##
  37317. ## Report this to https://issues.asterisk.org ##
  37318. ## ------------------------------------------ ##
  37319. _ASBOX
  37320. ) | sed "s/^/$as_me: WARNING: /" >&2
  37321. ;;
  37322. esac
  37323. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37324. $as_echo_n "checking for libpri.h... " >&6; }
  37325. if test "${ac_cv_header_libpri_h+set}" = set; then
  37326. $as_echo_n "(cached) " >&6
  37327. else
  37328. ac_cv_header_libpri_h=$ac_header_preproc
  37329. fi
  37330. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37331. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37332. fi
  37333. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37334. PRI_CCSS_HEADER_FOUND=1
  37335. else
  37336. PRI_CCSS_HEADER_FOUND=0
  37337. fi
  37338. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37339. fi
  37340. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  37341. PRI_CCSS_LIB=""
  37342. PRI_CCSS_INCLUDE=""
  37343. else
  37344. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37345. PRI_CCSS_LIB=""
  37346. fi
  37347. PBX_PRI_CCSS=1
  37348. cat >>confdefs.h <<_ACEOF
  37349. #define HAVE_PRI_CCSS 1
  37350. _ACEOF
  37351. fi
  37352. fi
  37353. fi
  37354. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  37355. pbxlibdir=""
  37356. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  37357. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  37358. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  37359. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  37360. else
  37361. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  37362. fi
  37363. fi
  37364. pbxfuncname="pri_hangup_fix_enable"
  37365. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37366. AST_PRI_HANGUP_FIX_FOUND=yes
  37367. else
  37368. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37369. CFLAGS="${CFLAGS} "
  37370. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37371. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37372. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37373. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37374. $as_echo_n "(cached) " >&6
  37375. else
  37376. ac_check_lib_save_LIBS=$LIBS
  37377. LIBS="-lpri ${pbxlibdir} $LIBS"
  37378. cat >conftest.$ac_ext <<_ACEOF
  37379. /* confdefs.h. */
  37380. _ACEOF
  37381. cat confdefs.h >>conftest.$ac_ext
  37382. cat >>conftest.$ac_ext <<_ACEOF
  37383. /* end confdefs.h. */
  37384. /* Override any GCC internal prototype to avoid an error.
  37385. Use char because int might match the return type of a GCC
  37386. builtin and then its argument prototype would still apply. */
  37387. #ifdef __cplusplus
  37388. extern "C"
  37389. #endif
  37390. char ${pbxfuncname} ();
  37391. int
  37392. main ()
  37393. {
  37394. return ${pbxfuncname} ();
  37395. ;
  37396. return 0;
  37397. }
  37398. _ACEOF
  37399. rm -f conftest.$ac_objext conftest$ac_exeext
  37400. if { (ac_try="$ac_link"
  37401. case "(($ac_try" in
  37402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37403. *) ac_try_echo=$ac_try;;
  37404. esac
  37405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37406. $as_echo "$ac_try_echo") >&5
  37407. (eval "$ac_link") 2>conftest.er1
  37408. ac_status=$?
  37409. grep -v '^ *+' conftest.er1 >conftest.err
  37410. rm -f conftest.er1
  37411. cat conftest.err >&5
  37412. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37413. (exit $ac_status); } && {
  37414. test -z "$ac_c_werror_flag" ||
  37415. test ! -s conftest.err
  37416. } && test -s conftest$ac_exeext && {
  37417. test "$cross_compiling" = yes ||
  37418. $as_test_x conftest$ac_exeext
  37419. }; then
  37420. eval "$as_ac_Lib=yes"
  37421. else
  37422. $as_echo "$as_me: failed program was:" >&5
  37423. sed 's/^/| /' conftest.$ac_ext >&5
  37424. eval "$as_ac_Lib=no"
  37425. fi
  37426. rm -rf conftest.dSYM
  37427. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37428. conftest$ac_exeext conftest.$ac_ext
  37429. LIBS=$ac_check_lib_save_LIBS
  37430. fi
  37431. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37432. $as_echo "$as_val"'`
  37433. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37434. $as_echo "$ac_res" >&6; }
  37435. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37436. $as_echo "$as_val"'`
  37437. if test "x$as_val" = x""yes; then
  37438. AST_PRI_HANGUP_FIX_FOUND=yes
  37439. else
  37440. AST_PRI_HANGUP_FIX_FOUND=no
  37441. fi
  37442. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37443. fi
  37444. # now check for the header.
  37445. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  37446. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  37447. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  37448. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  37449. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  37450. fi
  37451. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  37452. if test "xlibpri.h" = "x" ; then # no header, assume found
  37453. PRI_HANGUP_FIX_HEADER_FOUND="1"
  37454. else # check for the header
  37455. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37456. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  37457. if test "${ac_cv_header_libpri_h+set}" = set; then
  37458. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37459. $as_echo_n "checking for libpri.h... " >&6; }
  37460. if test "${ac_cv_header_libpri_h+set}" = set; then
  37461. $as_echo_n "(cached) " >&6
  37462. fi
  37463. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37464. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37465. else
  37466. # Is the header compilable?
  37467. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37468. $as_echo_n "checking libpri.h usability... " >&6; }
  37469. cat >conftest.$ac_ext <<_ACEOF
  37470. /* confdefs.h. */
  37471. _ACEOF
  37472. cat confdefs.h >>conftest.$ac_ext
  37473. cat >>conftest.$ac_ext <<_ACEOF
  37474. /* end confdefs.h. */
  37475. $ac_includes_default
  37476. #include <libpri.h>
  37477. _ACEOF
  37478. rm -f conftest.$ac_objext
  37479. if { (ac_try="$ac_compile"
  37480. case "(($ac_try" in
  37481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37482. *) ac_try_echo=$ac_try;;
  37483. esac
  37484. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37485. $as_echo "$ac_try_echo") >&5
  37486. (eval "$ac_compile") 2>conftest.er1
  37487. ac_status=$?
  37488. grep -v '^ *+' conftest.er1 >conftest.err
  37489. rm -f conftest.er1
  37490. cat conftest.err >&5
  37491. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37492. (exit $ac_status); } && {
  37493. test -z "$ac_c_werror_flag" ||
  37494. test ! -s conftest.err
  37495. } && test -s conftest.$ac_objext; then
  37496. ac_header_compiler=yes
  37497. else
  37498. $as_echo "$as_me: failed program was:" >&5
  37499. sed 's/^/| /' conftest.$ac_ext >&5
  37500. ac_header_compiler=no
  37501. fi
  37502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37503. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37504. $as_echo "$ac_header_compiler" >&6; }
  37505. # Is the header present?
  37506. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37507. $as_echo_n "checking libpri.h presence... " >&6; }
  37508. cat >conftest.$ac_ext <<_ACEOF
  37509. /* confdefs.h. */
  37510. _ACEOF
  37511. cat confdefs.h >>conftest.$ac_ext
  37512. cat >>conftest.$ac_ext <<_ACEOF
  37513. /* end confdefs.h. */
  37514. #include <libpri.h>
  37515. _ACEOF
  37516. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37517. case "(($ac_try" in
  37518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37519. *) ac_try_echo=$ac_try;;
  37520. esac
  37521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37522. $as_echo "$ac_try_echo") >&5
  37523. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37524. ac_status=$?
  37525. grep -v '^ *+' conftest.er1 >conftest.err
  37526. rm -f conftest.er1
  37527. cat conftest.err >&5
  37528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37529. (exit $ac_status); } >/dev/null && {
  37530. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37531. test ! -s conftest.err
  37532. }; then
  37533. ac_header_preproc=yes
  37534. else
  37535. $as_echo "$as_me: failed program was:" >&5
  37536. sed 's/^/| /' conftest.$ac_ext >&5
  37537. ac_header_preproc=no
  37538. fi
  37539. rm -f conftest.err conftest.$ac_ext
  37540. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37541. $as_echo "$ac_header_preproc" >&6; }
  37542. # So? What about this header?
  37543. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37544. yes:no: )
  37545. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37546. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37547. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37548. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37549. ac_header_preproc=yes
  37550. ;;
  37551. no:yes:* )
  37552. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37553. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37554. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37555. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37556. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37557. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37558. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37559. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37560. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37561. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37562. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37563. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37564. ( cat <<\_ASBOX
  37565. ## ------------------------------------------ ##
  37566. ## Report this to https://issues.asterisk.org ##
  37567. ## ------------------------------------------ ##
  37568. _ASBOX
  37569. ) | sed "s/^/$as_me: WARNING: /" >&2
  37570. ;;
  37571. esac
  37572. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37573. $as_echo_n "checking for libpri.h... " >&6; }
  37574. if test "${ac_cv_header_libpri_h+set}" = set; then
  37575. $as_echo_n "(cached) " >&6
  37576. else
  37577. ac_cv_header_libpri_h=$ac_header_preproc
  37578. fi
  37579. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37580. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37581. fi
  37582. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37583. PRI_HANGUP_FIX_HEADER_FOUND=1
  37584. else
  37585. PRI_HANGUP_FIX_HEADER_FOUND=0
  37586. fi
  37587. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37588. fi
  37589. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  37590. PRI_HANGUP_FIX_LIB=""
  37591. PRI_HANGUP_FIX_INCLUDE=""
  37592. else
  37593. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37594. PRI_HANGUP_FIX_LIB=""
  37595. fi
  37596. PBX_PRI_HANGUP_FIX=1
  37597. cat >>confdefs.h <<_ACEOF
  37598. #define HAVE_PRI_HANGUP_FIX 1
  37599. _ACEOF
  37600. fi
  37601. fi
  37602. fi
  37603. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  37604. pbxlibdir=""
  37605. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  37606. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  37607. if test -d ${PRI_SUBADDR_DIR}/lib; then
  37608. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  37609. else
  37610. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  37611. fi
  37612. fi
  37613. pbxfuncname="pri_sr_set_called_subaddress"
  37614. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37615. AST_PRI_SUBADDR_FOUND=yes
  37616. else
  37617. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37618. CFLAGS="${CFLAGS} "
  37619. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37620. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37621. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37622. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37623. $as_echo_n "(cached) " >&6
  37624. else
  37625. ac_check_lib_save_LIBS=$LIBS
  37626. LIBS="-lpri ${pbxlibdir} $LIBS"
  37627. cat >conftest.$ac_ext <<_ACEOF
  37628. /* confdefs.h. */
  37629. _ACEOF
  37630. cat confdefs.h >>conftest.$ac_ext
  37631. cat >>conftest.$ac_ext <<_ACEOF
  37632. /* end confdefs.h. */
  37633. /* Override any GCC internal prototype to avoid an error.
  37634. Use char because int might match the return type of a GCC
  37635. builtin and then its argument prototype would still apply. */
  37636. #ifdef __cplusplus
  37637. extern "C"
  37638. #endif
  37639. char ${pbxfuncname} ();
  37640. int
  37641. main ()
  37642. {
  37643. return ${pbxfuncname} ();
  37644. ;
  37645. return 0;
  37646. }
  37647. _ACEOF
  37648. rm -f conftest.$ac_objext conftest$ac_exeext
  37649. if { (ac_try="$ac_link"
  37650. case "(($ac_try" in
  37651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37652. *) ac_try_echo=$ac_try;;
  37653. esac
  37654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37655. $as_echo "$ac_try_echo") >&5
  37656. (eval "$ac_link") 2>conftest.er1
  37657. ac_status=$?
  37658. grep -v '^ *+' conftest.er1 >conftest.err
  37659. rm -f conftest.er1
  37660. cat conftest.err >&5
  37661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37662. (exit $ac_status); } && {
  37663. test -z "$ac_c_werror_flag" ||
  37664. test ! -s conftest.err
  37665. } && test -s conftest$ac_exeext && {
  37666. test "$cross_compiling" = yes ||
  37667. $as_test_x conftest$ac_exeext
  37668. }; then
  37669. eval "$as_ac_Lib=yes"
  37670. else
  37671. $as_echo "$as_me: failed program was:" >&5
  37672. sed 's/^/| /' conftest.$ac_ext >&5
  37673. eval "$as_ac_Lib=no"
  37674. fi
  37675. rm -rf conftest.dSYM
  37676. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37677. conftest$ac_exeext conftest.$ac_ext
  37678. LIBS=$ac_check_lib_save_LIBS
  37679. fi
  37680. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37681. $as_echo "$as_val"'`
  37682. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37683. $as_echo "$ac_res" >&6; }
  37684. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37685. $as_echo "$as_val"'`
  37686. if test "x$as_val" = x""yes; then
  37687. AST_PRI_SUBADDR_FOUND=yes
  37688. else
  37689. AST_PRI_SUBADDR_FOUND=no
  37690. fi
  37691. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37692. fi
  37693. # now check for the header.
  37694. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  37695. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  37696. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  37697. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  37698. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  37699. fi
  37700. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  37701. if test "xlibpri.h" = "x" ; then # no header, assume found
  37702. PRI_SUBADDR_HEADER_FOUND="1"
  37703. else # check for the header
  37704. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37705. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  37706. if test "${ac_cv_header_libpri_h+set}" = set; then
  37707. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37708. $as_echo_n "checking for libpri.h... " >&6; }
  37709. if test "${ac_cv_header_libpri_h+set}" = set; then
  37710. $as_echo_n "(cached) " >&6
  37711. fi
  37712. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37713. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37714. else
  37715. # Is the header compilable?
  37716. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37717. $as_echo_n "checking libpri.h usability... " >&6; }
  37718. cat >conftest.$ac_ext <<_ACEOF
  37719. /* confdefs.h. */
  37720. _ACEOF
  37721. cat confdefs.h >>conftest.$ac_ext
  37722. cat >>conftest.$ac_ext <<_ACEOF
  37723. /* end confdefs.h. */
  37724. $ac_includes_default
  37725. #include <libpri.h>
  37726. _ACEOF
  37727. rm -f conftest.$ac_objext
  37728. if { (ac_try="$ac_compile"
  37729. case "(($ac_try" in
  37730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37731. *) ac_try_echo=$ac_try;;
  37732. esac
  37733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37734. $as_echo "$ac_try_echo") >&5
  37735. (eval "$ac_compile") 2>conftest.er1
  37736. ac_status=$?
  37737. grep -v '^ *+' conftest.er1 >conftest.err
  37738. rm -f conftest.er1
  37739. cat conftest.err >&5
  37740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37741. (exit $ac_status); } && {
  37742. test -z "$ac_c_werror_flag" ||
  37743. test ! -s conftest.err
  37744. } && test -s conftest.$ac_objext; then
  37745. ac_header_compiler=yes
  37746. else
  37747. $as_echo "$as_me: failed program was:" >&5
  37748. sed 's/^/| /' conftest.$ac_ext >&5
  37749. ac_header_compiler=no
  37750. fi
  37751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37752. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37753. $as_echo "$ac_header_compiler" >&6; }
  37754. # Is the header present?
  37755. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  37756. $as_echo_n "checking libpri.h presence... " >&6; }
  37757. cat >conftest.$ac_ext <<_ACEOF
  37758. /* confdefs.h. */
  37759. _ACEOF
  37760. cat confdefs.h >>conftest.$ac_ext
  37761. cat >>conftest.$ac_ext <<_ACEOF
  37762. /* end confdefs.h. */
  37763. #include <libpri.h>
  37764. _ACEOF
  37765. if { (ac_try="$ac_cpp conftest.$ac_ext"
  37766. case "(($ac_try" in
  37767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37768. *) ac_try_echo=$ac_try;;
  37769. esac
  37770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37771. $as_echo "$ac_try_echo") >&5
  37772. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37773. ac_status=$?
  37774. grep -v '^ *+' conftest.er1 >conftest.err
  37775. rm -f conftest.er1
  37776. cat conftest.err >&5
  37777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37778. (exit $ac_status); } >/dev/null && {
  37779. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37780. test ! -s conftest.err
  37781. }; then
  37782. ac_header_preproc=yes
  37783. else
  37784. $as_echo "$as_me: failed program was:" >&5
  37785. sed 's/^/| /' conftest.$ac_ext >&5
  37786. ac_header_preproc=no
  37787. fi
  37788. rm -f conftest.err conftest.$ac_ext
  37789. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37790. $as_echo "$ac_header_preproc" >&6; }
  37791. # So? What about this header?
  37792. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37793. yes:no: )
  37794. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  37795. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37796. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  37797. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  37798. ac_header_preproc=yes
  37799. ;;
  37800. no:yes:* )
  37801. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  37802. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  37803. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  37804. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  37805. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  37806. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  37807. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  37808. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  37809. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  37810. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  37811. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  37812. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  37813. ( cat <<\_ASBOX
  37814. ## ------------------------------------------ ##
  37815. ## Report this to https://issues.asterisk.org ##
  37816. ## ------------------------------------------ ##
  37817. _ASBOX
  37818. ) | sed "s/^/$as_me: WARNING: /" >&2
  37819. ;;
  37820. esac
  37821. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37822. $as_echo_n "checking for libpri.h... " >&6; }
  37823. if test "${ac_cv_header_libpri_h+set}" = set; then
  37824. $as_echo_n "(cached) " >&6
  37825. else
  37826. ac_cv_header_libpri_h=$ac_header_preproc
  37827. fi
  37828. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37829. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37830. fi
  37831. if test "x$ac_cv_header_libpri_h" = x""yes; then
  37832. PRI_SUBADDR_HEADER_FOUND=1
  37833. else
  37834. PRI_SUBADDR_HEADER_FOUND=0
  37835. fi
  37836. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  37837. fi
  37838. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  37839. PRI_SUBADDR_LIB=""
  37840. PRI_SUBADDR_INCLUDE=""
  37841. else
  37842. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  37843. PRI_SUBADDR_LIB=""
  37844. fi
  37845. PBX_PRI_SUBADDR=1
  37846. cat >>confdefs.h <<_ACEOF
  37847. #define HAVE_PRI_SUBADDR 1
  37848. _ACEOF
  37849. fi
  37850. fi
  37851. fi
  37852. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  37853. pbxlibdir=""
  37854. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  37855. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  37856. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  37857. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  37858. else
  37859. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  37860. fi
  37861. fi
  37862. pbxfuncname="pri_hold_enable"
  37863. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  37864. AST_PRI_CALL_HOLD_FOUND=yes
  37865. else
  37866. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  37867. CFLAGS="${CFLAGS} "
  37868. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  37869. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  37870. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  37871. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  37872. $as_echo_n "(cached) " >&6
  37873. else
  37874. ac_check_lib_save_LIBS=$LIBS
  37875. LIBS="-lpri ${pbxlibdir} $LIBS"
  37876. cat >conftest.$ac_ext <<_ACEOF
  37877. /* confdefs.h. */
  37878. _ACEOF
  37879. cat confdefs.h >>conftest.$ac_ext
  37880. cat >>conftest.$ac_ext <<_ACEOF
  37881. /* end confdefs.h. */
  37882. /* Override any GCC internal prototype to avoid an error.
  37883. Use char because int might match the return type of a GCC
  37884. builtin and then its argument prototype would still apply. */
  37885. #ifdef __cplusplus
  37886. extern "C"
  37887. #endif
  37888. char ${pbxfuncname} ();
  37889. int
  37890. main ()
  37891. {
  37892. return ${pbxfuncname} ();
  37893. ;
  37894. return 0;
  37895. }
  37896. _ACEOF
  37897. rm -f conftest.$ac_objext conftest$ac_exeext
  37898. if { (ac_try="$ac_link"
  37899. case "(($ac_try" in
  37900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37901. *) ac_try_echo=$ac_try;;
  37902. esac
  37903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37904. $as_echo "$ac_try_echo") >&5
  37905. (eval "$ac_link") 2>conftest.er1
  37906. ac_status=$?
  37907. grep -v '^ *+' conftest.er1 >conftest.err
  37908. rm -f conftest.er1
  37909. cat conftest.err >&5
  37910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37911. (exit $ac_status); } && {
  37912. test -z "$ac_c_werror_flag" ||
  37913. test ! -s conftest.err
  37914. } && test -s conftest$ac_exeext && {
  37915. test "$cross_compiling" = yes ||
  37916. $as_test_x conftest$ac_exeext
  37917. }; then
  37918. eval "$as_ac_Lib=yes"
  37919. else
  37920. $as_echo "$as_me: failed program was:" >&5
  37921. sed 's/^/| /' conftest.$ac_ext >&5
  37922. eval "$as_ac_Lib=no"
  37923. fi
  37924. rm -rf conftest.dSYM
  37925. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37926. conftest$ac_exeext conftest.$ac_ext
  37927. LIBS=$ac_check_lib_save_LIBS
  37928. fi
  37929. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  37930. $as_echo "$as_val"'`
  37931. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  37932. $as_echo "$ac_res" >&6; }
  37933. as_val=`eval 'as_val=${'$as_ac_Lib'}
  37934. $as_echo "$as_val"'`
  37935. if test "x$as_val" = x""yes; then
  37936. AST_PRI_CALL_HOLD_FOUND=yes
  37937. else
  37938. AST_PRI_CALL_HOLD_FOUND=no
  37939. fi
  37940. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  37941. fi
  37942. # now check for the header.
  37943. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  37944. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  37945. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  37946. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  37947. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  37948. fi
  37949. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  37950. if test "xlibpri.h" = "x" ; then # no header, assume found
  37951. PRI_CALL_HOLD_HEADER_FOUND="1"
  37952. else # check for the header
  37953. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  37954. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  37955. if test "${ac_cv_header_libpri_h+set}" = set; then
  37956. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  37957. $as_echo_n "checking for libpri.h... " >&6; }
  37958. if test "${ac_cv_header_libpri_h+set}" = set; then
  37959. $as_echo_n "(cached) " >&6
  37960. fi
  37961. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  37962. $as_echo "$ac_cv_header_libpri_h" >&6; }
  37963. else
  37964. # Is the header compilable?
  37965. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  37966. $as_echo_n "checking libpri.h usability... " >&6; }
  37967. cat >conftest.$ac_ext <<_ACEOF
  37968. /* confdefs.h. */
  37969. _ACEOF
  37970. cat confdefs.h >>conftest.$ac_ext
  37971. cat >>conftest.$ac_ext <<_ACEOF
  37972. /* end confdefs.h. */
  37973. $ac_includes_default
  37974. #include <libpri.h>
  37975. _ACEOF
  37976. rm -f conftest.$ac_objext
  37977. if { (ac_try="$ac_compile"
  37978. case "(($ac_try" in
  37979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37980. *) ac_try_echo=$ac_try;;
  37981. esac
  37982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37983. $as_echo "$ac_try_echo") >&5
  37984. (eval "$ac_compile") 2>conftest.er1
  37985. ac_status=$?
  37986. grep -v '^ *+' conftest.er1 >conftest.err
  37987. rm -f conftest.er1
  37988. cat conftest.err >&5
  37989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37990. (exit $ac_status); } && {
  37991. test -z "$ac_c_werror_flag" ||
  37992. test ! -s conftest.err
  37993. } && test -s conftest.$ac_objext; then
  37994. ac_header_compiler=yes
  37995. else
  37996. $as_echo "$as_me: failed program was:" >&5
  37997. sed 's/^/| /' conftest.$ac_ext >&5
  37998. ac_header_compiler=no
  37999. fi
  38000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38001. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38002. $as_echo "$ac_header_compiler" >&6; }
  38003. # Is the header present?
  38004. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38005. $as_echo_n "checking libpri.h presence... " >&6; }
  38006. cat >conftest.$ac_ext <<_ACEOF
  38007. /* confdefs.h. */
  38008. _ACEOF
  38009. cat confdefs.h >>conftest.$ac_ext
  38010. cat >>conftest.$ac_ext <<_ACEOF
  38011. /* end confdefs.h. */
  38012. #include <libpri.h>
  38013. _ACEOF
  38014. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38015. case "(($ac_try" in
  38016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38017. *) ac_try_echo=$ac_try;;
  38018. esac
  38019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38020. $as_echo "$ac_try_echo") >&5
  38021. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38022. ac_status=$?
  38023. grep -v '^ *+' conftest.er1 >conftest.err
  38024. rm -f conftest.er1
  38025. cat conftest.err >&5
  38026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38027. (exit $ac_status); } >/dev/null && {
  38028. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38029. test ! -s conftest.err
  38030. }; then
  38031. ac_header_preproc=yes
  38032. else
  38033. $as_echo "$as_me: failed program was:" >&5
  38034. sed 's/^/| /' conftest.$ac_ext >&5
  38035. ac_header_preproc=no
  38036. fi
  38037. rm -f conftest.err conftest.$ac_ext
  38038. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38039. $as_echo "$ac_header_preproc" >&6; }
  38040. # So? What about this header?
  38041. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38042. yes:no: )
  38043. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38044. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38045. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38046. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38047. ac_header_preproc=yes
  38048. ;;
  38049. no:yes:* )
  38050. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38051. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38052. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38053. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38054. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38055. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38056. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38057. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38058. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38059. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38060. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38061. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38062. ( cat <<\_ASBOX
  38063. ## ------------------------------------------ ##
  38064. ## Report this to https://issues.asterisk.org ##
  38065. ## ------------------------------------------ ##
  38066. _ASBOX
  38067. ) | sed "s/^/$as_me: WARNING: /" >&2
  38068. ;;
  38069. esac
  38070. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38071. $as_echo_n "checking for libpri.h... " >&6; }
  38072. if test "${ac_cv_header_libpri_h+set}" = set; then
  38073. $as_echo_n "(cached) " >&6
  38074. else
  38075. ac_cv_header_libpri_h=$ac_header_preproc
  38076. fi
  38077. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38078. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38079. fi
  38080. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38081. PRI_CALL_HOLD_HEADER_FOUND=1
  38082. else
  38083. PRI_CALL_HOLD_HEADER_FOUND=0
  38084. fi
  38085. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38086. fi
  38087. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  38088. PRI_CALL_HOLD_LIB=""
  38089. PRI_CALL_HOLD_INCLUDE=""
  38090. else
  38091. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38092. PRI_CALL_HOLD_LIB=""
  38093. fi
  38094. PBX_PRI_CALL_HOLD=1
  38095. cat >>confdefs.h <<_ACEOF
  38096. #define HAVE_PRI_CALL_HOLD 1
  38097. _ACEOF
  38098. fi
  38099. fi
  38100. fi
  38101. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  38102. pbxlibdir=""
  38103. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  38104. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  38105. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  38106. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  38107. else
  38108. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  38109. fi
  38110. fi
  38111. pbxfuncname="pri_reroute_enable"
  38112. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38113. AST_PRI_CALL_REROUTING_FOUND=yes
  38114. else
  38115. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38116. CFLAGS="${CFLAGS} "
  38117. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38118. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38119. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38120. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38121. $as_echo_n "(cached) " >&6
  38122. else
  38123. ac_check_lib_save_LIBS=$LIBS
  38124. LIBS="-lpri ${pbxlibdir} $LIBS"
  38125. cat >conftest.$ac_ext <<_ACEOF
  38126. /* confdefs.h. */
  38127. _ACEOF
  38128. cat confdefs.h >>conftest.$ac_ext
  38129. cat >>conftest.$ac_ext <<_ACEOF
  38130. /* end confdefs.h. */
  38131. /* Override any GCC internal prototype to avoid an error.
  38132. Use char because int might match the return type of a GCC
  38133. builtin and then its argument prototype would still apply. */
  38134. #ifdef __cplusplus
  38135. extern "C"
  38136. #endif
  38137. char ${pbxfuncname} ();
  38138. int
  38139. main ()
  38140. {
  38141. return ${pbxfuncname} ();
  38142. ;
  38143. return 0;
  38144. }
  38145. _ACEOF
  38146. rm -f conftest.$ac_objext conftest$ac_exeext
  38147. if { (ac_try="$ac_link"
  38148. case "(($ac_try" in
  38149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38150. *) ac_try_echo=$ac_try;;
  38151. esac
  38152. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38153. $as_echo "$ac_try_echo") >&5
  38154. (eval "$ac_link") 2>conftest.er1
  38155. ac_status=$?
  38156. grep -v '^ *+' conftest.er1 >conftest.err
  38157. rm -f conftest.er1
  38158. cat conftest.err >&5
  38159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38160. (exit $ac_status); } && {
  38161. test -z "$ac_c_werror_flag" ||
  38162. test ! -s conftest.err
  38163. } && test -s conftest$ac_exeext && {
  38164. test "$cross_compiling" = yes ||
  38165. $as_test_x conftest$ac_exeext
  38166. }; then
  38167. eval "$as_ac_Lib=yes"
  38168. else
  38169. $as_echo "$as_me: failed program was:" >&5
  38170. sed 's/^/| /' conftest.$ac_ext >&5
  38171. eval "$as_ac_Lib=no"
  38172. fi
  38173. rm -rf conftest.dSYM
  38174. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38175. conftest$ac_exeext conftest.$ac_ext
  38176. LIBS=$ac_check_lib_save_LIBS
  38177. fi
  38178. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38179. $as_echo "$as_val"'`
  38180. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38181. $as_echo "$ac_res" >&6; }
  38182. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38183. $as_echo "$as_val"'`
  38184. if test "x$as_val" = x""yes; then
  38185. AST_PRI_CALL_REROUTING_FOUND=yes
  38186. else
  38187. AST_PRI_CALL_REROUTING_FOUND=no
  38188. fi
  38189. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38190. fi
  38191. # now check for the header.
  38192. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  38193. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  38194. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  38195. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  38196. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  38197. fi
  38198. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  38199. if test "xlibpri.h" = "x" ; then # no header, assume found
  38200. PRI_CALL_REROUTING_HEADER_FOUND="1"
  38201. else # check for the header
  38202. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38203. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  38204. if test "${ac_cv_header_libpri_h+set}" = set; then
  38205. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38206. $as_echo_n "checking for libpri.h... " >&6; }
  38207. if test "${ac_cv_header_libpri_h+set}" = set; then
  38208. $as_echo_n "(cached) " >&6
  38209. fi
  38210. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38211. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38212. else
  38213. # Is the header compilable?
  38214. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38215. $as_echo_n "checking libpri.h usability... " >&6; }
  38216. cat >conftest.$ac_ext <<_ACEOF
  38217. /* confdefs.h. */
  38218. _ACEOF
  38219. cat confdefs.h >>conftest.$ac_ext
  38220. cat >>conftest.$ac_ext <<_ACEOF
  38221. /* end confdefs.h. */
  38222. $ac_includes_default
  38223. #include <libpri.h>
  38224. _ACEOF
  38225. rm -f conftest.$ac_objext
  38226. if { (ac_try="$ac_compile"
  38227. case "(($ac_try" in
  38228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38229. *) ac_try_echo=$ac_try;;
  38230. esac
  38231. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38232. $as_echo "$ac_try_echo") >&5
  38233. (eval "$ac_compile") 2>conftest.er1
  38234. ac_status=$?
  38235. grep -v '^ *+' conftest.er1 >conftest.err
  38236. rm -f conftest.er1
  38237. cat conftest.err >&5
  38238. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38239. (exit $ac_status); } && {
  38240. test -z "$ac_c_werror_flag" ||
  38241. test ! -s conftest.err
  38242. } && test -s conftest.$ac_objext; then
  38243. ac_header_compiler=yes
  38244. else
  38245. $as_echo "$as_me: failed program was:" >&5
  38246. sed 's/^/| /' conftest.$ac_ext >&5
  38247. ac_header_compiler=no
  38248. fi
  38249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38250. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38251. $as_echo "$ac_header_compiler" >&6; }
  38252. # Is the header present?
  38253. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38254. $as_echo_n "checking libpri.h presence... " >&6; }
  38255. cat >conftest.$ac_ext <<_ACEOF
  38256. /* confdefs.h. */
  38257. _ACEOF
  38258. cat confdefs.h >>conftest.$ac_ext
  38259. cat >>conftest.$ac_ext <<_ACEOF
  38260. /* end confdefs.h. */
  38261. #include <libpri.h>
  38262. _ACEOF
  38263. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38264. case "(($ac_try" in
  38265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38266. *) ac_try_echo=$ac_try;;
  38267. esac
  38268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38269. $as_echo "$ac_try_echo") >&5
  38270. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38271. ac_status=$?
  38272. grep -v '^ *+' conftest.er1 >conftest.err
  38273. rm -f conftest.er1
  38274. cat conftest.err >&5
  38275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38276. (exit $ac_status); } >/dev/null && {
  38277. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38278. test ! -s conftest.err
  38279. }; then
  38280. ac_header_preproc=yes
  38281. else
  38282. $as_echo "$as_me: failed program was:" >&5
  38283. sed 's/^/| /' conftest.$ac_ext >&5
  38284. ac_header_preproc=no
  38285. fi
  38286. rm -f conftest.err conftest.$ac_ext
  38287. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38288. $as_echo "$ac_header_preproc" >&6; }
  38289. # So? What about this header?
  38290. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38291. yes:no: )
  38292. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38293. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38294. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38295. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38296. ac_header_preproc=yes
  38297. ;;
  38298. no:yes:* )
  38299. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38300. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38301. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38302. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38303. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38304. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38305. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38306. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38307. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38308. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38309. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38310. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38311. ( cat <<\_ASBOX
  38312. ## ------------------------------------------ ##
  38313. ## Report this to https://issues.asterisk.org ##
  38314. ## ------------------------------------------ ##
  38315. _ASBOX
  38316. ) | sed "s/^/$as_me: WARNING: /" >&2
  38317. ;;
  38318. esac
  38319. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38320. $as_echo_n "checking for libpri.h... " >&6; }
  38321. if test "${ac_cv_header_libpri_h+set}" = set; then
  38322. $as_echo_n "(cached) " >&6
  38323. else
  38324. ac_cv_header_libpri_h=$ac_header_preproc
  38325. fi
  38326. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38327. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38328. fi
  38329. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38330. PRI_CALL_REROUTING_HEADER_FOUND=1
  38331. else
  38332. PRI_CALL_REROUTING_HEADER_FOUND=0
  38333. fi
  38334. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38335. fi
  38336. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  38337. PRI_CALL_REROUTING_LIB=""
  38338. PRI_CALL_REROUTING_INCLUDE=""
  38339. else
  38340. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38341. PRI_CALL_REROUTING_LIB=""
  38342. fi
  38343. PBX_PRI_CALL_REROUTING=1
  38344. cat >>confdefs.h <<_ACEOF
  38345. #define HAVE_PRI_CALL_REROUTING 1
  38346. _ACEOF
  38347. fi
  38348. fi
  38349. fi
  38350. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  38351. pbxlibdir=""
  38352. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  38353. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  38354. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  38355. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  38356. else
  38357. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  38358. fi
  38359. fi
  38360. pbxfuncname="pri_sr_set_keypad_digits"
  38361. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38362. AST_PRI_SETUP_KEYPAD_FOUND=yes
  38363. else
  38364. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38365. CFLAGS="${CFLAGS} "
  38366. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38367. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38368. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38369. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38370. $as_echo_n "(cached) " >&6
  38371. else
  38372. ac_check_lib_save_LIBS=$LIBS
  38373. LIBS="-lpri ${pbxlibdir} $LIBS"
  38374. cat >conftest.$ac_ext <<_ACEOF
  38375. /* confdefs.h. */
  38376. _ACEOF
  38377. cat confdefs.h >>conftest.$ac_ext
  38378. cat >>conftest.$ac_ext <<_ACEOF
  38379. /* end confdefs.h. */
  38380. /* Override any GCC internal prototype to avoid an error.
  38381. Use char because int might match the return type of a GCC
  38382. builtin and then its argument prototype would still apply. */
  38383. #ifdef __cplusplus
  38384. extern "C"
  38385. #endif
  38386. char ${pbxfuncname} ();
  38387. int
  38388. main ()
  38389. {
  38390. return ${pbxfuncname} ();
  38391. ;
  38392. return 0;
  38393. }
  38394. _ACEOF
  38395. rm -f conftest.$ac_objext conftest$ac_exeext
  38396. if { (ac_try="$ac_link"
  38397. case "(($ac_try" in
  38398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38399. *) ac_try_echo=$ac_try;;
  38400. esac
  38401. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38402. $as_echo "$ac_try_echo") >&5
  38403. (eval "$ac_link") 2>conftest.er1
  38404. ac_status=$?
  38405. grep -v '^ *+' conftest.er1 >conftest.err
  38406. rm -f conftest.er1
  38407. cat conftest.err >&5
  38408. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38409. (exit $ac_status); } && {
  38410. test -z "$ac_c_werror_flag" ||
  38411. test ! -s conftest.err
  38412. } && test -s conftest$ac_exeext && {
  38413. test "$cross_compiling" = yes ||
  38414. $as_test_x conftest$ac_exeext
  38415. }; then
  38416. eval "$as_ac_Lib=yes"
  38417. else
  38418. $as_echo "$as_me: failed program was:" >&5
  38419. sed 's/^/| /' conftest.$ac_ext >&5
  38420. eval "$as_ac_Lib=no"
  38421. fi
  38422. rm -rf conftest.dSYM
  38423. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38424. conftest$ac_exeext conftest.$ac_ext
  38425. LIBS=$ac_check_lib_save_LIBS
  38426. fi
  38427. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38428. $as_echo "$as_val"'`
  38429. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38430. $as_echo "$ac_res" >&6; }
  38431. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38432. $as_echo "$as_val"'`
  38433. if test "x$as_val" = x""yes; then
  38434. AST_PRI_SETUP_KEYPAD_FOUND=yes
  38435. else
  38436. AST_PRI_SETUP_KEYPAD_FOUND=no
  38437. fi
  38438. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38439. fi
  38440. # now check for the header.
  38441. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  38442. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  38443. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  38444. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  38445. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  38446. fi
  38447. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  38448. if test "xlibpri.h" = "x" ; then # no header, assume found
  38449. PRI_SETUP_KEYPAD_HEADER_FOUND="1"
  38450. else # check for the header
  38451. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38452. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  38453. if test "${ac_cv_header_libpri_h+set}" = set; then
  38454. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38455. $as_echo_n "checking for libpri.h... " >&6; }
  38456. if test "${ac_cv_header_libpri_h+set}" = set; then
  38457. $as_echo_n "(cached) " >&6
  38458. fi
  38459. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38460. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38461. else
  38462. # Is the header compilable?
  38463. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38464. $as_echo_n "checking libpri.h usability... " >&6; }
  38465. cat >conftest.$ac_ext <<_ACEOF
  38466. /* confdefs.h. */
  38467. _ACEOF
  38468. cat confdefs.h >>conftest.$ac_ext
  38469. cat >>conftest.$ac_ext <<_ACEOF
  38470. /* end confdefs.h. */
  38471. $ac_includes_default
  38472. #include <libpri.h>
  38473. _ACEOF
  38474. rm -f conftest.$ac_objext
  38475. if { (ac_try="$ac_compile"
  38476. case "(($ac_try" in
  38477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38478. *) ac_try_echo=$ac_try;;
  38479. esac
  38480. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38481. $as_echo "$ac_try_echo") >&5
  38482. (eval "$ac_compile") 2>conftest.er1
  38483. ac_status=$?
  38484. grep -v '^ *+' conftest.er1 >conftest.err
  38485. rm -f conftest.er1
  38486. cat conftest.err >&5
  38487. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38488. (exit $ac_status); } && {
  38489. test -z "$ac_c_werror_flag" ||
  38490. test ! -s conftest.err
  38491. } && test -s conftest.$ac_objext; then
  38492. ac_header_compiler=yes
  38493. else
  38494. $as_echo "$as_me: failed program was:" >&5
  38495. sed 's/^/| /' conftest.$ac_ext >&5
  38496. ac_header_compiler=no
  38497. fi
  38498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38499. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38500. $as_echo "$ac_header_compiler" >&6; }
  38501. # Is the header present?
  38502. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38503. $as_echo_n "checking libpri.h presence... " >&6; }
  38504. cat >conftest.$ac_ext <<_ACEOF
  38505. /* confdefs.h. */
  38506. _ACEOF
  38507. cat confdefs.h >>conftest.$ac_ext
  38508. cat >>conftest.$ac_ext <<_ACEOF
  38509. /* end confdefs.h. */
  38510. #include <libpri.h>
  38511. _ACEOF
  38512. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38513. case "(($ac_try" in
  38514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38515. *) ac_try_echo=$ac_try;;
  38516. esac
  38517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38518. $as_echo "$ac_try_echo") >&5
  38519. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38520. ac_status=$?
  38521. grep -v '^ *+' conftest.er1 >conftest.err
  38522. rm -f conftest.er1
  38523. cat conftest.err >&5
  38524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38525. (exit $ac_status); } >/dev/null && {
  38526. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38527. test ! -s conftest.err
  38528. }; then
  38529. ac_header_preproc=yes
  38530. else
  38531. $as_echo "$as_me: failed program was:" >&5
  38532. sed 's/^/| /' conftest.$ac_ext >&5
  38533. ac_header_preproc=no
  38534. fi
  38535. rm -f conftest.err conftest.$ac_ext
  38536. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38537. $as_echo "$ac_header_preproc" >&6; }
  38538. # So? What about this header?
  38539. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38540. yes:no: )
  38541. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38542. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38543. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38544. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38545. ac_header_preproc=yes
  38546. ;;
  38547. no:yes:* )
  38548. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38549. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38550. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38551. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38552. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38553. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38554. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38555. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38556. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38557. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38558. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38559. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38560. ( cat <<\_ASBOX
  38561. ## ------------------------------------------ ##
  38562. ## Report this to https://issues.asterisk.org ##
  38563. ## ------------------------------------------ ##
  38564. _ASBOX
  38565. ) | sed "s/^/$as_me: WARNING: /" >&2
  38566. ;;
  38567. esac
  38568. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38569. $as_echo_n "checking for libpri.h... " >&6; }
  38570. if test "${ac_cv_header_libpri_h+set}" = set; then
  38571. $as_echo_n "(cached) " >&6
  38572. else
  38573. ac_cv_header_libpri_h=$ac_header_preproc
  38574. fi
  38575. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38576. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38577. fi
  38578. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38579. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  38580. else
  38581. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  38582. fi
  38583. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38584. fi
  38585. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  38586. PRI_SETUP_KEYPAD_LIB=""
  38587. PRI_SETUP_KEYPAD_INCLUDE=""
  38588. else
  38589. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38590. PRI_SETUP_KEYPAD_LIB=""
  38591. fi
  38592. PBX_PRI_SETUP_KEYPAD=1
  38593. cat >>confdefs.h <<_ACEOF
  38594. #define HAVE_PRI_SETUP_KEYPAD 1
  38595. _ACEOF
  38596. fi
  38597. fi
  38598. fi
  38599. # ------------------------------------v
  38600. # TODO: The code can be changed to always include these features now.
  38601. # These features will always be present if pri_connected_line_update is available.
  38602. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  38603. pbxlibdir=""
  38604. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  38605. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  38606. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  38607. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  38608. else
  38609. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  38610. fi
  38611. fi
  38612. pbxfuncname="pri_progress_with_cause"
  38613. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38614. AST_PRI_PROG_W_CAUSE_FOUND=yes
  38615. else
  38616. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38617. CFLAGS="${CFLAGS} "
  38618. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38619. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38620. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38621. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38622. $as_echo_n "(cached) " >&6
  38623. else
  38624. ac_check_lib_save_LIBS=$LIBS
  38625. LIBS="-lpri ${pbxlibdir} $LIBS"
  38626. cat >conftest.$ac_ext <<_ACEOF
  38627. /* confdefs.h. */
  38628. _ACEOF
  38629. cat confdefs.h >>conftest.$ac_ext
  38630. cat >>conftest.$ac_ext <<_ACEOF
  38631. /* end confdefs.h. */
  38632. /* Override any GCC internal prototype to avoid an error.
  38633. Use char because int might match the return type of a GCC
  38634. builtin and then its argument prototype would still apply. */
  38635. #ifdef __cplusplus
  38636. extern "C"
  38637. #endif
  38638. char ${pbxfuncname} ();
  38639. int
  38640. main ()
  38641. {
  38642. return ${pbxfuncname} ();
  38643. ;
  38644. return 0;
  38645. }
  38646. _ACEOF
  38647. rm -f conftest.$ac_objext conftest$ac_exeext
  38648. if { (ac_try="$ac_link"
  38649. case "(($ac_try" in
  38650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38651. *) ac_try_echo=$ac_try;;
  38652. esac
  38653. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38654. $as_echo "$ac_try_echo") >&5
  38655. (eval "$ac_link") 2>conftest.er1
  38656. ac_status=$?
  38657. grep -v '^ *+' conftest.er1 >conftest.err
  38658. rm -f conftest.er1
  38659. cat conftest.err >&5
  38660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38661. (exit $ac_status); } && {
  38662. test -z "$ac_c_werror_flag" ||
  38663. test ! -s conftest.err
  38664. } && test -s conftest$ac_exeext && {
  38665. test "$cross_compiling" = yes ||
  38666. $as_test_x conftest$ac_exeext
  38667. }; then
  38668. eval "$as_ac_Lib=yes"
  38669. else
  38670. $as_echo "$as_me: failed program was:" >&5
  38671. sed 's/^/| /' conftest.$ac_ext >&5
  38672. eval "$as_ac_Lib=no"
  38673. fi
  38674. rm -rf conftest.dSYM
  38675. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38676. conftest$ac_exeext conftest.$ac_ext
  38677. LIBS=$ac_check_lib_save_LIBS
  38678. fi
  38679. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38680. $as_echo "$as_val"'`
  38681. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38682. $as_echo "$ac_res" >&6; }
  38683. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38684. $as_echo "$as_val"'`
  38685. if test "x$as_val" = x""yes; then
  38686. AST_PRI_PROG_W_CAUSE_FOUND=yes
  38687. else
  38688. AST_PRI_PROG_W_CAUSE_FOUND=no
  38689. fi
  38690. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38691. fi
  38692. # now check for the header.
  38693. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  38694. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  38695. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  38696. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  38697. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  38698. fi
  38699. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  38700. if test "xlibpri.h" = "x" ; then # no header, assume found
  38701. PRI_PROG_W_CAUSE_HEADER_FOUND="1"
  38702. else # check for the header
  38703. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38704. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  38705. if test "${ac_cv_header_libpri_h+set}" = set; then
  38706. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38707. $as_echo_n "checking for libpri.h... " >&6; }
  38708. if test "${ac_cv_header_libpri_h+set}" = set; then
  38709. $as_echo_n "(cached) " >&6
  38710. fi
  38711. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38712. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38713. else
  38714. # Is the header compilable?
  38715. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38716. $as_echo_n "checking libpri.h usability... " >&6; }
  38717. cat >conftest.$ac_ext <<_ACEOF
  38718. /* confdefs.h. */
  38719. _ACEOF
  38720. cat confdefs.h >>conftest.$ac_ext
  38721. cat >>conftest.$ac_ext <<_ACEOF
  38722. /* end confdefs.h. */
  38723. $ac_includes_default
  38724. #include <libpri.h>
  38725. _ACEOF
  38726. rm -f conftest.$ac_objext
  38727. if { (ac_try="$ac_compile"
  38728. case "(($ac_try" in
  38729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38730. *) ac_try_echo=$ac_try;;
  38731. esac
  38732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38733. $as_echo "$ac_try_echo") >&5
  38734. (eval "$ac_compile") 2>conftest.er1
  38735. ac_status=$?
  38736. grep -v '^ *+' conftest.er1 >conftest.err
  38737. rm -f conftest.er1
  38738. cat conftest.err >&5
  38739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38740. (exit $ac_status); } && {
  38741. test -z "$ac_c_werror_flag" ||
  38742. test ! -s conftest.err
  38743. } && test -s conftest.$ac_objext; then
  38744. ac_header_compiler=yes
  38745. else
  38746. $as_echo "$as_me: failed program was:" >&5
  38747. sed 's/^/| /' conftest.$ac_ext >&5
  38748. ac_header_compiler=no
  38749. fi
  38750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38751. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38752. $as_echo "$ac_header_compiler" >&6; }
  38753. # Is the header present?
  38754. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  38755. $as_echo_n "checking libpri.h presence... " >&6; }
  38756. cat >conftest.$ac_ext <<_ACEOF
  38757. /* confdefs.h. */
  38758. _ACEOF
  38759. cat confdefs.h >>conftest.$ac_ext
  38760. cat >>conftest.$ac_ext <<_ACEOF
  38761. /* end confdefs.h. */
  38762. #include <libpri.h>
  38763. _ACEOF
  38764. if { (ac_try="$ac_cpp conftest.$ac_ext"
  38765. case "(($ac_try" in
  38766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38767. *) ac_try_echo=$ac_try;;
  38768. esac
  38769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38770. $as_echo "$ac_try_echo") >&5
  38771. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38772. ac_status=$?
  38773. grep -v '^ *+' conftest.er1 >conftest.err
  38774. rm -f conftest.er1
  38775. cat conftest.err >&5
  38776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38777. (exit $ac_status); } >/dev/null && {
  38778. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38779. test ! -s conftest.err
  38780. }; then
  38781. ac_header_preproc=yes
  38782. else
  38783. $as_echo "$as_me: failed program was:" >&5
  38784. sed 's/^/| /' conftest.$ac_ext >&5
  38785. ac_header_preproc=no
  38786. fi
  38787. rm -f conftest.err conftest.$ac_ext
  38788. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38789. $as_echo "$ac_header_preproc" >&6; }
  38790. # So? What about this header?
  38791. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38792. yes:no: )
  38793. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38794. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38795. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  38796. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  38797. ac_header_preproc=yes
  38798. ;;
  38799. no:yes:* )
  38800. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  38801. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  38802. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  38803. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  38804. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  38805. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  38806. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  38807. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38808. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  38809. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  38810. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  38811. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  38812. ( cat <<\_ASBOX
  38813. ## ------------------------------------------ ##
  38814. ## Report this to https://issues.asterisk.org ##
  38815. ## ------------------------------------------ ##
  38816. _ASBOX
  38817. ) | sed "s/^/$as_me: WARNING: /" >&2
  38818. ;;
  38819. esac
  38820. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38821. $as_echo_n "checking for libpri.h... " >&6; }
  38822. if test "${ac_cv_header_libpri_h+set}" = set; then
  38823. $as_echo_n "(cached) " >&6
  38824. else
  38825. ac_cv_header_libpri_h=$ac_header_preproc
  38826. fi
  38827. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38828. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38829. fi
  38830. if test "x$ac_cv_header_libpri_h" = x""yes; then
  38831. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  38832. else
  38833. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  38834. fi
  38835. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  38836. fi
  38837. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  38838. PRI_PROG_W_CAUSE_LIB=""
  38839. PRI_PROG_W_CAUSE_INCLUDE=""
  38840. else
  38841. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  38842. PRI_PROG_W_CAUSE_LIB=""
  38843. fi
  38844. PBX_PRI_PROG_W_CAUSE=1
  38845. cat >>confdefs.h <<_ACEOF
  38846. #define HAVE_PRI_PROG_W_CAUSE 1
  38847. _ACEOF
  38848. fi
  38849. fi
  38850. fi
  38851. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  38852. pbxlibdir=""
  38853. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  38854. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  38855. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  38856. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  38857. else
  38858. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  38859. fi
  38860. fi
  38861. pbxfuncname="pri_set_inbanddisconnect"
  38862. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  38863. AST_PRI_INBANDDISCONNECT_FOUND=yes
  38864. else
  38865. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  38866. CFLAGS="${CFLAGS} "
  38867. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  38868. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  38869. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  38870. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  38871. $as_echo_n "(cached) " >&6
  38872. else
  38873. ac_check_lib_save_LIBS=$LIBS
  38874. LIBS="-lpri ${pbxlibdir} $LIBS"
  38875. cat >conftest.$ac_ext <<_ACEOF
  38876. /* confdefs.h. */
  38877. _ACEOF
  38878. cat confdefs.h >>conftest.$ac_ext
  38879. cat >>conftest.$ac_ext <<_ACEOF
  38880. /* end confdefs.h. */
  38881. /* Override any GCC internal prototype to avoid an error.
  38882. Use char because int might match the return type of a GCC
  38883. builtin and then its argument prototype would still apply. */
  38884. #ifdef __cplusplus
  38885. extern "C"
  38886. #endif
  38887. char ${pbxfuncname} ();
  38888. int
  38889. main ()
  38890. {
  38891. return ${pbxfuncname} ();
  38892. ;
  38893. return 0;
  38894. }
  38895. _ACEOF
  38896. rm -f conftest.$ac_objext conftest$ac_exeext
  38897. if { (ac_try="$ac_link"
  38898. case "(($ac_try" in
  38899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38900. *) ac_try_echo=$ac_try;;
  38901. esac
  38902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38903. $as_echo "$ac_try_echo") >&5
  38904. (eval "$ac_link") 2>conftest.er1
  38905. ac_status=$?
  38906. grep -v '^ *+' conftest.er1 >conftest.err
  38907. rm -f conftest.er1
  38908. cat conftest.err >&5
  38909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38910. (exit $ac_status); } && {
  38911. test -z "$ac_c_werror_flag" ||
  38912. test ! -s conftest.err
  38913. } && test -s conftest$ac_exeext && {
  38914. test "$cross_compiling" = yes ||
  38915. $as_test_x conftest$ac_exeext
  38916. }; then
  38917. eval "$as_ac_Lib=yes"
  38918. else
  38919. $as_echo "$as_me: failed program was:" >&5
  38920. sed 's/^/| /' conftest.$ac_ext >&5
  38921. eval "$as_ac_Lib=no"
  38922. fi
  38923. rm -rf conftest.dSYM
  38924. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38925. conftest$ac_exeext conftest.$ac_ext
  38926. LIBS=$ac_check_lib_save_LIBS
  38927. fi
  38928. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  38929. $as_echo "$as_val"'`
  38930. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  38931. $as_echo "$ac_res" >&6; }
  38932. as_val=`eval 'as_val=${'$as_ac_Lib'}
  38933. $as_echo "$as_val"'`
  38934. if test "x$as_val" = x""yes; then
  38935. AST_PRI_INBANDDISCONNECT_FOUND=yes
  38936. else
  38937. AST_PRI_INBANDDISCONNECT_FOUND=no
  38938. fi
  38939. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  38940. fi
  38941. # now check for the header.
  38942. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  38943. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  38944. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  38945. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  38946. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  38947. fi
  38948. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  38949. if test "xlibpri.h" = "x" ; then # no header, assume found
  38950. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  38951. else # check for the header
  38952. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  38953. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  38954. if test "${ac_cv_header_libpri_h+set}" = set; then
  38955. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  38956. $as_echo_n "checking for libpri.h... " >&6; }
  38957. if test "${ac_cv_header_libpri_h+set}" = set; then
  38958. $as_echo_n "(cached) " >&6
  38959. fi
  38960. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  38961. $as_echo "$ac_cv_header_libpri_h" >&6; }
  38962. else
  38963. # Is the header compilable?
  38964. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  38965. $as_echo_n "checking libpri.h usability... " >&6; }
  38966. cat >conftest.$ac_ext <<_ACEOF
  38967. /* confdefs.h. */
  38968. _ACEOF
  38969. cat confdefs.h >>conftest.$ac_ext
  38970. cat >>conftest.$ac_ext <<_ACEOF
  38971. /* end confdefs.h. */
  38972. $ac_includes_default
  38973. #include <libpri.h>
  38974. _ACEOF
  38975. rm -f conftest.$ac_objext
  38976. if { (ac_try="$ac_compile"
  38977. case "(($ac_try" in
  38978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38979. *) ac_try_echo=$ac_try;;
  38980. esac
  38981. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  38982. $as_echo "$ac_try_echo") >&5
  38983. (eval "$ac_compile") 2>conftest.er1
  38984. ac_status=$?
  38985. grep -v '^ *+' conftest.er1 >conftest.err
  38986. rm -f conftest.er1
  38987. cat conftest.err >&5
  38988. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38989. (exit $ac_status); } && {
  38990. test -z "$ac_c_werror_flag" ||
  38991. test ! -s conftest.err
  38992. } && test -s conftest.$ac_objext; then
  38993. ac_header_compiler=yes
  38994. else
  38995. $as_echo "$as_me: failed program was:" >&5
  38996. sed 's/^/| /' conftest.$ac_ext >&5
  38997. ac_header_compiler=no
  38998. fi
  38999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39000. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39001. $as_echo "$ac_header_compiler" >&6; }
  39002. # Is the header present?
  39003. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  39004. $as_echo_n "checking libpri.h presence... " >&6; }
  39005. cat >conftest.$ac_ext <<_ACEOF
  39006. /* confdefs.h. */
  39007. _ACEOF
  39008. cat confdefs.h >>conftest.$ac_ext
  39009. cat >>conftest.$ac_ext <<_ACEOF
  39010. /* end confdefs.h. */
  39011. #include <libpri.h>
  39012. _ACEOF
  39013. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39014. case "(($ac_try" in
  39015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39016. *) ac_try_echo=$ac_try;;
  39017. esac
  39018. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39019. $as_echo "$ac_try_echo") >&5
  39020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39021. ac_status=$?
  39022. grep -v '^ *+' conftest.er1 >conftest.err
  39023. rm -f conftest.er1
  39024. cat conftest.err >&5
  39025. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39026. (exit $ac_status); } >/dev/null && {
  39027. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39028. test ! -s conftest.err
  39029. }; then
  39030. ac_header_preproc=yes
  39031. else
  39032. $as_echo "$as_me: failed program was:" >&5
  39033. sed 's/^/| /' conftest.$ac_ext >&5
  39034. ac_header_preproc=no
  39035. fi
  39036. rm -f conftest.err conftest.$ac_ext
  39037. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39038. $as_echo "$ac_header_preproc" >&6; }
  39039. # So? What about this header?
  39040. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39041. yes:no: )
  39042. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39043. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39044. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  39045. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  39046. ac_header_preproc=yes
  39047. ;;
  39048. no:yes:* )
  39049. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  39050. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  39051. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  39052. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  39053. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  39054. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  39055. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  39056. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39057. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  39058. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  39059. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  39060. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  39061. ( cat <<\_ASBOX
  39062. ## ------------------------------------------ ##
  39063. ## Report this to https://issues.asterisk.org ##
  39064. ## ------------------------------------------ ##
  39065. _ASBOX
  39066. ) | sed "s/^/$as_me: WARNING: /" >&2
  39067. ;;
  39068. esac
  39069. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39070. $as_echo_n "checking for libpri.h... " >&6; }
  39071. if test "${ac_cv_header_libpri_h+set}" = set; then
  39072. $as_echo_n "(cached) " >&6
  39073. else
  39074. ac_cv_header_libpri_h=$ac_header_preproc
  39075. fi
  39076. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39077. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39078. fi
  39079. if test "x$ac_cv_header_libpri_h" = x""yes; then
  39080. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  39081. else
  39082. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  39083. fi
  39084. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39085. fi
  39086. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  39087. PRI_INBANDDISCONNECT_LIB=""
  39088. PRI_INBANDDISCONNECT_INCLUDE=""
  39089. else
  39090. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39091. PRI_INBANDDISCONNECT_LIB=""
  39092. fi
  39093. PBX_PRI_INBANDDISCONNECT=1
  39094. cat >>confdefs.h <<_ACEOF
  39095. #define HAVE_PRI_INBANDDISCONNECT 1
  39096. _ACEOF
  39097. fi
  39098. fi
  39099. fi
  39100. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  39101. pbxlibdir=""
  39102. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  39103. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  39104. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  39105. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  39106. else
  39107. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  39108. fi
  39109. fi
  39110. pbxfuncname="pri_maintenance_service"
  39111. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39112. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  39113. else
  39114. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39115. CFLAGS="${CFLAGS} "
  39116. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  39117. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  39118. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  39119. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39120. $as_echo_n "(cached) " >&6
  39121. else
  39122. ac_check_lib_save_LIBS=$LIBS
  39123. LIBS="-lpri ${pbxlibdir} $LIBS"
  39124. cat >conftest.$ac_ext <<_ACEOF
  39125. /* confdefs.h. */
  39126. _ACEOF
  39127. cat confdefs.h >>conftest.$ac_ext
  39128. cat >>conftest.$ac_ext <<_ACEOF
  39129. /* end confdefs.h. */
  39130. /* Override any GCC internal prototype to avoid an error.
  39131. Use char because int might match the return type of a GCC
  39132. builtin and then its argument prototype would still apply. */
  39133. #ifdef __cplusplus
  39134. extern "C"
  39135. #endif
  39136. char ${pbxfuncname} ();
  39137. int
  39138. main ()
  39139. {
  39140. return ${pbxfuncname} ();
  39141. ;
  39142. return 0;
  39143. }
  39144. _ACEOF
  39145. rm -f conftest.$ac_objext conftest$ac_exeext
  39146. if { (ac_try="$ac_link"
  39147. case "(($ac_try" in
  39148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39149. *) ac_try_echo=$ac_try;;
  39150. esac
  39151. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39152. $as_echo "$ac_try_echo") >&5
  39153. (eval "$ac_link") 2>conftest.er1
  39154. ac_status=$?
  39155. grep -v '^ *+' conftest.er1 >conftest.err
  39156. rm -f conftest.er1
  39157. cat conftest.err >&5
  39158. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39159. (exit $ac_status); } && {
  39160. test -z "$ac_c_werror_flag" ||
  39161. test ! -s conftest.err
  39162. } && test -s conftest$ac_exeext && {
  39163. test "$cross_compiling" = yes ||
  39164. $as_test_x conftest$ac_exeext
  39165. }; then
  39166. eval "$as_ac_Lib=yes"
  39167. else
  39168. $as_echo "$as_me: failed program was:" >&5
  39169. sed 's/^/| /' conftest.$ac_ext >&5
  39170. eval "$as_ac_Lib=no"
  39171. fi
  39172. rm -rf conftest.dSYM
  39173. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39174. conftest$ac_exeext conftest.$ac_ext
  39175. LIBS=$ac_check_lib_save_LIBS
  39176. fi
  39177. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  39178. $as_echo "$as_val"'`
  39179. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39180. $as_echo "$ac_res" >&6; }
  39181. as_val=`eval 'as_val=${'$as_ac_Lib'}
  39182. $as_echo "$as_val"'`
  39183. if test "x$as_val" = x""yes; then
  39184. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  39185. else
  39186. AST_PRI_SERVICE_MESSAGES_FOUND=no
  39187. fi
  39188. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  39189. fi
  39190. # now check for the header.
  39191. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  39192. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  39193. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  39194. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  39195. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  39196. fi
  39197. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  39198. if test "xlibpri.h" = "x" ; then # no header, assume found
  39199. PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
  39200. else # check for the header
  39201. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  39202. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  39203. if test "${ac_cv_header_libpri_h+set}" = set; then
  39204. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39205. $as_echo_n "checking for libpri.h... " >&6; }
  39206. if test "${ac_cv_header_libpri_h+set}" = set; then
  39207. $as_echo_n "(cached) " >&6
  39208. fi
  39209. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39210. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39211. else
  39212. # Is the header compilable?
  39213. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  39214. $as_echo_n "checking libpri.h usability... " >&6; }
  39215. cat >conftest.$ac_ext <<_ACEOF
  39216. /* confdefs.h. */
  39217. _ACEOF
  39218. cat confdefs.h >>conftest.$ac_ext
  39219. cat >>conftest.$ac_ext <<_ACEOF
  39220. /* end confdefs.h. */
  39221. $ac_includes_default
  39222. #include <libpri.h>
  39223. _ACEOF
  39224. rm -f conftest.$ac_objext
  39225. if { (ac_try="$ac_compile"
  39226. case "(($ac_try" in
  39227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39228. *) ac_try_echo=$ac_try;;
  39229. esac
  39230. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39231. $as_echo "$ac_try_echo") >&5
  39232. (eval "$ac_compile") 2>conftest.er1
  39233. ac_status=$?
  39234. grep -v '^ *+' conftest.er1 >conftest.err
  39235. rm -f conftest.er1
  39236. cat conftest.err >&5
  39237. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39238. (exit $ac_status); } && {
  39239. test -z "$ac_c_werror_flag" ||
  39240. test ! -s conftest.err
  39241. } && test -s conftest.$ac_objext; then
  39242. ac_header_compiler=yes
  39243. else
  39244. $as_echo "$as_me: failed program was:" >&5
  39245. sed 's/^/| /' conftest.$ac_ext >&5
  39246. ac_header_compiler=no
  39247. fi
  39248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39249. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39250. $as_echo "$ac_header_compiler" >&6; }
  39251. # Is the header present?
  39252. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  39253. $as_echo_n "checking libpri.h presence... " >&6; }
  39254. cat >conftest.$ac_ext <<_ACEOF
  39255. /* confdefs.h. */
  39256. _ACEOF
  39257. cat confdefs.h >>conftest.$ac_ext
  39258. cat >>conftest.$ac_ext <<_ACEOF
  39259. /* end confdefs.h. */
  39260. #include <libpri.h>
  39261. _ACEOF
  39262. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39263. case "(($ac_try" in
  39264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39265. *) ac_try_echo=$ac_try;;
  39266. esac
  39267. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39268. $as_echo "$ac_try_echo") >&5
  39269. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39270. ac_status=$?
  39271. grep -v '^ *+' conftest.er1 >conftest.err
  39272. rm -f conftest.er1
  39273. cat conftest.err >&5
  39274. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39275. (exit $ac_status); } >/dev/null && {
  39276. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39277. test ! -s conftest.err
  39278. }; then
  39279. ac_header_preproc=yes
  39280. else
  39281. $as_echo "$as_me: failed program was:" >&5
  39282. sed 's/^/| /' conftest.$ac_ext >&5
  39283. ac_header_preproc=no
  39284. fi
  39285. rm -f conftest.err conftest.$ac_ext
  39286. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39287. $as_echo "$ac_header_preproc" >&6; }
  39288. # So? What about this header?
  39289. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39290. yes:no: )
  39291. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39292. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39293. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  39294. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  39295. ac_header_preproc=yes
  39296. ;;
  39297. no:yes:* )
  39298. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  39299. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  39300. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  39301. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  39302. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  39303. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  39304. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  39305. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39306. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  39307. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  39308. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  39309. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  39310. ( cat <<\_ASBOX
  39311. ## ------------------------------------------ ##
  39312. ## Report this to https://issues.asterisk.org ##
  39313. ## ------------------------------------------ ##
  39314. _ASBOX
  39315. ) | sed "s/^/$as_me: WARNING: /" >&2
  39316. ;;
  39317. esac
  39318. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39319. $as_echo_n "checking for libpri.h... " >&6; }
  39320. if test "${ac_cv_header_libpri_h+set}" = set; then
  39321. $as_echo_n "(cached) " >&6
  39322. else
  39323. ac_cv_header_libpri_h=$ac_header_preproc
  39324. fi
  39325. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39326. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39327. fi
  39328. if test "x$ac_cv_header_libpri_h" = x""yes; then
  39329. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  39330. else
  39331. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  39332. fi
  39333. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39334. fi
  39335. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  39336. PRI_SERVICE_MESSAGES_LIB=""
  39337. PRI_SERVICE_MESSAGES_INCLUDE=""
  39338. else
  39339. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39340. PRI_SERVICE_MESSAGES_LIB=""
  39341. fi
  39342. PBX_PRI_SERVICE_MESSAGES=1
  39343. cat >>confdefs.h <<_ACEOF
  39344. #define HAVE_PRI_SERVICE_MESSAGES 1
  39345. _ACEOF
  39346. fi
  39347. fi
  39348. fi
  39349. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  39350. pbxlibdir=""
  39351. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  39352. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  39353. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  39354. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  39355. else
  39356. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  39357. fi
  39358. fi
  39359. pbxfuncname="pri_sr_set_reversecharge"
  39360. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39361. AST_PRI_REVERSE_CHARGE_FOUND=yes
  39362. else
  39363. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39364. CFLAGS="${CFLAGS} "
  39365. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  39366. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
  39367. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  39368. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39369. $as_echo_n "(cached) " >&6
  39370. else
  39371. ac_check_lib_save_LIBS=$LIBS
  39372. LIBS="-lpri ${pbxlibdir} $LIBS"
  39373. cat >conftest.$ac_ext <<_ACEOF
  39374. /* confdefs.h. */
  39375. _ACEOF
  39376. cat confdefs.h >>conftest.$ac_ext
  39377. cat >>conftest.$ac_ext <<_ACEOF
  39378. /* end confdefs.h. */
  39379. /* Override any GCC internal prototype to avoid an error.
  39380. Use char because int might match the return type of a GCC
  39381. builtin and then its argument prototype would still apply. */
  39382. #ifdef __cplusplus
  39383. extern "C"
  39384. #endif
  39385. char ${pbxfuncname} ();
  39386. int
  39387. main ()
  39388. {
  39389. return ${pbxfuncname} ();
  39390. ;
  39391. return 0;
  39392. }
  39393. _ACEOF
  39394. rm -f conftest.$ac_objext conftest$ac_exeext
  39395. if { (ac_try="$ac_link"
  39396. case "(($ac_try" in
  39397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39398. *) ac_try_echo=$ac_try;;
  39399. esac
  39400. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39401. $as_echo "$ac_try_echo") >&5
  39402. (eval "$ac_link") 2>conftest.er1
  39403. ac_status=$?
  39404. grep -v '^ *+' conftest.er1 >conftest.err
  39405. rm -f conftest.er1
  39406. cat conftest.err >&5
  39407. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39408. (exit $ac_status); } && {
  39409. test -z "$ac_c_werror_flag" ||
  39410. test ! -s conftest.err
  39411. } && test -s conftest$ac_exeext && {
  39412. test "$cross_compiling" = yes ||
  39413. $as_test_x conftest$ac_exeext
  39414. }; then
  39415. eval "$as_ac_Lib=yes"
  39416. else
  39417. $as_echo "$as_me: failed program was:" >&5
  39418. sed 's/^/| /' conftest.$ac_ext >&5
  39419. eval "$as_ac_Lib=no"
  39420. fi
  39421. rm -rf conftest.dSYM
  39422. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39423. conftest$ac_exeext conftest.$ac_ext
  39424. LIBS=$ac_check_lib_save_LIBS
  39425. fi
  39426. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  39427. $as_echo "$as_val"'`
  39428. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39429. $as_echo "$ac_res" >&6; }
  39430. as_val=`eval 'as_val=${'$as_ac_Lib'}
  39431. $as_echo "$as_val"'`
  39432. if test "x$as_val" = x""yes; then
  39433. AST_PRI_REVERSE_CHARGE_FOUND=yes
  39434. else
  39435. AST_PRI_REVERSE_CHARGE_FOUND=no
  39436. fi
  39437. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  39438. fi
  39439. # now check for the header.
  39440. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  39441. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  39442. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  39443. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  39444. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  39445. fi
  39446. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  39447. if test "xlibpri.h" = "x" ; then # no header, assume found
  39448. PRI_REVERSE_CHARGE_HEADER_FOUND="1"
  39449. else # check for the header
  39450. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  39451. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  39452. if test "${ac_cv_header_libpri_h+set}" = set; then
  39453. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39454. $as_echo_n "checking for libpri.h... " >&6; }
  39455. if test "${ac_cv_header_libpri_h+set}" = set; then
  39456. $as_echo_n "(cached) " >&6
  39457. fi
  39458. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39459. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39460. else
  39461. # Is the header compilable?
  39462. { $as_echo "$as_me:$LINENO: checking libpri.h usability" >&5
  39463. $as_echo_n "checking libpri.h usability... " >&6; }
  39464. cat >conftest.$ac_ext <<_ACEOF
  39465. /* confdefs.h. */
  39466. _ACEOF
  39467. cat confdefs.h >>conftest.$ac_ext
  39468. cat >>conftest.$ac_ext <<_ACEOF
  39469. /* end confdefs.h. */
  39470. $ac_includes_default
  39471. #include <libpri.h>
  39472. _ACEOF
  39473. rm -f conftest.$ac_objext
  39474. if { (ac_try="$ac_compile"
  39475. case "(($ac_try" in
  39476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39477. *) ac_try_echo=$ac_try;;
  39478. esac
  39479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39480. $as_echo "$ac_try_echo") >&5
  39481. (eval "$ac_compile") 2>conftest.er1
  39482. ac_status=$?
  39483. grep -v '^ *+' conftest.er1 >conftest.err
  39484. rm -f conftest.er1
  39485. cat conftest.err >&5
  39486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39487. (exit $ac_status); } && {
  39488. test -z "$ac_c_werror_flag" ||
  39489. test ! -s conftest.err
  39490. } && test -s conftest.$ac_objext; then
  39491. ac_header_compiler=yes
  39492. else
  39493. $as_echo "$as_me: failed program was:" >&5
  39494. sed 's/^/| /' conftest.$ac_ext >&5
  39495. ac_header_compiler=no
  39496. fi
  39497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39498. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39499. $as_echo "$ac_header_compiler" >&6; }
  39500. # Is the header present?
  39501. { $as_echo "$as_me:$LINENO: checking libpri.h presence" >&5
  39502. $as_echo_n "checking libpri.h presence... " >&6; }
  39503. cat >conftest.$ac_ext <<_ACEOF
  39504. /* confdefs.h. */
  39505. _ACEOF
  39506. cat confdefs.h >>conftest.$ac_ext
  39507. cat >>conftest.$ac_ext <<_ACEOF
  39508. /* end confdefs.h. */
  39509. #include <libpri.h>
  39510. _ACEOF
  39511. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39512. case "(($ac_try" in
  39513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39514. *) ac_try_echo=$ac_try;;
  39515. esac
  39516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39517. $as_echo "$ac_try_echo") >&5
  39518. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39519. ac_status=$?
  39520. grep -v '^ *+' conftest.er1 >conftest.err
  39521. rm -f conftest.er1
  39522. cat conftest.err >&5
  39523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39524. (exit $ac_status); } >/dev/null && {
  39525. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39526. test ! -s conftest.err
  39527. }; then
  39528. ac_header_preproc=yes
  39529. else
  39530. $as_echo "$as_me: failed program was:" >&5
  39531. sed 's/^/| /' conftest.$ac_ext >&5
  39532. ac_header_preproc=no
  39533. fi
  39534. rm -f conftest.err conftest.$ac_ext
  39535. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39536. $as_echo "$ac_header_preproc" >&6; }
  39537. # So? What about this header?
  39538. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39539. yes:no: )
  39540. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39541. $as_echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39542. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
  39543. $as_echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
  39544. ac_header_preproc=yes
  39545. ;;
  39546. no:yes:* )
  39547. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
  39548. $as_echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
  39549. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
  39550. $as_echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
  39551. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
  39552. $as_echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
  39553. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
  39554. $as_echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39555. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
  39556. $as_echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
  39557. { $as_echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
  39558. $as_echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
  39559. ( cat <<\_ASBOX
  39560. ## ------------------------------------------ ##
  39561. ## Report this to https://issues.asterisk.org ##
  39562. ## ------------------------------------------ ##
  39563. _ASBOX
  39564. ) | sed "s/^/$as_me: WARNING: /" >&2
  39565. ;;
  39566. esac
  39567. { $as_echo "$as_me:$LINENO: checking for libpri.h" >&5
  39568. $as_echo_n "checking for libpri.h... " >&6; }
  39569. if test "${ac_cv_header_libpri_h+set}" = set; then
  39570. $as_echo_n "(cached) " >&6
  39571. else
  39572. ac_cv_header_libpri_h=$ac_header_preproc
  39573. fi
  39574. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
  39575. $as_echo "$ac_cv_header_libpri_h" >&6; }
  39576. fi
  39577. if test "x$ac_cv_header_libpri_h" = x""yes; then
  39578. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  39579. else
  39580. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  39581. fi
  39582. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39583. fi
  39584. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  39585. PRI_REVERSE_CHARGE_LIB=""
  39586. PRI_REVERSE_CHARGE_INCLUDE=""
  39587. else
  39588. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39589. PRI_REVERSE_CHARGE_LIB=""
  39590. fi
  39591. PBX_PRI_REVERSE_CHARGE=1
  39592. cat >>confdefs.h <<_ACEOF
  39593. #define HAVE_PRI_REVERSE_CHARGE 1
  39594. _ACEOF
  39595. fi
  39596. fi
  39597. fi
  39598. # ------------------------------------^
  39599. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  39600. pbxlibdir=""
  39601. # if --with-RESAMPLE=DIR has been specified, use it.
  39602. if test "x${RESAMPLE_DIR}" != "x"; then
  39603. if test -d ${RESAMPLE_DIR}/lib; then
  39604. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  39605. else
  39606. pbxlibdir="-L${RESAMPLE_DIR}"
  39607. fi
  39608. fi
  39609. pbxfuncname="resample_open"
  39610. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39611. AST_RESAMPLE_FOUND=yes
  39612. else
  39613. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39614. CFLAGS="${CFLAGS} "
  39615. as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
  39616. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lresample" >&5
  39617. $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
  39618. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39619. $as_echo_n "(cached) " >&6
  39620. else
  39621. ac_check_lib_save_LIBS=$LIBS
  39622. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  39623. cat >conftest.$ac_ext <<_ACEOF
  39624. /* confdefs.h. */
  39625. _ACEOF
  39626. cat confdefs.h >>conftest.$ac_ext
  39627. cat >>conftest.$ac_ext <<_ACEOF
  39628. /* end confdefs.h. */
  39629. /* Override any GCC internal prototype to avoid an error.
  39630. Use char because int might match the return type of a GCC
  39631. builtin and then its argument prototype would still apply. */
  39632. #ifdef __cplusplus
  39633. extern "C"
  39634. #endif
  39635. char ${pbxfuncname} ();
  39636. int
  39637. main ()
  39638. {
  39639. return ${pbxfuncname} ();
  39640. ;
  39641. return 0;
  39642. }
  39643. _ACEOF
  39644. rm -f conftest.$ac_objext conftest$ac_exeext
  39645. if { (ac_try="$ac_link"
  39646. case "(($ac_try" in
  39647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39648. *) ac_try_echo=$ac_try;;
  39649. esac
  39650. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39651. $as_echo "$ac_try_echo") >&5
  39652. (eval "$ac_link") 2>conftest.er1
  39653. ac_status=$?
  39654. grep -v '^ *+' conftest.er1 >conftest.err
  39655. rm -f conftest.er1
  39656. cat conftest.err >&5
  39657. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39658. (exit $ac_status); } && {
  39659. test -z "$ac_c_werror_flag" ||
  39660. test ! -s conftest.err
  39661. } && test -s conftest$ac_exeext && {
  39662. test "$cross_compiling" = yes ||
  39663. $as_test_x conftest$ac_exeext
  39664. }; then
  39665. eval "$as_ac_Lib=yes"
  39666. else
  39667. $as_echo "$as_me: failed program was:" >&5
  39668. sed 's/^/| /' conftest.$ac_ext >&5
  39669. eval "$as_ac_Lib=no"
  39670. fi
  39671. rm -rf conftest.dSYM
  39672. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39673. conftest$ac_exeext conftest.$ac_ext
  39674. LIBS=$ac_check_lib_save_LIBS
  39675. fi
  39676. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  39677. $as_echo "$as_val"'`
  39678. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  39679. $as_echo "$ac_res" >&6; }
  39680. as_val=`eval 'as_val=${'$as_ac_Lib'}
  39681. $as_echo "$as_val"'`
  39682. if test "x$as_val" = x""yes; then
  39683. AST_RESAMPLE_FOUND=yes
  39684. else
  39685. AST_RESAMPLE_FOUND=no
  39686. fi
  39687. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  39688. fi
  39689. # now check for the header.
  39690. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  39691. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  39692. # if --with-RESAMPLE=DIR has been specified, use it.
  39693. if test "x${RESAMPLE_DIR}" != "x"; then
  39694. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  39695. fi
  39696. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  39697. if test "xlibresample.h" = "x" ; then # no header, assume found
  39698. RESAMPLE_HEADER_FOUND="1"
  39699. else # check for the header
  39700. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  39701. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  39702. if test "${ac_cv_header_libresample_h+set}" = set; then
  39703. { $as_echo "$as_me:$LINENO: checking for libresample.h" >&5
  39704. $as_echo_n "checking for libresample.h... " >&6; }
  39705. if test "${ac_cv_header_libresample_h+set}" = set; then
  39706. $as_echo_n "(cached) " >&6
  39707. fi
  39708. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
  39709. $as_echo "$ac_cv_header_libresample_h" >&6; }
  39710. else
  39711. # Is the header compilable?
  39712. { $as_echo "$as_me:$LINENO: checking libresample.h usability" >&5
  39713. $as_echo_n "checking libresample.h usability... " >&6; }
  39714. cat >conftest.$ac_ext <<_ACEOF
  39715. /* confdefs.h. */
  39716. _ACEOF
  39717. cat confdefs.h >>conftest.$ac_ext
  39718. cat >>conftest.$ac_ext <<_ACEOF
  39719. /* end confdefs.h. */
  39720. $ac_includes_default
  39721. #include <libresample.h>
  39722. _ACEOF
  39723. rm -f conftest.$ac_objext
  39724. if { (ac_try="$ac_compile"
  39725. case "(($ac_try" in
  39726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39727. *) ac_try_echo=$ac_try;;
  39728. esac
  39729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39730. $as_echo "$ac_try_echo") >&5
  39731. (eval "$ac_compile") 2>conftest.er1
  39732. ac_status=$?
  39733. grep -v '^ *+' conftest.er1 >conftest.err
  39734. rm -f conftest.er1
  39735. cat conftest.err >&5
  39736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39737. (exit $ac_status); } && {
  39738. test -z "$ac_c_werror_flag" ||
  39739. test ! -s conftest.err
  39740. } && test -s conftest.$ac_objext; then
  39741. ac_header_compiler=yes
  39742. else
  39743. $as_echo "$as_me: failed program was:" >&5
  39744. sed 's/^/| /' conftest.$ac_ext >&5
  39745. ac_header_compiler=no
  39746. fi
  39747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39748. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  39749. $as_echo "$ac_header_compiler" >&6; }
  39750. # Is the header present?
  39751. { $as_echo "$as_me:$LINENO: checking libresample.h presence" >&5
  39752. $as_echo_n "checking libresample.h presence... " >&6; }
  39753. cat >conftest.$ac_ext <<_ACEOF
  39754. /* confdefs.h. */
  39755. _ACEOF
  39756. cat confdefs.h >>conftest.$ac_ext
  39757. cat >>conftest.$ac_ext <<_ACEOF
  39758. /* end confdefs.h. */
  39759. #include <libresample.h>
  39760. _ACEOF
  39761. if { (ac_try="$ac_cpp conftest.$ac_ext"
  39762. case "(($ac_try" in
  39763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39764. *) ac_try_echo=$ac_try;;
  39765. esac
  39766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39767. $as_echo "$ac_try_echo") >&5
  39768. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  39769. ac_status=$?
  39770. grep -v '^ *+' conftest.er1 >conftest.err
  39771. rm -f conftest.er1
  39772. cat conftest.err >&5
  39773. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39774. (exit $ac_status); } >/dev/null && {
  39775. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  39776. test ! -s conftest.err
  39777. }; then
  39778. ac_header_preproc=yes
  39779. else
  39780. $as_echo "$as_me: failed program was:" >&5
  39781. sed 's/^/| /' conftest.$ac_ext >&5
  39782. ac_header_preproc=no
  39783. fi
  39784. rm -f conftest.err conftest.$ac_ext
  39785. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  39786. $as_echo "$ac_header_preproc" >&6; }
  39787. # So? What about this header?
  39788. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  39789. yes:no: )
  39790. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&5
  39791. $as_echo "$as_me: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  39792. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the compiler's result" >&5
  39793. $as_echo "$as_me: WARNING: libresample.h: proceeding with the compiler's result" >&2;}
  39794. ac_header_preproc=yes
  39795. ;;
  39796. no:yes:* )
  39797. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: present but cannot be compiled" >&5
  39798. $as_echo "$as_me: WARNING: libresample.h: present but cannot be compiled" >&2;}
  39799. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: check for missing prerequisite headers?" >&5
  39800. $as_echo "$as_me: WARNING: libresample.h: check for missing prerequisite headers?" >&2;}
  39801. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: see the Autoconf documentation" >&5
  39802. $as_echo "$as_me: WARNING: libresample.h: see the Autoconf documentation" >&2;}
  39803. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&5
  39804. $as_echo "$as_me: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&2;}
  39805. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the preprocessor's result" >&5
  39806. $as_echo "$as_me: WARNING: libresample.h: proceeding with the preprocessor's result" >&2;}
  39807. { $as_echo "$as_me:$LINENO: WARNING: libresample.h: in the future, the compiler will take precedence" >&5
  39808. $as_echo "$as_me: WARNING: libresample.h: in the future, the compiler will take precedence" >&2;}
  39809. ( cat <<\_ASBOX
  39810. ## ------------------------------------------ ##
  39811. ## Report this to https://issues.asterisk.org ##
  39812. ## ------------------------------------------ ##
  39813. _ASBOX
  39814. ) | sed "s/^/$as_me: WARNING: /" >&2
  39815. ;;
  39816. esac
  39817. { $as_echo "$as_me:$LINENO: checking for libresample.h" >&5
  39818. $as_echo_n "checking for libresample.h... " >&6; }
  39819. if test "${ac_cv_header_libresample_h+set}" = set; then
  39820. $as_echo_n "(cached) " >&6
  39821. else
  39822. ac_cv_header_libresample_h=$ac_header_preproc
  39823. fi
  39824. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
  39825. $as_echo "$ac_cv_header_libresample_h" >&6; }
  39826. fi
  39827. if test "x$ac_cv_header_libresample_h" = x""yes; then
  39828. RESAMPLE_HEADER_FOUND=1
  39829. else
  39830. RESAMPLE_HEADER_FOUND=0
  39831. fi
  39832. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  39833. fi
  39834. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  39835. RESAMPLE_LIB=""
  39836. RESAMPLE_INCLUDE=""
  39837. else
  39838. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  39839. RESAMPLE_LIB=""
  39840. fi
  39841. PBX_RESAMPLE=1
  39842. cat >>confdefs.h <<_ACEOF
  39843. #define HAVE_RESAMPLE 1
  39844. _ACEOF
  39845. fi
  39846. fi
  39847. fi
  39848. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  39849. if test "xminimum version of SpanDSP" != "x"; then
  39850. { $as_echo "$as_me:$LINENO: checking for minimum version of SpanDSP" >&5
  39851. $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
  39852. else
  39853. { $as_echo "$as_me:$LINENO: checking if \"
  39854. #if SPANDSP_RELEASE_DATE < 20080516
  39855. #error \"spandsp 0.0.5 or greater is required\"
  39856. #endif
  39857. \" compiles using spandsp/version.h" >&5
  39858. $as_echo_n "checking if \"
  39859. #if SPANDSP_RELEASE_DATE < 20080516
  39860. #error \"spandsp 0.0.5 or greater is required\"
  39861. #endif
  39862. \" compiles using spandsp/version.h... " >&6; }
  39863. fi
  39864. saved_cppflags="${CPPFLAGS}"
  39865. if test "x${SPANDSP_DIR}" != "x"; then
  39866. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  39867. fi
  39868. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  39869. cat >conftest.$ac_ext <<_ACEOF
  39870. /* confdefs.h. */
  39871. _ACEOF
  39872. cat confdefs.h >>conftest.$ac_ext
  39873. cat >>conftest.$ac_ext <<_ACEOF
  39874. /* end confdefs.h. */
  39875. #include <spandsp/version.h>
  39876. int
  39877. main ()
  39878. {
  39879. #if SPANDSP_RELEASE_DATE < 20080516
  39880. #error "spandsp 0.0.5 or greater is required"
  39881. #endif
  39882. ;
  39883. ;
  39884. return 0;
  39885. }
  39886. _ACEOF
  39887. rm -f conftest.$ac_objext
  39888. if { (ac_try="$ac_compile"
  39889. case "(($ac_try" in
  39890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39891. *) ac_try_echo=$ac_try;;
  39892. esac
  39893. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39894. $as_echo "$ac_try_echo") >&5
  39895. (eval "$ac_compile") 2>conftest.er1
  39896. ac_status=$?
  39897. grep -v '^ *+' conftest.er1 >conftest.err
  39898. rm -f conftest.er1
  39899. cat conftest.err >&5
  39900. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39901. (exit $ac_status); } && {
  39902. test -z "$ac_c_werror_flag" ||
  39903. test ! -s conftest.err
  39904. } && test -s conftest.$ac_objext; then
  39905. { $as_echo "$as_me:$LINENO: result: yes" >&5
  39906. $as_echo "yes" >&6; }
  39907. PBX_SPANDSP=1
  39908. cat >>confdefs.h <<\_ACEOF
  39909. #define HAVE_SPANDSP 1
  39910. _ACEOF
  39911. else
  39912. $as_echo "$as_me: failed program was:" >&5
  39913. sed 's/^/| /' conftest.$ac_ext >&5
  39914. { $as_echo "$as_me:$LINENO: result: no" >&5
  39915. $as_echo "no" >&6; }
  39916. fi
  39917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39918. CPPFLAGS="${saved_cppflags}"
  39919. fi
  39920. if test "x${PBX_SPANDSP}" = "x1" ; then
  39921. # We found the correct version in the header, now let's make sure it links
  39922. # properly, and that libtiff is available
  39923. PBX_SPANDSP=0
  39924. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  39925. pbxlibdir=""
  39926. # if --with-SPANDSP=DIR has been specified, use it.
  39927. if test "x${SPANDSP_DIR}" != "x"; then
  39928. if test -d ${SPANDSP_DIR}/lib; then
  39929. pbxlibdir="-L${SPANDSP_DIR}/lib"
  39930. else
  39931. pbxlibdir="-L${SPANDSP_DIR}"
  39932. fi
  39933. fi
  39934. pbxfuncname="span_set_message_handler"
  39935. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  39936. AST_SPANDSP_FOUND=yes
  39937. else
  39938. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  39939. CFLAGS="${CFLAGS} "
  39940. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  39941. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
  39942. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  39943. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  39944. $as_echo_n "(cached) " >&6
  39945. else
  39946. ac_check_lib_save_LIBS=$LIBS
  39947. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  39948. cat >conftest.$ac_ext <<_ACEOF
  39949. /* confdefs.h. */
  39950. _ACEOF
  39951. cat confdefs.h >>conftest.$ac_ext
  39952. cat >>conftest.$ac_ext <<_ACEOF
  39953. /* end confdefs.h. */
  39954. /* Override any GCC internal prototype to avoid an error.
  39955. Use char because int might match the return type of a GCC
  39956. builtin and then its argument prototype would still apply. */
  39957. #ifdef __cplusplus
  39958. extern "C"
  39959. #endif
  39960. char ${pbxfuncname} ();
  39961. int
  39962. main ()
  39963. {
  39964. return ${pbxfuncname} ();
  39965. ;
  39966. return 0;
  39967. }
  39968. _ACEOF
  39969. rm -f conftest.$ac_objext conftest$ac_exeext
  39970. if { (ac_try="$ac_link"
  39971. case "(($ac_try" in
  39972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39973. *) ac_try_echo=$ac_try;;
  39974. esac
  39975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39976. $as_echo "$ac_try_echo") >&5
  39977. (eval "$ac_link") 2>conftest.er1
  39978. ac_status=$?
  39979. grep -v '^ *+' conftest.er1 >conftest.err
  39980. rm -f conftest.er1
  39981. cat conftest.err >&5
  39982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39983. (exit $ac_status); } && {
  39984. test -z "$ac_c_werror_flag" ||
  39985. test ! -s conftest.err
  39986. } && test -s conftest$ac_exeext && {
  39987. test "$cross_compiling" = yes ||
  39988. $as_test_x conftest$ac_exeext
  39989. }; then
  39990. eval "$as_ac_Lib=yes"
  39991. else
  39992. $as_echo "$as_me: failed program was:" >&5
  39993. sed 's/^/| /' conftest.$ac_ext >&5
  39994. eval "$as_ac_Lib=no"
  39995. fi
  39996. rm -rf conftest.dSYM
  39997. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39998. conftest$ac_exeext conftest.$ac_ext
  39999. LIBS=$ac_check_lib_save_LIBS
  40000. fi
  40001. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40002. $as_echo "$as_val"'`
  40003. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40004. $as_echo "$ac_res" >&6; }
  40005. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40006. $as_echo "$as_val"'`
  40007. if test "x$as_val" = x""yes; then
  40008. AST_SPANDSP_FOUND=yes
  40009. else
  40010. AST_SPANDSP_FOUND=no
  40011. fi
  40012. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40013. fi
  40014. # now check for the header.
  40015. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  40016. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  40017. # if --with-SPANDSP=DIR has been specified, use it.
  40018. if test "x${SPANDSP_DIR}" != "x"; then
  40019. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  40020. fi
  40021. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  40022. if test "xspandsp.h" = "x" ; then # no header, assume found
  40023. SPANDSP_HEADER_FOUND="1"
  40024. else # check for the header
  40025. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40026. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  40027. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40028. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40029. $as_echo_n "checking for spandsp.h... " >&6; }
  40030. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40031. $as_echo_n "(cached) " >&6
  40032. fi
  40033. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40034. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40035. else
  40036. # Is the header compilable?
  40037. { $as_echo "$as_me:$LINENO: checking spandsp.h usability" >&5
  40038. $as_echo_n "checking spandsp.h usability... " >&6; }
  40039. cat >conftest.$ac_ext <<_ACEOF
  40040. /* confdefs.h. */
  40041. _ACEOF
  40042. cat confdefs.h >>conftest.$ac_ext
  40043. cat >>conftest.$ac_ext <<_ACEOF
  40044. /* end confdefs.h. */
  40045. $ac_includes_default
  40046. #include <spandsp.h>
  40047. _ACEOF
  40048. rm -f conftest.$ac_objext
  40049. if { (ac_try="$ac_compile"
  40050. case "(($ac_try" in
  40051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40052. *) ac_try_echo=$ac_try;;
  40053. esac
  40054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40055. $as_echo "$ac_try_echo") >&5
  40056. (eval "$ac_compile") 2>conftest.er1
  40057. ac_status=$?
  40058. grep -v '^ *+' conftest.er1 >conftest.err
  40059. rm -f conftest.er1
  40060. cat conftest.err >&5
  40061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40062. (exit $ac_status); } && {
  40063. test -z "$ac_c_werror_flag" ||
  40064. test ! -s conftest.err
  40065. } && test -s conftest.$ac_objext; then
  40066. ac_header_compiler=yes
  40067. else
  40068. $as_echo "$as_me: failed program was:" >&5
  40069. sed 's/^/| /' conftest.$ac_ext >&5
  40070. ac_header_compiler=no
  40071. fi
  40072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40073. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40074. $as_echo "$ac_header_compiler" >&6; }
  40075. # Is the header present?
  40076. { $as_echo "$as_me:$LINENO: checking spandsp.h presence" >&5
  40077. $as_echo_n "checking spandsp.h presence... " >&6; }
  40078. cat >conftest.$ac_ext <<_ACEOF
  40079. /* confdefs.h. */
  40080. _ACEOF
  40081. cat confdefs.h >>conftest.$ac_ext
  40082. cat >>conftest.$ac_ext <<_ACEOF
  40083. /* end confdefs.h. */
  40084. #include <spandsp.h>
  40085. _ACEOF
  40086. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40087. case "(($ac_try" in
  40088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40089. *) ac_try_echo=$ac_try;;
  40090. esac
  40091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40092. $as_echo "$ac_try_echo") >&5
  40093. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40094. ac_status=$?
  40095. grep -v '^ *+' conftest.er1 >conftest.err
  40096. rm -f conftest.er1
  40097. cat conftest.err >&5
  40098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40099. (exit $ac_status); } >/dev/null && {
  40100. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40101. test ! -s conftest.err
  40102. }; then
  40103. ac_header_preproc=yes
  40104. else
  40105. $as_echo "$as_me: failed program was:" >&5
  40106. sed 's/^/| /' conftest.$ac_ext >&5
  40107. ac_header_preproc=no
  40108. fi
  40109. rm -f conftest.err conftest.$ac_ext
  40110. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40111. $as_echo "$ac_header_preproc" >&6; }
  40112. # So? What about this header?
  40113. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40114. yes:no: )
  40115. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  40116. $as_echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40117. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
  40118. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
  40119. ac_header_preproc=yes
  40120. ;;
  40121. no:yes:* )
  40122. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
  40123. $as_echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
  40124. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
  40125. $as_echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
  40126. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
  40127. $as_echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
  40128. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
  40129. $as_echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  40130. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
  40131. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
  40132. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
  40133. $as_echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
  40134. ( cat <<\_ASBOX
  40135. ## ------------------------------------------ ##
  40136. ## Report this to https://issues.asterisk.org ##
  40137. ## ------------------------------------------ ##
  40138. _ASBOX
  40139. ) | sed "s/^/$as_me: WARNING: /" >&2
  40140. ;;
  40141. esac
  40142. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40143. $as_echo_n "checking for spandsp.h... " >&6; }
  40144. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40145. $as_echo_n "(cached) " >&6
  40146. else
  40147. ac_cv_header_spandsp_h=$ac_header_preproc
  40148. fi
  40149. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40150. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40151. fi
  40152. if test "x$ac_cv_header_spandsp_h" = x""yes; then
  40153. SPANDSP_HEADER_FOUND=1
  40154. else
  40155. SPANDSP_HEADER_FOUND=0
  40156. fi
  40157. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  40158. fi
  40159. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  40160. SPANDSP_LIB=""
  40161. SPANDSP_INCLUDE=""
  40162. else
  40163. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  40164. SPANDSP_LIB=""
  40165. fi
  40166. PBX_SPANDSP=1
  40167. cat >>confdefs.h <<_ACEOF
  40168. #define HAVE_SPANDSP 1
  40169. _ACEOF
  40170. fi
  40171. fi
  40172. fi
  40173. fi
  40174. if test "x${PBX_SPANDSP}" = "x1" ; then
  40175. # We also need t38_terminal_init()
  40176. PBX_SPANDSP=0
  40177. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  40178. pbxlibdir=""
  40179. # if --with-SPANDSP=DIR has been specified, use it.
  40180. if test "x${SPANDSP_DIR}" != "x"; then
  40181. if test -d ${SPANDSP_DIR}/lib; then
  40182. pbxlibdir="-L${SPANDSP_DIR}/lib"
  40183. else
  40184. pbxlibdir="-L${SPANDSP_DIR}"
  40185. fi
  40186. fi
  40187. pbxfuncname="t38_terminal_init"
  40188. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  40189. AST_SPANDSP_FOUND=yes
  40190. else
  40191. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  40192. CFLAGS="${CFLAGS} "
  40193. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  40194. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
  40195. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  40196. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  40197. $as_echo_n "(cached) " >&6
  40198. else
  40199. ac_check_lib_save_LIBS=$LIBS
  40200. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  40201. cat >conftest.$ac_ext <<_ACEOF
  40202. /* confdefs.h. */
  40203. _ACEOF
  40204. cat confdefs.h >>conftest.$ac_ext
  40205. cat >>conftest.$ac_ext <<_ACEOF
  40206. /* end confdefs.h. */
  40207. /* Override any GCC internal prototype to avoid an error.
  40208. Use char because int might match the return type of a GCC
  40209. builtin and then its argument prototype would still apply. */
  40210. #ifdef __cplusplus
  40211. extern "C"
  40212. #endif
  40213. char ${pbxfuncname} ();
  40214. int
  40215. main ()
  40216. {
  40217. return ${pbxfuncname} ();
  40218. ;
  40219. return 0;
  40220. }
  40221. _ACEOF
  40222. rm -f conftest.$ac_objext conftest$ac_exeext
  40223. if { (ac_try="$ac_link"
  40224. case "(($ac_try" in
  40225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40226. *) ac_try_echo=$ac_try;;
  40227. esac
  40228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40229. $as_echo "$ac_try_echo") >&5
  40230. (eval "$ac_link") 2>conftest.er1
  40231. ac_status=$?
  40232. grep -v '^ *+' conftest.er1 >conftest.err
  40233. rm -f conftest.er1
  40234. cat conftest.err >&5
  40235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40236. (exit $ac_status); } && {
  40237. test -z "$ac_c_werror_flag" ||
  40238. test ! -s conftest.err
  40239. } && test -s conftest$ac_exeext && {
  40240. test "$cross_compiling" = yes ||
  40241. $as_test_x conftest$ac_exeext
  40242. }; then
  40243. eval "$as_ac_Lib=yes"
  40244. else
  40245. $as_echo "$as_me: failed program was:" >&5
  40246. sed 's/^/| /' conftest.$ac_ext >&5
  40247. eval "$as_ac_Lib=no"
  40248. fi
  40249. rm -rf conftest.dSYM
  40250. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40251. conftest$ac_exeext conftest.$ac_ext
  40252. LIBS=$ac_check_lib_save_LIBS
  40253. fi
  40254. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40255. $as_echo "$as_val"'`
  40256. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40257. $as_echo "$ac_res" >&6; }
  40258. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40259. $as_echo "$as_val"'`
  40260. if test "x$as_val" = x""yes; then
  40261. AST_SPANDSP_FOUND=yes
  40262. else
  40263. AST_SPANDSP_FOUND=no
  40264. fi
  40265. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40266. fi
  40267. # now check for the header.
  40268. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  40269. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  40270. # if --with-SPANDSP=DIR has been specified, use it.
  40271. if test "x${SPANDSP_DIR}" != "x"; then
  40272. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  40273. fi
  40274. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  40275. if test "xspandsp.h" = "x" ; then # no header, assume found
  40276. SPANDSP_HEADER_FOUND="1"
  40277. else # check for the header
  40278. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40279. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  40280. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40281. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40282. $as_echo_n "checking for spandsp.h... " >&6; }
  40283. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40284. $as_echo_n "(cached) " >&6
  40285. fi
  40286. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40287. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40288. else
  40289. # Is the header compilable?
  40290. { $as_echo "$as_me:$LINENO: checking spandsp.h usability" >&5
  40291. $as_echo_n "checking spandsp.h usability... " >&6; }
  40292. cat >conftest.$ac_ext <<_ACEOF
  40293. /* confdefs.h. */
  40294. _ACEOF
  40295. cat confdefs.h >>conftest.$ac_ext
  40296. cat >>conftest.$ac_ext <<_ACEOF
  40297. /* end confdefs.h. */
  40298. $ac_includes_default
  40299. #include <spandsp.h>
  40300. _ACEOF
  40301. rm -f conftest.$ac_objext
  40302. if { (ac_try="$ac_compile"
  40303. case "(($ac_try" in
  40304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40305. *) ac_try_echo=$ac_try;;
  40306. esac
  40307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40308. $as_echo "$ac_try_echo") >&5
  40309. (eval "$ac_compile") 2>conftest.er1
  40310. ac_status=$?
  40311. grep -v '^ *+' conftest.er1 >conftest.err
  40312. rm -f conftest.er1
  40313. cat conftest.err >&5
  40314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40315. (exit $ac_status); } && {
  40316. test -z "$ac_c_werror_flag" ||
  40317. test ! -s conftest.err
  40318. } && test -s conftest.$ac_objext; then
  40319. ac_header_compiler=yes
  40320. else
  40321. $as_echo "$as_me: failed program was:" >&5
  40322. sed 's/^/| /' conftest.$ac_ext >&5
  40323. ac_header_compiler=no
  40324. fi
  40325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40326. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40327. $as_echo "$ac_header_compiler" >&6; }
  40328. # Is the header present?
  40329. { $as_echo "$as_me:$LINENO: checking spandsp.h presence" >&5
  40330. $as_echo_n "checking spandsp.h presence... " >&6; }
  40331. cat >conftest.$ac_ext <<_ACEOF
  40332. /* confdefs.h. */
  40333. _ACEOF
  40334. cat confdefs.h >>conftest.$ac_ext
  40335. cat >>conftest.$ac_ext <<_ACEOF
  40336. /* end confdefs.h. */
  40337. #include <spandsp.h>
  40338. _ACEOF
  40339. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40340. case "(($ac_try" in
  40341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40342. *) ac_try_echo=$ac_try;;
  40343. esac
  40344. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40345. $as_echo "$ac_try_echo") >&5
  40346. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40347. ac_status=$?
  40348. grep -v '^ *+' conftest.er1 >conftest.err
  40349. rm -f conftest.er1
  40350. cat conftest.err >&5
  40351. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40352. (exit $ac_status); } >/dev/null && {
  40353. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40354. test ! -s conftest.err
  40355. }; then
  40356. ac_header_preproc=yes
  40357. else
  40358. $as_echo "$as_me: failed program was:" >&5
  40359. sed 's/^/| /' conftest.$ac_ext >&5
  40360. ac_header_preproc=no
  40361. fi
  40362. rm -f conftest.err conftest.$ac_ext
  40363. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40364. $as_echo "$ac_header_preproc" >&6; }
  40365. # So? What about this header?
  40366. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40367. yes:no: )
  40368. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  40369. $as_echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40370. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
  40371. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
  40372. ac_header_preproc=yes
  40373. ;;
  40374. no:yes:* )
  40375. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
  40376. $as_echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
  40377. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
  40378. $as_echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
  40379. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
  40380. $as_echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
  40381. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
  40382. $as_echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  40383. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
  40384. $as_echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
  40385. { $as_echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
  40386. $as_echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
  40387. ( cat <<\_ASBOX
  40388. ## ------------------------------------------ ##
  40389. ## Report this to https://issues.asterisk.org ##
  40390. ## ------------------------------------------ ##
  40391. _ASBOX
  40392. ) | sed "s/^/$as_me: WARNING: /" >&2
  40393. ;;
  40394. esac
  40395. { $as_echo "$as_me:$LINENO: checking for spandsp.h" >&5
  40396. $as_echo_n "checking for spandsp.h... " >&6; }
  40397. if test "${ac_cv_header_spandsp_h+set}" = set; then
  40398. $as_echo_n "(cached) " >&6
  40399. else
  40400. ac_cv_header_spandsp_h=$ac_header_preproc
  40401. fi
  40402. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
  40403. $as_echo "$ac_cv_header_spandsp_h" >&6; }
  40404. fi
  40405. if test "x$ac_cv_header_spandsp_h" = x""yes; then
  40406. SPANDSP_HEADER_FOUND=1
  40407. else
  40408. SPANDSP_HEADER_FOUND=0
  40409. fi
  40410. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  40411. fi
  40412. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  40413. SPANDSP_LIB=""
  40414. SPANDSP_INCLUDE=""
  40415. else
  40416. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  40417. SPANDSP_LIB=""
  40418. fi
  40419. PBX_SPANDSP=1
  40420. cat >>confdefs.h <<_ACEOF
  40421. #define HAVE_SPANDSP 1
  40422. _ACEOF
  40423. fi
  40424. fi
  40425. fi
  40426. fi
  40427. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  40428. pbxlibdir=""
  40429. # if --with-SS7=DIR has been specified, use it.
  40430. if test "x${SS7_DIR}" != "x"; then
  40431. if test -d ${SS7_DIR}/lib; then
  40432. pbxlibdir="-L${SS7_DIR}/lib"
  40433. else
  40434. pbxlibdir="-L${SS7_DIR}"
  40435. fi
  40436. fi
  40437. pbxfuncname="ss7_pollflags"
  40438. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  40439. AST_SS7_FOUND=yes
  40440. else
  40441. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  40442. CFLAGS="${CFLAGS} "
  40443. as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
  40444. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
  40445. $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
  40446. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  40447. $as_echo_n "(cached) " >&6
  40448. else
  40449. ac_check_lib_save_LIBS=$LIBS
  40450. LIBS="-lss7 ${pbxlibdir} $LIBS"
  40451. cat >conftest.$ac_ext <<_ACEOF
  40452. /* confdefs.h. */
  40453. _ACEOF
  40454. cat confdefs.h >>conftest.$ac_ext
  40455. cat >>conftest.$ac_ext <<_ACEOF
  40456. /* end confdefs.h. */
  40457. /* Override any GCC internal prototype to avoid an error.
  40458. Use char because int might match the return type of a GCC
  40459. builtin and then its argument prototype would still apply. */
  40460. #ifdef __cplusplus
  40461. extern "C"
  40462. #endif
  40463. char ${pbxfuncname} ();
  40464. int
  40465. main ()
  40466. {
  40467. return ${pbxfuncname} ();
  40468. ;
  40469. return 0;
  40470. }
  40471. _ACEOF
  40472. rm -f conftest.$ac_objext conftest$ac_exeext
  40473. if { (ac_try="$ac_link"
  40474. case "(($ac_try" in
  40475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40476. *) ac_try_echo=$ac_try;;
  40477. esac
  40478. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40479. $as_echo "$ac_try_echo") >&5
  40480. (eval "$ac_link") 2>conftest.er1
  40481. ac_status=$?
  40482. grep -v '^ *+' conftest.er1 >conftest.err
  40483. rm -f conftest.er1
  40484. cat conftest.err >&5
  40485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40486. (exit $ac_status); } && {
  40487. test -z "$ac_c_werror_flag" ||
  40488. test ! -s conftest.err
  40489. } && test -s conftest$ac_exeext && {
  40490. test "$cross_compiling" = yes ||
  40491. $as_test_x conftest$ac_exeext
  40492. }; then
  40493. eval "$as_ac_Lib=yes"
  40494. else
  40495. $as_echo "$as_me: failed program was:" >&5
  40496. sed 's/^/| /' conftest.$ac_ext >&5
  40497. eval "$as_ac_Lib=no"
  40498. fi
  40499. rm -rf conftest.dSYM
  40500. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40501. conftest$ac_exeext conftest.$ac_ext
  40502. LIBS=$ac_check_lib_save_LIBS
  40503. fi
  40504. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40505. $as_echo "$as_val"'`
  40506. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40507. $as_echo "$ac_res" >&6; }
  40508. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40509. $as_echo "$as_val"'`
  40510. if test "x$as_val" = x""yes; then
  40511. AST_SS7_FOUND=yes
  40512. else
  40513. AST_SS7_FOUND=no
  40514. fi
  40515. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40516. fi
  40517. # now check for the header.
  40518. if test "${AST_SS7_FOUND}" = "yes"; then
  40519. SS7_LIB="${pbxlibdir} -lss7 "
  40520. # if --with-SS7=DIR has been specified, use it.
  40521. if test "x${SS7_DIR}" != "x"; then
  40522. SS7_INCLUDE="-I${SS7_DIR}/include"
  40523. fi
  40524. SS7_INCLUDE="${SS7_INCLUDE} "
  40525. if test "xlibss7.h" = "x" ; then # no header, assume found
  40526. SS7_HEADER_FOUND="1"
  40527. else # check for the header
  40528. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40529. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  40530. if test "${ac_cv_header_libss7_h+set}" = set; then
  40531. { $as_echo "$as_me:$LINENO: checking for libss7.h" >&5
  40532. $as_echo_n "checking for libss7.h... " >&6; }
  40533. if test "${ac_cv_header_libss7_h+set}" = set; then
  40534. $as_echo_n "(cached) " >&6
  40535. fi
  40536. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
  40537. $as_echo "$ac_cv_header_libss7_h" >&6; }
  40538. else
  40539. # Is the header compilable?
  40540. { $as_echo "$as_me:$LINENO: checking libss7.h usability" >&5
  40541. $as_echo_n "checking libss7.h usability... " >&6; }
  40542. cat >conftest.$ac_ext <<_ACEOF
  40543. /* confdefs.h. */
  40544. _ACEOF
  40545. cat confdefs.h >>conftest.$ac_ext
  40546. cat >>conftest.$ac_ext <<_ACEOF
  40547. /* end confdefs.h. */
  40548. $ac_includes_default
  40549. #include <libss7.h>
  40550. _ACEOF
  40551. rm -f conftest.$ac_objext
  40552. if { (ac_try="$ac_compile"
  40553. case "(($ac_try" in
  40554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40555. *) ac_try_echo=$ac_try;;
  40556. esac
  40557. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40558. $as_echo "$ac_try_echo") >&5
  40559. (eval "$ac_compile") 2>conftest.er1
  40560. ac_status=$?
  40561. grep -v '^ *+' conftest.er1 >conftest.err
  40562. rm -f conftest.er1
  40563. cat conftest.err >&5
  40564. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40565. (exit $ac_status); } && {
  40566. test -z "$ac_c_werror_flag" ||
  40567. test ! -s conftest.err
  40568. } && test -s conftest.$ac_objext; then
  40569. ac_header_compiler=yes
  40570. else
  40571. $as_echo "$as_me: failed program was:" >&5
  40572. sed 's/^/| /' conftest.$ac_ext >&5
  40573. ac_header_compiler=no
  40574. fi
  40575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40576. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40577. $as_echo "$ac_header_compiler" >&6; }
  40578. # Is the header present?
  40579. { $as_echo "$as_me:$LINENO: checking libss7.h presence" >&5
  40580. $as_echo_n "checking libss7.h presence... " >&6; }
  40581. cat >conftest.$ac_ext <<_ACEOF
  40582. /* confdefs.h. */
  40583. _ACEOF
  40584. cat confdefs.h >>conftest.$ac_ext
  40585. cat >>conftest.$ac_ext <<_ACEOF
  40586. /* end confdefs.h. */
  40587. #include <libss7.h>
  40588. _ACEOF
  40589. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40590. case "(($ac_try" in
  40591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40592. *) ac_try_echo=$ac_try;;
  40593. esac
  40594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40595. $as_echo "$ac_try_echo") >&5
  40596. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40597. ac_status=$?
  40598. grep -v '^ *+' conftest.er1 >conftest.err
  40599. rm -f conftest.er1
  40600. cat conftest.err >&5
  40601. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40602. (exit $ac_status); } >/dev/null && {
  40603. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40604. test ! -s conftest.err
  40605. }; then
  40606. ac_header_preproc=yes
  40607. else
  40608. $as_echo "$as_me: failed program was:" >&5
  40609. sed 's/^/| /' conftest.$ac_ext >&5
  40610. ac_header_preproc=no
  40611. fi
  40612. rm -f conftest.err conftest.$ac_ext
  40613. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40614. $as_echo "$ac_header_preproc" >&6; }
  40615. # So? What about this header?
  40616. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40617. yes:no: )
  40618. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
  40619. $as_echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40620. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
  40621. $as_echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
  40622. ac_header_preproc=yes
  40623. ;;
  40624. no:yes:* )
  40625. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
  40626. $as_echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
  40627. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
  40628. $as_echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
  40629. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
  40630. $as_echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
  40631. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
  40632. $as_echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
  40633. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
  40634. $as_echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
  40635. { $as_echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
  40636. $as_echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
  40637. ( cat <<\_ASBOX
  40638. ## ------------------------------------------ ##
  40639. ## Report this to https://issues.asterisk.org ##
  40640. ## ------------------------------------------ ##
  40641. _ASBOX
  40642. ) | sed "s/^/$as_me: WARNING: /" >&2
  40643. ;;
  40644. esac
  40645. { $as_echo "$as_me:$LINENO: checking for libss7.h" >&5
  40646. $as_echo_n "checking for libss7.h... " >&6; }
  40647. if test "${ac_cv_header_libss7_h+set}" = set; then
  40648. $as_echo_n "(cached) " >&6
  40649. else
  40650. ac_cv_header_libss7_h=$ac_header_preproc
  40651. fi
  40652. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
  40653. $as_echo "$ac_cv_header_libss7_h" >&6; }
  40654. fi
  40655. if test "x$ac_cv_header_libss7_h" = x""yes; then
  40656. SS7_HEADER_FOUND=1
  40657. else
  40658. SS7_HEADER_FOUND=0
  40659. fi
  40660. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  40661. fi
  40662. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  40663. SS7_LIB=""
  40664. SS7_INCLUDE=""
  40665. else
  40666. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  40667. SS7_LIB=""
  40668. fi
  40669. PBX_SS7=1
  40670. cat >>confdefs.h <<_ACEOF
  40671. #define HAVE_SS7 1
  40672. _ACEOF
  40673. fi
  40674. fi
  40675. fi
  40676. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  40677. pbxlibdir=""
  40678. # if --with-OPENR2=DIR has been specified, use it.
  40679. if test "x${OPENR2_DIR}" != "x"; then
  40680. if test -d ${OPENR2_DIR}/lib; then
  40681. pbxlibdir="-L${OPENR2_DIR}/lib"
  40682. else
  40683. pbxlibdir="-L${OPENR2_DIR}"
  40684. fi
  40685. fi
  40686. pbxfuncname="openr2_chan_new"
  40687. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  40688. AST_OPENR2_FOUND=yes
  40689. else
  40690. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  40691. CFLAGS="${CFLAGS} "
  40692. as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
  40693. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lopenr2" >&5
  40694. $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
  40695. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  40696. $as_echo_n "(cached) " >&6
  40697. else
  40698. ac_check_lib_save_LIBS=$LIBS
  40699. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  40700. cat >conftest.$ac_ext <<_ACEOF
  40701. /* confdefs.h. */
  40702. _ACEOF
  40703. cat confdefs.h >>conftest.$ac_ext
  40704. cat >>conftest.$ac_ext <<_ACEOF
  40705. /* end confdefs.h. */
  40706. /* Override any GCC internal prototype to avoid an error.
  40707. Use char because int might match the return type of a GCC
  40708. builtin and then its argument prototype would still apply. */
  40709. #ifdef __cplusplus
  40710. extern "C"
  40711. #endif
  40712. char ${pbxfuncname} ();
  40713. int
  40714. main ()
  40715. {
  40716. return ${pbxfuncname} ();
  40717. ;
  40718. return 0;
  40719. }
  40720. _ACEOF
  40721. rm -f conftest.$ac_objext conftest$ac_exeext
  40722. if { (ac_try="$ac_link"
  40723. case "(($ac_try" in
  40724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40725. *) ac_try_echo=$ac_try;;
  40726. esac
  40727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40728. $as_echo "$ac_try_echo") >&5
  40729. (eval "$ac_link") 2>conftest.er1
  40730. ac_status=$?
  40731. grep -v '^ *+' conftest.er1 >conftest.err
  40732. rm -f conftest.er1
  40733. cat conftest.err >&5
  40734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40735. (exit $ac_status); } && {
  40736. test -z "$ac_c_werror_flag" ||
  40737. test ! -s conftest.err
  40738. } && test -s conftest$ac_exeext && {
  40739. test "$cross_compiling" = yes ||
  40740. $as_test_x conftest$ac_exeext
  40741. }; then
  40742. eval "$as_ac_Lib=yes"
  40743. else
  40744. $as_echo "$as_me: failed program was:" >&5
  40745. sed 's/^/| /' conftest.$ac_ext >&5
  40746. eval "$as_ac_Lib=no"
  40747. fi
  40748. rm -rf conftest.dSYM
  40749. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40750. conftest$ac_exeext conftest.$ac_ext
  40751. LIBS=$ac_check_lib_save_LIBS
  40752. fi
  40753. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  40754. $as_echo "$as_val"'`
  40755. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40756. $as_echo "$ac_res" >&6; }
  40757. as_val=`eval 'as_val=${'$as_ac_Lib'}
  40758. $as_echo "$as_val"'`
  40759. if test "x$as_val" = x""yes; then
  40760. AST_OPENR2_FOUND=yes
  40761. else
  40762. AST_OPENR2_FOUND=no
  40763. fi
  40764. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  40765. fi
  40766. # now check for the header.
  40767. if test "${AST_OPENR2_FOUND}" = "yes"; then
  40768. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  40769. # if --with-OPENR2=DIR has been specified, use it.
  40770. if test "x${OPENR2_DIR}" != "x"; then
  40771. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  40772. fi
  40773. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  40774. if test "xopenr2.h" = "x" ; then # no header, assume found
  40775. OPENR2_HEADER_FOUND="1"
  40776. else # check for the header
  40777. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  40778. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  40779. if test "${ac_cv_header_openr2_h+set}" = set; then
  40780. { $as_echo "$as_me:$LINENO: checking for openr2.h" >&5
  40781. $as_echo_n "checking for openr2.h... " >&6; }
  40782. if test "${ac_cv_header_openr2_h+set}" = set; then
  40783. $as_echo_n "(cached) " >&6
  40784. fi
  40785. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openr2_h" >&5
  40786. $as_echo "$ac_cv_header_openr2_h" >&6; }
  40787. else
  40788. # Is the header compilable?
  40789. { $as_echo "$as_me:$LINENO: checking openr2.h usability" >&5
  40790. $as_echo_n "checking openr2.h usability... " >&6; }
  40791. cat >conftest.$ac_ext <<_ACEOF
  40792. /* confdefs.h. */
  40793. _ACEOF
  40794. cat confdefs.h >>conftest.$ac_ext
  40795. cat >>conftest.$ac_ext <<_ACEOF
  40796. /* end confdefs.h. */
  40797. $ac_includes_default
  40798. #include <openr2.h>
  40799. _ACEOF
  40800. rm -f conftest.$ac_objext
  40801. if { (ac_try="$ac_compile"
  40802. case "(($ac_try" in
  40803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40804. *) ac_try_echo=$ac_try;;
  40805. esac
  40806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40807. $as_echo "$ac_try_echo") >&5
  40808. (eval "$ac_compile") 2>conftest.er1
  40809. ac_status=$?
  40810. grep -v '^ *+' conftest.er1 >conftest.err
  40811. rm -f conftest.er1
  40812. cat conftest.err >&5
  40813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40814. (exit $ac_status); } && {
  40815. test -z "$ac_c_werror_flag" ||
  40816. test ! -s conftest.err
  40817. } && test -s conftest.$ac_objext; then
  40818. ac_header_compiler=yes
  40819. else
  40820. $as_echo "$as_me: failed program was:" >&5
  40821. sed 's/^/| /' conftest.$ac_ext >&5
  40822. ac_header_compiler=no
  40823. fi
  40824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40825. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40826. $as_echo "$ac_header_compiler" >&6; }
  40827. # Is the header present?
  40828. { $as_echo "$as_me:$LINENO: checking openr2.h presence" >&5
  40829. $as_echo_n "checking openr2.h presence... " >&6; }
  40830. cat >conftest.$ac_ext <<_ACEOF
  40831. /* confdefs.h. */
  40832. _ACEOF
  40833. cat confdefs.h >>conftest.$ac_ext
  40834. cat >>conftest.$ac_ext <<_ACEOF
  40835. /* end confdefs.h. */
  40836. #include <openr2.h>
  40837. _ACEOF
  40838. if { (ac_try="$ac_cpp conftest.$ac_ext"
  40839. case "(($ac_try" in
  40840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40841. *) ac_try_echo=$ac_try;;
  40842. esac
  40843. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40844. $as_echo "$ac_try_echo") >&5
  40845. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  40846. ac_status=$?
  40847. grep -v '^ *+' conftest.er1 >conftest.err
  40848. rm -f conftest.er1
  40849. cat conftest.err >&5
  40850. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40851. (exit $ac_status); } >/dev/null && {
  40852. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  40853. test ! -s conftest.err
  40854. }; then
  40855. ac_header_preproc=yes
  40856. else
  40857. $as_echo "$as_me: failed program was:" >&5
  40858. sed 's/^/| /' conftest.$ac_ext >&5
  40859. ac_header_preproc=no
  40860. fi
  40861. rm -f conftest.err conftest.$ac_ext
  40862. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  40863. $as_echo "$ac_header_preproc" >&6; }
  40864. # So? What about this header?
  40865. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  40866. yes:no: )
  40867. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: accepted by the compiler, rejected by the preprocessor!" >&5
  40868. $as_echo "$as_me: WARNING: openr2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  40869. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: proceeding with the compiler's result" >&5
  40870. $as_echo "$as_me: WARNING: openr2.h: proceeding with the compiler's result" >&2;}
  40871. ac_header_preproc=yes
  40872. ;;
  40873. no:yes:* )
  40874. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: present but cannot be compiled" >&5
  40875. $as_echo "$as_me: WARNING: openr2.h: present but cannot be compiled" >&2;}
  40876. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: check for missing prerequisite headers?" >&5
  40877. $as_echo "$as_me: WARNING: openr2.h: check for missing prerequisite headers?" >&2;}
  40878. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: see the Autoconf documentation" >&5
  40879. $as_echo "$as_me: WARNING: openr2.h: see the Autoconf documentation" >&2;}
  40880. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: section \"Present But Cannot Be Compiled\"" >&5
  40881. $as_echo "$as_me: WARNING: openr2.h: section \"Present But Cannot Be Compiled\"" >&2;}
  40882. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: proceeding with the preprocessor's result" >&5
  40883. $as_echo "$as_me: WARNING: openr2.h: proceeding with the preprocessor's result" >&2;}
  40884. { $as_echo "$as_me:$LINENO: WARNING: openr2.h: in the future, the compiler will take precedence" >&5
  40885. $as_echo "$as_me: WARNING: openr2.h: in the future, the compiler will take precedence" >&2;}
  40886. ( cat <<\_ASBOX
  40887. ## ------------------------------------------ ##
  40888. ## Report this to https://issues.asterisk.org ##
  40889. ## ------------------------------------------ ##
  40890. _ASBOX
  40891. ) | sed "s/^/$as_me: WARNING: /" >&2
  40892. ;;
  40893. esac
  40894. { $as_echo "$as_me:$LINENO: checking for openr2.h" >&5
  40895. $as_echo_n "checking for openr2.h... " >&6; }
  40896. if test "${ac_cv_header_openr2_h+set}" = set; then
  40897. $as_echo_n "(cached) " >&6
  40898. else
  40899. ac_cv_header_openr2_h=$ac_header_preproc
  40900. fi
  40901. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openr2_h" >&5
  40902. $as_echo "$ac_cv_header_openr2_h" >&6; }
  40903. fi
  40904. if test "x$ac_cv_header_openr2_h" = x""yes; then
  40905. OPENR2_HEADER_FOUND=1
  40906. else
  40907. OPENR2_HEADER_FOUND=0
  40908. fi
  40909. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  40910. fi
  40911. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  40912. OPENR2_LIB=""
  40913. OPENR2_INCLUDE=""
  40914. else
  40915. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  40916. OPENR2_LIB=""
  40917. fi
  40918. PBX_OPENR2=1
  40919. cat >>confdefs.h <<_ACEOF
  40920. #define HAVE_OPENR2 1
  40921. _ACEOF
  40922. fi
  40923. fi
  40924. fi
  40925. if test "${USE_PWLIB}" != "no"; then
  40926. if test -n "${PWLIB_DIR}"; then
  40927. PWLIBDIR="${PWLIB_DIR}"
  40928. fi
  40929. PWLIB_INCDIR=
  40930. PWLIB_LIBDIR=
  40931. ac_ext=cpp
  40932. ac_cpp='$CXXCPP $CPPFLAGS'
  40933. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40934. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40935. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40936. if test "${PWLIBDIR:-unset}" != "unset" ; then
  40937. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  40938. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40939. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
  40940. $as_echo_n "checking for ${PWLIBDIR}/version.h... " >&6; }
  40941. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  40942. $as_echo_n "(cached) " >&6
  40943. fi
  40944. ac_res=`eval 'as_val=${'$as_ac_Header'}
  40945. $as_echo "$as_val"'`
  40946. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  40947. $as_echo "$ac_res" >&6; }
  40948. else
  40949. # Is the header compilable?
  40950. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
  40951. $as_echo_n "checking ${PWLIBDIR}/version.h usability... " >&6; }
  40952. cat >conftest.$ac_ext <<_ACEOF
  40953. /* confdefs.h. */
  40954. _ACEOF
  40955. cat confdefs.h >>conftest.$ac_ext
  40956. cat >>conftest.$ac_ext <<_ACEOF
  40957. /* end confdefs.h. */
  40958. $ac_includes_default
  40959. #include <${PWLIBDIR}/version.h>
  40960. _ACEOF
  40961. rm -f conftest.$ac_objext
  40962. if { (ac_try="$ac_compile"
  40963. case "(($ac_try" in
  40964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40965. *) ac_try_echo=$ac_try;;
  40966. esac
  40967. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  40968. $as_echo "$ac_try_echo") >&5
  40969. (eval "$ac_compile") 2>conftest.er1
  40970. ac_status=$?
  40971. grep -v '^ *+' conftest.er1 >conftest.err
  40972. rm -f conftest.er1
  40973. cat conftest.err >&5
  40974. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40975. (exit $ac_status); } && {
  40976. test -z "$ac_cxx_werror_flag" ||
  40977. test ! -s conftest.err
  40978. } && test -s conftest.$ac_objext; then
  40979. ac_header_compiler=yes
  40980. else
  40981. $as_echo "$as_me: failed program was:" >&5
  40982. sed 's/^/| /' conftest.$ac_ext >&5
  40983. ac_header_compiler=no
  40984. fi
  40985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40986. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  40987. $as_echo "$ac_header_compiler" >&6; }
  40988. # Is the header present?
  40989. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
  40990. $as_echo_n "checking ${PWLIBDIR}/version.h presence... " >&6; }
  40991. cat >conftest.$ac_ext <<_ACEOF
  40992. /* confdefs.h. */
  40993. _ACEOF
  40994. cat confdefs.h >>conftest.$ac_ext
  40995. cat >>conftest.$ac_ext <<_ACEOF
  40996. /* end confdefs.h. */
  40997. #include <${PWLIBDIR}/version.h>
  40998. _ACEOF
  40999. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41000. case "(($ac_try" in
  41001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41002. *) ac_try_echo=$ac_try;;
  41003. esac
  41004. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41005. $as_echo "$ac_try_echo") >&5
  41006. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41007. ac_status=$?
  41008. grep -v '^ *+' conftest.er1 >conftest.err
  41009. rm -f conftest.er1
  41010. cat conftest.err >&5
  41011. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41012. (exit $ac_status); } >/dev/null && {
  41013. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41014. test ! -s conftest.err
  41015. }; then
  41016. ac_header_preproc=yes
  41017. else
  41018. $as_echo "$as_me: failed program was:" >&5
  41019. sed 's/^/| /' conftest.$ac_ext >&5
  41020. ac_header_preproc=no
  41021. fi
  41022. rm -f conftest.err conftest.$ac_ext
  41023. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41024. $as_echo "$ac_header_preproc" >&6; }
  41025. # So? What about this header?
  41026. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41027. yes:no: )
  41028. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41029. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41030. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
  41031. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
  41032. ac_header_preproc=yes
  41033. ;;
  41034. no:yes:* )
  41035. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
  41036. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
  41037. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
  41038. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
  41039. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
  41040. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
  41041. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
  41042. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41043. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
  41044. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
  41045. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
  41046. $as_echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
  41047. ( cat <<\_ASBOX
  41048. ## ------------------------------------------ ##
  41049. ## Report this to https://issues.asterisk.org ##
  41050. ## ------------------------------------------ ##
  41051. _ASBOX
  41052. ) | sed "s/^/$as_me: WARNING: /" >&2
  41053. ;;
  41054. esac
  41055. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
  41056. $as_echo_n "checking for ${PWLIBDIR}/version.h... " >&6; }
  41057. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41058. $as_echo_n "(cached) " >&6
  41059. else
  41060. eval "$as_ac_Header=\$ac_header_preproc"
  41061. fi
  41062. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41063. $as_echo "$as_val"'`
  41064. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41065. $as_echo "$ac_res" >&6; }
  41066. fi
  41067. as_val=`eval 'as_val=${'$as_ac_Header'}
  41068. $as_echo "$as_val"'`
  41069. if test "x$as_val" = x""yes; then
  41070. HAS_PWLIB=1
  41071. fi
  41072. fi
  41073. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  41074. if test "${OPENH323DIR:-unset}" != "unset"; then
  41075. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  41076. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41077. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
  41078. $as_echo_n "checking for ${OPENH323DIR}/../pwlib/version.h... " >&6; }
  41079. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41080. $as_echo_n "(cached) " >&6
  41081. fi
  41082. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41083. $as_echo "$as_val"'`
  41084. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41085. $as_echo "$ac_res" >&6; }
  41086. else
  41087. # Is the header compilable?
  41088. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
  41089. $as_echo_n "checking ${OPENH323DIR}/../pwlib/version.h usability... " >&6; }
  41090. cat >conftest.$ac_ext <<_ACEOF
  41091. /* confdefs.h. */
  41092. _ACEOF
  41093. cat confdefs.h >>conftest.$ac_ext
  41094. cat >>conftest.$ac_ext <<_ACEOF
  41095. /* end confdefs.h. */
  41096. $ac_includes_default
  41097. #include <${OPENH323DIR}/../pwlib/version.h>
  41098. _ACEOF
  41099. rm -f conftest.$ac_objext
  41100. if { (ac_try="$ac_compile"
  41101. case "(($ac_try" in
  41102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41103. *) ac_try_echo=$ac_try;;
  41104. esac
  41105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41106. $as_echo "$ac_try_echo") >&5
  41107. (eval "$ac_compile") 2>conftest.er1
  41108. ac_status=$?
  41109. grep -v '^ *+' conftest.er1 >conftest.err
  41110. rm -f conftest.er1
  41111. cat conftest.err >&5
  41112. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41113. (exit $ac_status); } && {
  41114. test -z "$ac_cxx_werror_flag" ||
  41115. test ! -s conftest.err
  41116. } && test -s conftest.$ac_objext; then
  41117. ac_header_compiler=yes
  41118. else
  41119. $as_echo "$as_me: failed program was:" >&5
  41120. sed 's/^/| /' conftest.$ac_ext >&5
  41121. ac_header_compiler=no
  41122. fi
  41123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41124. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41125. $as_echo "$ac_header_compiler" >&6; }
  41126. # Is the header present?
  41127. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
  41128. $as_echo_n "checking ${OPENH323DIR}/../pwlib/version.h presence... " >&6; }
  41129. cat >conftest.$ac_ext <<_ACEOF
  41130. /* confdefs.h. */
  41131. _ACEOF
  41132. cat confdefs.h >>conftest.$ac_ext
  41133. cat >>conftest.$ac_ext <<_ACEOF
  41134. /* end confdefs.h. */
  41135. #include <${OPENH323DIR}/../pwlib/version.h>
  41136. _ACEOF
  41137. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41138. case "(($ac_try" in
  41139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41140. *) ac_try_echo=$ac_try;;
  41141. esac
  41142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41143. $as_echo "$ac_try_echo") >&5
  41144. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41145. ac_status=$?
  41146. grep -v '^ *+' conftest.er1 >conftest.err
  41147. rm -f conftest.er1
  41148. cat conftest.err >&5
  41149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41150. (exit $ac_status); } >/dev/null && {
  41151. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41152. test ! -s conftest.err
  41153. }; then
  41154. ac_header_preproc=yes
  41155. else
  41156. $as_echo "$as_me: failed program was:" >&5
  41157. sed 's/^/| /' conftest.$ac_ext >&5
  41158. ac_header_preproc=no
  41159. fi
  41160. rm -f conftest.err conftest.$ac_ext
  41161. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41162. $as_echo "$ac_header_preproc" >&6; }
  41163. # So? What about this header?
  41164. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41165. yes:no: )
  41166. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41167. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41168. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
  41169. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
  41170. ac_header_preproc=yes
  41171. ;;
  41172. no:yes:* )
  41173. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
  41174. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
  41175. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
  41176. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
  41177. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
  41178. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
  41179. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
  41180. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41181. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
  41182. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
  41183. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
  41184. $as_echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
  41185. ( cat <<\_ASBOX
  41186. ## ------------------------------------------ ##
  41187. ## Report this to https://issues.asterisk.org ##
  41188. ## ------------------------------------------ ##
  41189. _ASBOX
  41190. ) | sed "s/^/$as_me: WARNING: /" >&2
  41191. ;;
  41192. esac
  41193. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
  41194. $as_echo_n "checking for ${OPENH323DIR}/../pwlib/version.h... " >&6; }
  41195. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41196. $as_echo_n "(cached) " >&6
  41197. else
  41198. eval "$as_ac_Header=\$ac_header_preproc"
  41199. fi
  41200. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41201. $as_echo "$as_val"'`
  41202. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41203. $as_echo "$ac_res" >&6; }
  41204. fi
  41205. as_val=`eval 'as_val=${'$as_ac_Header'}
  41206. $as_echo "$as_val"'`
  41207. if test "x$as_val" = x""yes; then
  41208. HAS_PWLIB=1
  41209. fi
  41210. fi
  41211. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41212. PWLIBDIR="${OPENH323DIR}/../pwlib"
  41213. else
  41214. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  41215. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41216. { $as_echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
  41217. $as_echo_n "checking for ${HOME}/pwlib/include/ptlib.h... " >&6; }
  41218. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41219. $as_echo_n "(cached) " >&6
  41220. fi
  41221. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41222. $as_echo "$as_val"'`
  41223. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41224. $as_echo "$ac_res" >&6; }
  41225. else
  41226. # Is the header compilable?
  41227. { $as_echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
  41228. $as_echo_n "checking ${HOME}/pwlib/include/ptlib.h usability... " >&6; }
  41229. cat >conftest.$ac_ext <<_ACEOF
  41230. /* confdefs.h. */
  41231. _ACEOF
  41232. cat confdefs.h >>conftest.$ac_ext
  41233. cat >>conftest.$ac_ext <<_ACEOF
  41234. /* end confdefs.h. */
  41235. $ac_includes_default
  41236. #include <${HOME}/pwlib/include/ptlib.h>
  41237. _ACEOF
  41238. rm -f conftest.$ac_objext
  41239. if { (ac_try="$ac_compile"
  41240. case "(($ac_try" in
  41241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41242. *) ac_try_echo=$ac_try;;
  41243. esac
  41244. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41245. $as_echo "$ac_try_echo") >&5
  41246. (eval "$ac_compile") 2>conftest.er1
  41247. ac_status=$?
  41248. grep -v '^ *+' conftest.er1 >conftest.err
  41249. rm -f conftest.er1
  41250. cat conftest.err >&5
  41251. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41252. (exit $ac_status); } && {
  41253. test -z "$ac_cxx_werror_flag" ||
  41254. test ! -s conftest.err
  41255. } && test -s conftest.$ac_objext; then
  41256. ac_header_compiler=yes
  41257. else
  41258. $as_echo "$as_me: failed program was:" >&5
  41259. sed 's/^/| /' conftest.$ac_ext >&5
  41260. ac_header_compiler=no
  41261. fi
  41262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41263. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41264. $as_echo "$ac_header_compiler" >&6; }
  41265. # Is the header present?
  41266. { $as_echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
  41267. $as_echo_n "checking ${HOME}/pwlib/include/ptlib.h presence... " >&6; }
  41268. cat >conftest.$ac_ext <<_ACEOF
  41269. /* confdefs.h. */
  41270. _ACEOF
  41271. cat confdefs.h >>conftest.$ac_ext
  41272. cat >>conftest.$ac_ext <<_ACEOF
  41273. /* end confdefs.h. */
  41274. #include <${HOME}/pwlib/include/ptlib.h>
  41275. _ACEOF
  41276. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41277. case "(($ac_try" in
  41278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41279. *) ac_try_echo=$ac_try;;
  41280. esac
  41281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41282. $as_echo "$ac_try_echo") >&5
  41283. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41284. ac_status=$?
  41285. grep -v '^ *+' conftest.er1 >conftest.err
  41286. rm -f conftest.er1
  41287. cat conftest.err >&5
  41288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41289. (exit $ac_status); } >/dev/null && {
  41290. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41291. test ! -s conftest.err
  41292. }; then
  41293. ac_header_preproc=yes
  41294. else
  41295. $as_echo "$as_me: failed program was:" >&5
  41296. sed 's/^/| /' conftest.$ac_ext >&5
  41297. ac_header_preproc=no
  41298. fi
  41299. rm -f conftest.err conftest.$ac_ext
  41300. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41301. $as_echo "$ac_header_preproc" >&6; }
  41302. # So? What about this header?
  41303. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41304. yes:no: )
  41305. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41306. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41307. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
  41308. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
  41309. ac_header_preproc=yes
  41310. ;;
  41311. no:yes:* )
  41312. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
  41313. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
  41314. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
  41315. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
  41316. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
  41317. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
  41318. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
  41319. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41320. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
  41321. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
  41322. { $as_echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
  41323. $as_echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
  41324. ( cat <<\_ASBOX
  41325. ## ------------------------------------------ ##
  41326. ## Report this to https://issues.asterisk.org ##
  41327. ## ------------------------------------------ ##
  41328. _ASBOX
  41329. ) | sed "s/^/$as_me: WARNING: /" >&2
  41330. ;;
  41331. esac
  41332. { $as_echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
  41333. $as_echo_n "checking for ${HOME}/pwlib/include/ptlib.h... " >&6; }
  41334. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41335. $as_echo_n "(cached) " >&6
  41336. else
  41337. eval "$as_ac_Header=\$ac_header_preproc"
  41338. fi
  41339. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41340. $as_echo "$as_val"'`
  41341. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41342. $as_echo "$ac_res" >&6; }
  41343. fi
  41344. as_val=`eval 'as_val=${'$as_ac_Header'}
  41345. $as_echo "$as_val"'`
  41346. if test "x$as_val" = x""yes; then
  41347. HAS_PWLIB=1
  41348. fi
  41349. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41350. PWLIBDIR="${HOME}/pwlib"
  41351. else
  41352. if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
  41353. { $as_echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
  41354. $as_echo_n "checking for /usr/local/include/ptlib.h... " >&6; }
  41355. if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
  41356. $as_echo_n "(cached) " >&6
  41357. fi
  41358. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
  41359. $as_echo "$ac_cv_header__usr_local_include_ptlib_h" >&6; }
  41360. else
  41361. # Is the header compilable?
  41362. { $as_echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
  41363. $as_echo_n "checking /usr/local/include/ptlib.h usability... " >&6; }
  41364. cat >conftest.$ac_ext <<_ACEOF
  41365. /* confdefs.h. */
  41366. _ACEOF
  41367. cat confdefs.h >>conftest.$ac_ext
  41368. cat >>conftest.$ac_ext <<_ACEOF
  41369. /* end confdefs.h. */
  41370. $ac_includes_default
  41371. #include </usr/local/include/ptlib.h>
  41372. _ACEOF
  41373. rm -f conftest.$ac_objext
  41374. if { (ac_try="$ac_compile"
  41375. case "(($ac_try" in
  41376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41377. *) ac_try_echo=$ac_try;;
  41378. esac
  41379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41380. $as_echo "$ac_try_echo") >&5
  41381. (eval "$ac_compile") 2>conftest.er1
  41382. ac_status=$?
  41383. grep -v '^ *+' conftest.er1 >conftest.err
  41384. rm -f conftest.er1
  41385. cat conftest.err >&5
  41386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41387. (exit $ac_status); } && {
  41388. test -z "$ac_cxx_werror_flag" ||
  41389. test ! -s conftest.err
  41390. } && test -s conftest.$ac_objext; then
  41391. ac_header_compiler=yes
  41392. else
  41393. $as_echo "$as_me: failed program was:" >&5
  41394. sed 's/^/| /' conftest.$ac_ext >&5
  41395. ac_header_compiler=no
  41396. fi
  41397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41398. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41399. $as_echo "$ac_header_compiler" >&6; }
  41400. # Is the header present?
  41401. { $as_echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
  41402. $as_echo_n "checking /usr/local/include/ptlib.h presence... " >&6; }
  41403. cat >conftest.$ac_ext <<_ACEOF
  41404. /* confdefs.h. */
  41405. _ACEOF
  41406. cat confdefs.h >>conftest.$ac_ext
  41407. cat >>conftest.$ac_ext <<_ACEOF
  41408. /* end confdefs.h. */
  41409. #include </usr/local/include/ptlib.h>
  41410. _ACEOF
  41411. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41412. case "(($ac_try" in
  41413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41414. *) ac_try_echo=$ac_try;;
  41415. esac
  41416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41417. $as_echo "$ac_try_echo") >&5
  41418. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41419. ac_status=$?
  41420. grep -v '^ *+' conftest.er1 >conftest.err
  41421. rm -f conftest.er1
  41422. cat conftest.err >&5
  41423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41424. (exit $ac_status); } >/dev/null && {
  41425. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41426. test ! -s conftest.err
  41427. }; then
  41428. ac_header_preproc=yes
  41429. else
  41430. $as_echo "$as_me: failed program was:" >&5
  41431. sed 's/^/| /' conftest.$ac_ext >&5
  41432. ac_header_preproc=no
  41433. fi
  41434. rm -f conftest.err conftest.$ac_ext
  41435. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41436. $as_echo "$ac_header_preproc" >&6; }
  41437. # So? What about this header?
  41438. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41439. yes:no: )
  41440. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41441. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41442. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
  41443. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
  41444. ac_header_preproc=yes
  41445. ;;
  41446. no:yes:* )
  41447. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
  41448. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
  41449. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
  41450. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
  41451. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
  41452. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
  41453. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
  41454. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41455. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
  41456. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
  41457. { $as_echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
  41458. $as_echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
  41459. ( cat <<\_ASBOX
  41460. ## ------------------------------------------ ##
  41461. ## Report this to https://issues.asterisk.org ##
  41462. ## ------------------------------------------ ##
  41463. _ASBOX
  41464. ) | sed "s/^/$as_me: WARNING: /" >&2
  41465. ;;
  41466. esac
  41467. { $as_echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
  41468. $as_echo_n "checking for /usr/local/include/ptlib.h... " >&6; }
  41469. if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
  41470. $as_echo_n "(cached) " >&6
  41471. else
  41472. ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
  41473. fi
  41474. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
  41475. $as_echo "$ac_cv_header__usr_local_include_ptlib_h" >&6; }
  41476. fi
  41477. if test "x$ac_cv_header__usr_local_include_ptlib_h" = x""yes; then
  41478. HAS_PWLIB=1
  41479. fi
  41480. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41481. # Extract the first word of "ptlib-config", so it can be a program name with args.
  41482. set dummy ptlib-config; ac_word=$2
  41483. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  41484. $as_echo_n "checking for $ac_word... " >&6; }
  41485. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
  41486. $as_echo_n "(cached) " >&6
  41487. else
  41488. case $PTLIB_CONFIG in
  41489. [\\/]* | ?:[\\/]*)
  41490. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  41491. ;;
  41492. *)
  41493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41494. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  41495. do
  41496. IFS=$as_save_IFS
  41497. test -z "$as_dir" && as_dir=.
  41498. for ac_exec_ext in '' $ac_executable_extensions; do
  41499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  41500. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  41501. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  41502. break 2
  41503. fi
  41504. done
  41505. done
  41506. IFS=$as_save_IFS
  41507. ;;
  41508. esac
  41509. fi
  41510. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  41511. if test -n "$PTLIB_CONFIG"; then
  41512. { $as_echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
  41513. $as_echo "$PTLIB_CONFIG" >&6; }
  41514. else
  41515. { $as_echo "$as_me:$LINENO: result: no" >&5
  41516. $as_echo "no" >&6; }
  41517. fi
  41518. PWLIB_INCDIR="/usr/local/include"
  41519. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  41520. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  41521. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  41522. fi
  41523. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  41524. if test "x$LIB64" != "x"; then
  41525. PWLIB_LIBDIR="/usr/local/lib64"
  41526. else
  41527. PWLIB_LIBDIR="/usr/local/lib"
  41528. fi
  41529. fi
  41530. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  41531. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  41532. else
  41533. if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
  41534. { $as_echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
  41535. $as_echo_n "checking for /usr/include/ptlib.h... " >&6; }
  41536. if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
  41537. $as_echo_n "(cached) " >&6
  41538. fi
  41539. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
  41540. $as_echo "$ac_cv_header__usr_include_ptlib_h" >&6; }
  41541. else
  41542. # Is the header compilable?
  41543. { $as_echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
  41544. $as_echo_n "checking /usr/include/ptlib.h usability... " >&6; }
  41545. cat >conftest.$ac_ext <<_ACEOF
  41546. /* confdefs.h. */
  41547. _ACEOF
  41548. cat confdefs.h >>conftest.$ac_ext
  41549. cat >>conftest.$ac_ext <<_ACEOF
  41550. /* end confdefs.h. */
  41551. $ac_includes_default
  41552. #include </usr/include/ptlib.h>
  41553. _ACEOF
  41554. rm -f conftest.$ac_objext
  41555. if { (ac_try="$ac_compile"
  41556. case "(($ac_try" in
  41557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41558. *) ac_try_echo=$ac_try;;
  41559. esac
  41560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41561. $as_echo "$ac_try_echo") >&5
  41562. (eval "$ac_compile") 2>conftest.er1
  41563. ac_status=$?
  41564. grep -v '^ *+' conftest.er1 >conftest.err
  41565. rm -f conftest.er1
  41566. cat conftest.err >&5
  41567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41568. (exit $ac_status); } && {
  41569. test -z "$ac_cxx_werror_flag" ||
  41570. test ! -s conftest.err
  41571. } && test -s conftest.$ac_objext; then
  41572. ac_header_compiler=yes
  41573. else
  41574. $as_echo "$as_me: failed program was:" >&5
  41575. sed 's/^/| /' conftest.$ac_ext >&5
  41576. ac_header_compiler=no
  41577. fi
  41578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41579. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41580. $as_echo "$ac_header_compiler" >&6; }
  41581. # Is the header present?
  41582. { $as_echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
  41583. $as_echo_n "checking /usr/include/ptlib.h presence... " >&6; }
  41584. cat >conftest.$ac_ext <<_ACEOF
  41585. /* confdefs.h. */
  41586. _ACEOF
  41587. cat confdefs.h >>conftest.$ac_ext
  41588. cat >>conftest.$ac_ext <<_ACEOF
  41589. /* end confdefs.h. */
  41590. #include </usr/include/ptlib.h>
  41591. _ACEOF
  41592. if { (ac_try="$ac_cpp conftest.$ac_ext"
  41593. case "(($ac_try" in
  41594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41595. *) ac_try_echo=$ac_try;;
  41596. esac
  41597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41598. $as_echo "$ac_try_echo") >&5
  41599. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  41600. ac_status=$?
  41601. grep -v '^ *+' conftest.er1 >conftest.err
  41602. rm -f conftest.er1
  41603. cat conftest.err >&5
  41604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41605. (exit $ac_status); } >/dev/null && {
  41606. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  41607. test ! -s conftest.err
  41608. }; then
  41609. ac_header_preproc=yes
  41610. else
  41611. $as_echo "$as_me: failed program was:" >&5
  41612. sed 's/^/| /' conftest.$ac_ext >&5
  41613. ac_header_preproc=no
  41614. fi
  41615. rm -f conftest.err conftest.$ac_ext
  41616. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41617. $as_echo "$ac_header_preproc" >&6; }
  41618. # So? What about this header?
  41619. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  41620. yes:no: )
  41621. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  41622. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41623. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
  41624. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
  41625. ac_header_preproc=yes
  41626. ;;
  41627. no:yes:* )
  41628. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
  41629. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
  41630. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
  41631. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
  41632. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
  41633. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
  41634. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
  41635. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  41636. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
  41637. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
  41638. { $as_echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
  41639. $as_echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
  41640. ( cat <<\_ASBOX
  41641. ## ------------------------------------------ ##
  41642. ## Report this to https://issues.asterisk.org ##
  41643. ## ------------------------------------------ ##
  41644. _ASBOX
  41645. ) | sed "s/^/$as_me: WARNING: /" >&2
  41646. ;;
  41647. esac
  41648. { $as_echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
  41649. $as_echo_n "checking for /usr/include/ptlib.h... " >&6; }
  41650. if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
  41651. $as_echo_n "(cached) " >&6
  41652. else
  41653. ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
  41654. fi
  41655. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
  41656. $as_echo "$ac_cv_header__usr_include_ptlib_h" >&6; }
  41657. fi
  41658. if test "x$ac_cv_header__usr_include_ptlib_h" = x""yes; then
  41659. HAS_PWLIB=1
  41660. fi
  41661. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41662. # Extract the first word of "ptlib-config", so it can be a program name with args.
  41663. set dummy ptlib-config; ac_word=$2
  41664. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  41665. $as_echo_n "checking for $ac_word... " >&6; }
  41666. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
  41667. $as_echo_n "(cached) " >&6
  41668. else
  41669. case $PTLIB_CONFIG in
  41670. [\\/]* | ?:[\\/]*)
  41671. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  41672. ;;
  41673. *)
  41674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41675. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  41676. do
  41677. IFS=$as_save_IFS
  41678. test -z "$as_dir" && as_dir=.
  41679. for ac_exec_ext in '' $ac_executable_extensions; do
  41680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  41681. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  41682. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  41683. break 2
  41684. fi
  41685. done
  41686. done
  41687. IFS=$as_save_IFS
  41688. ;;
  41689. esac
  41690. fi
  41691. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  41692. if test -n "$PTLIB_CONFIG"; then
  41693. { $as_echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
  41694. $as_echo "$PTLIB_CONFIG" >&6; }
  41695. else
  41696. { $as_echo "$as_me:$LINENO: result: no" >&5
  41697. $as_echo "no" >&6; }
  41698. fi
  41699. PWLIB_INCDIR="/usr/include"
  41700. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  41701. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  41702. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  41703. fi
  41704. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  41705. if test "x$LIB64" != "x"; then
  41706. PWLIB_LIBDIR="/usr/lib64"
  41707. else
  41708. PWLIB_LIBDIR="/usr/lib"
  41709. fi
  41710. fi
  41711. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  41712. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  41713. fi
  41714. fi
  41715. fi
  41716. fi
  41717. fi
  41718. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  41719. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  41720. # exit
  41721. #fi
  41722. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  41723. if test "${PWLIBDIR:-unset}" = "unset" ; then
  41724. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  41725. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  41726. else
  41727. echo "Cannot find ptlib-config - please install and try again"
  41728. exit
  41729. fi
  41730. fi
  41731. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  41732. PWLIBDIR="/usr/share/pwlib"
  41733. PWLIB_INCDIR="/usr/include"
  41734. if test "x$LIB64" != "x"; then
  41735. PWLIB_LIBDIR="/usr/lib64"
  41736. else
  41737. PWLIB_LIBDIR="/usr/lib"
  41738. fi
  41739. fi
  41740. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  41741. PWLIBDIR="/usr/local/share/pwlib"
  41742. PWLIB_INCDIR="/usr/local/include"
  41743. if test "x$LIB64" != "x"; then
  41744. PWLIB_LIBDIR="/usr/local/lib64"
  41745. else
  41746. PWLIB_LIBDIR="/usr/local/lib"
  41747. fi
  41748. fi
  41749. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  41750. PWLIB_INCDIR="${PWLIBDIR}/include"
  41751. fi
  41752. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  41753. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  41754. fi
  41755. fi
  41756. ac_ext=c
  41757. ac_cpp='$CPP $CPPFLAGS'
  41758. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41759. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41760. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41761. if test "xP[WT]LIB_VERSION" != "x"; then
  41762. VNAME="P[WT]LIB_VERSION"
  41763. else
  41764. VNAME="PWLIB_VERSION"
  41765. fi
  41766. if test "${HAS_PWLIB:-unset}" != "unset"; then
  41767. PWLIB_VERSION=`grep "$VNAME" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  41768. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  41769. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  41770. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  41771. PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
  41772. PWLIB_REQ=$((1*10000+9*100+2))
  41773. if test "x" = "x"; then
  41774. PWLIB_MAX=9999999
  41775. else
  41776. PWLIB_MAX=$((*10000+*100+))
  41777. fi
  41778. { $as_echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  41779. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  41780. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  41781. { $as_echo "$as_me:$LINENO: result: no" >&5
  41782. $as_echo "no" >&6; }
  41783. unset HAS_PWLIB
  41784. else
  41785. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  41786. { $as_echo "$as_me:$LINENO: result: no" >&5
  41787. $as_echo "no" >&6; }
  41788. unset HAS_PWLIB
  41789. else
  41790. { $as_echo "$as_me:$LINENO: result: yes" >&5
  41791. $as_echo "yes" >&6; }
  41792. fi
  41793. fi
  41794. fi
  41795. if test "${HAS_PWLIB:-unset}" != "unset"; then
  41796. PWLIB_OSTYPE=
  41797. case "$host_os" in
  41798. linux*) PWLIB_OSTYPE=linux ;
  41799. ;;
  41800. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  41801. ;;
  41802. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  41803. ENDLDLIBS="-lossaudio" ;
  41804. ;;
  41805. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  41806. ENDLDLIBS="-lossaudio" ;
  41807. ;;
  41808. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  41809. ;;
  41810. darwin* ) PWLIB_OSTYPE=Darwin ;
  41811. ;;
  41812. beos*) PWLIB_OSTYPE=beos ;
  41813. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  41814. ;;
  41815. cygwin*) PWLIB_OSTYPE=cygwin ;
  41816. ;;
  41817. mingw*) PWLIB_OSTYPE=mingw ;
  41818. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  41819. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  41820. ;;
  41821. * ) PWLIB_OSTYPE="$host_os" ;
  41822. { $as_echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  41823. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  41824. ;;
  41825. esac
  41826. PWLIB_MACHTYPE=
  41827. case "$host_cpu" in
  41828. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  41829. ;;
  41830. x86_64) PWLIB_MACHTYPE=x86_64 ;
  41831. P_64BIT=1 ;
  41832. LIB64=1 ;
  41833. ;;
  41834. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  41835. P_64BIT=1 ;
  41836. ;;
  41837. sparc ) PWLIB_MACHTYPE=sparc ;
  41838. ;;
  41839. powerpc ) PWLIB_MACHTYPE=ppc ;
  41840. ;;
  41841. ppc ) PWLIB_MACHTYPE=ppc ;
  41842. ;;
  41843. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  41844. P_64BIT=1 ;
  41845. LIB64=1 ;
  41846. ;;
  41847. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  41848. P_64BIT=1 ;
  41849. LIB64=1 ;
  41850. ;;
  41851. ia64) PWLIB_MACHTYPE=ia64 ;
  41852. P_64BIT=1 ;
  41853. ;;
  41854. s390x) PWLIB_MACHTYPE=s390x ;
  41855. P_64BIT=1 ;
  41856. LIB64=1 ;
  41857. ;;
  41858. s390) PWLIB_MACHTYPE=s390 ;
  41859. ;;
  41860. * ) PWLIB_MACHTYPE="$host_cpu";
  41861. { $as_echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  41862. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  41863. esac
  41864. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  41865. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  41866. if test "${HAS_PWLIB:-unset}" != "unset"; then
  41867. { $as_echo "$as_me:$LINENO: checking PWLib installation validity" >&5
  41868. $as_echo_n "checking PWLib installation validity... " >&6; }
  41869. saved_cppflags="${CPPFLAGS}"
  41870. saved_libs="${LIBS}"
  41871. if test "${PWLIB_LIB:-unset}" != "unset"; then
  41872. LIBS="${LIBS} ${PWLIB_LIB} "
  41873. else
  41874. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  41875. fi
  41876. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  41877. ac_ext=cpp
  41878. ac_cpp='$CXXCPP $CPPFLAGS'
  41879. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41880. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41881. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41882. cat >conftest.$ac_ext <<_ACEOF
  41883. /* confdefs.h. */
  41884. _ACEOF
  41885. cat confdefs.h >>conftest.$ac_ext
  41886. cat >>conftest.$ac_ext <<_ACEOF
  41887. /* end confdefs.h. */
  41888. #include "ptlib.h"
  41889. int
  41890. main ()
  41891. {
  41892. int q = (int) PTime::IsDaylightSavings();
  41893. ;
  41894. return 0;
  41895. }
  41896. _ACEOF
  41897. rm -f conftest.$ac_objext conftest$ac_exeext
  41898. if { (ac_try="$ac_link"
  41899. case "(($ac_try" in
  41900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41901. *) ac_try_echo=$ac_try;;
  41902. esac
  41903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  41904. $as_echo "$ac_try_echo") >&5
  41905. (eval "$ac_link") 2>conftest.er1
  41906. ac_status=$?
  41907. grep -v '^ *+' conftest.er1 >conftest.err
  41908. rm -f conftest.er1
  41909. cat conftest.err >&5
  41910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41911. (exit $ac_status); } && {
  41912. test -z "$ac_cxx_werror_flag" ||
  41913. test ! -s conftest.err
  41914. } && test -s conftest$ac_exeext && {
  41915. test "$cross_compiling" = yes ||
  41916. $as_test_x conftest$ac_exeext
  41917. }; then
  41918. { $as_echo "$as_me:$LINENO: result: yes" >&5
  41919. $as_echo "yes" >&6; }
  41920. ac_cv_lib_PWLIB="yes"
  41921. else
  41922. $as_echo "$as_me: failed program was:" >&5
  41923. sed 's/^/| /' conftest.$ac_ext >&5
  41924. { $as_echo "$as_me:$LINENO: result: no" >&5
  41925. $as_echo "no" >&6; }
  41926. ac_cv_lib_PWLIB="no"
  41927. fi
  41928. rm -rf conftest.dSYM
  41929. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  41930. conftest$ac_exeext conftest.$ac_ext
  41931. ac_ext=c
  41932. ac_cpp='$CPP $CPPFLAGS'
  41933. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41934. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41935. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41936. LIBS="${saved_libs}"
  41937. CPPFLAGS="${saved_cppflags}"
  41938. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  41939. if test "${PWLIB_LIB:-undef}" = "undef"; then
  41940. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  41941. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  41942. else
  41943. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  41944. fi
  41945. fi
  41946. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  41947. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  41948. fi
  41949. PBX_PWLIB=1
  41950. cat >>confdefs.h <<\_ACEOF
  41951. #define HAVE_PWLIB 1
  41952. _ACEOF
  41953. fi
  41954. fi
  41955. fi
  41956. fi
  41957. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  41958. if test -n "${OPENH323_DIR}"; then
  41959. OPENH323DIR="${OPENH323_DIR}"
  41960. fi
  41961. OPENH323_INCDIR=
  41962. OPENH323_LIBDIR=
  41963. ac_ext=cpp
  41964. ac_cpp='$CXXCPP $CPPFLAGS'
  41965. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41966. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41967. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41968. if test "${OPENH323DIR:-unset}" != "unset" ; then
  41969. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  41970. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41971. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
  41972. $as_echo_n "checking for ${OPENH323DIR}/version.h... " >&6; }
  41973. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  41974. $as_echo_n "(cached) " >&6
  41975. fi
  41976. ac_res=`eval 'as_val=${'$as_ac_Header'}
  41977. $as_echo "$as_val"'`
  41978. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  41979. $as_echo "$ac_res" >&6; }
  41980. else
  41981. # Is the header compilable?
  41982. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
  41983. $as_echo_n "checking ${OPENH323DIR}/version.h usability... " >&6; }
  41984. cat >conftest.$ac_ext <<_ACEOF
  41985. /* confdefs.h. */
  41986. _ACEOF
  41987. cat confdefs.h >>conftest.$ac_ext
  41988. cat >>conftest.$ac_ext <<_ACEOF
  41989. /* end confdefs.h. */
  41990. $ac_includes_default
  41991. #include <${OPENH323DIR}/version.h>
  41992. _ACEOF
  41993. rm -f conftest.$ac_objext
  41994. if { (ac_try="$ac_compile"
  41995. case "(($ac_try" in
  41996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  41997. *) ac_try_echo=$ac_try;;
  41998. esac
  41999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42000. $as_echo "$ac_try_echo") >&5
  42001. (eval "$ac_compile") 2>conftest.er1
  42002. ac_status=$?
  42003. grep -v '^ *+' conftest.er1 >conftest.err
  42004. rm -f conftest.er1
  42005. cat conftest.err >&5
  42006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42007. (exit $ac_status); } && {
  42008. test -z "$ac_cxx_werror_flag" ||
  42009. test ! -s conftest.err
  42010. } && test -s conftest.$ac_objext; then
  42011. ac_header_compiler=yes
  42012. else
  42013. $as_echo "$as_me: failed program was:" >&5
  42014. sed 's/^/| /' conftest.$ac_ext >&5
  42015. ac_header_compiler=no
  42016. fi
  42017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42018. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42019. $as_echo "$ac_header_compiler" >&6; }
  42020. # Is the header present?
  42021. { $as_echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
  42022. $as_echo_n "checking ${OPENH323DIR}/version.h presence... " >&6; }
  42023. cat >conftest.$ac_ext <<_ACEOF
  42024. /* confdefs.h. */
  42025. _ACEOF
  42026. cat confdefs.h >>conftest.$ac_ext
  42027. cat >>conftest.$ac_ext <<_ACEOF
  42028. /* end confdefs.h. */
  42029. #include <${OPENH323DIR}/version.h>
  42030. _ACEOF
  42031. if { (ac_try="$ac_cpp conftest.$ac_ext"
  42032. case "(($ac_try" in
  42033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42034. *) ac_try_echo=$ac_try;;
  42035. esac
  42036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42037. $as_echo "$ac_try_echo") >&5
  42038. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  42039. ac_status=$?
  42040. grep -v '^ *+' conftest.er1 >conftest.err
  42041. rm -f conftest.er1
  42042. cat conftest.err >&5
  42043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42044. (exit $ac_status); } >/dev/null && {
  42045. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  42046. test ! -s conftest.err
  42047. }; then
  42048. ac_header_preproc=yes
  42049. else
  42050. $as_echo "$as_me: failed program was:" >&5
  42051. sed 's/^/| /' conftest.$ac_ext >&5
  42052. ac_header_preproc=no
  42053. fi
  42054. rm -f conftest.err conftest.$ac_ext
  42055. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42056. $as_echo "$ac_header_preproc" >&6; }
  42057. # So? What about this header?
  42058. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  42059. yes:no: )
  42060. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  42061. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42062. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
  42063. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
  42064. ac_header_preproc=yes
  42065. ;;
  42066. no:yes:* )
  42067. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
  42068. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
  42069. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
  42070. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
  42071. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
  42072. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
  42073. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
  42074. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  42075. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
  42076. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
  42077. { $as_echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
  42078. $as_echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
  42079. ( cat <<\_ASBOX
  42080. ## ------------------------------------------ ##
  42081. ## Report this to https://issues.asterisk.org ##
  42082. ## ------------------------------------------ ##
  42083. _ASBOX
  42084. ) | sed "s/^/$as_me: WARNING: /" >&2
  42085. ;;
  42086. esac
  42087. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
  42088. $as_echo_n "checking for ${OPENH323DIR}/version.h... " >&6; }
  42089. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42090. $as_echo_n "(cached) " >&6
  42091. else
  42092. eval "$as_ac_Header=\$ac_header_preproc"
  42093. fi
  42094. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42095. $as_echo "$as_val"'`
  42096. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42097. $as_echo "$ac_res" >&6; }
  42098. fi
  42099. as_val=`eval 'as_val=${'$as_ac_Header'}
  42100. $as_echo "$as_val"'`
  42101. if test "x$as_val" = x""yes; then
  42102. HAS_OPENH323=1
  42103. fi
  42104. fi
  42105. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  42106. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  42107. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42108. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
  42109. $as_echo_n "checking for ${PWLIBDIR}/../openh323/version.h... " >&6; }
  42110. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42111. $as_echo_n "(cached) " >&6
  42112. fi
  42113. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42114. $as_echo "$as_val"'`
  42115. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42116. $as_echo "$ac_res" >&6; }
  42117. else
  42118. # Is the header compilable?
  42119. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
  42120. $as_echo_n "checking ${PWLIBDIR}/../openh323/version.h usability... " >&6; }
  42121. cat >conftest.$ac_ext <<_ACEOF
  42122. /* confdefs.h. */
  42123. _ACEOF
  42124. cat confdefs.h >>conftest.$ac_ext
  42125. cat >>conftest.$ac_ext <<_ACEOF
  42126. /* end confdefs.h. */
  42127. $ac_includes_default
  42128. #include <${PWLIBDIR}/../openh323/version.h>
  42129. _ACEOF
  42130. rm -f conftest.$ac_objext
  42131. if { (ac_try="$ac_compile"
  42132. case "(($ac_try" in
  42133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42134. *) ac_try_echo=$ac_try;;
  42135. esac
  42136. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42137. $as_echo "$ac_try_echo") >&5
  42138. (eval "$ac_compile") 2>conftest.er1
  42139. ac_status=$?
  42140. grep -v '^ *+' conftest.er1 >conftest.err
  42141. rm -f conftest.er1
  42142. cat conftest.err >&5
  42143. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42144. (exit $ac_status); } && {
  42145. test -z "$ac_cxx_werror_flag" ||
  42146. test ! -s conftest.err
  42147. } && test -s conftest.$ac_objext; then
  42148. ac_header_compiler=yes
  42149. else
  42150. $as_echo "$as_me: failed program was:" >&5
  42151. sed 's/^/| /' conftest.$ac_ext >&5
  42152. ac_header_compiler=no
  42153. fi
  42154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42155. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42156. $as_echo "$ac_header_compiler" >&6; }
  42157. # Is the header present?
  42158. { $as_echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
  42159. $as_echo_n "checking ${PWLIBDIR}/../openh323/version.h presence... " >&6; }
  42160. cat >conftest.$ac_ext <<_ACEOF
  42161. /* confdefs.h. */
  42162. _ACEOF
  42163. cat confdefs.h >>conftest.$ac_ext
  42164. cat >>conftest.$ac_ext <<_ACEOF
  42165. /* end confdefs.h. */
  42166. #include <${PWLIBDIR}/../openh323/version.h>
  42167. _ACEOF
  42168. if { (ac_try="$ac_cpp conftest.$ac_ext"
  42169. case "(($ac_try" in
  42170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42171. *) ac_try_echo=$ac_try;;
  42172. esac
  42173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42174. $as_echo "$ac_try_echo") >&5
  42175. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  42176. ac_status=$?
  42177. grep -v '^ *+' conftest.er1 >conftest.err
  42178. rm -f conftest.er1
  42179. cat conftest.err >&5
  42180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42181. (exit $ac_status); } >/dev/null && {
  42182. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  42183. test ! -s conftest.err
  42184. }; then
  42185. ac_header_preproc=yes
  42186. else
  42187. $as_echo "$as_me: failed program was:" >&5
  42188. sed 's/^/| /' conftest.$ac_ext >&5
  42189. ac_header_preproc=no
  42190. fi
  42191. rm -f conftest.err conftest.$ac_ext
  42192. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42193. $as_echo "$ac_header_preproc" >&6; }
  42194. # So? What about this header?
  42195. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  42196. yes:no: )
  42197. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
  42198. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42199. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
  42200. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
  42201. ac_header_preproc=yes
  42202. ;;
  42203. no:yes:* )
  42204. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
  42205. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
  42206. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
  42207. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
  42208. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
  42209. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
  42210. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
  42211. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
  42212. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
  42213. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
  42214. { $as_echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
  42215. $as_echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
  42216. ( cat <<\_ASBOX
  42217. ## ------------------------------------------ ##
  42218. ## Report this to https://issues.asterisk.org ##
  42219. ## ------------------------------------------ ##
  42220. _ASBOX
  42221. ) | sed "s/^/$as_me: WARNING: /" >&2
  42222. ;;
  42223. esac
  42224. { $as_echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
  42225. $as_echo_n "checking for ${PWLIBDIR}/../openh323/version.h... " >&6; }
  42226. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42227. $as_echo_n "(cached) " >&6
  42228. else
  42229. eval "$as_ac_Header=\$ac_header_preproc"
  42230. fi
  42231. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42232. $as_echo "$as_val"'`
  42233. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42234. $as_echo "$ac_res" >&6; }
  42235. fi
  42236. as_val=`eval 'as_val=${'$as_ac_Header'}
  42237. $as_echo "$as_val"'`
  42238. if test "x$as_val" = x""yes; then
  42239. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  42240. fi
  42241. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42242. OPENH323DIR="${PWLIBDIR}/../openh323"
  42243. saved_cppflags="${CPPFLAGS}"
  42244. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  42245. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  42246. { $as_echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
  42247. $as_echo_n "checking for ${OPENH323DIR}/include/h323.h... " >&6; }
  42248. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42249. $as_echo_n "(cached) " >&6
  42250. else
  42251. cat >conftest.$ac_ext <<_ACEOF
  42252. /* confdefs.h. */
  42253. _ACEOF
  42254. cat confdefs.h >>conftest.$ac_ext
  42255. cat >>conftest.$ac_ext <<_ACEOF
  42256. /* end confdefs.h. */
  42257. #include <ptlib.h>
  42258. #include <${OPENH323DIR}/include/h323.h>
  42259. _ACEOF
  42260. rm -f conftest.$ac_objext
  42261. if { (ac_try="$ac_compile"
  42262. case "(($ac_try" in
  42263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42264. *) ac_try_echo=$ac_try;;
  42265. esac
  42266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42267. $as_echo "$ac_try_echo") >&5
  42268. (eval "$ac_compile") 2>conftest.er1
  42269. ac_status=$?
  42270. grep -v '^ *+' conftest.er1 >conftest.err
  42271. rm -f conftest.er1
  42272. cat conftest.err >&5
  42273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42274. (exit $ac_status); } && {
  42275. test -z "$ac_cxx_werror_flag" ||
  42276. test ! -s conftest.err
  42277. } && test -s conftest.$ac_objext; then
  42278. eval "$as_ac_Header=yes"
  42279. else
  42280. $as_echo "$as_me: failed program was:" >&5
  42281. sed 's/^/| /' conftest.$ac_ext >&5
  42282. eval "$as_ac_Header=no"
  42283. fi
  42284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42285. fi
  42286. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42287. $as_echo "$as_val"'`
  42288. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42289. $as_echo "$ac_res" >&6; }
  42290. as_val=`eval 'as_val=${'$as_ac_Header'}
  42291. $as_echo "$as_val"'`
  42292. if test "x$as_val" = x""yes; then
  42293. :
  42294. else
  42295. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  42296. fi
  42297. CPPFLAGS="${saved_cppflags}"
  42298. else
  42299. saved_cppflags="${CPPFLAGS}"
  42300. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  42301. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  42302. { $as_echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
  42303. $as_echo_n "checking for ${HOME}/openh323/include/h323.h... " >&6; }
  42304. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  42305. $as_echo_n "(cached) " >&6
  42306. else
  42307. cat >conftest.$ac_ext <<_ACEOF
  42308. /* confdefs.h. */
  42309. _ACEOF
  42310. cat confdefs.h >>conftest.$ac_ext
  42311. cat >>conftest.$ac_ext <<_ACEOF
  42312. /* end confdefs.h. */
  42313. #include <ptlib.h>
  42314. #include <${HOME}/openh323/include/h323.h>
  42315. _ACEOF
  42316. rm -f conftest.$ac_objext
  42317. if { (ac_try="$ac_compile"
  42318. case "(($ac_try" in
  42319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42320. *) ac_try_echo=$ac_try;;
  42321. esac
  42322. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42323. $as_echo "$ac_try_echo") >&5
  42324. (eval "$ac_compile") 2>conftest.er1
  42325. ac_status=$?
  42326. grep -v '^ *+' conftest.er1 >conftest.err
  42327. rm -f conftest.er1
  42328. cat conftest.err >&5
  42329. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42330. (exit $ac_status); } && {
  42331. test -z "$ac_cxx_werror_flag" ||
  42332. test ! -s conftest.err
  42333. } && test -s conftest.$ac_objext; then
  42334. eval "$as_ac_Header=yes"
  42335. else
  42336. $as_echo "$as_me: failed program was:" >&5
  42337. sed 's/^/| /' conftest.$ac_ext >&5
  42338. eval "$as_ac_Header=no"
  42339. fi
  42340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42341. fi
  42342. ac_res=`eval 'as_val=${'$as_ac_Header'}
  42343. $as_echo "$as_val"'`
  42344. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42345. $as_echo "$ac_res" >&6; }
  42346. as_val=`eval 'as_val=${'$as_ac_Header'}
  42347. $as_echo "$as_val"'`
  42348. if test "x$as_val" = x""yes; then
  42349. HAS_OPENH323=1
  42350. fi
  42351. CPPFLAGS="${saved_cppflags}"
  42352. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42353. OPENH323DIR="${HOME}/openh323"
  42354. else
  42355. saved_cppflags="${CPPFLAGS}"
  42356. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  42357. { $as_echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
  42358. $as_echo_n "checking for /usr/local/include/openh323/h323.h... " >&6; }
  42359. if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
  42360. $as_echo_n "(cached) " >&6
  42361. else
  42362. cat >conftest.$ac_ext <<_ACEOF
  42363. /* confdefs.h. */
  42364. _ACEOF
  42365. cat confdefs.h >>conftest.$ac_ext
  42366. cat >>conftest.$ac_ext <<_ACEOF
  42367. /* end confdefs.h. */
  42368. #include <ptlib.h>
  42369. #include </usr/local/include/openh323/h323.h>
  42370. _ACEOF
  42371. rm -f conftest.$ac_objext
  42372. if { (ac_try="$ac_compile"
  42373. case "(($ac_try" in
  42374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42375. *) ac_try_echo=$ac_try;;
  42376. esac
  42377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42378. $as_echo "$ac_try_echo") >&5
  42379. (eval "$ac_compile") 2>conftest.er1
  42380. ac_status=$?
  42381. grep -v '^ *+' conftest.er1 >conftest.err
  42382. rm -f conftest.er1
  42383. cat conftest.err >&5
  42384. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42385. (exit $ac_status); } && {
  42386. test -z "$ac_cxx_werror_flag" ||
  42387. test ! -s conftest.err
  42388. } && test -s conftest.$ac_objext; then
  42389. ac_cv_header__usr_local_include_openh323_h323_h=yes
  42390. else
  42391. $as_echo "$as_me: failed program was:" >&5
  42392. sed 's/^/| /' conftest.$ac_ext >&5
  42393. ac_cv_header__usr_local_include_openh323_h323_h=no
  42394. fi
  42395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42396. fi
  42397. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
  42398. $as_echo "$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
  42399. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = x""yes; then
  42400. HAS_OPENH323=1
  42401. fi
  42402. CPPFLAGS="${saved_cppflags}"
  42403. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42404. OPENH323DIR="/usr/local/share/openh323"
  42405. OPENH323_INCDIR="/usr/local/include/openh323"
  42406. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  42407. OPENH323_LIBDIR="/usr/local/lib64"
  42408. else
  42409. OPENH323_LIBDIR="/usr/local/lib"
  42410. fi
  42411. else
  42412. saved_cppflags="${CPPFLAGS}"
  42413. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  42414. { $as_echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
  42415. $as_echo_n "checking for /usr/include/openh323/h323.h... " >&6; }
  42416. if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
  42417. $as_echo_n "(cached) " >&6
  42418. else
  42419. cat >conftest.$ac_ext <<_ACEOF
  42420. /* confdefs.h. */
  42421. _ACEOF
  42422. cat confdefs.h >>conftest.$ac_ext
  42423. cat >>conftest.$ac_ext <<_ACEOF
  42424. /* end confdefs.h. */
  42425. #include <ptlib.h>
  42426. #include </usr/include/openh323/h323.h>
  42427. _ACEOF
  42428. rm -f conftest.$ac_objext
  42429. if { (ac_try="$ac_compile"
  42430. case "(($ac_try" in
  42431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42432. *) ac_try_echo=$ac_try;;
  42433. esac
  42434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42435. $as_echo "$ac_try_echo") >&5
  42436. (eval "$ac_compile") 2>conftest.er1
  42437. ac_status=$?
  42438. grep -v '^ *+' conftest.er1 >conftest.err
  42439. rm -f conftest.er1
  42440. cat conftest.err >&5
  42441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42442. (exit $ac_status); } && {
  42443. test -z "$ac_cxx_werror_flag" ||
  42444. test ! -s conftest.err
  42445. } && test -s conftest.$ac_objext; then
  42446. ac_cv_header__usr_include_openh323_h323_h=yes
  42447. else
  42448. $as_echo "$as_me: failed program was:" >&5
  42449. sed 's/^/| /' conftest.$ac_ext >&5
  42450. ac_cv_header__usr_include_openh323_h323_h=no
  42451. fi
  42452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42453. fi
  42454. { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
  42455. $as_echo "$ac_cv_header__usr_include_openh323_h323_h" >&6; }
  42456. if test "x$ac_cv_header__usr_include_openh323_h323_h" = x""yes; then
  42457. HAS_OPENH323=1
  42458. fi
  42459. CPPFLAGS="${saved_cppflags}"
  42460. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42461. OPENH323DIR="/usr/share/openh323"
  42462. OPENH323_INCDIR="/usr/include/openh323"
  42463. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  42464. OPENH323_LIBDIR="/usr/lib64"
  42465. else
  42466. OPENH323_LIBDIR="/usr/lib"
  42467. fi
  42468. fi
  42469. fi
  42470. fi
  42471. fi
  42472. fi
  42473. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  42474. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  42475. OPENH323_INCDIR="${OPENH323DIR}/include"
  42476. fi
  42477. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  42478. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  42479. fi
  42480. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  42481. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  42482. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  42483. fi
  42484. ac_ext=c
  42485. ac_cpp='$CPP $CPPFLAGS'
  42486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42489. if test "x" != "x"; then
  42490. VNAME=""
  42491. else
  42492. VNAME="OPENH323_VERSION"
  42493. fi
  42494. if test "${HAS_OPENH323:-unset}" != "unset"; then
  42495. OPENH323_VERSION=`grep "$VNAME" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  42496. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  42497. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  42498. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  42499. OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
  42500. OPENH323_REQ=$((1*10000+17*100+3))
  42501. if test "x0" = "x"; then
  42502. OPENH323_MAX=9999999
  42503. else
  42504. OPENH323_MAX=$((1*10000+19*100+0))
  42505. fi
  42506. { $as_echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  42507. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  42508. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  42509. { $as_echo "$as_me:$LINENO: result: no" >&5
  42510. $as_echo "no" >&6; }
  42511. unset HAS_OPENH323
  42512. else
  42513. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  42514. { $as_echo "$as_me:$LINENO: result: no" >&5
  42515. $as_echo "no" >&6; }
  42516. unset HAS_OPENH323
  42517. else
  42518. { $as_echo "$as_me:$LINENO: result: yes" >&5
  42519. $as_echo "yes" >&6; }
  42520. fi
  42521. fi
  42522. fi
  42523. if test "${HAS_OPENH323:-unset}" != "unset"; then
  42524. { $as_echo "$as_me:$LINENO: checking OpenH323 build option" >&5
  42525. $as_echo_n "checking OpenH323 build option... " >&6; }
  42526. OPENH323_SUFFIX=
  42527. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  42528. for pfx in $prefixes; do
  42529. #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  42530. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  42531. if test -z "$files"; then
  42532. # check the default location
  42533. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  42534. fi
  42535. libfile=
  42536. if test -n "$files"; then
  42537. for f in $files; do
  42538. if test -f $f -a ! -L $f; then
  42539. libfile=`basename $f`
  42540. break;
  42541. fi
  42542. done
  42543. fi
  42544. if test -n "$libfile"; then
  42545. OPENH323_PREFIX=$pfx
  42546. break;
  42547. fi
  42548. done
  42549. if test "${libfile:-unset}" != "unset"; then
  42550. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  42551. fi
  42552. case "${OPENH323_SUFFIX}" in
  42553. n)
  42554. OPENH323_BUILD="notrace";;
  42555. r)
  42556. OPENH323_BUILD="opt";;
  42557. d)
  42558. OPENH323_BUILD="debug";;
  42559. *)
  42560. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  42561. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  42562. if test "x$notrace" = "x"; then
  42563. notrace="0"
  42564. fi
  42565. if test "$notrace" -ne 0; then
  42566. OPENH323_BUILD="notrace"
  42567. else
  42568. OPENH323_BUILD="opt"
  42569. fi
  42570. OPENH323_LIB="-l${OPENH323_PREFIX}"
  42571. else
  42572. OPENH323_BUILD="notrace"
  42573. fi
  42574. ;;
  42575. esac
  42576. { $as_echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
  42577. $as_echo "${OPENH323_BUILD}" >&6; }
  42578. fi
  42579. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  42580. if test "${HAS_OPENH323:-unset}" != "unset"; then
  42581. { $as_echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
  42582. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  42583. saved_cppflags="${CPPFLAGS}"
  42584. saved_libs="${LIBS}"
  42585. if test "${OPENH323_LIB:-unset}" != "unset"; then
  42586. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  42587. else
  42588. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  42589. fi
  42590. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  42591. ac_ext=cpp
  42592. ac_cpp='$CXXCPP $CPPFLAGS'
  42593. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42594. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42595. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42596. cat >conftest.$ac_ext <<_ACEOF
  42597. /* confdefs.h. */
  42598. _ACEOF
  42599. cat confdefs.h >>conftest.$ac_ext
  42600. cat >>conftest.$ac_ext <<_ACEOF
  42601. /* end confdefs.h. */
  42602. #include "ptlib.h"
  42603. #include "h323.h"
  42604. #include "h323ep.h"
  42605. int
  42606. main ()
  42607. {
  42608. H323EndPoint ep = H323EndPoint();
  42609. ;
  42610. return 0;
  42611. }
  42612. _ACEOF
  42613. rm -f conftest.$ac_objext conftest$ac_exeext
  42614. if { (ac_try="$ac_link"
  42615. case "(($ac_try" in
  42616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42617. *) ac_try_echo=$ac_try;;
  42618. esac
  42619. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42620. $as_echo "$ac_try_echo") >&5
  42621. (eval "$ac_link") 2>conftest.er1
  42622. ac_status=$?
  42623. grep -v '^ *+' conftest.er1 >conftest.err
  42624. rm -f conftest.er1
  42625. cat conftest.err >&5
  42626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42627. (exit $ac_status); } && {
  42628. test -z "$ac_cxx_werror_flag" ||
  42629. test ! -s conftest.err
  42630. } && test -s conftest$ac_exeext && {
  42631. test "$cross_compiling" = yes ||
  42632. $as_test_x conftest$ac_exeext
  42633. }; then
  42634. { $as_echo "$as_me:$LINENO: result: yes" >&5
  42635. $as_echo "yes" >&6; }
  42636. ac_cv_lib_OPENH323="yes"
  42637. else
  42638. $as_echo "$as_me: failed program was:" >&5
  42639. sed 's/^/| /' conftest.$ac_ext >&5
  42640. { $as_echo "$as_me:$LINENO: result: no" >&5
  42641. $as_echo "no" >&6; }
  42642. ac_cv_lib_OPENH323="no"
  42643. fi
  42644. rm -rf conftest.dSYM
  42645. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42646. conftest$ac_exeext conftest.$ac_ext
  42647. ac_ext=c
  42648. ac_cpp='$CPP $CPPFLAGS'
  42649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42652. LIBS="${saved_libs}"
  42653. CPPFLAGS="${saved_cppflags}"
  42654. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  42655. if test "${OPENH323_LIB:-undef}" = "undef"; then
  42656. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  42657. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  42658. else
  42659. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  42660. fi
  42661. fi
  42662. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  42663. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  42664. fi
  42665. PBX_OPENH323=1
  42666. cat >>confdefs.h <<\_ACEOF
  42667. #define HAVE_OPENH323 1
  42668. _ACEOF
  42669. fi
  42670. fi
  42671. fi
  42672. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  42673. pbxlibdir=""
  42674. # if --with-LUA=DIR has been specified, use it.
  42675. if test "x${LUA_DIR}" != "x"; then
  42676. if test -d ${LUA_DIR}/lib; then
  42677. pbxlibdir="-L${LUA_DIR}/lib"
  42678. else
  42679. pbxlibdir="-L${LUA_DIR}"
  42680. fi
  42681. fi
  42682. pbxfuncname="luaL_newstate"
  42683. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  42684. AST_LUA_FOUND=yes
  42685. else
  42686. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  42687. CFLAGS="${CFLAGS} "
  42688. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
  42689. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
  42690. $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
  42691. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  42692. $as_echo_n "(cached) " >&6
  42693. else
  42694. ac_check_lib_save_LIBS=$LIBS
  42695. LIBS="-llua5.1 ${pbxlibdir} -lm $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  42703. Use char because int might match the return type of a GCC
  42704. builtin and then its argument prototype would still apply. */
  42705. #ifdef __cplusplus
  42706. extern "C"
  42707. #endif
  42708. char ${pbxfuncname} ();
  42709. int
  42710. main ()
  42711. {
  42712. return ${pbxfuncname} ();
  42713. ;
  42714. return 0;
  42715. }
  42716. _ACEOF
  42717. rm -f conftest.$ac_objext conftest$ac_exeext
  42718. if { (ac_try="$ac_link"
  42719. case "(($ac_try" in
  42720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42721. *) ac_try_echo=$ac_try;;
  42722. esac
  42723. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42724. $as_echo "$ac_try_echo") >&5
  42725. (eval "$ac_link") 2>conftest.er1
  42726. ac_status=$?
  42727. grep -v '^ *+' conftest.er1 >conftest.err
  42728. rm -f conftest.er1
  42729. cat conftest.err >&5
  42730. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42731. (exit $ac_status); } && {
  42732. test -z "$ac_c_werror_flag" ||
  42733. test ! -s conftest.err
  42734. } && test -s conftest$ac_exeext && {
  42735. test "$cross_compiling" = yes ||
  42736. $as_test_x conftest$ac_exeext
  42737. }; then
  42738. eval "$as_ac_Lib=yes"
  42739. else
  42740. $as_echo "$as_me: failed program was:" >&5
  42741. sed 's/^/| /' conftest.$ac_ext >&5
  42742. eval "$as_ac_Lib=no"
  42743. fi
  42744. rm -rf conftest.dSYM
  42745. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42746. conftest$ac_exeext conftest.$ac_ext
  42747. LIBS=$ac_check_lib_save_LIBS
  42748. fi
  42749. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  42750. $as_echo "$as_val"'`
  42751. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  42752. $as_echo "$ac_res" >&6; }
  42753. as_val=`eval 'as_val=${'$as_ac_Lib'}
  42754. $as_echo "$as_val"'`
  42755. if test "x$as_val" = x""yes; then
  42756. AST_LUA_FOUND=yes
  42757. else
  42758. AST_LUA_FOUND=no
  42759. fi
  42760. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  42761. fi
  42762. # now check for the header.
  42763. if test "${AST_LUA_FOUND}" = "yes"; then
  42764. LUA_LIB="${pbxlibdir} -llua5.1 -lm"
  42765. # if --with-LUA=DIR has been specified, use it.
  42766. if test "x${LUA_DIR}" != "x"; then
  42767. LUA_INCLUDE="-I${LUA_DIR}/include"
  42768. fi
  42769. LUA_INCLUDE="${LUA_INCLUDE} "
  42770. if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
  42771. LUA_HEADER_FOUND="1"
  42772. else # check for the header
  42773. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  42774. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  42775. if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
  42776. { $as_echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
  42777. $as_echo_n "checking for lua5.1/lua.h... " >&6; }
  42778. if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
  42779. $as_echo_n "(cached) " >&6
  42780. fi
  42781. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
  42782. $as_echo "$ac_cv_header_lua5_1_lua_h" >&6; }
  42783. else
  42784. # Is the header compilable?
  42785. { $as_echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
  42786. $as_echo_n "checking lua5.1/lua.h usability... " >&6; }
  42787. cat >conftest.$ac_ext <<_ACEOF
  42788. /* confdefs.h. */
  42789. _ACEOF
  42790. cat confdefs.h >>conftest.$ac_ext
  42791. cat >>conftest.$ac_ext <<_ACEOF
  42792. /* end confdefs.h. */
  42793. $ac_includes_default
  42794. #include <lua5.1/lua.h>
  42795. _ACEOF
  42796. rm -f conftest.$ac_objext
  42797. if { (ac_try="$ac_compile"
  42798. case "(($ac_try" in
  42799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42800. *) ac_try_echo=$ac_try;;
  42801. esac
  42802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42803. $as_echo "$ac_try_echo") >&5
  42804. (eval "$ac_compile") 2>conftest.er1
  42805. ac_status=$?
  42806. grep -v '^ *+' conftest.er1 >conftest.err
  42807. rm -f conftest.er1
  42808. cat conftest.err >&5
  42809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42810. (exit $ac_status); } && {
  42811. test -z "$ac_c_werror_flag" ||
  42812. test ! -s conftest.err
  42813. } && test -s conftest.$ac_objext; then
  42814. ac_header_compiler=yes
  42815. else
  42816. $as_echo "$as_me: failed program was:" >&5
  42817. sed 's/^/| /' conftest.$ac_ext >&5
  42818. ac_header_compiler=no
  42819. fi
  42820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42821. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42822. $as_echo "$ac_header_compiler" >&6; }
  42823. # Is the header present?
  42824. { $as_echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
  42825. $as_echo_n "checking lua5.1/lua.h presence... " >&6; }
  42826. cat >conftest.$ac_ext <<_ACEOF
  42827. /* confdefs.h. */
  42828. _ACEOF
  42829. cat confdefs.h >>conftest.$ac_ext
  42830. cat >>conftest.$ac_ext <<_ACEOF
  42831. /* end confdefs.h. */
  42832. #include <lua5.1/lua.h>
  42833. _ACEOF
  42834. if { (ac_try="$ac_cpp conftest.$ac_ext"
  42835. case "(($ac_try" in
  42836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42837. *) ac_try_echo=$ac_try;;
  42838. esac
  42839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42840. $as_echo "$ac_try_echo") >&5
  42841. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  42842. ac_status=$?
  42843. grep -v '^ *+' conftest.er1 >conftest.err
  42844. rm -f conftest.er1
  42845. cat conftest.err >&5
  42846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42847. (exit $ac_status); } >/dev/null && {
  42848. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  42849. test ! -s conftest.err
  42850. }; then
  42851. ac_header_preproc=yes
  42852. else
  42853. $as_echo "$as_me: failed program was:" >&5
  42854. sed 's/^/| /' conftest.$ac_ext >&5
  42855. ac_header_preproc=no
  42856. fi
  42857. rm -f conftest.err conftest.$ac_ext
  42858. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42859. $as_echo "$ac_header_preproc" >&6; }
  42860. # So? What about this header?
  42861. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  42862. yes:no: )
  42863. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
  42864. $as_echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42865. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
  42866. $as_echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
  42867. ac_header_preproc=yes
  42868. ;;
  42869. no:yes:* )
  42870. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
  42871. $as_echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
  42872. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
  42873. $as_echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
  42874. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
  42875. $as_echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
  42876. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
  42877. $as_echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
  42878. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
  42879. $as_echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
  42880. { $as_echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
  42881. $as_echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
  42882. ( cat <<\_ASBOX
  42883. ## ------------------------------------------ ##
  42884. ## Report this to https://issues.asterisk.org ##
  42885. ## ------------------------------------------ ##
  42886. _ASBOX
  42887. ) | sed "s/^/$as_me: WARNING: /" >&2
  42888. ;;
  42889. esac
  42890. { $as_echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
  42891. $as_echo_n "checking for lua5.1/lua.h... " >&6; }
  42892. if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
  42893. $as_echo_n "(cached) " >&6
  42894. else
  42895. ac_cv_header_lua5_1_lua_h=$ac_header_preproc
  42896. fi
  42897. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
  42898. $as_echo "$ac_cv_header_lua5_1_lua_h" >&6; }
  42899. fi
  42900. if test "x$ac_cv_header_lua5_1_lua_h" = x""yes; then
  42901. LUA_HEADER_FOUND=1
  42902. else
  42903. LUA_HEADER_FOUND=0
  42904. fi
  42905. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  42906. fi
  42907. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  42908. LUA_LIB=""
  42909. LUA_INCLUDE=""
  42910. else
  42911. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  42912. LUA_LIB=""
  42913. fi
  42914. PBX_LUA=1
  42915. cat >>confdefs.h <<_ACEOF
  42916. #define HAVE_LUA 1
  42917. _ACEOF
  42918. fi
  42919. fi
  42920. fi
  42921. if test "x${PBX_LUA}" = "x1" ; then
  42922. if test x"${LUA_DIR}" = x; then
  42923. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
  42924. else
  42925. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
  42926. fi
  42927. fi
  42928. # Some distributions (like SuSE) remove the 5.1 suffix.
  42929. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  42930. pbxlibdir=""
  42931. # if --with-LUA=DIR has been specified, use it.
  42932. if test "x${LUA_DIR}" != "x"; then
  42933. if test -d ${LUA_DIR}/lib; then
  42934. pbxlibdir="-L${LUA_DIR}/lib"
  42935. else
  42936. pbxlibdir="-L${LUA_DIR}"
  42937. fi
  42938. fi
  42939. pbxfuncname="luaL_register"
  42940. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  42941. AST_LUA_FOUND=yes
  42942. else
  42943. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  42944. CFLAGS="${CFLAGS} "
  42945. as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
  42946. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua" >&5
  42947. $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
  42948. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  42949. $as_echo_n "(cached) " >&6
  42950. else
  42951. ac_check_lib_save_LIBS=$LIBS
  42952. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  42953. cat >conftest.$ac_ext <<_ACEOF
  42954. /* confdefs.h. */
  42955. _ACEOF
  42956. cat confdefs.h >>conftest.$ac_ext
  42957. cat >>conftest.$ac_ext <<_ACEOF
  42958. /* end confdefs.h. */
  42959. /* Override any GCC internal prototype to avoid an error.
  42960. Use char because int might match the return type of a GCC
  42961. builtin and then its argument prototype would still apply. */
  42962. #ifdef __cplusplus
  42963. extern "C"
  42964. #endif
  42965. char ${pbxfuncname} ();
  42966. int
  42967. main ()
  42968. {
  42969. return ${pbxfuncname} ();
  42970. ;
  42971. return 0;
  42972. }
  42973. _ACEOF
  42974. rm -f conftest.$ac_objext conftest$ac_exeext
  42975. if { (ac_try="$ac_link"
  42976. case "(($ac_try" in
  42977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42978. *) ac_try_echo=$ac_try;;
  42979. esac
  42980. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42981. $as_echo "$ac_try_echo") >&5
  42982. (eval "$ac_link") 2>conftest.er1
  42983. ac_status=$?
  42984. grep -v '^ *+' conftest.er1 >conftest.err
  42985. rm -f conftest.er1
  42986. cat conftest.err >&5
  42987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42988. (exit $ac_status); } && {
  42989. test -z "$ac_c_werror_flag" ||
  42990. test ! -s conftest.err
  42991. } && test -s conftest$ac_exeext && {
  42992. test "$cross_compiling" = yes ||
  42993. $as_test_x conftest$ac_exeext
  42994. }; then
  42995. eval "$as_ac_Lib=yes"
  42996. else
  42997. $as_echo "$as_me: failed program was:" >&5
  42998. sed 's/^/| /' conftest.$ac_ext >&5
  42999. eval "$as_ac_Lib=no"
  43000. fi
  43001. rm -rf conftest.dSYM
  43002. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43003. conftest$ac_exeext conftest.$ac_ext
  43004. LIBS=$ac_check_lib_save_LIBS
  43005. fi
  43006. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43007. $as_echo "$as_val"'`
  43008. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43009. $as_echo "$ac_res" >&6; }
  43010. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43011. $as_echo "$as_val"'`
  43012. if test "x$as_val" = x""yes; then
  43013. AST_LUA_FOUND=yes
  43014. else
  43015. AST_LUA_FOUND=no
  43016. fi
  43017. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43018. fi
  43019. # now check for the header.
  43020. if test "${AST_LUA_FOUND}" = "yes"; then
  43021. LUA_LIB="${pbxlibdir} -llua -lm"
  43022. # if --with-LUA=DIR has been specified, use it.
  43023. if test "x${LUA_DIR}" != "x"; then
  43024. LUA_INCLUDE="-I${LUA_DIR}/include"
  43025. fi
  43026. LUA_INCLUDE="${LUA_INCLUDE} "
  43027. if test "xlua.h" = "x" ; then # no header, assume found
  43028. LUA_HEADER_FOUND="1"
  43029. else # check for the header
  43030. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43031. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  43032. if test "${ac_cv_header_lua_h+set}" = set; then
  43033. { $as_echo "$as_me:$LINENO: checking for lua.h" >&5
  43034. $as_echo_n "checking for lua.h... " >&6; }
  43035. if test "${ac_cv_header_lua_h+set}" = set; then
  43036. $as_echo_n "(cached) " >&6
  43037. fi
  43038. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
  43039. $as_echo "$ac_cv_header_lua_h" >&6; }
  43040. else
  43041. # Is the header compilable?
  43042. { $as_echo "$as_me:$LINENO: checking lua.h usability" >&5
  43043. $as_echo_n "checking lua.h usability... " >&6; }
  43044. cat >conftest.$ac_ext <<_ACEOF
  43045. /* confdefs.h. */
  43046. _ACEOF
  43047. cat confdefs.h >>conftest.$ac_ext
  43048. cat >>conftest.$ac_ext <<_ACEOF
  43049. /* end confdefs.h. */
  43050. $ac_includes_default
  43051. #include <lua.h>
  43052. _ACEOF
  43053. rm -f conftest.$ac_objext
  43054. if { (ac_try="$ac_compile"
  43055. case "(($ac_try" in
  43056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43057. *) ac_try_echo=$ac_try;;
  43058. esac
  43059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43060. $as_echo "$ac_try_echo") >&5
  43061. (eval "$ac_compile") 2>conftest.er1
  43062. ac_status=$?
  43063. grep -v '^ *+' conftest.er1 >conftest.err
  43064. rm -f conftest.er1
  43065. cat conftest.err >&5
  43066. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43067. (exit $ac_status); } && {
  43068. test -z "$ac_c_werror_flag" ||
  43069. test ! -s conftest.err
  43070. } && test -s conftest.$ac_objext; then
  43071. ac_header_compiler=yes
  43072. else
  43073. $as_echo "$as_me: failed program was:" >&5
  43074. sed 's/^/| /' conftest.$ac_ext >&5
  43075. ac_header_compiler=no
  43076. fi
  43077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43078. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43079. $as_echo "$ac_header_compiler" >&6; }
  43080. # Is the header present?
  43081. { $as_echo "$as_me:$LINENO: checking lua.h presence" >&5
  43082. $as_echo_n "checking lua.h presence... " >&6; }
  43083. cat >conftest.$ac_ext <<_ACEOF
  43084. /* confdefs.h. */
  43085. _ACEOF
  43086. cat confdefs.h >>conftest.$ac_ext
  43087. cat >>conftest.$ac_ext <<_ACEOF
  43088. /* end confdefs.h. */
  43089. #include <lua.h>
  43090. _ACEOF
  43091. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43092. case "(($ac_try" in
  43093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43094. *) ac_try_echo=$ac_try;;
  43095. esac
  43096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43097. $as_echo "$ac_try_echo") >&5
  43098. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43099. ac_status=$?
  43100. grep -v '^ *+' conftest.er1 >conftest.err
  43101. rm -f conftest.er1
  43102. cat conftest.err >&5
  43103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43104. (exit $ac_status); } >/dev/null && {
  43105. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43106. test ! -s conftest.err
  43107. }; then
  43108. ac_header_preproc=yes
  43109. else
  43110. $as_echo "$as_me: failed program was:" >&5
  43111. sed 's/^/| /' conftest.$ac_ext >&5
  43112. ac_header_preproc=no
  43113. fi
  43114. rm -f conftest.err conftest.$ac_ext
  43115. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43116. $as_echo "$ac_header_preproc" >&6; }
  43117. # So? What about this header?
  43118. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43119. yes:no: )
  43120. { $as_echo "$as_me:$LINENO: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
  43121. $as_echo "$as_me: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43122. { $as_echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the compiler's result" >&5
  43123. $as_echo "$as_me: WARNING: lua.h: proceeding with the compiler's result" >&2;}
  43124. ac_header_preproc=yes
  43125. ;;
  43126. no:yes:* )
  43127. { $as_echo "$as_me:$LINENO: WARNING: lua.h: present but cannot be compiled" >&5
  43128. $as_echo "$as_me: WARNING: lua.h: present but cannot be compiled" >&2;}
  43129. { $as_echo "$as_me:$LINENO: WARNING: lua.h: check for missing prerequisite headers?" >&5
  43130. $as_echo "$as_me: WARNING: lua.h: check for missing prerequisite headers?" >&2;}
  43131. { $as_echo "$as_me:$LINENO: WARNING: lua.h: see the Autoconf documentation" >&5
  43132. $as_echo "$as_me: WARNING: lua.h: see the Autoconf documentation" >&2;}
  43133. { $as_echo "$as_me:$LINENO: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&5
  43134. $as_echo "$as_me: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
  43135. { $as_echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the preprocessor's result" >&5
  43136. $as_echo "$as_me: WARNING: lua.h: proceeding with the preprocessor's result" >&2;}
  43137. { $as_echo "$as_me:$LINENO: WARNING: lua.h: in the future, the compiler will take precedence" >&5
  43138. $as_echo "$as_me: WARNING: lua.h: in the future, the compiler will take precedence" >&2;}
  43139. ( cat <<\_ASBOX
  43140. ## ------------------------------------------ ##
  43141. ## Report this to https://issues.asterisk.org ##
  43142. ## ------------------------------------------ ##
  43143. _ASBOX
  43144. ) | sed "s/^/$as_me: WARNING: /" >&2
  43145. ;;
  43146. esac
  43147. { $as_echo "$as_me:$LINENO: checking for lua.h" >&5
  43148. $as_echo_n "checking for lua.h... " >&6; }
  43149. if test "${ac_cv_header_lua_h+set}" = set; then
  43150. $as_echo_n "(cached) " >&6
  43151. else
  43152. ac_cv_header_lua_h=$ac_header_preproc
  43153. fi
  43154. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
  43155. $as_echo "$ac_cv_header_lua_h" >&6; }
  43156. fi
  43157. if test "x$ac_cv_header_lua_h" = x""yes; then
  43158. LUA_HEADER_FOUND=1
  43159. else
  43160. LUA_HEADER_FOUND=0
  43161. fi
  43162. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  43163. fi
  43164. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  43165. LUA_LIB=""
  43166. LUA_INCLUDE=""
  43167. else
  43168. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  43169. LUA_LIB=""
  43170. fi
  43171. PBX_LUA=1
  43172. cat >>confdefs.h <<_ACEOF
  43173. #define HAVE_LUA 1
  43174. _ACEOF
  43175. fi
  43176. fi
  43177. fi
  43178. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  43179. pbxlibdir=""
  43180. # if --with-RADIUS=DIR has been specified, use it.
  43181. if test "x${RADIUS_DIR}" != "x"; then
  43182. if test -d ${RADIUS_DIR}/lib; then
  43183. pbxlibdir="-L${RADIUS_DIR}/lib"
  43184. else
  43185. pbxlibdir="-L${RADIUS_DIR}"
  43186. fi
  43187. fi
  43188. pbxfuncname="rc_read_config"
  43189. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43190. AST_RADIUS_FOUND=yes
  43191. else
  43192. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43193. CFLAGS="${CFLAGS} "
  43194. as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
  43195. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
  43196. $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
  43197. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43198. $as_echo_n "(cached) " >&6
  43199. else
  43200. ac_check_lib_save_LIBS=$LIBS
  43201. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  43202. cat >conftest.$ac_ext <<_ACEOF
  43203. /* confdefs.h. */
  43204. _ACEOF
  43205. cat confdefs.h >>conftest.$ac_ext
  43206. cat >>conftest.$ac_ext <<_ACEOF
  43207. /* end confdefs.h. */
  43208. /* Override any GCC internal prototype to avoid an error.
  43209. Use char because int might match the return type of a GCC
  43210. builtin and then its argument prototype would still apply. */
  43211. #ifdef __cplusplus
  43212. extern "C"
  43213. #endif
  43214. char ${pbxfuncname} ();
  43215. int
  43216. main ()
  43217. {
  43218. return ${pbxfuncname} ();
  43219. ;
  43220. return 0;
  43221. }
  43222. _ACEOF
  43223. rm -f conftest.$ac_objext conftest$ac_exeext
  43224. if { (ac_try="$ac_link"
  43225. case "(($ac_try" in
  43226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43227. *) ac_try_echo=$ac_try;;
  43228. esac
  43229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43230. $as_echo "$ac_try_echo") >&5
  43231. (eval "$ac_link") 2>conftest.er1
  43232. ac_status=$?
  43233. grep -v '^ *+' conftest.er1 >conftest.err
  43234. rm -f conftest.er1
  43235. cat conftest.err >&5
  43236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43237. (exit $ac_status); } && {
  43238. test -z "$ac_c_werror_flag" ||
  43239. test ! -s conftest.err
  43240. } && test -s conftest$ac_exeext && {
  43241. test "$cross_compiling" = yes ||
  43242. $as_test_x conftest$ac_exeext
  43243. }; then
  43244. eval "$as_ac_Lib=yes"
  43245. else
  43246. $as_echo "$as_me: failed program was:" >&5
  43247. sed 's/^/| /' conftest.$ac_ext >&5
  43248. eval "$as_ac_Lib=no"
  43249. fi
  43250. rm -rf conftest.dSYM
  43251. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43252. conftest$ac_exeext conftest.$ac_ext
  43253. LIBS=$ac_check_lib_save_LIBS
  43254. fi
  43255. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43256. $as_echo "$as_val"'`
  43257. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43258. $as_echo "$ac_res" >&6; }
  43259. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43260. $as_echo "$as_val"'`
  43261. if test "x$as_val" = x""yes; then
  43262. AST_RADIUS_FOUND=yes
  43263. else
  43264. AST_RADIUS_FOUND=no
  43265. fi
  43266. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43267. fi
  43268. # now check for the header.
  43269. if test "${AST_RADIUS_FOUND}" = "yes"; then
  43270. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  43271. # if --with-RADIUS=DIR has been specified, use it.
  43272. if test "x${RADIUS_DIR}" != "x"; then
  43273. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  43274. fi
  43275. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  43276. if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
  43277. RADIUS_HEADER_FOUND="1"
  43278. else # check for the header
  43279. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43280. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  43281. if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
  43282. { $as_echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
  43283. $as_echo_n "checking for radiusclient-ng.h... " >&6; }
  43284. if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
  43285. $as_echo_n "(cached) " >&6
  43286. fi
  43287. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
  43288. $as_echo "$ac_cv_header_radiusclient_ng_h" >&6; }
  43289. else
  43290. # Is the header compilable?
  43291. { $as_echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
  43292. $as_echo_n "checking radiusclient-ng.h usability... " >&6; }
  43293. cat >conftest.$ac_ext <<_ACEOF
  43294. /* confdefs.h. */
  43295. _ACEOF
  43296. cat confdefs.h >>conftest.$ac_ext
  43297. cat >>conftest.$ac_ext <<_ACEOF
  43298. /* end confdefs.h. */
  43299. $ac_includes_default
  43300. #include <radiusclient-ng.h>
  43301. _ACEOF
  43302. rm -f conftest.$ac_objext
  43303. if { (ac_try="$ac_compile"
  43304. case "(($ac_try" in
  43305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43306. *) ac_try_echo=$ac_try;;
  43307. esac
  43308. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43309. $as_echo "$ac_try_echo") >&5
  43310. (eval "$ac_compile") 2>conftest.er1
  43311. ac_status=$?
  43312. grep -v '^ *+' conftest.er1 >conftest.err
  43313. rm -f conftest.er1
  43314. cat conftest.err >&5
  43315. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43316. (exit $ac_status); } && {
  43317. test -z "$ac_c_werror_flag" ||
  43318. test ! -s conftest.err
  43319. } && test -s conftest.$ac_objext; then
  43320. ac_header_compiler=yes
  43321. else
  43322. $as_echo "$as_me: failed program was:" >&5
  43323. sed 's/^/| /' conftest.$ac_ext >&5
  43324. ac_header_compiler=no
  43325. fi
  43326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43327. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43328. $as_echo "$ac_header_compiler" >&6; }
  43329. # Is the header present?
  43330. { $as_echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
  43331. $as_echo_n "checking radiusclient-ng.h presence... " >&6; }
  43332. cat >conftest.$ac_ext <<_ACEOF
  43333. /* confdefs.h. */
  43334. _ACEOF
  43335. cat confdefs.h >>conftest.$ac_ext
  43336. cat >>conftest.$ac_ext <<_ACEOF
  43337. /* end confdefs.h. */
  43338. #include <radiusclient-ng.h>
  43339. _ACEOF
  43340. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43341. case "(($ac_try" in
  43342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43343. *) ac_try_echo=$ac_try;;
  43344. esac
  43345. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43346. $as_echo "$ac_try_echo") >&5
  43347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43348. ac_status=$?
  43349. grep -v '^ *+' conftest.er1 >conftest.err
  43350. rm -f conftest.er1
  43351. cat conftest.err >&5
  43352. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43353. (exit $ac_status); } >/dev/null && {
  43354. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43355. test ! -s conftest.err
  43356. }; then
  43357. ac_header_preproc=yes
  43358. else
  43359. $as_echo "$as_me: failed program was:" >&5
  43360. sed 's/^/| /' conftest.$ac_ext >&5
  43361. ac_header_preproc=no
  43362. fi
  43363. rm -f conftest.err conftest.$ac_ext
  43364. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43365. $as_echo "$ac_header_preproc" >&6; }
  43366. # So? What about this header?
  43367. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43368. yes:no: )
  43369. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
  43370. $as_echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43371. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
  43372. $as_echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
  43373. ac_header_preproc=yes
  43374. ;;
  43375. no:yes:* )
  43376. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
  43377. $as_echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
  43378. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
  43379. $as_echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
  43380. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
  43381. $as_echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
  43382. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
  43383. $as_echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
  43384. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
  43385. $as_echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
  43386. { $as_echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
  43387. $as_echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
  43388. ( cat <<\_ASBOX
  43389. ## ------------------------------------------ ##
  43390. ## Report this to https://issues.asterisk.org ##
  43391. ## ------------------------------------------ ##
  43392. _ASBOX
  43393. ) | sed "s/^/$as_me: WARNING: /" >&2
  43394. ;;
  43395. esac
  43396. { $as_echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
  43397. $as_echo_n "checking for radiusclient-ng.h... " >&6; }
  43398. if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
  43399. $as_echo_n "(cached) " >&6
  43400. else
  43401. ac_cv_header_radiusclient_ng_h=$ac_header_preproc
  43402. fi
  43403. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
  43404. $as_echo "$ac_cv_header_radiusclient_ng_h" >&6; }
  43405. fi
  43406. if test "x$ac_cv_header_radiusclient_ng_h" = x""yes; then
  43407. RADIUS_HEADER_FOUND=1
  43408. else
  43409. RADIUS_HEADER_FOUND=0
  43410. fi
  43411. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  43412. fi
  43413. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  43414. RADIUS_LIB=""
  43415. RADIUS_INCLUDE=""
  43416. else
  43417. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  43418. RADIUS_LIB=""
  43419. fi
  43420. PBX_RADIUS=1
  43421. cat >>confdefs.h <<_ACEOF
  43422. #define HAVE_RADIUS 1
  43423. _ACEOF
  43424. fi
  43425. fi
  43426. fi
  43427. # This is a bit complex... in reality, Asterisk's AIS support is dependent on finding
  43428. # *any* implementation of AIS, not just OpenAIS. However, the configure script needs
  43429. # to know the specifics of each possible implementation, and then represent the one
  43430. # that was found as 'AIS'.
  43431. PBX_AIS=0
  43432. # OpenAIS installs its libraries into /usr/lib/openais by default, so check there
  43433. if test "x${PBX_OPENAIS}" != "x1" -a "${USE_OPENAIS}" != "no"; then
  43434. pbxlibdir=""
  43435. # if --with-OPENAIS=DIR has been specified, use it.
  43436. if test "x${OPENAIS_DIR}" != "x"; then
  43437. if test -d ${OPENAIS_DIR}/lib; then
  43438. pbxlibdir="-L${OPENAIS_DIR}/lib"
  43439. else
  43440. pbxlibdir="-L${OPENAIS_DIR}"
  43441. fi
  43442. fi
  43443. pbxfuncname="saClmInitialize"
  43444. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43445. AST_OPENAIS_FOUND=yes
  43446. else
  43447. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43448. CFLAGS="${CFLAGS} "
  43449. as_ac_Lib=`$as_echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
  43450. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaClm" >&5
  43451. $as_echo_n "checking for ${pbxfuncname} in -lSaClm... " >&6; }
  43452. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43453. $as_echo_n "(cached) " >&6
  43454. else
  43455. ac_check_lib_save_LIBS=$LIBS
  43456. LIBS="-lSaClm ${pbxlibdir} -L/usr/lib/openais -L/usr/lib64/openais $LIBS"
  43457. cat >conftest.$ac_ext <<_ACEOF
  43458. /* confdefs.h. */
  43459. _ACEOF
  43460. cat confdefs.h >>conftest.$ac_ext
  43461. cat >>conftest.$ac_ext <<_ACEOF
  43462. /* end confdefs.h. */
  43463. /* Override any GCC internal prototype to avoid an error.
  43464. Use char because int might match the return type of a GCC
  43465. builtin and then its argument prototype would still apply. */
  43466. #ifdef __cplusplus
  43467. extern "C"
  43468. #endif
  43469. char ${pbxfuncname} ();
  43470. int
  43471. main ()
  43472. {
  43473. return ${pbxfuncname} ();
  43474. ;
  43475. return 0;
  43476. }
  43477. _ACEOF
  43478. rm -f conftest.$ac_objext conftest$ac_exeext
  43479. if { (ac_try="$ac_link"
  43480. case "(($ac_try" in
  43481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43482. *) ac_try_echo=$ac_try;;
  43483. esac
  43484. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43485. $as_echo "$ac_try_echo") >&5
  43486. (eval "$ac_link") 2>conftest.er1
  43487. ac_status=$?
  43488. grep -v '^ *+' conftest.er1 >conftest.err
  43489. rm -f conftest.er1
  43490. cat conftest.err >&5
  43491. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43492. (exit $ac_status); } && {
  43493. test -z "$ac_c_werror_flag" ||
  43494. test ! -s conftest.err
  43495. } && test -s conftest$ac_exeext && {
  43496. test "$cross_compiling" = yes ||
  43497. $as_test_x conftest$ac_exeext
  43498. }; then
  43499. eval "$as_ac_Lib=yes"
  43500. else
  43501. $as_echo "$as_me: failed program was:" >&5
  43502. sed 's/^/| /' conftest.$ac_ext >&5
  43503. eval "$as_ac_Lib=no"
  43504. fi
  43505. rm -rf conftest.dSYM
  43506. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43507. conftest$ac_exeext conftest.$ac_ext
  43508. LIBS=$ac_check_lib_save_LIBS
  43509. fi
  43510. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43511. $as_echo "$as_val"'`
  43512. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43513. $as_echo "$ac_res" >&6; }
  43514. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43515. $as_echo "$as_val"'`
  43516. if test "x$as_val" = x""yes; then
  43517. AST_OPENAIS_FOUND=yes
  43518. else
  43519. AST_OPENAIS_FOUND=no
  43520. fi
  43521. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43522. fi
  43523. # now check for the header.
  43524. if test "${AST_OPENAIS_FOUND}" = "yes"; then
  43525. OPENAIS_LIB="${pbxlibdir} -lSaClm -L/usr/lib/openais -L/usr/lib64/openais"
  43526. # if --with-OPENAIS=DIR has been specified, use it.
  43527. if test "x${OPENAIS_DIR}" != "x"; then
  43528. OPENAIS_INCLUDE="-I${OPENAIS_DIR}/include"
  43529. fi
  43530. OPENAIS_INCLUDE="${OPENAIS_INCLUDE} "
  43531. if test "xopenais/saClm.h" = "x" ; then # no header, assume found
  43532. OPENAIS_HEADER_FOUND="1"
  43533. else # check for the header
  43534. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43535. CPPFLAGS="${CPPFLAGS} ${OPENAIS_INCLUDE}"
  43536. if test "${ac_cv_header_openais_saClm_h+set}" = set; then
  43537. { $as_echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
  43538. $as_echo_n "checking for openais/saClm.h... " >&6; }
  43539. if test "${ac_cv_header_openais_saClm_h+set}" = set; then
  43540. $as_echo_n "(cached) " >&6
  43541. fi
  43542. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
  43543. $as_echo "$ac_cv_header_openais_saClm_h" >&6; }
  43544. else
  43545. # Is the header compilable?
  43546. { $as_echo "$as_me:$LINENO: checking openais/saClm.h usability" >&5
  43547. $as_echo_n "checking openais/saClm.h usability... " >&6; }
  43548. cat >conftest.$ac_ext <<_ACEOF
  43549. /* confdefs.h. */
  43550. _ACEOF
  43551. cat confdefs.h >>conftest.$ac_ext
  43552. cat >>conftest.$ac_ext <<_ACEOF
  43553. /* end confdefs.h. */
  43554. $ac_includes_default
  43555. #include <openais/saClm.h>
  43556. _ACEOF
  43557. rm -f conftest.$ac_objext
  43558. if { (ac_try="$ac_compile"
  43559. case "(($ac_try" in
  43560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43561. *) ac_try_echo=$ac_try;;
  43562. esac
  43563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43564. $as_echo "$ac_try_echo") >&5
  43565. (eval "$ac_compile") 2>conftest.er1
  43566. ac_status=$?
  43567. grep -v '^ *+' conftest.er1 >conftest.err
  43568. rm -f conftest.er1
  43569. cat conftest.err >&5
  43570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43571. (exit $ac_status); } && {
  43572. test -z "$ac_c_werror_flag" ||
  43573. test ! -s conftest.err
  43574. } && test -s conftest.$ac_objext; then
  43575. ac_header_compiler=yes
  43576. else
  43577. $as_echo "$as_me: failed program was:" >&5
  43578. sed 's/^/| /' conftest.$ac_ext >&5
  43579. ac_header_compiler=no
  43580. fi
  43581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43582. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43583. $as_echo "$ac_header_compiler" >&6; }
  43584. # Is the header present?
  43585. { $as_echo "$as_me:$LINENO: checking openais/saClm.h presence" >&5
  43586. $as_echo_n "checking openais/saClm.h presence... " >&6; }
  43587. cat >conftest.$ac_ext <<_ACEOF
  43588. /* confdefs.h. */
  43589. _ACEOF
  43590. cat confdefs.h >>conftest.$ac_ext
  43591. cat >>conftest.$ac_ext <<_ACEOF
  43592. /* end confdefs.h. */
  43593. #include <openais/saClm.h>
  43594. _ACEOF
  43595. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43596. case "(($ac_try" in
  43597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43598. *) ac_try_echo=$ac_try;;
  43599. esac
  43600. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43601. $as_echo "$ac_try_echo") >&5
  43602. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43603. ac_status=$?
  43604. grep -v '^ *+' conftest.er1 >conftest.err
  43605. rm -f conftest.er1
  43606. cat conftest.err >&5
  43607. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43608. (exit $ac_status); } >/dev/null && {
  43609. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43610. test ! -s conftest.err
  43611. }; then
  43612. ac_header_preproc=yes
  43613. else
  43614. $as_echo "$as_me: failed program was:" >&5
  43615. sed 's/^/| /' conftest.$ac_ext >&5
  43616. ac_header_preproc=no
  43617. fi
  43618. rm -f conftest.err conftest.$ac_ext
  43619. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43620. $as_echo "$ac_header_preproc" >&6; }
  43621. # So? What about this header?
  43622. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43623. yes:no: )
  43624. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  43625. $as_echo "$as_me: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43626. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the compiler's result" >&5
  43627. $as_echo "$as_me: WARNING: openais/saClm.h: proceeding with the compiler's result" >&2;}
  43628. ac_header_preproc=yes
  43629. ;;
  43630. no:yes:* )
  43631. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: present but cannot be compiled" >&5
  43632. $as_echo "$as_me: WARNING: openais/saClm.h: present but cannot be compiled" >&2;}
  43633. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&5
  43634. $as_echo "$as_me: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&2;}
  43635. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: see the Autoconf documentation" >&5
  43636. $as_echo "$as_me: WARNING: openais/saClm.h: see the Autoconf documentation" >&2;}
  43637. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&5
  43638. $as_echo "$as_me: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  43639. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&5
  43640. $as_echo "$as_me: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&2;}
  43641. { $as_echo "$as_me:$LINENO: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&5
  43642. $as_echo "$as_me: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&2;}
  43643. ( cat <<\_ASBOX
  43644. ## ------------------------------------------ ##
  43645. ## Report this to https://issues.asterisk.org ##
  43646. ## ------------------------------------------ ##
  43647. _ASBOX
  43648. ) | sed "s/^/$as_me: WARNING: /" >&2
  43649. ;;
  43650. esac
  43651. { $as_echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
  43652. $as_echo_n "checking for openais/saClm.h... " >&6; }
  43653. if test "${ac_cv_header_openais_saClm_h+set}" = set; then
  43654. $as_echo_n "(cached) " >&6
  43655. else
  43656. ac_cv_header_openais_saClm_h=$ac_header_preproc
  43657. fi
  43658. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
  43659. $as_echo "$ac_cv_header_openais_saClm_h" >&6; }
  43660. fi
  43661. if test "x$ac_cv_header_openais_saClm_h" = x""yes; then
  43662. OPENAIS_HEADER_FOUND=1
  43663. else
  43664. OPENAIS_HEADER_FOUND=0
  43665. fi
  43666. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  43667. fi
  43668. if test "x${OPENAIS_HEADER_FOUND}" = "x0" ; then
  43669. OPENAIS_LIB=""
  43670. OPENAIS_INCLUDE=""
  43671. else
  43672. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  43673. OPENAIS_LIB=""
  43674. fi
  43675. PBX_OPENAIS=1
  43676. cat >>confdefs.h <<_ACEOF
  43677. #define HAVE_OPENAIS 1
  43678. _ACEOF
  43679. fi
  43680. fi
  43681. fi
  43682. if test "${PBX_OPENAIS}" = 1; then
  43683. PBX_AIS=1
  43684. if test -n "${OPENAIS_DIR}"; then
  43685. AIS_INCLUDE="${OPENAIS_INCLUDE}/openais"
  43686. AIS_LIB="-lSaEvt ${OPENAIS_LIB}"
  43687. else
  43688. AIS_INCLUDE="-I/usr/include/openais"
  43689. AIS_LIB="-lSaClm -lSaEvt -L/usr/lib/openais -L/usr/lib64/openais"
  43690. fi
  43691. fi
  43692. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  43693. pbxlibdir=""
  43694. # if --with-SPEEX=DIR has been specified, use it.
  43695. if test "x${SPEEX_DIR}" != "x"; then
  43696. if test -d ${SPEEX_DIR}/lib; then
  43697. pbxlibdir="-L${SPEEX_DIR}/lib"
  43698. else
  43699. pbxlibdir="-L${SPEEX_DIR}"
  43700. fi
  43701. fi
  43702. pbxfuncname="speex_encode"
  43703. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43704. AST_SPEEX_FOUND=yes
  43705. else
  43706. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43707. CFLAGS="${CFLAGS} "
  43708. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  43709. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
  43710. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  43711. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43712. $as_echo_n "(cached) " >&6
  43713. else
  43714. ac_check_lib_save_LIBS=$LIBS
  43715. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  43716. cat >conftest.$ac_ext <<_ACEOF
  43717. /* confdefs.h. */
  43718. _ACEOF
  43719. cat confdefs.h >>conftest.$ac_ext
  43720. cat >>conftest.$ac_ext <<_ACEOF
  43721. /* end confdefs.h. */
  43722. /* Override any GCC internal prototype to avoid an error.
  43723. Use char because int might match the return type of a GCC
  43724. builtin and then its argument prototype would still apply. */
  43725. #ifdef __cplusplus
  43726. extern "C"
  43727. #endif
  43728. char ${pbxfuncname} ();
  43729. int
  43730. main ()
  43731. {
  43732. return ${pbxfuncname} ();
  43733. ;
  43734. return 0;
  43735. }
  43736. _ACEOF
  43737. rm -f conftest.$ac_objext conftest$ac_exeext
  43738. if { (ac_try="$ac_link"
  43739. case "(($ac_try" in
  43740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43741. *) ac_try_echo=$ac_try;;
  43742. esac
  43743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43744. $as_echo "$ac_try_echo") >&5
  43745. (eval "$ac_link") 2>conftest.er1
  43746. ac_status=$?
  43747. grep -v '^ *+' conftest.er1 >conftest.err
  43748. rm -f conftest.er1
  43749. cat conftest.err >&5
  43750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43751. (exit $ac_status); } && {
  43752. test -z "$ac_c_werror_flag" ||
  43753. test ! -s conftest.err
  43754. } && test -s conftest$ac_exeext && {
  43755. test "$cross_compiling" = yes ||
  43756. $as_test_x conftest$ac_exeext
  43757. }; then
  43758. eval "$as_ac_Lib=yes"
  43759. else
  43760. $as_echo "$as_me: failed program was:" >&5
  43761. sed 's/^/| /' conftest.$ac_ext >&5
  43762. eval "$as_ac_Lib=no"
  43763. fi
  43764. rm -rf conftest.dSYM
  43765. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  43766. conftest$ac_exeext conftest.$ac_ext
  43767. LIBS=$ac_check_lib_save_LIBS
  43768. fi
  43769. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  43770. $as_echo "$as_val"'`
  43771. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  43772. $as_echo "$ac_res" >&6; }
  43773. as_val=`eval 'as_val=${'$as_ac_Lib'}
  43774. $as_echo "$as_val"'`
  43775. if test "x$as_val" = x""yes; then
  43776. AST_SPEEX_FOUND=yes
  43777. else
  43778. AST_SPEEX_FOUND=no
  43779. fi
  43780. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  43781. fi
  43782. # now check for the header.
  43783. if test "${AST_SPEEX_FOUND}" = "yes"; then
  43784. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  43785. # if --with-SPEEX=DIR has been specified, use it.
  43786. if test "x${SPEEX_DIR}" != "x"; then
  43787. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  43788. fi
  43789. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  43790. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  43791. SPEEX_HEADER_FOUND="1"
  43792. else # check for the header
  43793. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  43794. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  43795. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  43796. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  43797. $as_echo_n "checking for speex/speex.h... " >&6; }
  43798. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  43799. $as_echo_n "(cached) " >&6
  43800. fi
  43801. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  43802. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  43803. else
  43804. # Is the header compilable?
  43805. { $as_echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
  43806. $as_echo_n "checking speex/speex.h usability... " >&6; }
  43807. cat >conftest.$ac_ext <<_ACEOF
  43808. /* confdefs.h. */
  43809. _ACEOF
  43810. cat confdefs.h >>conftest.$ac_ext
  43811. cat >>conftest.$ac_ext <<_ACEOF
  43812. /* end confdefs.h. */
  43813. $ac_includes_default
  43814. #include <speex/speex.h>
  43815. _ACEOF
  43816. rm -f conftest.$ac_objext
  43817. if { (ac_try="$ac_compile"
  43818. case "(($ac_try" in
  43819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43820. *) ac_try_echo=$ac_try;;
  43821. esac
  43822. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43823. $as_echo "$ac_try_echo") >&5
  43824. (eval "$ac_compile") 2>conftest.er1
  43825. ac_status=$?
  43826. grep -v '^ *+' conftest.er1 >conftest.err
  43827. rm -f conftest.er1
  43828. cat conftest.err >&5
  43829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43830. (exit $ac_status); } && {
  43831. test -z "$ac_c_werror_flag" ||
  43832. test ! -s conftest.err
  43833. } && test -s conftest.$ac_objext; then
  43834. ac_header_compiler=yes
  43835. else
  43836. $as_echo "$as_me: failed program was:" >&5
  43837. sed 's/^/| /' conftest.$ac_ext >&5
  43838. ac_header_compiler=no
  43839. fi
  43840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43841. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43842. $as_echo "$ac_header_compiler" >&6; }
  43843. # Is the header present?
  43844. { $as_echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
  43845. $as_echo_n "checking speex/speex.h presence... " >&6; }
  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. #include <speex/speex.h>
  43853. _ACEOF
  43854. if { (ac_try="$ac_cpp conftest.$ac_ext"
  43855. case "(($ac_try" in
  43856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43857. *) ac_try_echo=$ac_try;;
  43858. esac
  43859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43860. $as_echo "$ac_try_echo") >&5
  43861. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  43862. ac_status=$?
  43863. grep -v '^ *+' conftest.er1 >conftest.err
  43864. rm -f conftest.er1
  43865. cat conftest.err >&5
  43866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43867. (exit $ac_status); } >/dev/null && {
  43868. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  43869. test ! -s conftest.err
  43870. }; then
  43871. ac_header_preproc=yes
  43872. else
  43873. $as_echo "$as_me: failed program was:" >&5
  43874. sed 's/^/| /' conftest.$ac_ext >&5
  43875. ac_header_preproc=no
  43876. fi
  43877. rm -f conftest.err conftest.$ac_ext
  43878. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43879. $as_echo "$ac_header_preproc" >&6; }
  43880. # So? What about this header?
  43881. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43882. yes:no: )
  43883. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
  43884. $as_echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43885. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
  43886. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
  43887. ac_header_preproc=yes
  43888. ;;
  43889. no:yes:* )
  43890. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
  43891. $as_echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
  43892. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
  43893. $as_echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
  43894. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
  43895. $as_echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
  43896. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
  43897. $as_echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
  43898. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
  43899. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
  43900. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
  43901. $as_echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
  43902. ( cat <<\_ASBOX
  43903. ## ------------------------------------------ ##
  43904. ## Report this to https://issues.asterisk.org ##
  43905. ## ------------------------------------------ ##
  43906. _ASBOX
  43907. ) | sed "s/^/$as_me: WARNING: /" >&2
  43908. ;;
  43909. esac
  43910. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  43911. $as_echo_n "checking for speex/speex.h... " >&6; }
  43912. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  43913. $as_echo_n "(cached) " >&6
  43914. else
  43915. ac_cv_header_speex_speex_h=$ac_header_preproc
  43916. fi
  43917. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  43918. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  43919. fi
  43920. if test "x$ac_cv_header_speex_speex_h" = x""yes; then
  43921. SPEEX_HEADER_FOUND=1
  43922. else
  43923. SPEEX_HEADER_FOUND=0
  43924. fi
  43925. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  43926. fi
  43927. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  43928. SPEEX_LIB=""
  43929. SPEEX_INCLUDE=""
  43930. else
  43931. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  43932. SPEEX_LIB=""
  43933. fi
  43934. PBX_SPEEX=1
  43935. cat >>confdefs.h <<_ACEOF
  43936. #define HAVE_SPEEX 1
  43937. _ACEOF
  43938. fi
  43939. fi
  43940. fi
  43941. # See if the main speex library contains the preprocess functions
  43942. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  43943. pbxlibdir=""
  43944. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  43945. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  43946. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  43947. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  43948. else
  43949. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  43950. fi
  43951. fi
  43952. pbxfuncname="speex_preprocess_ctl"
  43953. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  43954. AST_SPEEX_PREPROCESS_FOUND=yes
  43955. else
  43956. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  43957. CFLAGS="${CFLAGS} "
  43958. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  43959. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
  43960. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  43961. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  43962. $as_echo_n "(cached) " >&6
  43963. else
  43964. ac_check_lib_save_LIBS=$LIBS
  43965. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  43966. cat >conftest.$ac_ext <<_ACEOF
  43967. /* confdefs.h. */
  43968. _ACEOF
  43969. cat confdefs.h >>conftest.$ac_ext
  43970. cat >>conftest.$ac_ext <<_ACEOF
  43971. /* end confdefs.h. */
  43972. /* Override any GCC internal prototype to avoid an error.
  43973. Use char because int might match the return type of a GCC
  43974. builtin and then its argument prototype would still apply. */
  43975. #ifdef __cplusplus
  43976. extern "C"
  43977. #endif
  43978. char ${pbxfuncname} ();
  43979. int
  43980. main ()
  43981. {
  43982. return ${pbxfuncname} ();
  43983. ;
  43984. return 0;
  43985. }
  43986. _ACEOF
  43987. rm -f conftest.$ac_objext conftest$ac_exeext
  43988. if { (ac_try="$ac_link"
  43989. case "(($ac_try" in
  43990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  43991. *) ac_try_echo=$ac_try;;
  43992. esac
  43993. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  43994. $as_echo "$ac_try_echo") >&5
  43995. (eval "$ac_link") 2>conftest.er1
  43996. ac_status=$?
  43997. grep -v '^ *+' conftest.er1 >conftest.err
  43998. rm -f conftest.er1
  43999. cat conftest.err >&5
  44000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44001. (exit $ac_status); } && {
  44002. test -z "$ac_c_werror_flag" ||
  44003. test ! -s conftest.err
  44004. } && test -s conftest$ac_exeext && {
  44005. test "$cross_compiling" = yes ||
  44006. $as_test_x conftest$ac_exeext
  44007. }; then
  44008. eval "$as_ac_Lib=yes"
  44009. else
  44010. $as_echo "$as_me: failed program was:" >&5
  44011. sed 's/^/| /' conftest.$ac_ext >&5
  44012. eval "$as_ac_Lib=no"
  44013. fi
  44014. rm -rf conftest.dSYM
  44015. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44016. conftest$ac_exeext conftest.$ac_ext
  44017. LIBS=$ac_check_lib_save_LIBS
  44018. fi
  44019. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44020. $as_echo "$as_val"'`
  44021. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44022. $as_echo "$ac_res" >&6; }
  44023. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44024. $as_echo "$as_val"'`
  44025. if test "x$as_val" = x""yes; then
  44026. AST_SPEEX_PREPROCESS_FOUND=yes
  44027. else
  44028. AST_SPEEX_PREPROCESS_FOUND=no
  44029. fi
  44030. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44031. fi
  44032. # now check for the header.
  44033. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  44034. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  44035. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  44036. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  44037. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  44038. fi
  44039. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  44040. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  44041. SPEEX_PREPROCESS_HEADER_FOUND="1"
  44042. else # check for the header
  44043. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44044. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  44045. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44046. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44047. $as_echo_n "checking for speex/speex.h... " >&6; }
  44048. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44049. $as_echo_n "(cached) " >&6
  44050. fi
  44051. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44052. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44053. else
  44054. # Is the header compilable?
  44055. { $as_echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
  44056. $as_echo_n "checking speex/speex.h usability... " >&6; }
  44057. cat >conftest.$ac_ext <<_ACEOF
  44058. /* confdefs.h. */
  44059. _ACEOF
  44060. cat confdefs.h >>conftest.$ac_ext
  44061. cat >>conftest.$ac_ext <<_ACEOF
  44062. /* end confdefs.h. */
  44063. $ac_includes_default
  44064. #include <speex/speex.h>
  44065. _ACEOF
  44066. rm -f conftest.$ac_objext
  44067. if { (ac_try="$ac_compile"
  44068. case "(($ac_try" in
  44069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44070. *) ac_try_echo=$ac_try;;
  44071. esac
  44072. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44073. $as_echo "$ac_try_echo") >&5
  44074. (eval "$ac_compile") 2>conftest.er1
  44075. ac_status=$?
  44076. grep -v '^ *+' conftest.er1 >conftest.err
  44077. rm -f conftest.er1
  44078. cat conftest.err >&5
  44079. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44080. (exit $ac_status); } && {
  44081. test -z "$ac_c_werror_flag" ||
  44082. test ! -s conftest.err
  44083. } && test -s conftest.$ac_objext; then
  44084. ac_header_compiler=yes
  44085. else
  44086. $as_echo "$as_me: failed program was:" >&5
  44087. sed 's/^/| /' conftest.$ac_ext >&5
  44088. ac_header_compiler=no
  44089. fi
  44090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44091. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44092. $as_echo "$ac_header_compiler" >&6; }
  44093. # Is the header present?
  44094. { $as_echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
  44095. $as_echo_n "checking speex/speex.h presence... " >&6; }
  44096. cat >conftest.$ac_ext <<_ACEOF
  44097. /* confdefs.h. */
  44098. _ACEOF
  44099. cat confdefs.h >>conftest.$ac_ext
  44100. cat >>conftest.$ac_ext <<_ACEOF
  44101. /* end confdefs.h. */
  44102. #include <speex/speex.h>
  44103. _ACEOF
  44104. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44105. case "(($ac_try" in
  44106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44107. *) ac_try_echo=$ac_try;;
  44108. esac
  44109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44110. $as_echo "$ac_try_echo") >&5
  44111. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44112. ac_status=$?
  44113. grep -v '^ *+' conftest.er1 >conftest.err
  44114. rm -f conftest.er1
  44115. cat conftest.err >&5
  44116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44117. (exit $ac_status); } >/dev/null && {
  44118. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44119. test ! -s conftest.err
  44120. }; then
  44121. ac_header_preproc=yes
  44122. else
  44123. $as_echo "$as_me: failed program was:" >&5
  44124. sed 's/^/| /' conftest.$ac_ext >&5
  44125. ac_header_preproc=no
  44126. fi
  44127. rm -f conftest.err conftest.$ac_ext
  44128. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44129. $as_echo "$ac_header_preproc" >&6; }
  44130. # So? What about this header?
  44131. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44132. yes:no: )
  44133. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44134. $as_echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44135. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
  44136. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
  44137. ac_header_preproc=yes
  44138. ;;
  44139. no:yes:* )
  44140. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
  44141. $as_echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
  44142. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
  44143. $as_echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
  44144. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
  44145. $as_echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
  44146. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
  44147. $as_echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44148. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
  44149. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
  44150. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
  44151. $as_echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
  44152. ( cat <<\_ASBOX
  44153. ## ------------------------------------------ ##
  44154. ## Report this to https://issues.asterisk.org ##
  44155. ## ------------------------------------------ ##
  44156. _ASBOX
  44157. ) | sed "s/^/$as_me: WARNING: /" >&2
  44158. ;;
  44159. esac
  44160. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44161. $as_echo_n "checking for speex/speex.h... " >&6; }
  44162. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44163. $as_echo_n "(cached) " >&6
  44164. else
  44165. ac_cv_header_speex_speex_h=$ac_header_preproc
  44166. fi
  44167. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44168. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44169. fi
  44170. if test "x$ac_cv_header_speex_speex_h" = x""yes; then
  44171. SPEEX_PREPROCESS_HEADER_FOUND=1
  44172. else
  44173. SPEEX_PREPROCESS_HEADER_FOUND=0
  44174. fi
  44175. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44176. fi
  44177. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  44178. SPEEX_PREPROCESS_LIB=""
  44179. SPEEX_PREPROCESS_INCLUDE=""
  44180. else
  44181. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44182. SPEEX_PREPROCESS_LIB=""
  44183. fi
  44184. PBX_SPEEX_PREPROCESS=1
  44185. cat >>confdefs.h <<_ACEOF
  44186. #define HAVE_SPEEX_PREPROCESS 1
  44187. _ACEOF
  44188. fi
  44189. fi
  44190. fi
  44191. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  44192. PBX_SPEEX_PREPROCESS=1
  44193. fi
  44194. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  44195. pbxlibdir=""
  44196. # if --with-SPEEXDSP=DIR has been specified, use it.
  44197. if test "x${SPEEXDSP_DIR}" != "x"; then
  44198. if test -d ${SPEEXDSP_DIR}/lib; then
  44199. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  44200. else
  44201. pbxlibdir="-L${SPEEXDSP_DIR}"
  44202. fi
  44203. fi
  44204. pbxfuncname="speex_preprocess_ctl"
  44205. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44206. AST_SPEEXDSP_FOUND=yes
  44207. else
  44208. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44209. CFLAGS="${CFLAGS} "
  44210. as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
  44211. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
  44212. $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
  44213. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44214. $as_echo_n "(cached) " >&6
  44215. else
  44216. ac_check_lib_save_LIBS=$LIBS
  44217. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  44218. cat >conftest.$ac_ext <<_ACEOF
  44219. /* confdefs.h. */
  44220. _ACEOF
  44221. cat confdefs.h >>conftest.$ac_ext
  44222. cat >>conftest.$ac_ext <<_ACEOF
  44223. /* end confdefs.h. */
  44224. /* Override any GCC internal prototype to avoid an error.
  44225. Use char because int might match the return type of a GCC
  44226. builtin and then its argument prototype would still apply. */
  44227. #ifdef __cplusplus
  44228. extern "C"
  44229. #endif
  44230. char ${pbxfuncname} ();
  44231. int
  44232. main ()
  44233. {
  44234. return ${pbxfuncname} ();
  44235. ;
  44236. return 0;
  44237. }
  44238. _ACEOF
  44239. rm -f conftest.$ac_objext conftest$ac_exeext
  44240. if { (ac_try="$ac_link"
  44241. case "(($ac_try" in
  44242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44243. *) ac_try_echo=$ac_try;;
  44244. esac
  44245. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44246. $as_echo "$ac_try_echo") >&5
  44247. (eval "$ac_link") 2>conftest.er1
  44248. ac_status=$?
  44249. grep -v '^ *+' conftest.er1 >conftest.err
  44250. rm -f conftest.er1
  44251. cat conftest.err >&5
  44252. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44253. (exit $ac_status); } && {
  44254. test -z "$ac_c_werror_flag" ||
  44255. test ! -s conftest.err
  44256. } && test -s conftest$ac_exeext && {
  44257. test "$cross_compiling" = yes ||
  44258. $as_test_x conftest$ac_exeext
  44259. }; then
  44260. eval "$as_ac_Lib=yes"
  44261. else
  44262. $as_echo "$as_me: failed program was:" >&5
  44263. sed 's/^/| /' conftest.$ac_ext >&5
  44264. eval "$as_ac_Lib=no"
  44265. fi
  44266. rm -rf conftest.dSYM
  44267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44268. conftest$ac_exeext conftest.$ac_ext
  44269. LIBS=$ac_check_lib_save_LIBS
  44270. fi
  44271. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44272. $as_echo "$as_val"'`
  44273. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44274. $as_echo "$ac_res" >&6; }
  44275. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44276. $as_echo "$as_val"'`
  44277. if test "x$as_val" = x""yes; then
  44278. AST_SPEEXDSP_FOUND=yes
  44279. else
  44280. AST_SPEEXDSP_FOUND=no
  44281. fi
  44282. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44283. fi
  44284. # now check for the header.
  44285. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  44286. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  44287. # if --with-SPEEXDSP=DIR has been specified, use it.
  44288. if test "x${SPEEXDSP_DIR}" != "x"; then
  44289. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  44290. fi
  44291. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  44292. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  44293. SPEEXDSP_HEADER_FOUND="1"
  44294. else # check for the header
  44295. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44296. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  44297. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44298. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44299. $as_echo_n "checking for speex/speex.h... " >&6; }
  44300. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44301. $as_echo_n "(cached) " >&6
  44302. fi
  44303. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44304. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44305. else
  44306. # Is the header compilable?
  44307. { $as_echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
  44308. $as_echo_n "checking speex/speex.h usability... " >&6; }
  44309. cat >conftest.$ac_ext <<_ACEOF
  44310. /* confdefs.h. */
  44311. _ACEOF
  44312. cat confdefs.h >>conftest.$ac_ext
  44313. cat >>conftest.$ac_ext <<_ACEOF
  44314. /* end confdefs.h. */
  44315. $ac_includes_default
  44316. #include <speex/speex.h>
  44317. _ACEOF
  44318. rm -f conftest.$ac_objext
  44319. if { (ac_try="$ac_compile"
  44320. case "(($ac_try" in
  44321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44322. *) ac_try_echo=$ac_try;;
  44323. esac
  44324. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44325. $as_echo "$ac_try_echo") >&5
  44326. (eval "$ac_compile") 2>conftest.er1
  44327. ac_status=$?
  44328. grep -v '^ *+' conftest.er1 >conftest.err
  44329. rm -f conftest.er1
  44330. cat conftest.err >&5
  44331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44332. (exit $ac_status); } && {
  44333. test -z "$ac_c_werror_flag" ||
  44334. test ! -s conftest.err
  44335. } && test -s conftest.$ac_objext; then
  44336. ac_header_compiler=yes
  44337. else
  44338. $as_echo "$as_me: failed program was:" >&5
  44339. sed 's/^/| /' conftest.$ac_ext >&5
  44340. ac_header_compiler=no
  44341. fi
  44342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44343. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44344. $as_echo "$ac_header_compiler" >&6; }
  44345. # Is the header present?
  44346. { $as_echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
  44347. $as_echo_n "checking speex/speex.h presence... " >&6; }
  44348. cat >conftest.$ac_ext <<_ACEOF
  44349. /* confdefs.h. */
  44350. _ACEOF
  44351. cat confdefs.h >>conftest.$ac_ext
  44352. cat >>conftest.$ac_ext <<_ACEOF
  44353. /* end confdefs.h. */
  44354. #include <speex/speex.h>
  44355. _ACEOF
  44356. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44357. case "(($ac_try" in
  44358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44359. *) ac_try_echo=$ac_try;;
  44360. esac
  44361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44362. $as_echo "$ac_try_echo") >&5
  44363. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44364. ac_status=$?
  44365. grep -v '^ *+' conftest.er1 >conftest.err
  44366. rm -f conftest.er1
  44367. cat conftest.err >&5
  44368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44369. (exit $ac_status); } >/dev/null && {
  44370. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44371. test ! -s conftest.err
  44372. }; then
  44373. ac_header_preproc=yes
  44374. else
  44375. $as_echo "$as_me: failed program was:" >&5
  44376. sed 's/^/| /' conftest.$ac_ext >&5
  44377. ac_header_preproc=no
  44378. fi
  44379. rm -f conftest.err conftest.$ac_ext
  44380. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44381. $as_echo "$ac_header_preproc" >&6; }
  44382. # So? What about this header?
  44383. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44384. yes:no: )
  44385. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44386. $as_echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44387. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
  44388. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
  44389. ac_header_preproc=yes
  44390. ;;
  44391. no:yes:* )
  44392. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
  44393. $as_echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
  44394. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
  44395. $as_echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
  44396. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
  44397. $as_echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
  44398. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
  44399. $as_echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44400. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
  44401. $as_echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
  44402. { $as_echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
  44403. $as_echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
  44404. ( cat <<\_ASBOX
  44405. ## ------------------------------------------ ##
  44406. ## Report this to https://issues.asterisk.org ##
  44407. ## ------------------------------------------ ##
  44408. _ASBOX
  44409. ) | sed "s/^/$as_me: WARNING: /" >&2
  44410. ;;
  44411. esac
  44412. { $as_echo "$as_me:$LINENO: checking for speex/speex.h" >&5
  44413. $as_echo_n "checking for speex/speex.h... " >&6; }
  44414. if test "${ac_cv_header_speex_speex_h+set}" = set; then
  44415. $as_echo_n "(cached) " >&6
  44416. else
  44417. ac_cv_header_speex_speex_h=$ac_header_preproc
  44418. fi
  44419. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
  44420. $as_echo "$ac_cv_header_speex_speex_h" >&6; }
  44421. fi
  44422. if test "x$ac_cv_header_speex_speex_h" = x""yes; then
  44423. SPEEXDSP_HEADER_FOUND=1
  44424. else
  44425. SPEEXDSP_HEADER_FOUND=0
  44426. fi
  44427. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44428. fi
  44429. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  44430. SPEEXDSP_LIB=""
  44431. SPEEXDSP_INCLUDE=""
  44432. else
  44433. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44434. SPEEXDSP_LIB=""
  44435. fi
  44436. PBX_SPEEXDSP=1
  44437. cat >>confdefs.h <<_ACEOF
  44438. #define HAVE_SPEEXDSP 1
  44439. _ACEOF
  44440. fi
  44441. fi
  44442. fi
  44443. if test "${PBX_SPEEXDSP}" = 1; then
  44444. PBX_SPEEX_PREPROCESS=1
  44445. fi
  44446. if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
  44447. pbxlibdir=""
  44448. # if --with-SQLITE=DIR has been specified, use it.
  44449. if test "x${SQLITE_DIR}" != "x"; then
  44450. if test -d ${SQLITE_DIR}/lib; then
  44451. pbxlibdir="-L${SQLITE_DIR}/lib"
  44452. else
  44453. pbxlibdir="-L${SQLITE_DIR}"
  44454. fi
  44455. fi
  44456. pbxfuncname="sqlite_exec"
  44457. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44458. AST_SQLITE_FOUND=yes
  44459. else
  44460. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44461. CFLAGS="${CFLAGS} "
  44462. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
  44463. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
  44464. $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
  44465. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44466. $as_echo_n "(cached) " >&6
  44467. else
  44468. ac_check_lib_save_LIBS=$LIBS
  44469. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  44470. cat >conftest.$ac_ext <<_ACEOF
  44471. /* confdefs.h. */
  44472. _ACEOF
  44473. cat confdefs.h >>conftest.$ac_ext
  44474. cat >>conftest.$ac_ext <<_ACEOF
  44475. /* end confdefs.h. */
  44476. /* Override any GCC internal prototype to avoid an error.
  44477. Use char because int might match the return type of a GCC
  44478. builtin and then its argument prototype would still apply. */
  44479. #ifdef __cplusplus
  44480. extern "C"
  44481. #endif
  44482. char ${pbxfuncname} ();
  44483. int
  44484. main ()
  44485. {
  44486. return ${pbxfuncname} ();
  44487. ;
  44488. return 0;
  44489. }
  44490. _ACEOF
  44491. rm -f conftest.$ac_objext conftest$ac_exeext
  44492. if { (ac_try="$ac_link"
  44493. case "(($ac_try" in
  44494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44495. *) ac_try_echo=$ac_try;;
  44496. esac
  44497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44498. $as_echo "$ac_try_echo") >&5
  44499. (eval "$ac_link") 2>conftest.er1
  44500. ac_status=$?
  44501. grep -v '^ *+' conftest.er1 >conftest.err
  44502. rm -f conftest.er1
  44503. cat conftest.err >&5
  44504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44505. (exit $ac_status); } && {
  44506. test -z "$ac_c_werror_flag" ||
  44507. test ! -s conftest.err
  44508. } && test -s conftest$ac_exeext && {
  44509. test "$cross_compiling" = yes ||
  44510. $as_test_x conftest$ac_exeext
  44511. }; then
  44512. eval "$as_ac_Lib=yes"
  44513. else
  44514. $as_echo "$as_me: failed program was:" >&5
  44515. sed 's/^/| /' conftest.$ac_ext >&5
  44516. eval "$as_ac_Lib=no"
  44517. fi
  44518. rm -rf conftest.dSYM
  44519. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44520. conftest$ac_exeext conftest.$ac_ext
  44521. LIBS=$ac_check_lib_save_LIBS
  44522. fi
  44523. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44524. $as_echo "$as_val"'`
  44525. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44526. $as_echo "$ac_res" >&6; }
  44527. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44528. $as_echo "$as_val"'`
  44529. if test "x$as_val" = x""yes; then
  44530. AST_SQLITE_FOUND=yes
  44531. else
  44532. AST_SQLITE_FOUND=no
  44533. fi
  44534. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44535. fi
  44536. # now check for the header.
  44537. if test "${AST_SQLITE_FOUND}" = "yes"; then
  44538. SQLITE_LIB="${pbxlibdir} -lsqlite "
  44539. # if --with-SQLITE=DIR has been specified, use it.
  44540. if test "x${SQLITE_DIR}" != "x"; then
  44541. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  44542. fi
  44543. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  44544. if test "xsqlite.h" = "x" ; then # no header, assume found
  44545. SQLITE_HEADER_FOUND="1"
  44546. else # check for the header
  44547. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44548. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  44549. if test "${ac_cv_header_sqlite_h+set}" = set; then
  44550. { $as_echo "$as_me:$LINENO: checking for sqlite.h" >&5
  44551. $as_echo_n "checking for sqlite.h... " >&6; }
  44552. if test "${ac_cv_header_sqlite_h+set}" = set; then
  44553. $as_echo_n "(cached) " >&6
  44554. fi
  44555. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
  44556. $as_echo "$ac_cv_header_sqlite_h" >&6; }
  44557. else
  44558. # Is the header compilable?
  44559. { $as_echo "$as_me:$LINENO: checking sqlite.h usability" >&5
  44560. $as_echo_n "checking sqlite.h usability... " >&6; }
  44561. cat >conftest.$ac_ext <<_ACEOF
  44562. /* confdefs.h. */
  44563. _ACEOF
  44564. cat confdefs.h >>conftest.$ac_ext
  44565. cat >>conftest.$ac_ext <<_ACEOF
  44566. /* end confdefs.h. */
  44567. $ac_includes_default
  44568. #include <sqlite.h>
  44569. _ACEOF
  44570. rm -f conftest.$ac_objext
  44571. if { (ac_try="$ac_compile"
  44572. case "(($ac_try" in
  44573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44574. *) ac_try_echo=$ac_try;;
  44575. esac
  44576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44577. $as_echo "$ac_try_echo") >&5
  44578. (eval "$ac_compile") 2>conftest.er1
  44579. ac_status=$?
  44580. grep -v '^ *+' conftest.er1 >conftest.err
  44581. rm -f conftest.er1
  44582. cat conftest.err >&5
  44583. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44584. (exit $ac_status); } && {
  44585. test -z "$ac_c_werror_flag" ||
  44586. test ! -s conftest.err
  44587. } && test -s conftest.$ac_objext; then
  44588. ac_header_compiler=yes
  44589. else
  44590. $as_echo "$as_me: failed program was:" >&5
  44591. sed 's/^/| /' conftest.$ac_ext >&5
  44592. ac_header_compiler=no
  44593. fi
  44594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44595. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44596. $as_echo "$ac_header_compiler" >&6; }
  44597. # Is the header present?
  44598. { $as_echo "$as_me:$LINENO: checking sqlite.h presence" >&5
  44599. $as_echo_n "checking sqlite.h presence... " >&6; }
  44600. cat >conftest.$ac_ext <<_ACEOF
  44601. /* confdefs.h. */
  44602. _ACEOF
  44603. cat confdefs.h >>conftest.$ac_ext
  44604. cat >>conftest.$ac_ext <<_ACEOF
  44605. /* end confdefs.h. */
  44606. #include <sqlite.h>
  44607. _ACEOF
  44608. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44609. case "(($ac_try" in
  44610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44611. *) ac_try_echo=$ac_try;;
  44612. esac
  44613. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44614. $as_echo "$ac_try_echo") >&5
  44615. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44616. ac_status=$?
  44617. grep -v '^ *+' conftest.er1 >conftest.err
  44618. rm -f conftest.er1
  44619. cat conftest.err >&5
  44620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44621. (exit $ac_status); } >/dev/null && {
  44622. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44623. test ! -s conftest.err
  44624. }; then
  44625. ac_header_preproc=yes
  44626. else
  44627. $as_echo "$as_me: failed program was:" >&5
  44628. sed 's/^/| /' conftest.$ac_ext >&5
  44629. ac_header_preproc=no
  44630. fi
  44631. rm -f conftest.err conftest.$ac_ext
  44632. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44633. $as_echo "$ac_header_preproc" >&6; }
  44634. # So? What about this header?
  44635. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44636. yes:no: )
  44637. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44638. $as_echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44639. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
  44640. $as_echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
  44641. ac_header_preproc=yes
  44642. ;;
  44643. no:yes:* )
  44644. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
  44645. $as_echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
  44646. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
  44647. $as_echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
  44648. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
  44649. $as_echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
  44650. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
  44651. $as_echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44652. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
  44653. $as_echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
  44654. { $as_echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
  44655. $as_echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
  44656. ( cat <<\_ASBOX
  44657. ## ------------------------------------------ ##
  44658. ## Report this to https://issues.asterisk.org ##
  44659. ## ------------------------------------------ ##
  44660. _ASBOX
  44661. ) | sed "s/^/$as_me: WARNING: /" >&2
  44662. ;;
  44663. esac
  44664. { $as_echo "$as_me:$LINENO: checking for sqlite.h" >&5
  44665. $as_echo_n "checking for sqlite.h... " >&6; }
  44666. if test "${ac_cv_header_sqlite_h+set}" = set; then
  44667. $as_echo_n "(cached) " >&6
  44668. else
  44669. ac_cv_header_sqlite_h=$ac_header_preproc
  44670. fi
  44671. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
  44672. $as_echo "$ac_cv_header_sqlite_h" >&6; }
  44673. fi
  44674. if test "x$ac_cv_header_sqlite_h" = x""yes; then
  44675. SQLITE_HEADER_FOUND=1
  44676. else
  44677. SQLITE_HEADER_FOUND=0
  44678. fi
  44679. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44680. fi
  44681. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  44682. SQLITE_LIB=""
  44683. SQLITE_INCLUDE=""
  44684. else
  44685. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44686. SQLITE_LIB=""
  44687. fi
  44688. PBX_SQLITE=1
  44689. cat >>confdefs.h <<_ACEOF
  44690. #define HAVE_SQLITE 1
  44691. _ACEOF
  44692. fi
  44693. fi
  44694. fi
  44695. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  44696. pbxlibdir=""
  44697. # if --with-SQLITE3=DIR has been specified, use it.
  44698. if test "x${SQLITE3_DIR}" != "x"; then
  44699. if test -d ${SQLITE3_DIR}/lib; then
  44700. pbxlibdir="-L${SQLITE3_DIR}/lib"
  44701. else
  44702. pbxlibdir="-L${SQLITE3_DIR}"
  44703. fi
  44704. fi
  44705. pbxfuncname="sqlite3_open"
  44706. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44707. AST_SQLITE3_FOUND=yes
  44708. else
  44709. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44710. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  44711. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
  44712. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
  44713. $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
  44714. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44715. $as_echo_n "(cached) " >&6
  44716. else
  44717. ac_check_lib_save_LIBS=$LIBS
  44718. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  44719. cat >conftest.$ac_ext <<_ACEOF
  44720. /* confdefs.h. */
  44721. _ACEOF
  44722. cat confdefs.h >>conftest.$ac_ext
  44723. cat >>conftest.$ac_ext <<_ACEOF
  44724. /* end confdefs.h. */
  44725. /* Override any GCC internal prototype to avoid an error.
  44726. Use char because int might match the return type of a GCC
  44727. builtin and then its argument prototype would still apply. */
  44728. #ifdef __cplusplus
  44729. extern "C"
  44730. #endif
  44731. char ${pbxfuncname} ();
  44732. int
  44733. main ()
  44734. {
  44735. return ${pbxfuncname} ();
  44736. ;
  44737. return 0;
  44738. }
  44739. _ACEOF
  44740. rm -f conftest.$ac_objext conftest$ac_exeext
  44741. if { (ac_try="$ac_link"
  44742. case "(($ac_try" in
  44743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44744. *) ac_try_echo=$ac_try;;
  44745. esac
  44746. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44747. $as_echo "$ac_try_echo") >&5
  44748. (eval "$ac_link") 2>conftest.er1
  44749. ac_status=$?
  44750. grep -v '^ *+' conftest.er1 >conftest.err
  44751. rm -f conftest.er1
  44752. cat conftest.err >&5
  44753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44754. (exit $ac_status); } && {
  44755. test -z "$ac_c_werror_flag" ||
  44756. test ! -s conftest.err
  44757. } && test -s conftest$ac_exeext && {
  44758. test "$cross_compiling" = yes ||
  44759. $as_test_x conftest$ac_exeext
  44760. }; then
  44761. eval "$as_ac_Lib=yes"
  44762. else
  44763. $as_echo "$as_me: failed program was:" >&5
  44764. sed 's/^/| /' conftest.$ac_ext >&5
  44765. eval "$as_ac_Lib=no"
  44766. fi
  44767. rm -rf conftest.dSYM
  44768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  44769. conftest$ac_exeext conftest.$ac_ext
  44770. LIBS=$ac_check_lib_save_LIBS
  44771. fi
  44772. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  44773. $as_echo "$as_val"'`
  44774. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  44775. $as_echo "$ac_res" >&6; }
  44776. as_val=`eval 'as_val=${'$as_ac_Lib'}
  44777. $as_echo "$as_val"'`
  44778. if test "x$as_val" = x""yes; then
  44779. AST_SQLITE3_FOUND=yes
  44780. else
  44781. AST_SQLITE3_FOUND=no
  44782. fi
  44783. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  44784. fi
  44785. # now check for the header.
  44786. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  44787. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  44788. # if --with-SQLITE3=DIR has been specified, use it.
  44789. if test "x${SQLITE3_DIR}" != "x"; then
  44790. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  44791. fi
  44792. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  44793. if test "xsqlite3.h" = "x" ; then # no header, assume found
  44794. SQLITE3_HEADER_FOUND="1"
  44795. else # check for the header
  44796. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  44797. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  44798. if test "${ac_cv_header_sqlite3_h+set}" = set; then
  44799. { $as_echo "$as_me:$LINENO: checking for sqlite3.h" >&5
  44800. $as_echo_n "checking for sqlite3.h... " >&6; }
  44801. if test "${ac_cv_header_sqlite3_h+set}" = set; then
  44802. $as_echo_n "(cached) " >&6
  44803. fi
  44804. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
  44805. $as_echo "$ac_cv_header_sqlite3_h" >&6; }
  44806. else
  44807. # Is the header compilable?
  44808. { $as_echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
  44809. $as_echo_n "checking sqlite3.h usability... " >&6; }
  44810. cat >conftest.$ac_ext <<_ACEOF
  44811. /* confdefs.h. */
  44812. _ACEOF
  44813. cat confdefs.h >>conftest.$ac_ext
  44814. cat >>conftest.$ac_ext <<_ACEOF
  44815. /* end confdefs.h. */
  44816. $ac_includes_default
  44817. #include <sqlite3.h>
  44818. _ACEOF
  44819. rm -f conftest.$ac_objext
  44820. if { (ac_try="$ac_compile"
  44821. case "(($ac_try" in
  44822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44823. *) ac_try_echo=$ac_try;;
  44824. esac
  44825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44826. $as_echo "$ac_try_echo") >&5
  44827. (eval "$ac_compile") 2>conftest.er1
  44828. ac_status=$?
  44829. grep -v '^ *+' conftest.er1 >conftest.err
  44830. rm -f conftest.er1
  44831. cat conftest.err >&5
  44832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44833. (exit $ac_status); } && {
  44834. test -z "$ac_c_werror_flag" ||
  44835. test ! -s conftest.err
  44836. } && test -s conftest.$ac_objext; then
  44837. ac_header_compiler=yes
  44838. else
  44839. $as_echo "$as_me: failed program was:" >&5
  44840. sed 's/^/| /' conftest.$ac_ext >&5
  44841. ac_header_compiler=no
  44842. fi
  44843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44844. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44845. $as_echo "$ac_header_compiler" >&6; }
  44846. # Is the header present?
  44847. { $as_echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
  44848. $as_echo_n "checking sqlite3.h presence... " >&6; }
  44849. cat >conftest.$ac_ext <<_ACEOF
  44850. /* confdefs.h. */
  44851. _ACEOF
  44852. cat confdefs.h >>conftest.$ac_ext
  44853. cat >>conftest.$ac_ext <<_ACEOF
  44854. /* end confdefs.h. */
  44855. #include <sqlite3.h>
  44856. _ACEOF
  44857. if { (ac_try="$ac_cpp conftest.$ac_ext"
  44858. case "(($ac_try" in
  44859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44860. *) ac_try_echo=$ac_try;;
  44861. esac
  44862. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44863. $as_echo "$ac_try_echo") >&5
  44864. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  44865. ac_status=$?
  44866. grep -v '^ *+' conftest.er1 >conftest.err
  44867. rm -f conftest.er1
  44868. cat conftest.err >&5
  44869. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44870. (exit $ac_status); } >/dev/null && {
  44871. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  44872. test ! -s conftest.err
  44873. }; then
  44874. ac_header_preproc=yes
  44875. else
  44876. $as_echo "$as_me: failed program was:" >&5
  44877. sed 's/^/| /' conftest.$ac_ext >&5
  44878. ac_header_preproc=no
  44879. fi
  44880. rm -f conftest.err conftest.$ac_ext
  44881. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44882. $as_echo "$ac_header_preproc" >&6; }
  44883. # So? What about this header?
  44884. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44885. yes:no: )
  44886. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
  44887. $as_echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44888. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
  44889. $as_echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
  44890. ac_header_preproc=yes
  44891. ;;
  44892. no:yes:* )
  44893. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
  44894. $as_echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
  44895. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
  44896. $as_echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
  44897. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
  44898. $as_echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
  44899. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
  44900. $as_echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
  44901. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
  44902. $as_echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
  44903. { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
  44904. $as_echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
  44905. ( cat <<\_ASBOX
  44906. ## ------------------------------------------ ##
  44907. ## Report this to https://issues.asterisk.org ##
  44908. ## ------------------------------------------ ##
  44909. _ASBOX
  44910. ) | sed "s/^/$as_me: WARNING: /" >&2
  44911. ;;
  44912. esac
  44913. { $as_echo "$as_me:$LINENO: checking for sqlite3.h" >&5
  44914. $as_echo_n "checking for sqlite3.h... " >&6; }
  44915. if test "${ac_cv_header_sqlite3_h+set}" = set; then
  44916. $as_echo_n "(cached) " >&6
  44917. else
  44918. ac_cv_header_sqlite3_h=$ac_header_preproc
  44919. fi
  44920. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
  44921. $as_echo "$ac_cv_header_sqlite3_h" >&6; }
  44922. fi
  44923. if test "x$ac_cv_header_sqlite3_h" = x""yes; then
  44924. SQLITE3_HEADER_FOUND=1
  44925. else
  44926. SQLITE3_HEADER_FOUND=0
  44927. fi
  44928. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  44929. fi
  44930. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  44931. SQLITE3_LIB=""
  44932. SQLITE3_INCLUDE=""
  44933. else
  44934. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  44935. SQLITE3_LIB=""
  44936. fi
  44937. PBX_SQLITE3=1
  44938. cat >>confdefs.h <<_ACEOF
  44939. #define HAVE_SQLITE3 1
  44940. _ACEOF
  44941. fi
  44942. fi
  44943. fi
  44944. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  44945. pbxlibdir=""
  44946. # if --with-CRYPTO=DIR has been specified, use it.
  44947. if test "x${CRYPTO_DIR}" != "x"; then
  44948. if test -d ${CRYPTO_DIR}/lib; then
  44949. pbxlibdir="-L${CRYPTO_DIR}/lib"
  44950. else
  44951. pbxlibdir="-L${CRYPTO_DIR}"
  44952. fi
  44953. fi
  44954. pbxfuncname="AES_encrypt"
  44955. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  44956. AST_CRYPTO_FOUND=yes
  44957. else
  44958. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  44959. CFLAGS="${CFLAGS} "
  44960. as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
  44961. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
  44962. $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
  44963. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  44964. $as_echo_n "(cached) " >&6
  44965. else
  44966. ac_check_lib_save_LIBS=$LIBS
  44967. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  44968. cat >conftest.$ac_ext <<_ACEOF
  44969. /* confdefs.h. */
  44970. _ACEOF
  44971. cat confdefs.h >>conftest.$ac_ext
  44972. cat >>conftest.$ac_ext <<_ACEOF
  44973. /* end confdefs.h. */
  44974. /* Override any GCC internal prototype to avoid an error.
  44975. Use char because int might match the return type of a GCC
  44976. builtin and then its argument prototype would still apply. */
  44977. #ifdef __cplusplus
  44978. extern "C"
  44979. #endif
  44980. char ${pbxfuncname} ();
  44981. int
  44982. main ()
  44983. {
  44984. return ${pbxfuncname} ();
  44985. ;
  44986. return 0;
  44987. }
  44988. _ACEOF
  44989. rm -f conftest.$ac_objext conftest$ac_exeext
  44990. if { (ac_try="$ac_link"
  44991. case "(($ac_try" in
  44992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  44993. *) ac_try_echo=$ac_try;;
  44994. esac
  44995. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  44996. $as_echo "$ac_try_echo") >&5
  44997. (eval "$ac_link") 2>conftest.er1
  44998. ac_status=$?
  44999. grep -v '^ *+' conftest.er1 >conftest.err
  45000. rm -f conftest.er1
  45001. cat conftest.err >&5
  45002. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45003. (exit $ac_status); } && {
  45004. test -z "$ac_c_werror_flag" ||
  45005. test ! -s conftest.err
  45006. } && test -s conftest$ac_exeext && {
  45007. test "$cross_compiling" = yes ||
  45008. $as_test_x conftest$ac_exeext
  45009. }; then
  45010. eval "$as_ac_Lib=yes"
  45011. else
  45012. $as_echo "$as_me: failed program was:" >&5
  45013. sed 's/^/| /' conftest.$ac_ext >&5
  45014. eval "$as_ac_Lib=no"
  45015. fi
  45016. rm -rf conftest.dSYM
  45017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45018. conftest$ac_exeext conftest.$ac_ext
  45019. LIBS=$ac_check_lib_save_LIBS
  45020. fi
  45021. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  45022. $as_echo "$as_val"'`
  45023. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45024. $as_echo "$ac_res" >&6; }
  45025. as_val=`eval 'as_val=${'$as_ac_Lib'}
  45026. $as_echo "$as_val"'`
  45027. if test "x$as_val" = x""yes; then
  45028. AST_CRYPTO_FOUND=yes
  45029. else
  45030. AST_CRYPTO_FOUND=no
  45031. fi
  45032. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  45033. fi
  45034. # now check for the header.
  45035. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  45036. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  45037. # if --with-CRYPTO=DIR has been specified, use it.
  45038. if test "x${CRYPTO_DIR}" != "x"; then
  45039. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  45040. fi
  45041. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  45042. if test "xopenssl/aes.h" = "x" ; then # no header, assume found
  45043. CRYPTO_HEADER_FOUND="1"
  45044. else # check for the header
  45045. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  45046. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  45047. if test "${ac_cv_header_openssl_aes_h+set}" = set; then
  45048. { $as_echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
  45049. $as_echo_n "checking for openssl/aes.h... " >&6; }
  45050. if test "${ac_cv_header_openssl_aes_h+set}" = set; then
  45051. $as_echo_n "(cached) " >&6
  45052. fi
  45053. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
  45054. $as_echo "$ac_cv_header_openssl_aes_h" >&6; }
  45055. else
  45056. # Is the header compilable?
  45057. { $as_echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
  45058. $as_echo_n "checking openssl/aes.h usability... " >&6; }
  45059. cat >conftest.$ac_ext <<_ACEOF
  45060. /* confdefs.h. */
  45061. _ACEOF
  45062. cat confdefs.h >>conftest.$ac_ext
  45063. cat >>conftest.$ac_ext <<_ACEOF
  45064. /* end confdefs.h. */
  45065. $ac_includes_default
  45066. #include <openssl/aes.h>
  45067. _ACEOF
  45068. rm -f conftest.$ac_objext
  45069. if { (ac_try="$ac_compile"
  45070. case "(($ac_try" in
  45071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45072. *) ac_try_echo=$ac_try;;
  45073. esac
  45074. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45075. $as_echo "$ac_try_echo") >&5
  45076. (eval "$ac_compile") 2>conftest.er1
  45077. ac_status=$?
  45078. grep -v '^ *+' conftest.er1 >conftest.err
  45079. rm -f conftest.er1
  45080. cat conftest.err >&5
  45081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45082. (exit $ac_status); } && {
  45083. test -z "$ac_c_werror_flag" ||
  45084. test ! -s conftest.err
  45085. } && test -s conftest.$ac_objext; then
  45086. ac_header_compiler=yes
  45087. else
  45088. $as_echo "$as_me: failed program was:" >&5
  45089. sed 's/^/| /' conftest.$ac_ext >&5
  45090. ac_header_compiler=no
  45091. fi
  45092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45093. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45094. $as_echo "$ac_header_compiler" >&6; }
  45095. # Is the header present?
  45096. { $as_echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
  45097. $as_echo_n "checking openssl/aes.h presence... " >&6; }
  45098. cat >conftest.$ac_ext <<_ACEOF
  45099. /* confdefs.h. */
  45100. _ACEOF
  45101. cat confdefs.h >>conftest.$ac_ext
  45102. cat >>conftest.$ac_ext <<_ACEOF
  45103. /* end confdefs.h. */
  45104. #include <openssl/aes.h>
  45105. _ACEOF
  45106. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45107. case "(($ac_try" in
  45108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45109. *) ac_try_echo=$ac_try;;
  45110. esac
  45111. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45112. $as_echo "$ac_try_echo") >&5
  45113. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45114. ac_status=$?
  45115. grep -v '^ *+' conftest.er1 >conftest.err
  45116. rm -f conftest.er1
  45117. cat conftest.err >&5
  45118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45119. (exit $ac_status); } >/dev/null && {
  45120. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45121. test ! -s conftest.err
  45122. }; then
  45123. ac_header_preproc=yes
  45124. else
  45125. $as_echo "$as_me: failed program was:" >&5
  45126. sed 's/^/| /' conftest.$ac_ext >&5
  45127. ac_header_preproc=no
  45128. fi
  45129. rm -f conftest.err conftest.$ac_ext
  45130. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45131. $as_echo "$ac_header_preproc" >&6; }
  45132. # So? What about this header?
  45133. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45134. yes:no: )
  45135. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45136. $as_echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45137. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
  45138. $as_echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
  45139. ac_header_preproc=yes
  45140. ;;
  45141. no:yes:* )
  45142. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
  45143. $as_echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
  45144. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
  45145. $as_echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
  45146. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
  45147. $as_echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
  45148. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
  45149. $as_echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45150. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
  45151. $as_echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
  45152. { $as_echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
  45153. $as_echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
  45154. ( cat <<\_ASBOX
  45155. ## ------------------------------------------ ##
  45156. ## Report this to https://issues.asterisk.org ##
  45157. ## ------------------------------------------ ##
  45158. _ASBOX
  45159. ) | sed "s/^/$as_me: WARNING: /" >&2
  45160. ;;
  45161. esac
  45162. { $as_echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
  45163. $as_echo_n "checking for openssl/aes.h... " >&6; }
  45164. if test "${ac_cv_header_openssl_aes_h+set}" = set; then
  45165. $as_echo_n "(cached) " >&6
  45166. else
  45167. ac_cv_header_openssl_aes_h=$ac_header_preproc
  45168. fi
  45169. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
  45170. $as_echo "$ac_cv_header_openssl_aes_h" >&6; }
  45171. fi
  45172. if test "x$ac_cv_header_openssl_aes_h" = x""yes; then
  45173. CRYPTO_HEADER_FOUND=1
  45174. else
  45175. CRYPTO_HEADER_FOUND=0
  45176. fi
  45177. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  45178. fi
  45179. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  45180. CRYPTO_LIB=""
  45181. CRYPTO_INCLUDE=""
  45182. else
  45183. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  45184. CRYPTO_LIB=""
  45185. fi
  45186. PBX_CRYPTO=1
  45187. cat >>confdefs.h <<_ACEOF
  45188. #define HAVE_CRYPTO 1
  45189. _ACEOF
  45190. fi
  45191. fi
  45192. fi
  45193. if test "$PBX_CRYPTO" = "1";
  45194. then
  45195. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  45196. pbxlibdir=""
  45197. # if --with-OPENSSL=DIR has been specified, use it.
  45198. if test "x${OPENSSL_DIR}" != "x"; then
  45199. if test -d ${OPENSSL_DIR}/lib; then
  45200. pbxlibdir="-L${OPENSSL_DIR}/lib"
  45201. else
  45202. pbxlibdir="-L${OPENSSL_DIR}"
  45203. fi
  45204. fi
  45205. pbxfuncname="SSL_connect"
  45206. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  45207. AST_OPENSSL_FOUND=yes
  45208. else
  45209. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  45210. CFLAGS="${CFLAGS} "
  45211. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  45212. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
  45213. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  45214. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  45215. $as_echo_n "(cached) " >&6
  45216. else
  45217. ac_check_lib_save_LIBS=$LIBS
  45218. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  45219. cat >conftest.$ac_ext <<_ACEOF
  45220. /* confdefs.h. */
  45221. _ACEOF
  45222. cat confdefs.h >>conftest.$ac_ext
  45223. cat >>conftest.$ac_ext <<_ACEOF
  45224. /* end confdefs.h. */
  45225. /* Override any GCC internal prototype to avoid an error.
  45226. Use char because int might match the return type of a GCC
  45227. builtin and then its argument prototype would still apply. */
  45228. #ifdef __cplusplus
  45229. extern "C"
  45230. #endif
  45231. char ${pbxfuncname} ();
  45232. int
  45233. main ()
  45234. {
  45235. return ${pbxfuncname} ();
  45236. ;
  45237. return 0;
  45238. }
  45239. _ACEOF
  45240. rm -f conftest.$ac_objext conftest$ac_exeext
  45241. if { (ac_try="$ac_link"
  45242. case "(($ac_try" in
  45243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45244. *) ac_try_echo=$ac_try;;
  45245. esac
  45246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45247. $as_echo "$ac_try_echo") >&5
  45248. (eval "$ac_link") 2>conftest.er1
  45249. ac_status=$?
  45250. grep -v '^ *+' conftest.er1 >conftest.err
  45251. rm -f conftest.er1
  45252. cat conftest.err >&5
  45253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45254. (exit $ac_status); } && {
  45255. test -z "$ac_c_werror_flag" ||
  45256. test ! -s conftest.err
  45257. } && test -s conftest$ac_exeext && {
  45258. test "$cross_compiling" = yes ||
  45259. $as_test_x conftest$ac_exeext
  45260. }; then
  45261. eval "$as_ac_Lib=yes"
  45262. else
  45263. $as_echo "$as_me: failed program was:" >&5
  45264. sed 's/^/| /' conftest.$ac_ext >&5
  45265. eval "$as_ac_Lib=no"
  45266. fi
  45267. rm -rf conftest.dSYM
  45268. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45269. conftest$ac_exeext conftest.$ac_ext
  45270. LIBS=$ac_check_lib_save_LIBS
  45271. fi
  45272. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  45273. $as_echo "$as_val"'`
  45274. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45275. $as_echo "$ac_res" >&6; }
  45276. as_val=`eval 'as_val=${'$as_ac_Lib'}
  45277. $as_echo "$as_val"'`
  45278. if test "x$as_val" = x""yes; then
  45279. AST_OPENSSL_FOUND=yes
  45280. else
  45281. AST_OPENSSL_FOUND=no
  45282. fi
  45283. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  45284. fi
  45285. # now check for the header.
  45286. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  45287. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  45288. # if --with-OPENSSL=DIR has been specified, use it.
  45289. if test "x${OPENSSL_DIR}" != "x"; then
  45290. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  45291. fi
  45292. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  45293. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  45294. OPENSSL_HEADER_FOUND="1"
  45295. else # check for the header
  45296. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  45297. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  45298. if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
  45299. { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
  45300. $as_echo_n "checking for openssl/ssl.h... " >&6; }
  45301. if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
  45302. $as_echo_n "(cached) " >&6
  45303. fi
  45304. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
  45305. $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
  45306. else
  45307. # Is the header compilable?
  45308. { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
  45309. $as_echo_n "checking openssl/ssl.h usability... " >&6; }
  45310. cat >conftest.$ac_ext <<_ACEOF
  45311. /* confdefs.h. */
  45312. _ACEOF
  45313. cat confdefs.h >>conftest.$ac_ext
  45314. cat >>conftest.$ac_ext <<_ACEOF
  45315. /* end confdefs.h. */
  45316. $ac_includes_default
  45317. #include <openssl/ssl.h>
  45318. _ACEOF
  45319. rm -f conftest.$ac_objext
  45320. if { (ac_try="$ac_compile"
  45321. case "(($ac_try" in
  45322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45323. *) ac_try_echo=$ac_try;;
  45324. esac
  45325. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45326. $as_echo "$ac_try_echo") >&5
  45327. (eval "$ac_compile") 2>conftest.er1
  45328. ac_status=$?
  45329. grep -v '^ *+' conftest.er1 >conftest.err
  45330. rm -f conftest.er1
  45331. cat conftest.err >&5
  45332. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45333. (exit $ac_status); } && {
  45334. test -z "$ac_c_werror_flag" ||
  45335. test ! -s conftest.err
  45336. } && test -s conftest.$ac_objext; then
  45337. ac_header_compiler=yes
  45338. else
  45339. $as_echo "$as_me: failed program was:" >&5
  45340. sed 's/^/| /' conftest.$ac_ext >&5
  45341. ac_header_compiler=no
  45342. fi
  45343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45344. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45345. $as_echo "$ac_header_compiler" >&6; }
  45346. # Is the header present?
  45347. { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
  45348. $as_echo_n "checking openssl/ssl.h presence... " >&6; }
  45349. cat >conftest.$ac_ext <<_ACEOF
  45350. /* confdefs.h. */
  45351. _ACEOF
  45352. cat confdefs.h >>conftest.$ac_ext
  45353. cat >>conftest.$ac_ext <<_ACEOF
  45354. /* end confdefs.h. */
  45355. #include <openssl/ssl.h>
  45356. _ACEOF
  45357. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45358. case "(($ac_try" in
  45359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45360. *) ac_try_echo=$ac_try;;
  45361. esac
  45362. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45363. $as_echo "$ac_try_echo") >&5
  45364. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45365. ac_status=$?
  45366. grep -v '^ *+' conftest.er1 >conftest.err
  45367. rm -f conftest.er1
  45368. cat conftest.err >&5
  45369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45370. (exit $ac_status); } >/dev/null && {
  45371. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45372. test ! -s conftest.err
  45373. }; then
  45374. ac_header_preproc=yes
  45375. else
  45376. $as_echo "$as_me: failed program was:" >&5
  45377. sed 's/^/| /' conftest.$ac_ext >&5
  45378. ac_header_preproc=no
  45379. fi
  45380. rm -f conftest.err conftest.$ac_ext
  45381. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45382. $as_echo "$ac_header_preproc" >&6; }
  45383. # So? What about this header?
  45384. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45385. yes:no: )
  45386. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45387. $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45388. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
  45389. $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
  45390. ac_header_preproc=yes
  45391. ;;
  45392. no:yes:* )
  45393. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
  45394. $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
  45395. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
  45396. $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
  45397. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
  45398. $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
  45399. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
  45400. $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45401. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
  45402. $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
  45403. { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
  45404. $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
  45405. ( cat <<\_ASBOX
  45406. ## ------------------------------------------ ##
  45407. ## Report this to https://issues.asterisk.org ##
  45408. ## ------------------------------------------ ##
  45409. _ASBOX
  45410. ) | sed "s/^/$as_me: WARNING: /" >&2
  45411. ;;
  45412. esac
  45413. { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
  45414. $as_echo_n "checking for openssl/ssl.h... " >&6; }
  45415. if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
  45416. $as_echo_n "(cached) " >&6
  45417. else
  45418. ac_cv_header_openssl_ssl_h=$ac_header_preproc
  45419. fi
  45420. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
  45421. $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
  45422. fi
  45423. if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
  45424. OPENSSL_HEADER_FOUND=1
  45425. else
  45426. OPENSSL_HEADER_FOUND=0
  45427. fi
  45428. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  45429. fi
  45430. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  45431. OPENSSL_LIB=""
  45432. OPENSSL_INCLUDE=""
  45433. else
  45434. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  45435. OPENSSL_LIB=""
  45436. fi
  45437. PBX_OPENSSL=1
  45438. cat >>confdefs.h <<_ACEOF
  45439. #define HAVE_OPENSSL 1
  45440. _ACEOF
  45441. fi
  45442. fi
  45443. fi
  45444. fi
  45445. if test "$PBX_OPENSSL" = "1";
  45446. then
  45447. # if OSPTK has not been checked and is not excluded
  45448. if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
  45449. # if --with-osptk=DIR has been specified, use it.
  45450. if test "x${OSPTK_DIR}" != "x"; then
  45451. osptk_cflags="-I${OSPTK_DIR}/include"
  45452. osptk_ldflags="-L${OSPTK_DIR}/lib"
  45453. else
  45454. osptk_cflags=""
  45455. osptk_ldflags=""
  45456. fi
  45457. # check for the header
  45458. osptk_saved_cppflags="${CPPFLAGS}"
  45459. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  45460. if test "${ac_cv_header_osp_osp_h+set}" = set; then
  45461. { $as_echo "$as_me:$LINENO: checking for osp/osp.h" >&5
  45462. $as_echo_n "checking for osp/osp.h... " >&6; }
  45463. if test "${ac_cv_header_osp_osp_h+set}" = set; then
  45464. $as_echo_n "(cached) " >&6
  45465. fi
  45466. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
  45467. $as_echo "$ac_cv_header_osp_osp_h" >&6; }
  45468. else
  45469. # Is the header compilable?
  45470. { $as_echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
  45471. $as_echo_n "checking osp/osp.h usability... " >&6; }
  45472. cat >conftest.$ac_ext <<_ACEOF
  45473. /* confdefs.h. */
  45474. _ACEOF
  45475. cat confdefs.h >>conftest.$ac_ext
  45476. cat >>conftest.$ac_ext <<_ACEOF
  45477. /* end confdefs.h. */
  45478. $ac_includes_default
  45479. #include <osp/osp.h>
  45480. _ACEOF
  45481. rm -f conftest.$ac_objext
  45482. if { (ac_try="$ac_compile"
  45483. case "(($ac_try" in
  45484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45485. *) ac_try_echo=$ac_try;;
  45486. esac
  45487. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45488. $as_echo "$ac_try_echo") >&5
  45489. (eval "$ac_compile") 2>conftest.er1
  45490. ac_status=$?
  45491. grep -v '^ *+' conftest.er1 >conftest.err
  45492. rm -f conftest.er1
  45493. cat conftest.err >&5
  45494. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45495. (exit $ac_status); } && {
  45496. test -z "$ac_c_werror_flag" ||
  45497. test ! -s conftest.err
  45498. } && test -s conftest.$ac_objext; then
  45499. ac_header_compiler=yes
  45500. else
  45501. $as_echo "$as_me: failed program was:" >&5
  45502. sed 's/^/| /' conftest.$ac_ext >&5
  45503. ac_header_compiler=no
  45504. fi
  45505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45506. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45507. $as_echo "$ac_header_compiler" >&6; }
  45508. # Is the header present?
  45509. { $as_echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
  45510. $as_echo_n "checking osp/osp.h presence... " >&6; }
  45511. cat >conftest.$ac_ext <<_ACEOF
  45512. /* confdefs.h. */
  45513. _ACEOF
  45514. cat confdefs.h >>conftest.$ac_ext
  45515. cat >>conftest.$ac_ext <<_ACEOF
  45516. /* end confdefs.h. */
  45517. #include <osp/osp.h>
  45518. _ACEOF
  45519. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45520. case "(($ac_try" in
  45521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45522. *) ac_try_echo=$ac_try;;
  45523. esac
  45524. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45525. $as_echo "$ac_try_echo") >&5
  45526. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45527. ac_status=$?
  45528. grep -v '^ *+' conftest.er1 >conftest.err
  45529. rm -f conftest.er1
  45530. cat conftest.err >&5
  45531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45532. (exit $ac_status); } >/dev/null && {
  45533. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45534. test ! -s conftest.err
  45535. }; then
  45536. ac_header_preproc=yes
  45537. else
  45538. $as_echo "$as_me: failed program was:" >&5
  45539. sed 's/^/| /' conftest.$ac_ext >&5
  45540. ac_header_preproc=no
  45541. fi
  45542. rm -f conftest.err conftest.$ac_ext
  45543. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45544. $as_echo "$ac_header_preproc" >&6; }
  45545. # So? What about this header?
  45546. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45547. yes:no: )
  45548. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45549. $as_echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45550. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
  45551. $as_echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
  45552. ac_header_preproc=yes
  45553. ;;
  45554. no:yes:* )
  45555. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
  45556. $as_echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
  45557. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
  45558. $as_echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
  45559. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
  45560. $as_echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
  45561. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
  45562. $as_echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45563. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
  45564. $as_echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
  45565. { $as_echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
  45566. $as_echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
  45567. ( cat <<\_ASBOX
  45568. ## ------------------------------------------ ##
  45569. ## Report this to https://issues.asterisk.org ##
  45570. ## ------------------------------------------ ##
  45571. _ASBOX
  45572. ) | sed "s/^/$as_me: WARNING: /" >&2
  45573. ;;
  45574. esac
  45575. { $as_echo "$as_me:$LINENO: checking for osp/osp.h" >&5
  45576. $as_echo_n "checking for osp/osp.h... " >&6; }
  45577. if test "${ac_cv_header_osp_osp_h+set}" = set; then
  45578. $as_echo_n "(cached) " >&6
  45579. else
  45580. ac_cv_header_osp_osp_h=$ac_header_preproc
  45581. fi
  45582. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
  45583. $as_echo "$ac_cv_header_osp_osp_h" >&6; }
  45584. fi
  45585. if test "x$ac_cv_header_osp_osp_h" = x""yes; then
  45586. osptk_header_found=yes
  45587. else
  45588. osptk_header_found=no
  45589. fi
  45590. CPPFLAGS="${osptk_saved_cppflags}"
  45591. # check for the library
  45592. if test "${osptk_header_found}" = "yes"; then
  45593. osptk_extralibs="-lssl -lcrypto"
  45594. { $as_echo "$as_me:$LINENO: checking for OSPPInit in -losptk" >&5
  45595. $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
  45596. if test "${ac_cv_lib_osptk_OSPPInit+set}" = set; then
  45597. $as_echo_n "(cached) " >&6
  45598. else
  45599. ac_check_lib_save_LIBS=$LIBS
  45600. LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $LIBS"
  45601. cat >conftest.$ac_ext <<_ACEOF
  45602. /* confdefs.h. */
  45603. _ACEOF
  45604. cat confdefs.h >>conftest.$ac_ext
  45605. cat >>conftest.$ac_ext <<_ACEOF
  45606. /* end confdefs.h. */
  45607. /* Override any GCC internal prototype to avoid an error.
  45608. Use char because int might match the return type of a GCC
  45609. builtin and then its argument prototype would still apply. */
  45610. #ifdef __cplusplus
  45611. extern "C"
  45612. #endif
  45613. char OSPPInit ();
  45614. int
  45615. main ()
  45616. {
  45617. return OSPPInit ();
  45618. ;
  45619. return 0;
  45620. }
  45621. _ACEOF
  45622. rm -f conftest.$ac_objext conftest$ac_exeext
  45623. if { (ac_try="$ac_link"
  45624. case "(($ac_try" in
  45625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45626. *) ac_try_echo=$ac_try;;
  45627. esac
  45628. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45629. $as_echo "$ac_try_echo") >&5
  45630. (eval "$ac_link") 2>conftest.er1
  45631. ac_status=$?
  45632. grep -v '^ *+' conftest.er1 >conftest.err
  45633. rm -f conftest.er1
  45634. cat conftest.err >&5
  45635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45636. (exit $ac_status); } && {
  45637. test -z "$ac_c_werror_flag" ||
  45638. test ! -s conftest.err
  45639. } && test -s conftest$ac_exeext && {
  45640. test "$cross_compiling" = yes ||
  45641. $as_test_x conftest$ac_exeext
  45642. }; then
  45643. ac_cv_lib_osptk_OSPPInit=yes
  45644. else
  45645. $as_echo "$as_me: failed program was:" >&5
  45646. sed 's/^/| /' conftest.$ac_ext >&5
  45647. ac_cv_lib_osptk_OSPPInit=no
  45648. fi
  45649. rm -rf conftest.dSYM
  45650. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45651. conftest$ac_exeext conftest.$ac_ext
  45652. LIBS=$ac_check_lib_save_LIBS
  45653. fi
  45654. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPInit" >&5
  45655. $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
  45656. if test "x$ac_cv_lib_osptk_OSPPInit" = x""yes; then
  45657. osptk_library_found=yes
  45658. else
  45659. osptk_library_found=no
  45660. fi
  45661. # check OSP Toolkit version
  45662. if test "${osptk_library_found}" = "yes"; then
  45663. { $as_echo "$as_me:$LINENO: checking if OSP Toolkit version is compatible with app_osplookup" >&5
  45664. $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
  45665. osptk_saved_cppflags="${CPPFLAGS}"
  45666. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  45667. if test "$cross_compiling" = yes; then
  45668. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  45669. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  45670. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  45671. See \`config.log' for more details." >&5
  45672. $as_echo "$as_me: error: cannot run test program while cross compiling
  45673. See \`config.log' for more details." >&2;}
  45674. { (exit 1); exit 1; }; }; }
  45675. else
  45676. cat >conftest.$ac_ext <<_ACEOF
  45677. /* confdefs.h. */
  45678. _ACEOF
  45679. cat confdefs.h >>conftest.$ac_ext
  45680. cat >>conftest.$ac_ext <<_ACEOF
  45681. /* end confdefs.h. */
  45682. #include <osp/osp.h>
  45683. int main(void) {
  45684. int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
  45685. int req = 3 * 10000 + 6 * 100 + 0;
  45686. return (ver < req) ? 1 : 0;
  45687. }
  45688. _ACEOF
  45689. rm -f conftest$ac_exeext
  45690. if { (ac_try="$ac_link"
  45691. case "(($ac_try" in
  45692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45693. *) ac_try_echo=$ac_try;;
  45694. esac
  45695. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45696. $as_echo "$ac_try_echo") >&5
  45697. (eval "$ac_link") 2>&5
  45698. ac_status=$?
  45699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45700. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  45701. { (case "(($ac_try" in
  45702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45703. *) ac_try_echo=$ac_try;;
  45704. esac
  45705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45706. $as_echo "$ac_try_echo") >&5
  45707. (eval "$ac_try") 2>&5
  45708. ac_status=$?
  45709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45710. (exit $ac_status); }; }; then
  45711. osptk_compatible=yes
  45712. else
  45713. $as_echo "$as_me: program exited with status $ac_status" >&5
  45714. $as_echo "$as_me: failed program was:" >&5
  45715. sed 's/^/| /' conftest.$ac_ext >&5
  45716. ( exit $ac_status )
  45717. osptk_compatible=no
  45718. fi
  45719. rm -rf conftest.dSYM
  45720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  45721. fi
  45722. CPPFLAGS="${osptk_saved_cppflags}"
  45723. if test "${osptk_compatible}" = "yes"; then
  45724. { $as_echo "$as_me:$LINENO: result: yes" >&5
  45725. $as_echo "yes" >&6; }
  45726. PBX_OSPTK=1
  45727. OSPTK_INCLUDE="${osptk_cflags}"
  45728. OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
  45729. cat >>confdefs.h <<_ACEOF
  45730. #define HAVE_OSPTK 1
  45731. _ACEOF
  45732. else
  45733. { $as_echo "$as_me:$LINENO: result: no" >&5
  45734. $as_echo "no" >&6; }
  45735. fi
  45736. fi
  45737. fi
  45738. fi
  45739. fi
  45740. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  45741. pbxlibdir=""
  45742. # if --with-SRTP=DIR has been specified, use it.
  45743. if test "x${SRTP_DIR}" != "x"; then
  45744. if test -d ${SRTP_DIR}/lib; then
  45745. pbxlibdir="-L${SRTP_DIR}/lib"
  45746. else
  45747. pbxlibdir="-L${SRTP_DIR}"
  45748. fi
  45749. fi
  45750. pbxfuncname="srtp_init"
  45751. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  45752. AST_SRTP_FOUND=yes
  45753. else
  45754. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  45755. CFLAGS="${CFLAGS} "
  45756. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  45757. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsrtp" >&5
  45758. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  45759. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  45760. $as_echo_n "(cached) " >&6
  45761. else
  45762. ac_check_lib_save_LIBS=$LIBS
  45763. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  45764. cat >conftest.$ac_ext <<_ACEOF
  45765. /* confdefs.h. */
  45766. _ACEOF
  45767. cat confdefs.h >>conftest.$ac_ext
  45768. cat >>conftest.$ac_ext <<_ACEOF
  45769. /* end confdefs.h. */
  45770. /* Override any GCC internal prototype to avoid an error.
  45771. Use char because int might match the return type of a GCC
  45772. builtin and then its argument prototype would still apply. */
  45773. #ifdef __cplusplus
  45774. extern "C"
  45775. #endif
  45776. char ${pbxfuncname} ();
  45777. int
  45778. main ()
  45779. {
  45780. return ${pbxfuncname} ();
  45781. ;
  45782. return 0;
  45783. }
  45784. _ACEOF
  45785. rm -f conftest.$ac_objext conftest$ac_exeext
  45786. if { (ac_try="$ac_link"
  45787. case "(($ac_try" in
  45788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45789. *) ac_try_echo=$ac_try;;
  45790. esac
  45791. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45792. $as_echo "$ac_try_echo") >&5
  45793. (eval "$ac_link") 2>conftest.er1
  45794. ac_status=$?
  45795. grep -v '^ *+' conftest.er1 >conftest.err
  45796. rm -f conftest.er1
  45797. cat conftest.err >&5
  45798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45799. (exit $ac_status); } && {
  45800. test -z "$ac_c_werror_flag" ||
  45801. test ! -s conftest.err
  45802. } && test -s conftest$ac_exeext && {
  45803. test "$cross_compiling" = yes ||
  45804. $as_test_x conftest$ac_exeext
  45805. }; then
  45806. eval "$as_ac_Lib=yes"
  45807. else
  45808. $as_echo "$as_me: failed program was:" >&5
  45809. sed 's/^/| /' conftest.$ac_ext >&5
  45810. eval "$as_ac_Lib=no"
  45811. fi
  45812. rm -rf conftest.dSYM
  45813. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  45814. conftest$ac_exeext conftest.$ac_ext
  45815. LIBS=$ac_check_lib_save_LIBS
  45816. fi
  45817. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  45818. $as_echo "$as_val"'`
  45819. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  45820. $as_echo "$ac_res" >&6; }
  45821. as_val=`eval 'as_val=${'$as_ac_Lib'}
  45822. $as_echo "$as_val"'`
  45823. if test "x$as_val" = x""yes; then
  45824. AST_SRTP_FOUND=yes
  45825. else
  45826. AST_SRTP_FOUND=no
  45827. fi
  45828. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  45829. fi
  45830. # now check for the header.
  45831. if test "${AST_SRTP_FOUND}" = "yes"; then
  45832. SRTP_LIB="${pbxlibdir} -lsrtp "
  45833. # if --with-SRTP=DIR has been specified, use it.
  45834. if test "x${SRTP_DIR}" != "x"; then
  45835. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  45836. fi
  45837. SRTP_INCLUDE="${SRTP_INCLUDE} "
  45838. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  45839. SRTP_HEADER_FOUND="1"
  45840. else # check for the header
  45841. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  45842. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  45843. if test "${ac_cv_header_srtp_srtp_h+set}" = set; then
  45844. { $as_echo "$as_me:$LINENO: checking for srtp/srtp.h" >&5
  45845. $as_echo_n "checking for srtp/srtp.h... " >&6; }
  45846. if test "${ac_cv_header_srtp_srtp_h+set}" = set; then
  45847. $as_echo_n "(cached) " >&6
  45848. fi
  45849. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_srtp_srtp_h" >&5
  45850. $as_echo "$ac_cv_header_srtp_srtp_h" >&6; }
  45851. else
  45852. # Is the header compilable?
  45853. { $as_echo "$as_me:$LINENO: checking srtp/srtp.h usability" >&5
  45854. $as_echo_n "checking srtp/srtp.h usability... " >&6; }
  45855. cat >conftest.$ac_ext <<_ACEOF
  45856. /* confdefs.h. */
  45857. _ACEOF
  45858. cat confdefs.h >>conftest.$ac_ext
  45859. cat >>conftest.$ac_ext <<_ACEOF
  45860. /* end confdefs.h. */
  45861. $ac_includes_default
  45862. #include <srtp/srtp.h>
  45863. _ACEOF
  45864. rm -f conftest.$ac_objext
  45865. if { (ac_try="$ac_compile"
  45866. case "(($ac_try" in
  45867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45868. *) ac_try_echo=$ac_try;;
  45869. esac
  45870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45871. $as_echo "$ac_try_echo") >&5
  45872. (eval "$ac_compile") 2>conftest.er1
  45873. ac_status=$?
  45874. grep -v '^ *+' conftest.er1 >conftest.err
  45875. rm -f conftest.er1
  45876. cat conftest.err >&5
  45877. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45878. (exit $ac_status); } && {
  45879. test -z "$ac_c_werror_flag" ||
  45880. test ! -s conftest.err
  45881. } && test -s conftest.$ac_objext; then
  45882. ac_header_compiler=yes
  45883. else
  45884. $as_echo "$as_me: failed program was:" >&5
  45885. sed 's/^/| /' conftest.$ac_ext >&5
  45886. ac_header_compiler=no
  45887. fi
  45888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45889. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  45890. $as_echo "$ac_header_compiler" >&6; }
  45891. # Is the header present?
  45892. { $as_echo "$as_me:$LINENO: checking srtp/srtp.h presence" >&5
  45893. $as_echo_n "checking srtp/srtp.h presence... " >&6; }
  45894. cat >conftest.$ac_ext <<_ACEOF
  45895. /* confdefs.h. */
  45896. _ACEOF
  45897. cat confdefs.h >>conftest.$ac_ext
  45898. cat >>conftest.$ac_ext <<_ACEOF
  45899. /* end confdefs.h. */
  45900. #include <srtp/srtp.h>
  45901. _ACEOF
  45902. if { (ac_try="$ac_cpp conftest.$ac_ext"
  45903. case "(($ac_try" in
  45904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  45905. *) ac_try_echo=$ac_try;;
  45906. esac
  45907. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  45908. $as_echo "$ac_try_echo") >&5
  45909. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  45910. ac_status=$?
  45911. grep -v '^ *+' conftest.er1 >conftest.err
  45912. rm -f conftest.er1
  45913. cat conftest.err >&5
  45914. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45915. (exit $ac_status); } >/dev/null && {
  45916. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  45917. test ! -s conftest.err
  45918. }; then
  45919. ac_header_preproc=yes
  45920. else
  45921. $as_echo "$as_me: failed program was:" >&5
  45922. sed 's/^/| /' conftest.$ac_ext >&5
  45923. ac_header_preproc=no
  45924. fi
  45925. rm -f conftest.err conftest.$ac_ext
  45926. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  45927. $as_echo "$ac_header_preproc" >&6; }
  45928. # So? What about this header?
  45929. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  45930. yes:no: )
  45931. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
  45932. $as_echo "$as_me: WARNING: srtp/srtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  45933. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: proceeding with the compiler's result" >&5
  45934. $as_echo "$as_me: WARNING: srtp/srtp.h: proceeding with the compiler's result" >&2;}
  45935. ac_header_preproc=yes
  45936. ;;
  45937. no:yes:* )
  45938. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: present but cannot be compiled" >&5
  45939. $as_echo "$as_me: WARNING: srtp/srtp.h: present but cannot be compiled" >&2;}
  45940. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: check for missing prerequisite headers?" >&5
  45941. $as_echo "$as_me: WARNING: srtp/srtp.h: check for missing prerequisite headers?" >&2;}
  45942. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: see the Autoconf documentation" >&5
  45943. $as_echo "$as_me: WARNING: srtp/srtp.h: see the Autoconf documentation" >&2;}
  45944. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: section \"Present But Cannot Be Compiled\"" >&5
  45945. $as_echo "$as_me: WARNING: srtp/srtp.h: section \"Present But Cannot Be Compiled\"" >&2;}
  45946. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: proceeding with the preprocessor's result" >&5
  45947. $as_echo "$as_me: WARNING: srtp/srtp.h: proceeding with the preprocessor's result" >&2;}
  45948. { $as_echo "$as_me:$LINENO: WARNING: srtp/srtp.h: in the future, the compiler will take precedence" >&5
  45949. $as_echo "$as_me: WARNING: srtp/srtp.h: in the future, the compiler will take precedence" >&2;}
  45950. ( cat <<\_ASBOX
  45951. ## ------------------------------------------ ##
  45952. ## Report this to https://issues.asterisk.org ##
  45953. ## ------------------------------------------ ##
  45954. _ASBOX
  45955. ) | sed "s/^/$as_me: WARNING: /" >&2
  45956. ;;
  45957. esac
  45958. { $as_echo "$as_me:$LINENO: checking for srtp/srtp.h" >&5
  45959. $as_echo_n "checking for srtp/srtp.h... " >&6; }
  45960. if test "${ac_cv_header_srtp_srtp_h+set}" = set; then
  45961. $as_echo_n "(cached) " >&6
  45962. else
  45963. ac_cv_header_srtp_srtp_h=$ac_header_preproc
  45964. fi
  45965. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_srtp_srtp_h" >&5
  45966. $as_echo "$ac_cv_header_srtp_srtp_h" >&6; }
  45967. fi
  45968. if test "x$ac_cv_header_srtp_srtp_h" = x""yes; then
  45969. SRTP_HEADER_FOUND=1
  45970. else
  45971. SRTP_HEADER_FOUND=0
  45972. fi
  45973. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  45974. fi
  45975. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  45976. SRTP_LIB=""
  45977. SRTP_INCLUDE=""
  45978. else
  45979. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  45980. SRTP_LIB=""
  45981. fi
  45982. PBX_SRTP=1
  45983. cat >>confdefs.h <<_ACEOF
  45984. #define HAVE_SRTP 1
  45985. _ACEOF
  45986. fi
  45987. fi
  45988. fi
  45989. if test "$PBX_SRTP" = "1";
  45990. then
  45991. saved_libs="${LIBS}"
  45992. saved_ldflags="${LDFLAGS}"
  45993. saved_cflags="${CFLAGS}"
  45994. LIBS="${LIBS} ${SRTP_LIB}"
  45995. LDFLAGS="${LDFLAGS} -shared -fPIC"
  45996. CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
  45997. { $as_echo "$as_me:$LINENO: checking for the ability of -lsrtp to be linked in a shared object" >&5
  45998. $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  45999. cat >conftest.$ac_ext <<_ACEOF
  46000. /* confdefs.h. */
  46001. _ACEOF
  46002. cat confdefs.h >>conftest.$ac_ext
  46003. cat >>conftest.$ac_ext <<_ACEOF
  46004. /* end confdefs.h. */
  46005. #include <srtp/srtp.h>
  46006. int
  46007. main ()
  46008. {
  46009. srtp_init();
  46010. ;
  46011. return 0;
  46012. }
  46013. _ACEOF
  46014. rm -f conftest.$ac_objext conftest$ac_exeext
  46015. if { (ac_try="$ac_link"
  46016. case "(($ac_try" in
  46017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46018. *) ac_try_echo=$ac_try;;
  46019. esac
  46020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46021. $as_echo "$ac_try_echo") >&5
  46022. (eval "$ac_link") 2>conftest.er1
  46023. ac_status=$?
  46024. grep -v '^ *+' conftest.er1 >conftest.err
  46025. rm -f conftest.er1
  46026. cat conftest.err >&5
  46027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46028. (exit $ac_status); } && {
  46029. test -z "$ac_c_werror_flag" ||
  46030. test ! -s conftest.err
  46031. } && test -s conftest$ac_exeext && {
  46032. test "$cross_compiling" = yes ||
  46033. $as_test_x conftest$ac_exeext
  46034. }; then
  46035. { $as_echo "$as_me:$LINENO: result: yes" >&5
  46036. $as_echo "yes" >&6; }
  46037. else
  46038. $as_echo "$as_me: failed program was:" >&5
  46039. sed 's/^/| /' conftest.$ac_ext >&5
  46040. { $as_echo "$as_me:$LINENO: result: no" >&5
  46041. $as_echo "no" >&6; }
  46042. { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
  46043. $as_echo "$as_me: WARNING: ***" >&2;}
  46044. { $as_echo "$as_me:$LINENO: WARNING: *** libsrtp could not be linked as a shared object." >&5
  46045. $as_echo "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
  46046. { $as_echo "$as_me:$LINENO: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
  46047. $as_echo "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
  46048. { $as_echo "$as_me:$LINENO: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  46049. $as_echo "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
  46050. { $as_echo "$as_me:$LINENO: WARNING: *** replacing /usr with the prefix of your choice." >&5
  46051. $as_echo "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
  46052. { $as_echo "$as_me:$LINENO: WARNING: *** After re-installing libsrtp" >&5
  46053. $as_echo "$as_me: WARNING: *** After re-installing libsrtp" >&2;}
  46054. { $as_echo "$as_me:$LINENO: WARNING: *** configure script." >&5
  46055. $as_echo "$as_me: WARNING: *** configure script." >&2;}
  46056. { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
  46057. $as_echo "$as_me: WARNING: ***" >&2;}
  46058. { $as_echo "$as_me:$LINENO: WARNING: *** If you do not need SRTP support re-run configure" >&5
  46059. $as_echo "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  46060. { $as_echo "$as_me:$LINENO: WARNING: *** with the --without-srtp option." >&5
  46061. $as_echo "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  46062. exit 1
  46063. fi
  46064. rm -rf conftest.dSYM
  46065. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46066. conftest$ac_exeext conftest.$ac_ext
  46067. LIBS="${saved_libs}"
  46068. LDFLAGS="${saved_ldflags}"
  46069. CFLAGS="${saved_cflags}"
  46070. fi
  46071. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  46072. PBX_GMIME=0
  46073. if test -n "$ac_tool_prefix"; then
  46074. # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
  46075. set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
  46076. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  46077. $as_echo_n "checking for $ac_word... " >&6; }
  46078. if test "${ac_cv_path_CONFIG_GMIME+set}" = set; then
  46079. $as_echo_n "(cached) " >&6
  46080. else
  46081. case $CONFIG_GMIME in
  46082. [\\/]* | ?:[\\/]*)
  46083. ac_cv_path_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test with a path.
  46084. ;;
  46085. *)
  46086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  46087. as_dummy="${GMIME_DIR}/bin:$PATH"
  46088. for as_dir in $as_dummy
  46089. do
  46090. IFS=$as_save_IFS
  46091. test -z "$as_dir" && as_dir=.
  46092. for ac_exec_ext in '' $ac_executable_extensions; do
  46093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  46094. ac_cv_path_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
  46095. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  46096. break 2
  46097. fi
  46098. done
  46099. done
  46100. IFS=$as_save_IFS
  46101. ;;
  46102. esac
  46103. fi
  46104. CONFIG_GMIME=$ac_cv_path_CONFIG_GMIME
  46105. if test -n "$CONFIG_GMIME"; then
  46106. { $as_echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
  46107. $as_echo "$CONFIG_GMIME" >&6; }
  46108. else
  46109. { $as_echo "$as_me:$LINENO: result: no" >&5
  46110. $as_echo "no" >&6; }
  46111. fi
  46112. fi
  46113. if test -z "$ac_cv_path_CONFIG_GMIME"; then
  46114. ac_pt_CONFIG_GMIME=$CONFIG_GMIME
  46115. # Extract the first word of "gmime-config", so it can be a program name with args.
  46116. set dummy gmime-config; ac_word=$2
  46117. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  46118. $as_echo_n "checking for $ac_word... " >&6; }
  46119. if test "${ac_cv_path_ac_pt_CONFIG_GMIME+set}" = set; then
  46120. $as_echo_n "(cached) " >&6
  46121. else
  46122. case $ac_pt_CONFIG_GMIME in
  46123. [\\/]* | ?:[\\/]*)
  46124. ac_cv_path_ac_pt_CONFIG_GMIME="$ac_pt_CONFIG_GMIME" # Let the user override the test with a path.
  46125. ;;
  46126. *)
  46127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  46128. as_dummy="${GMIME_DIR}/bin:$PATH"
  46129. for as_dir in $as_dummy
  46130. do
  46131. IFS=$as_save_IFS
  46132. test -z "$as_dir" && as_dir=.
  46133. for ac_exec_ext in '' $ac_executable_extensions; do
  46134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  46135. ac_cv_path_ac_pt_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext"
  46136. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  46137. break 2
  46138. fi
  46139. done
  46140. done
  46141. IFS=$as_save_IFS
  46142. ;;
  46143. esac
  46144. fi
  46145. ac_pt_CONFIG_GMIME=$ac_cv_path_ac_pt_CONFIG_GMIME
  46146. if test -n "$ac_pt_CONFIG_GMIME"; then
  46147. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_GMIME" >&5
  46148. $as_echo "$ac_pt_CONFIG_GMIME" >&6; }
  46149. else
  46150. { $as_echo "$as_me:$LINENO: result: no" >&5
  46151. $as_echo "no" >&6; }
  46152. fi
  46153. if test "x$ac_pt_CONFIG_GMIME" = x; then
  46154. CONFIG_GMIME="No"
  46155. else
  46156. case $cross_compiling:$ac_tool_warned in
  46157. yes:)
  46158. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  46159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  46160. ac_tool_warned=yes ;;
  46161. esac
  46162. CONFIG_GMIME=$ac_pt_CONFIG_GMIME
  46163. fi
  46164. else
  46165. CONFIG_GMIME="$ac_cv_path_CONFIG_GMIME"
  46166. fi
  46167. if test ! "x${CONFIG_GMIME}" = xNo; then
  46168. if test x"" = x ; then A=--cflags ; else A="" ; fi
  46169. GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
  46170. if test x"" = x ; then A=--libs ; else A="" ; fi
  46171. GMIME_LIB=$(${CONFIG_GMIME} $A)
  46172. if test x"#include <gmime/gmime.h>" != x ; then
  46173. saved_cppflags="${CPPFLAGS}"
  46174. if test "x${GMIME_DIR}" != "x"; then
  46175. GMIME_INCLUDE="-I${GMIME_DIR}/include"
  46176. fi
  46177. CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
  46178. saved_libs="${LIBS}"
  46179. LIBS="${GMIME_LIB}"
  46180. cat >conftest.$ac_ext <<_ACEOF
  46181. /* confdefs.h. */
  46182. _ACEOF
  46183. cat confdefs.h >>conftest.$ac_ext
  46184. cat >>conftest.$ac_ext <<_ACEOF
  46185. /* end confdefs.h. */
  46186. #include <gmime/gmime.h>
  46187. int
  46188. main ()
  46189. {
  46190. gboolean q = g_mime_check_version(0,0,0);;
  46191. ;
  46192. return 0;
  46193. }
  46194. _ACEOF
  46195. rm -f conftest.$ac_objext conftest$ac_exeext
  46196. if { (ac_try="$ac_link"
  46197. case "(($ac_try" in
  46198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46199. *) ac_try_echo=$ac_try;;
  46200. esac
  46201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46202. $as_echo "$ac_try_echo") >&5
  46203. (eval "$ac_link") 2>conftest.er1
  46204. ac_status=$?
  46205. grep -v '^ *+' conftest.er1 >conftest.err
  46206. rm -f conftest.er1
  46207. cat conftest.err >&5
  46208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46209. (exit $ac_status); } && {
  46210. test -z "$ac_c_werror_flag" ||
  46211. test ! -s conftest.err
  46212. } && test -s conftest$ac_exeext && {
  46213. test "$cross_compiling" = yes ||
  46214. $as_test_x conftest$ac_exeext
  46215. }; then
  46216. PBX_GMIME=1
  46217. cat >>confdefs.h <<\_ACEOF
  46218. #define HAVE_GMIME 1
  46219. _ACEOF
  46220. else
  46221. $as_echo "$as_me: failed program was:" >&5
  46222. sed 's/^/| /' conftest.$ac_ext >&5
  46223. fi
  46224. rm -rf conftest.dSYM
  46225. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46226. conftest$ac_exeext conftest.$ac_ext
  46227. CPPFLAGS="${saved_cppflags}"
  46228. LIBS="${saved_libs}"
  46229. else
  46230. PBX_GMIME=1
  46231. cat >>confdefs.h <<\_ACEOF
  46232. #define HAVE_GMIME 1
  46233. _ACEOF
  46234. fi
  46235. fi
  46236. fi
  46237. if test "x${PBX_GMIME}" = "x0" -a "${PKGCONFIG}" != "No"; then
  46238. # Later versions of GMime use pkg-config
  46239. for ver in 2.0 2.2 2.4; do
  46240. if ! ${PKGCONFIG} --exists gmime-$ver; then
  46241. continue
  46242. fi
  46243. # If we got here, we have this version:
  46244. GMIME_INCLUDE=$(${PKGCONFIG} gmime-$ver --cflags 2>/dev/null)
  46245. GMIME_LIB=$(${PKGCONFIG} gmime-$ver --libs)
  46246. PBX_GMIME=1
  46247. cat >>confdefs.h <<\_ACEOF
  46248. #define HAVE_GMIME 1
  46249. _ACEOF
  46250. break;
  46251. done
  46252. fi
  46253. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  46254. pbxlibdir=""
  46255. # if --with-HOARD=DIR has been specified, use it.
  46256. if test "x${HOARD_DIR}" != "x"; then
  46257. if test -d ${HOARD_DIR}/lib; then
  46258. pbxlibdir="-L${HOARD_DIR}/lib"
  46259. else
  46260. pbxlibdir="-L${HOARD_DIR}"
  46261. fi
  46262. fi
  46263. pbxfuncname="malloc"
  46264. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  46265. AST_HOARD_FOUND=yes
  46266. else
  46267. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  46268. CFLAGS="${CFLAGS} "
  46269. as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
  46270. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lhoard" >&5
  46271. $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
  46272. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  46273. $as_echo_n "(cached) " >&6
  46274. else
  46275. ac_check_lib_save_LIBS=$LIBS
  46276. LIBS="-lhoard ${pbxlibdir} $LIBS"
  46277. cat >conftest.$ac_ext <<_ACEOF
  46278. /* confdefs.h. */
  46279. _ACEOF
  46280. cat confdefs.h >>conftest.$ac_ext
  46281. cat >>conftest.$ac_ext <<_ACEOF
  46282. /* end confdefs.h. */
  46283. /* Override any GCC internal prototype to avoid an error.
  46284. Use char because int might match the return type of a GCC
  46285. builtin and then its argument prototype would still apply. */
  46286. #ifdef __cplusplus
  46287. extern "C"
  46288. #endif
  46289. char ${pbxfuncname} ();
  46290. int
  46291. main ()
  46292. {
  46293. return ${pbxfuncname} ();
  46294. ;
  46295. return 0;
  46296. }
  46297. _ACEOF
  46298. rm -f conftest.$ac_objext conftest$ac_exeext
  46299. if { (ac_try="$ac_link"
  46300. case "(($ac_try" in
  46301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46302. *) ac_try_echo=$ac_try;;
  46303. esac
  46304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46305. $as_echo "$ac_try_echo") >&5
  46306. (eval "$ac_link") 2>conftest.er1
  46307. ac_status=$?
  46308. grep -v '^ *+' conftest.er1 >conftest.err
  46309. rm -f conftest.er1
  46310. cat conftest.err >&5
  46311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46312. (exit $ac_status); } && {
  46313. test -z "$ac_c_werror_flag" ||
  46314. test ! -s conftest.err
  46315. } && test -s conftest$ac_exeext && {
  46316. test "$cross_compiling" = yes ||
  46317. $as_test_x conftest$ac_exeext
  46318. }; then
  46319. eval "$as_ac_Lib=yes"
  46320. else
  46321. $as_echo "$as_me: failed program was:" >&5
  46322. sed 's/^/| /' conftest.$ac_ext >&5
  46323. eval "$as_ac_Lib=no"
  46324. fi
  46325. rm -rf conftest.dSYM
  46326. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46327. conftest$ac_exeext conftest.$ac_ext
  46328. LIBS=$ac_check_lib_save_LIBS
  46329. fi
  46330. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  46331. $as_echo "$as_val"'`
  46332. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  46333. $as_echo "$ac_res" >&6; }
  46334. as_val=`eval 'as_val=${'$as_ac_Lib'}
  46335. $as_echo "$as_val"'`
  46336. if test "x$as_val" = x""yes; then
  46337. AST_HOARD_FOUND=yes
  46338. else
  46339. AST_HOARD_FOUND=no
  46340. fi
  46341. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  46342. fi
  46343. # now check for the header.
  46344. if test "${AST_HOARD_FOUND}" = "yes"; then
  46345. HOARD_LIB="${pbxlibdir} -lhoard "
  46346. # if --with-HOARD=DIR has been specified, use it.
  46347. if test "x${HOARD_DIR}" != "x"; then
  46348. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  46349. fi
  46350. HOARD_INCLUDE="${HOARD_INCLUDE} "
  46351. if test "x" = "x" ; then # no header, assume found
  46352. HOARD_HEADER_FOUND="1"
  46353. else # check for the header
  46354. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  46355. CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
  46356. if test "${ac_cv_header_+set}" = set; then
  46357. { $as_echo "$as_me:$LINENO: checking for " >&5
  46358. $as_echo_n "checking for ... " >&6; }
  46359. if test "${ac_cv_header_+set}" = set; then
  46360. $as_echo_n "(cached) " >&6
  46361. fi
  46362. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  46363. $as_echo "$ac_cv_header_" >&6; }
  46364. else
  46365. # Is the header compilable?
  46366. { $as_echo "$as_me:$LINENO: checking usability" >&5
  46367. $as_echo_n "checking usability... " >&6; }
  46368. cat >conftest.$ac_ext <<_ACEOF
  46369. /* confdefs.h. */
  46370. _ACEOF
  46371. cat confdefs.h >>conftest.$ac_ext
  46372. cat >>conftest.$ac_ext <<_ACEOF
  46373. /* end confdefs.h. */
  46374. $ac_includes_default
  46375. #include <>
  46376. _ACEOF
  46377. rm -f conftest.$ac_objext
  46378. if { (ac_try="$ac_compile"
  46379. case "(($ac_try" in
  46380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46381. *) ac_try_echo=$ac_try;;
  46382. esac
  46383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46384. $as_echo "$ac_try_echo") >&5
  46385. (eval "$ac_compile") 2>conftest.er1
  46386. ac_status=$?
  46387. grep -v '^ *+' conftest.er1 >conftest.err
  46388. rm -f conftest.er1
  46389. cat conftest.err >&5
  46390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46391. (exit $ac_status); } && {
  46392. test -z "$ac_c_werror_flag" ||
  46393. test ! -s conftest.err
  46394. } && test -s conftest.$ac_objext; then
  46395. ac_header_compiler=yes
  46396. else
  46397. $as_echo "$as_me: failed program was:" >&5
  46398. sed 's/^/| /' conftest.$ac_ext >&5
  46399. ac_header_compiler=no
  46400. fi
  46401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46402. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46403. $as_echo "$ac_header_compiler" >&6; }
  46404. # Is the header present?
  46405. { $as_echo "$as_me:$LINENO: checking presence" >&5
  46406. $as_echo_n "checking presence... " >&6; }
  46407. cat >conftest.$ac_ext <<_ACEOF
  46408. /* confdefs.h. */
  46409. _ACEOF
  46410. cat confdefs.h >>conftest.$ac_ext
  46411. cat >>conftest.$ac_ext <<_ACEOF
  46412. /* end confdefs.h. */
  46413. #include <>
  46414. _ACEOF
  46415. if { (ac_try="$ac_cpp conftest.$ac_ext"
  46416. case "(($ac_try" in
  46417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46418. *) ac_try_echo=$ac_try;;
  46419. esac
  46420. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46421. $as_echo "$ac_try_echo") >&5
  46422. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46423. ac_status=$?
  46424. grep -v '^ *+' conftest.er1 >conftest.err
  46425. rm -f conftest.er1
  46426. cat conftest.err >&5
  46427. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46428. (exit $ac_status); } >/dev/null && {
  46429. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46430. test ! -s conftest.err
  46431. }; then
  46432. ac_header_preproc=yes
  46433. else
  46434. $as_echo "$as_me: failed program was:" >&5
  46435. sed 's/^/| /' conftest.$ac_ext >&5
  46436. ac_header_preproc=no
  46437. fi
  46438. rm -f conftest.err conftest.$ac_ext
  46439. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46440. $as_echo "$ac_header_preproc" >&6; }
  46441. # So? What about this header?
  46442. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46443. yes:no: )
  46444. { $as_echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
  46445. $as_echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
  46446. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
  46447. $as_echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
  46448. ac_header_preproc=yes
  46449. ;;
  46450. no:yes:* )
  46451. { $as_echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
  46452. $as_echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
  46453. { $as_echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
  46454. $as_echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
  46455. { $as_echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
  46456. $as_echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
  46457. { $as_echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
  46458. $as_echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
  46459. { $as_echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
  46460. $as_echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
  46461. { $as_echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
  46462. $as_echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
  46463. ( cat <<\_ASBOX
  46464. ## ------------------------------------------ ##
  46465. ## Report this to https://issues.asterisk.org ##
  46466. ## ------------------------------------------ ##
  46467. _ASBOX
  46468. ) | sed "s/^/$as_me: WARNING: /" >&2
  46469. ;;
  46470. esac
  46471. { $as_echo "$as_me:$LINENO: checking for " >&5
  46472. $as_echo_n "checking for ... " >&6; }
  46473. if test "${ac_cv_header_+set}" = set; then
  46474. $as_echo_n "(cached) " >&6
  46475. else
  46476. ac_cv_header_=$ac_header_preproc
  46477. fi
  46478. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
  46479. $as_echo "$ac_cv_header_" >&6; }
  46480. fi
  46481. if test "x$ac_cv_header_" = x""yes; then
  46482. HOARD_HEADER_FOUND=1
  46483. else
  46484. HOARD_HEADER_FOUND=0
  46485. fi
  46486. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  46487. fi
  46488. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  46489. HOARD_LIB=""
  46490. HOARD_INCLUDE=""
  46491. else
  46492. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  46493. HOARD_LIB=""
  46494. fi
  46495. PBX_HOARD=1
  46496. cat >>confdefs.h <<_ACEOF
  46497. #define HAVE_HOARD 1
  46498. _ACEOF
  46499. fi
  46500. fi
  46501. fi
  46502. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  46503. pbxlibdir=""
  46504. # if --with-FREETDS=DIR has been specified, use it.
  46505. if test "x${FREETDS_DIR}" != "x"; then
  46506. if test -d ${FREETDS_DIR}/lib; then
  46507. pbxlibdir="-L${FREETDS_DIR}/lib"
  46508. else
  46509. pbxlibdir="-L${FREETDS_DIR}"
  46510. fi
  46511. fi
  46512. pbxfuncname="dbinit"
  46513. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  46514. AST_FREETDS_FOUND=yes
  46515. else
  46516. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  46517. CFLAGS="${CFLAGS} "
  46518. as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
  46519. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsybdb" >&5
  46520. $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
  46521. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  46522. $as_echo_n "(cached) " >&6
  46523. else
  46524. ac_check_lib_save_LIBS=$LIBS
  46525. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  46526. cat >conftest.$ac_ext <<_ACEOF
  46527. /* confdefs.h. */
  46528. _ACEOF
  46529. cat confdefs.h >>conftest.$ac_ext
  46530. cat >>conftest.$ac_ext <<_ACEOF
  46531. /* end confdefs.h. */
  46532. /* Override any GCC internal prototype to avoid an error.
  46533. Use char because int might match the return type of a GCC
  46534. builtin and then its argument prototype would still apply. */
  46535. #ifdef __cplusplus
  46536. extern "C"
  46537. #endif
  46538. char ${pbxfuncname} ();
  46539. int
  46540. main ()
  46541. {
  46542. return ${pbxfuncname} ();
  46543. ;
  46544. return 0;
  46545. }
  46546. _ACEOF
  46547. rm -f conftest.$ac_objext conftest$ac_exeext
  46548. if { (ac_try="$ac_link"
  46549. case "(($ac_try" in
  46550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46551. *) ac_try_echo=$ac_try;;
  46552. esac
  46553. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46554. $as_echo "$ac_try_echo") >&5
  46555. (eval "$ac_link") 2>conftest.er1
  46556. ac_status=$?
  46557. grep -v '^ *+' conftest.er1 >conftest.err
  46558. rm -f conftest.er1
  46559. cat conftest.err >&5
  46560. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46561. (exit $ac_status); } && {
  46562. test -z "$ac_c_werror_flag" ||
  46563. test ! -s conftest.err
  46564. } && test -s conftest$ac_exeext && {
  46565. test "$cross_compiling" = yes ||
  46566. $as_test_x conftest$ac_exeext
  46567. }; then
  46568. eval "$as_ac_Lib=yes"
  46569. else
  46570. $as_echo "$as_me: failed program was:" >&5
  46571. sed 's/^/| /' conftest.$ac_ext >&5
  46572. eval "$as_ac_Lib=no"
  46573. fi
  46574. rm -rf conftest.dSYM
  46575. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46576. conftest$ac_exeext conftest.$ac_ext
  46577. LIBS=$ac_check_lib_save_LIBS
  46578. fi
  46579. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  46580. $as_echo "$as_val"'`
  46581. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  46582. $as_echo "$ac_res" >&6; }
  46583. as_val=`eval 'as_val=${'$as_ac_Lib'}
  46584. $as_echo "$as_val"'`
  46585. if test "x$as_val" = x""yes; then
  46586. AST_FREETDS_FOUND=yes
  46587. else
  46588. AST_FREETDS_FOUND=no
  46589. fi
  46590. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  46591. fi
  46592. # now check for the header.
  46593. if test "${AST_FREETDS_FOUND}" = "yes"; then
  46594. FREETDS_LIB="${pbxlibdir} -lsybdb "
  46595. # if --with-FREETDS=DIR has been specified, use it.
  46596. if test "x${FREETDS_DIR}" != "x"; then
  46597. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  46598. fi
  46599. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  46600. if test "xsybdb.h" = "x" ; then # no header, assume found
  46601. FREETDS_HEADER_FOUND="1"
  46602. else # check for the header
  46603. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  46604. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  46605. if test "${ac_cv_header_sybdb_h+set}" = set; then
  46606. { $as_echo "$as_me:$LINENO: checking for sybdb.h" >&5
  46607. $as_echo_n "checking for sybdb.h... " >&6; }
  46608. if test "${ac_cv_header_sybdb_h+set}" = set; then
  46609. $as_echo_n "(cached) " >&6
  46610. fi
  46611. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
  46612. $as_echo "$ac_cv_header_sybdb_h" >&6; }
  46613. else
  46614. # Is the header compilable?
  46615. { $as_echo "$as_me:$LINENO: checking sybdb.h usability" >&5
  46616. $as_echo_n "checking sybdb.h usability... " >&6; }
  46617. cat >conftest.$ac_ext <<_ACEOF
  46618. /* confdefs.h. */
  46619. _ACEOF
  46620. cat confdefs.h >>conftest.$ac_ext
  46621. cat >>conftest.$ac_ext <<_ACEOF
  46622. /* end confdefs.h. */
  46623. $ac_includes_default
  46624. #include <sybdb.h>
  46625. _ACEOF
  46626. rm -f conftest.$ac_objext
  46627. if { (ac_try="$ac_compile"
  46628. case "(($ac_try" in
  46629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46630. *) ac_try_echo=$ac_try;;
  46631. esac
  46632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46633. $as_echo "$ac_try_echo") >&5
  46634. (eval "$ac_compile") 2>conftest.er1
  46635. ac_status=$?
  46636. grep -v '^ *+' conftest.er1 >conftest.err
  46637. rm -f conftest.er1
  46638. cat conftest.err >&5
  46639. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46640. (exit $ac_status); } && {
  46641. test -z "$ac_c_werror_flag" ||
  46642. test ! -s conftest.err
  46643. } && test -s conftest.$ac_objext; then
  46644. ac_header_compiler=yes
  46645. else
  46646. $as_echo "$as_me: failed program was:" >&5
  46647. sed 's/^/| /' conftest.$ac_ext >&5
  46648. ac_header_compiler=no
  46649. fi
  46650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46651. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46652. $as_echo "$ac_header_compiler" >&6; }
  46653. # Is the header present?
  46654. { $as_echo "$as_me:$LINENO: checking sybdb.h presence" >&5
  46655. $as_echo_n "checking sybdb.h presence... " >&6; }
  46656. cat >conftest.$ac_ext <<_ACEOF
  46657. /* confdefs.h. */
  46658. _ACEOF
  46659. cat confdefs.h >>conftest.$ac_ext
  46660. cat >>conftest.$ac_ext <<_ACEOF
  46661. /* end confdefs.h. */
  46662. #include <sybdb.h>
  46663. _ACEOF
  46664. if { (ac_try="$ac_cpp conftest.$ac_ext"
  46665. case "(($ac_try" in
  46666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46667. *) ac_try_echo=$ac_try;;
  46668. esac
  46669. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46670. $as_echo "$ac_try_echo") >&5
  46671. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46672. ac_status=$?
  46673. grep -v '^ *+' conftest.er1 >conftest.err
  46674. rm -f conftest.er1
  46675. cat conftest.err >&5
  46676. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46677. (exit $ac_status); } >/dev/null && {
  46678. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46679. test ! -s conftest.err
  46680. }; then
  46681. ac_header_preproc=yes
  46682. else
  46683. $as_echo "$as_me: failed program was:" >&5
  46684. sed 's/^/| /' conftest.$ac_ext >&5
  46685. ac_header_preproc=no
  46686. fi
  46687. rm -f conftest.err conftest.$ac_ext
  46688. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  46689. $as_echo "$ac_header_preproc" >&6; }
  46690. # So? What about this header?
  46691. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  46692. yes:no: )
  46693. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
  46694. $as_echo "$as_me: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  46695. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the compiler's result" >&5
  46696. $as_echo "$as_me: WARNING: sybdb.h: proceeding with the compiler's result" >&2;}
  46697. ac_header_preproc=yes
  46698. ;;
  46699. no:yes:* )
  46700. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: present but cannot be compiled" >&5
  46701. $as_echo "$as_me: WARNING: sybdb.h: present but cannot be compiled" >&2;}
  46702. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: check for missing prerequisite headers?" >&5
  46703. $as_echo "$as_me: WARNING: sybdb.h: check for missing prerequisite headers?" >&2;}
  46704. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: see the Autoconf documentation" >&5
  46705. $as_echo "$as_me: WARNING: sybdb.h: see the Autoconf documentation" >&2;}
  46706. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&5
  46707. $as_echo "$as_me: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
  46708. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the preprocessor's result" >&5
  46709. $as_echo "$as_me: WARNING: sybdb.h: proceeding with the preprocessor's result" >&2;}
  46710. { $as_echo "$as_me:$LINENO: WARNING: sybdb.h: in the future, the compiler will take precedence" >&5
  46711. $as_echo "$as_me: WARNING: sybdb.h: in the future, the compiler will take precedence" >&2;}
  46712. ( cat <<\_ASBOX
  46713. ## ------------------------------------------ ##
  46714. ## Report this to https://issues.asterisk.org ##
  46715. ## ------------------------------------------ ##
  46716. _ASBOX
  46717. ) | sed "s/^/$as_me: WARNING: /" >&2
  46718. ;;
  46719. esac
  46720. { $as_echo "$as_me:$LINENO: checking for sybdb.h" >&5
  46721. $as_echo_n "checking for sybdb.h... " >&6; }
  46722. if test "${ac_cv_header_sybdb_h+set}" = set; then
  46723. $as_echo_n "(cached) " >&6
  46724. else
  46725. ac_cv_header_sybdb_h=$ac_header_preproc
  46726. fi
  46727. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
  46728. $as_echo "$ac_cv_header_sybdb_h" >&6; }
  46729. fi
  46730. if test "x$ac_cv_header_sybdb_h" = x""yes; then
  46731. FREETDS_HEADER_FOUND=1
  46732. else
  46733. FREETDS_HEADER_FOUND=0
  46734. fi
  46735. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  46736. fi
  46737. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  46738. FREETDS_LIB=""
  46739. FREETDS_INCLUDE=""
  46740. else
  46741. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  46742. FREETDS_LIB=""
  46743. fi
  46744. PBX_FREETDS=1
  46745. cat >>confdefs.h <<_ACEOF
  46746. #define HAVE_FREETDS 1
  46747. _ACEOF
  46748. fi
  46749. fi
  46750. fi
  46751. { $as_echo "$as_me:$LINENO: checking for tone_zone_find_by_num in -ltonezone" >&5
  46752. $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  46753. if test "${ac_cv_lib_tonezone_tone_zone_find_by_num+set}" = set; then
  46754. $as_echo_n "(cached) " >&6
  46755. else
  46756. ac_check_lib_save_LIBS=$LIBS
  46757. LIBS="-ltonezone $LIBS"
  46758. cat >conftest.$ac_ext <<_ACEOF
  46759. /* confdefs.h. */
  46760. _ACEOF
  46761. cat confdefs.h >>conftest.$ac_ext
  46762. cat >>conftest.$ac_ext <<_ACEOF
  46763. /* end confdefs.h. */
  46764. /* Override any GCC internal prototype to avoid an error.
  46765. Use char because int might match the return type of a GCC
  46766. builtin and then its argument prototype would still apply. */
  46767. #ifdef __cplusplus
  46768. extern "C"
  46769. #endif
  46770. char tone_zone_find_by_num ();
  46771. int
  46772. main ()
  46773. {
  46774. return tone_zone_find_by_num ();
  46775. ;
  46776. return 0;
  46777. }
  46778. _ACEOF
  46779. rm -f conftest.$ac_objext conftest$ac_exeext
  46780. if { (ac_try="$ac_link"
  46781. case "(($ac_try" in
  46782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46783. *) ac_try_echo=$ac_try;;
  46784. esac
  46785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46786. $as_echo "$ac_try_echo") >&5
  46787. (eval "$ac_link") 2>conftest.er1
  46788. ac_status=$?
  46789. grep -v '^ *+' conftest.er1 >conftest.err
  46790. rm -f conftest.er1
  46791. cat conftest.err >&5
  46792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46793. (exit $ac_status); } && {
  46794. test -z "$ac_c_werror_flag" ||
  46795. test ! -s conftest.err
  46796. } && test -s conftest$ac_exeext && {
  46797. test "$cross_compiling" = yes ||
  46798. $as_test_x conftest$ac_exeext
  46799. }; then
  46800. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  46801. else
  46802. $as_echo "$as_me: failed program was:" >&5
  46803. sed 's/^/| /' conftest.$ac_ext >&5
  46804. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  46805. fi
  46806. rm -rf conftest.dSYM
  46807. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46808. conftest$ac_exeext conftest.$ac_ext
  46809. LIBS=$ac_check_lib_save_LIBS
  46810. fi
  46811. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  46812. $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  46813. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = x""yes; then
  46814. tonezone_does_not_need_lm=yes
  46815. else
  46816. tonezone_does_not_need_lm=no
  46817. fi
  46818. if test "${tonezone_does_not_need_lm}" = "no" ; then
  46819. tonezone_extra="-lm"
  46820. fi
  46821. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  46822. pbxlibdir=""
  46823. # if --with-TONEZONE=DIR has been specified, use it.
  46824. if test "x${TONEZONE_DIR}" != "x"; then
  46825. if test -d ${TONEZONE_DIR}/lib; then
  46826. pbxlibdir="-L${TONEZONE_DIR}/lib"
  46827. else
  46828. pbxlibdir="-L${TONEZONE_DIR}"
  46829. fi
  46830. fi
  46831. pbxfuncname="tone_zone_find"
  46832. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  46833. AST_TONEZONE_FOUND=yes
  46834. else
  46835. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  46836. CFLAGS="${CFLAGS} "
  46837. as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
  46838. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
  46839. $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
  46840. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  46841. $as_echo_n "(cached) " >&6
  46842. else
  46843. ac_check_lib_save_LIBS=$LIBS
  46844. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  46845. cat >conftest.$ac_ext <<_ACEOF
  46846. /* confdefs.h. */
  46847. _ACEOF
  46848. cat confdefs.h >>conftest.$ac_ext
  46849. cat >>conftest.$ac_ext <<_ACEOF
  46850. /* end confdefs.h. */
  46851. /* Override any GCC internal prototype to avoid an error.
  46852. Use char because int might match the return type of a GCC
  46853. builtin and then its argument prototype would still apply. */
  46854. #ifdef __cplusplus
  46855. extern "C"
  46856. #endif
  46857. char ${pbxfuncname} ();
  46858. int
  46859. main ()
  46860. {
  46861. return ${pbxfuncname} ();
  46862. ;
  46863. return 0;
  46864. }
  46865. _ACEOF
  46866. rm -f conftest.$ac_objext conftest$ac_exeext
  46867. if { (ac_try="$ac_link"
  46868. case "(($ac_try" in
  46869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46870. *) ac_try_echo=$ac_try;;
  46871. esac
  46872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46873. $as_echo "$ac_try_echo") >&5
  46874. (eval "$ac_link") 2>conftest.er1
  46875. ac_status=$?
  46876. grep -v '^ *+' conftest.er1 >conftest.err
  46877. rm -f conftest.er1
  46878. cat conftest.err >&5
  46879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46880. (exit $ac_status); } && {
  46881. test -z "$ac_c_werror_flag" ||
  46882. test ! -s conftest.err
  46883. } && test -s conftest$ac_exeext && {
  46884. test "$cross_compiling" = yes ||
  46885. $as_test_x conftest$ac_exeext
  46886. }; then
  46887. eval "$as_ac_Lib=yes"
  46888. else
  46889. $as_echo "$as_me: failed program was:" >&5
  46890. sed 's/^/| /' conftest.$ac_ext >&5
  46891. eval "$as_ac_Lib=no"
  46892. fi
  46893. rm -rf conftest.dSYM
  46894. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  46895. conftest$ac_exeext conftest.$ac_ext
  46896. LIBS=$ac_check_lib_save_LIBS
  46897. fi
  46898. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  46899. $as_echo "$as_val"'`
  46900. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  46901. $as_echo "$ac_res" >&6; }
  46902. as_val=`eval 'as_val=${'$as_ac_Lib'}
  46903. $as_echo "$as_val"'`
  46904. if test "x$as_val" = x""yes; then
  46905. AST_TONEZONE_FOUND=yes
  46906. else
  46907. AST_TONEZONE_FOUND=no
  46908. fi
  46909. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  46910. fi
  46911. # now check for the header.
  46912. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  46913. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  46914. # if --with-TONEZONE=DIR has been specified, use it.
  46915. if test "x${TONEZONE_DIR}" != "x"; then
  46916. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  46917. fi
  46918. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  46919. if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
  46920. TONEZONE_HEADER_FOUND="1"
  46921. else # check for the header
  46922. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  46923. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  46924. if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
  46925. { $as_echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
  46926. $as_echo_n "checking for dahdi/tonezone.h... " >&6; }
  46927. if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
  46928. $as_echo_n "(cached) " >&6
  46929. fi
  46930. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
  46931. $as_echo "$ac_cv_header_dahdi_tonezone_h" >&6; }
  46932. else
  46933. # Is the header compilable?
  46934. { $as_echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5
  46935. $as_echo_n "checking dahdi/tonezone.h usability... " >&6; }
  46936. cat >conftest.$ac_ext <<_ACEOF
  46937. /* confdefs.h. */
  46938. _ACEOF
  46939. cat confdefs.h >>conftest.$ac_ext
  46940. cat >>conftest.$ac_ext <<_ACEOF
  46941. /* end confdefs.h. */
  46942. $ac_includes_default
  46943. #include <dahdi/tonezone.h>
  46944. _ACEOF
  46945. rm -f conftest.$ac_objext
  46946. if { (ac_try="$ac_compile"
  46947. case "(($ac_try" in
  46948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46949. *) ac_try_echo=$ac_try;;
  46950. esac
  46951. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46952. $as_echo "$ac_try_echo") >&5
  46953. (eval "$ac_compile") 2>conftest.er1
  46954. ac_status=$?
  46955. grep -v '^ *+' conftest.er1 >conftest.err
  46956. rm -f conftest.er1
  46957. cat conftest.err >&5
  46958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46959. (exit $ac_status); } && {
  46960. test -z "$ac_c_werror_flag" ||
  46961. test ! -s conftest.err
  46962. } && test -s conftest.$ac_objext; then
  46963. ac_header_compiler=yes
  46964. else
  46965. $as_echo "$as_me: failed program was:" >&5
  46966. sed 's/^/| /' conftest.$ac_ext >&5
  46967. ac_header_compiler=no
  46968. fi
  46969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46970. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  46971. $as_echo "$ac_header_compiler" >&6; }
  46972. # Is the header present?
  46973. { $as_echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5
  46974. $as_echo_n "checking dahdi/tonezone.h presence... " >&6; }
  46975. cat >conftest.$ac_ext <<_ACEOF
  46976. /* confdefs.h. */
  46977. _ACEOF
  46978. cat confdefs.h >>conftest.$ac_ext
  46979. cat >>conftest.$ac_ext <<_ACEOF
  46980. /* end confdefs.h. */
  46981. #include <dahdi/tonezone.h>
  46982. _ACEOF
  46983. if { (ac_try="$ac_cpp conftest.$ac_ext"
  46984. case "(($ac_try" in
  46985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46986. *) ac_try_echo=$ac_try;;
  46987. esac
  46988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  46989. $as_echo "$ac_try_echo") >&5
  46990. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  46991. ac_status=$?
  46992. grep -v '^ *+' conftest.er1 >conftest.err
  46993. rm -f conftest.er1
  46994. cat conftest.err >&5
  46995. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  46996. (exit $ac_status); } >/dev/null && {
  46997. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  46998. test ! -s conftest.err
  46999. }; then
  47000. ac_header_preproc=yes
  47001. else
  47002. $as_echo "$as_me: failed program was:" >&5
  47003. sed 's/^/| /' conftest.$ac_ext >&5
  47004. ac_header_preproc=no
  47005. fi
  47006. rm -f conftest.err conftest.$ac_ext
  47007. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47008. $as_echo "$ac_header_preproc" >&6; }
  47009. # So? What about this header?
  47010. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47011. yes:no: )
  47012. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47013. $as_echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47014. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5
  47015. $as_echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;}
  47016. ac_header_preproc=yes
  47017. ;;
  47018. no:yes:* )
  47019. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5
  47020. $as_echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;}
  47021. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5
  47022. $as_echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;}
  47023. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5
  47024. $as_echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;}
  47025. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
  47026. $as_echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47027. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5
  47028. $as_echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;}
  47029. { $as_echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5
  47030. $as_echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;}
  47031. ( cat <<\_ASBOX
  47032. ## ------------------------------------------ ##
  47033. ## Report this to https://issues.asterisk.org ##
  47034. ## ------------------------------------------ ##
  47035. _ASBOX
  47036. ) | sed "s/^/$as_me: WARNING: /" >&2
  47037. ;;
  47038. esac
  47039. { $as_echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
  47040. $as_echo_n "checking for dahdi/tonezone.h... " >&6; }
  47041. if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
  47042. $as_echo_n "(cached) " >&6
  47043. else
  47044. ac_cv_header_dahdi_tonezone_h=$ac_header_preproc
  47045. fi
  47046. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
  47047. $as_echo "$ac_cv_header_dahdi_tonezone_h" >&6; }
  47048. fi
  47049. if test "x$ac_cv_header_dahdi_tonezone_h" = x""yes; then
  47050. TONEZONE_HEADER_FOUND=1
  47051. else
  47052. TONEZONE_HEADER_FOUND=0
  47053. fi
  47054. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47055. fi
  47056. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  47057. TONEZONE_LIB=""
  47058. TONEZONE_INCLUDE=""
  47059. else
  47060. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47061. TONEZONE_LIB=""
  47062. fi
  47063. PBX_TONEZONE=1
  47064. cat >>confdefs.h <<_ACEOF
  47065. #define HAVE_TONEZONE 1
  47066. _ACEOF
  47067. fi
  47068. fi
  47069. fi
  47070. if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
  47071. pbxlibdir=""
  47072. # if --with-USB=DIR has been specified, use it.
  47073. if test "x${USB_DIR}" != "x"; then
  47074. if test -d ${USB_DIR}/lib; then
  47075. pbxlibdir="-L${USB_DIR}/lib"
  47076. else
  47077. pbxlibdir="-L${USB_DIR}"
  47078. fi
  47079. fi
  47080. pbxfuncname="usb_init"
  47081. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  47082. AST_USB_FOUND=yes
  47083. else
  47084. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  47085. CFLAGS="${CFLAGS} "
  47086. as_ac_Lib=`$as_echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
  47087. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
  47088. $as_echo_n "checking for ${pbxfuncname} in -lusb... " >&6; }
  47089. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  47090. $as_echo_n "(cached) " >&6
  47091. else
  47092. ac_check_lib_save_LIBS=$LIBS
  47093. LIBS="-lusb ${pbxlibdir} $LIBS"
  47094. cat >conftest.$ac_ext <<_ACEOF
  47095. /* confdefs.h. */
  47096. _ACEOF
  47097. cat confdefs.h >>conftest.$ac_ext
  47098. cat >>conftest.$ac_ext <<_ACEOF
  47099. /* end confdefs.h. */
  47100. /* Override any GCC internal prototype to avoid an error.
  47101. Use char because int might match the return type of a GCC
  47102. builtin and then its argument prototype would still apply. */
  47103. #ifdef __cplusplus
  47104. extern "C"
  47105. #endif
  47106. char ${pbxfuncname} ();
  47107. int
  47108. main ()
  47109. {
  47110. return ${pbxfuncname} ();
  47111. ;
  47112. return 0;
  47113. }
  47114. _ACEOF
  47115. rm -f conftest.$ac_objext conftest$ac_exeext
  47116. if { (ac_try="$ac_link"
  47117. case "(($ac_try" in
  47118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47119. *) ac_try_echo=$ac_try;;
  47120. esac
  47121. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47122. $as_echo "$ac_try_echo") >&5
  47123. (eval "$ac_link") 2>conftest.er1
  47124. ac_status=$?
  47125. grep -v '^ *+' conftest.er1 >conftest.err
  47126. rm -f conftest.er1
  47127. cat conftest.err >&5
  47128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47129. (exit $ac_status); } && {
  47130. test -z "$ac_c_werror_flag" ||
  47131. test ! -s conftest.err
  47132. } && test -s conftest$ac_exeext && {
  47133. test "$cross_compiling" = yes ||
  47134. $as_test_x conftest$ac_exeext
  47135. }; then
  47136. eval "$as_ac_Lib=yes"
  47137. else
  47138. $as_echo "$as_me: failed program was:" >&5
  47139. sed 's/^/| /' conftest.$ac_ext >&5
  47140. eval "$as_ac_Lib=no"
  47141. fi
  47142. rm -rf conftest.dSYM
  47143. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47144. conftest$ac_exeext conftest.$ac_ext
  47145. LIBS=$ac_check_lib_save_LIBS
  47146. fi
  47147. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  47148. $as_echo "$as_val"'`
  47149. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  47150. $as_echo "$ac_res" >&6; }
  47151. as_val=`eval 'as_val=${'$as_ac_Lib'}
  47152. $as_echo "$as_val"'`
  47153. if test "x$as_val" = x""yes; then
  47154. AST_USB_FOUND=yes
  47155. else
  47156. AST_USB_FOUND=no
  47157. fi
  47158. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  47159. fi
  47160. # now check for the header.
  47161. if test "${AST_USB_FOUND}" = "yes"; then
  47162. USB_LIB="${pbxlibdir} -lusb "
  47163. # if --with-USB=DIR has been specified, use it.
  47164. if test "x${USB_DIR}" != "x"; then
  47165. USB_INCLUDE="-I${USB_DIR}/include"
  47166. fi
  47167. USB_INCLUDE="${USB_INCLUDE} "
  47168. if test "xusb.h" = "x" ; then # no header, assume found
  47169. USB_HEADER_FOUND="1"
  47170. else # check for the header
  47171. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  47172. CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}"
  47173. if test "${ac_cv_header_usb_h+set}" = set; then
  47174. { $as_echo "$as_me:$LINENO: checking for usb.h" >&5
  47175. $as_echo_n "checking for usb.h... " >&6; }
  47176. if test "${ac_cv_header_usb_h+set}" = set; then
  47177. $as_echo_n "(cached) " >&6
  47178. fi
  47179. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
  47180. $as_echo "$ac_cv_header_usb_h" >&6; }
  47181. else
  47182. # Is the header compilable?
  47183. { $as_echo "$as_me:$LINENO: checking usb.h usability" >&5
  47184. $as_echo_n "checking usb.h usability... " >&6; }
  47185. cat >conftest.$ac_ext <<_ACEOF
  47186. /* confdefs.h. */
  47187. _ACEOF
  47188. cat confdefs.h >>conftest.$ac_ext
  47189. cat >>conftest.$ac_ext <<_ACEOF
  47190. /* end confdefs.h. */
  47191. $ac_includes_default
  47192. #include <usb.h>
  47193. _ACEOF
  47194. rm -f conftest.$ac_objext
  47195. if { (ac_try="$ac_compile"
  47196. case "(($ac_try" in
  47197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47198. *) ac_try_echo=$ac_try;;
  47199. esac
  47200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47201. $as_echo "$ac_try_echo") >&5
  47202. (eval "$ac_compile") 2>conftest.er1
  47203. ac_status=$?
  47204. grep -v '^ *+' conftest.er1 >conftest.err
  47205. rm -f conftest.er1
  47206. cat conftest.err >&5
  47207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47208. (exit $ac_status); } && {
  47209. test -z "$ac_c_werror_flag" ||
  47210. test ! -s conftest.err
  47211. } && test -s conftest.$ac_objext; then
  47212. ac_header_compiler=yes
  47213. else
  47214. $as_echo "$as_me: failed program was:" >&5
  47215. sed 's/^/| /' conftest.$ac_ext >&5
  47216. ac_header_compiler=no
  47217. fi
  47218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47219. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47220. $as_echo "$ac_header_compiler" >&6; }
  47221. # Is the header present?
  47222. { $as_echo "$as_me:$LINENO: checking usb.h presence" >&5
  47223. $as_echo_n "checking usb.h presence... " >&6; }
  47224. cat >conftest.$ac_ext <<_ACEOF
  47225. /* confdefs.h. */
  47226. _ACEOF
  47227. cat confdefs.h >>conftest.$ac_ext
  47228. cat >>conftest.$ac_ext <<_ACEOF
  47229. /* end confdefs.h. */
  47230. #include <usb.h>
  47231. _ACEOF
  47232. if { (ac_try="$ac_cpp conftest.$ac_ext"
  47233. case "(($ac_try" in
  47234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47235. *) ac_try_echo=$ac_try;;
  47236. esac
  47237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47238. $as_echo "$ac_try_echo") >&5
  47239. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47240. ac_status=$?
  47241. grep -v '^ *+' conftest.er1 >conftest.err
  47242. rm -f conftest.er1
  47243. cat conftest.err >&5
  47244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47245. (exit $ac_status); } >/dev/null && {
  47246. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  47247. test ! -s conftest.err
  47248. }; then
  47249. ac_header_preproc=yes
  47250. else
  47251. $as_echo "$as_me: failed program was:" >&5
  47252. sed 's/^/| /' conftest.$ac_ext >&5
  47253. ac_header_preproc=no
  47254. fi
  47255. rm -f conftest.err conftest.$ac_ext
  47256. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47257. $as_echo "$ac_header_preproc" >&6; }
  47258. # So? What about this header?
  47259. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47260. yes:no: )
  47261. { $as_echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47262. $as_echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47263. { $as_echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
  47264. $as_echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
  47265. ac_header_preproc=yes
  47266. ;;
  47267. no:yes:* )
  47268. { $as_echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
  47269. $as_echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
  47270. { $as_echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
  47271. $as_echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
  47272. { $as_echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
  47273. $as_echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
  47274. { $as_echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
  47275. $as_echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47276. { $as_echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
  47277. $as_echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
  47278. { $as_echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
  47279. $as_echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
  47280. ( cat <<\_ASBOX
  47281. ## ------------------------------------------ ##
  47282. ## Report this to https://issues.asterisk.org ##
  47283. ## ------------------------------------------ ##
  47284. _ASBOX
  47285. ) | sed "s/^/$as_me: WARNING: /" >&2
  47286. ;;
  47287. esac
  47288. { $as_echo "$as_me:$LINENO: checking for usb.h" >&5
  47289. $as_echo_n "checking for usb.h... " >&6; }
  47290. if test "${ac_cv_header_usb_h+set}" = set; then
  47291. $as_echo_n "(cached) " >&6
  47292. else
  47293. ac_cv_header_usb_h=$ac_header_preproc
  47294. fi
  47295. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
  47296. $as_echo "$ac_cv_header_usb_h" >&6; }
  47297. fi
  47298. if test "x$ac_cv_header_usb_h" = x""yes; then
  47299. USB_HEADER_FOUND=1
  47300. else
  47301. USB_HEADER_FOUND=0
  47302. fi
  47303. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47304. fi
  47305. if test "x${USB_HEADER_FOUND}" = "x0" ; then
  47306. USB_LIB=""
  47307. USB_INCLUDE=""
  47308. else
  47309. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47310. USB_LIB=""
  47311. fi
  47312. PBX_USB=1
  47313. cat >>confdefs.h <<_ACEOF
  47314. #define HAVE_USB 1
  47315. _ACEOF
  47316. fi
  47317. fi
  47318. fi
  47319. if test "${OSARCH}" = "OpenBSD";
  47320. then
  47321. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  47322. pbxlibdir=""
  47323. # if --with-VORBIS=DIR has been specified, use it.
  47324. if test "x${VORBIS_DIR}" != "x"; then
  47325. if test -d ${VORBIS_DIR}/lib; then
  47326. pbxlibdir="-L${VORBIS_DIR}/lib"
  47327. else
  47328. pbxlibdir="-L${VORBIS_DIR}"
  47329. fi
  47330. fi
  47331. pbxfuncname="vorbis_info_init"
  47332. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  47333. AST_VORBIS_FOUND=yes
  47334. else
  47335. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  47336. CFLAGS="${CFLAGS} "
  47337. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  47338. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
  47339. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  47340. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  47341. $as_echo_n "(cached) " >&6
  47342. else
  47343. ac_check_lib_save_LIBS=$LIBS
  47344. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile -logg $LIBS"
  47345. cat >conftest.$ac_ext <<_ACEOF
  47346. /* confdefs.h. */
  47347. _ACEOF
  47348. cat confdefs.h >>conftest.$ac_ext
  47349. cat >>conftest.$ac_ext <<_ACEOF
  47350. /* end confdefs.h. */
  47351. /* Override any GCC internal prototype to avoid an error.
  47352. Use char because int might match the return type of a GCC
  47353. builtin and then its argument prototype would still apply. */
  47354. #ifdef __cplusplus
  47355. extern "C"
  47356. #endif
  47357. char ${pbxfuncname} ();
  47358. int
  47359. main ()
  47360. {
  47361. return ${pbxfuncname} ();
  47362. ;
  47363. return 0;
  47364. }
  47365. _ACEOF
  47366. rm -f conftest.$ac_objext conftest$ac_exeext
  47367. if { (ac_try="$ac_link"
  47368. case "(($ac_try" in
  47369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47370. *) ac_try_echo=$ac_try;;
  47371. esac
  47372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47373. $as_echo "$ac_try_echo") >&5
  47374. (eval "$ac_link") 2>conftest.er1
  47375. ac_status=$?
  47376. grep -v '^ *+' conftest.er1 >conftest.err
  47377. rm -f conftest.er1
  47378. cat conftest.err >&5
  47379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47380. (exit $ac_status); } && {
  47381. test -z "$ac_c_werror_flag" ||
  47382. test ! -s conftest.err
  47383. } && test -s conftest$ac_exeext && {
  47384. test "$cross_compiling" = yes ||
  47385. $as_test_x conftest$ac_exeext
  47386. }; then
  47387. eval "$as_ac_Lib=yes"
  47388. else
  47389. $as_echo "$as_me: failed program was:" >&5
  47390. sed 's/^/| /' conftest.$ac_ext >&5
  47391. eval "$as_ac_Lib=no"
  47392. fi
  47393. rm -rf conftest.dSYM
  47394. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47395. conftest$ac_exeext conftest.$ac_ext
  47396. LIBS=$ac_check_lib_save_LIBS
  47397. fi
  47398. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  47399. $as_echo "$as_val"'`
  47400. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  47401. $as_echo "$ac_res" >&6; }
  47402. as_val=`eval 'as_val=${'$as_ac_Lib'}
  47403. $as_echo "$as_val"'`
  47404. if test "x$as_val" = x""yes; then
  47405. AST_VORBIS_FOUND=yes
  47406. else
  47407. AST_VORBIS_FOUND=no
  47408. fi
  47409. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  47410. fi
  47411. # now check for the header.
  47412. if test "${AST_VORBIS_FOUND}" = "yes"; then
  47413. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile -logg"
  47414. # if --with-VORBIS=DIR has been specified, use it.
  47415. if test "x${VORBIS_DIR}" != "x"; then
  47416. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  47417. fi
  47418. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  47419. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  47420. VORBIS_HEADER_FOUND="1"
  47421. else # check for the header
  47422. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  47423. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  47424. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47425. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47426. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47427. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47428. $as_echo_n "(cached) " >&6
  47429. fi
  47430. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47431. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47432. else
  47433. # Is the header compilable?
  47434. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
  47435. $as_echo_n "checking vorbis/codec.h usability... " >&6; }
  47436. cat >conftest.$ac_ext <<_ACEOF
  47437. /* confdefs.h. */
  47438. _ACEOF
  47439. cat confdefs.h >>conftest.$ac_ext
  47440. cat >>conftest.$ac_ext <<_ACEOF
  47441. /* end confdefs.h. */
  47442. $ac_includes_default
  47443. #include <vorbis/codec.h>
  47444. _ACEOF
  47445. rm -f conftest.$ac_objext
  47446. if { (ac_try="$ac_compile"
  47447. case "(($ac_try" in
  47448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47449. *) ac_try_echo=$ac_try;;
  47450. esac
  47451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47452. $as_echo "$ac_try_echo") >&5
  47453. (eval "$ac_compile") 2>conftest.er1
  47454. ac_status=$?
  47455. grep -v '^ *+' conftest.er1 >conftest.err
  47456. rm -f conftest.er1
  47457. cat conftest.err >&5
  47458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47459. (exit $ac_status); } && {
  47460. test -z "$ac_c_werror_flag" ||
  47461. test ! -s conftest.err
  47462. } && test -s conftest.$ac_objext; then
  47463. ac_header_compiler=yes
  47464. else
  47465. $as_echo "$as_me: failed program was:" >&5
  47466. sed 's/^/| /' conftest.$ac_ext >&5
  47467. ac_header_compiler=no
  47468. fi
  47469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47470. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47471. $as_echo "$ac_header_compiler" >&6; }
  47472. # Is the header present?
  47473. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
  47474. $as_echo_n "checking vorbis/codec.h presence... " >&6; }
  47475. cat >conftest.$ac_ext <<_ACEOF
  47476. /* confdefs.h. */
  47477. _ACEOF
  47478. cat confdefs.h >>conftest.$ac_ext
  47479. cat >>conftest.$ac_ext <<_ACEOF
  47480. /* end confdefs.h. */
  47481. #include <vorbis/codec.h>
  47482. _ACEOF
  47483. if { (ac_try="$ac_cpp conftest.$ac_ext"
  47484. case "(($ac_try" in
  47485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47486. *) ac_try_echo=$ac_try;;
  47487. esac
  47488. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47489. $as_echo "$ac_try_echo") >&5
  47490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47491. ac_status=$?
  47492. grep -v '^ *+' conftest.er1 >conftest.err
  47493. rm -f conftest.er1
  47494. cat conftest.err >&5
  47495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47496. (exit $ac_status); } >/dev/null && {
  47497. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  47498. test ! -s conftest.err
  47499. }; then
  47500. ac_header_preproc=yes
  47501. else
  47502. $as_echo "$as_me: failed program was:" >&5
  47503. sed 's/^/| /' conftest.$ac_ext >&5
  47504. ac_header_preproc=no
  47505. fi
  47506. rm -f conftest.err conftest.$ac_ext
  47507. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47508. $as_echo "$ac_header_preproc" >&6; }
  47509. # So? What about this header?
  47510. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47511. yes:no: )
  47512. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47513. $as_echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47514. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
  47515. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
  47516. ac_header_preproc=yes
  47517. ;;
  47518. no:yes:* )
  47519. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
  47520. $as_echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
  47521. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
  47522. $as_echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
  47523. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
  47524. $as_echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
  47525. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
  47526. $as_echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47527. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
  47528. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
  47529. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
  47530. $as_echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
  47531. ( cat <<\_ASBOX
  47532. ## ------------------------------------------ ##
  47533. ## Report this to https://issues.asterisk.org ##
  47534. ## ------------------------------------------ ##
  47535. _ASBOX
  47536. ) | sed "s/^/$as_me: WARNING: /" >&2
  47537. ;;
  47538. esac
  47539. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47540. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47541. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47542. $as_echo_n "(cached) " >&6
  47543. else
  47544. ac_cv_header_vorbis_codec_h=$ac_header_preproc
  47545. fi
  47546. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47547. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47548. fi
  47549. if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then
  47550. VORBIS_HEADER_FOUND=1
  47551. else
  47552. VORBIS_HEADER_FOUND=0
  47553. fi
  47554. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47555. fi
  47556. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  47557. VORBIS_LIB=""
  47558. VORBIS_INCLUDE=""
  47559. else
  47560. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47561. VORBIS_LIB=""
  47562. fi
  47563. PBX_VORBIS=1
  47564. cat >>confdefs.h <<_ACEOF
  47565. #define HAVE_VORBIS 1
  47566. _ACEOF
  47567. fi
  47568. fi
  47569. fi
  47570. else
  47571. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  47572. pbxlibdir=""
  47573. # if --with-VORBIS=DIR has been specified, use it.
  47574. if test "x${VORBIS_DIR}" != "x"; then
  47575. if test -d ${VORBIS_DIR}/lib; then
  47576. pbxlibdir="-L${VORBIS_DIR}/lib"
  47577. else
  47578. pbxlibdir="-L${VORBIS_DIR}"
  47579. fi
  47580. fi
  47581. pbxfuncname="vorbis_info_init"
  47582. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  47583. AST_VORBIS_FOUND=yes
  47584. else
  47585. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  47586. CFLAGS="${CFLAGS} "
  47587. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  47588. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
  47589. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  47590. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  47591. $as_echo_n "(cached) " >&6
  47592. else
  47593. ac_check_lib_save_LIBS=$LIBS
  47594. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $LIBS"
  47595. cat >conftest.$ac_ext <<_ACEOF
  47596. /* confdefs.h. */
  47597. _ACEOF
  47598. cat confdefs.h >>conftest.$ac_ext
  47599. cat >>conftest.$ac_ext <<_ACEOF
  47600. /* end confdefs.h. */
  47601. /* Override any GCC internal prototype to avoid an error.
  47602. Use char because int might match the return type of a GCC
  47603. builtin and then its argument prototype would still apply. */
  47604. #ifdef __cplusplus
  47605. extern "C"
  47606. #endif
  47607. char ${pbxfuncname} ();
  47608. int
  47609. main ()
  47610. {
  47611. return ${pbxfuncname} ();
  47612. ;
  47613. return 0;
  47614. }
  47615. _ACEOF
  47616. rm -f conftest.$ac_objext conftest$ac_exeext
  47617. if { (ac_try="$ac_link"
  47618. case "(($ac_try" in
  47619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47620. *) ac_try_echo=$ac_try;;
  47621. esac
  47622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47623. $as_echo "$ac_try_echo") >&5
  47624. (eval "$ac_link") 2>conftest.er1
  47625. ac_status=$?
  47626. grep -v '^ *+' conftest.er1 >conftest.err
  47627. rm -f conftest.er1
  47628. cat conftest.err >&5
  47629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47630. (exit $ac_status); } && {
  47631. test -z "$ac_c_werror_flag" ||
  47632. test ! -s conftest.err
  47633. } && test -s conftest$ac_exeext && {
  47634. test "$cross_compiling" = yes ||
  47635. $as_test_x conftest$ac_exeext
  47636. }; then
  47637. eval "$as_ac_Lib=yes"
  47638. else
  47639. $as_echo "$as_me: failed program was:" >&5
  47640. sed 's/^/| /' conftest.$ac_ext >&5
  47641. eval "$as_ac_Lib=no"
  47642. fi
  47643. rm -rf conftest.dSYM
  47644. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47645. conftest$ac_exeext conftest.$ac_ext
  47646. LIBS=$ac_check_lib_save_LIBS
  47647. fi
  47648. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  47649. $as_echo "$as_val"'`
  47650. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  47651. $as_echo "$ac_res" >&6; }
  47652. as_val=`eval 'as_val=${'$as_ac_Lib'}
  47653. $as_echo "$as_val"'`
  47654. if test "x$as_val" = x""yes; then
  47655. AST_VORBIS_FOUND=yes
  47656. else
  47657. AST_VORBIS_FOUND=no
  47658. fi
  47659. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  47660. fi
  47661. # now check for the header.
  47662. if test "${AST_VORBIS_FOUND}" = "yes"; then
  47663. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
  47664. # if --with-VORBIS=DIR has been specified, use it.
  47665. if test "x${VORBIS_DIR}" != "x"; then
  47666. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  47667. fi
  47668. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  47669. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  47670. VORBIS_HEADER_FOUND="1"
  47671. else # check for the header
  47672. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  47673. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  47674. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47675. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47676. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47677. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47678. $as_echo_n "(cached) " >&6
  47679. fi
  47680. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47681. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47682. else
  47683. # Is the header compilable?
  47684. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
  47685. $as_echo_n "checking vorbis/codec.h usability... " >&6; }
  47686. cat >conftest.$ac_ext <<_ACEOF
  47687. /* confdefs.h. */
  47688. _ACEOF
  47689. cat confdefs.h >>conftest.$ac_ext
  47690. cat >>conftest.$ac_ext <<_ACEOF
  47691. /* end confdefs.h. */
  47692. $ac_includes_default
  47693. #include <vorbis/codec.h>
  47694. _ACEOF
  47695. rm -f conftest.$ac_objext
  47696. if { (ac_try="$ac_compile"
  47697. case "(($ac_try" in
  47698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47699. *) ac_try_echo=$ac_try;;
  47700. esac
  47701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47702. $as_echo "$ac_try_echo") >&5
  47703. (eval "$ac_compile") 2>conftest.er1
  47704. ac_status=$?
  47705. grep -v '^ *+' conftest.er1 >conftest.err
  47706. rm -f conftest.er1
  47707. cat conftest.err >&5
  47708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47709. (exit $ac_status); } && {
  47710. test -z "$ac_c_werror_flag" ||
  47711. test ! -s conftest.err
  47712. } && test -s conftest.$ac_objext; then
  47713. ac_header_compiler=yes
  47714. else
  47715. $as_echo "$as_me: failed program was:" >&5
  47716. sed 's/^/| /' conftest.$ac_ext >&5
  47717. ac_header_compiler=no
  47718. fi
  47719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47720. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  47721. $as_echo "$ac_header_compiler" >&6; }
  47722. # Is the header present?
  47723. { $as_echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
  47724. $as_echo_n "checking vorbis/codec.h presence... " >&6; }
  47725. cat >conftest.$ac_ext <<_ACEOF
  47726. /* confdefs.h. */
  47727. _ACEOF
  47728. cat confdefs.h >>conftest.$ac_ext
  47729. cat >>conftest.$ac_ext <<_ACEOF
  47730. /* end confdefs.h. */
  47731. #include <vorbis/codec.h>
  47732. _ACEOF
  47733. if { (ac_try="$ac_cpp conftest.$ac_ext"
  47734. case "(($ac_try" in
  47735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47736. *) ac_try_echo=$ac_try;;
  47737. esac
  47738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47739. $as_echo "$ac_try_echo") >&5
  47740. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  47741. ac_status=$?
  47742. grep -v '^ *+' conftest.er1 >conftest.err
  47743. rm -f conftest.er1
  47744. cat conftest.err >&5
  47745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47746. (exit $ac_status); } >/dev/null && {
  47747. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  47748. test ! -s conftest.err
  47749. }; then
  47750. ac_header_preproc=yes
  47751. else
  47752. $as_echo "$as_me: failed program was:" >&5
  47753. sed 's/^/| /' conftest.$ac_ext >&5
  47754. ac_header_preproc=no
  47755. fi
  47756. rm -f conftest.err conftest.$ac_ext
  47757. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  47758. $as_echo "$ac_header_preproc" >&6; }
  47759. # So? What about this header?
  47760. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  47761. yes:no: )
  47762. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
  47763. $as_echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  47764. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
  47765. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
  47766. ac_header_preproc=yes
  47767. ;;
  47768. no:yes:* )
  47769. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
  47770. $as_echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
  47771. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
  47772. $as_echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
  47773. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
  47774. $as_echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
  47775. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
  47776. $as_echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
  47777. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
  47778. $as_echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
  47779. { $as_echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
  47780. $as_echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
  47781. ( cat <<\_ASBOX
  47782. ## ------------------------------------------ ##
  47783. ## Report this to https://issues.asterisk.org ##
  47784. ## ------------------------------------------ ##
  47785. _ASBOX
  47786. ) | sed "s/^/$as_me: WARNING: /" >&2
  47787. ;;
  47788. esac
  47789. { $as_echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
  47790. $as_echo_n "checking for vorbis/codec.h... " >&6; }
  47791. if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
  47792. $as_echo_n "(cached) " >&6
  47793. else
  47794. ac_cv_header_vorbis_codec_h=$ac_header_preproc
  47795. fi
  47796. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
  47797. $as_echo "$ac_cv_header_vorbis_codec_h" >&6; }
  47798. fi
  47799. if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then
  47800. VORBIS_HEADER_FOUND=1
  47801. else
  47802. VORBIS_HEADER_FOUND=0
  47803. fi
  47804. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  47805. fi
  47806. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  47807. VORBIS_LIB=""
  47808. VORBIS_INCLUDE=""
  47809. else
  47810. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  47811. VORBIS_LIB=""
  47812. fi
  47813. PBX_VORBIS=1
  47814. cat >>confdefs.h <<_ACEOF
  47815. #define HAVE_VORBIS 1
  47816. _ACEOF
  47817. fi
  47818. fi
  47819. fi
  47820. fi
  47821. if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
  47822. { $as_echo "$as_me:$LINENO: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
  47823. $as_echo_n "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
  47824. saved_cppflags="${CPPFLAGS}"
  47825. if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
  47826. VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
  47827. fi
  47828. CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
  47829. cat >conftest.$ac_ext <<_ACEOF
  47830. /* confdefs.h. */
  47831. _ACEOF
  47832. cat confdefs.h >>conftest.$ac_ext
  47833. cat >>conftest.$ac_ext <<_ACEOF
  47834. /* end confdefs.h. */
  47835. #include <vorbis/vorbisfile.h>
  47836. int
  47837. main ()
  47838. {
  47839. #if !defined(OV_CALLBACKS_NOCLOSE)
  47840. (void) OV_CALLBACKS_NOCLOSE;
  47841. #endif
  47842. ;
  47843. return 0;
  47844. }
  47845. _ACEOF
  47846. rm -f conftest.$ac_objext
  47847. if { (ac_try="$ac_compile"
  47848. case "(($ac_try" in
  47849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47850. *) ac_try_echo=$ac_try;;
  47851. esac
  47852. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47853. $as_echo "$ac_try_echo") >&5
  47854. (eval "$ac_compile") 2>conftest.er1
  47855. ac_status=$?
  47856. grep -v '^ *+' conftest.er1 >conftest.err
  47857. rm -f conftest.er1
  47858. cat conftest.err >&5
  47859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47860. (exit $ac_status); } && {
  47861. test -z "$ac_c_werror_flag" ||
  47862. test ! -s conftest.err
  47863. } && test -s conftest.$ac_objext; then
  47864. { $as_echo "$as_me:$LINENO: result: yes" >&5
  47865. $as_echo "yes" >&6; }
  47866. PBX_VORBIS_OPEN_CALLBACKS=1
  47867. cat >>confdefs.h <<\_ACEOF
  47868. #define HAVE_VORBIS_OPEN_CALLBACKS 1
  47869. _ACEOF
  47870. else
  47871. $as_echo "$as_me: failed program was:" >&5
  47872. sed 's/^/| /' conftest.$ac_ext >&5
  47873. { $as_echo "$as_me:$LINENO: result: no" >&5
  47874. $as_echo "no" >&6; }
  47875. fi
  47876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47877. CPPFLAGS="${saved_cppflags}"
  47878. fi
  47879. ac_ext=cpp
  47880. ac_cpp='$CXXCPP $CPPFLAGS'
  47881. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47882. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47883. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47884. if test "${USE_VPB}" != "no"; then
  47885. { $as_echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
  47886. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  47887. saved_libs="${LIBS}"
  47888. saved_cppflags="${CPPFLAGS}"
  47889. if test "x${VPB_DIR}" != "x"; then
  47890. if test -d ${VPB_DIR}/lib; then
  47891. vpblibdir=${VPB_DIR}/lib
  47892. else
  47893. vpblibdir=${VPB_DIR}
  47894. fi
  47895. LIBS="${LIBS} -L${vpblibdir}"
  47896. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  47897. fi
  47898. LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
  47899. CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
  47900. cat >conftest.$ac_ext <<_ACEOF
  47901. /* confdefs.h. */
  47902. _ACEOF
  47903. cat confdefs.h >>conftest.$ac_ext
  47904. cat >>conftest.$ac_ext <<_ACEOF
  47905. /* end confdefs.h. */
  47906. #include <vpbapi.h>
  47907. int
  47908. main ()
  47909. {
  47910. int q = vpb_open(0,0);
  47911. ;
  47912. return 0;
  47913. }
  47914. _ACEOF
  47915. rm -f conftest.$ac_objext conftest$ac_exeext
  47916. if { (ac_try="$ac_link"
  47917. case "(($ac_try" in
  47918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  47919. *) ac_try_echo=$ac_try;;
  47920. esac
  47921. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  47922. $as_echo "$ac_try_echo") >&5
  47923. (eval "$ac_link") 2>conftest.er1
  47924. ac_status=$?
  47925. grep -v '^ *+' conftest.er1 >conftest.err
  47926. rm -f conftest.er1
  47927. cat conftest.err >&5
  47928. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  47929. (exit $ac_status); } && {
  47930. test -z "$ac_cxx_werror_flag" ||
  47931. test ! -s conftest.err
  47932. } && test -s conftest$ac_exeext && {
  47933. test "$cross_compiling" = yes ||
  47934. $as_test_x conftest$ac_exeext
  47935. }; then
  47936. { $as_echo "$as_me:$LINENO: result: yes" >&5
  47937. $as_echo "yes" >&6; }
  47938. ac_cv_lib_vpb_vpb_open="yes"
  47939. else
  47940. $as_echo "$as_me: failed program was:" >&5
  47941. sed 's/^/| /' conftest.$ac_ext >&5
  47942. { $as_echo "$as_me:$LINENO: result: no" >&5
  47943. $as_echo "no" >&6; }
  47944. ac_cv_lib_vpb_vpb_open="no"
  47945. fi
  47946. rm -rf conftest.dSYM
  47947. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  47948. conftest$ac_exeext conftest.$ac_ext
  47949. LIBS="${saved_libs}"
  47950. CPPFLAGS="${saved_cppflags}"
  47951. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  47952. VPB_LIB="-lvpb"
  47953. if test "${VPB_DIR}" != ""; then
  47954. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  47955. VPB_INCLUDE="-I${VPB_DIR}/include"
  47956. fi
  47957. PBX_VPB=1
  47958. cat >>confdefs.h <<\_ACEOF
  47959. #define HAVE_VPB 1
  47960. _ACEOF
  47961. fi
  47962. fi
  47963. ac_ext=c
  47964. ac_cpp='$CPP $CPPFLAGS'
  47965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47968. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  47969. pbxlibdir=""
  47970. # if --with-ZLIB=DIR has been specified, use it.
  47971. if test "x${ZLIB_DIR}" != "x"; then
  47972. if test -d ${ZLIB_DIR}/lib; then
  47973. pbxlibdir="-L${ZLIB_DIR}/lib"
  47974. else
  47975. pbxlibdir="-L${ZLIB_DIR}"
  47976. fi
  47977. fi
  47978. pbxfuncname="compress"
  47979. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  47980. AST_ZLIB_FOUND=yes
  47981. else
  47982. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  47983. CFLAGS="${CFLAGS} "
  47984. as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
  47985. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
  47986. $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
  47987. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  47988. $as_echo_n "(cached) " >&6
  47989. else
  47990. ac_check_lib_save_LIBS=$LIBS
  47991. LIBS="-lz ${pbxlibdir} $LIBS"
  47992. cat >conftest.$ac_ext <<_ACEOF
  47993. /* confdefs.h. */
  47994. _ACEOF
  47995. cat confdefs.h >>conftest.$ac_ext
  47996. cat >>conftest.$ac_ext <<_ACEOF
  47997. /* end confdefs.h. */
  47998. /* Override any GCC internal prototype to avoid an error.
  47999. Use char because int might match the return type of a GCC
  48000. builtin and then its argument prototype would still apply. */
  48001. #ifdef __cplusplus
  48002. extern "C"
  48003. #endif
  48004. char ${pbxfuncname} ();
  48005. int
  48006. main ()
  48007. {
  48008. return ${pbxfuncname} ();
  48009. ;
  48010. return 0;
  48011. }
  48012. _ACEOF
  48013. rm -f conftest.$ac_objext conftest$ac_exeext
  48014. if { (ac_try="$ac_link"
  48015. case "(($ac_try" in
  48016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48017. *) ac_try_echo=$ac_try;;
  48018. esac
  48019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48020. $as_echo "$ac_try_echo") >&5
  48021. (eval "$ac_link") 2>conftest.er1
  48022. ac_status=$?
  48023. grep -v '^ *+' conftest.er1 >conftest.err
  48024. rm -f conftest.er1
  48025. cat conftest.err >&5
  48026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48027. (exit $ac_status); } && {
  48028. test -z "$ac_c_werror_flag" ||
  48029. test ! -s conftest.err
  48030. } && test -s conftest$ac_exeext && {
  48031. test "$cross_compiling" = yes ||
  48032. $as_test_x conftest$ac_exeext
  48033. }; then
  48034. eval "$as_ac_Lib=yes"
  48035. else
  48036. $as_echo "$as_me: failed program was:" >&5
  48037. sed 's/^/| /' conftest.$ac_ext >&5
  48038. eval "$as_ac_Lib=no"
  48039. fi
  48040. rm -rf conftest.dSYM
  48041. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48042. conftest$ac_exeext conftest.$ac_ext
  48043. LIBS=$ac_check_lib_save_LIBS
  48044. fi
  48045. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  48046. $as_echo "$as_val"'`
  48047. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  48048. $as_echo "$ac_res" >&6; }
  48049. as_val=`eval 'as_val=${'$as_ac_Lib'}
  48050. $as_echo "$as_val"'`
  48051. if test "x$as_val" = x""yes; then
  48052. AST_ZLIB_FOUND=yes
  48053. else
  48054. AST_ZLIB_FOUND=no
  48055. fi
  48056. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  48057. fi
  48058. # now check for the header.
  48059. if test "${AST_ZLIB_FOUND}" = "yes"; then
  48060. ZLIB_LIB="${pbxlibdir} -lz "
  48061. # if --with-ZLIB=DIR has been specified, use it.
  48062. if test "x${ZLIB_DIR}" != "x"; then
  48063. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  48064. fi
  48065. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  48066. if test "xzlib.h" = "x" ; then # no header, assume found
  48067. ZLIB_HEADER_FOUND="1"
  48068. else # check for the header
  48069. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  48070. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  48071. if test "${ac_cv_header_zlib_h+set}" = set; then
  48072. { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
  48073. $as_echo_n "checking for zlib.h... " >&6; }
  48074. if test "${ac_cv_header_zlib_h+set}" = set; then
  48075. $as_echo_n "(cached) " >&6
  48076. fi
  48077. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  48078. $as_echo "$ac_cv_header_zlib_h" >&6; }
  48079. else
  48080. # Is the header compilable?
  48081. { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
  48082. $as_echo_n "checking zlib.h usability... " >&6; }
  48083. cat >conftest.$ac_ext <<_ACEOF
  48084. /* confdefs.h. */
  48085. _ACEOF
  48086. cat confdefs.h >>conftest.$ac_ext
  48087. cat >>conftest.$ac_ext <<_ACEOF
  48088. /* end confdefs.h. */
  48089. $ac_includes_default
  48090. #include <zlib.h>
  48091. _ACEOF
  48092. rm -f conftest.$ac_objext
  48093. if { (ac_try="$ac_compile"
  48094. case "(($ac_try" in
  48095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48096. *) ac_try_echo=$ac_try;;
  48097. esac
  48098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48099. $as_echo "$ac_try_echo") >&5
  48100. (eval "$ac_compile") 2>conftest.er1
  48101. ac_status=$?
  48102. grep -v '^ *+' conftest.er1 >conftest.err
  48103. rm -f conftest.er1
  48104. cat conftest.err >&5
  48105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48106. (exit $ac_status); } && {
  48107. test -z "$ac_c_werror_flag" ||
  48108. test ! -s conftest.err
  48109. } && test -s conftest.$ac_objext; then
  48110. ac_header_compiler=yes
  48111. else
  48112. $as_echo "$as_me: failed program was:" >&5
  48113. sed 's/^/| /' conftest.$ac_ext >&5
  48114. ac_header_compiler=no
  48115. fi
  48116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48117. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48118. $as_echo "$ac_header_compiler" >&6; }
  48119. # Is the header present?
  48120. { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
  48121. $as_echo_n "checking zlib.h presence... " >&6; }
  48122. cat >conftest.$ac_ext <<_ACEOF
  48123. /* confdefs.h. */
  48124. _ACEOF
  48125. cat confdefs.h >>conftest.$ac_ext
  48126. cat >>conftest.$ac_ext <<_ACEOF
  48127. /* end confdefs.h. */
  48128. #include <zlib.h>
  48129. _ACEOF
  48130. if { (ac_try="$ac_cpp conftest.$ac_ext"
  48131. case "(($ac_try" in
  48132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48133. *) ac_try_echo=$ac_try;;
  48134. esac
  48135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48136. $as_echo "$ac_try_echo") >&5
  48137. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48138. ac_status=$?
  48139. grep -v '^ *+' conftest.er1 >conftest.err
  48140. rm -f conftest.er1
  48141. cat conftest.err >&5
  48142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48143. (exit $ac_status); } >/dev/null && {
  48144. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48145. test ! -s conftest.err
  48146. }; then
  48147. ac_header_preproc=yes
  48148. else
  48149. $as_echo "$as_me: failed program was:" >&5
  48150. sed 's/^/| /' conftest.$ac_ext >&5
  48151. ac_header_preproc=no
  48152. fi
  48153. rm -f conftest.err conftest.$ac_ext
  48154. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48155. $as_echo "$ac_header_preproc" >&6; }
  48156. # So? What about this header?
  48157. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48158. yes:no: )
  48159. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  48160. $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48161. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  48162. $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  48163. ac_header_preproc=yes
  48164. ;;
  48165. no:yes:* )
  48166. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  48167. $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  48168. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  48169. $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  48170. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  48171. $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  48172. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  48173. $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  48174. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  48175. $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  48176. { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  48177. $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  48178. ( cat <<\_ASBOX
  48179. ## ------------------------------------------ ##
  48180. ## Report this to https://issues.asterisk.org ##
  48181. ## ------------------------------------------ ##
  48182. _ASBOX
  48183. ) | sed "s/^/$as_me: WARNING: /" >&2
  48184. ;;
  48185. esac
  48186. { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
  48187. $as_echo_n "checking for zlib.h... " >&6; }
  48188. if test "${ac_cv_header_zlib_h+set}" = set; then
  48189. $as_echo_n "(cached) " >&6
  48190. else
  48191. ac_cv_header_zlib_h=$ac_header_preproc
  48192. fi
  48193. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  48194. $as_echo "$ac_cv_header_zlib_h" >&6; }
  48195. fi
  48196. if test "x$ac_cv_header_zlib_h" = x""yes; then
  48197. ZLIB_HEADER_FOUND=1
  48198. else
  48199. ZLIB_HEADER_FOUND=0
  48200. fi
  48201. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  48202. fi
  48203. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  48204. ZLIB_LIB=""
  48205. ZLIB_INCLUDE=""
  48206. else
  48207. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  48208. ZLIB_LIB=""
  48209. fi
  48210. PBX_ZLIB=1
  48211. cat >>confdefs.h <<_ACEOF
  48212. #define HAVE_ZLIB 1
  48213. _ACEOF
  48214. fi
  48215. fi
  48216. fi
  48217. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  48218. # Does ODBC support wide characters?
  48219. { $as_echo "$as_me:$LINENO: checking whether ODBC has support for Unicode types" >&5
  48220. $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
  48221. cat >conftest.$ac_ext <<_ACEOF
  48222. /* confdefs.h. */
  48223. _ACEOF
  48224. cat confdefs.h >>conftest.$ac_ext
  48225. cat >>conftest.$ac_ext <<_ACEOF
  48226. /* end confdefs.h. */
  48227. #include <sql.h>
  48228. #include <sqlext.h>
  48229. int
  48230. main ()
  48231. {
  48232. int foo = SQL_WCHAR
  48233. ;
  48234. return 0;
  48235. }
  48236. _ACEOF
  48237. rm -f conftest.$ac_objext conftest$ac_exeext
  48238. if { (ac_try="$ac_link"
  48239. case "(($ac_try" in
  48240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48241. *) ac_try_echo=$ac_try;;
  48242. esac
  48243. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48244. $as_echo "$ac_try_echo") >&5
  48245. (eval "$ac_link") 2>conftest.er1
  48246. ac_status=$?
  48247. grep -v '^ *+' conftest.er1 >conftest.err
  48248. rm -f conftest.er1
  48249. cat conftest.err >&5
  48250. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48251. (exit $ac_status); } && {
  48252. test -z "$ac_c_werror_flag" ||
  48253. test ! -s conftest.err
  48254. } && test -s conftest$ac_exeext && {
  48255. test "$cross_compiling" = yes ||
  48256. $as_test_x conftest$ac_exeext
  48257. }; then
  48258. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48259. $as_echo "yes" >&6; }
  48260. cat >>confdefs.h <<\_ACEOF
  48261. #define HAVE_ODBC_WCHAR 1
  48262. _ACEOF
  48263. else
  48264. $as_echo "$as_me: failed program was:" >&5
  48265. sed 's/^/| /' conftest.$ac_ext >&5
  48266. { $as_echo "$as_me:$LINENO: result: no" >&5
  48267. $as_echo "no" >&6; }
  48268. fi
  48269. rm -rf conftest.dSYM
  48270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48271. conftest$ac_exeext conftest.$ac_ext
  48272. fi
  48273. if test "${ac_cv_header_h323_h+set}" = set; then
  48274. { $as_echo "$as_me:$LINENO: checking for h323.h" >&5
  48275. $as_echo_n "checking for h323.h... " >&6; }
  48276. if test "${ac_cv_header_h323_h+set}" = set; then
  48277. $as_echo_n "(cached) " >&6
  48278. fi
  48279. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
  48280. $as_echo "$ac_cv_header_h323_h" >&6; }
  48281. else
  48282. # Is the header compilable?
  48283. { $as_echo "$as_me:$LINENO: checking h323.h usability" >&5
  48284. $as_echo_n "checking h323.h usability... " >&6; }
  48285. cat >conftest.$ac_ext <<_ACEOF
  48286. /* confdefs.h. */
  48287. _ACEOF
  48288. cat confdefs.h >>conftest.$ac_ext
  48289. cat >>conftest.$ac_ext <<_ACEOF
  48290. /* end confdefs.h. */
  48291. $ac_includes_default
  48292. #include <h323.h>
  48293. _ACEOF
  48294. rm -f conftest.$ac_objext
  48295. if { (ac_try="$ac_compile"
  48296. case "(($ac_try" in
  48297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48298. *) ac_try_echo=$ac_try;;
  48299. esac
  48300. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48301. $as_echo "$ac_try_echo") >&5
  48302. (eval "$ac_compile") 2>conftest.er1
  48303. ac_status=$?
  48304. grep -v '^ *+' conftest.er1 >conftest.err
  48305. rm -f conftest.er1
  48306. cat conftest.err >&5
  48307. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48308. (exit $ac_status); } && {
  48309. test -z "$ac_c_werror_flag" ||
  48310. test ! -s conftest.err
  48311. } && test -s conftest.$ac_objext; then
  48312. ac_header_compiler=yes
  48313. else
  48314. $as_echo "$as_me: failed program was:" >&5
  48315. sed 's/^/| /' conftest.$ac_ext >&5
  48316. ac_header_compiler=no
  48317. fi
  48318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48319. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48320. $as_echo "$ac_header_compiler" >&6; }
  48321. # Is the header present?
  48322. { $as_echo "$as_me:$LINENO: checking h323.h presence" >&5
  48323. $as_echo_n "checking h323.h presence... " >&6; }
  48324. cat >conftest.$ac_ext <<_ACEOF
  48325. /* confdefs.h. */
  48326. _ACEOF
  48327. cat confdefs.h >>conftest.$ac_ext
  48328. cat >>conftest.$ac_ext <<_ACEOF
  48329. /* end confdefs.h. */
  48330. #include <h323.h>
  48331. _ACEOF
  48332. if { (ac_try="$ac_cpp conftest.$ac_ext"
  48333. case "(($ac_try" in
  48334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48335. *) ac_try_echo=$ac_try;;
  48336. esac
  48337. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48338. $as_echo "$ac_try_echo") >&5
  48339. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48340. ac_status=$?
  48341. grep -v '^ *+' conftest.er1 >conftest.err
  48342. rm -f conftest.er1
  48343. cat conftest.err >&5
  48344. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48345. (exit $ac_status); } >/dev/null && {
  48346. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48347. test ! -s conftest.err
  48348. }; then
  48349. ac_header_preproc=yes
  48350. else
  48351. $as_echo "$as_me: failed program was:" >&5
  48352. sed 's/^/| /' conftest.$ac_ext >&5
  48353. ac_header_preproc=no
  48354. fi
  48355. rm -f conftest.err conftest.$ac_ext
  48356. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48357. $as_echo "$ac_header_preproc" >&6; }
  48358. # So? What about this header?
  48359. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48360. yes:no: )
  48361. { $as_echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
  48362. $as_echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48363. { $as_echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
  48364. $as_echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
  48365. ac_header_preproc=yes
  48366. ;;
  48367. no:yes:* )
  48368. { $as_echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
  48369. $as_echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
  48370. { $as_echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
  48371. $as_echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
  48372. { $as_echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
  48373. $as_echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
  48374. { $as_echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
  48375. $as_echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
  48376. { $as_echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
  48377. $as_echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
  48378. { $as_echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
  48379. $as_echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
  48380. ( cat <<\_ASBOX
  48381. ## ------------------------------------------ ##
  48382. ## Report this to https://issues.asterisk.org ##
  48383. ## ------------------------------------------ ##
  48384. _ASBOX
  48385. ) | sed "s/^/$as_me: WARNING: /" >&2
  48386. ;;
  48387. esac
  48388. { $as_echo "$as_me:$LINENO: checking for h323.h" >&5
  48389. $as_echo_n "checking for h323.h... " >&6; }
  48390. if test "${ac_cv_header_h323_h+set}" = set; then
  48391. $as_echo_n "(cached) " >&6
  48392. else
  48393. ac_cv_header_h323_h=$ac_header_preproc
  48394. fi
  48395. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
  48396. $as_echo "$ac_cv_header_h323_h" >&6; }
  48397. fi
  48398. if test "x$ac_cv_header_h323_h" = x""yes; then
  48399. PBX_H323=1
  48400. else
  48401. PBX_H323=0
  48402. fi
  48403. if test "${ac_cv_header_linux_compiler_h+set}" = set; then
  48404. { $as_echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
  48405. $as_echo_n "checking for linux/compiler.h... " >&6; }
  48406. if test "${ac_cv_header_linux_compiler_h+set}" = set; then
  48407. $as_echo_n "(cached) " >&6
  48408. fi
  48409. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
  48410. $as_echo "$ac_cv_header_linux_compiler_h" >&6; }
  48411. else
  48412. # Is the header compilable?
  48413. { $as_echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
  48414. $as_echo_n "checking linux/compiler.h usability... " >&6; }
  48415. cat >conftest.$ac_ext <<_ACEOF
  48416. /* confdefs.h. */
  48417. _ACEOF
  48418. cat confdefs.h >>conftest.$ac_ext
  48419. cat >>conftest.$ac_ext <<_ACEOF
  48420. /* end confdefs.h. */
  48421. $ac_includes_default
  48422. #include <linux/compiler.h>
  48423. _ACEOF
  48424. rm -f conftest.$ac_objext
  48425. if { (ac_try="$ac_compile"
  48426. case "(($ac_try" in
  48427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48428. *) ac_try_echo=$ac_try;;
  48429. esac
  48430. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48431. $as_echo "$ac_try_echo") >&5
  48432. (eval "$ac_compile") 2>conftest.er1
  48433. ac_status=$?
  48434. grep -v '^ *+' conftest.er1 >conftest.err
  48435. rm -f conftest.er1
  48436. cat conftest.err >&5
  48437. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48438. (exit $ac_status); } && {
  48439. test -z "$ac_c_werror_flag" ||
  48440. test ! -s conftest.err
  48441. } && test -s conftest.$ac_objext; then
  48442. ac_header_compiler=yes
  48443. else
  48444. $as_echo "$as_me: failed program was:" >&5
  48445. sed 's/^/| /' conftest.$ac_ext >&5
  48446. ac_header_compiler=no
  48447. fi
  48448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48449. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  48450. $as_echo "$ac_header_compiler" >&6; }
  48451. # Is the header present?
  48452. { $as_echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
  48453. $as_echo_n "checking linux/compiler.h presence... " >&6; }
  48454. cat >conftest.$ac_ext <<_ACEOF
  48455. /* confdefs.h. */
  48456. _ACEOF
  48457. cat confdefs.h >>conftest.$ac_ext
  48458. cat >>conftest.$ac_ext <<_ACEOF
  48459. /* end confdefs.h. */
  48460. #include <linux/compiler.h>
  48461. _ACEOF
  48462. if { (ac_try="$ac_cpp conftest.$ac_ext"
  48463. case "(($ac_try" in
  48464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48465. *) ac_try_echo=$ac_try;;
  48466. esac
  48467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48468. $as_echo "$ac_try_echo") >&5
  48469. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  48470. ac_status=$?
  48471. grep -v '^ *+' conftest.er1 >conftest.err
  48472. rm -f conftest.er1
  48473. cat conftest.err >&5
  48474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48475. (exit $ac_status); } >/dev/null && {
  48476. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  48477. test ! -s conftest.err
  48478. }; then
  48479. ac_header_preproc=yes
  48480. else
  48481. $as_echo "$as_me: failed program was:" >&5
  48482. sed 's/^/| /' conftest.$ac_ext >&5
  48483. ac_header_preproc=no
  48484. fi
  48485. rm -f conftest.err conftest.$ac_ext
  48486. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  48487. $as_echo "$ac_header_preproc" >&6; }
  48488. # So? What about this header?
  48489. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  48490. yes:no: )
  48491. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
  48492. $as_echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  48493. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
  48494. $as_echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
  48495. ac_header_preproc=yes
  48496. ;;
  48497. no:yes:* )
  48498. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
  48499. $as_echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
  48500. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
  48501. $as_echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
  48502. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
  48503. $as_echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
  48504. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
  48505. $as_echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
  48506. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
  48507. $as_echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
  48508. { $as_echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
  48509. $as_echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
  48510. ( cat <<\_ASBOX
  48511. ## ------------------------------------------ ##
  48512. ## Report this to https://issues.asterisk.org ##
  48513. ## ------------------------------------------ ##
  48514. _ASBOX
  48515. ) | sed "s/^/$as_me: WARNING: /" >&2
  48516. ;;
  48517. esac
  48518. { $as_echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
  48519. $as_echo_n "checking for linux/compiler.h... " >&6; }
  48520. if test "${ac_cv_header_linux_compiler_h+set}" = set; then
  48521. $as_echo_n "(cached) " >&6
  48522. else
  48523. ac_cv_header_linux_compiler_h=$ac_header_preproc
  48524. fi
  48525. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
  48526. $as_echo "$ac_cv_header_linux_compiler_h" >&6; }
  48527. fi
  48528. if test "x$ac_cv_header_linux_compiler_h" = x""yes; then
  48529. cat >>confdefs.h <<_ACEOF
  48530. #define HAVE_LINUX_COMPILER_H 1
  48531. _ACEOF
  48532. fi
  48533. { $as_echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
  48534. $as_echo_n "checking for linux/ixjuser.h... " >&6; }
  48535. if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
  48536. $as_echo_n "(cached) " >&6
  48537. else
  48538. cat >conftest.$ac_ext <<_ACEOF
  48539. /* confdefs.h. */
  48540. _ACEOF
  48541. cat confdefs.h >>conftest.$ac_ext
  48542. cat >>conftest.$ac_ext <<_ACEOF
  48543. /* end confdefs.h. */
  48544. #include <linux/version.h>
  48545. #ifdef HAVE_LINUX_COMPILER_H
  48546. #include <linux/compiler.h>
  48547. #endif
  48548. #include <linux/ixjuser.h>
  48549. _ACEOF
  48550. rm -f conftest.$ac_objext
  48551. if { (ac_try="$ac_compile"
  48552. case "(($ac_try" in
  48553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48554. *) ac_try_echo=$ac_try;;
  48555. esac
  48556. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48557. $as_echo "$ac_try_echo") >&5
  48558. (eval "$ac_compile") 2>conftest.er1
  48559. ac_status=$?
  48560. grep -v '^ *+' conftest.er1 >conftest.err
  48561. rm -f conftest.er1
  48562. cat conftest.err >&5
  48563. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48564. (exit $ac_status); } && {
  48565. test -z "$ac_c_werror_flag" ||
  48566. test ! -s conftest.err
  48567. } && test -s conftest.$ac_objext; then
  48568. ac_cv_header_linux_ixjuser_h=yes
  48569. else
  48570. $as_echo "$as_me: failed program was:" >&5
  48571. sed 's/^/| /' conftest.$ac_ext >&5
  48572. ac_cv_header_linux_ixjuser_h=no
  48573. fi
  48574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48575. fi
  48576. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
  48577. $as_echo "$ac_cv_header_linux_ixjuser_h" >&6; }
  48578. if test "x$ac_cv_header_linux_ixjuser_h" = x""yes; then
  48579. PBX_IXJUSER=1
  48580. else
  48581. PBX_IXJUSER=0
  48582. fi
  48583. # Used in res/res_pktccops
  48584. if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
  48585. { $as_echo "$as_me:$LINENO: checking for MSG_NOSIGNAL in sys/socket.h" >&5
  48586. $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
  48587. saved_cppflags="${CPPFLAGS}"
  48588. if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
  48589. MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
  48590. fi
  48591. CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
  48592. cat >conftest.$ac_ext <<_ACEOF
  48593. /* confdefs.h. */
  48594. _ACEOF
  48595. cat confdefs.h >>conftest.$ac_ext
  48596. cat >>conftest.$ac_ext <<_ACEOF
  48597. /* end confdefs.h. */
  48598. #include <sys/socket.h>
  48599. int
  48600. main ()
  48601. {
  48602. #if defined(MSG_NOSIGNAL)
  48603. int foo = 0;
  48604. #else
  48605. int foo = bar;
  48606. #endif
  48607. 0
  48608. ;
  48609. return 0;
  48610. }
  48611. _ACEOF
  48612. rm -f conftest.$ac_objext
  48613. if { (ac_try="$ac_compile"
  48614. case "(($ac_try" in
  48615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48616. *) ac_try_echo=$ac_try;;
  48617. esac
  48618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48619. $as_echo "$ac_try_echo") >&5
  48620. (eval "$ac_compile") 2>conftest.er1
  48621. ac_status=$?
  48622. grep -v '^ *+' conftest.er1 >conftest.err
  48623. rm -f conftest.er1
  48624. cat conftest.err >&5
  48625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48626. (exit $ac_status); } && {
  48627. test -z "$ac_c_werror_flag" ||
  48628. test ! -s conftest.err
  48629. } && test -s conftest.$ac_objext; then
  48630. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48631. $as_echo "yes" >&6; }
  48632. PBX_MSG_NOSIGNAL=1
  48633. cat >>confdefs.h <<\_ACEOF
  48634. #define HAVE_MSG_NOSIGNAL 1
  48635. _ACEOF
  48636. else
  48637. $as_echo "$as_me: failed program was:" >&5
  48638. sed 's/^/| /' conftest.$ac_ext >&5
  48639. { $as_echo "$as_me:$LINENO: result: no" >&5
  48640. $as_echo "no" >&6; }
  48641. fi
  48642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48643. CPPFLAGS="${saved_cppflags}"
  48644. fi
  48645. if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
  48646. { $as_echo "$as_me:$LINENO: checking for SO_NOSIGPIPE in sys/socket.h" >&5
  48647. $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
  48648. saved_cppflags="${CPPFLAGS}"
  48649. if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
  48650. SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
  48651. fi
  48652. CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
  48653. cat >conftest.$ac_ext <<_ACEOF
  48654. /* confdefs.h. */
  48655. _ACEOF
  48656. cat confdefs.h >>conftest.$ac_ext
  48657. cat >>conftest.$ac_ext <<_ACEOF
  48658. /* end confdefs.h. */
  48659. #include <sys/socket.h>
  48660. int
  48661. main ()
  48662. {
  48663. #if defined(SO_NOSIGPIPE)
  48664. int foo = 0;
  48665. #else
  48666. int foo = bar;
  48667. #endif
  48668. 0
  48669. ;
  48670. return 0;
  48671. }
  48672. _ACEOF
  48673. rm -f conftest.$ac_objext
  48674. if { (ac_try="$ac_compile"
  48675. case "(($ac_try" in
  48676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48677. *) ac_try_echo=$ac_try;;
  48678. esac
  48679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48680. $as_echo "$ac_try_echo") >&5
  48681. (eval "$ac_compile") 2>conftest.er1
  48682. ac_status=$?
  48683. grep -v '^ *+' conftest.er1 >conftest.err
  48684. rm -f conftest.er1
  48685. cat conftest.err >&5
  48686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48687. (exit $ac_status); } && {
  48688. test -z "$ac_c_werror_flag" ||
  48689. test ! -s conftest.err
  48690. } && test -s conftest.$ac_objext; then
  48691. { $as_echo "$as_me:$LINENO: result: yes" >&5
  48692. $as_echo "yes" >&6; }
  48693. PBX_SO_NOSIGPIPE=1
  48694. cat >>confdefs.h <<\_ACEOF
  48695. #define HAVE_SO_NOSIGPIPE 1
  48696. _ACEOF
  48697. else
  48698. $as_echo "$as_me: failed program was:" >&5
  48699. sed 's/^/| /' conftest.$ac_ext >&5
  48700. { $as_echo "$as_me:$LINENO: result: no" >&5
  48701. $as_echo "no" >&6; }
  48702. fi
  48703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48704. CPPFLAGS="${saved_cppflags}"
  48705. fi
  48706. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  48707. PBX_SDL=0
  48708. if test -n "$ac_tool_prefix"; then
  48709. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  48710. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  48711. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  48712. $as_echo_n "checking for $ac_word... " >&6; }
  48713. if test "${ac_cv_path_CONFIG_SDL+set}" = set; then
  48714. $as_echo_n "(cached) " >&6
  48715. else
  48716. case $CONFIG_SDL in
  48717. [\\/]* | ?:[\\/]*)
  48718. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  48719. ;;
  48720. *)
  48721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48722. as_dummy="${SDL_DIR}/bin:$PATH"
  48723. for as_dir in $as_dummy
  48724. do
  48725. IFS=$as_save_IFS
  48726. test -z "$as_dir" && as_dir=.
  48727. for ac_exec_ext in '' $ac_executable_extensions; do
  48728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  48729. ac_cv_path_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  48730. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48731. break 2
  48732. fi
  48733. done
  48734. done
  48735. IFS=$as_save_IFS
  48736. ;;
  48737. esac
  48738. fi
  48739. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  48740. if test -n "$CONFIG_SDL"; then
  48741. { $as_echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
  48742. $as_echo "$CONFIG_SDL" >&6; }
  48743. else
  48744. { $as_echo "$as_me:$LINENO: result: no" >&5
  48745. $as_echo "no" >&6; }
  48746. fi
  48747. fi
  48748. if test -z "$ac_cv_path_CONFIG_SDL"; then
  48749. ac_pt_CONFIG_SDL=$CONFIG_SDL
  48750. # Extract the first word of "sdl-config", so it can be a program name with args.
  48751. set dummy sdl-config; ac_word=$2
  48752. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  48753. $as_echo_n "checking for $ac_word... " >&6; }
  48754. if test "${ac_cv_path_ac_pt_CONFIG_SDL+set}" = set; then
  48755. $as_echo_n "(cached) " >&6
  48756. else
  48757. case $ac_pt_CONFIG_SDL in
  48758. [\\/]* | ?:[\\/]*)
  48759. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  48760. ;;
  48761. *)
  48762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  48763. as_dummy="${SDL_DIR}/bin:$PATH"
  48764. for as_dir in $as_dummy
  48765. do
  48766. IFS=$as_save_IFS
  48767. test -z "$as_dir" && as_dir=.
  48768. for ac_exec_ext in '' $ac_executable_extensions; do
  48769. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  48770. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  48771. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  48772. break 2
  48773. fi
  48774. done
  48775. done
  48776. IFS=$as_save_IFS
  48777. ;;
  48778. esac
  48779. fi
  48780. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  48781. if test -n "$ac_pt_CONFIG_SDL"; then
  48782. { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_SDL" >&5
  48783. $as_echo "$ac_pt_CONFIG_SDL" >&6; }
  48784. else
  48785. { $as_echo "$as_me:$LINENO: result: no" >&5
  48786. $as_echo "no" >&6; }
  48787. fi
  48788. if test "x$ac_pt_CONFIG_SDL" = x; then
  48789. CONFIG_SDL="No"
  48790. else
  48791. case $cross_compiling:$ac_tool_warned in
  48792. yes:)
  48793. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  48794. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  48795. ac_tool_warned=yes ;;
  48796. esac
  48797. CONFIG_SDL=$ac_pt_CONFIG_SDL
  48798. fi
  48799. else
  48800. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  48801. fi
  48802. if test ! "x${CONFIG_SDL}" = xNo; then
  48803. if test x"" = x ; then A=--cflags ; else A="" ; fi
  48804. SDL_INCLUDE=$(${CONFIG_SDL} $A)
  48805. if test x"" = x ; then A=--libs ; else A="" ; fi
  48806. SDL_LIB=$(${CONFIG_SDL} $A)
  48807. if test x"" != x ; then
  48808. saved_cppflags="${CPPFLAGS}"
  48809. if test "x${SDL_DIR}" != "x"; then
  48810. SDL_INCLUDE="-I${SDL_DIR}/include"
  48811. fi
  48812. CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
  48813. saved_libs="${LIBS}"
  48814. LIBS="${SDL_LIB}"
  48815. cat >conftest.$ac_ext <<_ACEOF
  48816. /* confdefs.h. */
  48817. _ACEOF
  48818. cat confdefs.h >>conftest.$ac_ext
  48819. cat >>conftest.$ac_ext <<_ACEOF
  48820. /* end confdefs.h. */
  48821. int
  48822. main ()
  48823. {
  48824. ;
  48825. ;
  48826. return 0;
  48827. }
  48828. _ACEOF
  48829. rm -f conftest.$ac_objext conftest$ac_exeext
  48830. if { (ac_try="$ac_link"
  48831. case "(($ac_try" in
  48832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48833. *) ac_try_echo=$ac_try;;
  48834. esac
  48835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48836. $as_echo "$ac_try_echo") >&5
  48837. (eval "$ac_link") 2>conftest.er1
  48838. ac_status=$?
  48839. grep -v '^ *+' conftest.er1 >conftest.err
  48840. rm -f conftest.er1
  48841. cat conftest.err >&5
  48842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48843. (exit $ac_status); } && {
  48844. test -z "$ac_c_werror_flag" ||
  48845. test ! -s conftest.err
  48846. } && test -s conftest$ac_exeext && {
  48847. test "$cross_compiling" = yes ||
  48848. $as_test_x conftest$ac_exeext
  48849. }; then
  48850. PBX_SDL=1
  48851. cat >>confdefs.h <<\_ACEOF
  48852. #define HAVE_SDL 1
  48853. _ACEOF
  48854. else
  48855. $as_echo "$as_me: failed program was:" >&5
  48856. sed 's/^/| /' conftest.$ac_ext >&5
  48857. fi
  48858. rm -rf conftest.dSYM
  48859. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48860. conftest$ac_exeext conftest.$ac_ext
  48861. CPPFLAGS="${saved_cppflags}"
  48862. LIBS="${saved_libs}"
  48863. else
  48864. PBX_SDL=1
  48865. cat >>confdefs.h <<\_ACEOF
  48866. #define HAVE_SDL 1
  48867. _ACEOF
  48868. fi
  48869. fi
  48870. fi
  48871. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  48872. pbxlibdir=""
  48873. # if --with-SDL_IMAGE=DIR has been specified, use it.
  48874. if test "x${SDL_IMAGE_DIR}" != "x"; then
  48875. if test -d ${SDL_IMAGE_DIR}/lib; then
  48876. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  48877. else
  48878. pbxlibdir="-L${SDL_IMAGE_DIR}"
  48879. fi
  48880. fi
  48881. pbxfuncname="IMG_Load"
  48882. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  48883. AST_SDL_IMAGE_FOUND=yes
  48884. else
  48885. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  48886. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  48887. as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
  48888. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
  48889. $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
  48890. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  48891. $as_echo_n "(cached) " >&6
  48892. else
  48893. ac_check_lib_save_LIBS=$LIBS
  48894. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  48895. cat >conftest.$ac_ext <<_ACEOF
  48896. /* confdefs.h. */
  48897. _ACEOF
  48898. cat confdefs.h >>conftest.$ac_ext
  48899. cat >>conftest.$ac_ext <<_ACEOF
  48900. /* end confdefs.h. */
  48901. /* Override any GCC internal prototype to avoid an error.
  48902. Use char because int might match the return type of a GCC
  48903. builtin and then its argument prototype would still apply. */
  48904. #ifdef __cplusplus
  48905. extern "C"
  48906. #endif
  48907. char ${pbxfuncname} ();
  48908. int
  48909. main ()
  48910. {
  48911. return ${pbxfuncname} ();
  48912. ;
  48913. return 0;
  48914. }
  48915. _ACEOF
  48916. rm -f conftest.$ac_objext conftest$ac_exeext
  48917. if { (ac_try="$ac_link"
  48918. case "(($ac_try" in
  48919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48920. *) ac_try_echo=$ac_try;;
  48921. esac
  48922. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  48923. $as_echo "$ac_try_echo") >&5
  48924. (eval "$ac_link") 2>conftest.er1
  48925. ac_status=$?
  48926. grep -v '^ *+' conftest.er1 >conftest.err
  48927. rm -f conftest.er1
  48928. cat conftest.err >&5
  48929. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48930. (exit $ac_status); } && {
  48931. test -z "$ac_c_werror_flag" ||
  48932. test ! -s conftest.err
  48933. } && test -s conftest$ac_exeext && {
  48934. test "$cross_compiling" = yes ||
  48935. $as_test_x conftest$ac_exeext
  48936. }; then
  48937. eval "$as_ac_Lib=yes"
  48938. else
  48939. $as_echo "$as_me: failed program was:" >&5
  48940. sed 's/^/| /' conftest.$ac_ext >&5
  48941. eval "$as_ac_Lib=no"
  48942. fi
  48943. rm -rf conftest.dSYM
  48944. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  48945. conftest$ac_exeext conftest.$ac_ext
  48946. LIBS=$ac_check_lib_save_LIBS
  48947. fi
  48948. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  48949. $as_echo "$as_val"'`
  48950. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  48951. $as_echo "$ac_res" >&6; }
  48952. as_val=`eval 'as_val=${'$as_ac_Lib'}
  48953. $as_echo "$as_val"'`
  48954. if test "x$as_val" = x""yes; then
  48955. AST_SDL_IMAGE_FOUND=yes
  48956. else
  48957. AST_SDL_IMAGE_FOUND=no
  48958. fi
  48959. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  48960. fi
  48961. # now check for the header.
  48962. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  48963. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  48964. # if --with-SDL_IMAGE=DIR has been specified, use it.
  48965. if test "x${SDL_IMAGE_DIR}" != "x"; then
  48966. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  48967. fi
  48968. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  48969. if test "xSDL_image.h" = "x" ; then # no header, assume found
  48970. SDL_IMAGE_HEADER_FOUND="1"
  48971. else # check for the header
  48972. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  48973. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  48974. if test "${ac_cv_header_SDL_image_h+set}" = set; then
  48975. { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
  48976. $as_echo_n "checking for SDL_image.h... " >&6; }
  48977. if test "${ac_cv_header_SDL_image_h+set}" = set; then
  48978. $as_echo_n "(cached) " >&6
  48979. fi
  48980. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
  48981. $as_echo "$ac_cv_header_SDL_image_h" >&6; }
  48982. else
  48983. # Is the header compilable?
  48984. { $as_echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
  48985. $as_echo_n "checking SDL_image.h usability... " >&6; }
  48986. cat >conftest.$ac_ext <<_ACEOF
  48987. /* confdefs.h. */
  48988. _ACEOF
  48989. cat confdefs.h >>conftest.$ac_ext
  48990. cat >>conftest.$ac_ext <<_ACEOF
  48991. /* end confdefs.h. */
  48992. $ac_includes_default
  48993. #include <SDL_image.h>
  48994. _ACEOF
  48995. rm -f conftest.$ac_objext
  48996. if { (ac_try="$ac_compile"
  48997. case "(($ac_try" in
  48998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  48999. *) ac_try_echo=$ac_try;;
  49000. esac
  49001. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49002. $as_echo "$ac_try_echo") >&5
  49003. (eval "$ac_compile") 2>conftest.er1
  49004. ac_status=$?
  49005. grep -v '^ *+' conftest.er1 >conftest.err
  49006. rm -f conftest.er1
  49007. cat conftest.err >&5
  49008. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49009. (exit $ac_status); } && {
  49010. test -z "$ac_c_werror_flag" ||
  49011. test ! -s conftest.err
  49012. } && test -s conftest.$ac_objext; then
  49013. ac_header_compiler=yes
  49014. else
  49015. $as_echo "$as_me: failed program was:" >&5
  49016. sed 's/^/| /' conftest.$ac_ext >&5
  49017. ac_header_compiler=no
  49018. fi
  49019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49020. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49021. $as_echo "$ac_header_compiler" >&6; }
  49022. # Is the header present?
  49023. { $as_echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
  49024. $as_echo_n "checking SDL_image.h presence... " >&6; }
  49025. cat >conftest.$ac_ext <<_ACEOF
  49026. /* confdefs.h. */
  49027. _ACEOF
  49028. cat confdefs.h >>conftest.$ac_ext
  49029. cat >>conftest.$ac_ext <<_ACEOF
  49030. /* end confdefs.h. */
  49031. #include <SDL_image.h>
  49032. _ACEOF
  49033. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49034. case "(($ac_try" in
  49035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49036. *) ac_try_echo=$ac_try;;
  49037. esac
  49038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49039. $as_echo "$ac_try_echo") >&5
  49040. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49041. ac_status=$?
  49042. grep -v '^ *+' conftest.er1 >conftest.err
  49043. rm -f conftest.er1
  49044. cat conftest.err >&5
  49045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49046. (exit $ac_status); } >/dev/null && {
  49047. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49048. test ! -s conftest.err
  49049. }; then
  49050. ac_header_preproc=yes
  49051. else
  49052. $as_echo "$as_me: failed program was:" >&5
  49053. sed 's/^/| /' conftest.$ac_ext >&5
  49054. ac_header_preproc=no
  49055. fi
  49056. rm -f conftest.err conftest.$ac_ext
  49057. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49058. $as_echo "$ac_header_preproc" >&6; }
  49059. # So? What about this header?
  49060. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49061. yes:no: )
  49062. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49063. $as_echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49064. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
  49065. $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
  49066. ac_header_preproc=yes
  49067. ;;
  49068. no:yes:* )
  49069. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
  49070. $as_echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
  49071. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
  49072. $as_echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
  49073. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
  49074. $as_echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
  49075. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
  49076. $as_echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49077. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
  49078. $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
  49079. { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
  49080. $as_echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
  49081. ( cat <<\_ASBOX
  49082. ## ------------------------------------------ ##
  49083. ## Report this to https://issues.asterisk.org ##
  49084. ## ------------------------------------------ ##
  49085. _ASBOX
  49086. ) | sed "s/^/$as_me: WARNING: /" >&2
  49087. ;;
  49088. esac
  49089. { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
  49090. $as_echo_n "checking for SDL_image.h... " >&6; }
  49091. if test "${ac_cv_header_SDL_image_h+set}" = set; then
  49092. $as_echo_n "(cached) " >&6
  49093. else
  49094. ac_cv_header_SDL_image_h=$ac_header_preproc
  49095. fi
  49096. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
  49097. $as_echo "$ac_cv_header_SDL_image_h" >&6; }
  49098. fi
  49099. if test "x$ac_cv_header_SDL_image_h" = x""yes; then
  49100. SDL_IMAGE_HEADER_FOUND=1
  49101. else
  49102. SDL_IMAGE_HEADER_FOUND=0
  49103. fi
  49104. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  49105. fi
  49106. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  49107. SDL_IMAGE_LIB=""
  49108. SDL_IMAGE_INCLUDE=""
  49109. else
  49110. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  49111. SDL_IMAGE_LIB=""
  49112. fi
  49113. PBX_SDL_IMAGE=1
  49114. cat >>confdefs.h <<_ACEOF
  49115. #define HAVE_SDL_IMAGE 1
  49116. _ACEOF
  49117. fi
  49118. fi
  49119. fi
  49120. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  49121. pbxlibdir=""
  49122. # if --with-FFMPEG=DIR has been specified, use it.
  49123. if test "x${FFMPEG_DIR}" != "x"; then
  49124. if test -d ${FFMPEG_DIR}/lib; then
  49125. pbxlibdir="-L${FFMPEG_DIR}/lib"
  49126. else
  49127. pbxlibdir="-L${FFMPEG_DIR}"
  49128. fi
  49129. fi
  49130. pbxfuncname="sws_getContext"
  49131. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  49132. AST_FFMPEG_FOUND=yes
  49133. else
  49134. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  49135. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  49136. as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
  49137. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
  49138. $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
  49139. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  49140. $as_echo_n "(cached) " >&6
  49141. else
  49142. ac_check_lib_save_LIBS=$LIBS
  49143. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  49144. cat >conftest.$ac_ext <<_ACEOF
  49145. /* confdefs.h. */
  49146. _ACEOF
  49147. cat confdefs.h >>conftest.$ac_ext
  49148. cat >>conftest.$ac_ext <<_ACEOF
  49149. /* end confdefs.h. */
  49150. /* Override any GCC internal prototype to avoid an error.
  49151. Use char because int might match the return type of a GCC
  49152. builtin and then its argument prototype would still apply. */
  49153. #ifdef __cplusplus
  49154. extern "C"
  49155. #endif
  49156. char ${pbxfuncname} ();
  49157. int
  49158. main ()
  49159. {
  49160. return ${pbxfuncname} ();
  49161. ;
  49162. return 0;
  49163. }
  49164. _ACEOF
  49165. rm -f conftest.$ac_objext conftest$ac_exeext
  49166. if { (ac_try="$ac_link"
  49167. case "(($ac_try" in
  49168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49169. *) ac_try_echo=$ac_try;;
  49170. esac
  49171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49172. $as_echo "$ac_try_echo") >&5
  49173. (eval "$ac_link") 2>conftest.er1
  49174. ac_status=$?
  49175. grep -v '^ *+' conftest.er1 >conftest.err
  49176. rm -f conftest.er1
  49177. cat conftest.err >&5
  49178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49179. (exit $ac_status); } && {
  49180. test -z "$ac_c_werror_flag" ||
  49181. test ! -s conftest.err
  49182. } && test -s conftest$ac_exeext && {
  49183. test "$cross_compiling" = yes ||
  49184. $as_test_x conftest$ac_exeext
  49185. }; then
  49186. eval "$as_ac_Lib=yes"
  49187. else
  49188. $as_echo "$as_me: failed program was:" >&5
  49189. sed 's/^/| /' conftest.$ac_ext >&5
  49190. eval "$as_ac_Lib=no"
  49191. fi
  49192. rm -rf conftest.dSYM
  49193. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49194. conftest$ac_exeext conftest.$ac_ext
  49195. LIBS=$ac_check_lib_save_LIBS
  49196. fi
  49197. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  49198. $as_echo "$as_val"'`
  49199. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  49200. $as_echo "$ac_res" >&6; }
  49201. as_val=`eval 'as_val=${'$as_ac_Lib'}
  49202. $as_echo "$as_val"'`
  49203. if test "x$as_val" = x""yes; then
  49204. AST_FFMPEG_FOUND=yes
  49205. else
  49206. AST_FFMPEG_FOUND=no
  49207. fi
  49208. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  49209. fi
  49210. # now check for the header.
  49211. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  49212. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  49213. # if --with-FFMPEG=DIR has been specified, use it.
  49214. if test "x${FFMPEG_DIR}" != "x"; then
  49215. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  49216. fi
  49217. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  49218. if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
  49219. FFMPEG_HEADER_FOUND="1"
  49220. else # check for the header
  49221. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  49222. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  49223. if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
  49224. { $as_echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
  49225. $as_echo_n "checking for ffmpeg/avcodec.h... " >&6; }
  49226. if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
  49227. $as_echo_n "(cached) " >&6
  49228. fi
  49229. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
  49230. $as_echo "$ac_cv_header_ffmpeg_avcodec_h" >&6; }
  49231. else
  49232. # Is the header compilable?
  49233. { $as_echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
  49234. $as_echo_n "checking ffmpeg/avcodec.h usability... " >&6; }
  49235. cat >conftest.$ac_ext <<_ACEOF
  49236. /* confdefs.h. */
  49237. _ACEOF
  49238. cat confdefs.h >>conftest.$ac_ext
  49239. cat >>conftest.$ac_ext <<_ACEOF
  49240. /* end confdefs.h. */
  49241. $ac_includes_default
  49242. #include <ffmpeg/avcodec.h>
  49243. _ACEOF
  49244. rm -f conftest.$ac_objext
  49245. if { (ac_try="$ac_compile"
  49246. case "(($ac_try" in
  49247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49248. *) ac_try_echo=$ac_try;;
  49249. esac
  49250. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49251. $as_echo "$ac_try_echo") >&5
  49252. (eval "$ac_compile") 2>conftest.er1
  49253. ac_status=$?
  49254. grep -v '^ *+' conftest.er1 >conftest.err
  49255. rm -f conftest.er1
  49256. cat conftest.err >&5
  49257. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49258. (exit $ac_status); } && {
  49259. test -z "$ac_c_werror_flag" ||
  49260. test ! -s conftest.err
  49261. } && test -s conftest.$ac_objext; then
  49262. ac_header_compiler=yes
  49263. else
  49264. $as_echo "$as_me: failed program was:" >&5
  49265. sed 's/^/| /' conftest.$ac_ext >&5
  49266. ac_header_compiler=no
  49267. fi
  49268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49269. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49270. $as_echo "$ac_header_compiler" >&6; }
  49271. # Is the header present?
  49272. { $as_echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
  49273. $as_echo_n "checking ffmpeg/avcodec.h presence... " >&6; }
  49274. cat >conftest.$ac_ext <<_ACEOF
  49275. /* confdefs.h. */
  49276. _ACEOF
  49277. cat confdefs.h >>conftest.$ac_ext
  49278. cat >>conftest.$ac_ext <<_ACEOF
  49279. /* end confdefs.h. */
  49280. #include <ffmpeg/avcodec.h>
  49281. _ACEOF
  49282. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49283. case "(($ac_try" in
  49284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49285. *) ac_try_echo=$ac_try;;
  49286. esac
  49287. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49288. $as_echo "$ac_try_echo") >&5
  49289. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49290. ac_status=$?
  49291. grep -v '^ *+' conftest.er1 >conftest.err
  49292. rm -f conftest.er1
  49293. cat conftest.err >&5
  49294. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49295. (exit $ac_status); } >/dev/null && {
  49296. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49297. test ! -s conftest.err
  49298. }; then
  49299. ac_header_preproc=yes
  49300. else
  49301. $as_echo "$as_me: failed program was:" >&5
  49302. sed 's/^/| /' conftest.$ac_ext >&5
  49303. ac_header_preproc=no
  49304. fi
  49305. rm -f conftest.err conftest.$ac_ext
  49306. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49307. $as_echo "$ac_header_preproc" >&6; }
  49308. # So? What about this header?
  49309. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49310. yes:no: )
  49311. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49312. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49313. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
  49314. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
  49315. ac_header_preproc=yes
  49316. ;;
  49317. no:yes:* )
  49318. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
  49319. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
  49320. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
  49321. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
  49322. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
  49323. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
  49324. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
  49325. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49326. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
  49327. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
  49328. { $as_echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
  49329. $as_echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
  49330. ( cat <<\_ASBOX
  49331. ## ------------------------------------------ ##
  49332. ## Report this to https://issues.asterisk.org ##
  49333. ## ------------------------------------------ ##
  49334. _ASBOX
  49335. ) | sed "s/^/$as_me: WARNING: /" >&2
  49336. ;;
  49337. esac
  49338. { $as_echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
  49339. $as_echo_n "checking for ffmpeg/avcodec.h... " >&6; }
  49340. if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
  49341. $as_echo_n "(cached) " >&6
  49342. else
  49343. ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
  49344. fi
  49345. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
  49346. $as_echo "$ac_cv_header_ffmpeg_avcodec_h" >&6; }
  49347. fi
  49348. if test "x$ac_cv_header_ffmpeg_avcodec_h" = x""yes; then
  49349. FFMPEG_HEADER_FOUND=1
  49350. else
  49351. FFMPEG_HEADER_FOUND=0
  49352. fi
  49353. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  49354. fi
  49355. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  49356. FFMPEG_LIB=""
  49357. FFMPEG_INCLUDE=""
  49358. else
  49359. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  49360. FFMPEG_LIB=""
  49361. fi
  49362. PBX_FFMPEG=1
  49363. cat >>confdefs.h <<_ACEOF
  49364. #define HAVE_FFMPEG 1
  49365. _ACEOF
  49366. fi
  49367. fi
  49368. fi
  49369. # possible places for video4linux version 1
  49370. if test "${ac_cv_header_linux_videodev_h+set}" = set; then
  49371. { $as_echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
  49372. $as_echo_n "checking for linux/videodev.h... " >&6; }
  49373. if test "${ac_cv_header_linux_videodev_h+set}" = set; then
  49374. $as_echo_n "(cached) " >&6
  49375. fi
  49376. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
  49377. $as_echo "$ac_cv_header_linux_videodev_h" >&6; }
  49378. else
  49379. # Is the header compilable?
  49380. { $as_echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
  49381. $as_echo_n "checking linux/videodev.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 <linux/videodev.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 linux/videodev.h presence" >&5
  49420. $as_echo_n "checking linux/videodev.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 <linux/videodev.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: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49459. $as_echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49460. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
  49461. $as_echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
  49462. ac_header_preproc=yes
  49463. ;;
  49464. no:yes:* )
  49465. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
  49466. $as_echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
  49467. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
  49468. $as_echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
  49469. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
  49470. $as_echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
  49471. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
  49472. $as_echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49473. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
  49474. $as_echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
  49475. { $as_echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
  49476. $as_echo "$as_me: WARNING: linux/videodev.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 linux/videodev.h" >&5
  49486. $as_echo_n "checking for linux/videodev.h... " >&6; }
  49487. if test "${ac_cv_header_linux_videodev_h+set}" = set; then
  49488. $as_echo_n "(cached) " >&6
  49489. else
  49490. ac_cv_header_linux_videodev_h=$ac_header_preproc
  49491. fi
  49492. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
  49493. $as_echo "$ac_cv_header_linux_videodev_h" >&6; }
  49494. fi
  49495. if test "x$ac_cv_header_linux_videodev_h" = x""yes; then
  49496. cat >>confdefs.h <<_ACEOF
  49497. #define HAVE_VIDEODEV_H 1
  49498. _ACEOF
  49499. fi
  49500. # possible places for X11
  49501. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  49502. pbxlibdir=""
  49503. # if --with-X11=DIR has been specified, use it.
  49504. if test "x${X11_DIR}" != "x"; then
  49505. if test -d ${X11_DIR}/lib; then
  49506. pbxlibdir="-L${X11_DIR}/lib"
  49507. else
  49508. pbxlibdir="-L${X11_DIR}"
  49509. fi
  49510. fi
  49511. pbxfuncname="XOpenDisplay"
  49512. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  49513. AST_X11_FOUND=yes
  49514. else
  49515. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  49516. CFLAGS="${CFLAGS} "
  49517. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  49518. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
  49519. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  49520. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  49521. $as_echo_n "(cached) " >&6
  49522. else
  49523. ac_check_lib_save_LIBS=$LIBS
  49524. LIBS="-lX11 ${pbxlibdir} $LIBS"
  49525. cat >conftest.$ac_ext <<_ACEOF
  49526. /* confdefs.h. */
  49527. _ACEOF
  49528. cat confdefs.h >>conftest.$ac_ext
  49529. cat >>conftest.$ac_ext <<_ACEOF
  49530. /* end confdefs.h. */
  49531. /* Override any GCC internal prototype to avoid an error.
  49532. Use char because int might match the return type of a GCC
  49533. builtin and then its argument prototype would still apply. */
  49534. #ifdef __cplusplus
  49535. extern "C"
  49536. #endif
  49537. char ${pbxfuncname} ();
  49538. int
  49539. main ()
  49540. {
  49541. return ${pbxfuncname} ();
  49542. ;
  49543. return 0;
  49544. }
  49545. _ACEOF
  49546. rm -f conftest.$ac_objext conftest$ac_exeext
  49547. if { (ac_try="$ac_link"
  49548. case "(($ac_try" in
  49549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49550. *) ac_try_echo=$ac_try;;
  49551. esac
  49552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49553. $as_echo "$ac_try_echo") >&5
  49554. (eval "$ac_link") 2>conftest.er1
  49555. ac_status=$?
  49556. grep -v '^ *+' conftest.er1 >conftest.err
  49557. rm -f conftest.er1
  49558. cat conftest.err >&5
  49559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49560. (exit $ac_status); } && {
  49561. test -z "$ac_c_werror_flag" ||
  49562. test ! -s conftest.err
  49563. } && test -s conftest$ac_exeext && {
  49564. test "$cross_compiling" = yes ||
  49565. $as_test_x conftest$ac_exeext
  49566. }; then
  49567. eval "$as_ac_Lib=yes"
  49568. else
  49569. $as_echo "$as_me: failed program was:" >&5
  49570. sed 's/^/| /' conftest.$ac_ext >&5
  49571. eval "$as_ac_Lib=no"
  49572. fi
  49573. rm -rf conftest.dSYM
  49574. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49575. conftest$ac_exeext conftest.$ac_ext
  49576. LIBS=$ac_check_lib_save_LIBS
  49577. fi
  49578. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  49579. $as_echo "$as_val"'`
  49580. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  49581. $as_echo "$ac_res" >&6; }
  49582. as_val=`eval 'as_val=${'$as_ac_Lib'}
  49583. $as_echo "$as_val"'`
  49584. if test "x$as_val" = x""yes; then
  49585. AST_X11_FOUND=yes
  49586. else
  49587. AST_X11_FOUND=no
  49588. fi
  49589. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  49590. fi
  49591. # now check for the header.
  49592. if test "${AST_X11_FOUND}" = "yes"; then
  49593. X11_LIB="${pbxlibdir} -lX11 "
  49594. # if --with-X11=DIR has been specified, use it.
  49595. if test "x${X11_DIR}" != "x"; then
  49596. X11_INCLUDE="-I${X11_DIR}/include"
  49597. fi
  49598. X11_INCLUDE="${X11_INCLUDE} "
  49599. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  49600. X11_HEADER_FOUND="1"
  49601. else # check for the header
  49602. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  49603. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  49604. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49605. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  49606. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  49607. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49608. $as_echo_n "(cached) " >&6
  49609. fi
  49610. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  49611. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  49612. else
  49613. # Is the header compilable?
  49614. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
  49615. $as_echo_n "checking X11/Xlib.h usability... " >&6; }
  49616. cat >conftest.$ac_ext <<_ACEOF
  49617. /* confdefs.h. */
  49618. _ACEOF
  49619. cat confdefs.h >>conftest.$ac_ext
  49620. cat >>conftest.$ac_ext <<_ACEOF
  49621. /* end confdefs.h. */
  49622. $ac_includes_default
  49623. #include <X11/Xlib.h>
  49624. _ACEOF
  49625. rm -f conftest.$ac_objext
  49626. if { (ac_try="$ac_compile"
  49627. case "(($ac_try" in
  49628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49629. *) ac_try_echo=$ac_try;;
  49630. esac
  49631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49632. $as_echo "$ac_try_echo") >&5
  49633. (eval "$ac_compile") 2>conftest.er1
  49634. ac_status=$?
  49635. grep -v '^ *+' conftest.er1 >conftest.err
  49636. rm -f conftest.er1
  49637. cat conftest.err >&5
  49638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49639. (exit $ac_status); } && {
  49640. test -z "$ac_c_werror_flag" ||
  49641. test ! -s conftest.err
  49642. } && test -s conftest.$ac_objext; then
  49643. ac_header_compiler=yes
  49644. else
  49645. $as_echo "$as_me: failed program was:" >&5
  49646. sed 's/^/| /' conftest.$ac_ext >&5
  49647. ac_header_compiler=no
  49648. fi
  49649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49650. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49651. $as_echo "$ac_header_compiler" >&6; }
  49652. # Is the header present?
  49653. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
  49654. $as_echo_n "checking X11/Xlib.h presence... " >&6; }
  49655. cat >conftest.$ac_ext <<_ACEOF
  49656. /* confdefs.h. */
  49657. _ACEOF
  49658. cat confdefs.h >>conftest.$ac_ext
  49659. cat >>conftest.$ac_ext <<_ACEOF
  49660. /* end confdefs.h. */
  49661. #include <X11/Xlib.h>
  49662. _ACEOF
  49663. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49664. case "(($ac_try" in
  49665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49666. *) ac_try_echo=$ac_try;;
  49667. esac
  49668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49669. $as_echo "$ac_try_echo") >&5
  49670. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49671. ac_status=$?
  49672. grep -v '^ *+' conftest.er1 >conftest.err
  49673. rm -f conftest.er1
  49674. cat conftest.err >&5
  49675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49676. (exit $ac_status); } >/dev/null && {
  49677. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49678. test ! -s conftest.err
  49679. }; then
  49680. ac_header_preproc=yes
  49681. else
  49682. $as_echo "$as_me: failed program was:" >&5
  49683. sed 's/^/| /' conftest.$ac_ext >&5
  49684. ac_header_preproc=no
  49685. fi
  49686. rm -f conftest.err conftest.$ac_ext
  49687. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49688. $as_echo "$ac_header_preproc" >&6; }
  49689. # So? What about this header?
  49690. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49691. yes:no: )
  49692. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49693. $as_echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49694. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
  49695. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
  49696. ac_header_preproc=yes
  49697. ;;
  49698. no:yes:* )
  49699. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
  49700. $as_echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
  49701. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
  49702. $as_echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
  49703. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
  49704. $as_echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
  49705. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
  49706. $as_echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49707. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
  49708. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
  49709. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
  49710. $as_echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
  49711. ( cat <<\_ASBOX
  49712. ## ------------------------------------------ ##
  49713. ## Report this to https://issues.asterisk.org ##
  49714. ## ------------------------------------------ ##
  49715. _ASBOX
  49716. ) | sed "s/^/$as_me: WARNING: /" >&2
  49717. ;;
  49718. esac
  49719. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  49720. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  49721. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49722. $as_echo_n "(cached) " >&6
  49723. else
  49724. ac_cv_header_X11_Xlib_h=$ac_header_preproc
  49725. fi
  49726. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  49727. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  49728. fi
  49729. if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then
  49730. X11_HEADER_FOUND=1
  49731. else
  49732. X11_HEADER_FOUND=0
  49733. fi
  49734. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  49735. fi
  49736. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  49737. X11_LIB=""
  49738. X11_INCLUDE=""
  49739. else
  49740. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  49741. X11_LIB=""
  49742. fi
  49743. PBX_X11=1
  49744. cat >>confdefs.h <<_ACEOF
  49745. #define HAVE_X11 1
  49746. _ACEOF
  49747. cat >>confdefs.h <<_ACEOF
  49748. #define HAVE_X11_VERSION standard_path
  49749. _ACEOF
  49750. fi
  49751. fi
  49752. fi
  49753. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  49754. pbxlibdir=""
  49755. # if --with-X11=DIR has been specified, use it.
  49756. if test "x${X11_DIR}" != "x"; then
  49757. if test -d ${X11_DIR}/lib; then
  49758. pbxlibdir="-L${X11_DIR}/lib"
  49759. else
  49760. pbxlibdir="-L${X11_DIR}"
  49761. fi
  49762. fi
  49763. pbxfuncname="XOpenDisplay"
  49764. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  49765. AST_X11_FOUND=yes
  49766. else
  49767. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  49768. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  49769. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  49770. { $as_echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
  49771. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  49772. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  49773. $as_echo_n "(cached) " >&6
  49774. else
  49775. ac_check_lib_save_LIBS=$LIBS
  49776. LIBS="-lX11 ${pbxlibdir} $LIBS"
  49777. cat >conftest.$ac_ext <<_ACEOF
  49778. /* confdefs.h. */
  49779. _ACEOF
  49780. cat confdefs.h >>conftest.$ac_ext
  49781. cat >>conftest.$ac_ext <<_ACEOF
  49782. /* end confdefs.h. */
  49783. /* Override any GCC internal prototype to avoid an error.
  49784. Use char because int might match the return type of a GCC
  49785. builtin and then its argument prototype would still apply. */
  49786. #ifdef __cplusplus
  49787. extern "C"
  49788. #endif
  49789. char ${pbxfuncname} ();
  49790. int
  49791. main ()
  49792. {
  49793. return ${pbxfuncname} ();
  49794. ;
  49795. return 0;
  49796. }
  49797. _ACEOF
  49798. rm -f conftest.$ac_objext conftest$ac_exeext
  49799. if { (ac_try="$ac_link"
  49800. case "(($ac_try" in
  49801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49802. *) ac_try_echo=$ac_try;;
  49803. esac
  49804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49805. $as_echo "$ac_try_echo") >&5
  49806. (eval "$ac_link") 2>conftest.er1
  49807. ac_status=$?
  49808. grep -v '^ *+' conftest.er1 >conftest.err
  49809. rm -f conftest.er1
  49810. cat conftest.err >&5
  49811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49812. (exit $ac_status); } && {
  49813. test -z "$ac_c_werror_flag" ||
  49814. test ! -s conftest.err
  49815. } && test -s conftest$ac_exeext && {
  49816. test "$cross_compiling" = yes ||
  49817. $as_test_x conftest$ac_exeext
  49818. }; then
  49819. eval "$as_ac_Lib=yes"
  49820. else
  49821. $as_echo "$as_me: failed program was:" >&5
  49822. sed 's/^/| /' conftest.$ac_ext >&5
  49823. eval "$as_ac_Lib=no"
  49824. fi
  49825. rm -rf conftest.dSYM
  49826. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  49827. conftest$ac_exeext conftest.$ac_ext
  49828. LIBS=$ac_check_lib_save_LIBS
  49829. fi
  49830. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  49831. $as_echo "$as_val"'`
  49832. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  49833. $as_echo "$ac_res" >&6; }
  49834. as_val=`eval 'as_val=${'$as_ac_Lib'}
  49835. $as_echo "$as_val"'`
  49836. if test "x$as_val" = x""yes; then
  49837. AST_X11_FOUND=yes
  49838. else
  49839. AST_X11_FOUND=no
  49840. fi
  49841. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  49842. fi
  49843. # now check for the header.
  49844. if test "${AST_X11_FOUND}" = "yes"; then
  49845. X11_LIB="${pbxlibdir} -lX11 "
  49846. # if --with-X11=DIR has been specified, use it.
  49847. if test "x${X11_DIR}" != "x"; then
  49848. X11_INCLUDE="-I${X11_DIR}/include"
  49849. fi
  49850. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  49851. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  49852. X11_HEADER_FOUND="1"
  49853. else # check for the header
  49854. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  49855. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  49856. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49857. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  49858. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  49859. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49860. $as_echo_n "(cached) " >&6
  49861. fi
  49862. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  49863. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  49864. else
  49865. # Is the header compilable?
  49866. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
  49867. $as_echo_n "checking X11/Xlib.h usability... " >&6; }
  49868. cat >conftest.$ac_ext <<_ACEOF
  49869. /* confdefs.h. */
  49870. _ACEOF
  49871. cat confdefs.h >>conftest.$ac_ext
  49872. cat >>conftest.$ac_ext <<_ACEOF
  49873. /* end confdefs.h. */
  49874. $ac_includes_default
  49875. #include <X11/Xlib.h>
  49876. _ACEOF
  49877. rm -f conftest.$ac_objext
  49878. if { (ac_try="$ac_compile"
  49879. case "(($ac_try" in
  49880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49881. *) ac_try_echo=$ac_try;;
  49882. esac
  49883. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49884. $as_echo "$ac_try_echo") >&5
  49885. (eval "$ac_compile") 2>conftest.er1
  49886. ac_status=$?
  49887. grep -v '^ *+' conftest.er1 >conftest.err
  49888. rm -f conftest.er1
  49889. cat conftest.err >&5
  49890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49891. (exit $ac_status); } && {
  49892. test -z "$ac_c_werror_flag" ||
  49893. test ! -s conftest.err
  49894. } && test -s conftest.$ac_objext; then
  49895. ac_header_compiler=yes
  49896. else
  49897. $as_echo "$as_me: failed program was:" >&5
  49898. sed 's/^/| /' conftest.$ac_ext >&5
  49899. ac_header_compiler=no
  49900. fi
  49901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49902. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  49903. $as_echo "$ac_header_compiler" >&6; }
  49904. # Is the header present?
  49905. { $as_echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
  49906. $as_echo_n "checking X11/Xlib.h presence... " >&6; }
  49907. cat >conftest.$ac_ext <<_ACEOF
  49908. /* confdefs.h. */
  49909. _ACEOF
  49910. cat confdefs.h >>conftest.$ac_ext
  49911. cat >>conftest.$ac_ext <<_ACEOF
  49912. /* end confdefs.h. */
  49913. #include <X11/Xlib.h>
  49914. _ACEOF
  49915. if { (ac_try="$ac_cpp conftest.$ac_ext"
  49916. case "(($ac_try" in
  49917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49918. *) ac_try_echo=$ac_try;;
  49919. esac
  49920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  49921. $as_echo "$ac_try_echo") >&5
  49922. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  49923. ac_status=$?
  49924. grep -v '^ *+' conftest.er1 >conftest.err
  49925. rm -f conftest.er1
  49926. cat conftest.err >&5
  49927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  49928. (exit $ac_status); } >/dev/null && {
  49929. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  49930. test ! -s conftest.err
  49931. }; then
  49932. ac_header_preproc=yes
  49933. else
  49934. $as_echo "$as_me: failed program was:" >&5
  49935. sed 's/^/| /' conftest.$ac_ext >&5
  49936. ac_header_preproc=no
  49937. fi
  49938. rm -f conftest.err conftest.$ac_ext
  49939. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  49940. $as_echo "$ac_header_preproc" >&6; }
  49941. # So? What about this header?
  49942. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  49943. yes:no: )
  49944. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  49945. $as_echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  49946. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
  49947. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
  49948. ac_header_preproc=yes
  49949. ;;
  49950. no:yes:* )
  49951. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
  49952. $as_echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
  49953. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
  49954. $as_echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
  49955. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
  49956. $as_echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
  49957. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
  49958. $as_echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  49959. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
  49960. $as_echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
  49961. { $as_echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
  49962. $as_echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
  49963. ( cat <<\_ASBOX
  49964. ## ------------------------------------------ ##
  49965. ## Report this to https://issues.asterisk.org ##
  49966. ## ------------------------------------------ ##
  49967. _ASBOX
  49968. ) | sed "s/^/$as_me: WARNING: /" >&2
  49969. ;;
  49970. esac
  49971. { $as_echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  49972. $as_echo_n "checking for X11/Xlib.h... " >&6; }
  49973. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  49974. $as_echo_n "(cached) " >&6
  49975. else
  49976. ac_cv_header_X11_Xlib_h=$ac_header_preproc
  49977. fi
  49978. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  49979. $as_echo "$ac_cv_header_X11_Xlib_h" >&6; }
  49980. fi
  49981. if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then
  49982. X11_HEADER_FOUND=1
  49983. else
  49984. X11_HEADER_FOUND=0
  49985. fi
  49986. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  49987. fi
  49988. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  49989. X11_LIB=""
  49990. X11_INCLUDE=""
  49991. else
  49992. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  49993. X11_LIB=""
  49994. fi
  49995. PBX_X11=1
  49996. cat >>confdefs.h <<_ACEOF
  49997. #define HAVE_X11 1
  49998. _ACEOF
  49999. cat >>confdefs.h <<_ACEOF
  50000. #define HAVE_X11_VERSION X11R6
  50001. _ACEOF
  50002. fi
  50003. fi
  50004. fi
  50005. PBX_LAUNCHD=0
  50006. if test "${cross_compiling}" = "no";
  50007. then
  50008. { $as_echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
  50009. $as_echo_n "checking for /sbin/launchd... " >&6; }
  50010. if test "${ac_cv_file__sbin_launchd+set}" = set; then
  50011. $as_echo_n "(cached) " >&6
  50012. else
  50013. test "$cross_compiling" = yes &&
  50014. { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  50015. $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  50016. { (exit 1); exit 1; }; }
  50017. if test -r "/sbin/launchd"; then
  50018. ac_cv_file__sbin_launchd=yes
  50019. else
  50020. ac_cv_file__sbin_launchd=no
  50021. fi
  50022. fi
  50023. { $as_echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
  50024. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  50025. if test "x$ac_cv_file__sbin_launchd" = x""yes; then
  50026. cat >>confdefs.h <<\_ACEOF
  50027. #define HAVE_SBIN_LAUNCHD 1
  50028. _ACEOF
  50029. fi
  50030. PBX_LAUNCHD=1
  50031. fi
  50032. PBX_GTK2=0
  50033. if test "${PKGCONFIG}" != "No"; then
  50034. GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
  50035. GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
  50036. PBX_GTK2=1
  50037. cat >>confdefs.h <<\_ACEOF
  50038. #define HAVE_GTK2 1
  50039. _ACEOF
  50040. fi
  50041. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  50042. # or iODBC
  50043. PBX_GENERIC_ODBC=0
  50044. if test "${PBX_UNIXODBC}" = 1; then
  50045. PBX_GENERIC_ODBC=1
  50046. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  50047. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  50048. elif test "${PBX_IODBC}" = 1; then
  50049. PBX_GENERIC_ODBC=1
  50050. GENERIC_ODBC_LIB="${IODBC_LIB}"
  50051. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  50052. fi
  50053. PBX_SYSLOG=0
  50054. if test "${ac_cv_header_syslog_h}" = "yes"; then
  50055. # syslog facilities
  50056. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  50057. { $as_echo "$as_me:$LINENO: checking for LOG_AUTH in syslog.h" >&5
  50058. $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
  50059. saved_cppflags="${CPPFLAGS}"
  50060. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  50061. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  50062. fi
  50063. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  50064. cat >conftest.$ac_ext <<_ACEOF
  50065. /* confdefs.h. */
  50066. _ACEOF
  50067. cat confdefs.h >>conftest.$ac_ext
  50068. cat >>conftest.$ac_ext <<_ACEOF
  50069. /* end confdefs.h. */
  50070. #include <syslog.h>
  50071. int
  50072. main ()
  50073. {
  50074. #if defined(LOG_AUTH)
  50075. int foo = 0;
  50076. #else
  50077. int foo = bar;
  50078. #endif
  50079. 0
  50080. ;
  50081. return 0;
  50082. }
  50083. _ACEOF
  50084. rm -f conftest.$ac_objext
  50085. if { (ac_try="$ac_compile"
  50086. case "(($ac_try" in
  50087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50088. *) ac_try_echo=$ac_try;;
  50089. esac
  50090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50091. $as_echo "$ac_try_echo") >&5
  50092. (eval "$ac_compile") 2>conftest.er1
  50093. ac_status=$?
  50094. grep -v '^ *+' conftest.er1 >conftest.err
  50095. rm -f conftest.er1
  50096. cat conftest.err >&5
  50097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50098. (exit $ac_status); } && {
  50099. test -z "$ac_c_werror_flag" ||
  50100. test ! -s conftest.err
  50101. } && test -s conftest.$ac_objext; then
  50102. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50103. $as_echo "yes" >&6; }
  50104. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  50105. cat >>confdefs.h <<\_ACEOF
  50106. #define HAVE_SYSLOG_FACILITY_LOG_AUTH 1
  50107. _ACEOF
  50108. else
  50109. $as_echo "$as_me: failed program was:" >&5
  50110. sed 's/^/| /' conftest.$ac_ext >&5
  50111. { $as_echo "$as_me:$LINENO: result: no" >&5
  50112. $as_echo "no" >&6; }
  50113. fi
  50114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50115. CPPFLAGS="${saved_cppflags}"
  50116. fi
  50117. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  50118. { $as_echo "$as_me:$LINENO: checking for LOG_AUTHPRIV in syslog.h" >&5
  50119. $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  50120. saved_cppflags="${CPPFLAGS}"
  50121. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  50122. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  50123. fi
  50124. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  50125. cat >conftest.$ac_ext <<_ACEOF
  50126. /* confdefs.h. */
  50127. _ACEOF
  50128. cat confdefs.h >>conftest.$ac_ext
  50129. cat >>conftest.$ac_ext <<_ACEOF
  50130. /* end confdefs.h. */
  50131. #include <syslog.h>
  50132. int
  50133. main ()
  50134. {
  50135. #if defined(LOG_AUTHPRIV)
  50136. int foo = 0;
  50137. #else
  50138. int foo = bar;
  50139. #endif
  50140. 0
  50141. ;
  50142. return 0;
  50143. }
  50144. _ACEOF
  50145. rm -f conftest.$ac_objext
  50146. if { (ac_try="$ac_compile"
  50147. case "(($ac_try" in
  50148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50149. *) ac_try_echo=$ac_try;;
  50150. esac
  50151. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50152. $as_echo "$ac_try_echo") >&5
  50153. (eval "$ac_compile") 2>conftest.er1
  50154. ac_status=$?
  50155. grep -v '^ *+' conftest.er1 >conftest.err
  50156. rm -f conftest.er1
  50157. cat conftest.err >&5
  50158. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50159. (exit $ac_status); } && {
  50160. test -z "$ac_c_werror_flag" ||
  50161. test ! -s conftest.err
  50162. } && test -s conftest.$ac_objext; then
  50163. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50164. $as_echo "yes" >&6; }
  50165. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  50166. cat >>confdefs.h <<\_ACEOF
  50167. #define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1
  50168. _ACEOF
  50169. else
  50170. $as_echo "$as_me: failed program was:" >&5
  50171. sed 's/^/| /' conftest.$ac_ext >&5
  50172. { $as_echo "$as_me:$LINENO: result: no" >&5
  50173. $as_echo "no" >&6; }
  50174. fi
  50175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50176. CPPFLAGS="${saved_cppflags}"
  50177. fi
  50178. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  50179. { $as_echo "$as_me:$LINENO: checking for LOG_CRON in syslog.h" >&5
  50180. $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
  50181. saved_cppflags="${CPPFLAGS}"
  50182. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  50183. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  50184. fi
  50185. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  50186. cat >conftest.$ac_ext <<_ACEOF
  50187. /* confdefs.h. */
  50188. _ACEOF
  50189. cat confdefs.h >>conftest.$ac_ext
  50190. cat >>conftest.$ac_ext <<_ACEOF
  50191. /* end confdefs.h. */
  50192. #include <syslog.h>
  50193. int
  50194. main ()
  50195. {
  50196. #if defined(LOG_CRON)
  50197. int foo = 0;
  50198. #else
  50199. int foo = bar;
  50200. #endif
  50201. 0
  50202. ;
  50203. return 0;
  50204. }
  50205. _ACEOF
  50206. rm -f conftest.$ac_objext
  50207. if { (ac_try="$ac_compile"
  50208. case "(($ac_try" in
  50209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50210. *) ac_try_echo=$ac_try;;
  50211. esac
  50212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50213. $as_echo "$ac_try_echo") >&5
  50214. (eval "$ac_compile") 2>conftest.er1
  50215. ac_status=$?
  50216. grep -v '^ *+' conftest.er1 >conftest.err
  50217. rm -f conftest.er1
  50218. cat conftest.err >&5
  50219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50220. (exit $ac_status); } && {
  50221. test -z "$ac_c_werror_flag" ||
  50222. test ! -s conftest.err
  50223. } && test -s conftest.$ac_objext; then
  50224. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50225. $as_echo "yes" >&6; }
  50226. PBX_SYSLOG_FACILITY_LOG_CRON=1
  50227. cat >>confdefs.h <<\_ACEOF
  50228. #define HAVE_SYSLOG_FACILITY_LOG_CRON 1
  50229. _ACEOF
  50230. else
  50231. $as_echo "$as_me: failed program was:" >&5
  50232. sed 's/^/| /' conftest.$ac_ext >&5
  50233. { $as_echo "$as_me:$LINENO: result: no" >&5
  50234. $as_echo "no" >&6; }
  50235. fi
  50236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50237. CPPFLAGS="${saved_cppflags}"
  50238. fi
  50239. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  50240. { $as_echo "$as_me:$LINENO: checking for LOG_DAEMON in syslog.h" >&5
  50241. $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
  50242. saved_cppflags="${CPPFLAGS}"
  50243. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  50244. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  50245. fi
  50246. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  50247. cat >conftest.$ac_ext <<_ACEOF
  50248. /* confdefs.h. */
  50249. _ACEOF
  50250. cat confdefs.h >>conftest.$ac_ext
  50251. cat >>conftest.$ac_ext <<_ACEOF
  50252. /* end confdefs.h. */
  50253. #include <syslog.h>
  50254. int
  50255. main ()
  50256. {
  50257. #if defined(LOG_DAEMON)
  50258. int foo = 0;
  50259. #else
  50260. int foo = bar;
  50261. #endif
  50262. 0
  50263. ;
  50264. return 0;
  50265. }
  50266. _ACEOF
  50267. rm -f conftest.$ac_objext
  50268. if { (ac_try="$ac_compile"
  50269. case "(($ac_try" in
  50270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50271. *) ac_try_echo=$ac_try;;
  50272. esac
  50273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50274. $as_echo "$ac_try_echo") >&5
  50275. (eval "$ac_compile") 2>conftest.er1
  50276. ac_status=$?
  50277. grep -v '^ *+' conftest.er1 >conftest.err
  50278. rm -f conftest.er1
  50279. cat conftest.err >&5
  50280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50281. (exit $ac_status); } && {
  50282. test -z "$ac_c_werror_flag" ||
  50283. test ! -s conftest.err
  50284. } && test -s conftest.$ac_objext; then
  50285. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50286. $as_echo "yes" >&6; }
  50287. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  50288. cat >>confdefs.h <<\_ACEOF
  50289. #define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1
  50290. _ACEOF
  50291. else
  50292. $as_echo "$as_me: failed program was:" >&5
  50293. sed 's/^/| /' conftest.$ac_ext >&5
  50294. { $as_echo "$as_me:$LINENO: result: no" >&5
  50295. $as_echo "no" >&6; }
  50296. fi
  50297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50298. CPPFLAGS="${saved_cppflags}"
  50299. fi
  50300. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  50301. { $as_echo "$as_me:$LINENO: checking for LOG_FTP in syslog.h" >&5
  50302. $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
  50303. saved_cppflags="${CPPFLAGS}"
  50304. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  50305. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  50306. fi
  50307. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  50308. cat >conftest.$ac_ext <<_ACEOF
  50309. /* confdefs.h. */
  50310. _ACEOF
  50311. cat confdefs.h >>conftest.$ac_ext
  50312. cat >>conftest.$ac_ext <<_ACEOF
  50313. /* end confdefs.h. */
  50314. #include <syslog.h>
  50315. int
  50316. main ()
  50317. {
  50318. #if defined(LOG_FTP)
  50319. int foo = 0;
  50320. #else
  50321. int foo = bar;
  50322. #endif
  50323. 0
  50324. ;
  50325. return 0;
  50326. }
  50327. _ACEOF
  50328. rm -f conftest.$ac_objext
  50329. if { (ac_try="$ac_compile"
  50330. case "(($ac_try" in
  50331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50332. *) ac_try_echo=$ac_try;;
  50333. esac
  50334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50335. $as_echo "$ac_try_echo") >&5
  50336. (eval "$ac_compile") 2>conftest.er1
  50337. ac_status=$?
  50338. grep -v '^ *+' conftest.er1 >conftest.err
  50339. rm -f conftest.er1
  50340. cat conftest.err >&5
  50341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50342. (exit $ac_status); } && {
  50343. test -z "$ac_c_werror_flag" ||
  50344. test ! -s conftest.err
  50345. } && test -s conftest.$ac_objext; then
  50346. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50347. $as_echo "yes" >&6; }
  50348. PBX_SYSLOG_FACILITY_LOG_FTP=1
  50349. cat >>confdefs.h <<\_ACEOF
  50350. #define HAVE_SYSLOG_FACILITY_LOG_FTP 1
  50351. _ACEOF
  50352. else
  50353. $as_echo "$as_me: failed program was:" >&5
  50354. sed 's/^/| /' conftest.$ac_ext >&5
  50355. { $as_echo "$as_me:$LINENO: result: no" >&5
  50356. $as_echo "no" >&6; }
  50357. fi
  50358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50359. CPPFLAGS="${saved_cppflags}"
  50360. fi
  50361. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  50362. { $as_echo "$as_me:$LINENO: checking for LOG_KERN in syslog.h" >&5
  50363. $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
  50364. saved_cppflags="${CPPFLAGS}"
  50365. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  50366. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  50367. fi
  50368. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  50369. cat >conftest.$ac_ext <<_ACEOF
  50370. /* confdefs.h. */
  50371. _ACEOF
  50372. cat confdefs.h >>conftest.$ac_ext
  50373. cat >>conftest.$ac_ext <<_ACEOF
  50374. /* end confdefs.h. */
  50375. #include <syslog.h>
  50376. int
  50377. main ()
  50378. {
  50379. #if defined(LOG_KERN)
  50380. int foo = 0;
  50381. #else
  50382. int foo = bar;
  50383. #endif
  50384. 0
  50385. ;
  50386. return 0;
  50387. }
  50388. _ACEOF
  50389. rm -f conftest.$ac_objext
  50390. if { (ac_try="$ac_compile"
  50391. case "(($ac_try" in
  50392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50393. *) ac_try_echo=$ac_try;;
  50394. esac
  50395. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50396. $as_echo "$ac_try_echo") >&5
  50397. (eval "$ac_compile") 2>conftest.er1
  50398. ac_status=$?
  50399. grep -v '^ *+' conftest.er1 >conftest.err
  50400. rm -f conftest.er1
  50401. cat conftest.err >&5
  50402. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50403. (exit $ac_status); } && {
  50404. test -z "$ac_c_werror_flag" ||
  50405. test ! -s conftest.err
  50406. } && test -s conftest.$ac_objext; then
  50407. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50408. $as_echo "yes" >&6; }
  50409. PBX_SYSLOG_FACILITY_LOG_KERN=1
  50410. cat >>confdefs.h <<\_ACEOF
  50411. #define HAVE_SYSLOG_FACILITY_LOG_KERN 1
  50412. _ACEOF
  50413. else
  50414. $as_echo "$as_me: failed program was:" >&5
  50415. sed 's/^/| /' conftest.$ac_ext >&5
  50416. { $as_echo "$as_me:$LINENO: result: no" >&5
  50417. $as_echo "no" >&6; }
  50418. fi
  50419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50420. CPPFLAGS="${saved_cppflags}"
  50421. fi
  50422. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  50423. { $as_echo "$as_me:$LINENO: checking for LOG_LPR in syslog.h" >&5
  50424. $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
  50425. saved_cppflags="${CPPFLAGS}"
  50426. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  50427. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  50428. fi
  50429. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  50430. cat >conftest.$ac_ext <<_ACEOF
  50431. /* confdefs.h. */
  50432. _ACEOF
  50433. cat confdefs.h >>conftest.$ac_ext
  50434. cat >>conftest.$ac_ext <<_ACEOF
  50435. /* end confdefs.h. */
  50436. #include <syslog.h>
  50437. int
  50438. main ()
  50439. {
  50440. #if defined(LOG_LPR)
  50441. int foo = 0;
  50442. #else
  50443. int foo = bar;
  50444. #endif
  50445. 0
  50446. ;
  50447. return 0;
  50448. }
  50449. _ACEOF
  50450. rm -f conftest.$ac_objext
  50451. if { (ac_try="$ac_compile"
  50452. case "(($ac_try" in
  50453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50454. *) ac_try_echo=$ac_try;;
  50455. esac
  50456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50457. $as_echo "$ac_try_echo") >&5
  50458. (eval "$ac_compile") 2>conftest.er1
  50459. ac_status=$?
  50460. grep -v '^ *+' conftest.er1 >conftest.err
  50461. rm -f conftest.er1
  50462. cat conftest.err >&5
  50463. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50464. (exit $ac_status); } && {
  50465. test -z "$ac_c_werror_flag" ||
  50466. test ! -s conftest.err
  50467. } && test -s conftest.$ac_objext; then
  50468. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50469. $as_echo "yes" >&6; }
  50470. PBX_SYSLOG_FACILITY_LOG_LPR=1
  50471. cat >>confdefs.h <<\_ACEOF
  50472. #define HAVE_SYSLOG_FACILITY_LOG_LPR 1
  50473. _ACEOF
  50474. else
  50475. $as_echo "$as_me: failed program was:" >&5
  50476. sed 's/^/| /' conftest.$ac_ext >&5
  50477. { $as_echo "$as_me:$LINENO: result: no" >&5
  50478. $as_echo "no" >&6; }
  50479. fi
  50480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50481. CPPFLAGS="${saved_cppflags}"
  50482. fi
  50483. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  50484. { $as_echo "$as_me:$LINENO: checking for LOG_MAIL in syslog.h" >&5
  50485. $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
  50486. saved_cppflags="${CPPFLAGS}"
  50487. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  50488. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  50489. fi
  50490. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  50491. cat >conftest.$ac_ext <<_ACEOF
  50492. /* confdefs.h. */
  50493. _ACEOF
  50494. cat confdefs.h >>conftest.$ac_ext
  50495. cat >>conftest.$ac_ext <<_ACEOF
  50496. /* end confdefs.h. */
  50497. #include <syslog.h>
  50498. int
  50499. main ()
  50500. {
  50501. #if defined(LOG_MAIL)
  50502. int foo = 0;
  50503. #else
  50504. int foo = bar;
  50505. #endif
  50506. 0
  50507. ;
  50508. return 0;
  50509. }
  50510. _ACEOF
  50511. rm -f conftest.$ac_objext
  50512. if { (ac_try="$ac_compile"
  50513. case "(($ac_try" in
  50514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50515. *) ac_try_echo=$ac_try;;
  50516. esac
  50517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50518. $as_echo "$ac_try_echo") >&5
  50519. (eval "$ac_compile") 2>conftest.er1
  50520. ac_status=$?
  50521. grep -v '^ *+' conftest.er1 >conftest.err
  50522. rm -f conftest.er1
  50523. cat conftest.err >&5
  50524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50525. (exit $ac_status); } && {
  50526. test -z "$ac_c_werror_flag" ||
  50527. test ! -s conftest.err
  50528. } && test -s conftest.$ac_objext; then
  50529. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50530. $as_echo "yes" >&6; }
  50531. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  50532. cat >>confdefs.h <<\_ACEOF
  50533. #define HAVE_SYSLOG_FACILITY_LOG_MAIL 1
  50534. _ACEOF
  50535. else
  50536. $as_echo "$as_me: failed program was:" >&5
  50537. sed 's/^/| /' conftest.$ac_ext >&5
  50538. { $as_echo "$as_me:$LINENO: result: no" >&5
  50539. $as_echo "no" >&6; }
  50540. fi
  50541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50542. CPPFLAGS="${saved_cppflags}"
  50543. fi
  50544. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  50545. { $as_echo "$as_me:$LINENO: checking for LOG_NEWS in syslog.h" >&5
  50546. $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
  50547. saved_cppflags="${CPPFLAGS}"
  50548. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  50549. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  50550. fi
  50551. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  50552. cat >conftest.$ac_ext <<_ACEOF
  50553. /* confdefs.h. */
  50554. _ACEOF
  50555. cat confdefs.h >>conftest.$ac_ext
  50556. cat >>conftest.$ac_ext <<_ACEOF
  50557. /* end confdefs.h. */
  50558. #include <syslog.h>
  50559. int
  50560. main ()
  50561. {
  50562. #if defined(LOG_NEWS)
  50563. int foo = 0;
  50564. #else
  50565. int foo = bar;
  50566. #endif
  50567. 0
  50568. ;
  50569. return 0;
  50570. }
  50571. _ACEOF
  50572. rm -f conftest.$ac_objext
  50573. if { (ac_try="$ac_compile"
  50574. case "(($ac_try" in
  50575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50576. *) ac_try_echo=$ac_try;;
  50577. esac
  50578. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50579. $as_echo "$ac_try_echo") >&5
  50580. (eval "$ac_compile") 2>conftest.er1
  50581. ac_status=$?
  50582. grep -v '^ *+' conftest.er1 >conftest.err
  50583. rm -f conftest.er1
  50584. cat conftest.err >&5
  50585. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50586. (exit $ac_status); } && {
  50587. test -z "$ac_c_werror_flag" ||
  50588. test ! -s conftest.err
  50589. } && test -s conftest.$ac_objext; then
  50590. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50591. $as_echo "yes" >&6; }
  50592. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  50593. cat >>confdefs.h <<\_ACEOF
  50594. #define HAVE_SYSLOG_FACILITY_LOG_NEWS 1
  50595. _ACEOF
  50596. else
  50597. $as_echo "$as_me: failed program was:" >&5
  50598. sed 's/^/| /' conftest.$ac_ext >&5
  50599. { $as_echo "$as_me:$LINENO: result: no" >&5
  50600. $as_echo "no" >&6; }
  50601. fi
  50602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50603. CPPFLAGS="${saved_cppflags}"
  50604. fi
  50605. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  50606. { $as_echo "$as_me:$LINENO: checking for LOG_SYSLOG in syslog.h" >&5
  50607. $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
  50608. saved_cppflags="${CPPFLAGS}"
  50609. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  50610. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  50611. fi
  50612. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  50613. cat >conftest.$ac_ext <<_ACEOF
  50614. /* confdefs.h. */
  50615. _ACEOF
  50616. cat confdefs.h >>conftest.$ac_ext
  50617. cat >>conftest.$ac_ext <<_ACEOF
  50618. /* end confdefs.h. */
  50619. #include <syslog.h>
  50620. int
  50621. main ()
  50622. {
  50623. #if defined(LOG_SYSLOG)
  50624. int foo = 0;
  50625. #else
  50626. int foo = bar;
  50627. #endif
  50628. 0
  50629. ;
  50630. return 0;
  50631. }
  50632. _ACEOF
  50633. rm -f conftest.$ac_objext
  50634. if { (ac_try="$ac_compile"
  50635. case "(($ac_try" in
  50636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50637. *) ac_try_echo=$ac_try;;
  50638. esac
  50639. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50640. $as_echo "$ac_try_echo") >&5
  50641. (eval "$ac_compile") 2>conftest.er1
  50642. ac_status=$?
  50643. grep -v '^ *+' conftest.er1 >conftest.err
  50644. rm -f conftest.er1
  50645. cat conftest.err >&5
  50646. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50647. (exit $ac_status); } && {
  50648. test -z "$ac_c_werror_flag" ||
  50649. test ! -s conftest.err
  50650. } && test -s conftest.$ac_objext; then
  50651. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50652. $as_echo "yes" >&6; }
  50653. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  50654. cat >>confdefs.h <<\_ACEOF
  50655. #define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1
  50656. _ACEOF
  50657. else
  50658. $as_echo "$as_me: failed program was:" >&5
  50659. sed 's/^/| /' conftest.$ac_ext >&5
  50660. { $as_echo "$as_me:$LINENO: result: no" >&5
  50661. $as_echo "no" >&6; }
  50662. fi
  50663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50664. CPPFLAGS="${saved_cppflags}"
  50665. fi
  50666. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  50667. { $as_echo "$as_me:$LINENO: checking for LOG_UUCP in syslog.h" >&5
  50668. $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
  50669. saved_cppflags="${CPPFLAGS}"
  50670. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  50671. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  50672. fi
  50673. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  50674. cat >conftest.$ac_ext <<_ACEOF
  50675. /* confdefs.h. */
  50676. _ACEOF
  50677. cat confdefs.h >>conftest.$ac_ext
  50678. cat >>conftest.$ac_ext <<_ACEOF
  50679. /* end confdefs.h. */
  50680. #include <syslog.h>
  50681. int
  50682. main ()
  50683. {
  50684. #if defined(LOG_UUCP)
  50685. int foo = 0;
  50686. #else
  50687. int foo = bar;
  50688. #endif
  50689. 0
  50690. ;
  50691. return 0;
  50692. }
  50693. _ACEOF
  50694. rm -f conftest.$ac_objext
  50695. if { (ac_try="$ac_compile"
  50696. case "(($ac_try" in
  50697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  50698. *) ac_try_echo=$ac_try;;
  50699. esac
  50700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  50701. $as_echo "$ac_try_echo") >&5
  50702. (eval "$ac_compile") 2>conftest.er1
  50703. ac_status=$?
  50704. grep -v '^ *+' conftest.er1 >conftest.err
  50705. rm -f conftest.er1
  50706. cat conftest.err >&5
  50707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50708. (exit $ac_status); } && {
  50709. test -z "$ac_c_werror_flag" ||
  50710. test ! -s conftest.err
  50711. } && test -s conftest.$ac_objext; then
  50712. { $as_echo "$as_me:$LINENO: result: yes" >&5
  50713. $as_echo "yes" >&6; }
  50714. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  50715. cat >>confdefs.h <<\_ACEOF
  50716. #define HAVE_SYSLOG_FACILITY_LOG_UUCP 1
  50717. _ACEOF
  50718. else
  50719. $as_echo "$as_me: failed program was:" >&5
  50720. sed 's/^/| /' conftest.$ac_ext >&5
  50721. { $as_echo "$as_me:$LINENO: result: no" >&5
  50722. $as_echo "no" >&6; }
  50723. fi
  50724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50725. CPPFLAGS="${saved_cppflags}"
  50726. fi
  50727. PBX_SYSLOG=1
  50728. fi
  50729. if test -f makeopts; then
  50730. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  50731. else
  50732. touch makeopts.acbak
  50733. fi
  50734. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
  50735. { $as_echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
  50736. $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  50737. err=0;
  50738. for i in ${ac_mandatory_list}; do
  50739. eval "a=\${PBX_$i}"
  50740. if test "x${a}" = "x1" ; then continue; fi
  50741. if test ${err} = "0" ; then { $as_echo "$as_me:$LINENO: result: fail" >&5
  50742. $as_echo "fail" >&6; } ; fi
  50743. { $as_echo "$as_me:$LINENO: result: " >&5
  50744. $as_echo "" >&6; }
  50745. eval "a=\${${i}_OPTION}"
  50746. { $as_echo "$as_me:$LINENO: ***" >&5
  50747. $as_echo "$as_me: ***" >&6;}
  50748. { $as_echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
  50749. $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  50750. { $as_echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
  50751. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  50752. { $as_echo "$as_me:$LINENO: *** including --without-${a}." >&5
  50753. $as_echo "$as_me: *** including --without-${a}." >&6;}
  50754. err=1
  50755. done
  50756. if test $err = 1 ; then exit 1; fi
  50757. { $as_echo "$as_me:$LINENO: result: ok" >&5
  50758. $as_echo "ok" >&6; }
  50759. if test -f build_tools/menuselect-deps; then
  50760. # extract old values of all PBX_ variables from menuselect-deps
  50761. # and preserve them so that menuselect can determine whether
  50762. # any previously-met dependencies are no longer met and warn
  50763. # the user appropriately
  50764. while IFS="=:" read var val old_val; do
  50765. eval "PBX_${var}=\${PBX_${var}}:${val}"
  50766. done < build_tools/menuselect-deps
  50767. fi
  50768. cat >confcache <<\_ACEOF
  50769. # This file is a shell script that caches the results of configure
  50770. # tests run on this system so they can be shared between configure
  50771. # scripts and configure runs, see configure's option --config-cache.
  50772. # It is not useful on other systems. If it contains results you don't
  50773. # want to keep, you may remove or edit it.
  50774. #
  50775. # config.status only pays attention to the cache file if you give it
  50776. # the --recheck option to rerun configure.
  50777. #
  50778. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  50779. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  50780. # following values.
  50781. _ACEOF
  50782. # The following way of writing the cache mishandles newlines in values,
  50783. # but we know of no workaround that is simple, portable, and efficient.
  50784. # So, we kill variables containing newlines.
  50785. # Ultrix sh set writes to stderr and can't be redirected directly,
  50786. # and sets the high bit in the cache file unless we assign to the vars.
  50787. (
  50788. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  50789. eval ac_val=\$$ac_var
  50790. case $ac_val in #(
  50791. *${as_nl}*)
  50792. case $ac_var in #(
  50793. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  50794. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  50795. esac
  50796. case $ac_var in #(
  50797. _ | IFS | as_nl) ;; #(
  50798. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  50799. *) $as_unset $ac_var ;;
  50800. esac ;;
  50801. esac
  50802. done
  50803. (set) 2>&1 |
  50804. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  50805. *${as_nl}ac_space=\ *)
  50806. # `set' does not quote correctly, so add quotes (double-quote
  50807. # substitution turns \\\\ into \\, and sed turns \\ into \).
  50808. sed -n \
  50809. "s/'/'\\\\''/g;
  50810. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  50811. ;; #(
  50812. *)
  50813. # `set' quotes correctly as required by POSIX, so do not add quotes.
  50814. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  50815. ;;
  50816. esac |
  50817. sort
  50818. ) |
  50819. sed '
  50820. /^ac_cv_env_/b end
  50821. t clear
  50822. :clear
  50823. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  50824. t end
  50825. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  50826. :end' >>confcache
  50827. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  50828. if test -w "$cache_file"; then
  50829. test "x$cache_file" != "x/dev/null" &&
  50830. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  50831. $as_echo "$as_me: updating cache $cache_file" >&6;}
  50832. cat confcache >$cache_file
  50833. else
  50834. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  50835. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  50836. fi
  50837. fi
  50838. rm -f confcache
  50839. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  50840. # Let make expand exec_prefix.
  50841. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  50842. DEFS=-DHAVE_CONFIG_H
  50843. ac_libobjs=
  50844. ac_ltlibobjs=
  50845. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  50846. # 1. Remove the extension, and $U if already installed.
  50847. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  50848. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  50849. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  50850. # will be set to the directory where LIBOBJS objects are built.
  50851. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  50852. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  50853. done
  50854. LIBOBJS=$ac_libobjs
  50855. LTLIBOBJS=$ac_ltlibobjs
  50856. : ${CONFIG_STATUS=./config.status}
  50857. ac_write_fail=0
  50858. ac_clean_files_save=$ac_clean_files
  50859. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  50860. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  50861. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  50862. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  50863. #! $SHELL
  50864. # Generated by $as_me.
  50865. # Run this file to recreate the current configuration.
  50866. # Compiler output produced by configure, useful for debugging
  50867. # configure, is in config.log if it exists.
  50868. debug=false
  50869. ac_cs_recheck=false
  50870. ac_cs_silent=false
  50871. SHELL=\${CONFIG_SHELL-$SHELL}
  50872. _ACEOF
  50873. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  50874. ## --------------------- ##
  50875. ## M4sh Initialization. ##
  50876. ## --------------------- ##
  50877. # Be more Bourne compatible
  50878. DUALCASE=1; export DUALCASE # for MKS sh
  50879. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  50880. emulate sh
  50881. NULLCMD=:
  50882. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  50883. # is contrary to our usage. Disable this feature.
  50884. alias -g '${1+"$@"}'='"$@"'
  50885. setopt NO_GLOB_SUBST
  50886. else
  50887. case `(set -o) 2>/dev/null` in
  50888. *posix*) set -o posix ;;
  50889. esac
  50890. fi
  50891. # PATH needs CR
  50892. # Avoid depending upon Character Ranges.
  50893. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  50894. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  50895. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  50896. as_cr_digits='0123456789'
  50897. as_cr_alnum=$as_cr_Letters$as_cr_digits
  50898. as_nl='
  50899. '
  50900. export as_nl
  50901. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  50902. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  50903. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  50904. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  50905. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50906. as_echo='printf %s\n'
  50907. as_echo_n='printf %s'
  50908. else
  50909. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  50910. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50911. as_echo_n='/usr/ucb/echo -n'
  50912. else
  50913. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  50914. as_echo_n_body='eval
  50915. arg=$1;
  50916. case $arg in
  50917. *"$as_nl"*)
  50918. expr "X$arg" : "X\\(.*\\)$as_nl";
  50919. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  50920. esac;
  50921. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  50922. '
  50923. export as_echo_n_body
  50924. as_echo_n='sh -c $as_echo_n_body as_echo'
  50925. fi
  50926. export as_echo_body
  50927. as_echo='sh -c $as_echo_body as_echo'
  50928. fi
  50929. # The user is always right.
  50930. if test "${PATH_SEPARATOR+set}" != set; then
  50931. PATH_SEPARATOR=:
  50932. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  50933. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  50934. PATH_SEPARATOR=';'
  50935. }
  50936. fi
  50937. # Support unset when possible.
  50938. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50939. as_unset=unset
  50940. else
  50941. as_unset=false
  50942. fi
  50943. # IFS
  50944. # We need space, tab and new line, in precisely that order. Quoting is
  50945. # there to prevent editors from complaining about space-tab.
  50946. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  50947. # splitting by setting IFS to empty value.)
  50948. IFS=" "" $as_nl"
  50949. # Find who we are. Look in the path if we contain no directory separator.
  50950. case $0 in
  50951. *[\\/]* ) as_myself=$0 ;;
  50952. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  50953. for as_dir in $PATH
  50954. do
  50955. IFS=$as_save_IFS
  50956. test -z "$as_dir" && as_dir=.
  50957. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  50958. done
  50959. IFS=$as_save_IFS
  50960. ;;
  50961. esac
  50962. # We did not find ourselves, most probably we were run as `sh COMMAND'
  50963. # in which case we are not to be found in the path.
  50964. if test "x$as_myself" = x; then
  50965. as_myself=$0
  50966. fi
  50967. if test ! -f "$as_myself"; then
  50968. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  50969. { (exit 1); exit 1; }
  50970. fi
  50971. # Work around bugs in pre-3.0 UWIN ksh.
  50972. for as_var in ENV MAIL MAILPATH
  50973. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  50974. done
  50975. PS1='$ '
  50976. PS2='> '
  50977. PS4='+ '
  50978. # NLS nuisances.
  50979. LC_ALL=C
  50980. export LC_ALL
  50981. LANGUAGE=C
  50982. export LANGUAGE
  50983. # Required to use basename.
  50984. if expr a : '\(a\)' >/dev/null 2>&1 &&
  50985. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  50986. as_expr=expr
  50987. else
  50988. as_expr=false
  50989. fi
  50990. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  50991. as_basename=basename
  50992. else
  50993. as_basename=false
  50994. fi
  50995. # Name of the executable.
  50996. as_me=`$as_basename -- "$0" ||
  50997. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  50998. X"$0" : 'X\(//\)$' \| \
  50999. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  51000. $as_echo X/"$0" |
  51001. sed '/^.*\/\([^/][^/]*\)\/*$/{
  51002. s//\1/
  51003. q
  51004. }
  51005. /^X\/\(\/\/\)$/{
  51006. s//\1/
  51007. q
  51008. }
  51009. /^X\/\(\/\).*/{
  51010. s//\1/
  51011. q
  51012. }
  51013. s/.*/./; q'`
  51014. # CDPATH.
  51015. $as_unset CDPATH
  51016. as_lineno_1=$LINENO
  51017. as_lineno_2=$LINENO
  51018. test "x$as_lineno_1" != "x$as_lineno_2" &&
  51019. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  51020. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  51021. # uniformly replaced by the line number. The first 'sed' inserts a
  51022. # line-number line after each line using $LINENO; the second 'sed'
  51023. # does the real work. The second script uses 'N' to pair each
  51024. # line-number line with the line containing $LINENO, and appends
  51025. # trailing '-' during substitution so that $LINENO is not a special
  51026. # case at line end.
  51027. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  51028. # scripts with optimization help from Paolo Bonzini. Blame Lee
  51029. # E. McMahon (1931-1989) for sed's syntax. :-)
  51030. sed -n '
  51031. p
  51032. /[$]LINENO/=
  51033. ' <$as_myself |
  51034. sed '
  51035. s/[$]LINENO.*/&-/
  51036. t lineno
  51037. b
  51038. :lineno
  51039. N
  51040. :loop
  51041. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  51042. t loop
  51043. s/-\n.*//
  51044. ' >$as_me.lineno &&
  51045. chmod +x "$as_me.lineno" ||
  51046. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  51047. { (exit 1); exit 1; }; }
  51048. # Don't try to exec as it changes $[0], causing all sort of problems
  51049. # (the dirname of $[0] is not the place where we might find the
  51050. # original and so on. Autoconf is especially sensitive to this).
  51051. . "./$as_me.lineno"
  51052. # Exit status is that of the last command.
  51053. exit
  51054. }
  51055. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  51056. as_dirname=dirname
  51057. else
  51058. as_dirname=false
  51059. fi
  51060. ECHO_C= ECHO_N= ECHO_T=
  51061. case `echo -n x` in
  51062. -n*)
  51063. case `echo 'x\c'` in
  51064. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  51065. *) ECHO_C='\c';;
  51066. esac;;
  51067. *)
  51068. ECHO_N='-n';;
  51069. esac
  51070. if expr a : '\(a\)' >/dev/null 2>&1 &&
  51071. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  51072. as_expr=expr
  51073. else
  51074. as_expr=false
  51075. fi
  51076. rm -f conf$$ conf$$.exe conf$$.file
  51077. if test -d conf$$.dir; then
  51078. rm -f conf$$.dir/conf$$.file
  51079. else
  51080. rm -f conf$$.dir
  51081. mkdir conf$$.dir 2>/dev/null
  51082. fi
  51083. if (echo >conf$$.file) 2>/dev/null; then
  51084. if ln -s conf$$.file conf$$ 2>/dev/null; then
  51085. as_ln_s='ln -s'
  51086. # ... but there are two gotchas:
  51087. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  51088. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  51089. # In both cases, we have to default to `cp -p'.
  51090. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  51091. as_ln_s='cp -p'
  51092. elif ln conf$$.file conf$$ 2>/dev/null; then
  51093. as_ln_s=ln
  51094. else
  51095. as_ln_s='cp -p'
  51096. fi
  51097. else
  51098. as_ln_s='cp -p'
  51099. fi
  51100. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  51101. rmdir conf$$.dir 2>/dev/null
  51102. if mkdir -p . 2>/dev/null; then
  51103. as_mkdir_p=:
  51104. else
  51105. test -d ./-p && rmdir ./-p
  51106. as_mkdir_p=false
  51107. fi
  51108. if test -x / >/dev/null 2>&1; then
  51109. as_test_x='test -x'
  51110. else
  51111. if ls -dL / >/dev/null 2>&1; then
  51112. as_ls_L_option=L
  51113. else
  51114. as_ls_L_option=
  51115. fi
  51116. as_test_x='
  51117. eval sh -c '\''
  51118. if test -d "$1"; then
  51119. test -d "$1/.";
  51120. else
  51121. case $1 in
  51122. -*)set "./$1";;
  51123. esac;
  51124. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  51125. ???[sx]*):;;*)false;;esac;fi
  51126. '\'' sh
  51127. '
  51128. fi
  51129. as_executable_p=$as_test_x
  51130. # Sed expression to map a string onto a valid CPP name.
  51131. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  51132. # Sed expression to map a string onto a valid variable name.
  51133. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  51134. exec 6>&1
  51135. # Save the log message, to keep $[0] and so on meaningful, and to
  51136. # report actual input values of CONFIG_FILES etc. instead of their
  51137. # values after options handling.
  51138. ac_log="
  51139. This file was extended by asterisk $as_me trunk, which was
  51140. generated by GNU Autoconf 2.63. Invocation command line was
  51141. CONFIG_FILES = $CONFIG_FILES
  51142. CONFIG_HEADERS = $CONFIG_HEADERS
  51143. CONFIG_LINKS = $CONFIG_LINKS
  51144. CONFIG_COMMANDS = $CONFIG_COMMANDS
  51145. $ $0 $@
  51146. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  51147. "
  51148. _ACEOF
  51149. case $ac_config_files in *"
  51150. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  51151. esac
  51152. case $ac_config_headers in *"
  51153. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  51154. esac
  51155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51156. # Files that config.status was made for.
  51157. config_files="$ac_config_files"
  51158. config_headers="$ac_config_headers"
  51159. _ACEOF
  51160. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51161. ac_cs_usage="\
  51162. \`$as_me' instantiates files from templates according to the
  51163. current configuration.
  51164. Usage: $0 [OPTION]... [FILE]...
  51165. -h, --help print this help, then exit
  51166. -V, --version print version number and configuration settings, then exit
  51167. -q, --quiet, --silent
  51168. do not print progress messages
  51169. -d, --debug don't remove temporary files
  51170. --recheck update $as_me by reconfiguring in the same conditions
  51171. --file=FILE[:TEMPLATE]
  51172. instantiate the configuration file FILE
  51173. --header=FILE[:TEMPLATE]
  51174. instantiate the configuration header FILE
  51175. Configuration files:
  51176. $config_files
  51177. Configuration headers:
  51178. $config_headers
  51179. Report bugs to <bug-autoconf@gnu.org>."
  51180. _ACEOF
  51181. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51182. ac_cs_version="\\
  51183. asterisk config.status trunk
  51184. configured by $0, generated by GNU Autoconf 2.63,
  51185. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  51186. Copyright (C) 2008 Free Software Foundation, Inc.
  51187. This config.status script is free software; the Free Software Foundation
  51188. gives unlimited permission to copy, distribute and modify it."
  51189. ac_pwd='$ac_pwd'
  51190. srcdir='$srcdir'
  51191. INSTALL='$INSTALL'
  51192. AWK='$AWK'
  51193. test -n "\$AWK" || AWK=awk
  51194. _ACEOF
  51195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51196. # The default lists apply if the user does not specify any file.
  51197. ac_need_defaults=:
  51198. while test $# != 0
  51199. do
  51200. case $1 in
  51201. --*=*)
  51202. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  51203. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  51204. ac_shift=:
  51205. ;;
  51206. *)
  51207. ac_option=$1
  51208. ac_optarg=$2
  51209. ac_shift=shift
  51210. ;;
  51211. esac
  51212. case $ac_option in
  51213. # Handling of the options.
  51214. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  51215. ac_cs_recheck=: ;;
  51216. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  51217. $as_echo "$ac_cs_version"; exit ;;
  51218. --debug | --debu | --deb | --de | --d | -d )
  51219. debug=: ;;
  51220. --file | --fil | --fi | --f )
  51221. $ac_shift
  51222. case $ac_optarg in
  51223. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  51224. esac
  51225. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  51226. ac_need_defaults=false;;
  51227. --header | --heade | --head | --hea )
  51228. $ac_shift
  51229. case $ac_optarg in
  51230. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  51231. esac
  51232. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  51233. ac_need_defaults=false;;
  51234. --he | --h)
  51235. # Conflict between --help and --header
  51236. { $as_echo "$as_me: error: ambiguous option: $1
  51237. Try \`$0 --help' for more information." >&2
  51238. { (exit 1); exit 1; }; };;
  51239. --help | --hel | -h )
  51240. $as_echo "$ac_cs_usage"; exit ;;
  51241. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  51242. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  51243. ac_cs_silent=: ;;
  51244. # This is an error.
  51245. -*) { $as_echo "$as_me: error: unrecognized option: $1
  51246. Try \`$0 --help' for more information." >&2
  51247. { (exit 1); exit 1; }; } ;;
  51248. *) ac_config_targets="$ac_config_targets $1"
  51249. ac_need_defaults=false ;;
  51250. esac
  51251. shift
  51252. done
  51253. ac_configure_extra_args=
  51254. if $ac_cs_silent; then
  51255. exec 6>/dev/null
  51256. ac_configure_extra_args="$ac_configure_extra_args --silent"
  51257. fi
  51258. _ACEOF
  51259. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51260. if \$ac_cs_recheck; then
  51261. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  51262. shift
  51263. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  51264. CONFIG_SHELL='$SHELL'
  51265. export CONFIG_SHELL
  51266. exec "\$@"
  51267. fi
  51268. _ACEOF
  51269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51270. exec 5>>config.log
  51271. {
  51272. echo
  51273. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  51274. ## Running $as_me. ##
  51275. _ASBOX
  51276. $as_echo "$ac_log"
  51277. } >&5
  51278. _ACEOF
  51279. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51280. _ACEOF
  51281. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51282. # Handling of arguments.
  51283. for ac_config_target in $ac_config_targets
  51284. do
  51285. case $ac_config_target in
  51286. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  51287. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  51288. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  51289. "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
  51290. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  51291. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  51292. { (exit 1); exit 1; }; };;
  51293. esac
  51294. done
  51295. # If the user did not use the arguments to specify the items to instantiate,
  51296. # then the envvar interface is used. Set only those that are not.
  51297. # We use the long form for the default assignment because of an extremely
  51298. # bizarre bug on SunOS 4.1.3.
  51299. if $ac_need_defaults; then
  51300. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  51301. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  51302. fi
  51303. # Have a temporary directory for convenience. Make it in the build tree
  51304. # simply because there is no reason against having it here, and in addition,
  51305. # creating and moving files from /tmp can sometimes cause problems.
  51306. # Hook for its removal unless debugging.
  51307. # Note that there is a small window in which the directory will not be cleaned:
  51308. # after its creation but before its name has been assigned to `$tmp'.
  51309. $debug ||
  51310. {
  51311. tmp=
  51312. trap 'exit_status=$?
  51313. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  51314. ' 0
  51315. trap '{ (exit 1); exit 1; }' 1 2 13 15
  51316. }
  51317. # Create a (secure) tmp directory for tmp files.
  51318. {
  51319. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  51320. test -n "$tmp" && test -d "$tmp"
  51321. } ||
  51322. {
  51323. tmp=./conf$$-$RANDOM
  51324. (umask 077 && mkdir "$tmp")
  51325. } ||
  51326. {
  51327. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  51328. { (exit 1); exit 1; }
  51329. }
  51330. # Set up the scripts for CONFIG_FILES section.
  51331. # No need to generate them if there are no CONFIG_FILES.
  51332. # This happens for instance with `./config.status config.h'.
  51333. if test -n "$CONFIG_FILES"; then
  51334. ac_cr=' '
  51335. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  51336. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  51337. ac_cs_awk_cr='\\r'
  51338. else
  51339. ac_cs_awk_cr=$ac_cr
  51340. fi
  51341. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  51342. _ACEOF
  51343. {
  51344. echo "cat >conf$$subs.awk <<_ACEOF" &&
  51345. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  51346. echo "_ACEOF"
  51347. } >conf$$subs.sh ||
  51348. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  51349. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  51350. { (exit 1); exit 1; }; }
  51351. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  51352. ac_delim='%!_!# '
  51353. for ac_last_try in false false false false false :; do
  51354. . ./conf$$subs.sh ||
  51355. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  51356. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  51357. { (exit 1); exit 1; }; }
  51358. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  51359. if test $ac_delim_n = $ac_delim_num; then
  51360. break
  51361. elif $ac_last_try; then
  51362. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  51363. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  51364. { (exit 1); exit 1; }; }
  51365. else
  51366. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  51367. fi
  51368. done
  51369. rm -f conf$$subs.sh
  51370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51371. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  51372. _ACEOF
  51373. sed -n '
  51374. h
  51375. s/^/S["/; s/!.*/"]=/
  51376. p
  51377. g
  51378. s/^[^!]*!//
  51379. :repl
  51380. t repl
  51381. s/'"$ac_delim"'$//
  51382. t delim
  51383. :nl
  51384. h
  51385. s/\(.\{148\}\).*/\1/
  51386. t more1
  51387. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  51388. p
  51389. n
  51390. b repl
  51391. :more1
  51392. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  51393. p
  51394. g
  51395. s/.\{148\}//
  51396. t nl
  51397. :delim
  51398. h
  51399. s/\(.\{148\}\).*/\1/
  51400. t more2
  51401. s/["\\]/\\&/g; s/^/"/; s/$/"/
  51402. p
  51403. b
  51404. :more2
  51405. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  51406. p
  51407. g
  51408. s/.\{148\}//
  51409. t delim
  51410. ' <conf$$subs.awk | sed '
  51411. /^[^""]/{
  51412. N
  51413. s/\n//
  51414. }
  51415. ' >>$CONFIG_STATUS || ac_write_fail=1
  51416. rm -f conf$$subs.awk
  51417. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51418. _ACAWK
  51419. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  51420. for (key in S) S_is_set[key] = 1
  51421. FS = ""
  51422. }
  51423. {
  51424. line = $ 0
  51425. nfields = split(line, field, "@")
  51426. substed = 0
  51427. len = length(field[1])
  51428. for (i = 2; i < nfields; i++) {
  51429. key = field[i]
  51430. keylen = length(key)
  51431. if (S_is_set[key]) {
  51432. value = S[key]
  51433. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  51434. len += length(value) + length(field[++i])
  51435. substed = 1
  51436. } else
  51437. len += 1 + keylen
  51438. }
  51439. print line
  51440. }
  51441. _ACAWK
  51442. _ACEOF
  51443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51444. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  51445. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  51446. else
  51447. cat
  51448. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  51449. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  51450. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  51451. { (exit 1); exit 1; }; }
  51452. _ACEOF
  51453. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  51454. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  51455. # trailing colons and then remove the whole line if VPATH becomes empty
  51456. # (actually we leave an empty line to preserve line numbers).
  51457. if test "x$srcdir" = x.; then
  51458. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  51459. s/:*\$(srcdir):*/:/
  51460. s/:*\${srcdir}:*/:/
  51461. s/:*@srcdir@:*/:/
  51462. s/^\([^=]*=[ ]*\):*/\1/
  51463. s/:*$//
  51464. s/^[^=]*=[ ]*$//
  51465. }'
  51466. fi
  51467. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51468. fi # test -n "$CONFIG_FILES"
  51469. # Set up the scripts for CONFIG_HEADERS section.
  51470. # No need to generate them if there are no CONFIG_HEADERS.
  51471. # This happens for instance with `./config.status Makefile'.
  51472. if test -n "$CONFIG_HEADERS"; then
  51473. cat >"$tmp/defines.awk" <<\_ACAWK ||
  51474. BEGIN {
  51475. _ACEOF
  51476. # Transform confdefs.h into an awk script `defines.awk', embedded as
  51477. # here-document in config.status, that substitutes the proper values into
  51478. # config.h.in to produce config.h.
  51479. # Create a delimiter string that does not exist in confdefs.h, to ease
  51480. # handling of long lines.
  51481. ac_delim='%!_!# '
  51482. for ac_last_try in false false :; do
  51483. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  51484. if test -z "$ac_t"; then
  51485. break
  51486. elif $ac_last_try; then
  51487. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  51488. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  51489. { (exit 1); exit 1; }; }
  51490. else
  51491. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  51492. fi
  51493. done
  51494. # For the awk script, D is an array of macro values keyed by name,
  51495. # likewise P contains macro parameters if any. Preserve backslash
  51496. # newline sequences.
  51497. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  51498. sed -n '
  51499. s/.\{148\}/&'"$ac_delim"'/g
  51500. t rset
  51501. :rset
  51502. s/^[ ]*#[ ]*define[ ][ ]*/ /
  51503. t def
  51504. d
  51505. :def
  51506. s/\\$//
  51507. t bsnl
  51508. s/["\\]/\\&/g
  51509. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  51510. D["\1"]=" \3"/p
  51511. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  51512. d
  51513. :bsnl
  51514. s/["\\]/\\&/g
  51515. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  51516. D["\1"]=" \3\\\\\\n"\\/p
  51517. t cont
  51518. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  51519. t cont
  51520. d
  51521. :cont
  51522. n
  51523. s/.\{148\}/&'"$ac_delim"'/g
  51524. t clear
  51525. :clear
  51526. s/\\$//
  51527. t bsnlc
  51528. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  51529. d
  51530. :bsnlc
  51531. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  51532. b cont
  51533. ' <confdefs.h | sed '
  51534. s/'"$ac_delim"'/"\\\
  51535. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  51536. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51537. for (key in D) D_is_set[key] = 1
  51538. FS = ""
  51539. }
  51540. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  51541. line = \$ 0
  51542. split(line, arg, " ")
  51543. if (arg[1] == "#") {
  51544. defundef = arg[2]
  51545. mac1 = arg[3]
  51546. } else {
  51547. defundef = substr(arg[1], 2)
  51548. mac1 = arg[2]
  51549. }
  51550. split(mac1, mac2, "(") #)
  51551. macro = mac2[1]
  51552. prefix = substr(line, 1, index(line, defundef) - 1)
  51553. if (D_is_set[macro]) {
  51554. # Preserve the white space surrounding the "#".
  51555. print prefix "define", macro P[macro] D[macro]
  51556. next
  51557. } else {
  51558. # Replace #undef with comments. This is necessary, for example,
  51559. # in the case of _POSIX_SOURCE, which is predefined and required
  51560. # on some systems where configure will not decide to define it.
  51561. if (defundef == "undef") {
  51562. print "/*", prefix defundef, macro, "*/"
  51563. next
  51564. }
  51565. }
  51566. }
  51567. { print }
  51568. _ACAWK
  51569. _ACEOF
  51570. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51571. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  51572. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  51573. { (exit 1); exit 1; }; }
  51574. fi # test -n "$CONFIG_HEADERS"
  51575. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  51576. shift
  51577. for ac_tag
  51578. do
  51579. case $ac_tag in
  51580. :[FHLC]) ac_mode=$ac_tag; continue;;
  51581. esac
  51582. case $ac_mode$ac_tag in
  51583. :[FHL]*:*);;
  51584. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  51585. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  51586. { (exit 1); exit 1; }; };;
  51587. :[FH]-) ac_tag=-:-;;
  51588. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  51589. esac
  51590. ac_save_IFS=$IFS
  51591. IFS=:
  51592. set x $ac_tag
  51593. IFS=$ac_save_IFS
  51594. shift
  51595. ac_file=$1
  51596. shift
  51597. case $ac_mode in
  51598. :L) ac_source=$1;;
  51599. :[FH])
  51600. ac_file_inputs=
  51601. for ac_f
  51602. do
  51603. case $ac_f in
  51604. -) ac_f="$tmp/stdin";;
  51605. *) # Look for the file first in the build tree, then in the source tree
  51606. # (if the path is not absolute). The absolute path cannot be DOS-style,
  51607. # because $ac_f cannot contain `:'.
  51608. test -f "$ac_f" ||
  51609. case $ac_f in
  51610. [\\/$]*) false;;
  51611. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  51612. esac ||
  51613. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  51614. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  51615. { (exit 1); exit 1; }; };;
  51616. esac
  51617. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  51618. ac_file_inputs="$ac_file_inputs '$ac_f'"
  51619. done
  51620. # Let's still pretend it is `configure' which instantiates (i.e., don't
  51621. # use $as_me), people would be surprised to read:
  51622. # /* config.h. Generated by config.status. */
  51623. configure_input='Generated from '`
  51624. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  51625. `' by configure.'
  51626. if test x"$ac_file" != x-; then
  51627. configure_input="$ac_file. $configure_input"
  51628. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  51629. $as_echo "$as_me: creating $ac_file" >&6;}
  51630. fi
  51631. # Neutralize special characters interpreted by sed in replacement strings.
  51632. case $configure_input in #(
  51633. *\&* | *\|* | *\\* )
  51634. ac_sed_conf_input=`$as_echo "$configure_input" |
  51635. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  51636. *) ac_sed_conf_input=$configure_input;;
  51637. esac
  51638. case $ac_tag in
  51639. *:-:* | *:-) cat >"$tmp/stdin" \
  51640. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51641. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51642. { (exit 1); exit 1; }; } ;;
  51643. esac
  51644. ;;
  51645. esac
  51646. ac_dir=`$as_dirname -- "$ac_file" ||
  51647. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51648. X"$ac_file" : 'X\(//\)[^/]' \| \
  51649. X"$ac_file" : 'X\(//\)$' \| \
  51650. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  51651. $as_echo X"$ac_file" |
  51652. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51653. s//\1/
  51654. q
  51655. }
  51656. /^X\(\/\/\)[^/].*/{
  51657. s//\1/
  51658. q
  51659. }
  51660. /^X\(\/\/\)$/{
  51661. s//\1/
  51662. q
  51663. }
  51664. /^X\(\/\).*/{
  51665. s//\1/
  51666. q
  51667. }
  51668. s/.*/./; q'`
  51669. { as_dir="$ac_dir"
  51670. case $as_dir in #(
  51671. -*) as_dir=./$as_dir;;
  51672. esac
  51673. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  51674. as_dirs=
  51675. while :; do
  51676. case $as_dir in #(
  51677. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  51678. *) as_qdir=$as_dir;;
  51679. esac
  51680. as_dirs="'$as_qdir' $as_dirs"
  51681. as_dir=`$as_dirname -- "$as_dir" ||
  51682. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  51683. X"$as_dir" : 'X\(//\)[^/]' \| \
  51684. X"$as_dir" : 'X\(//\)$' \| \
  51685. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  51686. $as_echo X"$as_dir" |
  51687. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  51688. s//\1/
  51689. q
  51690. }
  51691. /^X\(\/\/\)[^/].*/{
  51692. s//\1/
  51693. q
  51694. }
  51695. /^X\(\/\/\)$/{
  51696. s//\1/
  51697. q
  51698. }
  51699. /^X\(\/\).*/{
  51700. s//\1/
  51701. q
  51702. }
  51703. s/.*/./; q'`
  51704. test -d "$as_dir" && break
  51705. done
  51706. test -z "$as_dirs" || eval "mkdir $as_dirs"
  51707. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  51708. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  51709. { (exit 1); exit 1; }; }; }
  51710. ac_builddir=.
  51711. case "$ac_dir" in
  51712. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  51713. *)
  51714. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  51715. # A ".." for each directory in $ac_dir_suffix.
  51716. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  51717. case $ac_top_builddir_sub in
  51718. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  51719. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  51720. esac ;;
  51721. esac
  51722. ac_abs_top_builddir=$ac_pwd
  51723. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  51724. # for backward compatibility:
  51725. ac_top_builddir=$ac_top_build_prefix
  51726. case $srcdir in
  51727. .) # We are building in place.
  51728. ac_srcdir=.
  51729. ac_top_srcdir=$ac_top_builddir_sub
  51730. ac_abs_top_srcdir=$ac_pwd ;;
  51731. [\\/]* | ?:[\\/]* ) # Absolute name.
  51732. ac_srcdir=$srcdir$ac_dir_suffix;
  51733. ac_top_srcdir=$srcdir
  51734. ac_abs_top_srcdir=$srcdir ;;
  51735. *) # Relative name.
  51736. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  51737. ac_top_srcdir=$ac_top_build_prefix$srcdir
  51738. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  51739. esac
  51740. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  51741. case $ac_mode in
  51742. :F)
  51743. #
  51744. # CONFIG_FILE
  51745. #
  51746. case $INSTALL in
  51747. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  51748. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  51749. esac
  51750. _ACEOF
  51751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51752. # If the template does not know about datarootdir, expand it.
  51753. # FIXME: This hack should be removed a few years after 2.60.
  51754. ac_datarootdir_hack=; ac_datarootdir_seen=
  51755. ac_sed_dataroot='
  51756. /datarootdir/ {
  51757. p
  51758. q
  51759. }
  51760. /@datadir@/p
  51761. /@docdir@/p
  51762. /@infodir@/p
  51763. /@localedir@/p
  51764. /@mandir@/p
  51765. '
  51766. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  51767. *datarootdir*) ac_datarootdir_seen=yes;;
  51768. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  51769. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  51770. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  51771. _ACEOF
  51772. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51773. ac_datarootdir_hack='
  51774. s&@datadir@&$datadir&g
  51775. s&@docdir@&$docdir&g
  51776. s&@infodir@&$infodir&g
  51777. s&@localedir@&$localedir&g
  51778. s&@mandir@&$mandir&g
  51779. s&\\\${datarootdir}&$datarootdir&g' ;;
  51780. esac
  51781. _ACEOF
  51782. # Neutralize VPATH when `$srcdir' = `.'.
  51783. # Shell code in configure.ac might set extrasub.
  51784. # FIXME: do we really want to maintain this feature?
  51785. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  51786. ac_sed_extra="$ac_vpsub
  51787. $extrasub
  51788. _ACEOF
  51789. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  51790. :t
  51791. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  51792. s|@configure_input@|$ac_sed_conf_input|;t t
  51793. s&@top_builddir@&$ac_top_builddir_sub&;t t
  51794. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  51795. s&@srcdir@&$ac_srcdir&;t t
  51796. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  51797. s&@top_srcdir@&$ac_top_srcdir&;t t
  51798. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  51799. s&@builddir@&$ac_builddir&;t t
  51800. s&@abs_builddir@&$ac_abs_builddir&;t t
  51801. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  51802. s&@INSTALL@&$ac_INSTALL&;t t
  51803. $ac_datarootdir_hack
  51804. "
  51805. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  51806. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51807. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51808. { (exit 1); exit 1; }; }
  51809. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  51810. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  51811. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  51812. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  51813. which seems to be undefined. Please make sure it is defined." >&5
  51814. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  51815. which seems to be undefined. Please make sure it is defined." >&2;}
  51816. rm -f "$tmp/stdin"
  51817. case $ac_file in
  51818. -) cat "$tmp/out" && rm -f "$tmp/out";;
  51819. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  51820. esac \
  51821. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51822. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51823. { (exit 1); exit 1; }; }
  51824. ;;
  51825. :H)
  51826. #
  51827. # CONFIG_HEADER
  51828. #
  51829. if test x"$ac_file" != x-; then
  51830. {
  51831. $as_echo "/* $configure_input */" \
  51832. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  51833. } >"$tmp/config.h" \
  51834. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51835. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51836. { (exit 1); exit 1; }; }
  51837. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  51838. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  51839. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  51840. else
  51841. rm -f "$ac_file"
  51842. mv "$tmp/config.h" "$ac_file" \
  51843. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  51844. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  51845. { (exit 1); exit 1; }; }
  51846. fi
  51847. else
  51848. $as_echo "/* $configure_input */" \
  51849. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  51850. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  51851. $as_echo "$as_me: error: could not create -" >&2;}
  51852. { (exit 1); exit 1; }; }
  51853. fi
  51854. ;;
  51855. esac
  51856. done # for ac_tag
  51857. { (exit 0); exit 0; }
  51858. _ACEOF
  51859. chmod +x $CONFIG_STATUS
  51860. ac_clean_files=$ac_clean_files_save
  51861. test $ac_write_fail = 0 ||
  51862. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  51863. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  51864. { (exit 1); exit 1; }; }
  51865. # configure is writing to config.log, and then calls config.status.
  51866. # config.status does its own redirection, appending to config.log.
  51867. # Unfortunately, on DOS this fails, as config.log is still kept open
  51868. # by configure, so config.status won't be able to write to it; its
  51869. # output is simply discarded. So we exec the FD to /dev/null,
  51870. # effectively closing config.log, so it can be properly (re)opened and
  51871. # appended to by config.status. When coming back to configure, we
  51872. # need to make the FD available again.
  51873. if test "$no_create" != yes; then
  51874. ac_cs_success=:
  51875. ac_config_status_args=
  51876. test "$silent" = yes &&
  51877. ac_config_status_args="$ac_config_status_args --quiet"
  51878. exec 5>/dev/null
  51879. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  51880. exec 5>>config.log
  51881. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  51882. # would make configure fail if this is the last instruction.
  51883. $ac_cs_success || { (exit 1); exit 1; }
  51884. fi
  51885. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  51886. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  51887. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  51888. fi
  51889. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  51890. if test "x${ac_cv_path_CMP}" = "x:"; then
  51891. ( cd `pwd`/menuselect && ./configure )
  51892. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  51893. ( cd `pwd`/menuselect && ./configure )
  51894. fi ; fi
  51895. rm makeopts.acbak makeopts.acbak2
  51896. if test "x${silent}" != "xyes" ; then
  51897. echo
  51898. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  51899. echo " .\$7\$7.. .7\$\$7:. "
  51900. echo " .\$\$:. ,\$7.7 "
  51901. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  51902. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  51903. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  51904. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  51905. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  51906. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  51907. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  51908. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  51909. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  51910. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  51911. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  51912. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  51913. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  51914. echo " \$\$\$\$\$ \$\$\$ "
  51915. echo " \$\$\$\$7. \$\$ (TM) "
  51916. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  51917. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  51918. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  51919. echo
  51920. fi
  51921. { $as_echo "$as_me:$LINENO: Package configured for: " >&5
  51922. $as_echo "$as_me: Package configured for: " >&6;}
  51923. { $as_echo "$as_me:$LINENO: OS type : $host_os" >&5
  51924. $as_echo "$as_me: OS type : $host_os" >&6;}
  51925. { $as_echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
  51926. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  51927. { $as_echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  51928. $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  51929. { $as_echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  51930. $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  51931. if test "${cross_compiling}" = "yes"; then
  51932. { $as_echo "$as_me:$LINENO: Cross Compilation = YES" >&5
  51933. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  51934. fi