configure 620 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986
  1. #! /bin/sh
  2. # From configure.ac Revision: 316006 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.65 for asterisk 1.4.
  5. #
  6. # Report bugs to <https://issues.asterisk.org>.
  7. #
  8. #
  9. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  10. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  11. # Inc.
  12. #
  13. #
  14. # This configure script is free software; the Free Software Foundation
  15. # gives unlimited permission to copy, distribute and modify it.
  16. #
  17. # "Asterisk"
  18. ## -------------------- ##
  19. ## M4sh Initialization. ##
  20. ## -------------------- ##
  21. # Be more Bourne compatible
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  24. emulate sh
  25. NULLCMD=:
  26. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  27. # is contrary to our usage. Disable this feature.
  28. alias -g '${1+"$@"}'='"$@"'
  29. setopt NO_GLOB_SUBST
  30. else
  31. case `(set -o) 2>/dev/null` in #(
  32. *posix*) :
  33. set -o posix ;; #(
  34. *) :
  35. ;;
  36. esac
  37. fi
  38. as_nl='
  39. '
  40. export as_nl
  41. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  42. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  43. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  44. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  45. # Prefer a ksh shell builtin over an external printf program on Solaris,
  46. # but without wasting forks for bash or zsh.
  47. if test -z "$BASH_VERSION$ZSH_VERSION" \
  48. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='print -r --'
  50. as_echo_n='print -rn --'
  51. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  52. as_echo='printf %s\n'
  53. as_echo_n='printf %s'
  54. else
  55. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  56. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  57. as_echo_n='/usr/ucb/echo -n'
  58. else
  59. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  60. as_echo_n_body='eval
  61. arg=$1;
  62. case $arg in #(
  63. *"$as_nl"*)
  64. expr "X$arg" : "X\\(.*\\)$as_nl";
  65. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  66. esac;
  67. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  68. '
  69. export as_echo_n_body
  70. as_echo_n='sh -c $as_echo_n_body as_echo'
  71. fi
  72. export as_echo_body
  73. as_echo='sh -c $as_echo_body as_echo'
  74. fi
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. PATH_SEPARATOR=:
  78. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  79. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  80. PATH_SEPARATOR=';'
  81. }
  82. fi
  83. # IFS
  84. # We need space, tab and new line, in precisely that order. Quoting is
  85. # there to prevent editors from complaining about space-tab.
  86. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  87. # splitting by setting IFS to empty value.)
  88. IFS=" "" $as_nl"
  89. # Find who we are. Look in the path if we contain no directory separator.
  90. case $0 in #((
  91. *[\\/]* ) as_myself=$0 ;;
  92. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  93. for as_dir in $PATH
  94. do
  95. IFS=$as_save_IFS
  96. test -z "$as_dir" && as_dir=.
  97. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  98. done
  99. IFS=$as_save_IFS
  100. ;;
  101. esac
  102. # We did not find ourselves, most probably we were run as `sh COMMAND'
  103. # in which case we are not to be found in the path.
  104. if test "x$as_myself" = x; then
  105. as_myself=$0
  106. fi
  107. if test ! -f "$as_myself"; then
  108. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  109. exit 1
  110. fi
  111. # Unset variables that we do not need and which cause bugs (e.g. in
  112. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  113. # suppresses any "Segmentation fault" message there. '((' could
  114. # trigger a bug in pdksh 5.2.14.
  115. for as_var in BASH_ENV ENV MAIL MAILPATH
  116. do eval test x\${$as_var+set} = xset \
  117. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  118. done
  119. PS1='$ '
  120. PS2='> '
  121. PS4='+ '
  122. # NLS nuisances.
  123. LC_ALL=C
  124. export LC_ALL
  125. LANGUAGE=C
  126. export LANGUAGE
  127. # CDPATH.
  128. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  129. if test "x$CONFIG_SHELL" = x; then
  130. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  157. else
  158. exitcode=1; echo positional parameters were not saved.
  159. fi
  160. test x\$exitcode = x0 || exit 1"
  161. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  162. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  163. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  164. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  219. $0: https://issues.asterisk.org about your system,
  220. $0: including any error possibly output before this
  221. $0: message. Then install a modern shell, or manually run
  222. $0: the script under such a shell if you do have one."
  223. fi
  224. exit 1
  225. fi
  226. fi
  227. fi
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. export SHELL
  230. # Unset more variables known to interfere with behavior of common tools.
  231. CLICOLOR_FORCE= GREP_OPTIONS=
  232. unset CLICOLOR_FORCE GREP_OPTIONS
  233. ## --------------------- ##
  234. ## M4sh Shell Functions. ##
  235. ## --------------------- ##
  236. # as_fn_unset VAR
  237. # ---------------
  238. # Portably unset VAR.
  239. as_fn_unset ()
  240. {
  241. { eval $1=; unset $1;}
  242. }
  243. as_unset=as_fn_unset
  244. # as_fn_set_status STATUS
  245. # -----------------------
  246. # Set $? to STATUS, without forking.
  247. as_fn_set_status ()
  248. {
  249. return $1
  250. } # as_fn_set_status
  251. # as_fn_exit STATUS
  252. # -----------------
  253. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  254. as_fn_exit ()
  255. {
  256. set +e
  257. as_fn_set_status $1
  258. exit $1
  259. } # as_fn_exit
  260. # as_fn_mkdir_p
  261. # -------------
  262. # Create "$as_dir" as a directory, including parents if necessary.
  263. as_fn_mkdir_p ()
  264. {
  265. case $as_dir in #(
  266. -*) as_dir=./$as_dir;;
  267. esac
  268. test -d "$as_dir" || eval $as_mkdir_p || {
  269. as_dirs=
  270. while :; do
  271. case $as_dir in #(
  272. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  273. *) as_qdir=$as_dir;;
  274. esac
  275. as_dirs="'$as_qdir' $as_dirs"
  276. as_dir=`$as_dirname -- "$as_dir" ||
  277. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  278. X"$as_dir" : 'X\(//\)[^/]' \| \
  279. X"$as_dir" : 'X\(//\)$' \| \
  280. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  281. $as_echo X"$as_dir" |
  282. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\/\)[^/].*/{
  287. s//\1/
  288. q
  289. }
  290. /^X\(\/\/\)$/{
  291. s//\1/
  292. q
  293. }
  294. /^X\(\/\).*/{
  295. s//\1/
  296. q
  297. }
  298. s/.*/./; q'`
  299. test -d "$as_dir" && break
  300. done
  301. test -z "$as_dirs" || eval "mkdir $as_dirs"
  302. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  303. } # as_fn_mkdir_p
  304. # as_fn_append VAR VALUE
  305. # ----------------------
  306. # Append the text in VALUE to the end of the definition contained in VAR. Take
  307. # advantage of any shell optimizations that allow amortized linear growth over
  308. # repeated appends, instead of the typical quadratic growth present in naive
  309. # implementations.
  310. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  311. eval 'as_fn_append ()
  312. {
  313. eval $1+=\$2
  314. }'
  315. else
  316. as_fn_append ()
  317. {
  318. eval $1=\$$1\$2
  319. }
  320. fi # as_fn_append
  321. # as_fn_arith ARG...
  322. # ------------------
  323. # Perform arithmetic evaluation on the ARGs, and store the result in the
  324. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  325. # must be portable across $(()) and expr.
  326. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  327. eval 'as_fn_arith ()
  328. {
  329. as_val=$(( $* ))
  330. }'
  331. else
  332. as_fn_arith ()
  333. {
  334. as_val=`expr "$@" || test $? -eq 1`
  335. }
  336. fi # as_fn_arith
  337. # as_fn_error ERROR [LINENO LOG_FD]
  338. # ---------------------------------
  339. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  340. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  341. # script with status $?, using 1 if that was 0.
  342. as_fn_error ()
  343. {
  344. as_status=$?; test $as_status -eq 0 && as_status=1
  345. if test "$3"; then
  346. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  347. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  348. fi
  349. $as_echo "$as_me: error: $1" >&2
  350. as_fn_exit $as_status
  351. } # as_fn_error
  352. if expr a : '\(a\)' >/dev/null 2>&1 &&
  353. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  354. as_expr=expr
  355. else
  356. as_expr=false
  357. fi
  358. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  359. as_basename=basename
  360. else
  361. as_basename=false
  362. fi
  363. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  364. as_dirname=dirname
  365. else
  366. as_dirname=false
  367. fi
  368. as_me=`$as_basename -- "$0" ||
  369. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  370. X"$0" : 'X\(//\)$' \| \
  371. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  372. $as_echo X/"$0" |
  373. sed '/^.*\/\([^/][^/]*\)\/*$/{
  374. s//\1/
  375. q
  376. }
  377. /^X\/\(\/\/\)$/{
  378. s//\1/
  379. q
  380. }
  381. /^X\/\(\/\).*/{
  382. s//\1/
  383. q
  384. }
  385. s/.*/./; q'`
  386. # Avoid depending upon Character Ranges.
  387. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  388. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  389. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  390. as_cr_digits='0123456789'
  391. as_cr_alnum=$as_cr_Letters$as_cr_digits
  392. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  393. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  394. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  395. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  396. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  397. sed -n '
  398. p
  399. /[$]LINENO/=
  400. ' <$as_myself |
  401. sed '
  402. s/[$]LINENO.*/&-/
  403. t lineno
  404. b
  405. :lineno
  406. N
  407. :loop
  408. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  409. t loop
  410. s/-\n.*//
  411. ' >$as_me.lineno &&
  412. chmod +x "$as_me.lineno" ||
  413. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  414. # Don't try to exec as it changes $[0], causing all sort of problems
  415. # (the dirname of $[0] is not the place where we might find the
  416. # original and so on. Autoconf is especially sensitive to this).
  417. . "./$as_me.lineno"
  418. # Exit status is that of the last command.
  419. exit
  420. }
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in #(((((
  423. -n*)
  424. case `echo 'xy\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. xy) ECHO_C='\c';;
  427. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  428. ECHO_T=' ';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. rm -f conf$$ conf$$.exe conf$$.file
  434. if test -d conf$$.dir; then
  435. rm -f conf$$.dir/conf$$.file
  436. else
  437. rm -f conf$$.dir
  438. mkdir conf$$.dir 2>/dev/null
  439. fi
  440. if (echo >conf$$.file) 2>/dev/null; then
  441. if ln -s conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s='ln -s'
  443. # ... but there are two gotchas:
  444. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  445. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  446. # In both cases, we have to default to `cp -p'.
  447. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  448. as_ln_s='cp -p'
  449. elif ln conf$$.file conf$$ 2>/dev/null; then
  450. as_ln_s=ln
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. else
  455. as_ln_s='cp -p'
  456. fi
  457. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  458. rmdir conf$$.dir 2>/dev/null
  459. if mkdir -p . 2>/dev/null; then
  460. as_mkdir_p='mkdir -p "$as_dir"'
  461. else
  462. test -d ./-p && rmdir ./-p
  463. as_mkdir_p=false
  464. fi
  465. if test -x / >/dev/null 2>&1; then
  466. as_test_x='test -x'
  467. else
  468. if ls -dL / >/dev/null 2>&1; then
  469. as_ls_L_option=L
  470. else
  471. as_ls_L_option=
  472. fi
  473. as_test_x='
  474. eval sh -c '\''
  475. if test -d "$1"; then
  476. test -d "$1/.";
  477. else
  478. case $1 in #(
  479. -*)set "./$1";;
  480. esac;
  481. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  482. ???[sx]*):;;*)false;;esac;fi
  483. '\'' sh
  484. '
  485. fi
  486. as_executable_p=$as_test_x
  487. # Sed expression to map a string onto a valid CPP name.
  488. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  489. # Sed expression to map a string onto a valid variable name.
  490. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  491. test -n "$DJDIR" || exec 7<&0 </dev/null
  492. exec 6>&1
  493. # Name of the host.
  494. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  495. # so uname gets run too.
  496. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  497. #
  498. # Initializations.
  499. #
  500. ac_default_prefix=/usr/local
  501. ac_clean_files=
  502. ac_config_libobj_dir=.
  503. LIBOBJS=
  504. cross_compiling=no
  505. subdirs=
  506. MFLAGS=
  507. MAKEFLAGS=
  508. # Identity of this package.
  509. PACKAGE_NAME='asterisk'
  510. PACKAGE_TARNAME='asterisk'
  511. PACKAGE_VERSION='1.4'
  512. PACKAGE_STRING='asterisk 1.4'
  513. PACKAGE_BUGREPORT='https://issues.asterisk.org'
  514. PACKAGE_URL=''
  515. ac_unique_file="main/asterisk.c"
  516. # Factoring default headers for most tests.
  517. ac_includes_default="\
  518. #include <stdio.h>
  519. #ifdef HAVE_SYS_TYPES_H
  520. # include <sys/types.h>
  521. #endif
  522. #ifdef HAVE_SYS_STAT_H
  523. # include <sys/stat.h>
  524. #endif
  525. #ifdef STDC_HEADERS
  526. # include <stdlib.h>
  527. # include <stddef.h>
  528. #else
  529. # ifdef HAVE_STDLIB_H
  530. # include <stdlib.h>
  531. # endif
  532. #endif
  533. #ifdef HAVE_STRING_H
  534. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  535. # include <memory.h>
  536. # endif
  537. # include <string.h>
  538. #endif
  539. #ifdef HAVE_STRINGS_H
  540. # include <strings.h>
  541. #endif
  542. #ifdef HAVE_INTTYPES_H
  543. # include <inttypes.h>
  544. #endif
  545. #ifdef HAVE_STDINT_H
  546. # include <stdint.h>
  547. #endif
  548. #ifdef HAVE_UNISTD_H
  549. # include <unistd.h>
  550. #endif"
  551. ac_header_list=
  552. ac_subst_vars='LTLIBOBJS
  553. GTK2_LIB
  554. GTK2_INCLUDE
  555. PBX_GTK2
  556. PKGCONFIG
  557. GTK_LIB
  558. GTK_INCLUDE
  559. PBX_GTK
  560. GTKCONFIG
  561. PBX_IXJUSER
  562. PBX_H323
  563. EDITLINE_LIB
  564. PBX_ZAPTEL_VLDTMF
  565. OPENH323_BUILD
  566. OPENH323_SUFFIX
  567. OPENH323_LIBDIR
  568. OPENH323_INCDIR
  569. OPENH323DIR
  570. PWLIB_PLATFORM
  571. PWLIB_LIBDIR
  572. PWLIB_INCDIR
  573. PWLIBDIR
  574. PTLIB_CONFIG
  575. PG_CONFIG
  576. NETSNMP_CONFIG
  577. KDEDIR
  578. KDEINIT
  579. GSM_INTERNAL
  580. PBX_DAHDI_TRANSCODE
  581. PBX_DLADDR
  582. AST_NO_STRICT_OVERFLOW
  583. AST_FORTIFY_SOURCE
  584. AST_DECLARATION_AFTER_STATEMENT
  585. GC_LDFLAGS
  586. GC_CFLAGS
  587. POW_LIB
  588. PBX_WORKING_FORK
  589. LIBOBJS
  590. ALLOCA
  591. PBX_ZAPTEL
  592. ZAPTEL_DIR
  593. ZAPTEL_INCLUDE
  594. ZAPTEL_LIB
  595. PBX_ZLIB
  596. ZLIB_DIR
  597. ZLIB_INCLUDE
  598. ZLIB_LIB
  599. PBX_VPB
  600. VPB_DIR
  601. VPB_INCLUDE
  602. VPB_LIB
  603. PBX_VORBIS
  604. VORBIS_DIR
  605. VORBIS_INCLUDE
  606. VORBIS_LIB
  607. PBX_USB
  608. USB_DIR
  609. USB_INCLUDE
  610. USB_LIB
  611. PBX_TONEZONE
  612. TONEZONE_DIR
  613. TONEZONE_INCLUDE
  614. TONEZONE_LIB
  615. PBX_TINFO
  616. TINFO_DIR
  617. TINFO_INCLUDE
  618. TINFO_LIB
  619. PBX_TERMCAP
  620. TERMCAP_DIR
  621. TERMCAP_INCLUDE
  622. TERMCAP_LIB
  623. PBX_FREETDS
  624. FREETDS_DIR
  625. FREETDS_INCLUDE
  626. FREETDS_LIB
  627. PBX_SUPPSERV
  628. SUPPSERV_DIR
  629. SUPPSERV_INCLUDE
  630. SUPPSERV_LIB
  631. PBX_OPENSSL
  632. OPENSSL_DIR
  633. OPENSSL_INCLUDE
  634. OPENSSL_LIB
  635. PBX_SQLITE
  636. SQLITE_DIR
  637. SQLITE_INCLUDE
  638. SQLITE_LIB
  639. PBX_SPEEX_PREPROCESS
  640. SPEEX_PREPROCESS_DIR
  641. SPEEX_PREPROCESS_INCLUDE
  642. SPEEX_PREPROCESS_LIB
  643. PBX_SPEEXDSP
  644. SPEEXDSP_DIR
  645. SPEEXDSP_INCLUDE
  646. SPEEXDSP_LIB
  647. PBX_SPEEX
  648. SPEEX_DIR
  649. SPEEX_INCLUDE
  650. SPEEX_LIB
  651. PBX_RADIUS
  652. RADIUS_DIR
  653. RADIUS_INCLUDE
  654. RADIUS_LIB
  655. PBX_PWLIB
  656. PWLIB_DIR
  657. PWLIB_INCLUDE
  658. PWLIB_LIB
  659. PBX_PRI_INBANDDISCONNECT
  660. PRI_INBANDDISCONNECT_DIR
  661. PRI_INBANDDISCONNECT_INCLUDE
  662. PRI_INBANDDISCONNECT_LIB
  663. PBX_PRI_VERSION
  664. PRI_VERSION_DIR
  665. PRI_VERSION_INCLUDE
  666. PRI_VERSION_LIB
  667. PBX_PRI_CALL_HOLD
  668. PRI_CALL_HOLD_DIR
  669. PRI_CALL_HOLD_INCLUDE
  670. PRI_CALL_HOLD_LIB
  671. PBX_PRI
  672. PRI_DIR
  673. PRI_INCLUDE
  674. PRI_LIB
  675. PBX_PGSQL
  676. PGSQL_DIR
  677. PGSQL_INCLUDE
  678. PGSQL_LIB
  679. PBX_POPT
  680. POPT_DIR
  681. POPT_INCLUDE
  682. POPT_LIB
  683. PBX_OSS
  684. OSS_DIR
  685. OSS_INCLUDE
  686. OSS_LIB
  687. PBX_OSPTK
  688. OSPTK_DIR
  689. OSPTK_INCLUDE
  690. OSPTK_LIB
  691. PBX_OPENR2
  692. OPENR2_DIR
  693. OPENR2_INCLUDE
  694. OPENR2_LIB
  695. PBX_OPENAIS
  696. OPENAIS_DIR
  697. OPENAIS_INCLUDE
  698. OPENAIS_LIB
  699. PBX_OGG
  700. OGG_DIR
  701. OGG_INCLUDE
  702. OGG_LIB
  703. PBX_UNIXODBC
  704. UNIXODBC_DIR
  705. UNIXODBC_INCLUDE
  706. UNIXODBC_LIB
  707. PBX_NEWT
  708. NEWT_DIR
  709. NEWT_INCLUDE
  710. NEWT_LIB
  711. PBX_NETSNMP
  712. NETSNMP_DIR
  713. NETSNMP_INCLUDE
  714. NETSNMP_LIB
  715. PBX_NCURSES
  716. NCURSES_DIR
  717. NCURSES_INCLUDE
  718. NCURSES_LIB
  719. PBX_NBS
  720. NBS_DIR
  721. NBS_INCLUDE
  722. NBS_LIB
  723. PBX_MISDN
  724. MISDN_DIR
  725. MISDN_INCLUDE
  726. MISDN_LIB
  727. PBX_LTDL
  728. LTDL_DIR
  729. LTDL_INCLUDE
  730. LTDL_LIB
  731. CURL_LIB
  732. CURL_INCLUDE
  733. _libcurl_config
  734. PBX_CURL
  735. PBX_KDE
  736. KDE_DIR
  737. KDE_INCLUDE
  738. KDE_LIB
  739. PBX_ISDNNET
  740. ISDNNET_DIR
  741. ISDNNET_INCLUDE
  742. ISDNNET_LIB
  743. PBX_IMAP_TK
  744. IMAP_TK_DIR
  745. IMAP_TK_INCLUDE
  746. IMAP_TK_LIB
  747. PBX_IKSEMEL
  748. IKSEMEL_DIR
  749. IKSEMEL_INCLUDE
  750. IKSEMEL_LIB
  751. PBX_OPENH323
  752. OPENH323_DIR
  753. OPENH323_INCLUDE
  754. OPENH323_LIB
  755. PBX_GSM
  756. GSM_DIR
  757. GSM_INCLUDE
  758. GSM_LIB
  759. PBX_GNUTLS
  760. GNUTLS_DIR
  761. GNUTLS_INCLUDE
  762. GNUTLS_LIB
  763. PBX_DAHDI
  764. DAHDI_DIR
  765. DAHDI_INCLUDE
  766. DAHDI_LIB
  767. PBX_CURSES
  768. CURSES_DIR
  769. CURSES_INCLUDE
  770. CURSES_LIB
  771. PBX_CAP
  772. CAP_DIR
  773. CAP_INCLUDE
  774. CAP_LIB
  775. PBX_BFD
  776. BFD_DIR
  777. BFD_INCLUDE
  778. BFD_LIB
  779. PBX_ALSA
  780. ALSA_DIR
  781. ALSA_INCLUDE
  782. ALSA_LIB
  783. AST_DEVMODE
  784. PTHREAD_CFLAGS
  785. PTHREAD_LIBS
  786. PTHREAD_CC
  787. acx_pthread_config
  788. SOXMIX
  789. PBX_FLEX
  790. PBX_BISON
  791. DOWNLOAD
  792. FETCH
  793. CURL
  794. WGET
  795. DOT
  796. LN
  797. DIRNAME
  798. BASENAME
  799. COMPRESS
  800. FIND
  801. FLEX
  802. CMP
  803. BISON
  804. GNU_LD
  805. ac_ct_AR
  806. AR
  807. ac_ct_STRIP
  808. STRIP
  809. GNU_MAKE
  810. LN_S
  811. INSTALL_DATA
  812. INSTALL_SCRIPT
  813. INSTALL_PROGRAM
  814. AWK
  815. SED
  816. CXXCPP
  817. ac_ct_CXX
  818. CXXFLAGS
  819. RANLIB
  820. LD
  821. CXX
  822. PBX_OSREV
  823. UNAME
  824. OSARCH
  825. HOST_OS
  826. HOST_VENDOR
  827. HOST_CPU
  828. HOST_PLATFORM
  829. BUILD_OS
  830. BUILD_VENDOR
  831. BUILD_CPU
  832. BUILD_PLATFORM
  833. EGREP
  834. GREP
  835. CPP
  836. OBJEXT
  837. EXEEXT
  838. ac_ct_CC
  839. CPPFLAGS
  840. LDFLAGS
  841. CFLAGS
  842. CC
  843. host_os
  844. host_vendor
  845. host_cpu
  846. host
  847. build_os
  848. build_vendor
  849. build_cpu
  850. build
  851. target_alias
  852. host_alias
  853. build_alias
  854. LIBS
  855. ECHO_T
  856. ECHO_N
  857. ECHO_C
  858. DEFS
  859. mandir
  860. localedir
  861. libdir
  862. psdir
  863. pdfdir
  864. dvidir
  865. htmldir
  866. infodir
  867. docdir
  868. oldincludedir
  869. includedir
  870. localstatedir
  871. sharedstatedir
  872. sysconfdir
  873. datadir
  874. datarootdir
  875. libexecdir
  876. sbindir
  877. bindir
  878. program_transform_name
  879. prefix
  880. exec_prefix
  881. PACKAGE_URL
  882. PACKAGE_BUGREPORT
  883. PACKAGE_STRING
  884. PACKAGE_VERSION
  885. PACKAGE_TARNAME
  886. PACKAGE_NAME
  887. PATH_SEPARATOR
  888. SHELL'
  889. ac_subst_files=''
  890. ac_user_opts='
  891. enable_option_checking
  892. with_gnu_ld
  893. enable_dev_mode
  894. with_asound
  895. with_bfd
  896. with_cap
  897. with_curses
  898. with_dahdi
  899. with_gnutls
  900. with_gsm
  901. with_h323
  902. with_iksemel
  903. with_imap
  904. with_isdnnet
  905. with_kde
  906. with_libcurl
  907. with_ltdl
  908. with_misdn
  909. with_nbs
  910. with_ncurses
  911. with_netsnmp
  912. with_newt
  913. with_odbc
  914. with_ogg
  915. with_openais
  916. with_openr2
  917. with_osptk
  918. with_oss
  919. with_popt
  920. with_postgres
  921. with_pri
  922. with_pwlib
  923. with_radius
  924. with_speex
  925. with_speexdsp
  926. with_sqlite
  927. with_ssl
  928. with_suppserv
  929. with_tds
  930. with_termcap
  931. with_tinfo
  932. with_tonezone
  933. with_usb
  934. with_vorbis
  935. with_vpb
  936. with_z
  937. with_zaptel
  938. enable_largefile
  939. '
  940. ac_precious_vars='build_alias
  941. host_alias
  942. target_alias
  943. CC
  944. CFLAGS
  945. LDFLAGS
  946. LIBS
  947. CPPFLAGS
  948. CPP
  949. CXX
  950. CXXFLAGS
  951. CCC
  952. CXXCPP'
  953. # Initialize some variables set by options.
  954. ac_init_help=
  955. ac_init_version=false
  956. ac_unrecognized_opts=
  957. ac_unrecognized_sep=
  958. # The variables have the same names as the options, with
  959. # dashes changed to underlines.
  960. cache_file=/dev/null
  961. exec_prefix=NONE
  962. no_create=
  963. no_recursion=
  964. prefix=NONE
  965. program_prefix=NONE
  966. program_suffix=NONE
  967. program_transform_name=s,x,x,
  968. silent=
  969. site=
  970. srcdir=
  971. verbose=
  972. x_includes=NONE
  973. x_libraries=NONE
  974. # Installation directory options.
  975. # These are left unexpanded so users can "make install exec_prefix=/foo"
  976. # and all the variables that are supposed to be based on exec_prefix
  977. # by default will actually change.
  978. # Use braces instead of parens because sh, perl, etc. also accept them.
  979. # (The list follows the same order as the GNU Coding Standards.)
  980. bindir='${exec_prefix}/bin'
  981. sbindir='${exec_prefix}/sbin'
  982. libexecdir='${exec_prefix}/libexec'
  983. datarootdir='${prefix}/share'
  984. datadir='${datarootdir}'
  985. sysconfdir='${prefix}/etc'
  986. sharedstatedir='${prefix}/com'
  987. localstatedir='${prefix}/var'
  988. includedir='${prefix}/include'
  989. oldincludedir='/usr/include'
  990. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  991. infodir='${datarootdir}/info'
  992. htmldir='${docdir}'
  993. dvidir='${docdir}'
  994. pdfdir='${docdir}'
  995. psdir='${docdir}'
  996. libdir='${exec_prefix}/lib'
  997. localedir='${datarootdir}/locale'
  998. mandir='${datarootdir}/man'
  999. ac_prev=
  1000. ac_dashdash=
  1001. for ac_option
  1002. do
  1003. # If the previous option needs an argument, assign it.
  1004. if test -n "$ac_prev"; then
  1005. eval $ac_prev=\$ac_option
  1006. ac_prev=
  1007. continue
  1008. fi
  1009. case $ac_option in
  1010. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1011. *) ac_optarg=yes ;;
  1012. esac
  1013. # Accept the important Cygnus configure options, so we can diagnose typos.
  1014. case $ac_dashdash$ac_option in
  1015. --)
  1016. ac_dashdash=yes ;;
  1017. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1018. ac_prev=bindir ;;
  1019. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1020. bindir=$ac_optarg ;;
  1021. -build | --build | --buil | --bui | --bu)
  1022. ac_prev=build_alias ;;
  1023. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1024. build_alias=$ac_optarg ;;
  1025. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1026. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1027. ac_prev=cache_file ;;
  1028. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1029. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1030. cache_file=$ac_optarg ;;
  1031. --config-cache | -C)
  1032. cache_file=config.cache ;;
  1033. -datadir | --datadir | --datadi | --datad)
  1034. ac_prev=datadir ;;
  1035. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1036. datadir=$ac_optarg ;;
  1037. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1038. | --dataroo | --dataro | --datar)
  1039. ac_prev=datarootdir ;;
  1040. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1041. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1042. datarootdir=$ac_optarg ;;
  1043. -disable-* | --disable-*)
  1044. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1045. # Reject names that are not valid shell variable names.
  1046. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1047. as_fn_error "invalid feature name: $ac_useropt"
  1048. ac_useropt_orig=$ac_useropt
  1049. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1050. case $ac_user_opts in
  1051. *"
  1052. "enable_$ac_useropt"
  1053. "*) ;;
  1054. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1055. ac_unrecognized_sep=', ';;
  1056. esac
  1057. eval enable_$ac_useropt=no ;;
  1058. -docdir | --docdir | --docdi | --doc | --do)
  1059. ac_prev=docdir ;;
  1060. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1061. docdir=$ac_optarg ;;
  1062. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1063. ac_prev=dvidir ;;
  1064. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1065. dvidir=$ac_optarg ;;
  1066. -enable-* | --enable-*)
  1067. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1068. # Reject names that are not valid shell variable names.
  1069. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1070. as_fn_error "invalid feature name: $ac_useropt"
  1071. ac_useropt_orig=$ac_useropt
  1072. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1073. case $ac_user_opts in
  1074. *"
  1075. "enable_$ac_useropt"
  1076. "*) ;;
  1077. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1078. ac_unrecognized_sep=', ';;
  1079. esac
  1080. eval enable_$ac_useropt=\$ac_optarg ;;
  1081. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1082. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1083. | --exec | --exe | --ex)
  1084. ac_prev=exec_prefix ;;
  1085. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1086. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1087. | --exec=* | --exe=* | --ex=*)
  1088. exec_prefix=$ac_optarg ;;
  1089. -gas | --gas | --ga | --g)
  1090. # Obsolete; use --with-gas.
  1091. with_gas=yes ;;
  1092. -help | --help | --hel | --he | -h)
  1093. ac_init_help=long ;;
  1094. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1095. ac_init_help=recursive ;;
  1096. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1097. ac_init_help=short ;;
  1098. -host | --host | --hos | --ho)
  1099. ac_prev=host_alias ;;
  1100. -host=* | --host=* | --hos=* | --ho=*)
  1101. host_alias=$ac_optarg ;;
  1102. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1103. ac_prev=htmldir ;;
  1104. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1105. | --ht=*)
  1106. htmldir=$ac_optarg ;;
  1107. -includedir | --includedir | --includedi | --included | --include \
  1108. | --includ | --inclu | --incl | --inc)
  1109. ac_prev=includedir ;;
  1110. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1111. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1112. includedir=$ac_optarg ;;
  1113. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1114. ac_prev=infodir ;;
  1115. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1116. infodir=$ac_optarg ;;
  1117. -libdir | --libdir | --libdi | --libd)
  1118. ac_prev=libdir ;;
  1119. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1120. libdir=$ac_optarg ;;
  1121. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1122. | --libexe | --libex | --libe)
  1123. ac_prev=libexecdir ;;
  1124. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1125. | --libexe=* | --libex=* | --libe=*)
  1126. libexecdir=$ac_optarg ;;
  1127. -localedir | --localedir | --localedi | --localed | --locale)
  1128. ac_prev=localedir ;;
  1129. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1130. localedir=$ac_optarg ;;
  1131. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1132. | --localstate | --localstat | --localsta | --localst | --locals)
  1133. ac_prev=localstatedir ;;
  1134. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1135. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1136. localstatedir=$ac_optarg ;;
  1137. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1138. ac_prev=mandir ;;
  1139. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1140. mandir=$ac_optarg ;;
  1141. -nfp | --nfp | --nf)
  1142. # Obsolete; use --without-fp.
  1143. with_fp=no ;;
  1144. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1145. | --no-cr | --no-c | -n)
  1146. no_create=yes ;;
  1147. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1148. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1149. no_recursion=yes ;;
  1150. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1151. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1152. | --oldin | --oldi | --old | --ol | --o)
  1153. ac_prev=oldincludedir ;;
  1154. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1155. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1156. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1157. oldincludedir=$ac_optarg ;;
  1158. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1159. ac_prev=prefix ;;
  1160. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1161. prefix=$ac_optarg ;;
  1162. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1163. | --program-pre | --program-pr | --program-p)
  1164. ac_prev=program_prefix ;;
  1165. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1166. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1167. program_prefix=$ac_optarg ;;
  1168. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1169. | --program-suf | --program-su | --program-s)
  1170. ac_prev=program_suffix ;;
  1171. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1172. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1173. program_suffix=$ac_optarg ;;
  1174. -program-transform-name | --program-transform-name \
  1175. | --program-transform-nam | --program-transform-na \
  1176. | --program-transform-n | --program-transform- \
  1177. | --program-transform | --program-transfor \
  1178. | --program-transfo | --program-transf \
  1179. | --program-trans | --program-tran \
  1180. | --progr-tra | --program-tr | --program-t)
  1181. ac_prev=program_transform_name ;;
  1182. -program-transform-name=* | --program-transform-name=* \
  1183. | --program-transform-nam=* | --program-transform-na=* \
  1184. | --program-transform-n=* | --program-transform-=* \
  1185. | --program-transform=* | --program-transfor=* \
  1186. | --program-transfo=* | --program-transf=* \
  1187. | --program-trans=* | --program-tran=* \
  1188. | --progr-tra=* | --program-tr=* | --program-t=*)
  1189. program_transform_name=$ac_optarg ;;
  1190. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1191. ac_prev=pdfdir ;;
  1192. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1193. pdfdir=$ac_optarg ;;
  1194. -psdir | --psdir | --psdi | --psd | --ps)
  1195. ac_prev=psdir ;;
  1196. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1197. psdir=$ac_optarg ;;
  1198. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1199. | -silent | --silent | --silen | --sile | --sil)
  1200. silent=yes ;;
  1201. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1202. ac_prev=sbindir ;;
  1203. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1204. | --sbi=* | --sb=*)
  1205. sbindir=$ac_optarg ;;
  1206. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1207. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1208. | --sharedst | --shareds | --shared | --share | --shar \
  1209. | --sha | --sh)
  1210. ac_prev=sharedstatedir ;;
  1211. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1212. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1213. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1214. | --sha=* | --sh=*)
  1215. sharedstatedir=$ac_optarg ;;
  1216. -site | --site | --sit)
  1217. ac_prev=site ;;
  1218. -site=* | --site=* | --sit=*)
  1219. site=$ac_optarg ;;
  1220. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1221. ac_prev=srcdir ;;
  1222. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1223. srcdir=$ac_optarg ;;
  1224. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1225. | --syscon | --sysco | --sysc | --sys | --sy)
  1226. ac_prev=sysconfdir ;;
  1227. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1228. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1229. sysconfdir=$ac_optarg ;;
  1230. -target | --target | --targe | --targ | --tar | --ta | --t)
  1231. ac_prev=target_alias ;;
  1232. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1233. target_alias=$ac_optarg ;;
  1234. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1235. verbose=yes ;;
  1236. -version | --version | --versio | --versi | --vers | -V)
  1237. ac_init_version=: ;;
  1238. -with-* | --with-*)
  1239. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1240. # Reject names that are not valid shell variable names.
  1241. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1242. as_fn_error "invalid package name: $ac_useropt"
  1243. ac_useropt_orig=$ac_useropt
  1244. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1245. case $ac_user_opts in
  1246. *"
  1247. "with_$ac_useropt"
  1248. "*) ;;
  1249. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1250. ac_unrecognized_sep=', ';;
  1251. esac
  1252. eval with_$ac_useropt=\$ac_optarg ;;
  1253. -without-* | --without-*)
  1254. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1255. # Reject names that are not valid shell variable names.
  1256. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1257. as_fn_error "invalid package name: $ac_useropt"
  1258. ac_useropt_orig=$ac_useropt
  1259. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1260. case $ac_user_opts in
  1261. *"
  1262. "with_$ac_useropt"
  1263. "*) ;;
  1264. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1265. ac_unrecognized_sep=', ';;
  1266. esac
  1267. eval with_$ac_useropt=no ;;
  1268. --x)
  1269. # Obsolete; use --with-x.
  1270. with_x=yes ;;
  1271. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1272. | --x-incl | --x-inc | --x-in | --x-i)
  1273. ac_prev=x_includes ;;
  1274. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1275. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1276. x_includes=$ac_optarg ;;
  1277. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1278. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1279. ac_prev=x_libraries ;;
  1280. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1281. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1282. x_libraries=$ac_optarg ;;
  1283. -*) as_fn_error "unrecognized option: \`$ac_option'
  1284. Try \`$0 --help' for more information."
  1285. ;;
  1286. *=*)
  1287. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1288. # Reject names that are not valid shell variable names.
  1289. case $ac_envvar in #(
  1290. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1291. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1292. esac
  1293. eval $ac_envvar=\$ac_optarg
  1294. export $ac_envvar ;;
  1295. *)
  1296. # FIXME: should be removed in autoconf 3.0.
  1297. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1298. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1299. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1300. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1301. ;;
  1302. esac
  1303. done
  1304. if test -n "$ac_prev"; then
  1305. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1306. as_fn_error "missing argument to $ac_option"
  1307. fi
  1308. if test -n "$ac_unrecognized_opts"; then
  1309. case $enable_option_checking in
  1310. no) ;;
  1311. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1312. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1313. esac
  1314. fi
  1315. # Check all directory arguments for consistency.
  1316. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1317. datadir sysconfdir sharedstatedir localstatedir includedir \
  1318. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1319. libdir localedir mandir
  1320. do
  1321. eval ac_val=\$$ac_var
  1322. # Remove trailing slashes.
  1323. case $ac_val in
  1324. */ )
  1325. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1326. eval $ac_var=\$ac_val;;
  1327. esac
  1328. # Be sure to have absolute directory names.
  1329. case $ac_val in
  1330. [\\/$]* | ?:[\\/]* ) continue;;
  1331. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1332. esac
  1333. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1334. done
  1335. # There might be people who depend on the old broken behavior: `$host'
  1336. # used to hold the argument of --host etc.
  1337. # FIXME: To remove some day.
  1338. build=$build_alias
  1339. host=$host_alias
  1340. target=$target_alias
  1341. # FIXME: To remove some day.
  1342. if test "x$host_alias" != x; then
  1343. if test "x$build_alias" = x; then
  1344. cross_compiling=maybe
  1345. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1346. If a cross compiler is detected then cross compile mode will be used." >&2
  1347. elif test "x$build_alias" != "x$host_alias"; then
  1348. cross_compiling=yes
  1349. fi
  1350. fi
  1351. ac_tool_prefix=
  1352. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1353. test "$silent" = yes && exec 6>/dev/null
  1354. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1355. ac_ls_di=`ls -di .` &&
  1356. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1357. as_fn_error "working directory cannot be determined"
  1358. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1359. as_fn_error "pwd does not report name of working directory"
  1360. # Find the source files, if location was not specified.
  1361. if test -z "$srcdir"; then
  1362. ac_srcdir_defaulted=yes
  1363. # Try the directory containing this script, then the parent directory.
  1364. ac_confdir=`$as_dirname -- "$as_myself" ||
  1365. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1366. X"$as_myself" : 'X\(//\)[^/]' \| \
  1367. X"$as_myself" : 'X\(//\)$' \| \
  1368. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1369. $as_echo X"$as_myself" |
  1370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1371. s//\1/
  1372. q
  1373. }
  1374. /^X\(\/\/\)[^/].*/{
  1375. s//\1/
  1376. q
  1377. }
  1378. /^X\(\/\/\)$/{
  1379. s//\1/
  1380. q
  1381. }
  1382. /^X\(\/\).*/{
  1383. s//\1/
  1384. q
  1385. }
  1386. s/.*/./; q'`
  1387. srcdir=$ac_confdir
  1388. if test ! -r "$srcdir/$ac_unique_file"; then
  1389. srcdir=..
  1390. fi
  1391. else
  1392. ac_srcdir_defaulted=no
  1393. fi
  1394. if test ! -r "$srcdir/$ac_unique_file"; then
  1395. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1396. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1397. fi
  1398. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1399. ac_abs_confdir=`(
  1400. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1401. pwd)`
  1402. # When building in place, set srcdir=.
  1403. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1404. srcdir=.
  1405. fi
  1406. # Remove unnecessary trailing slashes from srcdir.
  1407. # Double slashes in file names in object file debugging info
  1408. # mess up M-x gdb in Emacs.
  1409. case $srcdir in
  1410. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1411. esac
  1412. for ac_var in $ac_precious_vars; do
  1413. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1414. eval ac_env_${ac_var}_value=\$${ac_var}
  1415. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1416. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1417. done
  1418. #
  1419. # Report the --help message.
  1420. #
  1421. if test "$ac_init_help" = "long"; then
  1422. # Omit some internal or obsolete options to make the list less imposing.
  1423. # This message is too long to be a string in the A/UX 3.1 sh.
  1424. cat <<_ACEOF
  1425. \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
  1426. Usage: $0 [OPTION]... [VAR=VALUE]...
  1427. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1428. VAR=VALUE. See below for descriptions of some of the useful variables.
  1429. Defaults for the options are specified in brackets.
  1430. Configuration:
  1431. -h, --help display this help and exit
  1432. --help=short display options specific to this package
  1433. --help=recursive display the short help of all the included packages
  1434. -V, --version display version information and exit
  1435. -q, --quiet, --silent do not print \`checking...' messages
  1436. --cache-file=FILE cache test results in FILE [disabled]
  1437. -C, --config-cache alias for \`--cache-file=config.cache'
  1438. -n, --no-create do not create output files
  1439. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1440. Installation directories:
  1441. --prefix=PREFIX install architecture-independent files in PREFIX
  1442. [$ac_default_prefix]
  1443. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1444. [PREFIX]
  1445. By default, \`make install' will install all the files in
  1446. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1447. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1448. for instance \`--prefix=\$HOME'.
  1449. For better control, use the options below.
  1450. Fine tuning of the installation directories:
  1451. --bindir=DIR user executables [EPREFIX/bin]
  1452. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1453. --libexecdir=DIR program executables [EPREFIX/libexec]
  1454. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1455. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1456. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1457. --libdir=DIR object code libraries [EPREFIX/lib]
  1458. --includedir=DIR C header files [PREFIX/include]
  1459. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1460. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1461. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1462. --infodir=DIR info documentation [DATAROOTDIR/info]
  1463. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1464. --mandir=DIR man documentation [DATAROOTDIR/man]
  1465. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1466. --htmldir=DIR html documentation [DOCDIR]
  1467. --dvidir=DIR dvi documentation [DOCDIR]
  1468. --pdfdir=DIR pdf documentation [DOCDIR]
  1469. --psdir=DIR ps documentation [DOCDIR]
  1470. _ACEOF
  1471. cat <<\_ACEOF
  1472. System types:
  1473. --build=BUILD configure for building on BUILD [guessed]
  1474. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1475. _ACEOF
  1476. fi
  1477. if test -n "$ac_init_help"; then
  1478. case $ac_init_help in
  1479. short | recursive ) echo "Configuration of asterisk 1.4:";;
  1480. esac
  1481. cat <<\_ACEOF
  1482. Optional Features:
  1483. --disable-option-checking ignore unrecognized --enable/--with options
  1484. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1485. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1486. --enable-dev-mode Turn on developer mode
  1487. --disable-largefile omit support for large files
  1488. Optional Packages:
  1489. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1490. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1491. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1492. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1493. --with-bfd=PATH use Debug symbol decoding files in PATH
  1494. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1495. --with-curses=PATH use curses files in PATH
  1496. --with-dahdi=PATH use DAHDI files in PATH
  1497. --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
  1498. PATH
  1499. --with-gsm=PATH use GSM files in PATH , or 'internal'
  1500. --with-h323=PATH use OpenH323 files in PATH
  1501. --with-iksemel=PATH use Iksemel Jabber Library files in PATH
  1502. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1503. --with-isdnnet=PATH use ISDN4Linux Library files in PATH
  1504. --with-kde=PATH use KDE files in PATH
  1505. --with-libcurl=DIR look for the curl library in DIR
  1506. --with-ltdl=PATH use libtool files in PATH
  1507. --with-misdn=PATH use mISDN User Library files in PATH
  1508. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1509. --with-ncurses=PATH use ncurses files in PATH
  1510. --with-netsnmp=PATH use Net-SNMP files in PATH
  1511. --with-newt=PATH use newt files in PATH
  1512. --with-odbc=PATH use unixODBC files in PATH
  1513. --with-ogg=PATH use OGG files in PATH
  1514. --with-openais=PATH use OpenAIS files in PATH
  1515. --with-openr2=PATH use MFR2 files in PATH
  1516. --with-osptk=PATH use OSP Toolkit files in PATH
  1517. --with-oss=PATH use Open Sound System files in PATH
  1518. --with-popt=PATH use popt files in PATH
  1519. --with-postgres=PATH use PostgreSQL files in PATH
  1520. --with-pri=PATH use ISDN PRI files in PATH
  1521. --with-pwlib=PATH use PWlib files in PATH
  1522. --with-radius=PATH use Radius Client files in PATH
  1523. --with-speex=PATH use Speex files in PATH
  1524. --with-speexdsp=PATH use Speexdsp files in PATH
  1525. --with-sqlite=PATH use SQLite files in PATH
  1526. --with-ssl=PATH use OpenSSL files in PATH
  1527. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1528. --with-tds=PATH use FreeTDS files in PATH
  1529. --with-termcap=PATH use Termcap files in PATH
  1530. --with-tinfo=PATH use Term Info files in PATH
  1531. --with-tonezone=PATH use tonezone files in PATH
  1532. --with-usb=PATH use usb files in PATH
  1533. --with-vorbis=PATH use Vorbis files in PATH
  1534. --with-vpb=PATH use Voicetronix API files in PATH
  1535. --with-z=PATH use zlib files in PATH
  1536. --with-zaptel=PATH use Zaptel files in PATH
  1537. Some influential environment variables:
  1538. CC C compiler command
  1539. CFLAGS C compiler flags
  1540. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1541. nonstandard directory <lib dir>
  1542. LIBS libraries to pass to the linker, e.g. -l<library>
  1543. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1544. you have headers in a nonstandard directory <include dir>
  1545. CPP C preprocessor
  1546. CXX C++ compiler command
  1547. CXXFLAGS C++ compiler flags
  1548. CXXCPP C++ preprocessor
  1549. Use these variables to override the choices made by `configure' or to help
  1550. it to find libraries and programs with nonstandard names/locations.
  1551. Report bugs to <https://issues.asterisk.org>.
  1552. _ACEOF
  1553. ac_status=$?
  1554. fi
  1555. if test "$ac_init_help" = "recursive"; then
  1556. # If there are subdirs, report their specific --help.
  1557. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1558. test -d "$ac_dir" ||
  1559. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1560. continue
  1561. ac_builddir=.
  1562. case "$ac_dir" in
  1563. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1564. *)
  1565. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1566. # A ".." for each directory in $ac_dir_suffix.
  1567. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1568. case $ac_top_builddir_sub in
  1569. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1570. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1571. esac ;;
  1572. esac
  1573. ac_abs_top_builddir=$ac_pwd
  1574. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1575. # for backward compatibility:
  1576. ac_top_builddir=$ac_top_build_prefix
  1577. case $srcdir in
  1578. .) # We are building in place.
  1579. ac_srcdir=.
  1580. ac_top_srcdir=$ac_top_builddir_sub
  1581. ac_abs_top_srcdir=$ac_pwd ;;
  1582. [\\/]* | ?:[\\/]* ) # Absolute name.
  1583. ac_srcdir=$srcdir$ac_dir_suffix;
  1584. ac_top_srcdir=$srcdir
  1585. ac_abs_top_srcdir=$srcdir ;;
  1586. *) # Relative name.
  1587. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1588. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1589. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1590. esac
  1591. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1592. cd "$ac_dir" || { ac_status=$?; continue; }
  1593. # Check for guested configure.
  1594. if test -f "$ac_srcdir/configure.gnu"; then
  1595. echo &&
  1596. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1597. elif test -f "$ac_srcdir/configure"; then
  1598. echo &&
  1599. $SHELL "$ac_srcdir/configure" --help=recursive
  1600. else
  1601. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1602. fi || ac_status=$?
  1603. cd "$ac_pwd" || { ac_status=$?; break; }
  1604. done
  1605. fi
  1606. test -n "$ac_init_help" && exit $ac_status
  1607. if $ac_init_version; then
  1608. cat <<\_ACEOF
  1609. asterisk configure 1.4
  1610. generated by GNU Autoconf 2.65
  1611. Copyright (C) 2009 Free Software Foundation, Inc.
  1612. This configure script is free software; the Free Software Foundation
  1613. gives unlimited permission to copy, distribute and modify it.
  1614. "Asterisk"
  1615. _ACEOF
  1616. exit
  1617. fi
  1618. ## ------------------------ ##
  1619. ## Autoconf initialization. ##
  1620. ## ------------------------ ##
  1621. # ac_fn_c_try_compile LINENO
  1622. # --------------------------
  1623. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1624. ac_fn_c_try_compile ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. rm -f conftest.$ac_objext
  1628. if { { ac_try="$ac_compile"
  1629. case "(($ac_try" in
  1630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1631. *) ac_try_echo=$ac_try;;
  1632. esac
  1633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1634. $as_echo "$ac_try_echo"; } >&5
  1635. (eval "$ac_compile") 2>conftest.err
  1636. ac_status=$?
  1637. if test -s conftest.err; then
  1638. grep -v '^ *+' conftest.err >conftest.er1
  1639. cat conftest.er1 >&5
  1640. mv -f conftest.er1 conftest.err
  1641. fi
  1642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1643. test $ac_status = 0; } && {
  1644. test -z "$ac_c_werror_flag" ||
  1645. test ! -s conftest.err
  1646. } && test -s conftest.$ac_objext; then :
  1647. ac_retval=0
  1648. else
  1649. $as_echo "$as_me: failed program was:" >&5
  1650. sed 's/^/| /' conftest.$ac_ext >&5
  1651. ac_retval=1
  1652. fi
  1653. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1654. as_fn_set_status $ac_retval
  1655. } # ac_fn_c_try_compile
  1656. # ac_fn_c_try_cpp LINENO
  1657. # ----------------------
  1658. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1659. ac_fn_c_try_cpp ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1663. case "(($ac_try" in
  1664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1665. *) ac_try_echo=$ac_try;;
  1666. esac
  1667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1668. $as_echo "$ac_try_echo"; } >&5
  1669. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1670. ac_status=$?
  1671. if test -s conftest.err; then
  1672. grep -v '^ *+' conftest.err >conftest.er1
  1673. cat conftest.er1 >&5
  1674. mv -f conftest.er1 conftest.err
  1675. fi
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; } >/dev/null && {
  1678. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1679. test ! -s conftest.err
  1680. }; then :
  1681. ac_retval=0
  1682. else
  1683. $as_echo "$as_me: failed program was:" >&5
  1684. sed 's/^/| /' conftest.$ac_ext >&5
  1685. ac_retval=1
  1686. fi
  1687. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1688. as_fn_set_status $ac_retval
  1689. } # ac_fn_c_try_cpp
  1690. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1691. # -------------------------------------------------------
  1692. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1693. # the include files in INCLUDES and setting the cache variable VAR
  1694. # accordingly.
  1695. ac_fn_c_check_header_mongrel ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1702. $as_echo_n "(cached) " >&6
  1703. fi
  1704. eval ac_res=\$$3
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1706. $as_echo "$ac_res" >&6; }
  1707. else
  1708. # Is the header compilable?
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1710. $as_echo_n "checking $2 usability... " >&6; }
  1711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1712. /* end confdefs.h. */
  1713. $4
  1714. #include <$2>
  1715. _ACEOF
  1716. if ac_fn_c_try_compile "$LINENO"; then :
  1717. ac_header_compiler=yes
  1718. else
  1719. ac_header_compiler=no
  1720. fi
  1721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1723. $as_echo "$ac_header_compiler" >&6; }
  1724. # Is the header present?
  1725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1726. $as_echo_n "checking $2 presence... " >&6; }
  1727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1728. /* end confdefs.h. */
  1729. #include <$2>
  1730. _ACEOF
  1731. if ac_fn_c_try_cpp "$LINENO"; then :
  1732. ac_header_preproc=yes
  1733. else
  1734. ac_header_preproc=no
  1735. fi
  1736. rm -f conftest.err conftest.$ac_ext
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1738. $as_echo "$ac_header_preproc" >&6; }
  1739. # So? What about this header?
  1740. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1741. yes:no: )
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1743. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1745. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1746. ;;
  1747. no:yes:* )
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1749. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1751. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1753. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1755. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1757. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1758. ( cat <<\_ASBOX
  1759. ## ------------------------------------------ ##
  1760. ## Report this to https://issues.asterisk.org ##
  1761. ## ------------------------------------------ ##
  1762. _ASBOX
  1763. ) | sed "s/^/$as_me: WARNING: /" >&2
  1764. ;;
  1765. esac
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1767. $as_echo_n "checking for $2... " >&6; }
  1768. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1769. $as_echo_n "(cached) " >&6
  1770. else
  1771. eval "$3=\$ac_header_compiler"
  1772. fi
  1773. eval ac_res=\$$3
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. $as_echo "$ac_res" >&6; }
  1776. fi
  1777. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1778. } # ac_fn_c_check_header_mongrel
  1779. # ac_fn_c_try_run LINENO
  1780. # ----------------------
  1781. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1782. # that executables *can* be run.
  1783. ac_fn_c_try_run ()
  1784. {
  1785. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1786. if { { ac_try="$ac_link"
  1787. case "(($ac_try" in
  1788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1789. *) ac_try_echo=$ac_try;;
  1790. esac
  1791. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1792. $as_echo "$ac_try_echo"; } >&5
  1793. (eval "$ac_link") 2>&5
  1794. ac_status=$?
  1795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1796. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1797. { { case "(($ac_try" in
  1798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1799. *) ac_try_echo=$ac_try;;
  1800. esac
  1801. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1802. $as_echo "$ac_try_echo"; } >&5
  1803. (eval "$ac_try") 2>&5
  1804. ac_status=$?
  1805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806. test $ac_status = 0; }; }; then :
  1807. ac_retval=0
  1808. else
  1809. $as_echo "$as_me: program exited with status $ac_status" >&5
  1810. $as_echo "$as_me: failed program was:" >&5
  1811. sed 's/^/| /' conftest.$ac_ext >&5
  1812. ac_retval=$ac_status
  1813. fi
  1814. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1815. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1816. as_fn_set_status $ac_retval
  1817. } # ac_fn_c_try_run
  1818. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1819. # -------------------------------------------------------
  1820. # Tests whether HEADER exists and can be compiled using the include files in
  1821. # INCLUDES, setting the cache variable VAR accordingly.
  1822. ac_fn_c_check_header_compile ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1826. $as_echo_n "checking for $2... " >&6; }
  1827. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1828. $as_echo_n "(cached) " >&6
  1829. else
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. #include <$2>
  1834. _ACEOF
  1835. if ac_fn_c_try_compile "$LINENO"; then :
  1836. eval "$3=yes"
  1837. else
  1838. eval "$3=no"
  1839. fi
  1840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1841. fi
  1842. eval ac_res=\$$3
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1844. $as_echo "$ac_res" >&6; }
  1845. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1846. } # ac_fn_c_check_header_compile
  1847. # ac_fn_cxx_try_compile LINENO
  1848. # ----------------------------
  1849. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1850. ac_fn_cxx_try_compile ()
  1851. {
  1852. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1853. rm -f conftest.$ac_objext
  1854. if { { ac_try="$ac_compile"
  1855. case "(($ac_try" in
  1856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1857. *) ac_try_echo=$ac_try;;
  1858. esac
  1859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1860. $as_echo "$ac_try_echo"; } >&5
  1861. (eval "$ac_compile") 2>conftest.err
  1862. ac_status=$?
  1863. if test -s conftest.err; then
  1864. grep -v '^ *+' conftest.err >conftest.er1
  1865. cat conftest.er1 >&5
  1866. mv -f conftest.er1 conftest.err
  1867. fi
  1868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1869. test $ac_status = 0; } && {
  1870. test -z "$ac_cxx_werror_flag" ||
  1871. test ! -s conftest.err
  1872. } && test -s conftest.$ac_objext; then :
  1873. ac_retval=0
  1874. else
  1875. $as_echo "$as_me: failed program was:" >&5
  1876. sed 's/^/| /' conftest.$ac_ext >&5
  1877. ac_retval=1
  1878. fi
  1879. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1880. as_fn_set_status $ac_retval
  1881. } # ac_fn_cxx_try_compile
  1882. # ac_fn_cxx_try_cpp LINENO
  1883. # ------------------------
  1884. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1885. ac_fn_cxx_try_cpp ()
  1886. {
  1887. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1889. case "(($ac_try" in
  1890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1891. *) ac_try_echo=$ac_try;;
  1892. esac
  1893. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1894. $as_echo "$ac_try_echo"; } >&5
  1895. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1896. ac_status=$?
  1897. if test -s conftest.err; then
  1898. grep -v '^ *+' conftest.err >conftest.er1
  1899. cat conftest.er1 >&5
  1900. mv -f conftest.er1 conftest.err
  1901. fi
  1902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1903. test $ac_status = 0; } >/dev/null && {
  1904. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1905. test ! -s conftest.err
  1906. }; then :
  1907. ac_retval=0
  1908. else
  1909. $as_echo "$as_me: failed program was:" >&5
  1910. sed 's/^/| /' conftest.$ac_ext >&5
  1911. ac_retval=1
  1912. fi
  1913. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1914. as_fn_set_status $ac_retval
  1915. } # ac_fn_cxx_try_cpp
  1916. # ac_fn_c_try_link LINENO
  1917. # -----------------------
  1918. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1919. ac_fn_c_try_link ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. rm -f conftest.$ac_objext conftest$ac_exeext
  1923. if { { ac_try="$ac_link"
  1924. case "(($ac_try" in
  1925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1926. *) ac_try_echo=$ac_try;;
  1927. esac
  1928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1929. $as_echo "$ac_try_echo"; } >&5
  1930. (eval "$ac_link") 2>conftest.err
  1931. ac_status=$?
  1932. if test -s conftest.err; then
  1933. grep -v '^ *+' conftest.err >conftest.er1
  1934. cat conftest.er1 >&5
  1935. mv -f conftest.er1 conftest.err
  1936. fi
  1937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1938. test $ac_status = 0; } && {
  1939. test -z "$ac_c_werror_flag" ||
  1940. test ! -s conftest.err
  1941. } && test -s conftest$ac_exeext && {
  1942. test "$cross_compiling" = yes ||
  1943. $as_test_x conftest$ac_exeext
  1944. }; then :
  1945. ac_retval=0
  1946. else
  1947. $as_echo "$as_me: failed program was:" >&5
  1948. sed 's/^/| /' conftest.$ac_ext >&5
  1949. ac_retval=1
  1950. fi
  1951. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1952. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1953. # interfere with the next link command; also delete a directory that is
  1954. # left behind by Apple's compiler. We do this before executing the actions.
  1955. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1956. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1957. as_fn_set_status $ac_retval
  1958. } # ac_fn_c_try_link
  1959. # ac_fn_c_check_func LINENO FUNC VAR
  1960. # ----------------------------------
  1961. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1962. ac_fn_c_check_func ()
  1963. {
  1964. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1966. $as_echo_n "checking for $2... " >&6; }
  1967. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1968. $as_echo_n "(cached) " >&6
  1969. else
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1973. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1974. #define $2 innocuous_$2
  1975. /* System header to define __stub macros and hopefully few prototypes,
  1976. which can conflict with char $2 (); below.
  1977. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1978. <limits.h> exists even on freestanding compilers. */
  1979. #ifdef __STDC__
  1980. # include <limits.h>
  1981. #else
  1982. # include <assert.h>
  1983. #endif
  1984. #undef $2
  1985. /* Override any GCC internal prototype to avoid an error.
  1986. Use char because int might match the return type of a GCC
  1987. builtin and then its argument prototype would still apply. */
  1988. #ifdef __cplusplus
  1989. extern "C"
  1990. #endif
  1991. char $2 ();
  1992. /* The GNU C library defines this for functions which it implements
  1993. to always fail with ENOSYS. Some functions are actually named
  1994. something starting with __ and the normal name is an alias. */
  1995. #if defined __stub_$2 || defined __stub___$2
  1996. choke me
  1997. #endif
  1998. int
  1999. main ()
  2000. {
  2001. return $2 ();
  2002. ;
  2003. return 0;
  2004. }
  2005. _ACEOF
  2006. if ac_fn_c_try_link "$LINENO"; then :
  2007. eval "$3=yes"
  2008. else
  2009. eval "$3=no"
  2010. fi
  2011. rm -f core conftest.err conftest.$ac_objext \
  2012. conftest$ac_exeext conftest.$ac_ext
  2013. fi
  2014. eval ac_res=\$$3
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2016. $as_echo "$ac_res" >&6; }
  2017. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2018. } # ac_fn_c_check_func
  2019. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2020. # -------------------------------------------
  2021. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2022. # variable VAR accordingly.
  2023. ac_fn_c_check_type ()
  2024. {
  2025. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2027. $as_echo_n "checking for $2... " >&6; }
  2028. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2029. $as_echo_n "(cached) " >&6
  2030. else
  2031. eval "$3=no"
  2032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2033. /* end confdefs.h. */
  2034. $4
  2035. int
  2036. main ()
  2037. {
  2038. if (sizeof ($2))
  2039. return 0;
  2040. ;
  2041. return 0;
  2042. }
  2043. _ACEOF
  2044. if ac_fn_c_try_compile "$LINENO"; then :
  2045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2046. /* end confdefs.h. */
  2047. $4
  2048. int
  2049. main ()
  2050. {
  2051. if (sizeof (($2)))
  2052. return 0;
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. else
  2059. eval "$3=yes"
  2060. fi
  2061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2062. fi
  2063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2064. fi
  2065. eval ac_res=\$$3
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2067. $as_echo "$ac_res" >&6; }
  2068. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2069. } # ac_fn_c_check_type
  2070. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2071. # ----------------------------------------------------
  2072. # Tries to find if the field MEMBER exists in type AGGR, after including
  2073. # INCLUDES, setting cache variable VAR accordingly.
  2074. ac_fn_c_check_member ()
  2075. {
  2076. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2078. $as_echo_n "checking for $2.$3... " >&6; }
  2079. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2080. $as_echo_n "(cached) " >&6
  2081. else
  2082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2083. /* end confdefs.h. */
  2084. $5
  2085. int
  2086. main ()
  2087. {
  2088. static $2 ac_aggr;
  2089. if (ac_aggr.$3)
  2090. return 0;
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. if ac_fn_c_try_compile "$LINENO"; then :
  2096. eval "$4=yes"
  2097. else
  2098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2099. /* end confdefs.h. */
  2100. $5
  2101. int
  2102. main ()
  2103. {
  2104. static $2 ac_aggr;
  2105. if (sizeof ac_aggr.$3)
  2106. return 0;
  2107. ;
  2108. return 0;
  2109. }
  2110. _ACEOF
  2111. if ac_fn_c_try_compile "$LINENO"; then :
  2112. eval "$4=yes"
  2113. else
  2114. eval "$4=no"
  2115. fi
  2116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2117. fi
  2118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2119. fi
  2120. eval ac_res=\$$4
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2122. $as_echo "$ac_res" >&6; }
  2123. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2124. } # ac_fn_c_check_member
  2125. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2126. # --------------------------------------------
  2127. # Tries to find the compile-time value of EXPR in a program that includes
  2128. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2129. # computed
  2130. ac_fn_c_compute_int ()
  2131. {
  2132. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2133. if test "$cross_compiling" = yes; then
  2134. # Depending upon the size, compute the lo and hi bounds.
  2135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2136. /* end confdefs.h. */
  2137. $4
  2138. int
  2139. main ()
  2140. {
  2141. static int test_array [1 - 2 * !(($2) >= 0)];
  2142. test_array [0] = 0
  2143. ;
  2144. return 0;
  2145. }
  2146. _ACEOF
  2147. if ac_fn_c_try_compile "$LINENO"; then :
  2148. ac_lo=0 ac_mid=0
  2149. while :; do
  2150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2151. /* end confdefs.h. */
  2152. $4
  2153. int
  2154. main ()
  2155. {
  2156. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2157. test_array [0] = 0
  2158. ;
  2159. return 0;
  2160. }
  2161. _ACEOF
  2162. if ac_fn_c_try_compile "$LINENO"; then :
  2163. ac_hi=$ac_mid; break
  2164. else
  2165. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2166. if test $ac_lo -le $ac_mid; then
  2167. ac_lo= ac_hi=
  2168. break
  2169. fi
  2170. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2171. fi
  2172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2173. done
  2174. else
  2175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2176. /* end confdefs.h. */
  2177. $4
  2178. int
  2179. main ()
  2180. {
  2181. static int test_array [1 - 2 * !(($2) < 0)];
  2182. test_array [0] = 0
  2183. ;
  2184. return 0;
  2185. }
  2186. _ACEOF
  2187. if ac_fn_c_try_compile "$LINENO"; then :
  2188. ac_hi=-1 ac_mid=-1
  2189. while :; do
  2190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2191. /* end confdefs.h. */
  2192. $4
  2193. int
  2194. main ()
  2195. {
  2196. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2197. test_array [0] = 0
  2198. ;
  2199. return 0;
  2200. }
  2201. _ACEOF
  2202. if ac_fn_c_try_compile "$LINENO"; then :
  2203. ac_lo=$ac_mid; break
  2204. else
  2205. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2206. if test $ac_mid -le $ac_hi; then
  2207. ac_lo= ac_hi=
  2208. break
  2209. fi
  2210. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2211. fi
  2212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2213. done
  2214. else
  2215. ac_lo= ac_hi=
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. # Binary search between lo and hi bounds.
  2221. while test "x$ac_lo" != "x$ac_hi"; do
  2222. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2224. /* end confdefs.h. */
  2225. $4
  2226. int
  2227. main ()
  2228. {
  2229. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2230. test_array [0] = 0
  2231. ;
  2232. return 0;
  2233. }
  2234. _ACEOF
  2235. if ac_fn_c_try_compile "$LINENO"; then :
  2236. ac_hi=$ac_mid
  2237. else
  2238. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2239. fi
  2240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2241. done
  2242. case $ac_lo in #((
  2243. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2244. '') ac_retval=1 ;;
  2245. esac
  2246. else
  2247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2248. /* end confdefs.h. */
  2249. $4
  2250. static long int longval () { return $2; }
  2251. static unsigned long int ulongval () { return $2; }
  2252. #include <stdio.h>
  2253. #include <stdlib.h>
  2254. int
  2255. main ()
  2256. {
  2257. FILE *f = fopen ("conftest.val", "w");
  2258. if (! f)
  2259. return 1;
  2260. if (($2) < 0)
  2261. {
  2262. long int i = longval ();
  2263. if (i != ($2))
  2264. return 1;
  2265. fprintf (f, "%ld", i);
  2266. }
  2267. else
  2268. {
  2269. unsigned long int i = ulongval ();
  2270. if (i != ($2))
  2271. return 1;
  2272. fprintf (f, "%lu", i);
  2273. }
  2274. /* Do not output a trailing newline, as this causes \r\n confusion
  2275. on some platforms. */
  2276. return ferror (f) || fclose (f) != 0;
  2277. ;
  2278. return 0;
  2279. }
  2280. _ACEOF
  2281. if ac_fn_c_try_run "$LINENO"; then :
  2282. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2283. else
  2284. ac_retval=1
  2285. fi
  2286. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2287. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2288. rm -f conftest.val
  2289. fi
  2290. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2291. as_fn_set_status $ac_retval
  2292. } # ac_fn_c_compute_int
  2293. # ac_fn_cxx_try_link LINENO
  2294. # -------------------------
  2295. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2296. ac_fn_cxx_try_link ()
  2297. {
  2298. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2299. rm -f conftest.$ac_objext conftest$ac_exeext
  2300. if { { ac_try="$ac_link"
  2301. case "(($ac_try" in
  2302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2303. *) ac_try_echo=$ac_try;;
  2304. esac
  2305. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2306. $as_echo "$ac_try_echo"; } >&5
  2307. (eval "$ac_link") 2>conftest.err
  2308. ac_status=$?
  2309. if test -s conftest.err; then
  2310. grep -v '^ *+' conftest.err >conftest.er1
  2311. cat conftest.er1 >&5
  2312. mv -f conftest.er1 conftest.err
  2313. fi
  2314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2315. test $ac_status = 0; } && {
  2316. test -z "$ac_cxx_werror_flag" ||
  2317. test ! -s conftest.err
  2318. } && test -s conftest$ac_exeext && {
  2319. test "$cross_compiling" = yes ||
  2320. $as_test_x conftest$ac_exeext
  2321. }; then :
  2322. ac_retval=0
  2323. else
  2324. $as_echo "$as_me: failed program was:" >&5
  2325. sed 's/^/| /' conftest.$ac_ext >&5
  2326. ac_retval=1
  2327. fi
  2328. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2329. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2330. # interfere with the next link command; also delete a directory that is
  2331. # left behind by Apple's compiler. We do this before executing the actions.
  2332. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2333. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2334. as_fn_set_status $ac_retval
  2335. } # ac_fn_cxx_try_link
  2336. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2337. # ---------------------------------------------------------
  2338. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2339. # the include files in INCLUDES and setting the cache variable VAR
  2340. # accordingly.
  2341. ac_fn_cxx_check_header_mongrel ()
  2342. {
  2343. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2344. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2346. $as_echo_n "checking for $2... " >&6; }
  2347. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2348. $as_echo_n "(cached) " >&6
  2349. fi
  2350. eval ac_res=\$$3
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2352. $as_echo "$ac_res" >&6; }
  2353. else
  2354. # Is the header compilable?
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2356. $as_echo_n "checking $2 usability... " >&6; }
  2357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2358. /* end confdefs.h. */
  2359. $4
  2360. #include <$2>
  2361. _ACEOF
  2362. if ac_fn_cxx_try_compile "$LINENO"; then :
  2363. ac_header_compiler=yes
  2364. else
  2365. ac_header_compiler=no
  2366. fi
  2367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2369. $as_echo "$ac_header_compiler" >&6; }
  2370. # Is the header present?
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2372. $as_echo_n "checking $2 presence... " >&6; }
  2373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2374. /* end confdefs.h. */
  2375. #include <$2>
  2376. _ACEOF
  2377. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2378. ac_header_preproc=yes
  2379. else
  2380. ac_header_preproc=no
  2381. fi
  2382. rm -f conftest.err conftest.$ac_ext
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2384. $as_echo "$ac_header_preproc" >&6; }
  2385. # So? What about this header?
  2386. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2387. yes:no: )
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2389. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2391. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2392. ;;
  2393. no:yes:* )
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2395. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2397. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2399. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2401. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2403. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2404. ( cat <<\_ASBOX
  2405. ## ------------------------------------------ ##
  2406. ## Report this to https://issues.asterisk.org ##
  2407. ## ------------------------------------------ ##
  2408. _ASBOX
  2409. ) | sed "s/^/$as_me: WARNING: /" >&2
  2410. ;;
  2411. esac
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2413. $as_echo_n "checking for $2... " >&6; }
  2414. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2415. $as_echo_n "(cached) " >&6
  2416. else
  2417. eval "$3=\$ac_header_compiler"
  2418. fi
  2419. eval ac_res=\$$3
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2421. $as_echo "$ac_res" >&6; }
  2422. fi
  2423. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2424. } # ac_fn_cxx_check_header_mongrel
  2425. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  2426. # ---------------------------------------------------------
  2427. # Tests whether HEADER exists and can be compiled using the include files in
  2428. # INCLUDES, setting the cache variable VAR accordingly.
  2429. ac_fn_cxx_check_header_compile ()
  2430. {
  2431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2433. $as_echo_n "checking for $2... " >&6; }
  2434. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2435. $as_echo_n "(cached) " >&6
  2436. else
  2437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2438. /* end confdefs.h. */
  2439. $4
  2440. #include <$2>
  2441. _ACEOF
  2442. if ac_fn_cxx_try_compile "$LINENO"; then :
  2443. eval "$3=yes"
  2444. else
  2445. eval "$3=no"
  2446. fi
  2447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2448. fi
  2449. eval ac_res=\$$3
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2451. $as_echo "$ac_res" >&6; }
  2452. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2453. } # ac_fn_cxx_check_header_compile
  2454. cat >config.log <<_ACEOF
  2455. This file contains any messages produced by compilers while
  2456. running configure, to aid debugging if configure makes a mistake.
  2457. It was created by asterisk $as_me 1.4, which was
  2458. generated by GNU Autoconf 2.65. Invocation command line was
  2459. $ $0 $@
  2460. _ACEOF
  2461. exec 5>>config.log
  2462. {
  2463. cat <<_ASUNAME
  2464. ## --------- ##
  2465. ## Platform. ##
  2466. ## --------- ##
  2467. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2468. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2469. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2470. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2471. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2472. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2473. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2474. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2475. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2476. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2477. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2478. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2479. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2480. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2481. _ASUNAME
  2482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2483. for as_dir in $PATH
  2484. do
  2485. IFS=$as_save_IFS
  2486. test -z "$as_dir" && as_dir=.
  2487. $as_echo "PATH: $as_dir"
  2488. done
  2489. IFS=$as_save_IFS
  2490. } >&5
  2491. cat >&5 <<_ACEOF
  2492. ## ----------- ##
  2493. ## Core tests. ##
  2494. ## ----------- ##
  2495. _ACEOF
  2496. # Keep a trace of the command line.
  2497. # Strip out --no-create and --no-recursion so they do not pile up.
  2498. # Strip out --silent because we don't want to record it for future runs.
  2499. # Also quote any args containing shell meta-characters.
  2500. # Make two passes to allow for proper duplicate-argument suppression.
  2501. ac_configure_args=
  2502. ac_configure_args0=
  2503. ac_configure_args1=
  2504. ac_must_keep_next=false
  2505. for ac_pass in 1 2
  2506. do
  2507. for ac_arg
  2508. do
  2509. case $ac_arg in
  2510. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2511. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2512. | -silent | --silent | --silen | --sile | --sil)
  2513. continue ;;
  2514. *\'*)
  2515. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2516. esac
  2517. case $ac_pass in
  2518. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2519. 2)
  2520. as_fn_append ac_configure_args1 " '$ac_arg'"
  2521. if test $ac_must_keep_next = true; then
  2522. ac_must_keep_next=false # Got value, back to normal.
  2523. else
  2524. case $ac_arg in
  2525. *=* | --config-cache | -C | -disable-* | --disable-* \
  2526. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2527. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2528. | -with-* | --with-* | -without-* | --without-* | --x)
  2529. case "$ac_configure_args0 " in
  2530. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2531. esac
  2532. ;;
  2533. -* ) ac_must_keep_next=true ;;
  2534. esac
  2535. fi
  2536. as_fn_append ac_configure_args " '$ac_arg'"
  2537. ;;
  2538. esac
  2539. done
  2540. done
  2541. { ac_configure_args0=; unset ac_configure_args0;}
  2542. { ac_configure_args1=; unset ac_configure_args1;}
  2543. # When interrupted or exit'd, cleanup temporary files, and complete
  2544. # config.log. We remove comments because anyway the quotes in there
  2545. # would cause problems or look ugly.
  2546. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2547. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2548. trap 'exit_status=$?
  2549. # Save into config.log some information that might help in debugging.
  2550. {
  2551. echo
  2552. cat <<\_ASBOX
  2553. ## ---------------- ##
  2554. ## Cache variables. ##
  2555. ## ---------------- ##
  2556. _ASBOX
  2557. echo
  2558. # The following way of writing the cache mishandles newlines in values,
  2559. (
  2560. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2561. eval ac_val=\$$ac_var
  2562. case $ac_val in #(
  2563. *${as_nl}*)
  2564. case $ac_var in #(
  2565. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2566. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2567. esac
  2568. case $ac_var in #(
  2569. _ | IFS | as_nl) ;; #(
  2570. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2571. *) { eval $ac_var=; unset $ac_var;} ;;
  2572. esac ;;
  2573. esac
  2574. done
  2575. (set) 2>&1 |
  2576. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2577. *${as_nl}ac_space=\ *)
  2578. sed -n \
  2579. "s/'\''/'\''\\\\'\'''\''/g;
  2580. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2581. ;; #(
  2582. *)
  2583. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2584. ;;
  2585. esac |
  2586. sort
  2587. )
  2588. echo
  2589. cat <<\_ASBOX
  2590. ## ----------------- ##
  2591. ## Output variables. ##
  2592. ## ----------------- ##
  2593. _ASBOX
  2594. echo
  2595. for ac_var in $ac_subst_vars
  2596. do
  2597. eval ac_val=\$$ac_var
  2598. case $ac_val in
  2599. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2600. esac
  2601. $as_echo "$ac_var='\''$ac_val'\''"
  2602. done | sort
  2603. echo
  2604. if test -n "$ac_subst_files"; then
  2605. cat <<\_ASBOX
  2606. ## ------------------- ##
  2607. ## File substitutions. ##
  2608. ## ------------------- ##
  2609. _ASBOX
  2610. echo
  2611. for ac_var in $ac_subst_files
  2612. do
  2613. eval ac_val=\$$ac_var
  2614. case $ac_val in
  2615. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2616. esac
  2617. $as_echo "$ac_var='\''$ac_val'\''"
  2618. done | sort
  2619. echo
  2620. fi
  2621. if test -s confdefs.h; then
  2622. cat <<\_ASBOX
  2623. ## ----------- ##
  2624. ## confdefs.h. ##
  2625. ## ----------- ##
  2626. _ASBOX
  2627. echo
  2628. cat confdefs.h
  2629. echo
  2630. fi
  2631. test "$ac_signal" != 0 &&
  2632. $as_echo "$as_me: caught signal $ac_signal"
  2633. $as_echo "$as_me: exit $exit_status"
  2634. } >&5
  2635. rm -f core *.core core.conftest.* &&
  2636. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2637. exit $exit_status
  2638. ' 0
  2639. for ac_signal in 1 2 13 15; do
  2640. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2641. done
  2642. ac_signal=0
  2643. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2644. rm -f -r conftest* confdefs.h
  2645. $as_echo "/* confdefs.h */" > confdefs.h
  2646. # Predefined preprocessor variables.
  2647. cat >>confdefs.h <<_ACEOF
  2648. #define PACKAGE_NAME "$PACKAGE_NAME"
  2649. _ACEOF
  2650. cat >>confdefs.h <<_ACEOF
  2651. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2652. _ACEOF
  2653. cat >>confdefs.h <<_ACEOF
  2654. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2655. _ACEOF
  2656. cat >>confdefs.h <<_ACEOF
  2657. #define PACKAGE_STRING "$PACKAGE_STRING"
  2658. _ACEOF
  2659. cat >>confdefs.h <<_ACEOF
  2660. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2661. _ACEOF
  2662. cat >>confdefs.h <<_ACEOF
  2663. #define PACKAGE_URL "$PACKAGE_URL"
  2664. _ACEOF
  2665. # Let the site file select an alternate cache file if it wants to.
  2666. # Prefer an explicitly selected file to automatically selected ones.
  2667. ac_site_file1=NONE
  2668. ac_site_file2=NONE
  2669. if test -n "$CONFIG_SITE"; then
  2670. ac_site_file1=$CONFIG_SITE
  2671. elif test "x$prefix" != xNONE; then
  2672. ac_site_file1=$prefix/share/config.site
  2673. ac_site_file2=$prefix/etc/config.site
  2674. else
  2675. ac_site_file1=$ac_default_prefix/share/config.site
  2676. ac_site_file2=$ac_default_prefix/etc/config.site
  2677. fi
  2678. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2679. do
  2680. test "x$ac_site_file" = xNONE && continue
  2681. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2683. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2684. sed 's/^/| /' "$ac_site_file" >&5
  2685. . "$ac_site_file"
  2686. fi
  2687. done
  2688. if test -r "$cache_file"; then
  2689. # Some versions of bash will fail to source /dev/null (special files
  2690. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2691. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2693. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2694. case $cache_file in
  2695. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2696. *) . "./$cache_file";;
  2697. esac
  2698. fi
  2699. else
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2701. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2702. >$cache_file
  2703. fi
  2704. as_fn_append ac_header_list " stdlib.h"
  2705. as_fn_append ac_header_list " unistd.h"
  2706. as_fn_append ac_header_list " sys/param.h"
  2707. as_fn_append ac_header_list " utime.h"
  2708. # Check that the precious variables saved in the cache have kept the same
  2709. # value.
  2710. ac_cache_corrupted=false
  2711. for ac_var in $ac_precious_vars; do
  2712. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2713. eval ac_new_set=\$ac_env_${ac_var}_set
  2714. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2715. eval ac_new_val=\$ac_env_${ac_var}_value
  2716. case $ac_old_set,$ac_new_set in
  2717. set,)
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2719. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2720. ac_cache_corrupted=: ;;
  2721. ,set)
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2723. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2724. ac_cache_corrupted=: ;;
  2725. ,);;
  2726. *)
  2727. if test "x$ac_old_val" != "x$ac_new_val"; then
  2728. # differences in whitespace do not lead to failure.
  2729. ac_old_val_w=`echo x $ac_old_val`
  2730. ac_new_val_w=`echo x $ac_new_val`
  2731. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2733. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2734. ac_cache_corrupted=:
  2735. else
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2737. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2738. eval $ac_var=\$ac_old_val
  2739. fi
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2741. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2743. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2744. fi;;
  2745. esac
  2746. # Pass precious variables to config.status.
  2747. if test "$ac_new_set" = set; then
  2748. case $ac_new_val in
  2749. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2750. *) ac_arg=$ac_var=$ac_new_val ;;
  2751. esac
  2752. case " $ac_configure_args " in
  2753. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2754. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2755. esac
  2756. fi
  2757. done
  2758. if $ac_cache_corrupted; then
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2760. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2762. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2763. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2764. fi
  2765. ## -------------------- ##
  2766. ## Main body of script. ##
  2767. ## -------------------- ##
  2768. ac_ext=c
  2769. ac_cpp='$CPP $CPPFLAGS'
  2770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2773. # cross-compile macros
  2774. ac_aux_dir=
  2775. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2776. for ac_t in install-sh install.sh shtool; do
  2777. if test -f "$ac_dir/$ac_t"; then
  2778. ac_aux_dir=$ac_dir
  2779. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2780. break 2
  2781. fi
  2782. done
  2783. done
  2784. if test -z "$ac_aux_dir"; then
  2785. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2786. fi
  2787. # These three variables are undocumented and unsupported,
  2788. # and are intended to be withdrawn in a future Autoconf release.
  2789. # They can cause serious problems if a builder's source tree is in a directory
  2790. # whose full name contains unusual characters.
  2791. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2792. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2793. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2794. # Make sure we can run config.sub.
  2795. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2796. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2798. $as_echo_n "checking build system type... " >&6; }
  2799. if test "${ac_cv_build+set}" = set; then :
  2800. $as_echo_n "(cached) " >&6
  2801. else
  2802. ac_build_alias=$build_alias
  2803. test "x$ac_build_alias" = x &&
  2804. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2805. test "x$ac_build_alias" = x &&
  2806. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2807. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2808. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2809. fi
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2811. $as_echo "$ac_cv_build" >&6; }
  2812. case $ac_cv_build in
  2813. *-*-*) ;;
  2814. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2815. esac
  2816. build=$ac_cv_build
  2817. ac_save_IFS=$IFS; IFS='-'
  2818. set x $ac_cv_build
  2819. shift
  2820. build_cpu=$1
  2821. build_vendor=$2
  2822. shift; shift
  2823. # Remember, the first character of IFS is used to create $*,
  2824. # except with old shells:
  2825. build_os=$*
  2826. IFS=$ac_save_IFS
  2827. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2829. $as_echo_n "checking host system type... " >&6; }
  2830. if test "${ac_cv_host+set}" = set; then :
  2831. $as_echo_n "(cached) " >&6
  2832. else
  2833. if test "x$host_alias" = x; then
  2834. ac_cv_host=$ac_cv_build
  2835. else
  2836. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2837. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2838. fi
  2839. fi
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2841. $as_echo "$ac_cv_host" >&6; }
  2842. case $ac_cv_host in
  2843. *-*-*) ;;
  2844. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2845. esac
  2846. host=$ac_cv_host
  2847. ac_save_IFS=$IFS; IFS='-'
  2848. set x $ac_cv_host
  2849. shift
  2850. host_cpu=$1
  2851. host_vendor=$2
  2852. shift; shift
  2853. # Remember, the first character of IFS is used to create $*,
  2854. # except with old shells:
  2855. host_os=$*
  2856. IFS=$ac_save_IFS
  2857. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2858. # check existence of the package
  2859. ac_aux_dir=
  2860. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  2861. for ac_t in install-sh install.sh shtool; do
  2862. if test -f "$ac_dir/$ac_t"; then
  2863. ac_aux_dir=$ac_dir
  2864. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2865. break 2
  2866. fi
  2867. done
  2868. done
  2869. if test -z "$ac_aux_dir"; then
  2870. as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
  2871. fi
  2872. # These three variables are undocumented and unsupported,
  2873. # and are intended to be withdrawn in a future Autoconf release.
  2874. # They can cause serious problems if a builder's source tree is in a directory
  2875. # whose full name contains unusual characters.
  2876. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2877. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2878. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2879. # specify output header file
  2880. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  2881. ac_ext=c
  2882. ac_cpp='$CPP $CPPFLAGS'
  2883. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2884. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2885. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2886. if test -n "$ac_tool_prefix"; then
  2887. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2888. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2890. $as_echo_n "checking for $ac_word... " >&6; }
  2891. if test "${ac_cv_prog_CC+set}" = set; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. if test -n "$CC"; then
  2895. ac_cv_prog_CC="$CC" # Let the user override the test.
  2896. else
  2897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2898. for as_dir in $PATH
  2899. do
  2900. IFS=$as_save_IFS
  2901. test -z "$as_dir" && as_dir=.
  2902. for ac_exec_ext in '' $ac_executable_extensions; do
  2903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2904. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2906. break 2
  2907. fi
  2908. done
  2909. done
  2910. IFS=$as_save_IFS
  2911. fi
  2912. fi
  2913. CC=$ac_cv_prog_CC
  2914. if test -n "$CC"; then
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2916. $as_echo "$CC" >&6; }
  2917. else
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. fi
  2921. fi
  2922. if test -z "$ac_cv_prog_CC"; then
  2923. ac_ct_CC=$CC
  2924. # Extract the first word of "gcc", so it can be a program name with args.
  2925. set dummy gcc; ac_word=$2
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2927. $as_echo_n "checking for $ac_word... " >&6; }
  2928. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2929. $as_echo_n "(cached) " >&6
  2930. else
  2931. if test -n "$ac_ct_CC"; then
  2932. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2933. else
  2934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2935. for as_dir in $PATH
  2936. do
  2937. IFS=$as_save_IFS
  2938. test -z "$as_dir" && as_dir=.
  2939. for ac_exec_ext in '' $ac_executable_extensions; do
  2940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2941. ac_cv_prog_ac_ct_CC="gcc"
  2942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2943. break 2
  2944. fi
  2945. done
  2946. done
  2947. IFS=$as_save_IFS
  2948. fi
  2949. fi
  2950. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2951. if test -n "$ac_ct_CC"; then
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2953. $as_echo "$ac_ct_CC" >&6; }
  2954. else
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2956. $as_echo "no" >&6; }
  2957. fi
  2958. if test "x$ac_ct_CC" = x; then
  2959. CC=""
  2960. else
  2961. case $cross_compiling:$ac_tool_warned in
  2962. yes:)
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2965. ac_tool_warned=yes ;;
  2966. esac
  2967. CC=$ac_ct_CC
  2968. fi
  2969. else
  2970. CC="$ac_cv_prog_CC"
  2971. fi
  2972. if test -z "$CC"; then
  2973. if test -n "$ac_tool_prefix"; then
  2974. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2975. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2977. $as_echo_n "checking for $ac_word... " >&6; }
  2978. if test "${ac_cv_prog_CC+set}" = set; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. if test -n "$CC"; then
  2982. ac_cv_prog_CC="$CC" # Let the user override the test.
  2983. else
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. for as_dir in $PATH
  2986. do
  2987. IFS=$as_save_IFS
  2988. test -z "$as_dir" && as_dir=.
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2991. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2993. break 2
  2994. fi
  2995. done
  2996. done
  2997. IFS=$as_save_IFS
  2998. fi
  2999. fi
  3000. CC=$ac_cv_prog_CC
  3001. if test -n "$CC"; then
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3003. $as_echo "$CC" >&6; }
  3004. else
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3006. $as_echo "no" >&6; }
  3007. fi
  3008. fi
  3009. fi
  3010. if test -z "$CC"; then
  3011. # Extract the first word of "cc", so it can be a program name with args.
  3012. set dummy cc; ac_word=$2
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3014. $as_echo_n "checking for $ac_word... " >&6; }
  3015. if test "${ac_cv_prog_CC+set}" = set; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. if test -n "$CC"; then
  3019. ac_cv_prog_CC="$CC" # Let the user override the test.
  3020. else
  3021. ac_prog_rejected=no
  3022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3023. for as_dir in $PATH
  3024. do
  3025. IFS=$as_save_IFS
  3026. test -z "$as_dir" && as_dir=.
  3027. for ac_exec_ext in '' $ac_executable_extensions; do
  3028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3029. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3030. ac_prog_rejected=yes
  3031. continue
  3032. fi
  3033. ac_cv_prog_CC="cc"
  3034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3035. break 2
  3036. fi
  3037. done
  3038. done
  3039. IFS=$as_save_IFS
  3040. if test $ac_prog_rejected = yes; then
  3041. # We found a bogon in the path, so make sure we never use it.
  3042. set dummy $ac_cv_prog_CC
  3043. shift
  3044. if test $# != 0; then
  3045. # We chose a different compiler from the bogus one.
  3046. # However, it has the same basename, so the bogon will be chosen
  3047. # first if we set CC to just the basename; use the full file name.
  3048. shift
  3049. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3050. fi
  3051. fi
  3052. fi
  3053. fi
  3054. CC=$ac_cv_prog_CC
  3055. if test -n "$CC"; then
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3057. $as_echo "$CC" >&6; }
  3058. else
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3060. $as_echo "no" >&6; }
  3061. fi
  3062. fi
  3063. if test -z "$CC"; then
  3064. if test -n "$ac_tool_prefix"; then
  3065. for ac_prog in cl.exe
  3066. do
  3067. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3068. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3070. $as_echo_n "checking for $ac_word... " >&6; }
  3071. if test "${ac_cv_prog_CC+set}" = set; then :
  3072. $as_echo_n "(cached) " >&6
  3073. else
  3074. if test -n "$CC"; then
  3075. ac_cv_prog_CC="$CC" # Let the user override the test.
  3076. else
  3077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3078. for as_dir in $PATH
  3079. do
  3080. IFS=$as_save_IFS
  3081. test -z "$as_dir" && as_dir=.
  3082. for ac_exec_ext in '' $ac_executable_extensions; do
  3083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3084. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3086. break 2
  3087. fi
  3088. done
  3089. done
  3090. IFS=$as_save_IFS
  3091. fi
  3092. fi
  3093. CC=$ac_cv_prog_CC
  3094. if test -n "$CC"; then
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3096. $as_echo "$CC" >&6; }
  3097. else
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3099. $as_echo "no" >&6; }
  3100. fi
  3101. test -n "$CC" && break
  3102. done
  3103. fi
  3104. if test -z "$CC"; then
  3105. ac_ct_CC=$CC
  3106. for ac_prog in cl.exe
  3107. do
  3108. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3109. set dummy $ac_prog; ac_word=$2
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3111. $as_echo_n "checking for $ac_word... " >&6; }
  3112. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3113. $as_echo_n "(cached) " >&6
  3114. else
  3115. if test -n "$ac_ct_CC"; then
  3116. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3117. else
  3118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3119. for as_dir in $PATH
  3120. do
  3121. IFS=$as_save_IFS
  3122. test -z "$as_dir" && as_dir=.
  3123. for ac_exec_ext in '' $ac_executable_extensions; do
  3124. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3125. ac_cv_prog_ac_ct_CC="$ac_prog"
  3126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3127. break 2
  3128. fi
  3129. done
  3130. done
  3131. IFS=$as_save_IFS
  3132. fi
  3133. fi
  3134. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3135. if test -n "$ac_ct_CC"; then
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3137. $as_echo "$ac_ct_CC" >&6; }
  3138. else
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3140. $as_echo "no" >&6; }
  3141. fi
  3142. test -n "$ac_ct_CC" && break
  3143. done
  3144. if test "x$ac_ct_CC" = x; then
  3145. CC=""
  3146. else
  3147. case $cross_compiling:$ac_tool_warned in
  3148. yes:)
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3151. ac_tool_warned=yes ;;
  3152. esac
  3153. CC=$ac_ct_CC
  3154. fi
  3155. fi
  3156. fi
  3157. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3159. as_fn_error "no acceptable C compiler found in \$PATH
  3160. See \`config.log' for more details." "$LINENO" 5; }
  3161. # Provide some information about the compiler.
  3162. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3163. set X $ac_compile
  3164. ac_compiler=$2
  3165. for ac_option in --version -v -V -qversion; do
  3166. { { ac_try="$ac_compiler $ac_option >&5"
  3167. case "(($ac_try" in
  3168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3169. *) ac_try_echo=$ac_try;;
  3170. esac
  3171. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3172. $as_echo "$ac_try_echo"; } >&5
  3173. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3174. ac_status=$?
  3175. if test -s conftest.err; then
  3176. sed '10a\
  3177. ... rest of stderr output deleted ...
  3178. 10q' conftest.err >conftest.er1
  3179. cat conftest.er1 >&5
  3180. fi
  3181. rm -f conftest.er1 conftest.err
  3182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3183. test $ac_status = 0; }
  3184. done
  3185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3186. /* end confdefs.h. */
  3187. int
  3188. main ()
  3189. {
  3190. ;
  3191. return 0;
  3192. }
  3193. _ACEOF
  3194. ac_clean_files_save=$ac_clean_files
  3195. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3196. # Try to create an executable without -o first, disregard a.out.
  3197. # It will help us diagnose broken compilers, and finding out an intuition
  3198. # of exeext.
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3200. $as_echo_n "checking whether the C compiler works... " >&6; }
  3201. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3202. # The possible output files:
  3203. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3204. ac_rmfiles=
  3205. for ac_file in $ac_files
  3206. do
  3207. case $ac_file in
  3208. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3209. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3210. esac
  3211. done
  3212. rm -f $ac_rmfiles
  3213. if { { ac_try="$ac_link_default"
  3214. case "(($ac_try" in
  3215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3216. *) ac_try_echo=$ac_try;;
  3217. esac
  3218. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3219. $as_echo "$ac_try_echo"; } >&5
  3220. (eval "$ac_link_default") 2>&5
  3221. ac_status=$?
  3222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3223. test $ac_status = 0; }; then :
  3224. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3225. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3226. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3227. # so that the user can short-circuit this test for compilers unknown to
  3228. # Autoconf.
  3229. for ac_file in $ac_files ''
  3230. do
  3231. test -f "$ac_file" || continue
  3232. case $ac_file in
  3233. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3234. ;;
  3235. [ab].out )
  3236. # We found the default executable, but exeext='' is most
  3237. # certainly right.
  3238. break;;
  3239. *.* )
  3240. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3241. then :; else
  3242. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3243. fi
  3244. # We set ac_cv_exeext here because the later test for it is not
  3245. # safe: cross compilers may not add the suffix if given an `-o'
  3246. # argument, so we may need to know it at that point already.
  3247. # Even if this section looks crufty: it has the advantage of
  3248. # actually working.
  3249. break;;
  3250. * )
  3251. break;;
  3252. esac
  3253. done
  3254. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3255. else
  3256. ac_file=''
  3257. fi
  3258. if test -z "$ac_file"; then :
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3260. $as_echo "no" >&6; }
  3261. $as_echo "$as_me: failed program was:" >&5
  3262. sed 's/^/| /' conftest.$ac_ext >&5
  3263. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3264. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3265. { as_fn_set_status 77
  3266. as_fn_error "C compiler cannot create executables
  3267. See \`config.log' for more details." "$LINENO" 5; }; }
  3268. else
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3270. $as_echo "yes" >&6; }
  3271. fi
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3273. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3275. $as_echo "$ac_file" >&6; }
  3276. ac_exeext=$ac_cv_exeext
  3277. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3278. ac_clean_files=$ac_clean_files_save
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3280. $as_echo_n "checking for suffix of executables... " >&6; }
  3281. if { { ac_try="$ac_link"
  3282. case "(($ac_try" in
  3283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3284. *) ac_try_echo=$ac_try;;
  3285. esac
  3286. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3287. $as_echo "$ac_try_echo"; } >&5
  3288. (eval "$ac_link") 2>&5
  3289. ac_status=$?
  3290. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3291. test $ac_status = 0; }; then :
  3292. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3293. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3294. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3295. # `rm'.
  3296. for ac_file in conftest.exe conftest conftest.*; do
  3297. test -f "$ac_file" || continue
  3298. case $ac_file in
  3299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3300. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3301. break;;
  3302. * ) break;;
  3303. esac
  3304. done
  3305. else
  3306. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3307. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3308. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3309. See \`config.log' for more details." "$LINENO" 5; }
  3310. fi
  3311. rm -f conftest conftest$ac_cv_exeext
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3313. $as_echo "$ac_cv_exeext" >&6; }
  3314. rm -f conftest.$ac_ext
  3315. EXEEXT=$ac_cv_exeext
  3316. ac_exeext=$EXEEXT
  3317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3318. /* end confdefs.h. */
  3319. #include <stdio.h>
  3320. int
  3321. main ()
  3322. {
  3323. FILE *f = fopen ("conftest.out", "w");
  3324. return ferror (f) || fclose (f) != 0;
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. ac_clean_files="$ac_clean_files conftest.out"
  3330. # Check that the compiler produces executables we can run. If not, either
  3331. # the compiler is broken, or we cross compile.
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3333. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3334. if test "$cross_compiling" != yes; then
  3335. { { ac_try="$ac_link"
  3336. case "(($ac_try" in
  3337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3338. *) ac_try_echo=$ac_try;;
  3339. esac
  3340. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3341. $as_echo "$ac_try_echo"; } >&5
  3342. (eval "$ac_link") 2>&5
  3343. ac_status=$?
  3344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3345. test $ac_status = 0; }
  3346. if { ac_try='./conftest$ac_cv_exeext'
  3347. { { case "(($ac_try" in
  3348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3349. *) ac_try_echo=$ac_try;;
  3350. esac
  3351. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3352. $as_echo "$ac_try_echo"; } >&5
  3353. (eval "$ac_try") 2>&5
  3354. ac_status=$?
  3355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3356. test $ac_status = 0; }; }; then
  3357. cross_compiling=no
  3358. else
  3359. if test "$cross_compiling" = maybe; then
  3360. cross_compiling=yes
  3361. else
  3362. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3363. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3364. as_fn_error "cannot run C compiled programs.
  3365. If you meant to cross compile, use \`--host'.
  3366. See \`config.log' for more details." "$LINENO" 5; }
  3367. fi
  3368. fi
  3369. fi
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3371. $as_echo "$cross_compiling" >&6; }
  3372. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3373. ac_clean_files=$ac_clean_files_save
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3375. $as_echo_n "checking for suffix of object files... " >&6; }
  3376. if test "${ac_cv_objext+set}" = set; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. int
  3382. main ()
  3383. {
  3384. ;
  3385. return 0;
  3386. }
  3387. _ACEOF
  3388. rm -f conftest.o conftest.obj
  3389. if { { ac_try="$ac_compile"
  3390. case "(($ac_try" in
  3391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3392. *) ac_try_echo=$ac_try;;
  3393. esac
  3394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3395. $as_echo "$ac_try_echo"; } >&5
  3396. (eval "$ac_compile") 2>&5
  3397. ac_status=$?
  3398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3399. test $ac_status = 0; }; then :
  3400. for ac_file in conftest.o conftest.obj conftest.*; do
  3401. test -f "$ac_file" || continue;
  3402. case $ac_file in
  3403. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3404. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3405. break;;
  3406. esac
  3407. done
  3408. else
  3409. $as_echo "$as_me: failed program was:" >&5
  3410. sed 's/^/| /' conftest.$ac_ext >&5
  3411. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3413. as_fn_error "cannot compute suffix of object files: cannot compile
  3414. See \`config.log' for more details." "$LINENO" 5; }
  3415. fi
  3416. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3417. fi
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3419. $as_echo "$ac_cv_objext" >&6; }
  3420. OBJEXT=$ac_cv_objext
  3421. ac_objext=$OBJEXT
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3423. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3424. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3425. $as_echo_n "(cached) " >&6
  3426. else
  3427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3428. /* end confdefs.h. */
  3429. int
  3430. main ()
  3431. {
  3432. #ifndef __GNUC__
  3433. choke me
  3434. #endif
  3435. ;
  3436. return 0;
  3437. }
  3438. _ACEOF
  3439. if ac_fn_c_try_compile "$LINENO"; then :
  3440. ac_compiler_gnu=yes
  3441. else
  3442. ac_compiler_gnu=no
  3443. fi
  3444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3445. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3448. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3449. if test $ac_compiler_gnu = yes; then
  3450. GCC=yes
  3451. else
  3452. GCC=
  3453. fi
  3454. ac_test_CFLAGS=${CFLAGS+set}
  3455. ac_save_CFLAGS=$CFLAGS
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3457. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3458. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. ac_save_c_werror_flag=$ac_c_werror_flag
  3462. ac_c_werror_flag=yes
  3463. ac_cv_prog_cc_g=no
  3464. CFLAGS="-g"
  3465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3466. /* end confdefs.h. */
  3467. int
  3468. main ()
  3469. {
  3470. ;
  3471. return 0;
  3472. }
  3473. _ACEOF
  3474. if ac_fn_c_try_compile "$LINENO"; then :
  3475. ac_cv_prog_cc_g=yes
  3476. else
  3477. CFLAGS=""
  3478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3479. /* end confdefs.h. */
  3480. int
  3481. main ()
  3482. {
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. if ac_fn_c_try_compile "$LINENO"; then :
  3488. else
  3489. ac_c_werror_flag=$ac_save_c_werror_flag
  3490. CFLAGS="-g"
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. int
  3494. main ()
  3495. {
  3496. ;
  3497. return 0;
  3498. }
  3499. _ACEOF
  3500. if ac_fn_c_try_compile "$LINENO"; then :
  3501. ac_cv_prog_cc_g=yes
  3502. fi
  3503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3504. fi
  3505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3506. fi
  3507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3508. ac_c_werror_flag=$ac_save_c_werror_flag
  3509. fi
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3511. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3512. if test "$ac_test_CFLAGS" = set; then
  3513. CFLAGS=$ac_save_CFLAGS
  3514. elif test $ac_cv_prog_cc_g = yes; then
  3515. if test "$GCC" = yes; then
  3516. CFLAGS="-g -O2"
  3517. else
  3518. CFLAGS="-g"
  3519. fi
  3520. else
  3521. if test "$GCC" = yes; then
  3522. CFLAGS="-O2"
  3523. else
  3524. CFLAGS=
  3525. fi
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3528. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3529. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3530. $as_echo_n "(cached) " >&6
  3531. else
  3532. ac_cv_prog_cc_c89=no
  3533. ac_save_CC=$CC
  3534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3535. /* end confdefs.h. */
  3536. #include <stdarg.h>
  3537. #include <stdio.h>
  3538. #include <sys/types.h>
  3539. #include <sys/stat.h>
  3540. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3541. struct buf { int x; };
  3542. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3543. static char *e (p, i)
  3544. char **p;
  3545. int i;
  3546. {
  3547. return p[i];
  3548. }
  3549. static char *f (char * (*g) (char **, int), char **p, ...)
  3550. {
  3551. char *s;
  3552. va_list v;
  3553. va_start (v,p);
  3554. s = g (p, va_arg (v,int));
  3555. va_end (v);
  3556. return s;
  3557. }
  3558. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3559. function prototypes and stuff, but not '\xHH' hex character constants.
  3560. These don't provoke an error unfortunately, instead are silently treated
  3561. as 'x'. The following induces an error, until -std is added to get
  3562. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3563. array size at least. It's necessary to write '\x00'==0 to get something
  3564. that's true only with -std. */
  3565. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3566. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3567. inside strings and character constants. */
  3568. #define FOO(x) 'x'
  3569. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3570. int test (int i, double x);
  3571. struct s1 {int (*f) (int a);};
  3572. struct s2 {int (*f) (double a);};
  3573. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3574. int argc;
  3575. char **argv;
  3576. int
  3577. main ()
  3578. {
  3579. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3585. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3586. do
  3587. CC="$ac_save_CC $ac_arg"
  3588. if ac_fn_c_try_compile "$LINENO"; then :
  3589. ac_cv_prog_cc_c89=$ac_arg
  3590. fi
  3591. rm -f core conftest.err conftest.$ac_objext
  3592. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3593. done
  3594. rm -f conftest.$ac_ext
  3595. CC=$ac_save_CC
  3596. fi
  3597. # AC_CACHE_VAL
  3598. case "x$ac_cv_prog_cc_c89" in
  3599. x)
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3601. $as_echo "none needed" >&6; } ;;
  3602. xno)
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3604. $as_echo "unsupported" >&6; } ;;
  3605. *)
  3606. CC="$CC $ac_cv_prog_cc_c89"
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3608. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3609. esac
  3610. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3611. fi
  3612. ac_ext=c
  3613. ac_cpp='$CPP $CPPFLAGS'
  3614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3617. ac_ext=c
  3618. ac_cpp='$CPP $CPPFLAGS'
  3619. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3620. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3621. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3623. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3624. # On Suns, sometimes $CPP names a directory.
  3625. if test -n "$CPP" && test -d "$CPP"; then
  3626. CPP=
  3627. fi
  3628. if test -z "$CPP"; then
  3629. if test "${ac_cv_prog_CPP+set}" = set; then :
  3630. $as_echo_n "(cached) " >&6
  3631. else
  3632. # Double quotes because CPP needs to be expanded
  3633. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3634. do
  3635. ac_preproc_ok=false
  3636. for ac_c_preproc_warn_flag in '' yes
  3637. do
  3638. # Use a header file that comes with gcc, so configuring glibc
  3639. # with a fresh cross-compiler works.
  3640. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3641. # <limits.h> exists even on freestanding compilers.
  3642. # On the NeXT, cc -E runs the code through the compiler's parser,
  3643. # not just through cpp. "Syntax error" is here to catch this case.
  3644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3645. /* end confdefs.h. */
  3646. #ifdef __STDC__
  3647. # include <limits.h>
  3648. #else
  3649. # include <assert.h>
  3650. #endif
  3651. Syntax error
  3652. _ACEOF
  3653. if ac_fn_c_try_cpp "$LINENO"; then :
  3654. else
  3655. # Broken: fails on valid input.
  3656. continue
  3657. fi
  3658. rm -f conftest.err conftest.$ac_ext
  3659. # OK, works on sane cases. Now check whether nonexistent headers
  3660. # can be detected and how.
  3661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3662. /* end confdefs.h. */
  3663. #include <ac_nonexistent.h>
  3664. _ACEOF
  3665. if ac_fn_c_try_cpp "$LINENO"; then :
  3666. # Broken: success on invalid input.
  3667. continue
  3668. else
  3669. # Passes both tests.
  3670. ac_preproc_ok=:
  3671. break
  3672. fi
  3673. rm -f conftest.err conftest.$ac_ext
  3674. done
  3675. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3676. rm -f conftest.err conftest.$ac_ext
  3677. if $ac_preproc_ok; then :
  3678. break
  3679. fi
  3680. done
  3681. ac_cv_prog_CPP=$CPP
  3682. fi
  3683. CPP=$ac_cv_prog_CPP
  3684. else
  3685. ac_cv_prog_CPP=$CPP
  3686. fi
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3688. $as_echo "$CPP" >&6; }
  3689. ac_preproc_ok=false
  3690. for ac_c_preproc_warn_flag in '' yes
  3691. do
  3692. # Use a header file that comes with gcc, so configuring glibc
  3693. # with a fresh cross-compiler works.
  3694. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3695. # <limits.h> exists even on freestanding compilers.
  3696. # On the NeXT, cc -E runs the code through the compiler's parser,
  3697. # not just through cpp. "Syntax error" is here to catch this case.
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. #ifdef __STDC__
  3701. # include <limits.h>
  3702. #else
  3703. # include <assert.h>
  3704. #endif
  3705. Syntax error
  3706. _ACEOF
  3707. if ac_fn_c_try_cpp "$LINENO"; then :
  3708. else
  3709. # Broken: fails on valid input.
  3710. continue
  3711. fi
  3712. rm -f conftest.err conftest.$ac_ext
  3713. # OK, works on sane cases. Now check whether nonexistent headers
  3714. # can be detected and how.
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. #include <ac_nonexistent.h>
  3718. _ACEOF
  3719. if ac_fn_c_try_cpp "$LINENO"; then :
  3720. # Broken: success on invalid input.
  3721. continue
  3722. else
  3723. # Passes both tests.
  3724. ac_preproc_ok=:
  3725. break
  3726. fi
  3727. rm -f conftest.err conftest.$ac_ext
  3728. done
  3729. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3730. rm -f conftest.err conftest.$ac_ext
  3731. if $ac_preproc_ok; then :
  3732. else
  3733. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3734. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3735. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3736. See \`config.log' for more details." "$LINENO" 5; }
  3737. fi
  3738. ac_ext=c
  3739. ac_cpp='$CPP $CPPFLAGS'
  3740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3744. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3745. if test "${ac_cv_path_GREP+set}" = set; then :
  3746. $as_echo_n "(cached) " >&6
  3747. else
  3748. if test -z "$GREP"; then
  3749. ac_path_GREP_found=false
  3750. # Loop through the user's path and test for each of PROGNAME-LIST
  3751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3752. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3753. do
  3754. IFS=$as_save_IFS
  3755. test -z "$as_dir" && as_dir=.
  3756. for ac_prog in grep ggrep; do
  3757. for ac_exec_ext in '' $ac_executable_extensions; do
  3758. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3759. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3760. # Check for GNU ac_path_GREP and select it if it is found.
  3761. # Check for GNU $ac_path_GREP
  3762. case `"$ac_path_GREP" --version 2>&1` in
  3763. *GNU*)
  3764. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3765. *)
  3766. ac_count=0
  3767. $as_echo_n 0123456789 >"conftest.in"
  3768. while :
  3769. do
  3770. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3771. mv "conftest.tmp" "conftest.in"
  3772. cp "conftest.in" "conftest.nl"
  3773. $as_echo 'GREP' >> "conftest.nl"
  3774. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3775. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3776. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3777. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3778. # Best one so far, save it but keep looking for a better one
  3779. ac_cv_path_GREP="$ac_path_GREP"
  3780. ac_path_GREP_max=$ac_count
  3781. fi
  3782. # 10*(2^10) chars as input seems more than enough
  3783. test $ac_count -gt 10 && break
  3784. done
  3785. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3786. esac
  3787. $ac_path_GREP_found && break 3
  3788. done
  3789. done
  3790. done
  3791. IFS=$as_save_IFS
  3792. if test -z "$ac_cv_path_GREP"; then
  3793. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3794. fi
  3795. else
  3796. ac_cv_path_GREP=$GREP
  3797. fi
  3798. fi
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3800. $as_echo "$ac_cv_path_GREP" >&6; }
  3801. GREP="$ac_cv_path_GREP"
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3803. $as_echo_n "checking for egrep... " >&6; }
  3804. if test "${ac_cv_path_EGREP+set}" = set; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3808. then ac_cv_path_EGREP="$GREP -E"
  3809. else
  3810. if test -z "$EGREP"; then
  3811. ac_path_EGREP_found=false
  3812. # Loop through the user's path and test for each of PROGNAME-LIST
  3813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3814. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3815. do
  3816. IFS=$as_save_IFS
  3817. test -z "$as_dir" && as_dir=.
  3818. for ac_prog in egrep; do
  3819. for ac_exec_ext in '' $ac_executable_extensions; do
  3820. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3821. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3822. # Check for GNU ac_path_EGREP and select it if it is found.
  3823. # Check for GNU $ac_path_EGREP
  3824. case `"$ac_path_EGREP" --version 2>&1` in
  3825. *GNU*)
  3826. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3827. *)
  3828. ac_count=0
  3829. $as_echo_n 0123456789 >"conftest.in"
  3830. while :
  3831. do
  3832. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3833. mv "conftest.tmp" "conftest.in"
  3834. cp "conftest.in" "conftest.nl"
  3835. $as_echo 'EGREP' >> "conftest.nl"
  3836. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3837. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3838. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3839. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3840. # Best one so far, save it but keep looking for a better one
  3841. ac_cv_path_EGREP="$ac_path_EGREP"
  3842. ac_path_EGREP_max=$ac_count
  3843. fi
  3844. # 10*(2^10) chars as input seems more than enough
  3845. test $ac_count -gt 10 && break
  3846. done
  3847. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3848. esac
  3849. $ac_path_EGREP_found && break 3
  3850. done
  3851. done
  3852. done
  3853. IFS=$as_save_IFS
  3854. if test -z "$ac_cv_path_EGREP"; then
  3855. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3856. fi
  3857. else
  3858. ac_cv_path_EGREP=$EGREP
  3859. fi
  3860. fi
  3861. fi
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3863. $as_echo "$ac_cv_path_EGREP" >&6; }
  3864. EGREP="$ac_cv_path_EGREP"
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3866. $as_echo_n "checking for ANSI C header files... " >&6; }
  3867. if test "${ac_cv_header_stdc+set}" = set; then :
  3868. $as_echo_n "(cached) " >&6
  3869. else
  3870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3871. /* end confdefs.h. */
  3872. #include <stdlib.h>
  3873. #include <stdarg.h>
  3874. #include <string.h>
  3875. #include <float.h>
  3876. int
  3877. main ()
  3878. {
  3879. ;
  3880. return 0;
  3881. }
  3882. _ACEOF
  3883. if ac_fn_c_try_compile "$LINENO"; then :
  3884. ac_cv_header_stdc=yes
  3885. else
  3886. ac_cv_header_stdc=no
  3887. fi
  3888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3889. if test $ac_cv_header_stdc = yes; then
  3890. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3892. /* end confdefs.h. */
  3893. #include <string.h>
  3894. _ACEOF
  3895. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3896. $EGREP "memchr" >/dev/null 2>&1; then :
  3897. else
  3898. ac_cv_header_stdc=no
  3899. fi
  3900. rm -f conftest*
  3901. fi
  3902. if test $ac_cv_header_stdc = yes; then
  3903. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3905. /* end confdefs.h. */
  3906. #include <stdlib.h>
  3907. _ACEOF
  3908. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3909. $EGREP "free" >/dev/null 2>&1; then :
  3910. else
  3911. ac_cv_header_stdc=no
  3912. fi
  3913. rm -f conftest*
  3914. fi
  3915. if test $ac_cv_header_stdc = yes; then
  3916. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3917. if test "$cross_compiling" = yes; then :
  3918. :
  3919. else
  3920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3921. /* end confdefs.h. */
  3922. #include <ctype.h>
  3923. #include <stdlib.h>
  3924. #if ((' ' & 0x0FF) == 0x020)
  3925. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3926. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3927. #else
  3928. # define ISLOWER(c) \
  3929. (('a' <= (c) && (c) <= 'i') \
  3930. || ('j' <= (c) && (c) <= 'r') \
  3931. || ('s' <= (c) && (c) <= 'z'))
  3932. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3933. #endif
  3934. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3935. int
  3936. main ()
  3937. {
  3938. int i;
  3939. for (i = 0; i < 256; i++)
  3940. if (XOR (islower (i), ISLOWER (i))
  3941. || toupper (i) != TOUPPER (i))
  3942. return 2;
  3943. return 0;
  3944. }
  3945. _ACEOF
  3946. if ac_fn_c_try_run "$LINENO"; then :
  3947. else
  3948. ac_cv_header_stdc=no
  3949. fi
  3950. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3951. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3952. fi
  3953. fi
  3954. fi
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3956. $as_echo "$ac_cv_header_stdc" >&6; }
  3957. if test $ac_cv_header_stdc = yes; then
  3958. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3959. fi
  3960. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3961. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3962. inttypes.h stdint.h unistd.h
  3963. do :
  3964. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3965. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3966. "
  3967. eval as_val=\$$as_ac_Header
  3968. if test "x$as_val" = x""yes; then :
  3969. cat >>confdefs.h <<_ACEOF
  3970. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3971. _ACEOF
  3972. fi
  3973. done
  3974. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3975. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3976. MINIX=yes
  3977. else
  3978. MINIX=
  3979. fi
  3980. if test "$MINIX" = yes; then
  3981. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3982. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3983. $as_echo "#define _MINIX 1" >>confdefs.h
  3984. fi
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3986. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3987. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3988. $as_echo_n "(cached) " >&6
  3989. else
  3990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3991. /* end confdefs.h. */
  3992. # define __EXTENSIONS__ 1
  3993. $ac_includes_default
  3994. int
  3995. main ()
  3996. {
  3997. ;
  3998. return 0;
  3999. }
  4000. _ACEOF
  4001. if ac_fn_c_try_compile "$LINENO"; then :
  4002. ac_cv_safe_to_define___extensions__=yes
  4003. else
  4004. ac_cv_safe_to_define___extensions__=no
  4005. fi
  4006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4007. fi
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4009. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4010. test $ac_cv_safe_to_define___extensions__ = yes &&
  4011. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4012. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4013. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4014. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4015. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4016. # note- does not work on FreeBSD
  4017. case "${host_os}" in
  4018. freebsd*)
  4019. ac_default_prefix=/usr/local
  4020. CPPFLAGS=-I/usr/local/include
  4021. LDFLAGS=-L/usr/local/lib
  4022. ;;
  4023. darwin*)
  4024. ac_default_prefix=/usr/local
  4025. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  4026. $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
  4027. ;;
  4028. *)
  4029. ac_default_prefix=/usr
  4030. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4031. if test ${sysconfdir} = '${prefix}/etc'; then
  4032. sysconfdir=/etc
  4033. fi
  4034. if test ${mandir} = '${prefix}/man'; then
  4035. mandir=/usr/share/man
  4036. fi
  4037. fi
  4038. ;;
  4039. esac
  4040. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4041. if test ${localstatedir} = '${prefix}/var'; then
  4042. localstatedir=/var
  4043. fi
  4044. fi
  4045. BUILD_PLATFORM=${build}
  4046. BUILD_CPU=${build_cpu}
  4047. BUILD_VENDOR=${build_vendor}
  4048. BUILD_OS=${build_os}
  4049. HOST_PLATFORM=${host}
  4050. HOST_CPU=${host_cpu}
  4051. HOST_VENDOR=${host_vendor}
  4052. HOST_OS=${host_os}
  4053. case "${host_os}" in
  4054. freebsd*)
  4055. OSARCH=FreeBSD
  4056. ;;
  4057. netbsd*)
  4058. OSARCH=NetBSD
  4059. ;;
  4060. openbsd*)
  4061. OSARCH=OpenBSD
  4062. ;;
  4063. solaris*)
  4064. OSARCH=SunOS
  4065. ;;
  4066. linux-gnueabi)
  4067. OSARCH=linux-gnu
  4068. ;;
  4069. *)
  4070. OSARCH=${HOST_OS}
  4071. ;;
  4072. esac
  4073. # check for uname
  4074. if test -n "$ac_tool_prefix"; then
  4075. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4076. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4078. $as_echo_n "checking for $ac_word... " >&6; }
  4079. if test "${ac_cv_path_UNAME+set}" = set; then :
  4080. $as_echo_n "(cached) " >&6
  4081. else
  4082. case $UNAME in
  4083. [\\/]* | ?:[\\/]*)
  4084. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4085. ;;
  4086. *)
  4087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4088. for as_dir in $PATH
  4089. do
  4090. IFS=$as_save_IFS
  4091. test -z "$as_dir" && as_dir=.
  4092. for ac_exec_ext in '' $ac_executable_extensions; do
  4093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4094. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4096. break 2
  4097. fi
  4098. done
  4099. done
  4100. IFS=$as_save_IFS
  4101. ;;
  4102. esac
  4103. fi
  4104. UNAME=$ac_cv_path_UNAME
  4105. if test -n "$UNAME"; then
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4107. $as_echo "$UNAME" >&6; }
  4108. else
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4110. $as_echo "no" >&6; }
  4111. fi
  4112. fi
  4113. if test -z "$ac_cv_path_UNAME"; then
  4114. ac_pt_UNAME=$UNAME
  4115. # Extract the first word of "uname", so it can be a program name with args.
  4116. set dummy uname; ac_word=$2
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4118. $as_echo_n "checking for $ac_word... " >&6; }
  4119. if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then :
  4120. $as_echo_n "(cached) " >&6
  4121. else
  4122. case $ac_pt_UNAME in
  4123. [\\/]* | ?:[\\/]*)
  4124. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4125. ;;
  4126. *)
  4127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4128. for as_dir in $PATH
  4129. do
  4130. IFS=$as_save_IFS
  4131. test -z "$as_dir" && as_dir=.
  4132. for ac_exec_ext in '' $ac_executable_extensions; do
  4133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4134. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4136. break 2
  4137. fi
  4138. done
  4139. done
  4140. IFS=$as_save_IFS
  4141. ;;
  4142. esac
  4143. fi
  4144. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4145. if test -n "$ac_pt_UNAME"; then
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
  4147. $as_echo "$ac_pt_UNAME" >&6; }
  4148. else
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4150. $as_echo "no" >&6; }
  4151. fi
  4152. if test "x$ac_pt_UNAME" = x; then
  4153. UNAME="No"
  4154. else
  4155. case $cross_compiling:$ac_tool_warned in
  4156. yes:)
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4159. ac_tool_warned=yes ;;
  4160. esac
  4161. UNAME=$ac_pt_UNAME
  4162. fi
  4163. else
  4164. UNAME="$ac_cv_path_UNAME"
  4165. fi
  4166. if test ! x"${UNAME}" = xNo; then
  4167. PBX_OSREV=$(${UNAME} -r)
  4168. fi
  4169. # cross-compile checks
  4170. if test "${cross_compiling}" = "yes";
  4171. then
  4172. if test -n "$ac_tool_prefix"; then
  4173. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4174. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4176. $as_echo_n "checking for $ac_word... " >&6; }
  4177. if test "${ac_cv_prog_CC+set}" = set; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if test -n "$CC"; then
  4181. ac_cv_prog_CC="$CC" # Let the user override the test.
  4182. else
  4183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4184. for as_dir in $PATH
  4185. do
  4186. IFS=$as_save_IFS
  4187. test -z "$as_dir" && as_dir=.
  4188. for ac_exec_ext in '' $ac_executable_extensions; do
  4189. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4190. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4192. break 2
  4193. fi
  4194. done
  4195. done
  4196. IFS=$as_save_IFS
  4197. fi
  4198. fi
  4199. CC=$ac_cv_prog_CC
  4200. if test -n "$CC"; then
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4202. $as_echo "$CC" >&6; }
  4203. else
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4205. $as_echo "no" >&6; }
  4206. fi
  4207. fi
  4208. if test -z "$ac_cv_prog_CC"; then
  4209. ac_ct_CC=$CC
  4210. # Extract the first word of "gcc", so it can be a program name with args.
  4211. set dummy gcc; ac_word=$2
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4213. $as_echo_n "checking for $ac_word... " >&6; }
  4214. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4215. $as_echo_n "(cached) " >&6
  4216. else
  4217. if test -n "$ac_ct_CC"; then
  4218. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4219. else
  4220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4221. for as_dir in $PATH
  4222. do
  4223. IFS=$as_save_IFS
  4224. test -z "$as_dir" && as_dir=.
  4225. for ac_exec_ext in '' $ac_executable_extensions; do
  4226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4227. ac_cv_prog_ac_ct_CC="gcc"
  4228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4229. break 2
  4230. fi
  4231. done
  4232. done
  4233. IFS=$as_save_IFS
  4234. fi
  4235. fi
  4236. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4237. if test -n "$ac_ct_CC"; then
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4239. $as_echo "$ac_ct_CC" >&6; }
  4240. else
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4242. $as_echo "no" >&6; }
  4243. fi
  4244. if test "x$ac_ct_CC" = x; then
  4245. CC=":"
  4246. else
  4247. case $cross_compiling:$ac_tool_warned in
  4248. yes:)
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4251. ac_tool_warned=yes ;;
  4252. esac
  4253. CC=$ac_ct_CC
  4254. fi
  4255. else
  4256. CC="$ac_cv_prog_CC"
  4257. fi
  4258. if test -n "$ac_tool_prefix"; then
  4259. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4260. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4262. $as_echo_n "checking for $ac_word... " >&6; }
  4263. if test "${ac_cv_prog_CXX+set}" = set; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. if test -n "$CXX"; then
  4267. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4268. else
  4269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4270. for as_dir in $PATH
  4271. do
  4272. IFS=$as_save_IFS
  4273. test -z "$as_dir" && as_dir=.
  4274. for ac_exec_ext in '' $ac_executable_extensions; do
  4275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4276. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4278. break 2
  4279. fi
  4280. done
  4281. done
  4282. IFS=$as_save_IFS
  4283. fi
  4284. fi
  4285. CXX=$ac_cv_prog_CXX
  4286. if test -n "$CXX"; then
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4288. $as_echo "$CXX" >&6; }
  4289. else
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4291. $as_echo "no" >&6; }
  4292. fi
  4293. fi
  4294. if test -z "$ac_cv_prog_CXX"; then
  4295. ac_ct_CXX=$CXX
  4296. # Extract the first word of "g++", so it can be a program name with args.
  4297. set dummy g++; ac_word=$2
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4299. $as_echo_n "checking for $ac_word... " >&6; }
  4300. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4301. $as_echo_n "(cached) " >&6
  4302. else
  4303. if test -n "$ac_ct_CXX"; then
  4304. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4305. else
  4306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. for as_dir in $PATH
  4308. do
  4309. IFS=$as_save_IFS
  4310. test -z "$as_dir" && as_dir=.
  4311. for ac_exec_ext in '' $ac_executable_extensions; do
  4312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4313. ac_cv_prog_ac_ct_CXX="g++"
  4314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4315. break 2
  4316. fi
  4317. done
  4318. done
  4319. IFS=$as_save_IFS
  4320. fi
  4321. fi
  4322. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4323. if test -n "$ac_ct_CXX"; then
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4325. $as_echo "$ac_ct_CXX" >&6; }
  4326. else
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4328. $as_echo "no" >&6; }
  4329. fi
  4330. if test "x$ac_ct_CXX" = x; then
  4331. CXX=":"
  4332. else
  4333. case $cross_compiling:$ac_tool_warned in
  4334. yes:)
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4337. ac_tool_warned=yes ;;
  4338. esac
  4339. CXX=$ac_ct_CXX
  4340. fi
  4341. else
  4342. CXX="$ac_cv_prog_CXX"
  4343. fi
  4344. if test -n "$ac_tool_prefix"; then
  4345. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4346. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4348. $as_echo_n "checking for $ac_word... " >&6; }
  4349. if test "${ac_cv_prog_LD+set}" = set; then :
  4350. $as_echo_n "(cached) " >&6
  4351. else
  4352. if test -n "$LD"; then
  4353. ac_cv_prog_LD="$LD" # Let the user override the test.
  4354. else
  4355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4356. for as_dir in $PATH
  4357. do
  4358. IFS=$as_save_IFS
  4359. test -z "$as_dir" && as_dir=.
  4360. for ac_exec_ext in '' $ac_executable_extensions; do
  4361. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4362. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4364. break 2
  4365. fi
  4366. done
  4367. done
  4368. IFS=$as_save_IFS
  4369. fi
  4370. fi
  4371. LD=$ac_cv_prog_LD
  4372. if test -n "$LD"; then
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4374. $as_echo "$LD" >&6; }
  4375. else
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4377. $as_echo "no" >&6; }
  4378. fi
  4379. fi
  4380. if test -z "$ac_cv_prog_LD"; then
  4381. ac_ct_LD=$LD
  4382. # Extract the first word of "ld", so it can be a program name with args.
  4383. set dummy ld; ac_word=$2
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4385. $as_echo_n "checking for $ac_word... " >&6; }
  4386. if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
  4387. $as_echo_n "(cached) " >&6
  4388. else
  4389. if test -n "$ac_ct_LD"; then
  4390. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4391. else
  4392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4393. for as_dir in $PATH
  4394. do
  4395. IFS=$as_save_IFS
  4396. test -z "$as_dir" && as_dir=.
  4397. for ac_exec_ext in '' $ac_executable_extensions; do
  4398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4399. ac_cv_prog_ac_ct_LD="ld"
  4400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4401. break 2
  4402. fi
  4403. done
  4404. done
  4405. IFS=$as_save_IFS
  4406. fi
  4407. fi
  4408. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4409. if test -n "$ac_ct_LD"; then
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  4411. $as_echo "$ac_ct_LD" >&6; }
  4412. else
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4414. $as_echo "no" >&6; }
  4415. fi
  4416. if test "x$ac_ct_LD" = x; then
  4417. LD=":"
  4418. else
  4419. case $cross_compiling:$ac_tool_warned in
  4420. yes:)
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4422. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4423. ac_tool_warned=yes ;;
  4424. esac
  4425. LD=$ac_ct_LD
  4426. fi
  4427. else
  4428. LD="$ac_cv_prog_LD"
  4429. fi
  4430. if test -n "$ac_tool_prefix"; then
  4431. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4432. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4434. $as_echo_n "checking for $ac_word... " >&6; }
  4435. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4436. $as_echo_n "(cached) " >&6
  4437. else
  4438. if test -n "$RANLIB"; then
  4439. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4440. else
  4441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4442. for as_dir in $PATH
  4443. do
  4444. IFS=$as_save_IFS
  4445. test -z "$as_dir" && as_dir=.
  4446. for ac_exec_ext in '' $ac_executable_extensions; do
  4447. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4448. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4450. break 2
  4451. fi
  4452. done
  4453. done
  4454. IFS=$as_save_IFS
  4455. fi
  4456. fi
  4457. RANLIB=$ac_cv_prog_RANLIB
  4458. if test -n "$RANLIB"; then
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4460. $as_echo "$RANLIB" >&6; }
  4461. else
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4463. $as_echo "no" >&6; }
  4464. fi
  4465. fi
  4466. if test -z "$ac_cv_prog_RANLIB"; then
  4467. ac_ct_RANLIB=$RANLIB
  4468. # Extract the first word of "ranlib", so it can be a program name with args.
  4469. set dummy ranlib; ac_word=$2
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4471. $as_echo_n "checking for $ac_word... " >&6; }
  4472. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4473. $as_echo_n "(cached) " >&6
  4474. else
  4475. if test -n "$ac_ct_RANLIB"; then
  4476. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4477. else
  4478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4479. for as_dir in $PATH
  4480. do
  4481. IFS=$as_save_IFS
  4482. test -z "$as_dir" && as_dir=.
  4483. for ac_exec_ext in '' $ac_executable_extensions; do
  4484. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4485. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4487. break 2
  4488. fi
  4489. done
  4490. done
  4491. IFS=$as_save_IFS
  4492. fi
  4493. fi
  4494. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4495. if test -n "$ac_ct_RANLIB"; then
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4497. $as_echo "$ac_ct_RANLIB" >&6; }
  4498. else
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4500. $as_echo "no" >&6; }
  4501. fi
  4502. if test "x$ac_ct_RANLIB" = x; then
  4503. RANLIB=":"
  4504. else
  4505. case $cross_compiling:$ac_tool_warned in
  4506. yes:)
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4508. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4509. ac_tool_warned=yes ;;
  4510. esac
  4511. RANLIB=$ac_ct_RANLIB
  4512. fi
  4513. else
  4514. RANLIB="$ac_cv_prog_RANLIB"
  4515. fi
  4516. fi
  4517. # Checks for programs.
  4518. ac_ext=c
  4519. ac_cpp='$CPP $CPPFLAGS'
  4520. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4521. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4522. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4523. if test -n "$ac_tool_prefix"; then
  4524. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4525. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4527. $as_echo_n "checking for $ac_word... " >&6; }
  4528. if test "${ac_cv_prog_CC+set}" = set; then :
  4529. $as_echo_n "(cached) " >&6
  4530. else
  4531. if test -n "$CC"; then
  4532. ac_cv_prog_CC="$CC" # Let the user override the test.
  4533. else
  4534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4535. for as_dir in $PATH
  4536. do
  4537. IFS=$as_save_IFS
  4538. test -z "$as_dir" && as_dir=.
  4539. for ac_exec_ext in '' $ac_executable_extensions; do
  4540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4541. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4543. break 2
  4544. fi
  4545. done
  4546. done
  4547. IFS=$as_save_IFS
  4548. fi
  4549. fi
  4550. CC=$ac_cv_prog_CC
  4551. if test -n "$CC"; then
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4553. $as_echo "$CC" >&6; }
  4554. else
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4556. $as_echo "no" >&6; }
  4557. fi
  4558. fi
  4559. if test -z "$ac_cv_prog_CC"; then
  4560. ac_ct_CC=$CC
  4561. # Extract the first word of "gcc", so it can be a program name with args.
  4562. set dummy gcc; ac_word=$2
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4564. $as_echo_n "checking for $ac_word... " >&6; }
  4565. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if test -n "$ac_ct_CC"; then
  4569. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4570. else
  4571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4572. for as_dir in $PATH
  4573. do
  4574. IFS=$as_save_IFS
  4575. test -z "$as_dir" && as_dir=.
  4576. for ac_exec_ext in '' $ac_executable_extensions; do
  4577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4578. ac_cv_prog_ac_ct_CC="gcc"
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4580. break 2
  4581. fi
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. fi
  4586. fi
  4587. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4588. if test -n "$ac_ct_CC"; then
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4590. $as_echo "$ac_ct_CC" >&6; }
  4591. else
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4593. $as_echo "no" >&6; }
  4594. fi
  4595. if test "x$ac_ct_CC" = x; then
  4596. CC=""
  4597. else
  4598. case $cross_compiling:$ac_tool_warned in
  4599. yes:)
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4601. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4602. ac_tool_warned=yes ;;
  4603. esac
  4604. CC=$ac_ct_CC
  4605. fi
  4606. else
  4607. CC="$ac_cv_prog_CC"
  4608. fi
  4609. if test -z "$CC"; then
  4610. if test -n "$ac_tool_prefix"; then
  4611. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4612. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4614. $as_echo_n "checking for $ac_word... " >&6; }
  4615. if test "${ac_cv_prog_CC+set}" = set; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. if test -n "$CC"; then
  4619. ac_cv_prog_CC="$CC" # Let the user override the test.
  4620. else
  4621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4622. for as_dir in $PATH
  4623. do
  4624. IFS=$as_save_IFS
  4625. test -z "$as_dir" && as_dir=.
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4628. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4630. break 2
  4631. fi
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. fi
  4636. fi
  4637. CC=$ac_cv_prog_CC
  4638. if test -n "$CC"; then
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4640. $as_echo "$CC" >&6; }
  4641. else
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4643. $as_echo "no" >&6; }
  4644. fi
  4645. fi
  4646. fi
  4647. if test -z "$CC"; then
  4648. # Extract the first word of "cc", so it can be a program name with args.
  4649. set dummy cc; ac_word=$2
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4651. $as_echo_n "checking for $ac_word... " >&6; }
  4652. if test "${ac_cv_prog_CC+set}" = set; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. if test -n "$CC"; then
  4656. ac_cv_prog_CC="$CC" # Let the user override the test.
  4657. else
  4658. ac_prog_rejected=no
  4659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4660. for as_dir in $PATH
  4661. do
  4662. IFS=$as_save_IFS
  4663. test -z "$as_dir" && as_dir=.
  4664. for ac_exec_ext in '' $ac_executable_extensions; do
  4665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4666. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4667. ac_prog_rejected=yes
  4668. continue
  4669. fi
  4670. ac_cv_prog_CC="cc"
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. if test $ac_prog_rejected = yes; then
  4678. # We found a bogon in the path, so make sure we never use it.
  4679. set dummy $ac_cv_prog_CC
  4680. shift
  4681. if test $# != 0; then
  4682. # We chose a different compiler from the bogus one.
  4683. # However, it has the same basename, so the bogon will be chosen
  4684. # first if we set CC to just the basename; use the full file name.
  4685. shift
  4686. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4687. fi
  4688. fi
  4689. fi
  4690. fi
  4691. CC=$ac_cv_prog_CC
  4692. if test -n "$CC"; then
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4694. $as_echo "$CC" >&6; }
  4695. else
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4697. $as_echo "no" >&6; }
  4698. fi
  4699. fi
  4700. if test -z "$CC"; then
  4701. if test -n "$ac_tool_prefix"; then
  4702. for ac_prog in cl.exe
  4703. do
  4704. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4705. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4707. $as_echo_n "checking for $ac_word... " >&6; }
  4708. if test "${ac_cv_prog_CC+set}" = set; then :
  4709. $as_echo_n "(cached) " >&6
  4710. else
  4711. if test -n "$CC"; then
  4712. ac_cv_prog_CC="$CC" # Let the user override the test.
  4713. else
  4714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4715. for as_dir in $PATH
  4716. do
  4717. IFS=$as_save_IFS
  4718. test -z "$as_dir" && as_dir=.
  4719. for ac_exec_ext in '' $ac_executable_extensions; do
  4720. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4721. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4723. break 2
  4724. fi
  4725. done
  4726. done
  4727. IFS=$as_save_IFS
  4728. fi
  4729. fi
  4730. CC=$ac_cv_prog_CC
  4731. if test -n "$CC"; then
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4733. $as_echo "$CC" >&6; }
  4734. else
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4736. $as_echo "no" >&6; }
  4737. fi
  4738. test -n "$CC" && break
  4739. done
  4740. fi
  4741. if test -z "$CC"; then
  4742. ac_ct_CC=$CC
  4743. for ac_prog in cl.exe
  4744. do
  4745. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4746. set dummy $ac_prog; ac_word=$2
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4748. $as_echo_n "checking for $ac_word... " >&6; }
  4749. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. if test -n "$ac_ct_CC"; then
  4753. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4754. else
  4755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756. for as_dir in $PATH
  4757. do
  4758. IFS=$as_save_IFS
  4759. test -z "$as_dir" && as_dir=.
  4760. for ac_exec_ext in '' $ac_executable_extensions; do
  4761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4762. ac_cv_prog_ac_ct_CC="$ac_prog"
  4763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764. break 2
  4765. fi
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. fi
  4770. fi
  4771. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4772. if test -n "$ac_ct_CC"; then
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4774. $as_echo "$ac_ct_CC" >&6; }
  4775. else
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4777. $as_echo "no" >&6; }
  4778. fi
  4779. test -n "$ac_ct_CC" && break
  4780. done
  4781. if test "x$ac_ct_CC" = x; then
  4782. CC=""
  4783. else
  4784. case $cross_compiling:$ac_tool_warned in
  4785. yes:)
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4787. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4788. ac_tool_warned=yes ;;
  4789. esac
  4790. CC=$ac_ct_CC
  4791. fi
  4792. fi
  4793. fi
  4794. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4795. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4796. as_fn_error "no acceptable C compiler found in \$PATH
  4797. See \`config.log' for more details." "$LINENO" 5; }
  4798. # Provide some information about the compiler.
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4800. set X $ac_compile
  4801. ac_compiler=$2
  4802. for ac_option in --version -v -V -qversion; do
  4803. { { ac_try="$ac_compiler $ac_option >&5"
  4804. case "(($ac_try" in
  4805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4806. *) ac_try_echo=$ac_try;;
  4807. esac
  4808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4809. $as_echo "$ac_try_echo"; } >&5
  4810. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4811. ac_status=$?
  4812. if test -s conftest.err; then
  4813. sed '10a\
  4814. ... rest of stderr output deleted ...
  4815. 10q' conftest.err >conftest.er1
  4816. cat conftest.er1 >&5
  4817. fi
  4818. rm -f conftest.er1 conftest.err
  4819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4820. test $ac_status = 0; }
  4821. done
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4823. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4824. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4828. /* end confdefs.h. */
  4829. int
  4830. main ()
  4831. {
  4832. #ifndef __GNUC__
  4833. choke me
  4834. #endif
  4835. ;
  4836. return 0;
  4837. }
  4838. _ACEOF
  4839. if ac_fn_c_try_compile "$LINENO"; then :
  4840. ac_compiler_gnu=yes
  4841. else
  4842. ac_compiler_gnu=no
  4843. fi
  4844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4845. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4846. fi
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4848. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4849. if test $ac_compiler_gnu = yes; then
  4850. GCC=yes
  4851. else
  4852. GCC=
  4853. fi
  4854. ac_test_CFLAGS=${CFLAGS+set}
  4855. ac_save_CFLAGS=$CFLAGS
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4857. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4858. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. ac_save_c_werror_flag=$ac_c_werror_flag
  4862. ac_c_werror_flag=yes
  4863. ac_cv_prog_cc_g=no
  4864. CFLAGS="-g"
  4865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4866. /* end confdefs.h. */
  4867. int
  4868. main ()
  4869. {
  4870. ;
  4871. return 0;
  4872. }
  4873. _ACEOF
  4874. if ac_fn_c_try_compile "$LINENO"; then :
  4875. ac_cv_prog_cc_g=yes
  4876. else
  4877. CFLAGS=""
  4878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4879. /* end confdefs.h. */
  4880. int
  4881. main ()
  4882. {
  4883. ;
  4884. return 0;
  4885. }
  4886. _ACEOF
  4887. if ac_fn_c_try_compile "$LINENO"; then :
  4888. else
  4889. ac_c_werror_flag=$ac_save_c_werror_flag
  4890. CFLAGS="-g"
  4891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4892. /* end confdefs.h. */
  4893. int
  4894. main ()
  4895. {
  4896. ;
  4897. return 0;
  4898. }
  4899. _ACEOF
  4900. if ac_fn_c_try_compile "$LINENO"; then :
  4901. ac_cv_prog_cc_g=yes
  4902. fi
  4903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4904. fi
  4905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4906. fi
  4907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4908. ac_c_werror_flag=$ac_save_c_werror_flag
  4909. fi
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4911. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4912. if test "$ac_test_CFLAGS" = set; then
  4913. CFLAGS=$ac_save_CFLAGS
  4914. elif test $ac_cv_prog_cc_g = yes; then
  4915. if test "$GCC" = yes; then
  4916. CFLAGS="-g -O2"
  4917. else
  4918. CFLAGS="-g"
  4919. fi
  4920. else
  4921. if test "$GCC" = yes; then
  4922. CFLAGS="-O2"
  4923. else
  4924. CFLAGS=
  4925. fi
  4926. fi
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4928. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4929. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. ac_cv_prog_cc_c89=no
  4933. ac_save_CC=$CC
  4934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4935. /* end confdefs.h. */
  4936. #include <stdarg.h>
  4937. #include <stdio.h>
  4938. #include <sys/types.h>
  4939. #include <sys/stat.h>
  4940. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4941. struct buf { int x; };
  4942. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4943. static char *e (p, i)
  4944. char **p;
  4945. int i;
  4946. {
  4947. return p[i];
  4948. }
  4949. static char *f (char * (*g) (char **, int), char **p, ...)
  4950. {
  4951. char *s;
  4952. va_list v;
  4953. va_start (v,p);
  4954. s = g (p, va_arg (v,int));
  4955. va_end (v);
  4956. return s;
  4957. }
  4958. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4959. function prototypes and stuff, but not '\xHH' hex character constants.
  4960. These don't provoke an error unfortunately, instead are silently treated
  4961. as 'x'. The following induces an error, until -std is added to get
  4962. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4963. array size at least. It's necessary to write '\x00'==0 to get something
  4964. that's true only with -std. */
  4965. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4966. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4967. inside strings and character constants. */
  4968. #define FOO(x) 'x'
  4969. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4970. int test (int i, double x);
  4971. struct s1 {int (*f) (int a);};
  4972. struct s2 {int (*f) (double a);};
  4973. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4974. int argc;
  4975. char **argv;
  4976. int
  4977. main ()
  4978. {
  4979. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4980. ;
  4981. return 0;
  4982. }
  4983. _ACEOF
  4984. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4985. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4986. do
  4987. CC="$ac_save_CC $ac_arg"
  4988. if ac_fn_c_try_compile "$LINENO"; then :
  4989. ac_cv_prog_cc_c89=$ac_arg
  4990. fi
  4991. rm -f core conftest.err conftest.$ac_objext
  4992. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4993. done
  4994. rm -f conftest.$ac_ext
  4995. CC=$ac_save_CC
  4996. fi
  4997. # AC_CACHE_VAL
  4998. case "x$ac_cv_prog_cc_c89" in
  4999. x)
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5001. $as_echo "none needed" >&6; } ;;
  5002. xno)
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5004. $as_echo "unsupported" >&6; } ;;
  5005. *)
  5006. CC="$CC $ac_cv_prog_cc_c89"
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5008. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5009. esac
  5010. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5011. fi
  5012. ac_ext=c
  5013. ac_cpp='$CPP $CPPFLAGS'
  5014. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5015. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5016. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5017. ac_ext=cpp
  5018. ac_cpp='$CXXCPP $CPPFLAGS'
  5019. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5020. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5021. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5022. if test -z "$CXX"; then
  5023. if test -n "$CCC"; then
  5024. CXX=$CCC
  5025. else
  5026. if test -n "$ac_tool_prefix"; then
  5027. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5028. do
  5029. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5030. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5032. $as_echo_n "checking for $ac_word... " >&6; }
  5033. if test "${ac_cv_prog_CXX+set}" = set; then :
  5034. $as_echo_n "(cached) " >&6
  5035. else
  5036. if test -n "$CXX"; then
  5037. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5038. else
  5039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5040. for as_dir in $PATH
  5041. do
  5042. IFS=$as_save_IFS
  5043. test -z "$as_dir" && as_dir=.
  5044. for ac_exec_ext in '' $ac_executable_extensions; do
  5045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5046. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5048. break 2
  5049. fi
  5050. done
  5051. done
  5052. IFS=$as_save_IFS
  5053. fi
  5054. fi
  5055. CXX=$ac_cv_prog_CXX
  5056. if test -n "$CXX"; then
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5058. $as_echo "$CXX" >&6; }
  5059. else
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5061. $as_echo "no" >&6; }
  5062. fi
  5063. test -n "$CXX" && break
  5064. done
  5065. fi
  5066. if test -z "$CXX"; then
  5067. ac_ct_CXX=$CXX
  5068. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5069. do
  5070. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5071. set dummy $ac_prog; ac_word=$2
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5073. $as_echo_n "checking for $ac_word... " >&6; }
  5074. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  5075. $as_echo_n "(cached) " >&6
  5076. else
  5077. if test -n "$ac_ct_CXX"; then
  5078. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5079. else
  5080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5081. for as_dir in $PATH
  5082. do
  5083. IFS=$as_save_IFS
  5084. test -z "$as_dir" && as_dir=.
  5085. for ac_exec_ext in '' $ac_executable_extensions; do
  5086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5087. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5089. break 2
  5090. fi
  5091. done
  5092. done
  5093. IFS=$as_save_IFS
  5094. fi
  5095. fi
  5096. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5097. if test -n "$ac_ct_CXX"; then
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5099. $as_echo "$ac_ct_CXX" >&6; }
  5100. else
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5102. $as_echo "no" >&6; }
  5103. fi
  5104. test -n "$ac_ct_CXX" && break
  5105. done
  5106. if test "x$ac_ct_CXX" = x; then
  5107. CXX="g++"
  5108. else
  5109. case $cross_compiling:$ac_tool_warned in
  5110. yes:)
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5113. ac_tool_warned=yes ;;
  5114. esac
  5115. CXX=$ac_ct_CXX
  5116. fi
  5117. fi
  5118. fi
  5119. fi
  5120. # Provide some information about the compiler.
  5121. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5122. set X $ac_compile
  5123. ac_compiler=$2
  5124. for ac_option in --version -v -V -qversion; do
  5125. { { ac_try="$ac_compiler $ac_option >&5"
  5126. case "(($ac_try" in
  5127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5128. *) ac_try_echo=$ac_try;;
  5129. esac
  5130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5131. $as_echo "$ac_try_echo"; } >&5
  5132. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5133. ac_status=$?
  5134. if test -s conftest.err; then
  5135. sed '10a\
  5136. ... rest of stderr output deleted ...
  5137. 10q' conftest.err >conftest.er1
  5138. cat conftest.er1 >&5
  5139. fi
  5140. rm -f conftest.er1 conftest.err
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5142. test $ac_status = 0; }
  5143. done
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5145. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5146. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. int
  5152. main ()
  5153. {
  5154. #ifndef __GNUC__
  5155. choke me
  5156. #endif
  5157. ;
  5158. return 0;
  5159. }
  5160. _ACEOF
  5161. if ac_fn_cxx_try_compile "$LINENO"; then :
  5162. ac_compiler_gnu=yes
  5163. else
  5164. ac_compiler_gnu=no
  5165. fi
  5166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5167. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5168. fi
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5170. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5171. if test $ac_compiler_gnu = yes; then
  5172. GXX=yes
  5173. else
  5174. GXX=
  5175. fi
  5176. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5177. ac_save_CXXFLAGS=$CXXFLAGS
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5179. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5180. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  5181. $as_echo_n "(cached) " >&6
  5182. else
  5183. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5184. ac_cxx_werror_flag=yes
  5185. ac_cv_prog_cxx_g=no
  5186. CXXFLAGS="-g"
  5187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5188. /* end confdefs.h. */
  5189. int
  5190. main ()
  5191. {
  5192. ;
  5193. return 0;
  5194. }
  5195. _ACEOF
  5196. if ac_fn_cxx_try_compile "$LINENO"; then :
  5197. ac_cv_prog_cxx_g=yes
  5198. else
  5199. CXXFLAGS=""
  5200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5201. /* end confdefs.h. */
  5202. int
  5203. main ()
  5204. {
  5205. ;
  5206. return 0;
  5207. }
  5208. _ACEOF
  5209. if ac_fn_cxx_try_compile "$LINENO"; then :
  5210. else
  5211. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5212. CXXFLAGS="-g"
  5213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5214. /* end confdefs.h. */
  5215. int
  5216. main ()
  5217. {
  5218. ;
  5219. return 0;
  5220. }
  5221. _ACEOF
  5222. if ac_fn_cxx_try_compile "$LINENO"; then :
  5223. ac_cv_prog_cxx_g=yes
  5224. fi
  5225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5226. fi
  5227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5228. fi
  5229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5231. fi
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5233. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5234. if test "$ac_test_CXXFLAGS" = set; then
  5235. CXXFLAGS=$ac_save_CXXFLAGS
  5236. elif test $ac_cv_prog_cxx_g = yes; then
  5237. if test "$GXX" = yes; then
  5238. CXXFLAGS="-g -O2"
  5239. else
  5240. CXXFLAGS="-g"
  5241. fi
  5242. else
  5243. if test "$GXX" = yes; then
  5244. CXXFLAGS="-O2"
  5245. else
  5246. CXXFLAGS=
  5247. fi
  5248. fi
  5249. ac_ext=c
  5250. ac_cpp='$CPP $CPPFLAGS'
  5251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5254. ac_ext=c
  5255. ac_cpp='$CPP $CPPFLAGS'
  5256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5260. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5261. # On Suns, sometimes $CPP names a directory.
  5262. if test -n "$CPP" && test -d "$CPP"; then
  5263. CPP=
  5264. fi
  5265. if test -z "$CPP"; then
  5266. if test "${ac_cv_prog_CPP+set}" = set; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. # Double quotes because CPP needs to be expanded
  5270. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5271. do
  5272. ac_preproc_ok=false
  5273. for ac_c_preproc_warn_flag in '' yes
  5274. do
  5275. # Use a header file that comes with gcc, so configuring glibc
  5276. # with a fresh cross-compiler works.
  5277. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5278. # <limits.h> exists even on freestanding compilers.
  5279. # On the NeXT, cc -E runs the code through the compiler's parser,
  5280. # not just through cpp. "Syntax error" is here to catch this case.
  5281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5282. /* end confdefs.h. */
  5283. #ifdef __STDC__
  5284. # include <limits.h>
  5285. #else
  5286. # include <assert.h>
  5287. #endif
  5288. Syntax error
  5289. _ACEOF
  5290. if ac_fn_c_try_cpp "$LINENO"; then :
  5291. else
  5292. # Broken: fails on valid input.
  5293. continue
  5294. fi
  5295. rm -f conftest.err conftest.$ac_ext
  5296. # OK, works on sane cases. Now check whether nonexistent headers
  5297. # can be detected and how.
  5298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5299. /* end confdefs.h. */
  5300. #include <ac_nonexistent.h>
  5301. _ACEOF
  5302. if ac_fn_c_try_cpp "$LINENO"; then :
  5303. # Broken: success on invalid input.
  5304. continue
  5305. else
  5306. # Passes both tests.
  5307. ac_preproc_ok=:
  5308. break
  5309. fi
  5310. rm -f conftest.err conftest.$ac_ext
  5311. done
  5312. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5313. rm -f conftest.err conftest.$ac_ext
  5314. if $ac_preproc_ok; then :
  5315. break
  5316. fi
  5317. done
  5318. ac_cv_prog_CPP=$CPP
  5319. fi
  5320. CPP=$ac_cv_prog_CPP
  5321. else
  5322. ac_cv_prog_CPP=$CPP
  5323. fi
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5325. $as_echo "$CPP" >&6; }
  5326. ac_preproc_ok=false
  5327. for ac_c_preproc_warn_flag in '' yes
  5328. do
  5329. # Use a header file that comes with gcc, so configuring glibc
  5330. # with a fresh cross-compiler works.
  5331. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5332. # <limits.h> exists even on freestanding compilers.
  5333. # On the NeXT, cc -E runs the code through the compiler's parser,
  5334. # not just through cpp. "Syntax error" is here to catch this case.
  5335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5336. /* end confdefs.h. */
  5337. #ifdef __STDC__
  5338. # include <limits.h>
  5339. #else
  5340. # include <assert.h>
  5341. #endif
  5342. Syntax error
  5343. _ACEOF
  5344. if ac_fn_c_try_cpp "$LINENO"; then :
  5345. else
  5346. # Broken: fails on valid input.
  5347. continue
  5348. fi
  5349. rm -f conftest.err conftest.$ac_ext
  5350. # OK, works on sane cases. Now check whether nonexistent headers
  5351. # can be detected and how.
  5352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5353. /* end confdefs.h. */
  5354. #include <ac_nonexistent.h>
  5355. _ACEOF
  5356. if ac_fn_c_try_cpp "$LINENO"; then :
  5357. # Broken: success on invalid input.
  5358. continue
  5359. else
  5360. # Passes both tests.
  5361. ac_preproc_ok=:
  5362. break
  5363. fi
  5364. rm -f conftest.err conftest.$ac_ext
  5365. done
  5366. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5367. rm -f conftest.err conftest.$ac_ext
  5368. if $ac_preproc_ok; then :
  5369. else
  5370. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5371. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5372. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  5373. See \`config.log' for more details." "$LINENO" 5; }
  5374. fi
  5375. ac_ext=c
  5376. ac_cpp='$CPP $CPPFLAGS'
  5377. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5378. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5379. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5380. ac_ext=cpp
  5381. ac_cpp='$CXXCPP $CPPFLAGS'
  5382. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5383. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5384. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5386. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5387. if test -z "$CXXCPP"; then
  5388. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. # Double quotes because CXXCPP needs to be expanded
  5392. for CXXCPP in "$CXX -E" "/lib/cpp"
  5393. do
  5394. ac_preproc_ok=false
  5395. for ac_cxx_preproc_warn_flag in '' yes
  5396. do
  5397. # Use a header file that comes with gcc, so configuring glibc
  5398. # with a fresh cross-compiler works.
  5399. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5400. # <limits.h> exists even on freestanding compilers.
  5401. # On the NeXT, cc -E runs the code through the compiler's parser,
  5402. # not just through cpp. "Syntax error" is here to catch this case.
  5403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5404. /* end confdefs.h. */
  5405. #ifdef __STDC__
  5406. # include <limits.h>
  5407. #else
  5408. # include <assert.h>
  5409. #endif
  5410. Syntax error
  5411. _ACEOF
  5412. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5413. else
  5414. # Broken: fails on valid input.
  5415. continue
  5416. fi
  5417. rm -f conftest.err conftest.$ac_ext
  5418. # OK, works on sane cases. Now check whether nonexistent headers
  5419. # can be detected and how.
  5420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5421. /* end confdefs.h. */
  5422. #include <ac_nonexistent.h>
  5423. _ACEOF
  5424. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5425. # Broken: success on invalid input.
  5426. continue
  5427. else
  5428. # Passes both tests.
  5429. ac_preproc_ok=:
  5430. break
  5431. fi
  5432. rm -f conftest.err conftest.$ac_ext
  5433. done
  5434. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5435. rm -f conftest.err conftest.$ac_ext
  5436. if $ac_preproc_ok; then :
  5437. break
  5438. fi
  5439. done
  5440. ac_cv_prog_CXXCPP=$CXXCPP
  5441. fi
  5442. CXXCPP=$ac_cv_prog_CXXCPP
  5443. else
  5444. ac_cv_prog_CXXCPP=$CXXCPP
  5445. fi
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5447. $as_echo "$CXXCPP" >&6; }
  5448. ac_preproc_ok=false
  5449. for ac_cxx_preproc_warn_flag in '' yes
  5450. do
  5451. # Use a header file that comes with gcc, so configuring glibc
  5452. # with a fresh cross-compiler works.
  5453. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5454. # <limits.h> exists even on freestanding compilers.
  5455. # On the NeXT, cc -E runs the code through the compiler's parser,
  5456. # not just through cpp. "Syntax error" is here to catch this case.
  5457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5458. /* end confdefs.h. */
  5459. #ifdef __STDC__
  5460. # include <limits.h>
  5461. #else
  5462. # include <assert.h>
  5463. #endif
  5464. Syntax error
  5465. _ACEOF
  5466. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5467. else
  5468. # Broken: fails on valid input.
  5469. continue
  5470. fi
  5471. rm -f conftest.err conftest.$ac_ext
  5472. # OK, works on sane cases. Now check whether nonexistent headers
  5473. # can be detected and how.
  5474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5475. /* end confdefs.h. */
  5476. #include <ac_nonexistent.h>
  5477. _ACEOF
  5478. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5479. # Broken: success on invalid input.
  5480. continue
  5481. else
  5482. # Passes both tests.
  5483. ac_preproc_ok=:
  5484. break
  5485. fi
  5486. rm -f conftest.err conftest.$ac_ext
  5487. done
  5488. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5489. rm -f conftest.err conftest.$ac_ext
  5490. if $ac_preproc_ok; then :
  5491. else
  5492. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5494. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  5495. See \`config.log' for more details." "$LINENO" 5; }
  5496. fi
  5497. ac_ext=c
  5498. ac_cpp='$CPP $CPPFLAGS'
  5499. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5500. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5501. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5502. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5503. # the developers regenerating the configure script don't have to install libtool.
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5505. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5506. if test "${ac_cv_path_SED+set}" = set; then :
  5507. $as_echo_n "(cached) " >&6
  5508. else
  5509. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5510. for ac_i in 1 2 3 4 5 6 7; do
  5511. ac_script="$ac_script$as_nl$ac_script"
  5512. done
  5513. echo "$ac_script" | sed 99q >conftest.sed
  5514. $as_unset ac_script || ac_script=
  5515. if test -z "$SED"; then
  5516. ac_path_SED_found=false
  5517. # Loop through the user's path and test for each of PROGNAME-LIST
  5518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5519. for as_dir in $PATH
  5520. do
  5521. IFS=$as_save_IFS
  5522. test -z "$as_dir" && as_dir=.
  5523. for ac_prog in sed gsed; do
  5524. for ac_exec_ext in '' $ac_executable_extensions; do
  5525. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5526. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5527. # Check for GNU ac_path_SED and select it if it is found.
  5528. # Check for GNU $ac_path_SED
  5529. case `"$ac_path_SED" --version 2>&1` in
  5530. *GNU*)
  5531. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5532. *)
  5533. ac_count=0
  5534. $as_echo_n 0123456789 >"conftest.in"
  5535. while :
  5536. do
  5537. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5538. mv "conftest.tmp" "conftest.in"
  5539. cp "conftest.in" "conftest.nl"
  5540. $as_echo '' >> "conftest.nl"
  5541. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5542. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5543. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5544. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5545. # Best one so far, save it but keep looking for a better one
  5546. ac_cv_path_SED="$ac_path_SED"
  5547. ac_path_SED_max=$ac_count
  5548. fi
  5549. # 10*(2^10) chars as input seems more than enough
  5550. test $ac_count -gt 10 && break
  5551. done
  5552. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5553. esac
  5554. $ac_path_SED_found && break 3
  5555. done
  5556. done
  5557. done
  5558. IFS=$as_save_IFS
  5559. if test -z "$ac_cv_path_SED"; then
  5560. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5561. fi
  5562. else
  5563. ac_cv_path_SED=$SED
  5564. fi
  5565. fi
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5567. $as_echo "$ac_cv_path_SED" >&6; }
  5568. SED="$ac_cv_path_SED"
  5569. rm -f conftest.sed
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5571. $as_echo_n "checking for egrep... " >&6; }
  5572. if test "${ac_cv_prog_egrep+set}" = set; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5576. then ac_cv_prog_egrep='grep -E'
  5577. else ac_cv_prog_egrep='egrep'
  5578. fi
  5579. fi
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
  5581. $as_echo "$ac_cv_prog_egrep" >&6; }
  5582. EGREP=$ac_cv_prog_egrep
  5583. # Check whether --with-gnu-ld was given.
  5584. if test "${with_gnu_ld+set}" = set; then :
  5585. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5586. else
  5587. with_gnu_ld=no
  5588. fi
  5589. ac_prog=ld
  5590. if test "$GCC" = yes; then
  5591. # Check if gcc -print-prog-name=ld gives a path.
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5593. $as_echo_n "checking for ld used by $CC... " >&6; }
  5594. case $host in
  5595. *-*-mingw*)
  5596. # gcc leaves a trailing carriage return which upsets mingw
  5597. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5598. *)
  5599. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5600. esac
  5601. case $ac_prog in
  5602. # Accept absolute paths.
  5603. [\\/]* | ?:[\\/]*)
  5604. re_direlt='/[^/][^/]*/\.\./'
  5605. # Canonicalize the pathname of ld
  5606. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5607. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5608. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5609. done
  5610. test -z "$LD" && LD="$ac_prog"
  5611. ;;
  5612. "")
  5613. # If it fails, then pretend we aren't using GCC.
  5614. ac_prog=ld
  5615. ;;
  5616. *)
  5617. # If it is relative, then search for the first ld in PATH.
  5618. with_gnu_ld=unknown
  5619. ;;
  5620. esac
  5621. elif test "$with_gnu_ld" = yes; then
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5623. $as_echo_n "checking for GNU ld... " >&6; }
  5624. else
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5626. $as_echo_n "checking for non-GNU ld... " >&6; }
  5627. fi
  5628. if test "${lt_cv_path_LD+set}" = set; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. if test -z "$LD"; then
  5632. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5633. for ac_dir in $PATH; do
  5634. IFS="$lt_save_ifs"
  5635. test -z "$ac_dir" && ac_dir=.
  5636. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5637. lt_cv_path_LD="$ac_dir/$ac_prog"
  5638. # Check to see if the program is GNU ld. I'd rather use --version,
  5639. # but apparently some variants of GNU ld only accept -v.
  5640. # Break only if it was the GNU/non-GNU ld that we prefer.
  5641. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5642. *GNU* | *'with BFD'*)
  5643. test "$with_gnu_ld" != no && break
  5644. ;;
  5645. *)
  5646. test "$with_gnu_ld" != yes && break
  5647. ;;
  5648. esac
  5649. fi
  5650. done
  5651. IFS="$lt_save_ifs"
  5652. else
  5653. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5654. fi
  5655. fi
  5656. LD="$lt_cv_path_LD"
  5657. if test -n "$LD"; then
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5659. $as_echo "$LD" >&6; }
  5660. else
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5662. $as_echo "no" >&6; }
  5663. fi
  5664. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5666. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5667. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5668. $as_echo_n "(cached) " >&6
  5669. else
  5670. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5671. case `$LD -v 2>&1 </dev/null` in
  5672. *GNU* | *'with BFD'*)
  5673. lt_cv_prog_gnu_ld=yes
  5674. ;;
  5675. *)
  5676. lt_cv_prog_gnu_ld=no
  5677. ;;
  5678. esac
  5679. fi
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5681. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5682. with_gnu_ld=$lt_cv_prog_gnu_ld
  5683. # note - does not work on freebsd
  5684. for ac_prog in gawk mawk nawk awk
  5685. do
  5686. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5687. set dummy $ac_prog; ac_word=$2
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5689. $as_echo_n "checking for $ac_word... " >&6; }
  5690. if test "${ac_cv_prog_AWK+set}" = set; then :
  5691. $as_echo_n "(cached) " >&6
  5692. else
  5693. if test -n "$AWK"; then
  5694. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5695. else
  5696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5697. for as_dir in $PATH
  5698. do
  5699. IFS=$as_save_IFS
  5700. test -z "$as_dir" && as_dir=.
  5701. for ac_exec_ext in '' $ac_executable_extensions; do
  5702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5703. ac_cv_prog_AWK="$ac_prog"
  5704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5705. break 2
  5706. fi
  5707. done
  5708. done
  5709. IFS=$as_save_IFS
  5710. fi
  5711. fi
  5712. AWK=$ac_cv_prog_AWK
  5713. if test -n "$AWK"; then
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5715. $as_echo "$AWK" >&6; }
  5716. else
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5718. $as_echo "no" >&6; }
  5719. fi
  5720. test -n "$AWK" && break
  5721. done
  5722. # Find a good install program. We prefer a C program (faster),
  5723. # so one script is as good as another. But avoid the broken or
  5724. # incompatible versions:
  5725. # SysV /etc/install, /usr/sbin/install
  5726. # SunOS /usr/etc/install
  5727. # IRIX /sbin/install
  5728. # AIX /bin/install
  5729. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5730. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5731. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5732. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5733. # OS/2's system install, which has a completely different semantic
  5734. # ./install, which can be erroneously created by make from ./install.sh.
  5735. # Reject install programs that cannot install multiple files.
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  5737. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5738. if test -z "$INSTALL"; then
  5739. if test "${ac_cv_path_install+set}" = set; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. # Account for people who put trailing slashes in PATH elements.
  5748. case $as_dir/ in #((
  5749. ./ | .// | /[cC]/* | \
  5750. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5751. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  5752. /usr/ucb/* ) ;;
  5753. *)
  5754. # OSF1 and SCO ODT 3.0 have their own names for install.
  5755. # Don't use installbsd from OSF since it installs stuff as root
  5756. # by default.
  5757. for ac_prog in ginstall scoinst install; do
  5758. for ac_exec_ext in '' $ac_executable_extensions; do
  5759. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  5760. if test $ac_prog = install &&
  5761. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5762. # AIX install. It has an incompatible calling convention.
  5763. :
  5764. elif test $ac_prog = install &&
  5765. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5766. # program-specific install script used by HP pwplus--don't use.
  5767. :
  5768. else
  5769. rm -rf conftest.one conftest.two conftest.dir
  5770. echo one > conftest.one
  5771. echo two > conftest.two
  5772. mkdir conftest.dir
  5773. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5774. test -s conftest.one && test -s conftest.two &&
  5775. test -s conftest.dir/conftest.one &&
  5776. test -s conftest.dir/conftest.two
  5777. then
  5778. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5779. break 3
  5780. fi
  5781. fi
  5782. fi
  5783. done
  5784. done
  5785. ;;
  5786. esac
  5787. done
  5788. IFS=$as_save_IFS
  5789. rm -rf conftest.one conftest.two conftest.dir
  5790. fi
  5791. if test "${ac_cv_path_install+set}" = set; then
  5792. INSTALL=$ac_cv_path_install
  5793. else
  5794. # As a last resort, use the slow shell script. Don't cache a
  5795. # value for INSTALL within a source directory, because that will
  5796. # break other packages using the cache if that directory is
  5797. # removed, or if the value is a relative name.
  5798. INSTALL=$ac_install_sh
  5799. fi
  5800. fi
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  5802. $as_echo "$INSTALL" >&6; }
  5803. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5804. # It thinks the first close brace ends the variable substitution.
  5805. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5806. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5807. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5809. $as_echo_n "checking whether ln -s works... " >&6; }
  5810. LN_S=$as_ln_s
  5811. if test "$LN_S" = "ln -s"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5813. $as_echo "yes" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5816. $as_echo "no, using $LN_S" >&6; }
  5817. fi
  5818. if test -n "$ac_tool_prefix"; then
  5819. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5820. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5822. $as_echo_n "checking for $ac_word... " >&6; }
  5823. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. if test -n "$RANLIB"; then
  5827. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5828. else
  5829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5830. for as_dir in $PATH
  5831. do
  5832. IFS=$as_save_IFS
  5833. test -z "$as_dir" && as_dir=.
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5836. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. RANLIB=$ac_cv_prog_RANLIB
  5846. if test -n "$RANLIB"; then
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5848. $as_echo "$RANLIB" >&6; }
  5849. else
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. $as_echo "no" >&6; }
  5852. fi
  5853. fi
  5854. if test -z "$ac_cv_prog_RANLIB"; then
  5855. ac_ct_RANLIB=$RANLIB
  5856. # Extract the first word of "ranlib", so it can be a program name with args.
  5857. set dummy ranlib; ac_word=$2
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5859. $as_echo_n "checking for $ac_word... " >&6; }
  5860. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. if test -n "$ac_ct_RANLIB"; then
  5864. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5865. else
  5866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5867. for as_dir in $PATH
  5868. do
  5869. IFS=$as_save_IFS
  5870. test -z "$as_dir" && as_dir=.
  5871. for ac_exec_ext in '' $ac_executable_extensions; do
  5872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5873. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5875. break 2
  5876. fi
  5877. done
  5878. done
  5879. IFS=$as_save_IFS
  5880. fi
  5881. fi
  5882. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5883. if test -n "$ac_ct_RANLIB"; then
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5885. $as_echo "$ac_ct_RANLIB" >&6; }
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5888. $as_echo "no" >&6; }
  5889. fi
  5890. if test "x$ac_ct_RANLIB" = x; then
  5891. RANLIB=":"
  5892. else
  5893. case $cross_compiling:$ac_tool_warned in
  5894. yes:)
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5897. ac_tool_warned=yes ;;
  5898. esac
  5899. RANLIB=$ac_ct_RANLIB
  5900. fi
  5901. else
  5902. RANLIB="$ac_cv_prog_RANLIB"
  5903. fi
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  5905. $as_echo_n "checking for GNU make... " >&6; }
  5906. if test "${ac_cv_GNU_MAKE+set}" = set; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. ac_cv_GNU_MAKE='Not Found' ;
  5910. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  5911. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  5912. for a in make gmake gnumake ; do
  5913. if test -z "$a" ; then continue ; fi ;
  5914. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  5915. ac_cv_GNU_MAKE=$a ;
  5916. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  5917. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  5918. break;
  5919. fi
  5920. done ;
  5921. fi
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  5923. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  5924. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  5925. as_fn_error "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  5926. exit 1
  5927. fi
  5928. GNU_MAKE=$ac_cv_GNU_MAKE
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5930. $as_echo_n "checking for egrep... " >&6; }
  5931. if test "${ac_cv_path_EGREP+set}" = set; then :
  5932. $as_echo_n "(cached) " >&6
  5933. else
  5934. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5935. then ac_cv_path_EGREP="$GREP -E"
  5936. else
  5937. if test -z "$EGREP"; then
  5938. ac_path_EGREP_found=false
  5939. # Loop through the user's path and test for each of PROGNAME-LIST
  5940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5941. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5942. do
  5943. IFS=$as_save_IFS
  5944. test -z "$as_dir" && as_dir=.
  5945. for ac_prog in egrep; do
  5946. for ac_exec_ext in '' $ac_executable_extensions; do
  5947. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5948. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5949. # Check for GNU ac_path_EGREP and select it if it is found.
  5950. # Check for GNU $ac_path_EGREP
  5951. case `"$ac_path_EGREP" --version 2>&1` in
  5952. *GNU*)
  5953. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5954. *)
  5955. ac_count=0
  5956. $as_echo_n 0123456789 >"conftest.in"
  5957. while :
  5958. do
  5959. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5960. mv "conftest.tmp" "conftest.in"
  5961. cp "conftest.in" "conftest.nl"
  5962. $as_echo 'EGREP' >> "conftest.nl"
  5963. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5964. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5965. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5966. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5967. # Best one so far, save it but keep looking for a better one
  5968. ac_cv_path_EGREP="$ac_path_EGREP"
  5969. ac_path_EGREP_max=$ac_count
  5970. fi
  5971. # 10*(2^10) chars as input seems more than enough
  5972. test $ac_count -gt 10 && break
  5973. done
  5974. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5975. esac
  5976. $ac_path_EGREP_found && break 3
  5977. done
  5978. done
  5979. done
  5980. IFS=$as_save_IFS
  5981. if test -z "$ac_cv_path_EGREP"; then
  5982. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5983. fi
  5984. else
  5985. ac_cv_path_EGREP=$EGREP
  5986. fi
  5987. fi
  5988. fi
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5990. $as_echo "$ac_cv_path_EGREP" >&6; }
  5991. EGREP="$ac_cv_path_EGREP"
  5992. if test -n "$ac_tool_prefix"; then
  5993. for ac_prog in strip gstrip
  5994. do
  5995. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5996. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5998. $as_echo_n "checking for $ac_word... " >&6; }
  5999. if test "${ac_cv_prog_STRIP+set}" = set; then :
  6000. $as_echo_n "(cached) " >&6
  6001. else
  6002. if test -n "$STRIP"; then
  6003. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6004. else
  6005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6006. for as_dir in $PATH
  6007. do
  6008. IFS=$as_save_IFS
  6009. test -z "$as_dir" && as_dir=.
  6010. for ac_exec_ext in '' $ac_executable_extensions; do
  6011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6012. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  6013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6014. break 2
  6015. fi
  6016. done
  6017. done
  6018. IFS=$as_save_IFS
  6019. fi
  6020. fi
  6021. STRIP=$ac_cv_prog_STRIP
  6022. if test -n "$STRIP"; then
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6024. $as_echo "$STRIP" >&6; }
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6027. $as_echo "no" >&6; }
  6028. fi
  6029. test -n "$STRIP" && break
  6030. done
  6031. fi
  6032. if test -z "$STRIP"; then
  6033. ac_ct_STRIP=$STRIP
  6034. for ac_prog in strip gstrip
  6035. do
  6036. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6037. set dummy $ac_prog; ac_word=$2
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$ac_ct_STRIP"; then
  6044. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6053. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6063. if test -n "$ac_ct_STRIP"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6065. $as_echo "$ac_ct_STRIP" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. test -n "$ac_ct_STRIP" && break
  6071. done
  6072. if test "x$ac_ct_STRIP" = x; then
  6073. STRIP=":"
  6074. else
  6075. case $cross_compiling:$ac_tool_warned in
  6076. yes:)
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6078. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6079. ac_tool_warned=yes ;;
  6080. esac
  6081. STRIP=$ac_ct_STRIP
  6082. fi
  6083. fi
  6084. if test -n "$ac_tool_prefix"; then
  6085. for ac_prog in ar gar
  6086. do
  6087. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6088. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6090. $as_echo_n "checking for $ac_word... " >&6; }
  6091. if test "${ac_cv_prog_AR+set}" = set; then :
  6092. $as_echo_n "(cached) " >&6
  6093. else
  6094. if test -n "$AR"; then
  6095. ac_cv_prog_AR="$AR" # Let the user override the test.
  6096. else
  6097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6098. for as_dir in $PATH
  6099. do
  6100. IFS=$as_save_IFS
  6101. test -z "$as_dir" && as_dir=.
  6102. for ac_exec_ext in '' $ac_executable_extensions; do
  6103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6104. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6106. break 2
  6107. fi
  6108. done
  6109. done
  6110. IFS=$as_save_IFS
  6111. fi
  6112. fi
  6113. AR=$ac_cv_prog_AR
  6114. if test -n "$AR"; then
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6116. $as_echo "$AR" >&6; }
  6117. else
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6119. $as_echo "no" >&6; }
  6120. fi
  6121. test -n "$AR" && break
  6122. done
  6123. fi
  6124. if test -z "$AR"; then
  6125. ac_ct_AR=$AR
  6126. for ac_prog in ar gar
  6127. do
  6128. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6129. set dummy $ac_prog; ac_word=$2
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6131. $as_echo_n "checking for $ac_word... " >&6; }
  6132. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  6133. $as_echo_n "(cached) " >&6
  6134. else
  6135. if test -n "$ac_ct_AR"; then
  6136. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6137. else
  6138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6139. for as_dir in $PATH
  6140. do
  6141. IFS=$as_save_IFS
  6142. test -z "$as_dir" && as_dir=.
  6143. for ac_exec_ext in '' $ac_executable_extensions; do
  6144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6145. ac_cv_prog_ac_ct_AR="$ac_prog"
  6146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6147. break 2
  6148. fi
  6149. done
  6150. done
  6151. IFS=$as_save_IFS
  6152. fi
  6153. fi
  6154. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6155. if test -n "$ac_ct_AR"; then
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6157. $as_echo "$ac_ct_AR" >&6; }
  6158. else
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6160. $as_echo "no" >&6; }
  6161. fi
  6162. test -n "$ac_ct_AR" && break
  6163. done
  6164. if test "x$ac_ct_AR" = x; then
  6165. AR=":"
  6166. else
  6167. case $cross_compiling:$ac_tool_warned in
  6168. yes:)
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6171. ac_tool_warned=yes ;;
  6172. esac
  6173. AR=$ac_ct_AR
  6174. fi
  6175. fi
  6176. GNU_LD=0
  6177. if test "x$with_gnu_ld" = "xyes" ; then
  6178. GNU_LD=1
  6179. fi
  6180. # Extract the first word of "awk", so it can be a program name with args.
  6181. set dummy awk; ac_word=$2
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6183. $as_echo_n "checking for $ac_word... " >&6; }
  6184. if test "${ac_cv_path_AWK+set}" = set; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. case $AWK in
  6188. [\\/]* | ?:[\\/]*)
  6189. ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
  6190. ;;
  6191. *)
  6192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6193. for as_dir in $PATH
  6194. do
  6195. IFS=$as_save_IFS
  6196. test -z "$as_dir" && as_dir=.
  6197. for ac_exec_ext in '' $ac_executable_extensions; do
  6198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6199. ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
  6200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6201. break 2
  6202. fi
  6203. done
  6204. done
  6205. IFS=$as_save_IFS
  6206. test -z "$ac_cv_path_AWK" && ac_cv_path_AWK=":"
  6207. ;;
  6208. esac
  6209. fi
  6210. AWK=$ac_cv_path_AWK
  6211. if test -n "$AWK"; then
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6213. $as_echo "$AWK" >&6; }
  6214. else
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6216. $as_echo "no" >&6; }
  6217. fi
  6218. # Extract the first word of "bison", so it can be a program name with args.
  6219. set dummy bison; ac_word=$2
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6221. $as_echo_n "checking for $ac_word... " >&6; }
  6222. if test "${ac_cv_path_BISON+set}" = set; then :
  6223. $as_echo_n "(cached) " >&6
  6224. else
  6225. case $BISON in
  6226. [\\/]* | ?:[\\/]*)
  6227. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  6228. ;;
  6229. *)
  6230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6231. for as_dir in $PATH
  6232. do
  6233. IFS=$as_save_IFS
  6234. test -z "$as_dir" && as_dir=.
  6235. for ac_exec_ext in '' $ac_executable_extensions; do
  6236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6237. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6239. break 2
  6240. fi
  6241. done
  6242. done
  6243. IFS=$as_save_IFS
  6244. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6245. ;;
  6246. esac
  6247. fi
  6248. BISON=$ac_cv_path_BISON
  6249. if test -n "$BISON"; then
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6251. $as_echo "$BISON" >&6; }
  6252. else
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6254. $as_echo "no" >&6; }
  6255. fi
  6256. # Extract the first word of "cmp", so it can be a program name with args.
  6257. set dummy cmp; ac_word=$2
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6259. $as_echo_n "checking for $ac_word... " >&6; }
  6260. if test "${ac_cv_path_CMP+set}" = set; then :
  6261. $as_echo_n "(cached) " >&6
  6262. else
  6263. case $CMP in
  6264. [\\/]* | ?:[\\/]*)
  6265. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6266. ;;
  6267. *)
  6268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6269. for as_dir in $PATH
  6270. do
  6271. IFS=$as_save_IFS
  6272. test -z "$as_dir" && as_dir=.
  6273. for ac_exec_ext in '' $ac_executable_extensions; do
  6274. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6275. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6277. break 2
  6278. fi
  6279. done
  6280. done
  6281. IFS=$as_save_IFS
  6282. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6283. ;;
  6284. esac
  6285. fi
  6286. CMP=$ac_cv_path_CMP
  6287. if test -n "$CMP"; then
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
  6289. $as_echo "$CMP" >&6; }
  6290. else
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6292. $as_echo "no" >&6; }
  6293. fi
  6294. # Extract the first word of "flex", so it can be a program name with args.
  6295. set dummy flex; ac_word=$2
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6297. $as_echo_n "checking for $ac_word... " >&6; }
  6298. if test "${ac_cv_path_FLEX+set}" = set; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. case $FLEX in
  6302. [\\/]* | ?:[\\/]*)
  6303. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6304. ;;
  6305. *)
  6306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6307. for as_dir in $PATH
  6308. do
  6309. IFS=$as_save_IFS
  6310. test -z "$as_dir" && as_dir=.
  6311. for ac_exec_ext in '' $ac_executable_extensions; do
  6312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6313. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6315. break 2
  6316. fi
  6317. done
  6318. done
  6319. IFS=$as_save_IFS
  6320. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6321. ;;
  6322. esac
  6323. fi
  6324. FLEX=$ac_cv_path_FLEX
  6325. if test -n "$FLEX"; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6327. $as_echo "$FLEX" >&6; }
  6328. else
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6330. $as_echo "no" >&6; }
  6331. fi
  6332. # Extract the first word of "grep", so it can be a program name with args.
  6333. set dummy grep; ac_word=$2
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6335. $as_echo_n "checking for $ac_word... " >&6; }
  6336. if test "${ac_cv_path_GREP+set}" = set; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. case $GREP in
  6340. [\\/]* | ?:[\\/]*)
  6341. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6342. ;;
  6343. *)
  6344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6345. for as_dir in $PATH
  6346. do
  6347. IFS=$as_save_IFS
  6348. test -z "$as_dir" && as_dir=.
  6349. for ac_exec_ext in '' $ac_executable_extensions; do
  6350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6351. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6353. break 2
  6354. fi
  6355. done
  6356. done
  6357. IFS=$as_save_IFS
  6358. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6359. ;;
  6360. esac
  6361. fi
  6362. GREP=$ac_cv_path_GREP
  6363. if test -n "$GREP"; then
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  6365. $as_echo "$GREP" >&6; }
  6366. else
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6368. $as_echo "no" >&6; }
  6369. fi
  6370. # Extract the first word of "find", so it can be a program name with args.
  6371. set dummy find; ac_word=$2
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6373. $as_echo_n "checking for $ac_word... " >&6; }
  6374. if test "${ac_cv_path_FIND+set}" = set; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. case $FIND in
  6378. [\\/]* | ?:[\\/]*)
  6379. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6380. ;;
  6381. *)
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6389. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6397. ;;
  6398. esac
  6399. fi
  6400. FIND=$ac_cv_path_FIND
  6401. if test -n "$FIND"; then
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  6403. $as_echo "$FIND" >&6; }
  6404. else
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6406. $as_echo "no" >&6; }
  6407. fi
  6408. # Extract the first word of "compress", so it can be a program name with args.
  6409. set dummy compress; ac_word=$2
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6411. $as_echo_n "checking for $ac_word... " >&6; }
  6412. if test "${ac_cv_path_COMPRESS+set}" = set; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. case $COMPRESS in
  6416. [\\/]* | ?:[\\/]*)
  6417. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  6418. ;;
  6419. *)
  6420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6421. for as_dir in $PATH
  6422. do
  6423. IFS=$as_save_IFS
  6424. test -z "$as_dir" && as_dir=.
  6425. for ac_exec_ext in '' $ac_executable_extensions; do
  6426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6427. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  6428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6429. break 2
  6430. fi
  6431. done
  6432. done
  6433. IFS=$as_save_IFS
  6434. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  6435. ;;
  6436. esac
  6437. fi
  6438. COMPRESS=$ac_cv_path_COMPRESS
  6439. if test -n "$COMPRESS"; then
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
  6441. $as_echo "$COMPRESS" >&6; }
  6442. else
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6444. $as_echo "no" >&6; }
  6445. fi
  6446. # Extract the first word of "basename", so it can be a program name with args.
  6447. set dummy basename; ac_word=$2
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6449. $as_echo_n "checking for $ac_word... " >&6; }
  6450. if test "${ac_cv_path_BASENAME+set}" = set; then :
  6451. $as_echo_n "(cached) " >&6
  6452. else
  6453. case $BASENAME in
  6454. [\\/]* | ?:[\\/]*)
  6455. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  6456. ;;
  6457. *)
  6458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6459. for as_dir in $PATH
  6460. do
  6461. IFS=$as_save_IFS
  6462. test -z "$as_dir" && as_dir=.
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6465. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  6466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  6473. ;;
  6474. esac
  6475. fi
  6476. BASENAME=$ac_cv_path_BASENAME
  6477. if test -n "$BASENAME"; then
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  6479. $as_echo "$BASENAME" >&6; }
  6480. else
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6482. $as_echo "no" >&6; }
  6483. fi
  6484. # Extract the first word of "dirname", so it can be a program name with args.
  6485. set dummy dirname; ac_word=$2
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6487. $as_echo_n "checking for $ac_word... " >&6; }
  6488. if test "${ac_cv_path_DIRNAME+set}" = set; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. case $DIRNAME in
  6492. [\\/]* | ?:[\\/]*)
  6493. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  6494. ;;
  6495. *)
  6496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6497. for as_dir in $PATH
  6498. do
  6499. IFS=$as_save_IFS
  6500. test -z "$as_dir" && as_dir=.
  6501. for ac_exec_ext in '' $ac_executable_extensions; do
  6502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6503. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  6504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6505. break 2
  6506. fi
  6507. done
  6508. done
  6509. IFS=$as_save_IFS
  6510. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  6511. ;;
  6512. esac
  6513. fi
  6514. DIRNAME=$ac_cv_path_DIRNAME
  6515. if test -n "$DIRNAME"; then
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
  6517. $as_echo "$DIRNAME" >&6; }
  6518. else
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6520. $as_echo "no" >&6; }
  6521. fi
  6522. # Extract the first word of "sh", so it can be a program name with args.
  6523. set dummy sh; ac_word=$2
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6525. $as_echo_n "checking for $ac_word... " >&6; }
  6526. if test "${ac_cv_path_SHELL+set}" = set; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. case $SHELL in
  6530. [\\/]* | ?:[\\/]*)
  6531. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  6532. ;;
  6533. *)
  6534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6535. for as_dir in $PATH
  6536. do
  6537. IFS=$as_save_IFS
  6538. test -z "$as_dir" && as_dir=.
  6539. for ac_exec_ext in '' $ac_executable_extensions; do
  6540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6541. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  6542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6543. break 2
  6544. fi
  6545. done
  6546. done
  6547. IFS=$as_save_IFS
  6548. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  6549. ;;
  6550. esac
  6551. fi
  6552. SHELL=$ac_cv_path_SHELL
  6553. if test -n "$SHELL"; then
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
  6555. $as_echo "$SHELL" >&6; }
  6556. else
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6558. $as_echo "no" >&6; }
  6559. fi
  6560. # Extract the first word of "ln", so it can be a program name with args.
  6561. set dummy ln; ac_word=$2
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6563. $as_echo_n "checking for $ac_word... " >&6; }
  6564. if test "${ac_cv_path_LN+set}" = set; then :
  6565. $as_echo_n "(cached) " >&6
  6566. else
  6567. case $LN in
  6568. [\\/]* | ?:[\\/]*)
  6569. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6570. ;;
  6571. *)
  6572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6573. for as_dir in $PATH
  6574. do
  6575. IFS=$as_save_IFS
  6576. test -z "$as_dir" && as_dir=.
  6577. for ac_exec_ext in '' $ac_executable_extensions; do
  6578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6579. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6581. break 2
  6582. fi
  6583. done
  6584. done
  6585. IFS=$as_save_IFS
  6586. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  6587. ;;
  6588. esac
  6589. fi
  6590. LN=$ac_cv_path_LN
  6591. if test -n "$LN"; then
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  6593. $as_echo "$LN" >&6; }
  6594. else
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6596. $as_echo "no" >&6; }
  6597. fi
  6598. # Extract the first word of "dot", so it can be a program name with args.
  6599. set dummy dot; ac_word=$2
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. $as_echo_n "checking for $ac_word... " >&6; }
  6602. if test "${ac_cv_path_DOT+set}" = set; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. case $DOT in
  6606. [\\/]* | ?:[\\/]*)
  6607. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6608. ;;
  6609. *)
  6610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6611. for as_dir in $PATH
  6612. do
  6613. IFS=$as_save_IFS
  6614. test -z "$as_dir" && as_dir=.
  6615. for ac_exec_ext in '' $ac_executable_extensions; do
  6616. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6617. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6619. break 2
  6620. fi
  6621. done
  6622. done
  6623. IFS=$as_save_IFS
  6624. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  6625. ;;
  6626. esac
  6627. fi
  6628. DOT=$ac_cv_path_DOT
  6629. if test -n "$DOT"; then
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  6631. $as_echo "$DOT" >&6; }
  6632. else
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6634. $as_echo "no" >&6; }
  6635. fi
  6636. # Extract the first word of "wget", so it can be a program name with args.
  6637. set dummy wget; ac_word=$2
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6639. $as_echo_n "checking for $ac_word... " >&6; }
  6640. if test "${ac_cv_path_WGET+set}" = set; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. case $WGET in
  6644. [\\/]* | ?:[\\/]*)
  6645. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  6646. ;;
  6647. *)
  6648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6649. for as_dir in $PATH
  6650. do
  6651. IFS=$as_save_IFS
  6652. test -z "$as_dir" && as_dir=.
  6653. for ac_exec_ext in '' $ac_executable_extensions; do
  6654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6655. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  6656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6657. break 2
  6658. fi
  6659. done
  6660. done
  6661. IFS=$as_save_IFS
  6662. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  6663. ;;
  6664. esac
  6665. fi
  6666. WGET=$ac_cv_path_WGET
  6667. if test -n "$WGET"; then
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
  6669. $as_echo "$WGET" >&6; }
  6670. else
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6672. $as_echo "no" >&6; }
  6673. fi
  6674. # Extract the first word of "curl", so it can be a program name with args.
  6675. set dummy curl; ac_word=$2
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6677. $as_echo_n "checking for $ac_word... " >&6; }
  6678. if test "${ac_cv_path_CURL+set}" = set; then :
  6679. $as_echo_n "(cached) " >&6
  6680. else
  6681. case $CURL in
  6682. [\\/]* | ?:[\\/]*)
  6683. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  6684. ;;
  6685. *)
  6686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6687. for as_dir in $PATH
  6688. do
  6689. IFS=$as_save_IFS
  6690. test -z "$as_dir" && as_dir=.
  6691. for ac_exec_ext in '' $ac_executable_extensions; do
  6692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6693. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  6694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6695. break 2
  6696. fi
  6697. done
  6698. done
  6699. IFS=$as_save_IFS
  6700. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  6701. ;;
  6702. esac
  6703. fi
  6704. CURL=$ac_cv_path_CURL
  6705. if test -n "$CURL"; then
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
  6707. $as_echo "$CURL" >&6; }
  6708. else
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6710. $as_echo "no" >&6; }
  6711. fi
  6712. if test "${WGET}" != ":" ; then
  6713. DOWNLOAD=${WGET}
  6714. else if test "${CURL}" != ":" ; then
  6715. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  6716. else
  6717. # Extract the first word of "fetch", so it can be a program name with args.
  6718. set dummy fetch; ac_word=$2
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6720. $as_echo_n "checking for $ac_word... " >&6; }
  6721. if test "${ac_cv_path_FETCH+set}" = set; then :
  6722. $as_echo_n "(cached) " >&6
  6723. else
  6724. case $FETCH in
  6725. [\\/]* | ?:[\\/]*)
  6726. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  6727. ;;
  6728. *)
  6729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6730. for as_dir in $PATH
  6731. do
  6732. IFS=$as_save_IFS
  6733. test -z "$as_dir" && as_dir=.
  6734. for ac_exec_ext in '' $ac_executable_extensions; do
  6735. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6736. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  6737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6738. break 2
  6739. fi
  6740. done
  6741. done
  6742. IFS=$as_save_IFS
  6743. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  6744. ;;
  6745. esac
  6746. fi
  6747. FETCH=$ac_cv_path_FETCH
  6748. if test -n "$FETCH"; then
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
  6750. $as_echo "$FETCH" >&6; }
  6751. else
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6753. $as_echo "no" >&6; }
  6754. fi
  6755. DOWNLOAD=${FETCH}
  6756. fi
  6757. fi
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
  6759. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  6760. if test "${ac_cv_path_BISON2+set}" = set; then :
  6761. $as_echo_n "(cached) " >&6
  6762. else
  6763. if test "x$BISON" != "x:" ; then
  6764. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  6765. # Use mktemp if possible; otherwise fall back on mkdir,
  6766. # with $RANDOM to make collisions less likely.
  6767. : ${TMPDIR=/tmp}
  6768. {
  6769. tmp=`
  6770. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  6771. ` &&
  6772. test -n "$tmp" && test -d "$tmp"
  6773. } || {
  6774. tmp=$TMPDIR/foo$$-$RANDOM
  6775. (umask 077 && mkdir "$tmp")
  6776. } || exit $?
  6777. cat >$tmp/test.y <<__EOL__
  6778. %parse-param {struct parse_io *parseio}
  6779. %%
  6780. file : { \$\$ = parseio->pval = 1; }
  6781. ;
  6782. %%
  6783. __EOL__
  6784. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  6785. if test -e "${tmp}/test.tab.c"; then
  6786. ac_cv_path_BISON2=${BISON}
  6787. fi
  6788. rm -rf ${tmp}
  6789. fi
  6790. fi
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
  6792. $as_echo "$ac_cv_path_BISON2" >&6; }
  6793. if test "x${ac_cv_path_BISON2}" = "x" ; then
  6794. BISON=:
  6795. PBX_BISON=0
  6796. else
  6797. PBX_BISON=1
  6798. fi
  6799. if test "x${FLEX}" = "x:" ; then
  6800. PBX_FLEX=0
  6801. else
  6802. PBX_FLEX=1
  6803. fi
  6804. if test -n "$ac_tool_prefix"; then
  6805. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  6806. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. $as_echo_n "checking for $ac_word... " >&6; }
  6809. if test "${ac_cv_prog_SOXMIX+set}" = set; then :
  6810. $as_echo_n "(cached) " >&6
  6811. else
  6812. if test -n "$SOXMIX"; then
  6813. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  6814. else
  6815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6816. for as_dir in $PATH
  6817. do
  6818. IFS=$as_save_IFS
  6819. test -z "$as_dir" && as_dir=.
  6820. for ac_exec_ext in '' $ac_executable_extensions; do
  6821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6822. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  6823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6824. break 2
  6825. fi
  6826. done
  6827. done
  6828. IFS=$as_save_IFS
  6829. fi
  6830. fi
  6831. SOXMIX=$ac_cv_prog_SOXMIX
  6832. if test -n "$SOXMIX"; then
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
  6834. $as_echo "$SOXMIX" >&6; }
  6835. else
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6837. $as_echo "no" >&6; }
  6838. fi
  6839. fi
  6840. if test -z "$ac_cv_prog_SOXMIX"; then
  6841. ac_ct_SOXMIX=$SOXMIX
  6842. # Extract the first word of "soxmix", so it can be a program name with args.
  6843. set dummy soxmix; ac_word=$2
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6845. $as_echo_n "checking for $ac_word... " >&6; }
  6846. if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then :
  6847. $as_echo_n "(cached) " >&6
  6848. else
  6849. if test -n "$ac_ct_SOXMIX"; then
  6850. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  6851. else
  6852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6853. for as_dir in $PATH
  6854. do
  6855. IFS=$as_save_IFS
  6856. test -z "$as_dir" && as_dir=.
  6857. for ac_exec_ext in '' $ac_executable_extensions; do
  6858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6859. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  6860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6861. break 2
  6862. fi
  6863. done
  6864. done
  6865. IFS=$as_save_IFS
  6866. fi
  6867. fi
  6868. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  6869. if test -n "$ac_ct_SOXMIX"; then
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
  6871. $as_echo "$ac_ct_SOXMIX" >&6; }
  6872. else
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6874. $as_echo "no" >&6; }
  6875. fi
  6876. if test "x$ac_ct_SOXMIX" = x; then
  6877. SOXMIX=":"
  6878. else
  6879. case $cross_compiling:$ac_tool_warned in
  6880. yes:)
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6883. ac_tool_warned=yes ;;
  6884. esac
  6885. SOXMIX=$ac_ct_SOXMIX
  6886. fi
  6887. else
  6888. SOXMIX="$ac_cv_prog_SOXMIX"
  6889. fi
  6890. if test "${SOXMIX}" != ":" ; then
  6891. $as_echo "#define HAVE_SOXMIX 1" >>confdefs.h
  6892. fi
  6893. ac_ext=c
  6894. ac_cpp='$CPP $CPPFLAGS'
  6895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6898. acx_pthread_ok=no
  6899. # We used to check for pthread.h first, but this fails if pthread.h
  6900. # requires special compiler flags (e.g. on True64 or Sequent).
  6901. # It gets checked for in the link test anyway.
  6902. # First of all, check if the user has set any of the PTHREAD_LIBS,
  6903. # etcetera environment variables, and if threads linking works using
  6904. # them:
  6905. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  6906. save_CFLAGS="$CFLAGS"
  6907. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6908. save_LIBS="$LIBS"
  6909. LIBS="$PTHREAD_LIBS $LIBS"
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  6911. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  6912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6913. /* end confdefs.h. */
  6914. /* Override any GCC internal prototype to avoid an error.
  6915. Use char because int might match the return type of a GCC
  6916. builtin and then its argument prototype would still apply. */
  6917. #ifdef __cplusplus
  6918. extern "C"
  6919. #endif
  6920. char pthread_join ();
  6921. int
  6922. main ()
  6923. {
  6924. return pthread_join ();
  6925. ;
  6926. return 0;
  6927. }
  6928. _ACEOF
  6929. if ac_fn_c_try_link "$LINENO"; then :
  6930. acx_pthread_ok=yes
  6931. fi
  6932. rm -f core conftest.err conftest.$ac_objext \
  6933. conftest$ac_exeext conftest.$ac_ext
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  6935. $as_echo "$acx_pthread_ok" >&6; }
  6936. if test x"$acx_pthread_ok" = xno; then
  6937. PTHREAD_LIBS=""
  6938. PTHREAD_CFLAGS=""
  6939. fi
  6940. LIBS="$save_LIBS"
  6941. CFLAGS="$save_CFLAGS"
  6942. fi
  6943. # We must check for the threads library under a number of different
  6944. # names; the ordering is very important because some systems
  6945. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  6946. # libraries is broken (non-POSIX).
  6947. # Create a list of thread flags to try. Items starting with a "-" are
  6948. # C compiler flags, and other items are library names, except for "none"
  6949. # which indicates that we try without any flags at all, and "pthread-config"
  6950. # which is a program returning the flags for the Pth emulation library.
  6951. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  6952. # The ordering *is* (sometimes) important. Some notes on the
  6953. # individual items follow:
  6954. # pthreads: AIX (must check this before -lpthread)
  6955. # none: in case threads are in libc; should be tried before -Kthread and
  6956. # other compiler flags to prevent continual compiler warnings
  6957. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  6958. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  6959. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  6960. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  6961. # -pthreads: Solaris/gcc
  6962. # -mthreads: Mingw32/gcc, Lynx/gcc
  6963. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  6964. # doesn't hurt to check since this sometimes defines pthreads too;
  6965. # also defines -D_REENTRANT)
  6966. # ... -mt is also the pthreads flag for HP/aCC
  6967. # pthread: Linux, etcetera
  6968. # --thread-safe: KAI C++
  6969. # pthread-config: use pthread-config program (for GNU Pth library)
  6970. case "${host_cpu}-${host_os}" in
  6971. *solaris*)
  6972. # On Solaris (at least, for some versions), libc contains stubbed
  6973. # (non-functional) versions of the pthreads routines, so link-based
  6974. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  6975. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  6976. # a function called by this macro, so we could check for that, but
  6977. # who knows whether they'll stub that too in a future libc.) So,
  6978. # we'll just look for -pthreads and -lpthread first:
  6979. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  6980. ;;
  6981. esac
  6982. if test x"$acx_pthread_ok" = xno; then
  6983. for flag in $acx_pthread_flags; do
  6984. case $flag in
  6985. none)
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  6987. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  6988. ;;
  6989. -*)
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  6991. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  6992. PTHREAD_CFLAGS="$flag"
  6993. ;;
  6994. pthread-config)
  6995. # Extract the first word of "pthread-config", so it can be a program name with args.
  6996. set dummy pthread-config; ac_word=$2
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6998. $as_echo_n "checking for $ac_word... " >&6; }
  6999. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  7000. $as_echo_n "(cached) " >&6
  7001. else
  7002. if test -n "$acx_pthread_config"; then
  7003. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7004. else
  7005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7006. for as_dir in $PATH
  7007. do
  7008. IFS=$as_save_IFS
  7009. test -z "$as_dir" && as_dir=.
  7010. for ac_exec_ext in '' $ac_executable_extensions; do
  7011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7012. ac_cv_prog_acx_pthread_config="yes"
  7013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7014. break 2
  7015. fi
  7016. done
  7017. done
  7018. IFS=$as_save_IFS
  7019. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7020. fi
  7021. fi
  7022. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7023. if test -n "$acx_pthread_config"; then
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  7025. $as_echo "$acx_pthread_config" >&6; }
  7026. else
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7028. $as_echo "no" >&6; }
  7029. fi
  7030. if test x"$acx_pthread_config" = xno; then continue; fi
  7031. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7032. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7033. ;;
  7034. *)
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  7036. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7037. PTHREAD_LIBS="-l$flag"
  7038. ;;
  7039. esac
  7040. save_LIBS="$LIBS"
  7041. save_CFLAGS="$CFLAGS"
  7042. LIBS="$PTHREAD_LIBS $LIBS"
  7043. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7044. # Check for various functions. We must include pthread.h,
  7045. # since some functions may be macros. (On the Sequent, we
  7046. # need a special flag -Kthread to make this header compile.)
  7047. # We check for pthread_join because it is in -lpthread on IRIX
  7048. # while pthread_create is in libc. We check for pthread_attr_init
  7049. # due to DEC craziness with -lpthreads. We check for
  7050. # pthread_cleanup_push because it is one of the few pthread
  7051. # functions on Solaris that doesn't have a non-functional libc stub.
  7052. # We try pthread_create on general principles.
  7053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7054. /* end confdefs.h. */
  7055. #include <pthread.h>
  7056. int
  7057. main ()
  7058. {
  7059. pthread_t th; pthread_join(th, 0);
  7060. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7061. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7062. ;
  7063. return 0;
  7064. }
  7065. _ACEOF
  7066. if ac_fn_c_try_link "$LINENO"; then :
  7067. acx_pthread_ok=yes
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext \
  7070. conftest$ac_exeext conftest.$ac_ext
  7071. LIBS="$save_LIBS"
  7072. CFLAGS="$save_CFLAGS"
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7074. $as_echo "$acx_pthread_ok" >&6; }
  7075. if test "x$acx_pthread_ok" = xyes; then
  7076. break;
  7077. fi
  7078. PTHREAD_LIBS=""
  7079. PTHREAD_CFLAGS=""
  7080. done
  7081. fi
  7082. # Various other checks:
  7083. if test "x$acx_pthread_ok" = xyes; then
  7084. save_LIBS="$LIBS"
  7085. LIBS="$PTHREAD_LIBS $LIBS"
  7086. save_CFLAGS="$CFLAGS"
  7087. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7088. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7090. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7091. attr_name=unknown
  7092. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7094. /* end confdefs.h. */
  7095. #include <pthread.h>
  7096. int
  7097. main ()
  7098. {
  7099. int attr=$attr; return attr;
  7100. ;
  7101. return 0;
  7102. }
  7103. _ACEOF
  7104. if ac_fn_c_try_link "$LINENO"; then :
  7105. attr_name=$attr; break
  7106. fi
  7107. rm -f core conftest.err conftest.$ac_objext \
  7108. conftest$ac_exeext conftest.$ac_ext
  7109. done
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  7111. $as_echo "$attr_name" >&6; }
  7112. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  7113. cat >>confdefs.h <<_ACEOF
  7114. #define PTHREAD_CREATE_JOINABLE $attr_name
  7115. _ACEOF
  7116. fi
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  7118. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  7119. flag=no
  7120. case "${host_cpu}-${host_os}" in
  7121. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  7122. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  7123. esac
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  7125. $as_echo "${flag}" >&6; }
  7126. if test "x$flag" != xno; then
  7127. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  7128. fi
  7129. LIBS="$save_LIBS"
  7130. CFLAGS="$save_CFLAGS"
  7131. # More AIX lossage: must compile with xlc_r or cc_r
  7132. if test x"$GCC" != xyes; then
  7133. for ac_prog in xlc_r cc_r
  7134. do
  7135. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7136. set dummy $ac_prog; ac_word=$2
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7138. $as_echo_n "checking for $ac_word... " >&6; }
  7139. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. if test -n "$PTHREAD_CC"; then
  7143. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7144. else
  7145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7146. for as_dir in $PATH
  7147. do
  7148. IFS=$as_save_IFS
  7149. test -z "$as_dir" && as_dir=.
  7150. for ac_exec_ext in '' $ac_executable_extensions; do
  7151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7152. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7154. break 2
  7155. fi
  7156. done
  7157. done
  7158. IFS=$as_save_IFS
  7159. fi
  7160. fi
  7161. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7162. if test -n "$PTHREAD_CC"; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7164. $as_echo "$PTHREAD_CC" >&6; }
  7165. else
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7167. $as_echo "no" >&6; }
  7168. fi
  7169. test -n "$PTHREAD_CC" && break
  7170. done
  7171. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  7172. else
  7173. PTHREAD_CC=$CC
  7174. fi
  7175. else
  7176. PTHREAD_CC="$CC"
  7177. fi
  7178. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7179. if test x"$acx_pthread_ok" = xyes; then
  7180. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  7181. :
  7182. else
  7183. acx_pthread_ok=no
  7184. fi
  7185. ac_ext=c
  7186. ac_cpp='$CPP $CPPFLAGS'
  7187. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7188. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7189. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7190. ac_ext=c
  7191. ac_cpp='$CPP $CPPFLAGS'
  7192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7195. # Check whether --enable-dev-mode was given.
  7196. if test "${enable_dev_mode+set}" = set; then :
  7197. enableval=$enable_dev_mode; case "${enableval}" in
  7198. y|ye|yes) AST_DEVMODE=yes ;;
  7199. n|no) AST_DEVMODE=no ;;
  7200. *) as_fn_error "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
  7201. esac
  7202. fi
  7203. # package option names should be in alphabetical order
  7204. # by the --with option name, to make things easier for the users :-)
  7205. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  7206. ALSA_OPTION="asound"
  7207. # Check whether --with-asound was given.
  7208. if test "${with_asound+set}" = set; then :
  7209. withval=$with_asound;
  7210. case ${withval} in
  7211. n|no)
  7212. USE_ALSA=no
  7213. ;;
  7214. y|ye|yes)
  7215. ALSA_MANDATORY="yes"
  7216. ;;
  7217. *)
  7218. ALSA_DIR="${withval}"
  7219. ALSA_MANDATORY="yes"
  7220. ;;
  7221. esac
  7222. fi
  7223. PBX_ALSA=0
  7224. BFD_DESCRIP="Debug symbol decoding"
  7225. BFD_OPTION="bfd"
  7226. # Check whether --with-bfd was given.
  7227. if test "${with_bfd+set}" = set; then :
  7228. withval=$with_bfd;
  7229. case ${withval} in
  7230. n|no)
  7231. USE_BFD=no
  7232. ;;
  7233. y|ye|yes)
  7234. BFD_MANDATORY="yes"
  7235. ;;
  7236. *)
  7237. BFD_DIR="${withval}"
  7238. BFD_MANDATORY="yes"
  7239. ;;
  7240. esac
  7241. fi
  7242. PBX_BFD=0
  7243. CAP_DESCRIP="POSIX 1.e capabilities"
  7244. CAP_OPTION="cap"
  7245. # Check whether --with-cap was given.
  7246. if test "${with_cap+set}" = set; then :
  7247. withval=$with_cap;
  7248. case ${withval} in
  7249. n|no)
  7250. USE_CAP=no
  7251. ;;
  7252. y|ye|yes)
  7253. CAP_MANDATORY="yes"
  7254. ;;
  7255. *)
  7256. CAP_DIR="${withval}"
  7257. CAP_MANDATORY="yes"
  7258. ;;
  7259. esac
  7260. fi
  7261. PBX_CAP=0
  7262. CURSES_DESCRIP="curses"
  7263. CURSES_OPTION="curses"
  7264. # Check whether --with-curses was given.
  7265. if test "${with_curses+set}" = set; then :
  7266. withval=$with_curses;
  7267. case ${withval} in
  7268. n|no)
  7269. USE_CURSES=no
  7270. ;;
  7271. y|ye|yes)
  7272. CURSES_MANDATORY="yes"
  7273. ;;
  7274. *)
  7275. CURSES_DIR="${withval}"
  7276. CURSES_MANDATORY="yes"
  7277. ;;
  7278. esac
  7279. fi
  7280. PBX_CURSES=0
  7281. DAHDI_DESCRIP="DAHDI"
  7282. DAHDI_OPTION="dahdi"
  7283. # Check whether --with-dahdi was given.
  7284. if test "${with_dahdi+set}" = set; then :
  7285. withval=$with_dahdi;
  7286. case ${withval} in
  7287. n|no)
  7288. USE_DAHDI=no
  7289. ;;
  7290. y|ye|yes)
  7291. DAHDI_MANDATORY="yes"
  7292. ;;
  7293. *)
  7294. DAHDI_DIR="${withval}"
  7295. DAHDI_MANDATORY="yes"
  7296. ;;
  7297. esac
  7298. fi
  7299. PBX_DAHDI=0
  7300. GNUTLS_DESCRIP="GNU TLS support (used for iksemel only)"
  7301. GNUTLS_OPTION="gnutls"
  7302. # Check whether --with-gnutls was given.
  7303. if test "${with_gnutls+set}" = set; then :
  7304. withval=$with_gnutls;
  7305. case ${withval} in
  7306. n|no)
  7307. USE_GNUTLS=no
  7308. ;;
  7309. y|ye|yes)
  7310. GNUTLS_MANDATORY="yes"
  7311. ;;
  7312. *)
  7313. GNUTLS_DIR="${withval}"
  7314. GNUTLS_MANDATORY="yes"
  7315. ;;
  7316. esac
  7317. fi
  7318. PBX_GNUTLS=0
  7319. GSM_DESCRIP="GSM"
  7320. GSM_OPTION="gsm"
  7321. # Check whether --with-gsm was given.
  7322. if test "${with_gsm+set}" = set; then :
  7323. withval=$with_gsm;
  7324. case ${withval} in
  7325. n|no)
  7326. USE_GSM=no
  7327. ;;
  7328. y|ye|yes)
  7329. GSM_MANDATORY="yes"
  7330. ;;
  7331. *)
  7332. GSM_DIR="${withval}"
  7333. GSM_MANDATORY="yes"
  7334. ;;
  7335. esac
  7336. fi
  7337. PBX_GSM=0
  7338. OPENH323_DESCRIP="OpenH323"
  7339. OPENH323_OPTION="h323"
  7340. # Check whether --with-h323 was given.
  7341. if test "${with_h323+set}" = set; then :
  7342. withval=$with_h323;
  7343. case ${withval} in
  7344. n|no)
  7345. USE_OPENH323=no
  7346. ;;
  7347. y|ye|yes)
  7348. OPENH323_MANDATORY="yes"
  7349. ;;
  7350. *)
  7351. OPENH323_DIR="${withval}"
  7352. OPENH323_MANDATORY="yes"
  7353. ;;
  7354. esac
  7355. fi
  7356. PBX_OPENH323=0
  7357. IKSEMEL_DESCRIP="Iksemel Jabber Library"
  7358. IKSEMEL_OPTION="iksemel"
  7359. # Check whether --with-iksemel was given.
  7360. if test "${with_iksemel+set}" = set; then :
  7361. withval=$with_iksemel;
  7362. case ${withval} in
  7363. n|no)
  7364. USE_IKSEMEL=no
  7365. ;;
  7366. y|ye|yes)
  7367. IKSEMEL_MANDATORY="yes"
  7368. ;;
  7369. *)
  7370. IKSEMEL_DIR="${withval}"
  7371. IKSEMEL_MANDATORY="yes"
  7372. ;;
  7373. esac
  7374. fi
  7375. PBX_IKSEMEL=0
  7376. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  7377. IMAP_TK_OPTION="imap"
  7378. # Check whether --with-imap was given.
  7379. if test "${with_imap+set}" = set; then :
  7380. withval=$with_imap;
  7381. case ${withval} in
  7382. n|no)
  7383. USE_IMAP_TK=no
  7384. ;;
  7385. y|ye|yes)
  7386. IMAP_TK_MANDATORY="yes"
  7387. ;;
  7388. *)
  7389. IMAP_TK_DIR="${withval}"
  7390. IMAP_TK_MANDATORY="yes"
  7391. ;;
  7392. esac
  7393. fi
  7394. PBX_IMAP_TK=0
  7395. ISDNNET_DESCRIP="ISDN4Linux Library"
  7396. ISDNNET_OPTION="isdnnet"
  7397. # Check whether --with-isdnnet was given.
  7398. if test "${with_isdnnet+set}" = set; then :
  7399. withval=$with_isdnnet;
  7400. case ${withval} in
  7401. n|no)
  7402. USE_ISDNNET=no
  7403. ;;
  7404. y|ye|yes)
  7405. ISDNNET_MANDATORY="yes"
  7406. ;;
  7407. *)
  7408. ISDNNET_DIR="${withval}"
  7409. ISDNNET_MANDATORY="yes"
  7410. ;;
  7411. esac
  7412. fi
  7413. PBX_ISDNNET=0
  7414. KDE_DESCRIP="KDE"
  7415. KDE_OPTION="kde"
  7416. # Check whether --with-kde was given.
  7417. if test "${with_kde+set}" = set; then :
  7418. withval=$with_kde;
  7419. case ${withval} in
  7420. n|no)
  7421. USE_KDE=no
  7422. ;;
  7423. y|ye|yes)
  7424. KDE_MANDATORY="yes"
  7425. ;;
  7426. *)
  7427. KDE_DIR="${withval}"
  7428. KDE_MANDATORY="yes"
  7429. ;;
  7430. esac
  7431. fi
  7432. PBX_KDE=0
  7433. # Check whether --with-libcurl was given.
  7434. if test "${with_libcurl+set}" = set; then :
  7435. withval=$with_libcurl; _libcurl_with=$withval
  7436. else
  7437. _libcurl_with=yes
  7438. fi
  7439. if test "$_libcurl_with" != "no" ; then
  7440. for ac_prog in gawk mawk nawk awk
  7441. do
  7442. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7443. set dummy $ac_prog; ac_word=$2
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7445. $as_echo_n "checking for $ac_word... " >&6; }
  7446. if test "${ac_cv_prog_AWK+set}" = set; then :
  7447. $as_echo_n "(cached) " >&6
  7448. else
  7449. if test -n "$AWK"; then
  7450. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7451. else
  7452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7453. for as_dir in $PATH
  7454. do
  7455. IFS=$as_save_IFS
  7456. test -z "$as_dir" && as_dir=.
  7457. for ac_exec_ext in '' $ac_executable_extensions; do
  7458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7459. ac_cv_prog_AWK="$ac_prog"
  7460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7461. break 2
  7462. fi
  7463. done
  7464. done
  7465. IFS=$as_save_IFS
  7466. fi
  7467. fi
  7468. AWK=$ac_cv_prog_AWK
  7469. if test -n "$AWK"; then
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7471. $as_echo "$AWK" >&6; }
  7472. else
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7474. $as_echo "no" >&6; }
  7475. fi
  7476. test -n "$AWK" && break
  7477. done
  7478. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  7479. _libcurl_try_link=yes
  7480. if test -d "$_libcurl_with" ; then
  7481. CURL_INCLUDE="-I$withval/include"
  7482. _libcurl_ldflags="-L$withval/lib"
  7483. # Extract the first word of "curl-config", so it can be a program name with args.
  7484. set dummy curl-config; ac_word=$2
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7486. $as_echo_n "checking for $ac_word... " >&6; }
  7487. if test "${ac_cv_path__libcurl_config+set}" = set; then :
  7488. $as_echo_n "(cached) " >&6
  7489. else
  7490. case $_libcurl_config in
  7491. [\\/]* | ?:[\\/]*)
  7492. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  7493. ;;
  7494. *)
  7495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7496. for as_dir in "$withval/bin"
  7497. do
  7498. IFS=$as_save_IFS
  7499. test -z "$as_dir" && as_dir=.
  7500. for ac_exec_ext in '' $ac_executable_extensions; do
  7501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7502. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  7503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7504. break 2
  7505. fi
  7506. done
  7507. done
  7508. IFS=$as_save_IFS
  7509. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  7510. ;;
  7511. esac
  7512. fi
  7513. _libcurl_config=$ac_cv_path__libcurl_config
  7514. if test -n "$_libcurl_config"; then
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  7516. $as_echo "$_libcurl_config" >&6; }
  7517. else
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7519. $as_echo "no" >&6; }
  7520. fi
  7521. else
  7522. # Extract the first word of "curl-config", so it can be a program name with args.
  7523. set dummy curl-config; ac_word=$2
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7525. $as_echo_n "checking for $ac_word... " >&6; }
  7526. if test "${ac_cv_path__libcurl_config+set}" = set; then :
  7527. $as_echo_n "(cached) " >&6
  7528. else
  7529. case $_libcurl_config in
  7530. [\\/]* | ?:[\\/]*)
  7531. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  7532. ;;
  7533. *)
  7534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7535. for as_dir in $PATH
  7536. do
  7537. IFS=$as_save_IFS
  7538. test -z "$as_dir" && as_dir=.
  7539. for ac_exec_ext in '' $ac_executable_extensions; do
  7540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7541. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  7542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7543. break 2
  7544. fi
  7545. done
  7546. done
  7547. IFS=$as_save_IFS
  7548. ;;
  7549. esac
  7550. fi
  7551. _libcurl_config=$ac_cv_path__libcurl_config
  7552. if test -n "$_libcurl_config"; then
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  7554. $as_echo "$_libcurl_config" >&6; }
  7555. else
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7557. $as_echo "no" >&6; }
  7558. fi
  7559. fi
  7560. if test x$_libcurl_config != "x" ; then
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  7562. $as_echo_n "checking for the version of libcurl... " >&6; }
  7563. if test "${libcurl_cv_lib_curl_version+set}" = set; then :
  7564. $as_echo_n "(cached) " >&6
  7565. else
  7566. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  7567. fi
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  7569. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  7570. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  7571. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  7572. if test $_libcurl_wanted -gt 0 ; then
  7573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
  7574. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  7575. if test "${libcurl_cv_lib_version_ok+set}" = set; then :
  7576. $as_echo_n "(cached) " >&6
  7577. else
  7578. if test $_libcurl_version -ge $_libcurl_wanted ; then
  7579. libcurl_cv_lib_version_ok=yes
  7580. else
  7581. libcurl_cv_lib_version_ok=no
  7582. fi
  7583. fi
  7584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  7585. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  7586. fi
  7587. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  7588. if test x"$CURL_INCLUDE" = "x" ; then
  7589. CURL_INCLUDE=`$_libcurl_config --cflags`
  7590. fi
  7591. if test x"$CURL_LIB" = "x" ; then
  7592. CURL_LIB=`$_libcurl_config --libs`
  7593. # This is so silly, but Apple actually has a bug in their
  7594. # curl-config script. Fixed in Tiger, but there are still
  7595. # lots of Panther installs around.
  7596. case "${host}" in
  7597. powerpc-apple-darwin7*)
  7598. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  7599. ;;
  7600. esac
  7601. fi
  7602. # All curl-config scripts support --feature
  7603. _libcurl_features=`$_libcurl_config --feature`
  7604. # Is it modern enough to have --protocols? (7.12.4)
  7605. if test $_libcurl_version -ge 461828 ; then
  7606. _libcurl_protocols=`$_libcurl_config --protocols`
  7607. fi
  7608. else
  7609. _libcurl_try_link=no
  7610. fi
  7611. unset _libcurl_wanted
  7612. fi
  7613. if test $_libcurl_try_link = yes ; then
  7614. # we didn't find curl-config, so let's see if the user-supplied
  7615. # link line (or failing that, "-lcurl") is enough.
  7616. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  7618. $as_echo_n "checking whether libcurl is usable... " >&6; }
  7619. if test "${libcurl_cv_lib_curl_usable+set}" = set; then :
  7620. $as_echo_n "(cached) " >&6
  7621. else
  7622. _libcurl_save_cppflags=$CPPFLAGS
  7623. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  7624. _libcurl_save_libs=$LIBS
  7625. LIBS="$CURL_LIB $LIBS"
  7626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7627. /* end confdefs.h. */
  7628. #include <curl/curl.h>
  7629. int
  7630. main ()
  7631. {
  7632. /* Try and use a few common options to force a failure if we are
  7633. missing symbols or can't link. */
  7634. int x;
  7635. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  7636. x=CURL_ERROR_SIZE;
  7637. x=CURLOPT_WRITEFUNCTION;
  7638. x=CURLOPT_FILE;
  7639. x=CURLOPT_ERRORBUFFER;
  7640. x=CURLOPT_STDERR;
  7641. x=CURLOPT_VERBOSE;
  7642. ;
  7643. return 0;
  7644. }
  7645. _ACEOF
  7646. if ac_fn_c_try_link "$LINENO"; then :
  7647. libcurl_cv_lib_curl_usable=yes
  7648. else
  7649. libcurl_cv_lib_curl_usable=no
  7650. fi
  7651. rm -f core conftest.err conftest.$ac_objext \
  7652. conftest$ac_exeext conftest.$ac_ext
  7653. CPPFLAGS=$_libcurl_save_cppflags
  7654. LIBS=$_libcurl_save_libs
  7655. unset _libcurl_save_cppflags
  7656. unset _libcurl_save_libs
  7657. fi
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  7659. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  7660. if test $libcurl_cv_lib_curl_usable = yes ; then
  7661. # Does curl_free() exist in this version of libcurl?
  7662. # If not, fake it with free()
  7663. _libcurl_save_cppflags=$CPPFLAGS
  7664. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  7665. _libcurl_save_libs=$LIBS
  7666. LIBS="$LIBS $CURL_LIB"
  7667. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  7668. if test "x$ac_cv_func_curl_free" = x""yes; then :
  7669. else
  7670. $as_echo "#define curl_free free" >>confdefs.h
  7671. fi
  7672. CPPFLAGS=$_libcurl_save_cppflags
  7673. LIBS=$_libcurl_save_libs
  7674. unset _libcurl_save_cppflags
  7675. unset _libcurl_save_libs
  7676. $as_echo "#define HAVE_CURL 1" >>confdefs.h
  7677. PBX_CURL=1
  7678. for _libcurl_feature in $_libcurl_features ; do
  7679. cat >>confdefs.h <<_ACEOF
  7680. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  7681. _ACEOF
  7682. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  7683. done
  7684. if test "x$_libcurl_protocols" = "x" ; then
  7685. # We don't have --protocols, so just assume that all
  7686. # protocols are available
  7687. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  7688. if test x$libcurl_feature_SSL = xyes ; then
  7689. _libcurl_protocols="$_libcurl_protocols HTTPS"
  7690. # FTPS wasn't standards-compliant until version
  7691. # 7.11.0
  7692. if test $_libcurl_version -ge 461568; then
  7693. _libcurl_protocols="$_libcurl_protocols FTPS"
  7694. fi
  7695. fi
  7696. fi
  7697. for _libcurl_protocol in $_libcurl_protocols ; do
  7698. cat >>confdefs.h <<_ACEOF
  7699. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  7700. _ACEOF
  7701. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  7702. done
  7703. else
  7704. unset CURL_LIB
  7705. unset CURL_INCLUDE
  7706. PBX_CURL=0
  7707. fi
  7708. fi
  7709. unset _libcurl_try_link
  7710. unset _libcurl_version_parse
  7711. unset _libcurl_config
  7712. unset _libcurl_feature
  7713. unset _libcurl_features
  7714. unset _libcurl_protocol
  7715. unset _libcurl_protocols
  7716. unset _libcurl_version
  7717. unset _libcurl_ldflags
  7718. fi
  7719. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  7720. # This is the IF-NO path
  7721. :
  7722. else
  7723. # This is the IF-YES path
  7724. :
  7725. fi
  7726. unset _libcurl_with
  7727. LTDL_DESCRIP="libtool"
  7728. LTDL_OPTION="ltdl"
  7729. # Check whether --with-ltdl was given.
  7730. if test "${with_ltdl+set}" = set; then :
  7731. withval=$with_ltdl;
  7732. case ${withval} in
  7733. n|no)
  7734. USE_LTDL=no
  7735. ;;
  7736. y|ye|yes)
  7737. LTDL_MANDATORY="yes"
  7738. ;;
  7739. *)
  7740. LTDL_DIR="${withval}"
  7741. LTDL_MANDATORY="yes"
  7742. ;;
  7743. esac
  7744. fi
  7745. PBX_LTDL=0
  7746. MISDN_DESCRIP="mISDN User Library"
  7747. MISDN_OPTION="misdn"
  7748. # Check whether --with-misdn was given.
  7749. if test "${with_misdn+set}" = set; then :
  7750. withval=$with_misdn;
  7751. case ${withval} in
  7752. n|no)
  7753. USE_MISDN=no
  7754. ;;
  7755. y|ye|yes)
  7756. MISDN_MANDATORY="yes"
  7757. ;;
  7758. *)
  7759. MISDN_DIR="${withval}"
  7760. MISDN_MANDATORY="yes"
  7761. ;;
  7762. esac
  7763. fi
  7764. PBX_MISDN=0
  7765. NBS_DESCRIP="Network Broadcast Sound"
  7766. NBS_OPTION="nbs"
  7767. # Check whether --with-nbs was given.
  7768. if test "${with_nbs+set}" = set; then :
  7769. withval=$with_nbs;
  7770. case ${withval} in
  7771. n|no)
  7772. USE_NBS=no
  7773. ;;
  7774. y|ye|yes)
  7775. NBS_MANDATORY="yes"
  7776. ;;
  7777. *)
  7778. NBS_DIR="${withval}"
  7779. NBS_MANDATORY="yes"
  7780. ;;
  7781. esac
  7782. fi
  7783. PBX_NBS=0
  7784. NCURSES_DESCRIP="ncurses"
  7785. NCURSES_OPTION="ncurses"
  7786. # Check whether --with-ncurses was given.
  7787. if test "${with_ncurses+set}" = set; then :
  7788. withval=$with_ncurses;
  7789. case ${withval} in
  7790. n|no)
  7791. USE_NCURSES=no
  7792. ;;
  7793. y|ye|yes)
  7794. NCURSES_MANDATORY="yes"
  7795. ;;
  7796. *)
  7797. NCURSES_DIR="${withval}"
  7798. NCURSES_MANDATORY="yes"
  7799. ;;
  7800. esac
  7801. fi
  7802. PBX_NCURSES=0
  7803. NETSNMP_DESCRIP="Net-SNMP"
  7804. NETSNMP_OPTION="netsnmp"
  7805. # Check whether --with-netsnmp was given.
  7806. if test "${with_netsnmp+set}" = set; then :
  7807. withval=$with_netsnmp;
  7808. case ${withval} in
  7809. n|no)
  7810. USE_NETSNMP=no
  7811. ;;
  7812. y|ye|yes)
  7813. NETSNMP_MANDATORY="yes"
  7814. ;;
  7815. *)
  7816. NETSNMP_DIR="${withval}"
  7817. NETSNMP_MANDATORY="yes"
  7818. ;;
  7819. esac
  7820. fi
  7821. PBX_NETSNMP=0
  7822. NEWT_DESCRIP="newt"
  7823. NEWT_OPTION="newt"
  7824. # Check whether --with-newt was given.
  7825. if test "${with_newt+set}" = set; then :
  7826. withval=$with_newt;
  7827. case ${withval} in
  7828. n|no)
  7829. USE_NEWT=no
  7830. ;;
  7831. y|ye|yes)
  7832. NEWT_MANDATORY="yes"
  7833. ;;
  7834. *)
  7835. NEWT_DIR="${withval}"
  7836. NEWT_MANDATORY="yes"
  7837. ;;
  7838. esac
  7839. fi
  7840. PBX_NEWT=0
  7841. UNIXODBC_DESCRIP="unixODBC"
  7842. UNIXODBC_OPTION="odbc"
  7843. # Check whether --with-odbc was given.
  7844. if test "${with_odbc+set}" = set; then :
  7845. withval=$with_odbc;
  7846. case ${withval} in
  7847. n|no)
  7848. USE_UNIXODBC=no
  7849. ;;
  7850. y|ye|yes)
  7851. UNIXODBC_MANDATORY="yes"
  7852. ;;
  7853. *)
  7854. UNIXODBC_DIR="${withval}"
  7855. UNIXODBC_MANDATORY="yes"
  7856. ;;
  7857. esac
  7858. fi
  7859. PBX_UNIXODBC=0
  7860. OGG_DESCRIP="OGG"
  7861. OGG_OPTION="ogg"
  7862. # Check whether --with-ogg was given.
  7863. if test "${with_ogg+set}" = set; then :
  7864. withval=$with_ogg;
  7865. case ${withval} in
  7866. n|no)
  7867. USE_OGG=no
  7868. ;;
  7869. y|ye|yes)
  7870. OGG_MANDATORY="yes"
  7871. ;;
  7872. *)
  7873. OGG_DIR="${withval}"
  7874. OGG_MANDATORY="yes"
  7875. ;;
  7876. esac
  7877. fi
  7878. PBX_OGG=0
  7879. OPENAIS_DESCRIP="OpenAIS"
  7880. OPENAIS_OPTION="openais"
  7881. # Check whether --with-openais was given.
  7882. if test "${with_openais+set}" = set; then :
  7883. withval=$with_openais;
  7884. case ${withval} in
  7885. n|no)
  7886. USE_OPENAIS=no
  7887. ;;
  7888. y|ye|yes)
  7889. OPENAIS_MANDATORY="yes"
  7890. ;;
  7891. *)
  7892. OPENAIS_DIR="${withval}"
  7893. OPENAIS_MANDATORY="yes"
  7894. ;;
  7895. esac
  7896. fi
  7897. PBX_OPENAIS=0
  7898. OPENR2_DESCRIP="MFR2"
  7899. OPENR2_OPTION="openr2"
  7900. # Check whether --with-openr2 was given.
  7901. if test "${with_openr2+set}" = set; then :
  7902. withval=$with_openr2;
  7903. case ${withval} in
  7904. n|no)
  7905. USE_OPENR2=no
  7906. ;;
  7907. y|ye|yes)
  7908. OPENR2_MANDATORY="yes"
  7909. ;;
  7910. *)
  7911. OPENR2_DIR="${withval}"
  7912. OPENR2_MANDATORY="yes"
  7913. ;;
  7914. esac
  7915. fi
  7916. PBX_OPENR2=0
  7917. OSPTK_DESCRIP="OSP Toolkit"
  7918. OSPTK_OPTION="osptk"
  7919. # Check whether --with-osptk was given.
  7920. if test "${with_osptk+set}" = set; then :
  7921. withval=$with_osptk;
  7922. case ${withval} in
  7923. n|no)
  7924. USE_OSPTK=no
  7925. ;;
  7926. y|ye|yes)
  7927. OSPTK_MANDATORY="yes"
  7928. ;;
  7929. *)
  7930. OSPTK_DIR="${withval}"
  7931. OSPTK_MANDATORY="yes"
  7932. ;;
  7933. esac
  7934. fi
  7935. PBX_OSPTK=0
  7936. OSS_DESCRIP="Open Sound System"
  7937. OSS_OPTION="oss"
  7938. # Check whether --with-oss was given.
  7939. if test "${with_oss+set}" = set; then :
  7940. withval=$with_oss;
  7941. case ${withval} in
  7942. n|no)
  7943. USE_OSS=no
  7944. ;;
  7945. y|ye|yes)
  7946. OSS_MANDATORY="yes"
  7947. ;;
  7948. *)
  7949. OSS_DIR="${withval}"
  7950. OSS_MANDATORY="yes"
  7951. ;;
  7952. esac
  7953. fi
  7954. PBX_OSS=0
  7955. POPT_DESCRIP="popt"
  7956. POPT_OPTION="popt"
  7957. # Check whether --with-popt was given.
  7958. if test "${with_popt+set}" = set; then :
  7959. withval=$with_popt;
  7960. case ${withval} in
  7961. n|no)
  7962. USE_POPT=no
  7963. ;;
  7964. y|ye|yes)
  7965. POPT_MANDATORY="yes"
  7966. ;;
  7967. *)
  7968. POPT_DIR="${withval}"
  7969. POPT_MANDATORY="yes"
  7970. ;;
  7971. esac
  7972. fi
  7973. PBX_POPT=0
  7974. PGSQL_DESCRIP="PostgreSQL"
  7975. PGSQL_OPTION="postgres"
  7976. # Check whether --with-postgres was given.
  7977. if test "${with_postgres+set}" = set; then :
  7978. withval=$with_postgres;
  7979. case ${withval} in
  7980. n|no)
  7981. USE_PGSQL=no
  7982. ;;
  7983. y|ye|yes)
  7984. PGSQL_MANDATORY="yes"
  7985. ;;
  7986. *)
  7987. PGSQL_DIR="${withval}"
  7988. PGSQL_MANDATORY="yes"
  7989. ;;
  7990. esac
  7991. fi
  7992. PBX_PGSQL=0
  7993. PRI_DESCRIP="ISDN PRI"
  7994. PRI_OPTION="pri"
  7995. # Check whether --with-pri was given.
  7996. if test "${with_pri+set}" = set; then :
  7997. withval=$with_pri;
  7998. case ${withval} in
  7999. n|no)
  8000. USE_PRI=no
  8001. ;;
  8002. y|ye|yes)
  8003. PRI_MANDATORY="yes"
  8004. ;;
  8005. *)
  8006. PRI_DIR="${withval}"
  8007. PRI_MANDATORY="yes"
  8008. ;;
  8009. esac
  8010. fi
  8011. PBX_PRI=0
  8012. PRI_CALL_HOLD_DESCRIP="NOTIFY with call ptr"
  8013. PRI_CALL_HOLD_OPTION=pri
  8014. if test "x${PRI_MANDATORY}" = "xyes" ; then
  8015. PRI_CALL_HOLD_MANDATORY="yes"
  8016. fi
  8017. PRI_CALL_HOLD_DIR=${PRI_DIR}
  8018. PBX_PRI_CALL_HOLD=0
  8019. PRI_VERSION_DESCRIP="ISDN PRI get_version"
  8020. PRI_VERSION_OPTION=pri
  8021. if test "x${PRI_MANDATORY}" = "xyes" ; then
  8022. PRI_VERSION_MANDATORY="yes"
  8023. fi
  8024. PRI_VERSION_DIR=${PRI_DIR}
  8025. PBX_PRI_VERSION=0
  8026. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  8027. PRI_INBANDDISCONNECT_OPTION=pri
  8028. if test "x${PRI_MANDATORY}" = "xyes" ; then
  8029. PRI_INBANDDISCONNECT_MANDATORY="yes"
  8030. fi
  8031. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  8032. PBX_PRI_INBANDDISCONNECT=0
  8033. PWLIB_DESCRIP="PWlib"
  8034. PWLIB_OPTION="pwlib"
  8035. # Check whether --with-pwlib was given.
  8036. if test "${with_pwlib+set}" = set; then :
  8037. withval=$with_pwlib;
  8038. case ${withval} in
  8039. n|no)
  8040. USE_PWLIB=no
  8041. ;;
  8042. y|ye|yes)
  8043. PWLIB_MANDATORY="yes"
  8044. ;;
  8045. *)
  8046. PWLIB_DIR="${withval}"
  8047. PWLIB_MANDATORY="yes"
  8048. ;;
  8049. esac
  8050. fi
  8051. PBX_PWLIB=0
  8052. RADIUS_DESCRIP="Radius Client"
  8053. RADIUS_OPTION="radius"
  8054. # Check whether --with-radius was given.
  8055. if test "${with_radius+set}" = set; then :
  8056. withval=$with_radius;
  8057. case ${withval} in
  8058. n|no)
  8059. USE_RADIUS=no
  8060. ;;
  8061. y|ye|yes)
  8062. RADIUS_MANDATORY="yes"
  8063. ;;
  8064. *)
  8065. RADIUS_DIR="${withval}"
  8066. RADIUS_MANDATORY="yes"
  8067. ;;
  8068. esac
  8069. fi
  8070. PBX_RADIUS=0
  8071. SPEEX_DESCRIP="Speex"
  8072. SPEEX_OPTION="speex"
  8073. # Check whether --with-speex was given.
  8074. if test "${with_speex+set}" = set; then :
  8075. withval=$with_speex;
  8076. case ${withval} in
  8077. n|no)
  8078. USE_SPEEX=no
  8079. ;;
  8080. y|ye|yes)
  8081. SPEEX_MANDATORY="yes"
  8082. ;;
  8083. *)
  8084. SPEEX_DIR="${withval}"
  8085. SPEEX_MANDATORY="yes"
  8086. ;;
  8087. esac
  8088. fi
  8089. PBX_SPEEX=0
  8090. SPEEXDSP_DESCRIP="Speexdsp"
  8091. SPEEXDSP_OPTION="speexdsp"
  8092. # Check whether --with-speexdsp was given.
  8093. if test "${with_speexdsp+set}" = set; then :
  8094. withval=$with_speexdsp;
  8095. case ${withval} in
  8096. n|no)
  8097. USE_SPEEXDSP=no
  8098. ;;
  8099. y|ye|yes)
  8100. SPEEXDSP_MANDATORY="yes"
  8101. ;;
  8102. *)
  8103. SPEEXDSP_DIR="${withval}"
  8104. SPEEXDSP_MANDATORY="yes"
  8105. ;;
  8106. esac
  8107. fi
  8108. PBX_SPEEXDSP=0
  8109. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  8110. SPEEX_PREPROCESS_OPTION=speex
  8111. PBX_SPEEX_PREPROCESS=0
  8112. SQLITE_DESCRIP="SQLite"
  8113. SQLITE_OPTION="sqlite"
  8114. # Check whether --with-sqlite was given.
  8115. if test "${with_sqlite+set}" = set; then :
  8116. withval=$with_sqlite;
  8117. case ${withval} in
  8118. n|no)
  8119. USE_SQLITE=no
  8120. ;;
  8121. y|ye|yes)
  8122. SQLITE_MANDATORY="yes"
  8123. ;;
  8124. *)
  8125. SQLITE_DIR="${withval}"
  8126. SQLITE_MANDATORY="yes"
  8127. ;;
  8128. esac
  8129. fi
  8130. PBX_SQLITE=0
  8131. OPENSSL_DESCRIP="OpenSSL"
  8132. OPENSSL_OPTION="ssl"
  8133. # Check whether --with-ssl was given.
  8134. if test "${with_ssl+set}" = set; then :
  8135. withval=$with_ssl;
  8136. case ${withval} in
  8137. n|no)
  8138. USE_OPENSSL=no
  8139. ;;
  8140. y|ye|yes)
  8141. OPENSSL_MANDATORY="yes"
  8142. ;;
  8143. *)
  8144. OPENSSL_DIR="${withval}"
  8145. OPENSSL_MANDATORY="yes"
  8146. ;;
  8147. esac
  8148. fi
  8149. PBX_OPENSSL=0
  8150. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  8151. SUPPSERV_OPTION="suppserv"
  8152. # Check whether --with-suppserv was given.
  8153. if test "${with_suppserv+set}" = set; then :
  8154. withval=$with_suppserv;
  8155. case ${withval} in
  8156. n|no)
  8157. USE_SUPPSERV=no
  8158. ;;
  8159. y|ye|yes)
  8160. SUPPSERV_MANDATORY="yes"
  8161. ;;
  8162. *)
  8163. SUPPSERV_DIR="${withval}"
  8164. SUPPSERV_MANDATORY="yes"
  8165. ;;
  8166. esac
  8167. fi
  8168. PBX_SUPPSERV=0
  8169. FREETDS_DESCRIP="FreeTDS"
  8170. FREETDS_OPTION="tds"
  8171. # Check whether --with-tds was given.
  8172. if test "${with_tds+set}" = set; then :
  8173. withval=$with_tds;
  8174. case ${withval} in
  8175. n|no)
  8176. USE_FREETDS=no
  8177. ;;
  8178. y|ye|yes)
  8179. FREETDS_MANDATORY="yes"
  8180. ;;
  8181. *)
  8182. FREETDS_DIR="${withval}"
  8183. FREETDS_MANDATORY="yes"
  8184. ;;
  8185. esac
  8186. fi
  8187. PBX_FREETDS=0
  8188. TERMCAP_DESCRIP="Termcap"
  8189. TERMCAP_OPTION="termcap"
  8190. # Check whether --with-termcap was given.
  8191. if test "${with_termcap+set}" = set; then :
  8192. withval=$with_termcap;
  8193. case ${withval} in
  8194. n|no)
  8195. USE_TERMCAP=no
  8196. ;;
  8197. y|ye|yes)
  8198. TERMCAP_MANDATORY="yes"
  8199. ;;
  8200. *)
  8201. TERMCAP_DIR="${withval}"
  8202. TERMCAP_MANDATORY="yes"
  8203. ;;
  8204. esac
  8205. fi
  8206. PBX_TERMCAP=0
  8207. TINFO_DESCRIP="Term Info"
  8208. TINFO_OPTION="tinfo"
  8209. # Check whether --with-tinfo was given.
  8210. if test "${with_tinfo+set}" = set; then :
  8211. withval=$with_tinfo;
  8212. case ${withval} in
  8213. n|no)
  8214. USE_TINFO=no
  8215. ;;
  8216. y|ye|yes)
  8217. TINFO_MANDATORY="yes"
  8218. ;;
  8219. *)
  8220. TINFO_DIR="${withval}"
  8221. TINFO_MANDATORY="yes"
  8222. ;;
  8223. esac
  8224. fi
  8225. PBX_TINFO=0
  8226. TONEZONE_DESCRIP="tonezone"
  8227. TONEZONE_OPTION="tonezone"
  8228. # Check whether --with-tonezone was given.
  8229. if test "${with_tonezone+set}" = set; then :
  8230. withval=$with_tonezone;
  8231. case ${withval} in
  8232. n|no)
  8233. USE_TONEZONE=no
  8234. ;;
  8235. y|ye|yes)
  8236. TONEZONE_MANDATORY="yes"
  8237. ;;
  8238. *)
  8239. TONEZONE_DIR="${withval}"
  8240. TONEZONE_MANDATORY="yes"
  8241. ;;
  8242. esac
  8243. fi
  8244. PBX_TONEZONE=0
  8245. USB_DESCRIP="usb"
  8246. USB_OPTION="usb"
  8247. # Check whether --with-usb was given.
  8248. if test "${with_usb+set}" = set; then :
  8249. withval=$with_usb;
  8250. case ${withval} in
  8251. n|no)
  8252. USE_USB=no
  8253. ;;
  8254. y|ye|yes)
  8255. USB_MANDATORY="yes"
  8256. ;;
  8257. *)
  8258. USB_DIR="${withval}"
  8259. USB_MANDATORY="yes"
  8260. ;;
  8261. esac
  8262. fi
  8263. PBX_USB=0
  8264. VORBIS_DESCRIP="Vorbis"
  8265. VORBIS_OPTION="vorbis"
  8266. # Check whether --with-vorbis was given.
  8267. if test "${with_vorbis+set}" = set; then :
  8268. withval=$with_vorbis;
  8269. case ${withval} in
  8270. n|no)
  8271. USE_VORBIS=no
  8272. ;;
  8273. y|ye|yes)
  8274. VORBIS_MANDATORY="yes"
  8275. ;;
  8276. *)
  8277. VORBIS_DIR="${withval}"
  8278. VORBIS_MANDATORY="yes"
  8279. ;;
  8280. esac
  8281. fi
  8282. PBX_VORBIS=0
  8283. VPB_DESCRIP="Voicetronix API"
  8284. VPB_OPTION="vpb"
  8285. # Check whether --with-vpb was given.
  8286. if test "${with_vpb+set}" = set; then :
  8287. withval=$with_vpb;
  8288. case ${withval} in
  8289. n|no)
  8290. USE_VPB=no
  8291. ;;
  8292. y|ye|yes)
  8293. VPB_MANDATORY="yes"
  8294. ;;
  8295. *)
  8296. VPB_DIR="${withval}"
  8297. VPB_MANDATORY="yes"
  8298. ;;
  8299. esac
  8300. fi
  8301. PBX_VPB=0
  8302. ZLIB_DESCRIP="zlib"
  8303. ZLIB_OPTION="z"
  8304. # Check whether --with-z was given.
  8305. if test "${with_z+set}" = set; then :
  8306. withval=$with_z;
  8307. case ${withval} in
  8308. n|no)
  8309. USE_ZLIB=no
  8310. ;;
  8311. y|ye|yes)
  8312. ZLIB_MANDATORY="yes"
  8313. ;;
  8314. *)
  8315. ZLIB_DIR="${withval}"
  8316. ZLIB_MANDATORY="yes"
  8317. ;;
  8318. esac
  8319. fi
  8320. PBX_ZLIB=0
  8321. ZAPTEL_DESCRIP="Zaptel"
  8322. ZAPTEL_OPTION="zaptel"
  8323. # Check whether --with-zaptel was given.
  8324. if test "${with_zaptel+set}" = set; then :
  8325. withval=$with_zaptel;
  8326. case ${withval} in
  8327. n|no)
  8328. USE_ZAPTEL=no
  8329. ;;
  8330. y|ye|yes)
  8331. ZAPTEL_MANDATORY="yes"
  8332. ;;
  8333. *)
  8334. ZAPTEL_DIR="${withval}"
  8335. ZAPTEL_MANDATORY="yes"
  8336. ;;
  8337. esac
  8338. fi
  8339. PBX_ZAPTEL=0
  8340. # check for basic system features and functionality before
  8341. # checking for package libraries
  8342. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  8343. # for constant arguments. Useless!
  8344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  8345. $as_echo_n "checking for working alloca.h... " >&6; }
  8346. if test "${ac_cv_working_alloca_h+set}" = set; then :
  8347. $as_echo_n "(cached) " >&6
  8348. else
  8349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8350. /* end confdefs.h. */
  8351. #include <alloca.h>
  8352. int
  8353. main ()
  8354. {
  8355. char *p = (char *) alloca (2 * sizeof (int));
  8356. if (p) return 0;
  8357. ;
  8358. return 0;
  8359. }
  8360. _ACEOF
  8361. if ac_fn_c_try_link "$LINENO"; then :
  8362. ac_cv_working_alloca_h=yes
  8363. else
  8364. ac_cv_working_alloca_h=no
  8365. fi
  8366. rm -f core conftest.err conftest.$ac_objext \
  8367. conftest$ac_exeext conftest.$ac_ext
  8368. fi
  8369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  8370. $as_echo "$ac_cv_working_alloca_h" >&6; }
  8371. if test $ac_cv_working_alloca_h = yes; then
  8372. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  8373. fi
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  8375. $as_echo_n "checking for alloca... " >&6; }
  8376. if test "${ac_cv_func_alloca_works+set}" = set; then :
  8377. $as_echo_n "(cached) " >&6
  8378. else
  8379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8380. /* end confdefs.h. */
  8381. #ifdef __GNUC__
  8382. # define alloca __builtin_alloca
  8383. #else
  8384. # ifdef _MSC_VER
  8385. # include <malloc.h>
  8386. # define alloca _alloca
  8387. # else
  8388. # ifdef HAVE_ALLOCA_H
  8389. # include <alloca.h>
  8390. # else
  8391. # ifdef _AIX
  8392. #pragma alloca
  8393. # else
  8394. # ifndef alloca /* predefined by HP cc +Olibcalls */
  8395. char *alloca ();
  8396. # endif
  8397. # endif
  8398. # endif
  8399. # endif
  8400. #endif
  8401. int
  8402. main ()
  8403. {
  8404. char *p = (char *) alloca (1);
  8405. if (p) return 0;
  8406. ;
  8407. return 0;
  8408. }
  8409. _ACEOF
  8410. if ac_fn_c_try_link "$LINENO"; then :
  8411. ac_cv_func_alloca_works=yes
  8412. else
  8413. ac_cv_func_alloca_works=no
  8414. fi
  8415. rm -f core conftest.err conftest.$ac_objext \
  8416. conftest$ac_exeext conftest.$ac_ext
  8417. fi
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  8419. $as_echo "$ac_cv_func_alloca_works" >&6; }
  8420. if test $ac_cv_func_alloca_works = yes; then
  8421. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  8422. else
  8423. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  8424. # that cause trouble. Some versions do not even contain alloca or
  8425. # contain a buggy version. If you still want to use their alloca,
  8426. # use ar to extract alloca.o from them instead of compiling alloca.c.
  8427. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  8428. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  8429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  8430. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  8431. if test "${ac_cv_os_cray+set}" = set; then :
  8432. $as_echo_n "(cached) " >&6
  8433. else
  8434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8435. /* end confdefs.h. */
  8436. #if defined CRAY && ! defined CRAY2
  8437. webecray
  8438. #else
  8439. wenotbecray
  8440. #endif
  8441. _ACEOF
  8442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8443. $EGREP "webecray" >/dev/null 2>&1; then :
  8444. ac_cv_os_cray=yes
  8445. else
  8446. ac_cv_os_cray=no
  8447. fi
  8448. rm -f conftest*
  8449. fi
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  8451. $as_echo "$ac_cv_os_cray" >&6; }
  8452. if test $ac_cv_os_cray = yes; then
  8453. for ac_func in _getb67 GETB67 getb67; do
  8454. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8455. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8456. eval as_val=\$$as_ac_var
  8457. if test "x$as_val" = x""yes; then :
  8458. cat >>confdefs.h <<_ACEOF
  8459. #define CRAY_STACKSEG_END $ac_func
  8460. _ACEOF
  8461. break
  8462. fi
  8463. done
  8464. fi
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  8466. $as_echo_n "checking stack direction for C alloca... " >&6; }
  8467. if test "${ac_cv_c_stack_direction+set}" = set; then :
  8468. $as_echo_n "(cached) " >&6
  8469. else
  8470. if test "$cross_compiling" = yes; then :
  8471. ac_cv_c_stack_direction=0
  8472. else
  8473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8474. /* end confdefs.h. */
  8475. $ac_includes_default
  8476. int
  8477. find_stack_direction ()
  8478. {
  8479. static char *addr = 0;
  8480. auto char dummy;
  8481. if (addr == 0)
  8482. {
  8483. addr = &dummy;
  8484. return find_stack_direction ();
  8485. }
  8486. else
  8487. return (&dummy > addr) ? 1 : -1;
  8488. }
  8489. int
  8490. main ()
  8491. {
  8492. return find_stack_direction () < 0;
  8493. }
  8494. _ACEOF
  8495. if ac_fn_c_try_run "$LINENO"; then :
  8496. ac_cv_c_stack_direction=1
  8497. else
  8498. ac_cv_c_stack_direction=-1
  8499. fi
  8500. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8501. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8502. fi
  8503. fi
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  8505. $as_echo "$ac_cv_c_stack_direction" >&6; }
  8506. cat >>confdefs.h <<_ACEOF
  8507. #define STACK_DIRECTION $ac_cv_c_stack_direction
  8508. _ACEOF
  8509. fi
  8510. ac_header_dirent=no
  8511. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  8512. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  8514. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  8515. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  8516. $as_echo_n "(cached) " >&6
  8517. else
  8518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8519. /* end confdefs.h. */
  8520. #include <sys/types.h>
  8521. #include <$ac_hdr>
  8522. int
  8523. main ()
  8524. {
  8525. if ((DIR *) 0)
  8526. return 0;
  8527. ;
  8528. return 0;
  8529. }
  8530. _ACEOF
  8531. if ac_fn_c_try_compile "$LINENO"; then :
  8532. eval "$as_ac_Header=yes"
  8533. else
  8534. eval "$as_ac_Header=no"
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8537. fi
  8538. eval ac_res=\$$as_ac_Header
  8539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8540. $as_echo "$ac_res" >&6; }
  8541. eval as_val=\$$as_ac_Header
  8542. if test "x$as_val" = x""yes; then :
  8543. cat >>confdefs.h <<_ACEOF
  8544. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  8545. _ACEOF
  8546. ac_header_dirent=$ac_hdr; break
  8547. fi
  8548. done
  8549. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  8550. if test $ac_header_dirent = dirent.h; then
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  8552. $as_echo_n "checking for library containing opendir... " >&6; }
  8553. if test "${ac_cv_search_opendir+set}" = set; then :
  8554. $as_echo_n "(cached) " >&6
  8555. else
  8556. ac_func_search_save_LIBS=$LIBS
  8557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8558. /* end confdefs.h. */
  8559. /* Override any GCC internal prototype to avoid an error.
  8560. Use char because int might match the return type of a GCC
  8561. builtin and then its argument prototype would still apply. */
  8562. #ifdef __cplusplus
  8563. extern "C"
  8564. #endif
  8565. char opendir ();
  8566. int
  8567. main ()
  8568. {
  8569. return opendir ();
  8570. ;
  8571. return 0;
  8572. }
  8573. _ACEOF
  8574. for ac_lib in '' dir; do
  8575. if test -z "$ac_lib"; then
  8576. ac_res="none required"
  8577. else
  8578. ac_res=-l$ac_lib
  8579. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8580. fi
  8581. if ac_fn_c_try_link "$LINENO"; then :
  8582. ac_cv_search_opendir=$ac_res
  8583. fi
  8584. rm -f core conftest.err conftest.$ac_objext \
  8585. conftest$ac_exeext
  8586. if test "${ac_cv_search_opendir+set}" = set; then :
  8587. break
  8588. fi
  8589. done
  8590. if test "${ac_cv_search_opendir+set}" = set; then :
  8591. else
  8592. ac_cv_search_opendir=no
  8593. fi
  8594. rm conftest.$ac_ext
  8595. LIBS=$ac_func_search_save_LIBS
  8596. fi
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  8598. $as_echo "$ac_cv_search_opendir" >&6; }
  8599. ac_res=$ac_cv_search_opendir
  8600. if test "$ac_res" != no; then :
  8601. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8602. fi
  8603. else
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  8605. $as_echo_n "checking for library containing opendir... " >&6; }
  8606. if test "${ac_cv_search_opendir+set}" = set; then :
  8607. $as_echo_n "(cached) " >&6
  8608. else
  8609. ac_func_search_save_LIBS=$LIBS
  8610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8611. /* end confdefs.h. */
  8612. /* Override any GCC internal prototype to avoid an error.
  8613. Use char because int might match the return type of a GCC
  8614. builtin and then its argument prototype would still apply. */
  8615. #ifdef __cplusplus
  8616. extern "C"
  8617. #endif
  8618. char opendir ();
  8619. int
  8620. main ()
  8621. {
  8622. return opendir ();
  8623. ;
  8624. return 0;
  8625. }
  8626. _ACEOF
  8627. for ac_lib in '' x; do
  8628. if test -z "$ac_lib"; then
  8629. ac_res="none required"
  8630. else
  8631. ac_res=-l$ac_lib
  8632. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8633. fi
  8634. if ac_fn_c_try_link "$LINENO"; then :
  8635. ac_cv_search_opendir=$ac_res
  8636. fi
  8637. rm -f core conftest.err conftest.$ac_objext \
  8638. conftest$ac_exeext
  8639. if test "${ac_cv_search_opendir+set}" = set; then :
  8640. break
  8641. fi
  8642. done
  8643. if test "${ac_cv_search_opendir+set}" = set; then :
  8644. else
  8645. ac_cv_search_opendir=no
  8646. fi
  8647. rm conftest.$ac_ext
  8648. LIBS=$ac_func_search_save_LIBS
  8649. fi
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  8651. $as_echo "$ac_cv_search_opendir" >&6; }
  8652. ac_res=$ac_cv_search_opendir
  8653. if test "$ac_res" != no; then :
  8654. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8655. fi
  8656. fi
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8658. $as_echo_n "checking for ANSI C header files... " >&6; }
  8659. if test "${ac_cv_header_stdc+set}" = set; then :
  8660. $as_echo_n "(cached) " >&6
  8661. else
  8662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8663. /* end confdefs.h. */
  8664. #include <stdlib.h>
  8665. #include <stdarg.h>
  8666. #include <string.h>
  8667. #include <float.h>
  8668. int
  8669. main ()
  8670. {
  8671. ;
  8672. return 0;
  8673. }
  8674. _ACEOF
  8675. if ac_fn_c_try_compile "$LINENO"; then :
  8676. ac_cv_header_stdc=yes
  8677. else
  8678. ac_cv_header_stdc=no
  8679. fi
  8680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8681. if test $ac_cv_header_stdc = yes; then
  8682. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8684. /* end confdefs.h. */
  8685. #include <string.h>
  8686. _ACEOF
  8687. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8688. $EGREP "memchr" >/dev/null 2>&1; then :
  8689. else
  8690. ac_cv_header_stdc=no
  8691. fi
  8692. rm -f conftest*
  8693. fi
  8694. if test $ac_cv_header_stdc = yes; then
  8695. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8697. /* end confdefs.h. */
  8698. #include <stdlib.h>
  8699. _ACEOF
  8700. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8701. $EGREP "free" >/dev/null 2>&1; then :
  8702. else
  8703. ac_cv_header_stdc=no
  8704. fi
  8705. rm -f conftest*
  8706. fi
  8707. if test $ac_cv_header_stdc = yes; then
  8708. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8709. if test "$cross_compiling" = yes; then :
  8710. :
  8711. else
  8712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8713. /* end confdefs.h. */
  8714. #include <ctype.h>
  8715. #include <stdlib.h>
  8716. #if ((' ' & 0x0FF) == 0x020)
  8717. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8718. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8719. #else
  8720. # define ISLOWER(c) \
  8721. (('a' <= (c) && (c) <= 'i') \
  8722. || ('j' <= (c) && (c) <= 'r') \
  8723. || ('s' <= (c) && (c) <= 'z'))
  8724. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8725. #endif
  8726. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8727. int
  8728. main ()
  8729. {
  8730. int i;
  8731. for (i = 0; i < 256; i++)
  8732. if (XOR (islower (i), ISLOWER (i))
  8733. || toupper (i) != TOUPPER (i))
  8734. return 2;
  8735. return 0;
  8736. }
  8737. _ACEOF
  8738. if ac_fn_c_try_run "$LINENO"; then :
  8739. else
  8740. ac_cv_header_stdc=no
  8741. fi
  8742. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8743. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8744. fi
  8745. fi
  8746. fi
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8748. $as_echo "$ac_cv_header_stdc" >&6; }
  8749. if test $ac_cv_header_stdc = yes; then
  8750. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8751. fi
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  8753. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  8754. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  8755. $as_echo_n "(cached) " >&6
  8756. else
  8757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8758. /* end confdefs.h. */
  8759. #include <sys/types.h>
  8760. #include <sys/wait.h>
  8761. #ifndef WEXITSTATUS
  8762. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  8763. #endif
  8764. #ifndef WIFEXITED
  8765. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  8766. #endif
  8767. int
  8768. main ()
  8769. {
  8770. int s;
  8771. wait (&s);
  8772. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  8773. ;
  8774. return 0;
  8775. }
  8776. _ACEOF
  8777. if ac_fn_c_try_compile "$LINENO"; then :
  8778. ac_cv_header_sys_wait_h=yes
  8779. else
  8780. ac_cv_header_sys_wait_h=no
  8781. fi
  8782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8783. fi
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  8785. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  8786. if test $ac_cv_header_sys_wait_h = yes; then
  8787. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  8788. fi
  8789. 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/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
  8790. do :
  8791. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8792. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8793. eval as_val=\$$as_ac_Header
  8794. if test "x$as_val" = x""yes; then :
  8795. cat >>confdefs.h <<_ACEOF
  8796. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8797. _ACEOF
  8798. fi
  8799. done
  8800. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  8801. if test "x$ac_cv_header_sys_poll_h" = x""yes; then :
  8802. else
  8803. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  8804. fi
  8805. # Check whether --enable-largefile was given.
  8806. if test "${enable_largefile+set}" = set; then :
  8807. enableval=$enable_largefile;
  8808. fi
  8809. if test "$enable_largefile" != no; then
  8810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  8811. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  8812. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  8813. $as_echo_n "(cached) " >&6
  8814. else
  8815. ac_cv_sys_largefile_CC=no
  8816. if test "$GCC" != yes; then
  8817. ac_save_CC=$CC
  8818. while :; do
  8819. # IRIX 6.2 and later do not support large files by default,
  8820. # so use the C compiler's -n32 option if that helps.
  8821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8822. /* end confdefs.h. */
  8823. #include <sys/types.h>
  8824. /* Check that off_t can represent 2**63 - 1 correctly.
  8825. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8826. since some C++ compilers masquerading as C compilers
  8827. incorrectly reject 9223372036854775807. */
  8828. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8829. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8830. && LARGE_OFF_T % 2147483647 == 1)
  8831. ? 1 : -1];
  8832. int
  8833. main ()
  8834. {
  8835. ;
  8836. return 0;
  8837. }
  8838. _ACEOF
  8839. if ac_fn_c_try_compile "$LINENO"; then :
  8840. break
  8841. fi
  8842. rm -f core conftest.err conftest.$ac_objext
  8843. CC="$CC -n32"
  8844. if ac_fn_c_try_compile "$LINENO"; then :
  8845. ac_cv_sys_largefile_CC=' -n32'; break
  8846. fi
  8847. rm -f core conftest.err conftest.$ac_objext
  8848. break
  8849. done
  8850. CC=$ac_save_CC
  8851. rm -f conftest.$ac_ext
  8852. fi
  8853. fi
  8854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  8855. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  8856. if test "$ac_cv_sys_largefile_CC" != no; then
  8857. CC=$CC$ac_cv_sys_largefile_CC
  8858. fi
  8859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8860. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  8861. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  8862. $as_echo_n "(cached) " >&6
  8863. else
  8864. while :; do
  8865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8866. /* end confdefs.h. */
  8867. #include <sys/types.h>
  8868. /* Check that off_t can represent 2**63 - 1 correctly.
  8869. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8870. since some C++ compilers masquerading as C compilers
  8871. incorrectly reject 9223372036854775807. */
  8872. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8873. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8874. && LARGE_OFF_T % 2147483647 == 1)
  8875. ? 1 : -1];
  8876. int
  8877. main ()
  8878. {
  8879. ;
  8880. return 0;
  8881. }
  8882. _ACEOF
  8883. if ac_fn_c_try_compile "$LINENO"; then :
  8884. ac_cv_sys_file_offset_bits=no; break
  8885. fi
  8886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8888. /* end confdefs.h. */
  8889. #define _FILE_OFFSET_BITS 64
  8890. #include <sys/types.h>
  8891. /* Check that off_t can represent 2**63 - 1 correctly.
  8892. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8893. since some C++ compilers masquerading as C compilers
  8894. incorrectly reject 9223372036854775807. */
  8895. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8896. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8897. && LARGE_OFF_T % 2147483647 == 1)
  8898. ? 1 : -1];
  8899. int
  8900. main ()
  8901. {
  8902. ;
  8903. return 0;
  8904. }
  8905. _ACEOF
  8906. if ac_fn_c_try_compile "$LINENO"; then :
  8907. ac_cv_sys_file_offset_bits=64; break
  8908. fi
  8909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8910. ac_cv_sys_file_offset_bits=unknown
  8911. break
  8912. done
  8913. fi
  8914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  8915. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  8916. case $ac_cv_sys_file_offset_bits in #(
  8917. no | unknown) ;;
  8918. *)
  8919. cat >>confdefs.h <<_ACEOF
  8920. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8921. _ACEOF
  8922. ;;
  8923. esac
  8924. rm -rf conftest*
  8925. if test $ac_cv_sys_file_offset_bits = unknown; then
  8926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  8927. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  8928. if test "${ac_cv_sys_large_files+set}" = set; then :
  8929. $as_echo_n "(cached) " >&6
  8930. else
  8931. while :; do
  8932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8933. /* end confdefs.h. */
  8934. #include <sys/types.h>
  8935. /* Check that off_t can represent 2**63 - 1 correctly.
  8936. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8937. since some C++ compilers masquerading as C compilers
  8938. incorrectly reject 9223372036854775807. */
  8939. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8940. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8941. && LARGE_OFF_T % 2147483647 == 1)
  8942. ? 1 : -1];
  8943. int
  8944. main ()
  8945. {
  8946. ;
  8947. return 0;
  8948. }
  8949. _ACEOF
  8950. if ac_fn_c_try_compile "$LINENO"; then :
  8951. ac_cv_sys_large_files=no; break
  8952. fi
  8953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8955. /* end confdefs.h. */
  8956. #define _LARGE_FILES 1
  8957. #include <sys/types.h>
  8958. /* Check that off_t can represent 2**63 - 1 correctly.
  8959. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8960. since some C++ compilers masquerading as C compilers
  8961. incorrectly reject 9223372036854775807. */
  8962. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8963. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8964. && LARGE_OFF_T % 2147483647 == 1)
  8965. ? 1 : -1];
  8966. int
  8967. main ()
  8968. {
  8969. ;
  8970. return 0;
  8971. }
  8972. _ACEOF
  8973. if ac_fn_c_try_compile "$LINENO"; then :
  8974. ac_cv_sys_large_files=1; break
  8975. fi
  8976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8977. ac_cv_sys_large_files=unknown
  8978. break
  8979. done
  8980. fi
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  8982. $as_echo "$ac_cv_sys_large_files" >&6; }
  8983. case $ac_cv_sys_large_files in #(
  8984. no | unknown) ;;
  8985. *)
  8986. cat >>confdefs.h <<_ACEOF
  8987. #define _LARGE_FILES $ac_cv_sys_large_files
  8988. _ACEOF
  8989. ;;
  8990. esac
  8991. rm -rf conftest*
  8992. fi
  8993. fi
  8994. # Checks for typedefs, structures, and compiler characteristics.
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  8996. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  8997. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  8998. $as_echo_n "(cached) " >&6
  8999. else
  9000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9001. /* end confdefs.h. */
  9002. #include <stdbool.h>
  9003. #ifndef bool
  9004. "error: bool is not defined"
  9005. #endif
  9006. #ifndef false
  9007. "error: false is not defined"
  9008. #endif
  9009. #if false
  9010. "error: false is not 0"
  9011. #endif
  9012. #ifndef true
  9013. "error: true is not defined"
  9014. #endif
  9015. #if true != 1
  9016. "error: true is not 1"
  9017. #endif
  9018. #ifndef __bool_true_false_are_defined
  9019. "error: __bool_true_false_are_defined is not defined"
  9020. #endif
  9021. struct s { _Bool s: 1; _Bool t; } s;
  9022. char a[true == 1 ? 1 : -1];
  9023. char b[false == 0 ? 1 : -1];
  9024. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  9025. char d[(bool) 0.5 == true ? 1 : -1];
  9026. bool e = &s;
  9027. char f[(_Bool) 0.0 == false ? 1 : -1];
  9028. char g[true];
  9029. char h[sizeof (_Bool)];
  9030. char i[sizeof s.t];
  9031. enum { j = false, k = true, l = false * true, m = true * 256 };
  9032. /* The following fails for
  9033. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  9034. _Bool n[m];
  9035. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  9036. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  9037. # if defined __xlc__ || defined __GNUC__
  9038. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  9039. reported by James Lemley on 2005-10-05; see
  9040. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  9041. This test is not quite right, since xlc is allowed to
  9042. reject this program, as the initializer for xlcbug is
  9043. not one of the forms that C requires support for.
  9044. However, doing the test right would require a runtime
  9045. test, and that would make cross-compilation harder.
  9046. Let us hope that IBM fixes the xlc bug, and also adds
  9047. support for this kind of constant expression. In the
  9048. meantime, this test will reject xlc, which is OK, since
  9049. our stdbool.h substitute should suffice. We also test
  9050. this with GCC, where it should work, to detect more
  9051. quickly whether someone messes up the test in the
  9052. future. */
  9053. char digs[] = "0123456789";
  9054. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  9055. # endif
  9056. /* Catch a bug in an HP-UX C compiler. See
  9057. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  9058. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  9059. */
  9060. _Bool q = true;
  9061. _Bool *pq = &q;
  9062. int
  9063. main ()
  9064. {
  9065. *pq |= q;
  9066. *pq |= ! q;
  9067. /* Refer to every declared value, to avoid compiler optimizations. */
  9068. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  9069. + !m + !n + !o + !p + !q + !pq);
  9070. ;
  9071. return 0;
  9072. }
  9073. _ACEOF
  9074. if ac_fn_c_try_compile "$LINENO"; then :
  9075. ac_cv_header_stdbool_h=yes
  9076. else
  9077. ac_cv_header_stdbool_h=no
  9078. fi
  9079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9080. fi
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  9082. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  9083. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  9084. if test "x$ac_cv_type__Bool" = x""yes; then :
  9085. cat >>confdefs.h <<_ACEOF
  9086. #define HAVE__BOOL 1
  9087. _ACEOF
  9088. fi
  9089. if test $ac_cv_header_stdbool_h = yes; then
  9090. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  9091. fi
  9092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  9093. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  9094. if test "${ac_cv_c_const+set}" = set; then :
  9095. $as_echo_n "(cached) " >&6
  9096. else
  9097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9098. /* end confdefs.h. */
  9099. int
  9100. main ()
  9101. {
  9102. /* FIXME: Include the comments suggested by Paul. */
  9103. #ifndef __cplusplus
  9104. /* Ultrix mips cc rejects this. */
  9105. typedef int charset[2];
  9106. const charset cs;
  9107. /* SunOS 4.1.1 cc rejects this. */
  9108. char const *const *pcpcc;
  9109. char **ppc;
  9110. /* NEC SVR4.0.2 mips cc rejects this. */
  9111. struct point {int x, y;};
  9112. static struct point const zero = {0,0};
  9113. /* AIX XL C 1.02.0.0 rejects this.
  9114. It does not let you subtract one const X* pointer from another in
  9115. an arm of an if-expression whose if-part is not a constant
  9116. expression */
  9117. const char *g = "string";
  9118. pcpcc = &g + (g ? g-g : 0);
  9119. /* HPUX 7.0 cc rejects these. */
  9120. ++pcpcc;
  9121. ppc = (char**) pcpcc;
  9122. pcpcc = (char const *const *) ppc;
  9123. { /* SCO 3.2v4 cc rejects this. */
  9124. char *t;
  9125. char const *s = 0 ? (char *) 0 : (char const *) 0;
  9126. *t++ = 0;
  9127. if (s) return 0;
  9128. }
  9129. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  9130. int x[] = {25, 17};
  9131. const int *foo = &x[0];
  9132. ++foo;
  9133. }
  9134. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  9135. typedef const int *iptr;
  9136. iptr p = 0;
  9137. ++p;
  9138. }
  9139. { /* AIX XL C 1.02.0.0 rejects this saying
  9140. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  9141. struct s { int j; const int *ap[3]; };
  9142. struct s *b; b->j = 5;
  9143. }
  9144. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  9145. const int foo = 10;
  9146. if (!foo) return 0;
  9147. }
  9148. return !cs[0] && !zero.x;
  9149. #endif
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_c_try_compile "$LINENO"; then :
  9155. ac_cv_c_const=yes
  9156. else
  9157. ac_cv_c_const=no
  9158. fi
  9159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9160. fi
  9161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  9162. $as_echo "$ac_cv_c_const" >&6; }
  9163. if test $ac_cv_c_const = no; then
  9164. $as_echo "#define const /**/" >>confdefs.h
  9165. fi
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  9167. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  9168. if test "${ac_cv_type_uid_t+set}" = set; then :
  9169. $as_echo_n "(cached) " >&6
  9170. else
  9171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9172. /* end confdefs.h. */
  9173. #include <sys/types.h>
  9174. _ACEOF
  9175. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9176. $EGREP "uid_t" >/dev/null 2>&1; then :
  9177. ac_cv_type_uid_t=yes
  9178. else
  9179. ac_cv_type_uid_t=no
  9180. fi
  9181. rm -f conftest*
  9182. fi
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  9184. $as_echo "$ac_cv_type_uid_t" >&6; }
  9185. if test $ac_cv_type_uid_t = no; then
  9186. $as_echo "#define uid_t int" >>confdefs.h
  9187. $as_echo "#define gid_t int" >>confdefs.h
  9188. fi
  9189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  9190. $as_echo_n "checking for inline... " >&6; }
  9191. if test "${ac_cv_c_inline+set}" = set; then :
  9192. $as_echo_n "(cached) " >&6
  9193. else
  9194. ac_cv_c_inline=no
  9195. for ac_kw in inline __inline__ __inline; do
  9196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9197. /* end confdefs.h. */
  9198. #ifndef __cplusplus
  9199. typedef int foo_t;
  9200. static $ac_kw foo_t static_foo () {return 0; }
  9201. $ac_kw foo_t foo () {return 0; }
  9202. #endif
  9203. _ACEOF
  9204. if ac_fn_c_try_compile "$LINENO"; then :
  9205. ac_cv_c_inline=$ac_kw
  9206. fi
  9207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9208. test "$ac_cv_c_inline" != no && break
  9209. done
  9210. fi
  9211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  9212. $as_echo "$ac_cv_c_inline" >&6; }
  9213. case $ac_cv_c_inline in
  9214. inline | yes) ;;
  9215. *)
  9216. case $ac_cv_c_inline in
  9217. no) ac_val=;;
  9218. *) ac_val=$ac_cv_c_inline;;
  9219. esac
  9220. cat >>confdefs.h <<_ACEOF
  9221. #ifndef __cplusplus
  9222. #define inline $ac_val
  9223. #endif
  9224. _ACEOF
  9225. ;;
  9226. esac
  9227. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  9228. if test "x$ac_cv_type_mode_t" = x""yes; then :
  9229. else
  9230. cat >>confdefs.h <<_ACEOF
  9231. #define mode_t int
  9232. _ACEOF
  9233. fi
  9234. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  9235. if test "x$ac_cv_type_off_t" = x""yes; then :
  9236. else
  9237. cat >>confdefs.h <<_ACEOF
  9238. #define off_t long int
  9239. _ACEOF
  9240. fi
  9241. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  9242. if test "x$ac_cv_type_pid_t" = x""yes; then :
  9243. else
  9244. cat >>confdefs.h <<_ACEOF
  9245. #define pid_t int
  9246. _ACEOF
  9247. fi
  9248. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  9249. if test "x$ac_cv_type_size_t" = x""yes; then :
  9250. else
  9251. cat >>confdefs.h <<_ACEOF
  9252. #define size_t unsigned int
  9253. _ACEOF
  9254. fi
  9255. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  9256. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
  9257. cat >>confdefs.h <<_ACEOF
  9258. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  9259. _ACEOF
  9260. fi
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  9262. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  9263. if test "${ac_cv_header_time+set}" = set; then :
  9264. $as_echo_n "(cached) " >&6
  9265. else
  9266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9267. /* end confdefs.h. */
  9268. #include <sys/types.h>
  9269. #include <sys/time.h>
  9270. #include <time.h>
  9271. int
  9272. main ()
  9273. {
  9274. if ((struct tm *) 0)
  9275. return 0;
  9276. ;
  9277. return 0;
  9278. }
  9279. _ACEOF
  9280. if ac_fn_c_try_compile "$LINENO"; then :
  9281. ac_cv_header_time=yes
  9282. else
  9283. ac_cv_header_time=no
  9284. fi
  9285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  9288. $as_echo "$ac_cv_header_time" >&6; }
  9289. if test $ac_cv_header_time = yes; then
  9290. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  9291. fi
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  9293. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9294. if test "${ac_cv_struct_tm+set}" = set; then :
  9295. $as_echo_n "(cached) " >&6
  9296. else
  9297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9298. /* end confdefs.h. */
  9299. #include <sys/types.h>
  9300. #include <time.h>
  9301. int
  9302. main ()
  9303. {
  9304. struct tm tm;
  9305. int *p = &tm.tm_sec;
  9306. return !p;
  9307. ;
  9308. return 0;
  9309. }
  9310. _ACEOF
  9311. if ac_fn_c_try_compile "$LINENO"; then :
  9312. ac_cv_struct_tm=time.h
  9313. else
  9314. ac_cv_struct_tm=sys/time.h
  9315. fi
  9316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9317. fi
  9318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  9319. $as_echo "$ac_cv_struct_tm" >&6; }
  9320. if test $ac_cv_struct_tm = sys/time.h; then
  9321. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  9322. fi
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  9324. $as_echo_n "checking for working volatile... " >&6; }
  9325. if test "${ac_cv_c_volatile+set}" = set; then :
  9326. $as_echo_n "(cached) " >&6
  9327. else
  9328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9329. /* end confdefs.h. */
  9330. int
  9331. main ()
  9332. {
  9333. volatile int x;
  9334. int * volatile y = (int *) 0;
  9335. return !x && !y;
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. if ac_fn_c_try_compile "$LINENO"; then :
  9341. ac_cv_c_volatile=yes
  9342. else
  9343. ac_cv_c_volatile=no
  9344. fi
  9345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9346. fi
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  9348. $as_echo "$ac_cv_c_volatile" >&6; }
  9349. if test $ac_cv_c_volatile = no; then
  9350. $as_echo "#define volatile /**/" >>confdefs.h
  9351. fi
  9352. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  9353. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  9354. cat >>confdefs.h <<_ACEOF
  9355. #define HAVE_PTRDIFF_T 1
  9356. _ACEOF
  9357. fi
  9358. # Checks for library functions.
  9359. for ac_header in unistd.h
  9360. do :
  9361. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  9362. if test "x$ac_cv_header_unistd_h" = x""yes; then :
  9363. cat >>confdefs.h <<_ACEOF
  9364. #define HAVE_UNISTD_H 1
  9365. _ACEOF
  9366. fi
  9367. done
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  9369. $as_echo_n "checking for working chown... " >&6; }
  9370. if test "${ac_cv_func_chown_works+set}" = set; then :
  9371. $as_echo_n "(cached) " >&6
  9372. else
  9373. if test "$cross_compiling" = yes; then :
  9374. ac_cv_func_chown_works=no
  9375. else
  9376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9377. /* end confdefs.h. */
  9378. $ac_includes_default
  9379. #include <fcntl.h>
  9380. int
  9381. main ()
  9382. {
  9383. char *f = "conftest.chown";
  9384. struct stat before, after;
  9385. if (creat (f, 0600) < 0)
  9386. return 1;
  9387. if (stat (f, &before) < 0)
  9388. return 1;
  9389. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  9390. return 1;
  9391. if (stat (f, &after) < 0)
  9392. return 1;
  9393. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  9394. ;
  9395. return 0;
  9396. }
  9397. _ACEOF
  9398. if ac_fn_c_try_run "$LINENO"; then :
  9399. ac_cv_func_chown_works=yes
  9400. else
  9401. ac_cv_func_chown_works=no
  9402. fi
  9403. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9404. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9405. fi
  9406. rm -f conftest.chown
  9407. fi
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  9409. $as_echo "$ac_cv_func_chown_works" >&6; }
  9410. if test $ac_cv_func_chown_works = yes; then
  9411. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  9412. fi
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  9414. $as_echo_n "checking whether closedir returns void... " >&6; }
  9415. if test "${ac_cv_func_closedir_void+set}" = set; then :
  9416. $as_echo_n "(cached) " >&6
  9417. else
  9418. if test "$cross_compiling" = yes; then :
  9419. ac_cv_func_closedir_void=yes
  9420. else
  9421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9422. /* end confdefs.h. */
  9423. $ac_includes_default
  9424. #include <$ac_header_dirent>
  9425. #ifndef __cplusplus
  9426. int closedir ();
  9427. #endif
  9428. int
  9429. main ()
  9430. {
  9431. return closedir (opendir (".")) != 0;
  9432. ;
  9433. return 0;
  9434. }
  9435. _ACEOF
  9436. if ac_fn_c_try_run "$LINENO"; then :
  9437. ac_cv_func_closedir_void=no
  9438. else
  9439. ac_cv_func_closedir_void=yes
  9440. fi
  9441. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9442. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9443. fi
  9444. fi
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  9446. $as_echo "$ac_cv_func_closedir_void" >&6; }
  9447. if test $ac_cv_func_closedir_void = yes; then
  9448. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  9449. fi
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  9451. $as_echo_n "checking for error_at_line... " >&6; }
  9452. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  9453. $as_echo_n "(cached) " >&6
  9454. else
  9455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9456. /* end confdefs.h. */
  9457. #include <error.h>
  9458. int
  9459. main ()
  9460. {
  9461. error_at_line (0, 0, "", 0, "an error occurred");
  9462. ;
  9463. return 0;
  9464. }
  9465. _ACEOF
  9466. if ac_fn_c_try_link "$LINENO"; then :
  9467. ac_cv_lib_error_at_line=yes
  9468. else
  9469. ac_cv_lib_error_at_line=no
  9470. fi
  9471. rm -f core conftest.err conftest.$ac_objext \
  9472. conftest$ac_exeext conftest.$ac_ext
  9473. fi
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  9475. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  9476. if test $ac_cv_lib_error_at_line = no; then
  9477. case " $LIBOBJS " in
  9478. *" error.$ac_objext "* ) ;;
  9479. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9480. ;;
  9481. esac
  9482. fi
  9483. for ac_header in vfork.h
  9484. do :
  9485. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  9486. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  9487. cat >>confdefs.h <<_ACEOF
  9488. #define HAVE_VFORK_H 1
  9489. _ACEOF
  9490. fi
  9491. done
  9492. for ac_func in fork vfork
  9493. do :
  9494. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9495. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9496. eval as_val=\$$as_ac_var
  9497. if test "x$as_val" = x""yes; then :
  9498. cat >>confdefs.h <<_ACEOF
  9499. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9500. _ACEOF
  9501. fi
  9502. done
  9503. if test "x$ac_cv_func_fork" = xyes; then
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  9505. $as_echo_n "checking for working fork... " >&6; }
  9506. if test "${ac_cv_func_fork_works+set}" = set; then :
  9507. $as_echo_n "(cached) " >&6
  9508. else
  9509. if test "$cross_compiling" = yes; then :
  9510. ac_cv_func_fork_works=cross
  9511. else
  9512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9513. /* end confdefs.h. */
  9514. $ac_includes_default
  9515. int
  9516. main ()
  9517. {
  9518. /* By Ruediger Kuhlmann. */
  9519. return fork () < 0;
  9520. ;
  9521. return 0;
  9522. }
  9523. _ACEOF
  9524. if ac_fn_c_try_run "$LINENO"; then :
  9525. ac_cv_func_fork_works=yes
  9526. else
  9527. ac_cv_func_fork_works=no
  9528. fi
  9529. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9530. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9531. fi
  9532. fi
  9533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  9534. $as_echo "$ac_cv_func_fork_works" >&6; }
  9535. else
  9536. ac_cv_func_fork_works=$ac_cv_func_fork
  9537. fi
  9538. if test "x$ac_cv_func_fork_works" = xcross; then
  9539. case $host in
  9540. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  9541. # Override, as these systems have only a dummy fork() stub
  9542. ac_cv_func_fork_works=no
  9543. ;;
  9544. *)
  9545. ac_cv_func_fork_works=yes
  9546. ;;
  9547. esac
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9549. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9550. fi
  9551. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9552. if test "x$ac_cv_func_vfork" = xyes; then
  9553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  9554. $as_echo_n "checking for working vfork... " >&6; }
  9555. if test "${ac_cv_func_vfork_works+set}" = set; then :
  9556. $as_echo_n "(cached) " >&6
  9557. else
  9558. if test "$cross_compiling" = yes; then :
  9559. ac_cv_func_vfork_works=cross
  9560. else
  9561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9562. /* end confdefs.h. */
  9563. /* Thanks to Paul Eggert for this test. */
  9564. $ac_includes_default
  9565. #include <sys/wait.h>
  9566. #ifdef HAVE_VFORK_H
  9567. # include <vfork.h>
  9568. #endif
  9569. /* On some sparc systems, changes by the child to local and incoming
  9570. argument registers are propagated back to the parent. The compiler
  9571. is told about this with #include <vfork.h>, but some compilers
  9572. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9573. static variable whose address is put into a register that is
  9574. clobbered by the vfork. */
  9575. static void
  9576. #ifdef __cplusplus
  9577. sparc_address_test (int arg)
  9578. # else
  9579. sparc_address_test (arg) int arg;
  9580. #endif
  9581. {
  9582. static pid_t child;
  9583. if (!child) {
  9584. child = vfork ();
  9585. if (child < 0) {
  9586. perror ("vfork");
  9587. _exit(2);
  9588. }
  9589. if (!child) {
  9590. arg = getpid();
  9591. write(-1, "", 0);
  9592. _exit (arg);
  9593. }
  9594. }
  9595. }
  9596. int
  9597. main ()
  9598. {
  9599. pid_t parent = getpid ();
  9600. pid_t child;
  9601. sparc_address_test (0);
  9602. child = vfork ();
  9603. if (child == 0) {
  9604. /* Here is another test for sparc vfork register problems. This
  9605. test uses lots of local variables, at least as many local
  9606. variables as main has allocated so far including compiler
  9607. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9608. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9609. reuse the register of parent for one of the local variables,
  9610. since it will think that parent can't possibly be used any more
  9611. in this routine. Assigning to the local variable will thus
  9612. munge parent in the parent process. */
  9613. pid_t
  9614. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9615. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9616. /* Convince the compiler that p..p7 are live; otherwise, it might
  9617. use the same hardware register for all 8 local variables. */
  9618. if (p != p1 || p != p2 || p != p3 || p != p4
  9619. || p != p5 || p != p6 || p != p7)
  9620. _exit(1);
  9621. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9622. from child file descriptors. If the child closes a descriptor
  9623. before it execs or exits, this munges the parent's descriptor
  9624. as well. Test for this by closing stdout in the child. */
  9625. _exit(close(fileno(stdout)) != 0);
  9626. } else {
  9627. int status;
  9628. struct stat st;
  9629. while (wait(&status) != child)
  9630. ;
  9631. return (
  9632. /* Was there some problem with vforking? */
  9633. child < 0
  9634. /* Did the child fail? (This shouldn't happen.) */
  9635. || status
  9636. /* Did the vfork/compiler bug occur? */
  9637. || parent != getpid()
  9638. /* Did the file descriptor bug occur? */
  9639. || fstat(fileno(stdout), &st) != 0
  9640. );
  9641. }
  9642. }
  9643. _ACEOF
  9644. if ac_fn_c_try_run "$LINENO"; then :
  9645. ac_cv_func_vfork_works=yes
  9646. else
  9647. ac_cv_func_vfork_works=no
  9648. fi
  9649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9651. fi
  9652. fi
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  9654. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9655. fi;
  9656. if test "x$ac_cv_func_fork_works" = xcross; then
  9657. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9659. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9660. fi
  9661. if test "x$ac_cv_func_vfork_works" = xyes; then
  9662. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  9663. else
  9664. $as_echo "#define vfork fork" >>confdefs.h
  9665. fi
  9666. if test "x$ac_cv_func_fork_works" = xyes; then
  9667. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  9668. PBX_WORKING_FORK=1
  9669. fi
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  9671. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  9672. if test "${ac_cv_sys_largefile_source+set}" = set; then :
  9673. $as_echo_n "(cached) " >&6
  9674. else
  9675. while :; do
  9676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9677. /* end confdefs.h. */
  9678. #include <sys/types.h> /* for off_t */
  9679. #include <stdio.h>
  9680. int
  9681. main ()
  9682. {
  9683. int (*fp) (FILE *, off_t, int) = fseeko;
  9684. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  9685. ;
  9686. return 0;
  9687. }
  9688. _ACEOF
  9689. if ac_fn_c_try_link "$LINENO"; then :
  9690. ac_cv_sys_largefile_source=no; break
  9691. fi
  9692. rm -f core conftest.err conftest.$ac_objext \
  9693. conftest$ac_exeext conftest.$ac_ext
  9694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9695. /* end confdefs.h. */
  9696. #define _LARGEFILE_SOURCE 1
  9697. #include <sys/types.h> /* for off_t */
  9698. #include <stdio.h>
  9699. int
  9700. main ()
  9701. {
  9702. int (*fp) (FILE *, off_t, int) = fseeko;
  9703. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  9704. ;
  9705. return 0;
  9706. }
  9707. _ACEOF
  9708. if ac_fn_c_try_link "$LINENO"; then :
  9709. ac_cv_sys_largefile_source=1; break
  9710. fi
  9711. rm -f core conftest.err conftest.$ac_objext \
  9712. conftest$ac_exeext conftest.$ac_ext
  9713. ac_cv_sys_largefile_source=unknown
  9714. break
  9715. done
  9716. fi
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  9718. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  9719. case $ac_cv_sys_largefile_source in #(
  9720. no | unknown) ;;
  9721. *)
  9722. cat >>confdefs.h <<_ACEOF
  9723. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  9724. _ACEOF
  9725. ;;
  9726. esac
  9727. rm -rf conftest*
  9728. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  9729. # in glibc 2.1.3, but that breaks too many other things.
  9730. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  9731. if test $ac_cv_sys_largefile_source != unknown; then
  9732. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  9733. fi
  9734. if test $ac_cv_c_compiler_gnu = yes; then
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  9736. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  9737. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  9738. $as_echo_n "(cached) " >&6
  9739. else
  9740. ac_pattern="Autoconf.*'x'"
  9741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9742. /* end confdefs.h. */
  9743. #include <sgtty.h>
  9744. Autoconf TIOCGETP
  9745. _ACEOF
  9746. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9747. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  9748. ac_cv_prog_gcc_traditional=yes
  9749. else
  9750. ac_cv_prog_gcc_traditional=no
  9751. fi
  9752. rm -f conftest*
  9753. if test $ac_cv_prog_gcc_traditional = no; then
  9754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9755. /* end confdefs.h. */
  9756. #include <termio.h>
  9757. Autoconf TCGETA
  9758. _ACEOF
  9759. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9760. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  9761. ac_cv_prog_gcc_traditional=yes
  9762. fi
  9763. rm -f conftest*
  9764. fi
  9765. fi
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  9767. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  9768. if test $ac_cv_prog_gcc_traditional = yes; then
  9769. CC="$CC -traditional"
  9770. fi
  9771. fi
  9772. # XXX: these are commented out until we determine whether it matters if our malloc()
  9773. # acts exactly like glibc's or not
  9774. # AC_FUNC_MALLOC
  9775. # AC_FUNC_REALLOC
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  9777. $as_echo_n "checking for working memcmp... " >&6; }
  9778. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  9779. $as_echo_n "(cached) " >&6
  9780. else
  9781. if test "$cross_compiling" = yes; then :
  9782. ac_cv_func_memcmp_working=no
  9783. else
  9784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9785. /* end confdefs.h. */
  9786. $ac_includes_default
  9787. int
  9788. main ()
  9789. {
  9790. /* Some versions of memcmp are not 8-bit clean. */
  9791. char c0 = '\100', c1 = '\200', c2 = '\201';
  9792. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9793. return 1;
  9794. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9795. or more and with at least one buffer not starting on a 4-byte boundary.
  9796. William Lewis provided this test program. */
  9797. {
  9798. char foo[21];
  9799. char bar[21];
  9800. int i;
  9801. for (i = 0; i < 4; i++)
  9802. {
  9803. char *a = foo + i;
  9804. char *b = bar + i;
  9805. strcpy (a, "--------01111111");
  9806. strcpy (b, "--------10000000");
  9807. if (memcmp (a, b, 16) >= 0)
  9808. return 1;
  9809. }
  9810. return 0;
  9811. }
  9812. ;
  9813. return 0;
  9814. }
  9815. _ACEOF
  9816. if ac_fn_c_try_run "$LINENO"; then :
  9817. ac_cv_func_memcmp_working=yes
  9818. else
  9819. ac_cv_func_memcmp_working=no
  9820. fi
  9821. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9822. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9823. fi
  9824. fi
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  9826. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  9827. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  9828. *" memcmp.$ac_objext "* ) ;;
  9829. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  9830. ;;
  9831. esac
  9832. for ac_header in $ac_header_list
  9833. do :
  9834. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9835. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  9836. "
  9837. eval as_val=\$$as_ac_Header
  9838. if test "x$as_val" = x""yes; then :
  9839. cat >>confdefs.h <<_ACEOF
  9840. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9841. _ACEOF
  9842. fi
  9843. done
  9844. for ac_func in getpagesize
  9845. do :
  9846. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  9847. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  9848. cat >>confdefs.h <<_ACEOF
  9849. #define HAVE_GETPAGESIZE 1
  9850. _ACEOF
  9851. fi
  9852. done
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  9854. $as_echo_n "checking for working mmap... " >&6; }
  9855. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  9856. $as_echo_n "(cached) " >&6
  9857. else
  9858. if test "$cross_compiling" = yes; then :
  9859. ac_cv_func_mmap_fixed_mapped=no
  9860. else
  9861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9862. /* end confdefs.h. */
  9863. $ac_includes_default
  9864. /* malloc might have been renamed as rpl_malloc. */
  9865. #undef malloc
  9866. /* Thanks to Mike Haertel and Jim Avera for this test.
  9867. Here is a matrix of mmap possibilities:
  9868. mmap private not fixed
  9869. mmap private fixed at somewhere currently unmapped
  9870. mmap private fixed at somewhere already mapped
  9871. mmap shared not fixed
  9872. mmap shared fixed at somewhere currently unmapped
  9873. mmap shared fixed at somewhere already mapped
  9874. For private mappings, we should verify that changes cannot be read()
  9875. back from the file, nor mmap's back from the file at a different
  9876. address. (There have been systems where private was not correctly
  9877. implemented like the infamous i386 svr4.0, and systems where the
  9878. VM page cache was not coherent with the file system buffer cache
  9879. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9880. For shared mappings, we should conversely verify that changes get
  9881. propagated back to all the places they're supposed to be.
  9882. Grep wants private fixed already mapped.
  9883. The main things grep needs to know about mmap are:
  9884. * does it exist and is it safe to write into the mmap'd area
  9885. * how to use it (BSD variants) */
  9886. #include <fcntl.h>
  9887. #include <sys/mman.h>
  9888. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9889. char *malloc ();
  9890. #endif
  9891. /* This mess was copied from the GNU getpagesize.h. */
  9892. #ifndef HAVE_GETPAGESIZE
  9893. # ifdef _SC_PAGESIZE
  9894. # define getpagesize() sysconf(_SC_PAGESIZE)
  9895. # else /* no _SC_PAGESIZE */
  9896. # ifdef HAVE_SYS_PARAM_H
  9897. # include <sys/param.h>
  9898. # ifdef EXEC_PAGESIZE
  9899. # define getpagesize() EXEC_PAGESIZE
  9900. # else /* no EXEC_PAGESIZE */
  9901. # ifdef NBPG
  9902. # define getpagesize() NBPG * CLSIZE
  9903. # ifndef CLSIZE
  9904. # define CLSIZE 1
  9905. # endif /* no CLSIZE */
  9906. # else /* no NBPG */
  9907. # ifdef NBPC
  9908. # define getpagesize() NBPC
  9909. # else /* no NBPC */
  9910. # ifdef PAGESIZE
  9911. # define getpagesize() PAGESIZE
  9912. # endif /* PAGESIZE */
  9913. # endif /* no NBPC */
  9914. # endif /* no NBPG */
  9915. # endif /* no EXEC_PAGESIZE */
  9916. # else /* no HAVE_SYS_PARAM_H */
  9917. # define getpagesize() 8192 /* punt totally */
  9918. # endif /* no HAVE_SYS_PARAM_H */
  9919. # endif /* no _SC_PAGESIZE */
  9920. #endif /* no HAVE_GETPAGESIZE */
  9921. int
  9922. main ()
  9923. {
  9924. char *data, *data2, *data3;
  9925. const char *cdata2;
  9926. int i, pagesize;
  9927. int fd, fd2;
  9928. pagesize = getpagesize ();
  9929. /* First, make a file with some known garbage in it. */
  9930. data = (char *) malloc (pagesize);
  9931. if (!data)
  9932. return 1;
  9933. for (i = 0; i < pagesize; ++i)
  9934. *(data + i) = rand ();
  9935. umask (0);
  9936. fd = creat ("conftest.mmap", 0600);
  9937. if (fd < 0)
  9938. return 2;
  9939. if (write (fd, data, pagesize) != pagesize)
  9940. return 3;
  9941. close (fd);
  9942. /* Next, check that the tail of a page is zero-filled. File must have
  9943. non-zero length, otherwise we risk SIGBUS for entire page. */
  9944. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  9945. if (fd2 < 0)
  9946. return 4;
  9947. cdata2 = "";
  9948. if (write (fd2, cdata2, 1) != 1)
  9949. return 5;
  9950. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  9951. if (data2 == MAP_FAILED)
  9952. return 6;
  9953. for (i = 0; i < pagesize; ++i)
  9954. if (*(data2 + i))
  9955. return 7;
  9956. close (fd2);
  9957. if (munmap (data2, pagesize))
  9958. return 8;
  9959. /* Next, try to mmap the file at a fixed address which already has
  9960. something else allocated at it. If we can, also make sure that
  9961. we see the same garbage. */
  9962. fd = open ("conftest.mmap", O_RDWR);
  9963. if (fd < 0)
  9964. return 9;
  9965. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9966. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9967. return 10;
  9968. for (i = 0; i < pagesize; ++i)
  9969. if (*(data + i) != *(data2 + i))
  9970. return 11;
  9971. /* Finally, make sure that changes to the mapped area do not
  9972. percolate back to the file as seen by read(). (This is a bug on
  9973. some variants of i386 svr4.0.) */
  9974. for (i = 0; i < pagesize; ++i)
  9975. *(data2 + i) = *(data2 + i) + 1;
  9976. data3 = (char *) malloc (pagesize);
  9977. if (!data3)
  9978. return 12;
  9979. if (read (fd, data3, pagesize) != pagesize)
  9980. return 13;
  9981. for (i = 0; i < pagesize; ++i)
  9982. if (*(data + i) != *(data3 + i))
  9983. return 14;
  9984. close (fd);
  9985. return 0;
  9986. }
  9987. _ACEOF
  9988. if ac_fn_c_try_run "$LINENO"; then :
  9989. ac_cv_func_mmap_fixed_mapped=yes
  9990. else
  9991. ac_cv_func_mmap_fixed_mapped=no
  9992. fi
  9993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9994. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9995. fi
  9996. fi
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9998. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9999. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10000. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  10001. fi
  10002. rm -f conftest.mmap conftest.txt
  10003. for ac_header in sys/select.h sys/socket.h
  10004. do :
  10005. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10006. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10007. eval as_val=\$$as_ac_Header
  10008. if test "x$as_val" = x""yes; then :
  10009. cat >>confdefs.h <<_ACEOF
  10010. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10011. _ACEOF
  10012. fi
  10013. done
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  10015. $as_echo_n "checking types of arguments for select... " >&6; }
  10016. if test "${ac_cv_func_select_args+set}" = set; then :
  10017. $as_echo_n "(cached) " >&6
  10018. else
  10019. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10020. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10021. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10023. /* end confdefs.h. */
  10024. $ac_includes_default
  10025. #ifdef HAVE_SYS_SELECT_H
  10026. # include <sys/select.h>
  10027. #endif
  10028. #ifdef HAVE_SYS_SOCKET_H
  10029. # include <sys/socket.h>
  10030. #endif
  10031. int
  10032. main ()
  10033. {
  10034. extern int select ($ac_arg1,
  10035. $ac_arg234, $ac_arg234, $ac_arg234,
  10036. $ac_arg5);
  10037. ;
  10038. return 0;
  10039. }
  10040. _ACEOF
  10041. if ac_fn_c_try_compile "$LINENO"; then :
  10042. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10045. done
  10046. done
  10047. done
  10048. # Provide a safe default value.
  10049. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10050. fi
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  10052. $as_echo "$ac_cv_func_select_args" >&6; }
  10053. ac_save_IFS=$IFS; IFS=','
  10054. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10055. IFS=$ac_save_IFS
  10056. shift
  10057. cat >>confdefs.h <<_ACEOF
  10058. #define SELECT_TYPE_ARG1 $1
  10059. _ACEOF
  10060. cat >>confdefs.h <<_ACEOF
  10061. #define SELECT_TYPE_ARG234 ($2)
  10062. _ACEOF
  10063. cat >>confdefs.h <<_ACEOF
  10064. #define SELECT_TYPE_ARG5 ($3)
  10065. _ACEOF
  10066. rm -f conftest*
  10067. if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
  10068. $as_echo_n "(cached) " >&6
  10069. else
  10070. ac_cv_func_setvbuf_reversed=no
  10071. fi
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10073. $as_echo_n "checking return type of signal handlers... " >&6; }
  10074. if test "${ac_cv_type_signal+set}" = set; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10078. /* end confdefs.h. */
  10079. #include <sys/types.h>
  10080. #include <signal.h>
  10081. int
  10082. main ()
  10083. {
  10084. return *(signal (0, 0)) (0) == 1;
  10085. ;
  10086. return 0;
  10087. }
  10088. _ACEOF
  10089. if ac_fn_c_try_compile "$LINENO"; then :
  10090. ac_cv_type_signal=int
  10091. else
  10092. ac_cv_type_signal=void
  10093. fi
  10094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10095. fi
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10097. $as_echo "$ac_cv_type_signal" >&6; }
  10098. cat >>confdefs.h <<_ACEOF
  10099. #define RETSIGTYPE $ac_cv_type_signal
  10100. _ACEOF
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  10102. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  10103. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  10104. $as_echo_n "(cached) " >&6
  10105. else
  10106. rm -f conftest.sym conftest.file
  10107. echo >conftest.file
  10108. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10109. if test "$cross_compiling" = yes; then :
  10110. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10111. else
  10112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10113. /* end confdefs.h. */
  10114. $ac_includes_default
  10115. int
  10116. main ()
  10117. {
  10118. struct stat sbuf;
  10119. /* Linux will dereference the symlink and fail, as required by POSIX.
  10120. That is better in the sense that it means we will not
  10121. have to compile and use the lstat wrapper. */
  10122. return lstat ("conftest.sym/", &sbuf) == 0;
  10123. ;
  10124. return 0;
  10125. }
  10126. _ACEOF
  10127. if ac_fn_c_try_run "$LINENO"; then :
  10128. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10129. else
  10130. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10131. fi
  10132. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10133. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10134. fi
  10135. else
  10136. # If the `ln -s' command failed, then we probably don't even
  10137. # have an lstat function.
  10138. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10139. fi
  10140. rm -f conftest.sym conftest.file
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10143. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10144. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10145. cat >>confdefs.h <<_ACEOF
  10146. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10147. _ACEOF
  10148. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  10149. case " $LIBOBJS " in
  10150. *" lstat.$ac_objext "* ) ;;
  10151. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10152. ;;
  10153. esac
  10154. fi
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  10156. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  10157. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. if test "$cross_compiling" = yes; then :
  10161. ac_cv_func_stat_empty_string_bug=yes
  10162. else
  10163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10164. /* end confdefs.h. */
  10165. $ac_includes_default
  10166. int
  10167. main ()
  10168. {
  10169. struct stat sbuf;
  10170. return stat ("", &sbuf) == 0;
  10171. ;
  10172. return 0;
  10173. }
  10174. _ACEOF
  10175. if ac_fn_c_try_run "$LINENO"; then :
  10176. ac_cv_func_stat_empty_string_bug=no
  10177. else
  10178. ac_cv_func_stat_empty_string_bug=yes
  10179. fi
  10180. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10181. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10182. fi
  10183. fi
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  10185. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  10186. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10187. case " $LIBOBJS " in
  10188. *" stat.$ac_objext "* ) ;;
  10189. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10190. ;;
  10191. esac
  10192. cat >>confdefs.h <<_ACEOF
  10193. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10194. _ACEOF
  10195. fi
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  10197. $as_echo_n "checking for working strcoll... " >&6; }
  10198. if test "${ac_cv_func_strcoll_works+set}" = set; then :
  10199. $as_echo_n "(cached) " >&6
  10200. else
  10201. if test "$cross_compiling" = yes; then :
  10202. ac_cv_func_strcoll_works=no
  10203. else
  10204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10205. /* end confdefs.h. */
  10206. $ac_includes_default
  10207. int
  10208. main ()
  10209. {
  10210. return (strcoll ("abc", "def") >= 0 ||
  10211. strcoll ("ABC", "DEF") >= 0 ||
  10212. strcoll ("123", "456") >= 0)
  10213. ;
  10214. return 0;
  10215. }
  10216. _ACEOF
  10217. if ac_fn_c_try_run "$LINENO"; then :
  10218. ac_cv_func_strcoll_works=yes
  10219. else
  10220. ac_cv_func_strcoll_works=no
  10221. fi
  10222. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10223. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10224. fi
  10225. fi
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  10227. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  10228. if test $ac_cv_func_strcoll_works = yes; then
  10229. $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
  10230. fi
  10231. for ac_func in strftime
  10232. do :
  10233. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  10234. if test "x$ac_cv_func_strftime" = x""yes; then :
  10235. cat >>confdefs.h <<_ACEOF
  10236. #define HAVE_STRFTIME 1
  10237. _ACEOF
  10238. else
  10239. # strftime is in -lintl on SCO UNIX.
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  10241. $as_echo_n "checking for strftime in -lintl... " >&6; }
  10242. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  10243. $as_echo_n "(cached) " >&6
  10244. else
  10245. ac_check_lib_save_LIBS=$LIBS
  10246. LIBS="-lintl $LIBS"
  10247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10248. /* end confdefs.h. */
  10249. /* Override any GCC internal prototype to avoid an error.
  10250. Use char because int might match the return type of a GCC
  10251. builtin and then its argument prototype would still apply. */
  10252. #ifdef __cplusplus
  10253. extern "C"
  10254. #endif
  10255. char strftime ();
  10256. int
  10257. main ()
  10258. {
  10259. return strftime ();
  10260. ;
  10261. return 0;
  10262. }
  10263. _ACEOF
  10264. if ac_fn_c_try_link "$LINENO"; then :
  10265. ac_cv_lib_intl_strftime=yes
  10266. else
  10267. ac_cv_lib_intl_strftime=no
  10268. fi
  10269. rm -f core conftest.err conftest.$ac_objext \
  10270. conftest$ac_exeext conftest.$ac_ext
  10271. LIBS=$ac_check_lib_save_LIBS
  10272. fi
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  10274. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  10275. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  10276. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  10277. LIBS="-lintl $LIBS"
  10278. fi
  10279. fi
  10280. done
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  10282. $as_echo_n "checking for working strnlen... " >&6; }
  10283. if test "${ac_cv_func_strnlen_working+set}" = set; then :
  10284. $as_echo_n "(cached) " >&6
  10285. else
  10286. if test "$cross_compiling" = yes; then :
  10287. ac_cv_func_strnlen_working=no
  10288. else
  10289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10290. /* end confdefs.h. */
  10291. $ac_includes_default
  10292. int
  10293. main ()
  10294. {
  10295. #define S "foobar"
  10296. #define S_LEN (sizeof S - 1)
  10297. /* At least one implementation is buggy: that of AIX 4.3 would
  10298. give strnlen (S, 1) == 3. */
  10299. int i;
  10300. for (i = 0; i < S_LEN + 1; ++i)
  10301. {
  10302. int expected = i <= S_LEN ? i : S_LEN;
  10303. if (strnlen (S, i) != expected)
  10304. return 1;
  10305. }
  10306. return 0;
  10307. ;
  10308. return 0;
  10309. }
  10310. _ACEOF
  10311. if ac_fn_c_try_run "$LINENO"; then :
  10312. ac_cv_func_strnlen_working=yes
  10313. else
  10314. ac_cv_func_strnlen_working=no
  10315. fi
  10316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10317. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10318. fi
  10319. fi
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  10321. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  10322. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  10323. *" strnlen.$ac_objext "* ) ;;
  10324. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  10325. ;;
  10326. esac
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  10328. $as_echo_n "checking for working strtod... " >&6; }
  10329. if test "${ac_cv_func_strtod+set}" = set; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. if test "$cross_compiling" = yes; then :
  10333. ac_cv_func_strtod=no
  10334. else
  10335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10336. /* end confdefs.h. */
  10337. $ac_includes_default
  10338. #ifndef strtod
  10339. double strtod ();
  10340. #endif
  10341. int
  10342. main()
  10343. {
  10344. {
  10345. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  10346. char *string = " +69";
  10347. char *term;
  10348. double value;
  10349. value = strtod (string, &term);
  10350. if (value != 69 || term != (string + 4))
  10351. return 1;
  10352. }
  10353. {
  10354. /* Under Solaris 2.4, strtod returns the wrong value for the
  10355. terminating character under some conditions. */
  10356. char *string = "NaN";
  10357. char *term;
  10358. strtod (string, &term);
  10359. if (term != string && *(term - 1) == 0)
  10360. return 1;
  10361. }
  10362. return 0;
  10363. }
  10364. _ACEOF
  10365. if ac_fn_c_try_run "$LINENO"; then :
  10366. ac_cv_func_strtod=yes
  10367. else
  10368. ac_cv_func_strtod=no
  10369. fi
  10370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10371. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10372. fi
  10373. fi
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  10375. $as_echo "$ac_cv_func_strtod" >&6; }
  10376. if test $ac_cv_func_strtod = no; then
  10377. case " $LIBOBJS " in
  10378. *" strtod.$ac_objext "* ) ;;
  10379. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  10380. ;;
  10381. esac
  10382. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  10383. if test "x$ac_cv_func_pow" = x""yes; then :
  10384. fi
  10385. if test $ac_cv_func_pow = no; then
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  10387. $as_echo_n "checking for pow in -lm... " >&6; }
  10388. if test "${ac_cv_lib_m_pow+set}" = set; then :
  10389. $as_echo_n "(cached) " >&6
  10390. else
  10391. ac_check_lib_save_LIBS=$LIBS
  10392. LIBS="-lm $LIBS"
  10393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10394. /* end confdefs.h. */
  10395. /* Override any GCC internal prototype to avoid an error.
  10396. Use char because int might match the return type of a GCC
  10397. builtin and then its argument prototype would still apply. */
  10398. #ifdef __cplusplus
  10399. extern "C"
  10400. #endif
  10401. char pow ();
  10402. int
  10403. main ()
  10404. {
  10405. return pow ();
  10406. ;
  10407. return 0;
  10408. }
  10409. _ACEOF
  10410. if ac_fn_c_try_link "$LINENO"; then :
  10411. ac_cv_lib_m_pow=yes
  10412. else
  10413. ac_cv_lib_m_pow=no
  10414. fi
  10415. rm -f core conftest.err conftest.$ac_objext \
  10416. conftest$ac_exeext conftest.$ac_ext
  10417. LIBS=$ac_check_lib_save_LIBS
  10418. fi
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  10420. $as_echo "$ac_cv_lib_m_pow" >&6; }
  10421. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  10422. POW_LIB=-lm
  10423. else
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  10425. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  10426. fi
  10427. fi
  10428. fi
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  10430. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  10431. if test "${ac_cv_func_utime_null+set}" = set; then :
  10432. $as_echo_n "(cached) " >&6
  10433. else
  10434. rm -f conftest.data; >conftest.data
  10435. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  10436. if test "$cross_compiling" = yes; then :
  10437. ac_cv_func_utime_null='guessing yes'
  10438. else
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. $ac_includes_default
  10442. #ifdef HAVE_UTIME_H
  10443. # include <utime.h>
  10444. #endif
  10445. int
  10446. main ()
  10447. {
  10448. struct stat s, t;
  10449. return ! (stat ("conftest.data", &s) == 0
  10450. && utime ("conftest.data", 0) == 0
  10451. && stat ("conftest.data", &t) == 0
  10452. && t.st_mtime >= s.st_mtime
  10453. && t.st_mtime - s.st_mtime < 120);
  10454. ;
  10455. return 0;
  10456. }
  10457. _ACEOF
  10458. if ac_fn_c_try_run "$LINENO"; then :
  10459. ac_cv_func_utime_null=yes
  10460. else
  10461. ac_cv_func_utime_null=no
  10462. fi
  10463. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10464. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10465. fi
  10466. fi
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  10468. $as_echo "$ac_cv_func_utime_null" >&6; }
  10469. if test "x$ac_cv_func_utime_null" != xno; then
  10470. ac_cv_func_utime_null=yes
  10471. $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
  10472. fi
  10473. rm -f conftest.data
  10474. for ac_func in vprintf
  10475. do :
  10476. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  10477. if test "x$ac_cv_func_vprintf" = x""yes; then :
  10478. cat >>confdefs.h <<_ACEOF
  10479. #define HAVE_VPRINTF 1
  10480. _ACEOF
  10481. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  10482. if test "x$ac_cv_func__doprnt" = x""yes; then :
  10483. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  10484. fi
  10485. fi
  10486. done
  10487. for ac_func in asprintf atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow ppoll putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf ioperm
  10488. do :
  10489. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10490. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10491. eval as_val=\$$as_ac_var
  10492. if test "x$as_val" = x""yes; then :
  10493. cat >>confdefs.h <<_ACEOF
  10494. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10495. _ACEOF
  10496. fi
  10497. done
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
  10499. $as_echo_n "checking for timersub in time.h... " >&6; }
  10500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10501. /* end confdefs.h. */
  10502. #include <sys/time.h>
  10503. int
  10504. main ()
  10505. {
  10506. struct timeval *zombies; timersub(zombies, zombies, zombies);
  10507. ;
  10508. return 0;
  10509. }
  10510. _ACEOF
  10511. if ac_fn_c_try_link "$LINENO"; then :
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10513. $as_echo "yes" >&6; }
  10514. $as_echo "#define HAVE_TIMERSUB 1" >>confdefs.h
  10515. else
  10516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10517. $as_echo "no" >&6; }
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext \
  10520. conftest$ac_exeext conftest.$ac_ext
  10521. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
  10523. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  10524. if test "${ac_cv_search_gethostbyname_r+set}" = set; then :
  10525. $as_echo_n "(cached) " >&6
  10526. else
  10527. ac_func_search_save_LIBS=$LIBS
  10528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10529. /* end confdefs.h. */
  10530. /* Override any GCC internal prototype to avoid an error.
  10531. Use char because int might match the return type of a GCC
  10532. builtin and then its argument prototype would still apply. */
  10533. #ifdef __cplusplus
  10534. extern "C"
  10535. #endif
  10536. char gethostbyname_r ();
  10537. int
  10538. main ()
  10539. {
  10540. return gethostbyname_r ();
  10541. ;
  10542. return 0;
  10543. }
  10544. _ACEOF
  10545. for ac_lib in '' socket nsl; do
  10546. if test -z "$ac_lib"; then
  10547. ac_res="none required"
  10548. else
  10549. ac_res=-l$ac_lib
  10550. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10551. fi
  10552. if ac_fn_c_try_link "$LINENO"; then :
  10553. ac_cv_search_gethostbyname_r=$ac_res
  10554. fi
  10555. rm -f core conftest.err conftest.$ac_objext \
  10556. conftest$ac_exeext
  10557. if test "${ac_cv_search_gethostbyname_r+set}" = set; then :
  10558. break
  10559. fi
  10560. done
  10561. if test "${ac_cv_search_gethostbyname_r+set}" = set; then :
  10562. else
  10563. ac_cv_search_gethostbyname_r=no
  10564. fi
  10565. rm conftest.$ac_ext
  10566. LIBS=$ac_func_search_save_LIBS
  10567. fi
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
  10569. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  10570. ac_res=$ac_cv_search_gethostbyname_r
  10571. if test "$ac_res" != no; then :
  10572. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10573. fi
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 arguments" >&5
  10575. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  10576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10577. /* end confdefs.h. */
  10578. #include <stdlib.h>
  10579. #include <netdb.h>
  10580. int
  10581. main ()
  10582. {
  10583. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  10584. ;
  10585. return 0;
  10586. }
  10587. _ACEOF
  10588. if ac_fn_c_try_link "$LINENO"; then :
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10590. $as_echo "yes" >&6; }
  10591. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  10592. else
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10594. $as_echo "no" >&6; }
  10595. fi
  10596. rm -f core conftest.err conftest.$ac_objext \
  10597. conftest$ac_exeext conftest.$ac_ext
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
  10599. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. #include <stdlib.h>
  10603. #include <netdb.h>
  10604. int
  10605. main ()
  10606. {
  10607. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  10608. ;
  10609. return 0;
  10610. }
  10611. _ACEOF
  10612. if ac_fn_c_try_link "$LINENO"; then :
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10614. $as_echo "yes" >&6; }
  10615. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  10616. else
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10618. $as_echo "no" >&6; }
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext \
  10621. conftest$ac_exeext conftest.$ac_ext
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER" >&5
  10623. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER... " >&6; }
  10624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10625. /* end confdefs.h. */
  10626. #include <pthread.h>
  10627. int
  10628. main ()
  10629. {
  10630. int foo = PTHREAD_RWLOCK_INITIALIZER;
  10631. ;
  10632. return 0;
  10633. }
  10634. _ACEOF
  10635. if ac_fn_c_try_link "$LINENO"; then :
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10637. $as_echo "yes" >&6; }
  10638. $as_echo "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1" >>confdefs.h
  10639. else
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10641. $as_echo "no" >&6; }
  10642. fi
  10643. rm -f core conftest.err conftest.$ac_objext \
  10644. conftest$ac_exeext conftest.$ac_ext
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP" >&5
  10646. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... " >&6; }
  10647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10648. /* end confdefs.h. */
  10649. #include <pthread.h>
  10650. int
  10651. main ()
  10652. {
  10653. int foo = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  10654. ;
  10655. return 0;
  10656. }
  10657. _ACEOF
  10658. if ac_fn_c_try_link "$LINENO"; then :
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10660. $as_echo "yes" >&6; }
  10661. $as_echo "#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1" >>confdefs.h
  10662. else
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10664. $as_echo "no" >&6; }
  10665. fi
  10666. rm -f core conftest.err conftest.$ac_objext \
  10667. conftest$ac_exeext conftest.$ac_ext
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  10669. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  10670. saved_LDFLAGS="${LDFLAGS}"
  10671. LDFLAGS="${LDFLAGS} -lpthread"
  10672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10673. /* end confdefs.h. */
  10674. #include <pthread.h>
  10675. #include <time.h>
  10676. int
  10677. main ()
  10678. {
  10679. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  10680. ;
  10681. return 0;
  10682. }
  10683. _ACEOF
  10684. if ac_fn_c_try_link "$LINENO"; then :
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10686. $as_echo "yes" >&6; }
  10687. ac_cv_pthread_rwlock_timedwrlock="yes"
  10688. else
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10690. $as_echo "no" >&6; }
  10691. ac_cv_pthread_rwlock_timedwrlock="no"
  10692. fi
  10693. rm -f core conftest.err conftest.$ac_objext \
  10694. conftest$ac_exeext conftest.$ac_ext
  10695. LDFLAGS="${saved_LDFLAGS}"
  10696. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  10697. $as_echo "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
  10698. fi
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
  10700. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  10701. saved_CFLAGS="${CFLAGS}"
  10702. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. #include <pthread.h>
  10706. void empty(){}
  10707. int
  10708. main ()
  10709. {
  10710. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  10711. ;
  10712. return 0;
  10713. }
  10714. _ACEOF
  10715. if ac_fn_c_try_compile "$LINENO"; then :
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10717. $as_echo "no" >&6; }
  10718. ac_cv_pthread_once_needsbraces="no"
  10719. else
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10721. $as_echo "yes" >&6; }
  10722. ac_cv_pthread_once_needsbraces="yes"
  10723. fi
  10724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10725. CFLAGS="${saved_CFLAGS}"
  10726. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  10727. $as_echo "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
  10728. fi
  10729. # Can we compare a mutex to its initial value?
  10730. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
  10732. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  10733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10734. /* end confdefs.h. */
  10735. #include <pthread.h>
  10736. int
  10737. main ()
  10738. {
  10739. pthread_mutex_t lock;
  10740. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  10741. return 0;
  10742. }
  10743. return 0
  10744. ;
  10745. return 0;
  10746. }
  10747. _ACEOF
  10748. if ac_fn_c_try_link "$LINENO"; then :
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10750. $as_echo "yes" >&6; }
  10751. $as_echo "#define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1" >>confdefs.h
  10752. else
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10754. $as_echo "no" >&6; }
  10755. fi
  10756. rm -f core conftest.err conftest.$ac_objext \
  10757. conftest$ac_exeext conftest.$ac_ext
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
  10759. $as_echo_n "checking for compiler atomic operations... " >&6; }
  10760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10761. /* end confdefs.h. */
  10762. int
  10763. main ()
  10764. {
  10765. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  10766. ;
  10767. return 0;
  10768. }
  10769. _ACEOF
  10770. if ac_fn_c_try_link "$LINENO"; then :
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10772. $as_echo "yes" >&6; }
  10773. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  10774. else
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10776. $as_echo "no" >&6; }
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext \
  10779. conftest$ac_exeext conftest.$ac_ext
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can increase the maximum select-able file descriptor" >&5
  10781. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  10782. if test "$cross_compiling" = yes; then :
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  10784. $as_echo "cross-compile" >&6; }
  10785. else
  10786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10787. /* end confdefs.h. */
  10788. #include <stdio.h>
  10789. #include <sys/select.h>
  10790. #include <sys/time.h>
  10791. #include <sys/resource.h>
  10792. #include <string.h>
  10793. #include <errno.h>
  10794. #include <stdlib.h>
  10795. #include <sys/types.h>
  10796. #include <sys/stat.h>
  10797. #include <fcntl.h>
  10798. #include <unistd.h>
  10799. int
  10800. main ()
  10801. {
  10802. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  10803. int fd0, fd1;
  10804. struct timeval tv = { 0, };
  10805. struct ast_fdset { long fds_bits[1024]; } fds = { { 0, } };
  10806. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  10807. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  10808. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  10809. FD_SET(fd0, (fd_set *) &fds);
  10810. FD_SET(fd1, (fd_set *) &fds);
  10811. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  10812. exit(0)
  10813. ;
  10814. return 0;
  10815. }
  10816. _ACEOF
  10817. if ac_fn_c_try_run "$LINENO"; then :
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10819. $as_echo "yes" >&6; }
  10820. $as_echo "#define HAVE_VARIABLE_FDSET 1" >>confdefs.h
  10821. else
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10823. $as_echo "no" >&6; }
  10824. fi
  10825. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10826. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10827. fi
  10828. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  10829. if test "$cross_compiling" = yes; then :
  10830. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10831. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10832. as_fn_error "cannot run test program while cross compiling
  10833. See \`config.log' for more details." "$LINENO" 5; }
  10834. else
  10835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10836. /* end confdefs.h. */
  10837. #include <unistd.h>
  10838. #include <sys/types.h>
  10839. #include <stdlib.h>
  10840. int
  10841. main ()
  10842. {
  10843. if (getuid() != 0) { exit(1); }
  10844. ;
  10845. return 0;
  10846. }
  10847. _ACEOF
  10848. if ac_fn_c_try_run "$LINENO"; then :
  10849. $as_echo "#define CONFIGURE_RAN_AS_ROOT 1" >>confdefs.h
  10850. fi
  10851. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10852. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10853. fi
  10854. fi
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
  10856. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  10857. saved_CFLAGS="$CFLAGS"
  10858. CFLAGS="$CFLAGS -Werror"
  10859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10860. /* end confdefs.h. */
  10861. static void __attribute__((pure)) *test(void *muffin, ...) {}
  10862. int
  10863. main ()
  10864. {
  10865. ;
  10866. return 0;
  10867. }
  10868. _ACEOF
  10869. if ac_fn_c_try_compile "$LINENO"; then :
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10871. $as_echo "yes" >&6; }
  10872. cat >>confdefs.h <<_ACEOF
  10873. #define HAVE_ATTRIBUTE_pure 1
  10874. _ACEOF
  10875. else
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10877. $as_echo "no" >&6; }
  10878. fi
  10879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10880. CFLAGS="$saved_CFLAGS"
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
  10882. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  10883. saved_CFLAGS="$CFLAGS"
  10884. CFLAGS="$CFLAGS -Werror"
  10885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10886. /* end confdefs.h. */
  10887. static void __attribute__((malloc)) *test(void *muffin, ...) {}
  10888. int
  10889. main ()
  10890. {
  10891. ;
  10892. return 0;
  10893. }
  10894. _ACEOF
  10895. if ac_fn_c_try_compile "$LINENO"; then :
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10897. $as_echo "yes" >&6; }
  10898. cat >>confdefs.h <<_ACEOF
  10899. #define HAVE_ATTRIBUTE_malloc 1
  10900. _ACEOF
  10901. else
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10903. $as_echo "no" >&6; }
  10904. fi
  10905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10906. CFLAGS="$saved_CFLAGS"
  10907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
  10908. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  10909. saved_CFLAGS="$CFLAGS"
  10910. CFLAGS="$CFLAGS -Werror"
  10911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10912. /* end confdefs.h. */
  10913. static void __attribute__((const)) *test(void *muffin, ...) {}
  10914. int
  10915. main ()
  10916. {
  10917. ;
  10918. return 0;
  10919. }
  10920. _ACEOF
  10921. if ac_fn_c_try_compile "$LINENO"; then :
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10923. $as_echo "yes" >&6; }
  10924. cat >>confdefs.h <<_ACEOF
  10925. #define HAVE_ATTRIBUTE_const 1
  10926. _ACEOF
  10927. else
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10929. $as_echo "no" >&6; }
  10930. fi
  10931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10932. CFLAGS="$saved_CFLAGS"
  10933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
  10934. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  10935. saved_CFLAGS="$CFLAGS"
  10936. CFLAGS="$CFLAGS -Werror"
  10937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10938. /* end confdefs.h. */
  10939. static void __attribute__((unused)) *test(void *muffin, ...) {}
  10940. int
  10941. main ()
  10942. {
  10943. ;
  10944. return 0;
  10945. }
  10946. _ACEOF
  10947. if ac_fn_c_try_compile "$LINENO"; then :
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10949. $as_echo "yes" >&6; }
  10950. cat >>confdefs.h <<_ACEOF
  10951. #define HAVE_ATTRIBUTE_unused 1
  10952. _ACEOF
  10953. else
  10954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10955. $as_echo "no" >&6; }
  10956. fi
  10957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10958. CFLAGS="$saved_CFLAGS"
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
  10960. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  10961. saved_CFLAGS="$CFLAGS"
  10962. CFLAGS="$CFLAGS -Werror"
  10963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10964. /* end confdefs.h. */
  10965. static void __attribute__((always_inline)) *test(void *muffin, ...) {}
  10966. int
  10967. main ()
  10968. {
  10969. ;
  10970. return 0;
  10971. }
  10972. _ACEOF
  10973. if ac_fn_c_try_compile "$LINENO"; then :
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10975. $as_echo "yes" >&6; }
  10976. cat >>confdefs.h <<_ACEOF
  10977. #define HAVE_ATTRIBUTE_always_inline 1
  10978. _ACEOF
  10979. else
  10980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10981. $as_echo "no" >&6; }
  10982. fi
  10983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10984. CFLAGS="$saved_CFLAGS"
  10985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
  10986. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  10987. saved_CFLAGS="$CFLAGS"
  10988. CFLAGS="$CFLAGS -Werror"
  10989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10990. /* end confdefs.h. */
  10991. static void __attribute__((deprecated)) *test(void *muffin, ...) {}
  10992. int
  10993. main ()
  10994. {
  10995. ;
  10996. return 0;
  10997. }
  10998. _ACEOF
  10999. if ac_fn_c_try_compile "$LINENO"; then :
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11001. $as_echo "yes" >&6; }
  11002. cat >>confdefs.h <<_ACEOF
  11003. #define HAVE_ATTRIBUTE_deprecated 1
  11004. _ACEOF
  11005. else
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11007. $as_echo "no" >&6; }
  11008. fi
  11009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11010. CFLAGS="$saved_CFLAGS"
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
  11012. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  11013. saved_CFLAGS="$CFLAGS"
  11014. CFLAGS="$CFLAGS -Werror"
  11015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11016. /* end confdefs.h. */
  11017. static void __attribute__((warn_unused_result)) *test(void *muffin, ...) {}
  11018. int
  11019. main ()
  11020. {
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_c_try_compile "$LINENO"; then :
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11027. $as_echo "yes" >&6; }
  11028. cat >>confdefs.h <<_ACEOF
  11029. #define HAVE_ATTRIBUTE_warn_unused_result 1
  11030. _ACEOF
  11031. else
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11033. $as_echo "no" >&6; }
  11034. fi
  11035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11036. CFLAGS="$saved_CFLAGS"
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ffunction-sections support" >&5
  11038. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  11039. saved_CFLAGS="${CFLAGS}"
  11040. CFLAGS="${CFLAGS} -ffunction-sections"
  11041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11042. /* end confdefs.h. */
  11043. int
  11044. main ()
  11045. {
  11046. int x = 1;
  11047. ;
  11048. return 0;
  11049. }
  11050. _ACEOF
  11051. if ac_fn_c_try_compile "$LINENO"; then :
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11053. $as_echo "yes" >&6; }
  11054. saved_LDFLAGS="${LDFLAGS}"
  11055. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --gc-sections support" >&5
  11057. $as_echo_n "checking for --gc-sections support... " >&6; }
  11058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11059. /* end confdefs.h. */
  11060. int
  11061. main ()
  11062. {
  11063. int x = 1;
  11064. ;
  11065. return 0;
  11066. }
  11067. _ACEOF
  11068. if ac_fn_c_try_link "$LINENO"; then :
  11069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11070. $as_echo "yes" >&6; }
  11071. GC_CFLAGS="-ffunction-sections"
  11072. GC_LDFLAGS="-Wl,--gc-sections"
  11073. else
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11075. $as_echo "no" >&6; }
  11076. fi
  11077. rm -f core conftest.err conftest.$ac_objext \
  11078. conftest$ac_exeext conftest.$ac_ext
  11079. LDFLAGS="${saved_LDFLAGS}"
  11080. else
  11081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11082. $as_echo "no" >&6; }
  11083. fi
  11084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11085. CFLAGS="${saved_CFLAGS}"
  11086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
  11087. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  11088. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11090. $as_echo "yes" >&6; }
  11091. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  11092. else
  11093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11094. $as_echo "no" >&6; }
  11095. AST_DECLARATION_AFTER_STATEMENT=
  11096. fi
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
  11098. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  11099. if $(${CC} -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11101. $as_echo "yes" >&6; }
  11102. AST_FORTIFY_SOURCE=-D_FORTIFY_SOURCE=2
  11103. else
  11104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11105. $as_echo "no" >&6; }
  11106. AST_FORTIFY_SOURCE=
  11107. fi
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
  11109. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  11110. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11112. $as_echo "yes" >&6; }
  11113. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  11114. else
  11115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11116. $as_echo "no" >&6; }
  11117. AST_NO_STRICT_OVERFLOW=
  11118. fi
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
  11120. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  11121. if test "${ac_cv_search_res_9_ninit+set}" = set; then :
  11122. $as_echo_n "(cached) " >&6
  11123. else
  11124. ac_func_search_save_LIBS=$LIBS
  11125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11126. /* end confdefs.h. */
  11127. /* Override any GCC internal prototype to avoid an error.
  11128. Use char because int might match the return type of a GCC
  11129. builtin and then its argument prototype would still apply. */
  11130. #ifdef __cplusplus
  11131. extern "C"
  11132. #endif
  11133. char res_9_ninit ();
  11134. int
  11135. main ()
  11136. {
  11137. return res_9_ninit ();
  11138. ;
  11139. return 0;
  11140. }
  11141. _ACEOF
  11142. for ac_lib in '' resolv; do
  11143. if test -z "$ac_lib"; then
  11144. ac_res="none required"
  11145. else
  11146. ac_res=-l$ac_lib
  11147. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11148. fi
  11149. if ac_fn_c_try_link "$LINENO"; then :
  11150. ac_cv_search_res_9_ninit=$ac_res
  11151. fi
  11152. rm -f core conftest.err conftest.$ac_objext \
  11153. conftest$ac_exeext
  11154. if test "${ac_cv_search_res_9_ninit+set}" = set; then :
  11155. break
  11156. fi
  11157. done
  11158. if test "${ac_cv_search_res_9_ninit+set}" = set; then :
  11159. else
  11160. ac_cv_search_res_9_ninit=no
  11161. fi
  11162. rm conftest.$ac_ext
  11163. LIBS=$ac_func_search_save_LIBS
  11164. fi
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
  11166. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  11167. ac_res=$ac_cv_search_res_9_ninit
  11168. if test "$ac_res" != no; then :
  11169. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11170. fi
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
  11172. $as_echo_n "checking for res_ninit... " >&6; }
  11173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11174. /* end confdefs.h. */
  11175. #ifdef HAVE_SYS_SOCKET_H
  11176. #include <sys/socket.h>
  11177. #endif
  11178. #ifdef HAVE_NETINET_IN_H
  11179. #include <netinet/in.h>
  11180. #endif
  11181. #ifdef HAVE_ARPA_NAMESER_H
  11182. #include <arpa/nameser.h>
  11183. #endif
  11184. #include <resolv.h>
  11185. int
  11186. main ()
  11187. {
  11188. int foo = res_ninit(NULL);
  11189. ;
  11190. return 0;
  11191. }
  11192. _ACEOF
  11193. if ac_fn_c_try_link "$LINENO"; then :
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11195. $as_echo "yes" >&6; }
  11196. $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
  11198. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  11199. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then :
  11200. $as_echo_n "(cached) " >&6
  11201. else
  11202. ac_func_search_save_LIBS=$LIBS
  11203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11204. /* end confdefs.h. */
  11205. /* Override any GCC internal prototype to avoid an error.
  11206. Use char because int might match the return type of a GCC
  11207. builtin and then its argument prototype would still apply. */
  11208. #ifdef __cplusplus
  11209. extern "C"
  11210. #endif
  11211. char res_9_ndestroy ();
  11212. int
  11213. main ()
  11214. {
  11215. return res_9_ndestroy ();
  11216. ;
  11217. return 0;
  11218. }
  11219. _ACEOF
  11220. for ac_lib in '' resolv; do
  11221. if test -z "$ac_lib"; then
  11222. ac_res="none required"
  11223. else
  11224. ac_res=-l$ac_lib
  11225. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11226. fi
  11227. if ac_fn_c_try_link "$LINENO"; then :
  11228. ac_cv_search_res_9_ndestroy=$ac_res
  11229. fi
  11230. rm -f core conftest.err conftest.$ac_objext \
  11231. conftest$ac_exeext
  11232. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then :
  11233. break
  11234. fi
  11235. done
  11236. if test "${ac_cv_search_res_9_ndestroy+set}" = set; then :
  11237. else
  11238. ac_cv_search_res_9_ndestroy=no
  11239. fi
  11240. rm conftest.$ac_ext
  11241. LIBS=$ac_func_search_save_LIBS
  11242. fi
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
  11244. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  11245. ac_res=$ac_cv_search_res_9_ndestroy
  11246. if test "$ac_res" != no; then :
  11247. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11248. fi
  11249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
  11250. $as_echo_n "checking for res_ndestroy... " >&6; }
  11251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11252. /* end confdefs.h. */
  11253. #ifdef HAVE_SYS_SOCKET_H
  11254. #include <sys/socket.h>
  11255. #endif
  11256. #ifdef HAVE_NETINET_IN_H
  11257. #include <netinet/in.h>
  11258. #endif
  11259. #ifdef HAVE_ARPA_NAMESER_H
  11260. #include <arpa/nameser.h>
  11261. #endif
  11262. #include <resolv.h>
  11263. int
  11264. main ()
  11265. {
  11266. res_ndestroy(NULL);
  11267. ;
  11268. return 0;
  11269. }
  11270. _ACEOF
  11271. if ac_fn_c_try_link "$LINENO"; then :
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11273. $as_echo "yes" >&6; }
  11274. $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
  11275. else
  11276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11277. $as_echo "no" >&6; }
  11278. fi
  11279. rm -f core conftest.err conftest.$ac_objext \
  11280. conftest$ac_exeext conftest.$ac_ext
  11281. else
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11283. $as_echo "no" >&6; }
  11284. fi
  11285. rm -f core conftest.err conftest.$ac_objext \
  11286. conftest$ac_exeext conftest.$ac_ext
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC" >&5
  11288. $as_echo_n "checking for GLOB_NOMAGIC... " >&6; }
  11289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11290. /* end confdefs.h. */
  11291. #include <glob.h>
  11292. int
  11293. main ()
  11294. {
  11295. int foo = GLOB_NOMAGIC;
  11296. ;
  11297. return 0;
  11298. }
  11299. _ACEOF
  11300. if ac_fn_c_try_link "$LINENO"; then :
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11302. $as_echo "yes" >&6; }
  11303. $as_echo "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
  11304. else
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11306. $as_echo "no" >&6; }
  11307. fi
  11308. rm -f core conftest.err conftest.$ac_objext \
  11309. conftest$ac_exeext conftest.$ac_ext
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE" >&5
  11311. $as_echo_n "checking for GLOB_BRACE... " >&6; }
  11312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11313. /* end confdefs.h. */
  11314. #include <glob.h>
  11315. int
  11316. main ()
  11317. {
  11318. int foo = GLOB_BRACE;
  11319. ;
  11320. return 0;
  11321. }
  11322. _ACEOF
  11323. if ac_fn_c_try_link "$LINENO"; then :
  11324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11325. $as_echo "yes" >&6; }
  11326. $as_echo "#define HAVE_GLOB_BRACE 1" >>confdefs.h
  11327. else
  11328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11329. $as_echo "no" >&6; }
  11330. fi
  11331. rm -f core conftest.err conftest.$ac_objext \
  11332. conftest$ac_exeext conftest.$ac_ext
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER" >&5
  11334. $as_echo_n "checking for IP_MTU_DISCOVER... " >&6; }
  11335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11336. /* end confdefs.h. */
  11337. #include <netinet/in.h>
  11338. int
  11339. main ()
  11340. {
  11341. int foo = IP_MTU_DISCOVER;
  11342. ;
  11343. return 0;
  11344. }
  11345. _ACEOF
  11346. if ac_fn_c_try_link "$LINENO"; then :
  11347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11348. $as_echo "yes" >&6; }
  11349. $as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
  11350. else
  11351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11352. $as_echo "no" >&6; }
  11353. fi
  11354. rm -f core conftest.err conftest.$ac_objext \
  11355. conftest$ac_exeext conftest.$ac_ext
  11356. ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
  11357. if test "x$ac_cv_header_libkern_OSAtomic_h" = x""yes; then :
  11358. cat >>confdefs.h <<_ACEOF
  11359. #define HAVE_OSX_ATOMICS 1
  11360. _ACEOF
  11361. fi
  11362. # The cast to long int works around a bug in the HP C Compiler
  11363. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11364. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11365. # This bug is HP SR number 8606223364.
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11367. $as_echo_n "checking size of int... " >&6; }
  11368. if test "${ac_cv_sizeof_int+set}" = set; then :
  11369. $as_echo_n "(cached) " >&6
  11370. else
  11371. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11372. else
  11373. if test "$ac_cv_type_int" = yes; then
  11374. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11375. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11376. { as_fn_set_status 77
  11377. as_fn_error "cannot compute sizeof (int)
  11378. See \`config.log' for more details." "$LINENO" 5; }; }
  11379. else
  11380. ac_cv_sizeof_int=0
  11381. fi
  11382. fi
  11383. fi
  11384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11385. $as_echo "$ac_cv_sizeof_int" >&6; }
  11386. cat >>confdefs.h <<_ACEOF
  11387. #define SIZEOF_INT $ac_cv_sizeof_int
  11388. _ACEOF
  11389. # The cast to long int works around a bug in the HP C Compiler
  11390. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11391. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11392. # This bug is HP SR number 8606223364.
  11393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11394. $as_echo_n "checking size of long... " >&6; }
  11395. if test "${ac_cv_sizeof_long+set}" = set; then :
  11396. $as_echo_n "(cached) " >&6
  11397. else
  11398. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11399. else
  11400. if test "$ac_cv_type_long" = yes; then
  11401. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11402. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11403. { as_fn_set_status 77
  11404. as_fn_error "cannot compute sizeof (long)
  11405. See \`config.log' for more details." "$LINENO" 5; }; }
  11406. else
  11407. ac_cv_sizeof_long=0
  11408. fi
  11409. fi
  11410. fi
  11411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11412. $as_echo "$ac_cv_sizeof_long" >&6; }
  11413. cat >>confdefs.h <<_ACEOF
  11414. #define SIZEOF_LONG $ac_cv_sizeof_long
  11415. _ACEOF
  11416. # The cast to long int works around a bug in the HP C Compiler
  11417. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11418. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11419. # This bug is HP SR number 8606223364.
  11420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11421. $as_echo_n "checking size of long long... " >&6; }
  11422. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  11423. $as_echo_n "(cached) " >&6
  11424. else
  11425. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11426. else
  11427. if test "$ac_cv_type_long_long" = yes; then
  11428. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11430. { as_fn_set_status 77
  11431. as_fn_error "cannot compute sizeof (long long)
  11432. See \`config.log' for more details." "$LINENO" 5; }; }
  11433. else
  11434. ac_cv_sizeof_long_long=0
  11435. fi
  11436. fi
  11437. fi
  11438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11439. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11440. cat >>confdefs.h <<_ACEOF
  11441. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11442. _ACEOF
  11443. if ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
  11444. fd_set foo;"; then :
  11445. fi
  11446. # This doesn't actually work; what it does is to use the variable set in the
  11447. # previous test as a cached value to set the right output variables.
  11448. # The cast to long int works around a bug in the HP C Compiler
  11449. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11450. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11451. # This bug is HP SR number 8606223364.
  11452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fd_set.fds_bits" >&5
  11453. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  11454. if test "${ac_cv_sizeof_fd_set_fds_bits+set}" = set; then :
  11455. $as_echo_n "(cached) " >&6
  11456. else
  11457. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fd_set.fds_bits))" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default"; then :
  11458. else
  11459. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  11460. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11461. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11462. { as_fn_set_status 77
  11463. as_fn_error "cannot compute sizeof (fd_set.fds_bits)
  11464. See \`config.log' for more details." "$LINENO" 5; }; }
  11465. else
  11466. ac_cv_sizeof_fd_set_fds_bits=0
  11467. fi
  11468. fi
  11469. fi
  11470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  11471. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  11472. cat >>confdefs.h <<_ACEOF
  11473. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  11474. _ACEOF
  11475. # Set a type compatible with the previous. We cannot just use a generic type
  11476. # for these bits, because on big-endian systems, the bits won't match up
  11477. # correctly if the size is wrong.
  11478. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  11479. $as_echo "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
  11480. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  11481. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
  11482. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  11483. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
  11484. fi ; fi ; fi
  11485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
  11486. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  11487. PBX_DLADDR=0
  11488. old_LIBS=${LIBS}
  11489. LIBS="${LIBS} -ldl"
  11490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11491. /* end confdefs.h. */
  11492. #define _GNU_SOURCE 1
  11493. #include <dlfcn.h>
  11494. int
  11495. main ()
  11496. {
  11497. dladdr((void *)0, (void *)0)
  11498. ;
  11499. return 0;
  11500. }
  11501. _ACEOF
  11502. if ac_fn_c_try_link "$LINENO"; then :
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11504. $as_echo "yes" >&6; }
  11505. PBX_DLADDR=1
  11506. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  11507. else
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11509. $as_echo "no" >&6; }
  11510. fi
  11511. rm -f core conftest.err conftest.$ac_objext \
  11512. conftest$ac_exeext conftest.$ac_ext
  11513. LIBS=${old_LIBS}
  11514. # do the package library checks now
  11515. if test "${USE_ALSA}" != "no"; then
  11516. pbxlibdir=""
  11517. if test "x${ALSA_DIR}" != "x"; then
  11518. if test -d ${ALSA_DIR}/lib; then
  11519. pbxlibdir="-L${ALSA_DIR}/lib"
  11520. else
  11521. pbxlibdir="-L${ALSA_DIR}"
  11522. fi
  11523. fi
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_spcm_init in -lasound" >&5
  11525. $as_echo_n "checking for snd_spcm_init in -lasound... " >&6; }
  11526. if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then :
  11527. $as_echo_n "(cached) " >&6
  11528. else
  11529. ac_check_lib_save_LIBS=$LIBS
  11530. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  11531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11532. /* end confdefs.h. */
  11533. /* Override any GCC internal prototype to avoid an error.
  11534. Use char because int might match the return type of a GCC
  11535. builtin and then its argument prototype would still apply. */
  11536. #ifdef __cplusplus
  11537. extern "C"
  11538. #endif
  11539. char snd_spcm_init ();
  11540. int
  11541. main ()
  11542. {
  11543. return snd_spcm_init ();
  11544. ;
  11545. return 0;
  11546. }
  11547. _ACEOF
  11548. if ac_fn_c_try_link "$LINENO"; then :
  11549. ac_cv_lib_asound_snd_spcm_init=yes
  11550. else
  11551. ac_cv_lib_asound_snd_spcm_init=no
  11552. fi
  11553. rm -f core conftest.err conftest.$ac_objext \
  11554. conftest$ac_exeext conftest.$ac_ext
  11555. LIBS=$ac_check_lib_save_LIBS
  11556. fi
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_spcm_init" >&5
  11558. $as_echo "$ac_cv_lib_asound_snd_spcm_init" >&6; }
  11559. if test "x$ac_cv_lib_asound_snd_spcm_init" = x""yes; then :
  11560. AST_ALSA_FOUND=yes
  11561. else
  11562. AST_ALSA_FOUND=no
  11563. fi
  11564. if test "${AST_ALSA_FOUND}" = "yes"; then
  11565. ALSA_LIB="-lasound -lm -ldl"
  11566. ALSA_HEADER_FOUND="1"
  11567. if test "x${ALSA_DIR}" != "x"; then
  11568. ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
  11569. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  11570. fi
  11571. ALSA_INCLUDE="${ALSA_INCLUDE} "
  11572. saved_cppflags="${CPPFLAGS}"
  11573. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  11574. if test "xalsa/asoundlib.h" != "x" ; then
  11575. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  11576. if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
  11577. ALSA_HEADER_FOUND=1
  11578. else
  11579. ALSA_HEADER_FOUND=0
  11580. fi
  11581. fi
  11582. CPPFLAGS="${saved_cppflags}"
  11583. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  11584. if test -n "${ALSA_MANDATORY}" ;
  11585. then
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11587. $as_echo "$as_me: ***" >&6;}
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the asound development package installed." >&5
  11589. $as_echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
  11590. if test "x${ALSA_OPTION}" = "x" ; then
  11591. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${ALSA_DESCRIP} support" >&5
  11592. $as_echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support" >&6;}
  11593. else
  11594. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&5
  11595. $as_echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support, or re-run configure" >&6;}
  11596. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
  11597. $as_echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
  11598. fi
  11599. exit 1
  11600. fi
  11601. ALSA_LIB=""
  11602. ALSA_INCLUDE=""
  11603. PBX_ALSA=0
  11604. else
  11605. PBX_ALSA=1
  11606. cat >>confdefs.h <<_ACEOF
  11607. #define HAVE_ALSA 1
  11608. _ACEOF
  11609. fi
  11610. elif test -n "${ALSA_MANDATORY}";
  11611. then
  11612. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11613. $as_echo "$as_me: ***" >&6;}
  11614. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
  11615. $as_echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
  11616. if test "x${ALSA_OPTION}" = "x" ; then
  11617. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  11618. $as_echo "$as_me: *** Please correct the installation" >&6;}
  11619. else
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  11621. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
  11623. $as_echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
  11624. fi
  11625. exit 1
  11626. fi
  11627. fi
  11628. if test "${USE_BFD}" != "no"; then
  11629. pbxlibdir=""
  11630. if test "x${BFD_DIR}" != "x"; then
  11631. if test -d ${BFD_DIR}/lib; then
  11632. pbxlibdir="-L${BFD_DIR}/lib"
  11633. else
  11634. pbxlibdir="-L${BFD_DIR}"
  11635. fi
  11636. fi
  11637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
  11638. $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
  11639. if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then :
  11640. $as_echo_n "(cached) " >&6
  11641. else
  11642. ac_check_lib_save_LIBS=$LIBS
  11643. LIBS="-lbfd ${pbxlibdir} $LIBS"
  11644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11645. /* end confdefs.h. */
  11646. /* Override any GCC internal prototype to avoid an error.
  11647. Use char because int might match the return type of a GCC
  11648. builtin and then its argument prototype would still apply. */
  11649. #ifdef __cplusplus
  11650. extern "C"
  11651. #endif
  11652. char bfd_openr ();
  11653. int
  11654. main ()
  11655. {
  11656. return bfd_openr ();
  11657. ;
  11658. return 0;
  11659. }
  11660. _ACEOF
  11661. if ac_fn_c_try_link "$LINENO"; then :
  11662. ac_cv_lib_bfd_bfd_openr=yes
  11663. else
  11664. ac_cv_lib_bfd_bfd_openr=no
  11665. fi
  11666. rm -f core conftest.err conftest.$ac_objext \
  11667. conftest$ac_exeext conftest.$ac_ext
  11668. LIBS=$ac_check_lib_save_LIBS
  11669. fi
  11670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
  11671. $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
  11672. if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then :
  11673. AST_BFD_FOUND=yes
  11674. else
  11675. AST_BFD_FOUND=no
  11676. fi
  11677. if test "${AST_BFD_FOUND}" = "yes"; then
  11678. BFD_LIB="-lbfd "
  11679. BFD_HEADER_FOUND="1"
  11680. if test "x${BFD_DIR}" != "x"; then
  11681. BFD_LIB="${pbxlibdir} ${BFD_LIB}"
  11682. BFD_INCLUDE="-I${BFD_DIR}/include"
  11683. fi
  11684. BFD_INCLUDE="${BFD_INCLUDE} "
  11685. saved_cppflags="${CPPFLAGS}"
  11686. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  11687. if test "xbfd.h" != "x" ; then
  11688. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  11689. if test "x$ac_cv_header_bfd_h" = x""yes; then :
  11690. BFD_HEADER_FOUND=1
  11691. else
  11692. BFD_HEADER_FOUND=0
  11693. fi
  11694. fi
  11695. CPPFLAGS="${saved_cppflags}"
  11696. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  11697. if test -n "${BFD_MANDATORY}" ;
  11698. then
  11699. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11700. $as_echo "$as_me: ***" >&6;}
  11701. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the bfd development package installed." >&5
  11702. $as_echo "$as_me: *** It appears that you do not have the bfd development package installed." >&6;}
  11703. if test "x${BFD_OPTION}" = "x" ; then
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${BFD_DESCRIP} support" >&5
  11705. $as_echo "$as_me: *** Please install it to include ${BFD_DESCRIP} support" >&6;}
  11706. else
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${BFD_DESCRIP} support, or re-run configure" >&5
  11708. $as_echo "$as_me: *** Please install it to include ${BFD_DESCRIP} support, or re-run configure" >&6;}
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${BFD_OPTION}" >&5
  11710. $as_echo "$as_me: *** without explicitly specifying --with-${BFD_OPTION}" >&6;}
  11711. fi
  11712. exit 1
  11713. fi
  11714. BFD_LIB=""
  11715. BFD_INCLUDE=""
  11716. PBX_BFD=0
  11717. else
  11718. PBX_BFD=1
  11719. cat >>confdefs.h <<_ACEOF
  11720. #define HAVE_BFD 1
  11721. _ACEOF
  11722. fi
  11723. elif test -n "${BFD_MANDATORY}";
  11724. then
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11726. $as_echo "$as_me: ***" >&6;}
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${BFD_DESCRIP} installation on this system appears to be broken." >&5
  11728. $as_echo "$as_me: *** The ${BFD_DESCRIP} installation on this system appears to be broken." >&6;}
  11729. if test "x${BFD_OPTION}" = "x" ; then
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  11731. $as_echo "$as_me: *** Please correct the installation" >&6;}
  11732. else
  11733. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  11734. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  11735. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${BFD_OPTION}" >&5
  11736. $as_echo "$as_me: *** without explicitly specifying --with-${BFD_OPTION}" >&6;}
  11737. fi
  11738. exit 1
  11739. fi
  11740. fi
  11741. if test "${USE_CURSES}" != "no"; then
  11742. pbxlibdir=""
  11743. if test "x${CURSES_DIR}" != "x"; then
  11744. if test -d ${CURSES_DIR}/lib; then
  11745. pbxlibdir="-L${CURSES_DIR}/lib"
  11746. else
  11747. pbxlibdir="-L${CURSES_DIR}"
  11748. fi
  11749. fi
  11750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
  11751. $as_echo_n "checking for initscr in -lcurses... " >&6; }
  11752. if test "${ac_cv_lib_curses_initscr+set}" = set; then :
  11753. $as_echo_n "(cached) " >&6
  11754. else
  11755. ac_check_lib_save_LIBS=$LIBS
  11756. LIBS="-lcurses ${pbxlibdir} $LIBS"
  11757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11758. /* end confdefs.h. */
  11759. /* Override any GCC internal prototype to avoid an error.
  11760. Use char because int might match the return type of a GCC
  11761. builtin and then its argument prototype would still apply. */
  11762. #ifdef __cplusplus
  11763. extern "C"
  11764. #endif
  11765. char initscr ();
  11766. int
  11767. main ()
  11768. {
  11769. return initscr ();
  11770. ;
  11771. return 0;
  11772. }
  11773. _ACEOF
  11774. if ac_fn_c_try_link "$LINENO"; then :
  11775. ac_cv_lib_curses_initscr=yes
  11776. else
  11777. ac_cv_lib_curses_initscr=no
  11778. fi
  11779. rm -f core conftest.err conftest.$ac_objext \
  11780. conftest$ac_exeext conftest.$ac_ext
  11781. LIBS=$ac_check_lib_save_LIBS
  11782. fi
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
  11784. $as_echo "$ac_cv_lib_curses_initscr" >&6; }
  11785. if test "x$ac_cv_lib_curses_initscr" = x""yes; then :
  11786. AST_CURSES_FOUND=yes
  11787. else
  11788. AST_CURSES_FOUND=no
  11789. fi
  11790. if test "${AST_CURSES_FOUND}" = "yes"; then
  11791. CURSES_LIB="-lcurses "
  11792. CURSES_HEADER_FOUND="1"
  11793. if test "x${CURSES_DIR}" != "x"; then
  11794. CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
  11795. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  11796. fi
  11797. CURSES_INCLUDE="${CURSES_INCLUDE} "
  11798. saved_cppflags="${CPPFLAGS}"
  11799. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  11800. if test "xcurses.h" != "x" ; then
  11801. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  11802. if test "x$ac_cv_header_curses_h" = x""yes; then :
  11803. CURSES_HEADER_FOUND=1
  11804. else
  11805. CURSES_HEADER_FOUND=0
  11806. fi
  11807. fi
  11808. CPPFLAGS="${saved_cppflags}"
  11809. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  11810. if test -n "${CURSES_MANDATORY}" ;
  11811. then
  11812. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11813. $as_echo "$as_me: ***" >&6;}
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the curses development package installed." >&5
  11815. $as_echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
  11816. if test "x${CURSES_OPTION}" = "x" ; then
  11817. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${CURSES_DESCRIP} support" >&5
  11818. $as_echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support" >&6;}
  11819. else
  11820. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&5
  11821. $as_echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support, or re-run configure" >&6;}
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
  11823. $as_echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
  11824. fi
  11825. exit 1
  11826. fi
  11827. CURSES_LIB=""
  11828. CURSES_INCLUDE=""
  11829. PBX_CURSES=0
  11830. else
  11831. PBX_CURSES=1
  11832. cat >>confdefs.h <<_ACEOF
  11833. #define HAVE_CURSES 1
  11834. _ACEOF
  11835. fi
  11836. elif test -n "${CURSES_MANDATORY}";
  11837. then
  11838. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11839. $as_echo "$as_me: ***" >&6;}
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
  11841. $as_echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
  11842. if test "x${CURSES_OPTION}" = "x" ; then
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  11844. $as_echo "$as_me: *** Please correct the installation" >&6;}
  11845. else
  11846. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  11847. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
  11849. $as_echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
  11850. fi
  11851. exit 1
  11852. fi
  11853. fi
  11854. if test "x${OSARCH}" = "xlinux-gnu" ; then
  11855. if test "${USE_CAP}" != "no"; then
  11856. pbxlibdir=""
  11857. if test "x${CAP_DIR}" != "x"; then
  11858. if test -d ${CAP_DIR}/lib; then
  11859. pbxlibdir="-L${CAP_DIR}/lib"
  11860. else
  11861. pbxlibdir="-L${CAP_DIR}"
  11862. fi
  11863. fi
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_from_text in -lcap" >&5
  11865. $as_echo_n "checking for cap_from_text in -lcap... " >&6; }
  11866. if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then :
  11867. $as_echo_n "(cached) " >&6
  11868. else
  11869. ac_check_lib_save_LIBS=$LIBS
  11870. LIBS="-lcap ${pbxlibdir} $LIBS"
  11871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11872. /* end confdefs.h. */
  11873. /* Override any GCC internal prototype to avoid an error.
  11874. Use char because int might match the return type of a GCC
  11875. builtin and then its argument prototype would still apply. */
  11876. #ifdef __cplusplus
  11877. extern "C"
  11878. #endif
  11879. char cap_from_text ();
  11880. int
  11881. main ()
  11882. {
  11883. return cap_from_text ();
  11884. ;
  11885. return 0;
  11886. }
  11887. _ACEOF
  11888. if ac_fn_c_try_link "$LINENO"; then :
  11889. ac_cv_lib_cap_cap_from_text=yes
  11890. else
  11891. ac_cv_lib_cap_cap_from_text=no
  11892. fi
  11893. rm -f core conftest.err conftest.$ac_objext \
  11894. conftest$ac_exeext conftest.$ac_ext
  11895. LIBS=$ac_check_lib_save_LIBS
  11896. fi
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_from_text" >&5
  11898. $as_echo "$ac_cv_lib_cap_cap_from_text" >&6; }
  11899. if test "x$ac_cv_lib_cap_cap_from_text" = x""yes; then :
  11900. AST_CAP_FOUND=yes
  11901. else
  11902. AST_CAP_FOUND=no
  11903. fi
  11904. if test "${AST_CAP_FOUND}" = "yes"; then
  11905. CAP_LIB="-lcap "
  11906. CAP_HEADER_FOUND="1"
  11907. if test "x${CAP_DIR}" != "x"; then
  11908. CAP_LIB="${pbxlibdir} ${CAP_LIB}"
  11909. CAP_INCLUDE="-I${CAP_DIR}/include"
  11910. fi
  11911. CAP_INCLUDE="${CAP_INCLUDE} "
  11912. saved_cppflags="${CPPFLAGS}"
  11913. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  11914. if test "xsys/capability.h" != "x" ; then
  11915. ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  11916. if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
  11917. CAP_HEADER_FOUND=1
  11918. else
  11919. CAP_HEADER_FOUND=0
  11920. fi
  11921. fi
  11922. CPPFLAGS="${saved_cppflags}"
  11923. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  11924. if test -n "${CAP_MANDATORY}" ;
  11925. then
  11926. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11927. $as_echo "$as_me: ***" >&6;}
  11928. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the cap development package installed." >&5
  11929. $as_echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
  11930. if test "x${CAP_OPTION}" = "x" ; then
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${CAP_DESCRIP} support" >&5
  11932. $as_echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support" >&6;}
  11933. else
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&5
  11935. $as_echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support, or re-run configure" >&6;}
  11936. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${CAP_OPTION}" >&5
  11937. $as_echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
  11938. fi
  11939. exit 1
  11940. fi
  11941. CAP_LIB=""
  11942. CAP_INCLUDE=""
  11943. PBX_CAP=0
  11944. else
  11945. PBX_CAP=1
  11946. cat >>confdefs.h <<_ACEOF
  11947. #define HAVE_CAP 1
  11948. _ACEOF
  11949. fi
  11950. elif test -n "${CAP_MANDATORY}";
  11951. then
  11952. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  11953. $as_echo "$as_me: ***" >&6;}
  11954. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
  11955. $as_echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
  11956. if test "x${CAP_OPTION}" = "x" ; then
  11957. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  11958. $as_echo "$as_me: *** Please correct the installation" >&6;}
  11959. else
  11960. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  11961. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  11962. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${CAP_OPTION}" >&5
  11963. $as_echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
  11964. fi
  11965. exit 1
  11966. fi
  11967. fi
  11968. fi
  11969. PBX_DAHDI_TRANSCODE=0
  11970. if test "${USE_DAHDI}" != "no" ; then
  11971. if test "x${PBX_DAHDI}" != "x1"; then
  11972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  11973. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  11974. saved_cppflags="${CPPFLAGS}"
  11975. if test "x${DAHDI_DIR}" != "x"; then
  11976. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  11977. fi
  11978. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  11979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11980. /* end confdefs.h. */
  11981. #include <dahdi/user.h>
  11982. int
  11983. main ()
  11984. {
  11985. #if defined(DAHDI_RESET_COUNTERS)
  11986. int foo = 0;
  11987. #else
  11988. int foo = bar;
  11989. #endif
  11990. 0
  11991. ;
  11992. return 0;
  11993. }
  11994. _ACEOF
  11995. if ac_fn_c_try_compile "$LINENO"; then :
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11997. $as_echo "yes" >&6; }
  11998. PBX_DAHDI=1
  11999. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  12000. $as_echo "#define HAVE_DAHDI_VERSION 230" >>confdefs.h
  12001. else
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12003. $as_echo "no" >&6; }
  12004. fi
  12005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12006. CPPFLAGS="${saved_cppflags}"
  12007. fi
  12008. if test "x${PBX_DAHDI}" != "x1"; then
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  12010. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  12011. saved_cppflags="${CPPFLAGS}"
  12012. if test "x${DAHDI_DIR}" != "x"; then
  12013. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  12014. fi
  12015. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  12016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12017. /* end confdefs.h. */
  12018. #include <dahdi/user.h>
  12019. int
  12020. main ()
  12021. {
  12022. #if defined(DAHDI_DEFAULT_MTU_MRU)
  12023. int foo = 0;
  12024. #else
  12025. int foo = bar;
  12026. #endif
  12027. 0
  12028. ;
  12029. return 0;
  12030. }
  12031. _ACEOF
  12032. if ac_fn_c_try_compile "$LINENO"; then :
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12034. $as_echo "yes" >&6; }
  12035. PBX_DAHDI=1
  12036. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  12037. $as_echo "#define HAVE_DAHDI_VERSION 220" >>confdefs.h
  12038. else
  12039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12040. $as_echo "no" >&6; }
  12041. fi
  12042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12043. CPPFLAGS="${saved_cppflags}"
  12044. fi
  12045. if test "x${PBX_DAHDI}" != "x1"; then
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
  12047. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  12048. saved_cppflags="${CPPFLAGS}"
  12049. if test "x${DAHDI_DIR}" != "x"; then
  12050. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  12051. fi
  12052. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  12053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12054. /* end confdefs.h. */
  12055. #include <dahdi/user.h>
  12056. int
  12057. main ()
  12058. {
  12059. #if defined(DAHDI_CODE)
  12060. int foo = 0;
  12061. #else
  12062. int foo = bar;
  12063. #endif
  12064. 0
  12065. ;
  12066. return 0;
  12067. }
  12068. _ACEOF
  12069. if ac_fn_c_try_compile "$LINENO"; then :
  12070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12071. $as_echo "yes" >&6; }
  12072. PBX_DAHDI=1
  12073. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  12074. $as_echo "#define HAVE_DAHDI_VERSION 200" >>confdefs.h
  12075. else
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12077. $as_echo "no" >&6; }
  12078. fi
  12079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12080. CPPFLAGS="${saved_cppflags}"
  12081. fi
  12082. if test "x${PBX_DAHDI}" = "x1" ; then
  12083. PBX_DAHDI_TRANSCODE=1
  12084. fi
  12085. fi
  12086. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  12087. if test "xgetifaddrs() support" != "x"; then
  12088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
  12089. $as_echo_n "checking for getifaddrs() support... " >&6; }
  12090. else
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  12092. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  12093. fi
  12094. saved_cppflags="${CPPFLAGS}"
  12095. if test "x${GETIFADDRS_DIR}" != "x"; then
  12096. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  12097. fi
  12098. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  12099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12100. /* end confdefs.h. */
  12101. #include <ifaddrs.h>
  12102. int
  12103. main ()
  12104. {
  12105. struct ifaddrs *p; getifaddrs(&p);
  12106. ;
  12107. return 0;
  12108. }
  12109. _ACEOF
  12110. if ac_fn_c_try_compile "$LINENO"; then :
  12111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12112. $as_echo "yes" >&6; }
  12113. PBX_GETIFADDRS=1
  12114. $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
  12115. $as_echo "#define HAVE_GETIFADDRS_VERSION /**/" >>confdefs.h
  12116. else
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12118. $as_echo "no" >&6; }
  12119. fi
  12120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12121. CPPFLAGS="${saved_cppflags}"
  12122. fi
  12123. GSM_INTERNAL="yes"
  12124. GSM_SYSTEM="yes"
  12125. if test "${USE_GSM}" != "no"; then
  12126. if test "${GSM_DIR}" = "internal"; then
  12127. GSM_SYSTEM="no"
  12128. elif test "${GSM_DIR}" != ""; then
  12129. GSM_INTERNAL="no"
  12130. fi
  12131. if test "${GSM_SYSTEM}" = "yes"; then
  12132. gsmlibdir=""
  12133. if test "x${GSM_DIR}" != "x"; then
  12134. if test -d ${GSM_DIR}/lib; then
  12135. gsmlibdir="-L${GSM_DIR}/lib"
  12136. else
  12137. gsmlibdir="-L${GSM_DIR}"
  12138. fi
  12139. fi
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  12141. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  12142. if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then :
  12143. $as_echo_n "(cached) " >&6
  12144. else
  12145. ac_check_lib_save_LIBS=$LIBS
  12146. LIBS="-lgsm ${gsmlibdir} $LIBS"
  12147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12148. /* end confdefs.h. */
  12149. /* Override any GCC internal prototype to avoid an error.
  12150. Use char because int might match the return type of a GCC
  12151. builtin and then its argument prototype would still apply. */
  12152. #ifdef __cplusplus
  12153. extern "C"
  12154. #endif
  12155. char gsm_create ();
  12156. int
  12157. main ()
  12158. {
  12159. return gsm_create ();
  12160. ;
  12161. return 0;
  12162. }
  12163. _ACEOF
  12164. if ac_fn_c_try_link "$LINENO"; then :
  12165. ac_cv_lib_gsm_gsm_create=yes
  12166. else
  12167. ac_cv_lib_gsm_gsm_create=no
  12168. fi
  12169. rm -f core conftest.err conftest.$ac_objext \
  12170. conftest$ac_exeext conftest.$ac_ext
  12171. LIBS=$ac_check_lib_save_LIBS
  12172. fi
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  12174. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  12175. if test "x$ac_cv_lib_gsm_gsm_create" = x""yes; then :
  12176. cat >>confdefs.h <<_ACEOF
  12177. #define HAVE_GSM 1
  12178. _ACEOF
  12179. fi
  12180. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  12181. if test "x${GSM_DIR}" != "x" ; then
  12182. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  12183. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
  12184. eval as_val=\$$as_ac_Header
  12185. if test "x$as_val" = x""yes; then :
  12186. GSM_HEADER_FOUND=1
  12187. else
  12188. GSM_HEADER_FOUND=0
  12189. fi
  12190. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  12191. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
  12192. eval as_val=\$$as_ac_Header
  12193. if test "x$as_val" = x""yes; then :
  12194. GSM_GSM_HEADER_FOUND=1
  12195. else
  12196. GSM_GSM_HEADER_FOUND=0
  12197. fi
  12198. else
  12199. ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  12200. if test "x$ac_cv_header_gsm_h" = x""yes; then :
  12201. GSM_HEADER_FOUND=1
  12202. else
  12203. GSM_HEADER_FOUND=0
  12204. fi
  12205. ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
  12206. if test "x$ac_cv_header_gsm_gsm_h" = x""yes; then :
  12207. GSM_GSM_HEADER_FOUND=1
  12208. else
  12209. GSM_GSM_HEADER_FOUND=0
  12210. fi
  12211. fi
  12212. if test "${GSM_HEADER_FOUND}" = "0" ; then
  12213. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  12214. if test "x${GSM_MANDATORY}" = "xyes" ; then
  12215. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  12216. $as_echo "$as_me: ***" >&6;}
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
  12218. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  12219. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  12220. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  12221. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  12222. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  12223. exit 1
  12224. fi
  12225. fi
  12226. fi
  12227. GSM_OK=0
  12228. if test "${GSM_HEADER_FOUND}" = "1" ; then
  12229. cat >>confdefs.h <<_ACEOF
  12230. #define HAVE_GSM_HEADER 1
  12231. _ACEOF
  12232. GSM_OK=1
  12233. else
  12234. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  12235. cat >>confdefs.h <<_ACEOF
  12236. #define HAVE_GSM_GSM_HEADER 1
  12237. _ACEOF
  12238. GSM_OK=1
  12239. fi
  12240. fi
  12241. if test "${GSM_OK}" = "1" ; then
  12242. GSM_LIB="-lgsm"
  12243. if test "x${GSM_DIR}" != "x"; then
  12244. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  12245. GSM_INCLUDE="-I${GSM_DIR}/include"
  12246. fi
  12247. PBX_GSM=1
  12248. GSM_INTERNAL="no"
  12249. fi
  12250. fi
  12251. fi
  12252. if test "${GSM_INTERNAL}" = "yes"; then
  12253. PBX_GSM=1
  12254. cat >>confdefs.h <<_ACEOF
  12255. #define HAVE_GSM_HEADER 1
  12256. _ACEOF
  12257. fi
  12258. fi
  12259. if test "${USE_IKSEMEL}" != "no"; then
  12260. pbxlibdir=""
  12261. if test "x${IKSEMEL_DIR}" != "x"; then
  12262. if test -d ${IKSEMEL_DIR}/lib; then
  12263. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  12264. else
  12265. pbxlibdir="-L${IKSEMEL_DIR}"
  12266. fi
  12267. fi
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iks_start_sasl in -liksemel" >&5
  12269. $as_echo_n "checking for iks_start_sasl in -liksemel... " >&6; }
  12270. if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then :
  12271. $as_echo_n "(cached) " >&6
  12272. else
  12273. ac_check_lib_save_LIBS=$LIBS
  12274. LIBS="-liksemel ${pbxlibdir} $LIBS"
  12275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12276. /* end confdefs.h. */
  12277. /* Override any GCC internal prototype to avoid an error.
  12278. Use char because int might match the return type of a GCC
  12279. builtin and then its argument prototype would still apply. */
  12280. #ifdef __cplusplus
  12281. extern "C"
  12282. #endif
  12283. char iks_start_sasl ();
  12284. int
  12285. main ()
  12286. {
  12287. return iks_start_sasl ();
  12288. ;
  12289. return 0;
  12290. }
  12291. _ACEOF
  12292. if ac_fn_c_try_link "$LINENO"; then :
  12293. ac_cv_lib_iksemel_iks_start_sasl=yes
  12294. else
  12295. ac_cv_lib_iksemel_iks_start_sasl=no
  12296. fi
  12297. rm -f core conftest.err conftest.$ac_objext \
  12298. conftest$ac_exeext conftest.$ac_ext
  12299. LIBS=$ac_check_lib_save_LIBS
  12300. fi
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
  12302. $as_echo "$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
  12303. if test "x$ac_cv_lib_iksemel_iks_start_sasl" = x""yes; then :
  12304. AST_IKSEMEL_FOUND=yes
  12305. else
  12306. AST_IKSEMEL_FOUND=no
  12307. fi
  12308. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  12309. IKSEMEL_LIB="-liksemel "
  12310. IKSEMEL_HEADER_FOUND="1"
  12311. if test "x${IKSEMEL_DIR}" != "x"; then
  12312. IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
  12313. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  12314. fi
  12315. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  12316. saved_cppflags="${CPPFLAGS}"
  12317. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  12318. if test "xiksemel.h" != "x" ; then
  12319. ac_fn_c_check_header_mongrel "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
  12320. if test "x$ac_cv_header_iksemel_h" = x""yes; then :
  12321. IKSEMEL_HEADER_FOUND=1
  12322. else
  12323. IKSEMEL_HEADER_FOUND=0
  12324. fi
  12325. fi
  12326. CPPFLAGS="${saved_cppflags}"
  12327. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  12328. if test -n "${IKSEMEL_MANDATORY}" ;
  12329. then
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  12331. $as_echo "$as_me: ***" >&6;}
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the iksemel development package installed." >&5
  12333. $as_echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
  12334. if test "x${IKSEMEL_OPTION}" = "x" ; then
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&5
  12336. $as_echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&6;}
  12337. else
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&5
  12339. $as_echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support, or re-run configure" >&6;}
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
  12341. $as_echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
  12342. fi
  12343. exit 1
  12344. fi
  12345. IKSEMEL_LIB=""
  12346. IKSEMEL_INCLUDE=""
  12347. PBX_IKSEMEL=0
  12348. else
  12349. PBX_IKSEMEL=1
  12350. cat >>confdefs.h <<_ACEOF
  12351. #define HAVE_IKSEMEL 1
  12352. _ACEOF
  12353. fi
  12354. elif test -n "${IKSEMEL_MANDATORY}";
  12355. then
  12356. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  12357. $as_echo "$as_me: ***" >&6;}
  12358. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
  12359. $as_echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
  12360. if test "x${IKSEMEL_OPTION}" = "x" ; then
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  12362. $as_echo "$as_me: *** Please correct the installation" >&6;}
  12363. else
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  12365. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
  12367. $as_echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
  12368. fi
  12369. exit 1
  12370. fi
  12371. fi
  12372. if test "${PBX_IKSEMEL}" = 1; then
  12373. if test "${USE_GNUTLS}" != "no"; then
  12374. pbxlibdir=""
  12375. if test "x${GNUTLS_DIR}" != "x"; then
  12376. if test -d ${GNUTLS_DIR}/lib; then
  12377. pbxlibdir="-L${GNUTLS_DIR}/lib"
  12378. else
  12379. pbxlibdir="-L${GNUTLS_DIR}"
  12380. fi
  12381. fi
  12382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_bye in -lgnutls" >&5
  12383. $as_echo_n "checking for gnutls_bye in -lgnutls... " >&6; }
  12384. if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then :
  12385. $as_echo_n "(cached) " >&6
  12386. else
  12387. ac_check_lib_save_LIBS=$LIBS
  12388. LIBS="-lgnutls ${pbxlibdir} -lz -lgcrypt -lgpg-error $LIBS"
  12389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12390. /* end confdefs.h. */
  12391. /* Override any GCC internal prototype to avoid an error.
  12392. Use char because int might match the return type of a GCC
  12393. builtin and then its argument prototype would still apply. */
  12394. #ifdef __cplusplus
  12395. extern "C"
  12396. #endif
  12397. char gnutls_bye ();
  12398. int
  12399. main ()
  12400. {
  12401. return gnutls_bye ();
  12402. ;
  12403. return 0;
  12404. }
  12405. _ACEOF
  12406. if ac_fn_c_try_link "$LINENO"; then :
  12407. ac_cv_lib_gnutls_gnutls_bye=yes
  12408. else
  12409. ac_cv_lib_gnutls_gnutls_bye=no
  12410. fi
  12411. rm -f core conftest.err conftest.$ac_objext \
  12412. conftest$ac_exeext conftest.$ac_ext
  12413. LIBS=$ac_check_lib_save_LIBS
  12414. fi
  12415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
  12416. $as_echo "$ac_cv_lib_gnutls_gnutls_bye" >&6; }
  12417. if test "x$ac_cv_lib_gnutls_gnutls_bye" = x""yes; then :
  12418. AST_GNUTLS_FOUND=yes
  12419. else
  12420. AST_GNUTLS_FOUND=no
  12421. fi
  12422. if test "${AST_GNUTLS_FOUND}" = "yes"; then
  12423. GNUTLS_LIB="-lgnutls -lz -lgcrypt -lgpg-error"
  12424. GNUTLS_HEADER_FOUND="1"
  12425. if test "x${GNUTLS_DIR}" != "x"; then
  12426. GNUTLS_LIB="${pbxlibdir} ${GNUTLS_LIB}"
  12427. GNUTLS_INCLUDE="-I${GNUTLS_DIR}/include"
  12428. fi
  12429. GNUTLS_INCLUDE="${GNUTLS_INCLUDE} "
  12430. saved_cppflags="${CPPFLAGS}"
  12431. CPPFLAGS="${CPPFLAGS} ${GNUTLS_INCLUDE}"
  12432. if test "xgnutls/gnutls.h" != "x" ; then
  12433. ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  12434. if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
  12435. GNUTLS_HEADER_FOUND=1
  12436. else
  12437. GNUTLS_HEADER_FOUND=0
  12438. fi
  12439. fi
  12440. CPPFLAGS="${saved_cppflags}"
  12441. if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
  12442. if test -n "${GNUTLS_MANDATORY}" ;
  12443. then
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  12445. $as_echo "$as_me: ***" >&6;}
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gnutls development package installed." >&5
  12447. $as_echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
  12448. if test "x${GNUTLS_OPTION}" = "x" ; then
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GNUTLS_DESCRIP} support" >&5
  12450. $as_echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support" >&6;}
  12451. else
  12452. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&5
  12453. $as_echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support, or re-run configure" >&6;}
  12454. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
  12455. $as_echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
  12456. fi
  12457. exit 1
  12458. fi
  12459. GNUTLS_LIB=""
  12460. GNUTLS_INCLUDE=""
  12461. PBX_GNUTLS=0
  12462. else
  12463. PBX_GNUTLS=1
  12464. cat >>confdefs.h <<_ACEOF
  12465. #define HAVE_GNUTLS 1
  12466. _ACEOF
  12467. fi
  12468. elif test -n "${GNUTLS_MANDATORY}";
  12469. then
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  12471. $as_echo "$as_me: ***" >&6;}
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
  12473. $as_echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
  12474. if test "x${GNUTLS_OPTION}" = "x" ; then
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  12476. $as_echo "$as_me: *** Please correct the installation" >&6;}
  12477. else
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  12479. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
  12481. $as_echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
  12482. fi
  12483. exit 1
  12484. fi
  12485. fi
  12486. fi
  12487. if test "${USE_IMAP_TK}" != "no"; then
  12488. saved_cppflags="${CPPFLAGS}"
  12489. saved_libs="${LIBS}"
  12490. switch_to_system_on_failure="no"
  12491. if test "${IMAP_TK_DIR}" = ""; then
  12492. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  12493. switch_to_system_on_failure="yes"
  12494. fi
  12495. if test "${IMAP_TK_DIR}" != "system"; then
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
  12497. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  12498. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  12499. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  12500. fi
  12501. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  12502. imap_include="-I${IMAP_TK_DIR}/c-client"
  12503. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  12504. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  12505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12506. /* end confdefs.h. */
  12507. #include "c-client.h"
  12508. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12509. {
  12510. }
  12511. void mm_exists (MAILSTREAM *stream,unsigned long number)
  12512. {
  12513. }
  12514. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  12515. {
  12516. }
  12517. void mm_flags (MAILSTREAM *stream,unsigned long number)
  12518. {
  12519. }
  12520. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  12521. {
  12522. }
  12523. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12524. {
  12525. }
  12526. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12527. {
  12528. }
  12529. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  12530. {
  12531. }
  12532. void mm_log (char *string,long errflg)
  12533. {
  12534. }
  12535. void mm_dlog (char *string)
  12536. {
  12537. }
  12538. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  12539. {
  12540. }
  12541. void mm_critical (MAILSTREAM *stream)
  12542. {
  12543. }
  12544. void mm_nocritical (MAILSTREAM *stream)
  12545. {
  12546. }
  12547. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  12548. {
  12549. }
  12550. void mm_fatal (char *string)
  12551. {
  12552. }
  12553. int
  12554. main ()
  12555. {
  12556. MAILSTREAM *foo = mail_open(NULL, "", 0);
  12557. ;
  12558. return 0;
  12559. }
  12560. _ACEOF
  12561. if ac_fn_c_try_link "$LINENO"; then :
  12562. ac_cv_imap_tk="yes"
  12563. else
  12564. ac_cv_imap_tk="no"
  12565. fi
  12566. rm -f core conftest.err conftest.$ac_objext \
  12567. conftest$ac_exeext conftest.$ac_ext
  12568. if test "${ac_cv_imap_tk}" = "yes"; then
  12569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12570. /* end confdefs.h. */
  12571. #include "c-client.h"
  12572. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12573. {
  12574. }
  12575. void mm_exists (MAILSTREAM *stream,unsigned long number)
  12576. {
  12577. }
  12578. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  12579. {
  12580. }
  12581. void mm_flags (MAILSTREAM *stream,unsigned long number)
  12582. {
  12583. }
  12584. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  12585. {
  12586. }
  12587. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12588. {
  12589. }
  12590. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12591. {
  12592. }
  12593. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  12594. {
  12595. }
  12596. void mm_log (char *string,long errflg)
  12597. {
  12598. }
  12599. void mm_dlog (char *string)
  12600. {
  12601. }
  12602. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  12603. {
  12604. }
  12605. void mm_critical (MAILSTREAM *stream)
  12606. {
  12607. }
  12608. void mm_nocritical (MAILSTREAM *stream)
  12609. {
  12610. }
  12611. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  12612. {
  12613. }
  12614. void mm_fatal (char *string)
  12615. {
  12616. }
  12617. int
  12618. main ()
  12619. {
  12620. long check = mail_expunge_full(NULL, "", 0);
  12621. ;
  12622. return 0;
  12623. }
  12624. _ACEOF
  12625. if ac_fn_c_try_link "$LINENO"; then :
  12626. ac_cv_imap_tk2006="yes"
  12627. else
  12628. ac_cv_imap_tk2006="no"
  12629. fi
  12630. rm -f core conftest.err conftest.$ac_objext \
  12631. conftest$ac_exeext conftest.$ac_ext
  12632. fi
  12633. CPPFLAGS="${saved_cppflags}"
  12634. LIBS="${saved_libs}"
  12635. if test "${ac_cv_imap_tk}" = "no"; then
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12637. $as_echo "no" >&6; }
  12638. if test "${switch_to_system_on_failure}" = "yes"; then
  12639. IMAP_TK_DIR="system"
  12640. else #This means they specified a directory. Search for a package installation there too
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  12642. $as_echo_n "checking for system c-client library...... " >&6; }
  12643. CPPFLAGS="${saved_cppflags}"
  12644. LIBS="${saved_libs}"
  12645. imap_include="-I${IMAP_TK_DIR}/include"
  12646. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  12647. imap_libs="-lc-client"
  12648. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  12649. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  12650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12651. /* end confdefs.h. */
  12652. #include "c-client.h"
  12653. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12654. {
  12655. }
  12656. void mm_exists (MAILSTREAM *stream,unsigned long number)
  12657. {
  12658. }
  12659. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  12660. {
  12661. }
  12662. void mm_flags (MAILSTREAM *stream,unsigned long number)
  12663. {
  12664. }
  12665. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  12666. {
  12667. }
  12668. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12669. {
  12670. }
  12671. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12672. {
  12673. }
  12674. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  12675. {
  12676. }
  12677. void mm_log (char *string,long errflg)
  12678. {
  12679. }
  12680. void mm_dlog (char *string)
  12681. {
  12682. }
  12683. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  12684. {
  12685. }
  12686. void mm_critical (MAILSTREAM *stream)
  12687. {
  12688. }
  12689. void mm_nocritical (MAILSTREAM *stream)
  12690. {
  12691. }
  12692. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  12693. {
  12694. }
  12695. void mm_fatal (char *string)
  12696. {
  12697. }
  12698. int
  12699. main ()
  12700. {
  12701. MAILSTREAM *foo = mail_open(NULL, "", 0);
  12702. ;
  12703. return 0;
  12704. }
  12705. _ACEOF
  12706. if ac_fn_c_try_link "$LINENO"; then :
  12707. ac_cv_imap_tk="yes"
  12708. else
  12709. ac_cv_imap_tk="no"
  12710. fi
  12711. rm -f core conftest.err conftest.$ac_objext \
  12712. conftest$ac_exeext conftest.$ac_ext
  12713. if test "${ac_cv_imap_tk}" = "yes"; then
  12714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12715. /* end confdefs.h. */
  12716. #include "c-client.h"
  12717. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12718. {
  12719. }
  12720. void mm_exists (MAILSTREAM *stream,unsigned long number)
  12721. {
  12722. }
  12723. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  12724. {
  12725. }
  12726. void mm_flags (MAILSTREAM *stream,unsigned long number)
  12727. {
  12728. }
  12729. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  12730. {
  12731. }
  12732. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12733. {
  12734. }
  12735. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12736. {
  12737. }
  12738. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  12739. {
  12740. }
  12741. void mm_log (char *string,long errflg)
  12742. {
  12743. }
  12744. void mm_dlog (char *string)
  12745. {
  12746. }
  12747. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  12748. {
  12749. }
  12750. void mm_critical (MAILSTREAM *stream)
  12751. {
  12752. }
  12753. void mm_nocritical (MAILSTREAM *stream)
  12754. {
  12755. }
  12756. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  12757. {
  12758. }
  12759. void mm_fatal (char *string)
  12760. {
  12761. }
  12762. int
  12763. main ()
  12764. {
  12765. long check = mail_expunge_full(NULL, "", 0);
  12766. ;
  12767. return 0;
  12768. }
  12769. _ACEOF
  12770. if ac_fn_c_try_link "$LINENO"; then :
  12771. ac_cv_imap_tk2006="yes"
  12772. else
  12773. ac_cv_imap_tk2006="no"
  12774. fi
  12775. rm -f core conftest.err conftest.$ac_objext \
  12776. conftest$ac_exeext conftest.$ac_ext
  12777. fi
  12778. fi
  12779. fi
  12780. fi
  12781. if test "${IMAP_TK_DIR}" = "system"; then
  12782. #We will enter here if user specified "system" or if any of above checks failed
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  12784. $as_echo_n "checking for system c-client library...... " >&6; }
  12785. CPPFLAGS="${saved_cppflags}"
  12786. LIBS="${saved_libs}"
  12787. imap_ldflags=""
  12788. imap_libs="-lc-client"
  12789. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  12790. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  12791. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  12792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12793. /* end confdefs.h. */
  12794. #include <stdio.h>
  12795. #include <imap/c-client.h>
  12796. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12797. {
  12798. }
  12799. void mm_exists (MAILSTREAM *stream,unsigned long number)
  12800. {
  12801. }
  12802. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  12803. {
  12804. }
  12805. void mm_flags (MAILSTREAM *stream,unsigned long number)
  12806. {
  12807. }
  12808. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  12809. {
  12810. }
  12811. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12812. {
  12813. }
  12814. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12815. {
  12816. }
  12817. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  12818. {
  12819. }
  12820. void mm_log (char *string,long errflg)
  12821. {
  12822. }
  12823. void mm_dlog (char *string)
  12824. {
  12825. }
  12826. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  12827. {
  12828. }
  12829. void mm_critical (MAILSTREAM *stream)
  12830. {
  12831. }
  12832. void mm_nocritical (MAILSTREAM *stream)
  12833. {
  12834. }
  12835. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  12836. {
  12837. }
  12838. void mm_fatal (char *string)
  12839. {
  12840. }
  12841. int
  12842. main ()
  12843. {
  12844. MAILSTREAM *foo = mail_open(NULL, "", 0);
  12845. ;
  12846. return 0;
  12847. }
  12848. _ACEOF
  12849. if ac_fn_c_try_link "$LINENO"; then :
  12850. ac_cv_imap_tk="yes"
  12851. else
  12852. ac_cv_imap_tk="no"
  12853. fi
  12854. rm -f core conftest.err conftest.$ac_objext \
  12855. conftest$ac_exeext conftest.$ac_ext
  12856. if test "${ac_cv_imap_tk}" = "yes"; then
  12857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12858. /* end confdefs.h. */
  12859. #include <stdio.h>
  12860. #include <imap/c-client.h>
  12861. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12862. {
  12863. }
  12864. void mm_exists (MAILSTREAM *stream,unsigned long number)
  12865. {
  12866. }
  12867. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  12868. {
  12869. }
  12870. void mm_flags (MAILSTREAM *stream,unsigned long number)
  12871. {
  12872. }
  12873. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  12874. {
  12875. }
  12876. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12877. {
  12878. }
  12879. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12880. {
  12881. }
  12882. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  12883. {
  12884. }
  12885. void mm_log (char *string,long errflg)
  12886. {
  12887. }
  12888. void mm_dlog (char *string)
  12889. {
  12890. }
  12891. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  12892. {
  12893. }
  12894. void mm_critical (MAILSTREAM *stream)
  12895. {
  12896. }
  12897. void mm_nocritical (MAILSTREAM *stream)
  12898. {
  12899. }
  12900. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  12901. {
  12902. }
  12903. void mm_fatal (char *string)
  12904. {
  12905. }
  12906. int
  12907. main ()
  12908. {
  12909. long check = mail_expunge_full(NULL, "", 0);
  12910. ;
  12911. return 0;
  12912. }
  12913. _ACEOF
  12914. if ac_fn_c_try_link "$LINENO"; then :
  12915. ac_cv_imap_tk2006="yes"
  12916. else
  12917. ac_cv_imap_tk2006="no"
  12918. fi
  12919. rm -f core conftest.err conftest.$ac_objext \
  12920. conftest$ac_exeext conftest.$ac_ext
  12921. else #looking in imap directory didn't work, try c-client
  12922. imap_ldflags=""
  12923. imap_libs="-lc-client"
  12924. imap_include="-DUSE_SYSTEM_CCLIENT"
  12925. CPPFLAGS="${saved_cppflags}"
  12926. LIBS="${saved_libs}"
  12927. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  12928. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  12929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12930. /* end confdefs.h. */
  12931. #include <stdio.h>
  12932. #include <c-client/c-client.h>
  12933. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12934. {
  12935. }
  12936. void mm_exists (MAILSTREAM *stream,unsigned long number)
  12937. {
  12938. }
  12939. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  12940. {
  12941. }
  12942. void mm_flags (MAILSTREAM *stream,unsigned long number)
  12943. {
  12944. }
  12945. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  12946. {
  12947. }
  12948. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12949. {
  12950. }
  12951. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  12952. {
  12953. }
  12954. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  12955. {
  12956. }
  12957. void mm_log (char *string,long errflg)
  12958. {
  12959. }
  12960. void mm_dlog (char *string)
  12961. {
  12962. }
  12963. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  12964. {
  12965. }
  12966. void mm_critical (MAILSTREAM *stream)
  12967. {
  12968. }
  12969. void mm_nocritical (MAILSTREAM *stream)
  12970. {
  12971. }
  12972. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  12973. {
  12974. }
  12975. void mm_fatal (char *string)
  12976. {
  12977. }
  12978. int
  12979. main ()
  12980. {
  12981. MAILSTREAM *foo = mail_open(NULL, "", 0);
  12982. ;
  12983. return 0;
  12984. }
  12985. _ACEOF
  12986. if ac_fn_c_try_link "$LINENO"; then :
  12987. ac_cv_imap_tk="yes"
  12988. else
  12989. ac_cv_imap_tk="no"
  12990. fi
  12991. rm -f core conftest.err conftest.$ac_objext \
  12992. conftest$ac_exeext conftest.$ac_ext
  12993. if test "${ac_cv_imap_tk}" = "yes"; then
  12994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12995. /* end confdefs.h. */
  12996. #include <stdio.h>
  12997. #include <c-client/c-client.h>
  12998. void mm_searched (MAILSTREAM *stream,unsigned long number)
  12999. {
  13000. }
  13001. void mm_exists (MAILSTREAM *stream,unsigned long number)
  13002. {
  13003. }
  13004. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  13005. {
  13006. }
  13007. void mm_flags (MAILSTREAM *stream,unsigned long number)
  13008. {
  13009. }
  13010. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  13011. {
  13012. }
  13013. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  13014. {
  13015. }
  13016. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  13017. {
  13018. }
  13019. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  13020. {
  13021. }
  13022. void mm_log (char *string,long errflg)
  13023. {
  13024. }
  13025. void mm_dlog (char *string)
  13026. {
  13027. }
  13028. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  13029. {
  13030. }
  13031. void mm_critical (MAILSTREAM *stream)
  13032. {
  13033. }
  13034. void mm_nocritical (MAILSTREAM *stream)
  13035. {
  13036. }
  13037. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  13038. {
  13039. }
  13040. void mm_fatal (char *string)
  13041. {
  13042. }
  13043. int
  13044. main ()
  13045. {
  13046. long check = mail_expunge_full(NULL, "", 0);
  13047. ;
  13048. return 0;
  13049. }
  13050. _ACEOF
  13051. if ac_fn_c_try_link "$LINENO"; then :
  13052. ac_cv_imap_tk2006="yes"
  13053. else
  13054. ac_cv_imap_tk2006="no"
  13055. fi
  13056. rm -f core conftest.err conftest.$ac_objext \
  13057. conftest$ac_exeext conftest.$ac_ext
  13058. fi
  13059. fi
  13060. fi
  13061. if test "${ac_cv_imap_tk}" = "yes"; then
  13062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13063. $as_echo "yes" >&6; }
  13064. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  13065. IMAP_TK_INCLUDE="${imap_include}"
  13066. PBX_IMAP_TK=1
  13067. $as_echo "#define HAVE_IMAP_TK 1" >>confdefs.h
  13068. if test "${ac_cv_imap_tk2006}" = "yes"; then
  13069. $as_echo "#define HAVE_IMAP_TK2006 1" >>confdefs.h
  13070. fi
  13071. elif test -n "${IMAP_TK_MANDATORY}"; then
  13072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13073. $as_echo "no" >&6; }
  13074. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13075. $as_echo "$as_me: ***" >&6;}
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
  13077. $as_echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
  13078. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13079. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13080. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-imap." >&5
  13081. $as_echo "$as_me: *** including --without-imap." >&6;}
  13082. exit 1
  13083. else
  13084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13085. $as_echo "no" >&6; }
  13086. fi
  13087. CPPFLAGS="${saved_cppflags}"
  13088. LIBS="${saved_libs}"
  13089. fi
  13090. # Needed by unixodbc
  13091. if test "${USE_LTDL}" != "no"; then
  13092. pbxlibdir=""
  13093. if test "x${LTDL_DIR}" != "x"; then
  13094. if test -d ${LTDL_DIR}/lib; then
  13095. pbxlibdir="-L${LTDL_DIR}/lib"
  13096. else
  13097. pbxlibdir="-L${LTDL_DIR}"
  13098. fi
  13099. fi
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
  13101. $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
  13102. if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
  13103. $as_echo_n "(cached) " >&6
  13104. else
  13105. ac_check_lib_save_LIBS=$LIBS
  13106. LIBS="-lltdl ${pbxlibdir} $LIBS"
  13107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13108. /* end confdefs.h. */
  13109. /* Override any GCC internal prototype to avoid an error.
  13110. Use char because int might match the return type of a GCC
  13111. builtin and then its argument prototype would still apply. */
  13112. #ifdef __cplusplus
  13113. extern "C"
  13114. #endif
  13115. char lt_dlinit ();
  13116. int
  13117. main ()
  13118. {
  13119. return lt_dlinit ();
  13120. ;
  13121. return 0;
  13122. }
  13123. _ACEOF
  13124. if ac_fn_c_try_link "$LINENO"; then :
  13125. ac_cv_lib_ltdl_lt_dlinit=yes
  13126. else
  13127. ac_cv_lib_ltdl_lt_dlinit=no
  13128. fi
  13129. rm -f core conftest.err conftest.$ac_objext \
  13130. conftest$ac_exeext conftest.$ac_ext
  13131. LIBS=$ac_check_lib_save_LIBS
  13132. fi
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
  13134. $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
  13135. if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
  13136. AST_LTDL_FOUND=yes
  13137. else
  13138. AST_LTDL_FOUND=no
  13139. fi
  13140. if test "${AST_LTDL_FOUND}" = "yes"; then
  13141. LTDL_LIB="-lltdl "
  13142. LTDL_HEADER_FOUND="1"
  13143. if test "x${LTDL_DIR}" != "x"; then
  13144. LTDL_LIB="${pbxlibdir} ${LTDL_LIB}"
  13145. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  13146. fi
  13147. LTDL_INCLUDE="${LTDL_INCLUDE} "
  13148. saved_cppflags="${CPPFLAGS}"
  13149. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  13150. if test "xltdl.h" != "x" ; then
  13151. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  13152. if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  13153. LTDL_HEADER_FOUND=1
  13154. else
  13155. LTDL_HEADER_FOUND=0
  13156. fi
  13157. fi
  13158. CPPFLAGS="${saved_cppflags}"
  13159. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  13160. if test -n "${LTDL_MANDATORY}" ;
  13161. then
  13162. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13163. $as_echo "$as_me: ***" >&6;}
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the ltdl development package installed." >&5
  13165. $as_echo "$as_me: *** It appears that you do not have the ltdl development package installed." >&6;}
  13166. if test "x${LTDL_OPTION}" = "x" ; then
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${LTDL_DESCRIP} support" >&5
  13168. $as_echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support" >&6;}
  13169. else
  13170. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&5
  13171. $as_echo "$as_me: *** Please install it to include ${LTDL_DESCRIP} support, or re-run configure" >&6;}
  13172. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
  13173. $as_echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
  13174. fi
  13175. exit 1
  13176. fi
  13177. LTDL_LIB=""
  13178. LTDL_INCLUDE=""
  13179. PBX_LTDL=0
  13180. else
  13181. PBX_LTDL=1
  13182. cat >>confdefs.h <<_ACEOF
  13183. #define HAVE_LTDL 1
  13184. _ACEOF
  13185. fi
  13186. elif test -n "${LTDL_MANDATORY}";
  13187. then
  13188. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13189. $as_echo "$as_me: ***" >&6;}
  13190. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&5
  13191. $as_echo "$as_me: *** The ${LTDL_DESCRIP} installation on this system appears to be broken." >&6;}
  13192. if test "x${LTDL_OPTION}" = "x" ; then
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  13194. $as_echo "$as_me: *** Please correct the installation" >&6;}
  13195. else
  13196. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13197. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13198. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${LTDL_OPTION}" >&5
  13199. $as_echo "$as_me: *** without explicitly specifying --with-${LTDL_OPTION}" >&6;}
  13200. fi
  13201. exit 1
  13202. fi
  13203. fi
  13204. ac_ext=cpp
  13205. ac_cpp='$CXXCPP $CPPFLAGS'
  13206. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13207. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13208. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13209. if test "${USE_KDE}" != "no"; then
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crashHandler in -lkdecore" >&5
  13211. $as_echo_n "checking for crashHandler in -lkdecore... " >&6; }
  13212. saved_libs="${LIBS}"
  13213. saved_cppflags="${CPPFLAGS}"
  13214. CPPFLAGS="${CPPFLAGS} -I${KDE_DIR}/include"
  13215. if test -d ${KDE_DIR}/lib; then
  13216. kdelibdir="${KDE_DIR}/lib"
  13217. else
  13218. kdelibdir="${KDE_DIR}"
  13219. fi
  13220. LIBS="${LIBS} -L${kdelibdir} -lkdecore"
  13221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13222. /* end confdefs.h. */
  13223. #include "kcrash.h"
  13224. int
  13225. main ()
  13226. {
  13227. KCrash::defaultCrashHandler(1);
  13228. ;
  13229. return 0;
  13230. }
  13231. _ACEOF
  13232. if ac_fn_cxx_try_link "$LINENO"; then :
  13233. ac_cv_lib_kde_crash="yes"
  13234. else
  13235. ac_cv_lib_kde_crash="no"
  13236. fi
  13237. rm -f core conftest.err conftest.$ac_objext \
  13238. conftest$ac_exeext conftest.$ac_ext
  13239. LIBS="${saved_libs}"
  13240. CPPFLAGS="${saved_cppflags}"
  13241. if test "${ac_cv_lib_kde_crash}" = "yes"; then
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13243. $as_echo "yes" >&6; }
  13244. KDE_LIB="-lkdecore -lkdeui"
  13245. if test "${KDE_DIR}" != ""; then
  13246. KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
  13247. KDE_INCLUDE="-I${KDE_DIR}/include"
  13248. fi
  13249. PBX_KDE=1
  13250. $as_echo "#define HAVE_LIBKDE 1" >>confdefs.h
  13251. elif test -n "${KDE_MANDATORY}"; then
  13252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13253. $as_echo "no" >&6; }
  13254. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13255. $as_echo "$as_me: ***" >&6;}
  13256. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The KDE installation on this system appears to be broken." >&5
  13257. $as_echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
  13258. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13259. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13260. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-kde." >&5
  13261. $as_echo "$as_me: *** including --without-kde." >&6;}
  13262. exit 1
  13263. else
  13264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13265. $as_echo "no" >&6; }
  13266. fi
  13267. fi
  13268. if test "${PBX_KDE}" = 1; then
  13269. if test -n "$ac_tool_prefix"; then
  13270. # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
  13271. set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
  13272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13273. $as_echo_n "checking for $ac_word... " >&6; }
  13274. if test "${ac_cv_path_KDEINIT+set}" = set; then :
  13275. $as_echo_n "(cached) " >&6
  13276. else
  13277. case $KDEINIT in
  13278. [\\/]* | ?:[\\/]*)
  13279. ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
  13280. ;;
  13281. *)
  13282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13283. for as_dir in $PATH
  13284. do
  13285. IFS=$as_save_IFS
  13286. test -z "$as_dir" && as_dir=.
  13287. for ac_exec_ext in '' $ac_executable_extensions; do
  13288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13289. ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
  13290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13291. break 2
  13292. fi
  13293. done
  13294. done
  13295. IFS=$as_save_IFS
  13296. ;;
  13297. esac
  13298. fi
  13299. KDEINIT=$ac_cv_path_KDEINIT
  13300. if test -n "$KDEINIT"; then
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDEINIT" >&5
  13302. $as_echo "$KDEINIT" >&6; }
  13303. else
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13305. $as_echo "no" >&6; }
  13306. fi
  13307. fi
  13308. if test -z "$ac_cv_path_KDEINIT"; then
  13309. ac_pt_KDEINIT=$KDEINIT
  13310. # Extract the first word of "kdeinit", so it can be a program name with args.
  13311. set dummy kdeinit; ac_word=$2
  13312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13313. $as_echo_n "checking for $ac_word... " >&6; }
  13314. if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then :
  13315. $as_echo_n "(cached) " >&6
  13316. else
  13317. case $ac_pt_KDEINIT in
  13318. [\\/]* | ?:[\\/]*)
  13319. ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
  13320. ;;
  13321. *)
  13322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13323. for as_dir in $PATH
  13324. do
  13325. IFS=$as_save_IFS
  13326. test -z "$as_dir" && as_dir=.
  13327. for ac_exec_ext in '' $ac_executable_extensions; do
  13328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13329. ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
  13330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13331. break 2
  13332. fi
  13333. done
  13334. done
  13335. IFS=$as_save_IFS
  13336. ;;
  13337. esac
  13338. fi
  13339. ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
  13340. if test -n "$ac_pt_KDEINIT"; then
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KDEINIT" >&5
  13342. $as_echo "$ac_pt_KDEINIT" >&6; }
  13343. else
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13345. $as_echo "no" >&6; }
  13346. fi
  13347. if test "x$ac_pt_KDEINIT" = x; then
  13348. KDEINIT="No"
  13349. else
  13350. case $cross_compiling:$ac_tool_warned in
  13351. yes:)
  13352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13353. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13354. ac_tool_warned=yes ;;
  13355. esac
  13356. KDEINIT=$ac_pt_KDEINIT
  13357. fi
  13358. else
  13359. KDEINIT="$ac_cv_path_KDEINIT"
  13360. fi
  13361. if test ! x"${KDEINIT}" = xNo; then
  13362. KDEDIR=$(${DIRNAME} ${KDEINIT})
  13363. KDEDIR=$(${DIRNAME} ${KDEDIR})
  13364. fi
  13365. fi
  13366. ac_ext=c
  13367. ac_cpp='$CPP $CPPFLAGS'
  13368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13371. if test "${USE_MISDN}" != "no"; then
  13372. pbxlibdir=""
  13373. if test "x${MISDN_DIR}" != "x"; then
  13374. if test -d ${MISDN_DIR}/lib; then
  13375. pbxlibdir="-L${MISDN_DIR}/lib"
  13376. else
  13377. pbxlibdir="-L${MISDN_DIR}"
  13378. fi
  13379. fi
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mISDN_open in -lmISDN" >&5
  13381. $as_echo_n "checking for mISDN_open in -lmISDN... " >&6; }
  13382. if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then :
  13383. $as_echo_n "(cached) " >&6
  13384. else
  13385. ac_check_lib_save_LIBS=$LIBS
  13386. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  13387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13388. /* end confdefs.h. */
  13389. /* Override any GCC internal prototype to avoid an error.
  13390. Use char because int might match the return type of a GCC
  13391. builtin and then its argument prototype would still apply. */
  13392. #ifdef __cplusplus
  13393. extern "C"
  13394. #endif
  13395. char mISDN_open ();
  13396. int
  13397. main ()
  13398. {
  13399. return mISDN_open ();
  13400. ;
  13401. return 0;
  13402. }
  13403. _ACEOF
  13404. if ac_fn_c_try_link "$LINENO"; then :
  13405. ac_cv_lib_mISDN_mISDN_open=yes
  13406. else
  13407. ac_cv_lib_mISDN_mISDN_open=no
  13408. fi
  13409. rm -f core conftest.err conftest.$ac_objext \
  13410. conftest$ac_exeext conftest.$ac_ext
  13411. LIBS=$ac_check_lib_save_LIBS
  13412. fi
  13413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mISDN_mISDN_open" >&5
  13414. $as_echo "$ac_cv_lib_mISDN_mISDN_open" >&6; }
  13415. if test "x$ac_cv_lib_mISDN_mISDN_open" = x""yes; then :
  13416. AST_MISDN_FOUND=yes
  13417. else
  13418. AST_MISDN_FOUND=no
  13419. fi
  13420. if test "${AST_MISDN_FOUND}" = "yes"; then
  13421. MISDN_LIB="-lmISDN "
  13422. MISDN_HEADER_FOUND="1"
  13423. if test "x${MISDN_DIR}" != "x"; then
  13424. MISDN_LIB="${pbxlibdir} ${MISDN_LIB}"
  13425. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  13426. fi
  13427. MISDN_INCLUDE="${MISDN_INCLUDE} "
  13428. saved_cppflags="${CPPFLAGS}"
  13429. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  13430. if test "xmISDNuser/mISDNlib.h" != "x" ; then
  13431. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/mISDNlib.h" "ac_cv_header_mISDNuser_mISDNlib_h" "$ac_includes_default"
  13432. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = x""yes; then :
  13433. MISDN_HEADER_FOUND=1
  13434. else
  13435. MISDN_HEADER_FOUND=0
  13436. fi
  13437. fi
  13438. CPPFLAGS="${saved_cppflags}"
  13439. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  13440. if test -n "${MISDN_MANDATORY}" ;
  13441. then
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13443. $as_echo "$as_me: ***" >&6;}
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the mISDN development package installed." >&5
  13445. $as_echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
  13446. if test "x${MISDN_OPTION}" = "x" ; then
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${MISDN_DESCRIP} support" >&5
  13448. $as_echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support" >&6;}
  13449. else
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&5
  13451. $as_echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support, or re-run configure" >&6;}
  13452. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
  13453. $as_echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
  13454. fi
  13455. exit 1
  13456. fi
  13457. MISDN_LIB=""
  13458. MISDN_INCLUDE=""
  13459. PBX_MISDN=0
  13460. else
  13461. PBX_MISDN=1
  13462. cat >>confdefs.h <<_ACEOF
  13463. #define HAVE_MISDN 1
  13464. _ACEOF
  13465. fi
  13466. elif test -n "${MISDN_MANDATORY}";
  13467. then
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13469. $as_echo "$as_me: ***" >&6;}
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
  13471. $as_echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
  13472. if test "x${MISDN_OPTION}" = "x" ; then
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  13474. $as_echo "$as_me: *** Please correct the installation" >&6;}
  13475. else
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13477. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
  13479. $as_echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
  13480. fi
  13481. exit 1
  13482. fi
  13483. fi
  13484. if test "${PBX_MISDN}" = 1; then
  13485. if test "${USE_ISDNNET}" != "no"; then
  13486. pbxlibdir=""
  13487. if test "x${ISDNNET_DIR}" != "x"; then
  13488. if test -d ${ISDNNET_DIR}/lib; then
  13489. pbxlibdir="-L${ISDNNET_DIR}/lib"
  13490. else
  13491. pbxlibdir="-L${ISDNNET_DIR}"
  13492. fi
  13493. fi
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_manager in -lisdnnet" >&5
  13495. $as_echo_n "checking for init_manager in -lisdnnet... " >&6; }
  13496. if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then :
  13497. $as_echo_n "(cached) " >&6
  13498. else
  13499. ac_check_lib_save_LIBS=$LIBS
  13500. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  13501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13502. /* end confdefs.h. */
  13503. /* Override any GCC internal prototype to avoid an error.
  13504. Use char because int might match the return type of a GCC
  13505. builtin and then its argument prototype would still apply. */
  13506. #ifdef __cplusplus
  13507. extern "C"
  13508. #endif
  13509. char init_manager ();
  13510. int
  13511. main ()
  13512. {
  13513. return init_manager ();
  13514. ;
  13515. return 0;
  13516. }
  13517. _ACEOF
  13518. if ac_fn_c_try_link "$LINENO"; then :
  13519. ac_cv_lib_isdnnet_init_manager=yes
  13520. else
  13521. ac_cv_lib_isdnnet_init_manager=no
  13522. fi
  13523. rm -f core conftest.err conftest.$ac_objext \
  13524. conftest$ac_exeext conftest.$ac_ext
  13525. LIBS=$ac_check_lib_save_LIBS
  13526. fi
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_isdnnet_init_manager" >&5
  13528. $as_echo "$ac_cv_lib_isdnnet_init_manager" >&6; }
  13529. if test "x$ac_cv_lib_isdnnet_init_manager" = x""yes; then :
  13530. AST_ISDNNET_FOUND=yes
  13531. else
  13532. AST_ISDNNET_FOUND=no
  13533. fi
  13534. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  13535. ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
  13536. ISDNNET_HEADER_FOUND="1"
  13537. if test "x${ISDNNET_DIR}" != "x"; then
  13538. ISDNNET_LIB="${pbxlibdir} ${ISDNNET_LIB}"
  13539. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  13540. fi
  13541. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  13542. saved_cppflags="${CPPFLAGS}"
  13543. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  13544. if test "xmISDNuser/isdn_net.h" != "x" ; then
  13545. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/isdn_net.h" "ac_cv_header_mISDNuser_isdn_net_h" "$ac_includes_default"
  13546. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = x""yes; then :
  13547. ISDNNET_HEADER_FOUND=1
  13548. else
  13549. ISDNNET_HEADER_FOUND=0
  13550. fi
  13551. fi
  13552. CPPFLAGS="${saved_cppflags}"
  13553. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  13554. if test -n "${ISDNNET_MANDATORY}" ;
  13555. then
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13557. $as_echo "$as_me: ***" >&6;}
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the isdnnet development package installed." >&5
  13559. $as_echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
  13560. if test "x${ISDNNET_OPTION}" = "x" ; then
  13561. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${ISDNNET_DESCRIP} support" >&5
  13562. $as_echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support" >&6;}
  13563. else
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&5
  13565. $as_echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support, or re-run configure" >&6;}
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
  13567. $as_echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
  13568. fi
  13569. exit 1
  13570. fi
  13571. ISDNNET_LIB=""
  13572. ISDNNET_INCLUDE=""
  13573. PBX_ISDNNET=0
  13574. else
  13575. PBX_ISDNNET=1
  13576. cat >>confdefs.h <<_ACEOF
  13577. #define HAVE_ISDNNET 1
  13578. _ACEOF
  13579. fi
  13580. elif test -n "${ISDNNET_MANDATORY}";
  13581. then
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13583. $as_echo "$as_me: ***" >&6;}
  13584. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
  13585. $as_echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
  13586. if test "x${ISDNNET_OPTION}" = "x" ; then
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  13588. $as_echo "$as_me: *** Please correct the installation" >&6;}
  13589. else
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13591. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
  13593. $as_echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
  13594. fi
  13595. exit 1
  13596. fi
  13597. fi
  13598. if test "${USE_SUPPSERV}" != "no"; then
  13599. pbxlibdir=""
  13600. if test "x${SUPPSERV_DIR}" != "x"; then
  13601. if test -d ${SUPPSERV_DIR}/lib; then
  13602. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  13603. else
  13604. pbxlibdir="-L${SUPPSERV_DIR}"
  13605. fi
  13606. fi
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for encodeFac in -lsuppserv" >&5
  13608. $as_echo_n "checking for encodeFac in -lsuppserv... " >&6; }
  13609. if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then :
  13610. $as_echo_n "(cached) " >&6
  13611. else
  13612. ac_check_lib_save_LIBS=$LIBS
  13613. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  13614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13615. /* end confdefs.h. */
  13616. /* Override any GCC internal prototype to avoid an error.
  13617. Use char because int might match the return type of a GCC
  13618. builtin and then its argument prototype would still apply. */
  13619. #ifdef __cplusplus
  13620. extern "C"
  13621. #endif
  13622. char encodeFac ();
  13623. int
  13624. main ()
  13625. {
  13626. return encodeFac ();
  13627. ;
  13628. return 0;
  13629. }
  13630. _ACEOF
  13631. if ac_fn_c_try_link "$LINENO"; then :
  13632. ac_cv_lib_suppserv_encodeFac=yes
  13633. else
  13634. ac_cv_lib_suppserv_encodeFac=no
  13635. fi
  13636. rm -f core conftest.err conftest.$ac_objext \
  13637. conftest$ac_exeext conftest.$ac_ext
  13638. LIBS=$ac_check_lib_save_LIBS
  13639. fi
  13640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_suppserv_encodeFac" >&5
  13641. $as_echo "$ac_cv_lib_suppserv_encodeFac" >&6; }
  13642. if test "x$ac_cv_lib_suppserv_encodeFac" = x""yes; then :
  13643. AST_SUPPSERV_FOUND=yes
  13644. else
  13645. AST_SUPPSERV_FOUND=no
  13646. fi
  13647. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  13648. SUPPSERV_LIB="-lsuppserv "
  13649. SUPPSERV_HEADER_FOUND="1"
  13650. if test "x${SUPPSERV_DIR}" != "x"; then
  13651. SUPPSERV_LIB="${pbxlibdir} ${SUPPSERV_LIB}"
  13652. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  13653. fi
  13654. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  13655. saved_cppflags="${CPPFLAGS}"
  13656. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  13657. if test "xmISDNuser/suppserv.h" != "x" ; then
  13658. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/suppserv.h" "ac_cv_header_mISDNuser_suppserv_h" "$ac_includes_default"
  13659. if test "x$ac_cv_header_mISDNuser_suppserv_h" = x""yes; then :
  13660. SUPPSERV_HEADER_FOUND=1
  13661. else
  13662. SUPPSERV_HEADER_FOUND=0
  13663. fi
  13664. fi
  13665. CPPFLAGS="${saved_cppflags}"
  13666. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  13667. if test -n "${SUPPSERV_MANDATORY}" ;
  13668. then
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13670. $as_echo "$as_me: ***" >&6;}
  13671. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the suppserv development package installed." >&5
  13672. $as_echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
  13673. if test "x${SUPPSERV_OPTION}" = "x" ; then
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&5
  13675. $as_echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&6;}
  13676. else
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&5
  13678. $as_echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support, or re-run configure" >&6;}
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
  13680. $as_echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
  13681. fi
  13682. exit 1
  13683. fi
  13684. SUPPSERV_LIB=""
  13685. SUPPSERV_INCLUDE=""
  13686. PBX_SUPPSERV=0
  13687. else
  13688. PBX_SUPPSERV=1
  13689. cat >>confdefs.h <<_ACEOF
  13690. #define HAVE_SUPPSERV 1
  13691. _ACEOF
  13692. fi
  13693. elif test -n "${SUPPSERV_MANDATORY}";
  13694. then
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13696. $as_echo "$as_me: ***" >&6;}
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
  13698. $as_echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
  13699. if test "x${SUPPSERV_OPTION}" = "x" ; then
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  13701. $as_echo "$as_me: *** Please correct the installation" >&6;}
  13702. else
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13704. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
  13706. $as_echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
  13707. fi
  13708. exit 1
  13709. fi
  13710. fi
  13711. ac_fn_c_check_header_mongrel "$LINENO" "linux/mISDNdsp.h" "ac_cv_header_linux_mISDNdsp_h" "$ac_includes_default"
  13712. if test "x$ac_cv_header_linux_mISDNdsp_h" = x""yes; then :
  13713. cat >>confdefs.h <<_ACEOF
  13714. #define MISDN_1_2 1
  13715. _ACEOF
  13716. fi
  13717. fi
  13718. if test "${USE_NBS}" != "no"; then
  13719. pbxlibdir=""
  13720. if test "x${NBS_DIR}" != "x"; then
  13721. if test -d ${NBS_DIR}/lib; then
  13722. pbxlibdir="-L${NBS_DIR}/lib"
  13723. else
  13724. pbxlibdir="-L${NBS_DIR}"
  13725. fi
  13726. fi
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nbs_connect in -lnbs" >&5
  13728. $as_echo_n "checking for nbs_connect in -lnbs... " >&6; }
  13729. if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then :
  13730. $as_echo_n "(cached) " >&6
  13731. else
  13732. ac_check_lib_save_LIBS=$LIBS
  13733. LIBS="-lnbs ${pbxlibdir} $LIBS"
  13734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13735. /* end confdefs.h. */
  13736. /* Override any GCC internal prototype to avoid an error.
  13737. Use char because int might match the return type of a GCC
  13738. builtin and then its argument prototype would still apply. */
  13739. #ifdef __cplusplus
  13740. extern "C"
  13741. #endif
  13742. char nbs_connect ();
  13743. int
  13744. main ()
  13745. {
  13746. return nbs_connect ();
  13747. ;
  13748. return 0;
  13749. }
  13750. _ACEOF
  13751. if ac_fn_c_try_link "$LINENO"; then :
  13752. ac_cv_lib_nbs_nbs_connect=yes
  13753. else
  13754. ac_cv_lib_nbs_nbs_connect=no
  13755. fi
  13756. rm -f core conftest.err conftest.$ac_objext \
  13757. conftest$ac_exeext conftest.$ac_ext
  13758. LIBS=$ac_check_lib_save_LIBS
  13759. fi
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nbs_nbs_connect" >&5
  13761. $as_echo "$ac_cv_lib_nbs_nbs_connect" >&6; }
  13762. if test "x$ac_cv_lib_nbs_nbs_connect" = x""yes; then :
  13763. AST_NBS_FOUND=yes
  13764. else
  13765. AST_NBS_FOUND=no
  13766. fi
  13767. if test "${AST_NBS_FOUND}" = "yes"; then
  13768. NBS_LIB="-lnbs "
  13769. NBS_HEADER_FOUND="1"
  13770. if test "x${NBS_DIR}" != "x"; then
  13771. NBS_LIB="${pbxlibdir} ${NBS_LIB}"
  13772. NBS_INCLUDE="-I${NBS_DIR}/include"
  13773. fi
  13774. NBS_INCLUDE="${NBS_INCLUDE} "
  13775. saved_cppflags="${CPPFLAGS}"
  13776. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  13777. if test "xnbs.h" != "x" ; then
  13778. ac_fn_c_check_header_mongrel "$LINENO" "nbs.h" "ac_cv_header_nbs_h" "$ac_includes_default"
  13779. if test "x$ac_cv_header_nbs_h" = x""yes; then :
  13780. NBS_HEADER_FOUND=1
  13781. else
  13782. NBS_HEADER_FOUND=0
  13783. fi
  13784. fi
  13785. CPPFLAGS="${saved_cppflags}"
  13786. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  13787. if test -n "${NBS_MANDATORY}" ;
  13788. then
  13789. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13790. $as_echo "$as_me: ***" >&6;}
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the nbs development package installed." >&5
  13792. $as_echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
  13793. if test "x${NBS_OPTION}" = "x" ; then
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${NBS_DESCRIP} support" >&5
  13795. $as_echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support" >&6;}
  13796. else
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&5
  13798. $as_echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support, or re-run configure" >&6;}
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${NBS_OPTION}" >&5
  13800. $as_echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
  13801. fi
  13802. exit 1
  13803. fi
  13804. NBS_LIB=""
  13805. NBS_INCLUDE=""
  13806. PBX_NBS=0
  13807. else
  13808. PBX_NBS=1
  13809. cat >>confdefs.h <<_ACEOF
  13810. #define HAVE_NBS 1
  13811. _ACEOF
  13812. fi
  13813. elif test -n "${NBS_MANDATORY}";
  13814. then
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13816. $as_echo "$as_me: ***" >&6;}
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
  13818. $as_echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
  13819. if test "x${NBS_OPTION}" = "x" ; then
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  13821. $as_echo "$as_me: *** Please correct the installation" >&6;}
  13822. else
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13824. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${NBS_OPTION}" >&5
  13826. $as_echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
  13827. fi
  13828. exit 1
  13829. fi
  13830. fi
  13831. if test "${USE_NCURSES}" != "no"; then
  13832. pbxlibdir=""
  13833. if test "x${NCURSES_DIR}" != "x"; then
  13834. if test -d ${NCURSES_DIR}/lib; then
  13835. pbxlibdir="-L${NCURSES_DIR}/lib"
  13836. else
  13837. pbxlibdir="-L${NCURSES_DIR}"
  13838. fi
  13839. fi
  13840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
  13841. $as_echo_n "checking for initscr in -lncurses... " >&6; }
  13842. if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
  13843. $as_echo_n "(cached) " >&6
  13844. else
  13845. ac_check_lib_save_LIBS=$LIBS
  13846. LIBS="-lncurses ${pbxlibdir} $LIBS"
  13847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13848. /* end confdefs.h. */
  13849. /* Override any GCC internal prototype to avoid an error.
  13850. Use char because int might match the return type of a GCC
  13851. builtin and then its argument prototype would still apply. */
  13852. #ifdef __cplusplus
  13853. extern "C"
  13854. #endif
  13855. char initscr ();
  13856. int
  13857. main ()
  13858. {
  13859. return initscr ();
  13860. ;
  13861. return 0;
  13862. }
  13863. _ACEOF
  13864. if ac_fn_c_try_link "$LINENO"; then :
  13865. ac_cv_lib_ncurses_initscr=yes
  13866. else
  13867. ac_cv_lib_ncurses_initscr=no
  13868. fi
  13869. rm -f core conftest.err conftest.$ac_objext \
  13870. conftest$ac_exeext conftest.$ac_ext
  13871. LIBS=$ac_check_lib_save_LIBS
  13872. fi
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
  13874. $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
  13875. if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
  13876. AST_NCURSES_FOUND=yes
  13877. else
  13878. AST_NCURSES_FOUND=no
  13879. fi
  13880. if test "${AST_NCURSES_FOUND}" = "yes"; then
  13881. NCURSES_LIB="-lncurses "
  13882. NCURSES_HEADER_FOUND="1"
  13883. if test "x${NCURSES_DIR}" != "x"; then
  13884. NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
  13885. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  13886. fi
  13887. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  13888. saved_cppflags="${CPPFLAGS}"
  13889. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  13890. if test "xcurses.h" != "x" ; then
  13891. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  13892. if test "x$ac_cv_header_curses_h" = x""yes; then :
  13893. NCURSES_HEADER_FOUND=1
  13894. else
  13895. NCURSES_HEADER_FOUND=0
  13896. fi
  13897. fi
  13898. CPPFLAGS="${saved_cppflags}"
  13899. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  13900. if test -n "${NCURSES_MANDATORY}" ;
  13901. then
  13902. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13903. $as_echo "$as_me: ***" >&6;}
  13904. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the ncurses development package installed." >&5
  13905. $as_echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
  13906. if test "x${NCURSES_OPTION}" = "x" ; then
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${NCURSES_DESCRIP} support" >&5
  13908. $as_echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support" >&6;}
  13909. else
  13910. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&5
  13911. $as_echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure" >&6;}
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
  13913. $as_echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
  13914. fi
  13915. exit 1
  13916. fi
  13917. NCURSES_LIB=""
  13918. NCURSES_INCLUDE=""
  13919. PBX_NCURSES=0
  13920. else
  13921. PBX_NCURSES=1
  13922. cat >>confdefs.h <<_ACEOF
  13923. #define HAVE_NCURSES 1
  13924. _ACEOF
  13925. fi
  13926. elif test -n "${NCURSES_MANDATORY}";
  13927. then
  13928. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  13929. $as_echo "$as_me: ***" >&6;}
  13930. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
  13931. $as_echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
  13932. if test "x${NCURSES_OPTION}" = "x" ; then
  13933. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  13934. $as_echo "$as_me: *** Please correct the installation" >&6;}
  13935. else
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  13937. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
  13939. $as_echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
  13940. fi
  13941. exit 1
  13942. fi
  13943. fi
  13944. NETSNMP_CONFIG=No
  13945. if test "${USE_NETSNMP}" != "no"; then
  13946. if test "x${NETSNMP_DIR}" != "x"; then
  13947. if test -n "$ac_tool_prefix"; then
  13948. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  13949. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  13950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13951. $as_echo_n "checking for $ac_word... " >&6; }
  13952. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then :
  13953. $as_echo_n "(cached) " >&6
  13954. else
  13955. case $NETSNMP_CONFIG in
  13956. [\\/]* | ?:[\\/]*)
  13957. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  13958. ;;
  13959. *)
  13960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13961. for as_dir in ${NETSNMP_DIR}/bin
  13962. do
  13963. IFS=$as_save_IFS
  13964. test -z "$as_dir" && as_dir=.
  13965. for ac_exec_ext in '' $ac_executable_extensions; do
  13966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13967. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13969. break 2
  13970. fi
  13971. done
  13972. done
  13973. IFS=$as_save_IFS
  13974. ;;
  13975. esac
  13976. fi
  13977. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  13978. if test -n "$NETSNMP_CONFIG"; then
  13979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  13980. $as_echo "$NETSNMP_CONFIG" >&6; }
  13981. else
  13982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13983. $as_echo "no" >&6; }
  13984. fi
  13985. fi
  13986. if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
  13987. ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
  13988. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  13989. set dummy net-snmp-config; ac_word=$2
  13990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13991. $as_echo_n "checking for $ac_word... " >&6; }
  13992. if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then :
  13993. $as_echo_n "(cached) " >&6
  13994. else
  13995. case $ac_pt_NETSNMP_CONFIG in
  13996. [\\/]* | ?:[\\/]*)
  13997. ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
  13998. ;;
  13999. *)
  14000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14001. for as_dir in ${NETSNMP_DIR}/bin
  14002. do
  14003. IFS=$as_save_IFS
  14004. test -z "$as_dir" && as_dir=.
  14005. for ac_exec_ext in '' $ac_executable_extensions; do
  14006. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14007. ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14009. break 2
  14010. fi
  14011. done
  14012. done
  14013. IFS=$as_save_IFS
  14014. ;;
  14015. esac
  14016. fi
  14017. ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
  14018. if test -n "$ac_pt_NETSNMP_CONFIG"; then
  14019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NETSNMP_CONFIG" >&5
  14020. $as_echo "$ac_pt_NETSNMP_CONFIG" >&6; }
  14021. else
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14023. $as_echo "no" >&6; }
  14024. fi
  14025. if test "x$ac_pt_NETSNMP_CONFIG" = x; then
  14026. NETSNMP_CONFIG="No"
  14027. else
  14028. case $cross_compiling:$ac_tool_warned in
  14029. yes:)
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14031. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14032. ac_tool_warned=yes ;;
  14033. esac
  14034. NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
  14035. fi
  14036. else
  14037. NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
  14038. fi
  14039. if test x"${NETSNMP_CONFIG}" = xNo; then
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14041. $as_echo "$as_me: ***" >&6;}
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: *** net-snmp-config was not found in the path you specified:" >&5
  14043. $as_echo "$as_me: *** net-snmp-config was not found in the path you specified:" >&6;}
  14044. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${NETSNMP_DIR}/bin" >&5
  14045. $as_echo "$as_me: *** ${NETSNMP_DIR}/bin" >&6;}
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14047. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14048. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-netsnmp" >&5
  14049. $as_echo "$as_me: *** including --without-netsnmp" >&6;}
  14050. exit 1
  14051. fi
  14052. else
  14053. if test -n "$ac_tool_prefix"; then
  14054. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  14055. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  14056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14057. $as_echo_n "checking for $ac_word... " >&6; }
  14058. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then :
  14059. $as_echo_n "(cached) " >&6
  14060. else
  14061. case $NETSNMP_CONFIG in
  14062. [\\/]* | ?:[\\/]*)
  14063. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  14064. ;;
  14065. *)
  14066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14067. for as_dir in $PATH
  14068. do
  14069. IFS=$as_save_IFS
  14070. test -z "$as_dir" && as_dir=.
  14071. for ac_exec_ext in '' $ac_executable_extensions; do
  14072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14073. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14075. break 2
  14076. fi
  14077. done
  14078. done
  14079. IFS=$as_save_IFS
  14080. ;;
  14081. esac
  14082. fi
  14083. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  14084. if test -n "$NETSNMP_CONFIG"; then
  14085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  14086. $as_echo "$NETSNMP_CONFIG" >&6; }
  14087. else
  14088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14089. $as_echo "no" >&6; }
  14090. fi
  14091. fi
  14092. if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
  14093. ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
  14094. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  14095. set dummy net-snmp-config; ac_word=$2
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14097. $as_echo_n "checking for $ac_word... " >&6; }
  14098. if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then :
  14099. $as_echo_n "(cached) " >&6
  14100. else
  14101. case $ac_pt_NETSNMP_CONFIG in
  14102. [\\/]* | ?:[\\/]*)
  14103. ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
  14104. ;;
  14105. *)
  14106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14107. for as_dir in $PATH
  14108. do
  14109. IFS=$as_save_IFS
  14110. test -z "$as_dir" && as_dir=.
  14111. for ac_exec_ext in '' $ac_executable_extensions; do
  14112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14113. ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14115. break 2
  14116. fi
  14117. done
  14118. done
  14119. IFS=$as_save_IFS
  14120. ;;
  14121. esac
  14122. fi
  14123. ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
  14124. if test -n "$ac_pt_NETSNMP_CONFIG"; then
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NETSNMP_CONFIG" >&5
  14126. $as_echo "$ac_pt_NETSNMP_CONFIG" >&6; }
  14127. else
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14129. $as_echo "no" >&6; }
  14130. fi
  14131. if test "x$ac_pt_NETSNMP_CONFIG" = x; then
  14132. NETSNMP_CONFIG="No"
  14133. else
  14134. case $cross_compiling:$ac_tool_warned in
  14135. yes:)
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14138. ac_tool_warned=yes ;;
  14139. esac
  14140. NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
  14141. fi
  14142. else
  14143. NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
  14144. fi
  14145. fi
  14146. fi
  14147. if test x"${NETSNMP_CONFIG}" != xNo; then
  14148. NETSNMP_libs=`${NETSNMP_CONFIG} --agent-libs`
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snmp_register_callback in -lnetsnmp" >&5
  14150. $as_echo_n "checking for snmp_register_callback in -lnetsnmp... " >&6; }
  14151. if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then :
  14152. $as_echo_n "(cached) " >&6
  14153. else
  14154. ac_check_lib_save_LIBS=$LIBS
  14155. LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
  14156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14157. /* end confdefs.h. */
  14158. /* Override any GCC internal prototype to avoid an error.
  14159. Use char because int might match the return type of a GCC
  14160. builtin and then its argument prototype would still apply. */
  14161. #ifdef __cplusplus
  14162. extern "C"
  14163. #endif
  14164. char snmp_register_callback ();
  14165. int
  14166. main ()
  14167. {
  14168. return snmp_register_callback ();
  14169. ;
  14170. return 0;
  14171. }
  14172. _ACEOF
  14173. if ac_fn_c_try_link "$LINENO"; then :
  14174. ac_cv_lib_netsnmp_snmp_register_callback=yes
  14175. else
  14176. ac_cv_lib_netsnmp_snmp_register_callback=no
  14177. fi
  14178. rm -f core conftest.err conftest.$ac_objext \
  14179. conftest$ac_exeext conftest.$ac_ext
  14180. LIBS=$ac_check_lib_save_LIBS
  14181. fi
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
  14183. $as_echo "$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
  14184. if test "x$ac_cv_lib_netsnmp_snmp_register_callback" = x""yes; then :
  14185. cat >>confdefs.h <<_ACEOF
  14186. #define HAVE_NETSNMP 1
  14187. _ACEOF
  14188. fi
  14189. if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
  14190. NETSNMP_LIB="${NETSNMP_libs}"
  14191. PBX_NETSNMP=1
  14192. elif test -n "${NETSNMP_MANDATORY}";
  14193. then
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14195. $as_echo "$as_me: ***" >&6;}
  14196. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The Net-SNMP installation on this system appears to be broken." >&5
  14197. $as_echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14199. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-netsnmp" >&5
  14201. $as_echo "$as_me: *** including --without-netsnmp" >&6;}
  14202. exit 1
  14203. fi
  14204. elif test -n "${NETSNMP_MANDATORY}";
  14205. then
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14207. $as_echo "$as_me: ***" >&6;}
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The Net-SNMP installation on this system appears to be broken." >&5
  14209. $as_echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
  14210. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14211. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14212. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-netsnmp" >&5
  14213. $as_echo "$as_me: *** including --without-netsnmp" >&6;}
  14214. exit 1
  14215. fi
  14216. if test "${USE_NEWT}" != "no"; then
  14217. pbxlibdir=""
  14218. if test "x${NEWT_DIR}" != "x"; then
  14219. if test -d ${NEWT_DIR}/lib; then
  14220. pbxlibdir="-L${NEWT_DIR}/lib"
  14221. else
  14222. pbxlibdir="-L${NEWT_DIR}"
  14223. fi
  14224. fi
  14225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for newtBell in -lnewt" >&5
  14226. $as_echo_n "checking for newtBell in -lnewt... " >&6; }
  14227. if test "${ac_cv_lib_newt_newtBell+set}" = set; then :
  14228. $as_echo_n "(cached) " >&6
  14229. else
  14230. ac_check_lib_save_LIBS=$LIBS
  14231. LIBS="-lnewt ${pbxlibdir} $LIBS"
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. /* Override any GCC internal prototype to avoid an error.
  14235. Use char because int might match the return type of a GCC
  14236. builtin and then its argument prototype would still apply. */
  14237. #ifdef __cplusplus
  14238. extern "C"
  14239. #endif
  14240. char newtBell ();
  14241. int
  14242. main ()
  14243. {
  14244. return newtBell ();
  14245. ;
  14246. return 0;
  14247. }
  14248. _ACEOF
  14249. if ac_fn_c_try_link "$LINENO"; then :
  14250. ac_cv_lib_newt_newtBell=yes
  14251. else
  14252. ac_cv_lib_newt_newtBell=no
  14253. fi
  14254. rm -f core conftest.err conftest.$ac_objext \
  14255. conftest$ac_exeext conftest.$ac_ext
  14256. LIBS=$ac_check_lib_save_LIBS
  14257. fi
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_newt_newtBell" >&5
  14259. $as_echo "$ac_cv_lib_newt_newtBell" >&6; }
  14260. if test "x$ac_cv_lib_newt_newtBell" = x""yes; then :
  14261. AST_NEWT_FOUND=yes
  14262. else
  14263. AST_NEWT_FOUND=no
  14264. fi
  14265. if test "${AST_NEWT_FOUND}" = "yes"; then
  14266. NEWT_LIB="-lnewt "
  14267. NEWT_HEADER_FOUND="1"
  14268. if test "x${NEWT_DIR}" != "x"; then
  14269. NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
  14270. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  14271. fi
  14272. NEWT_INCLUDE="${NEWT_INCLUDE} "
  14273. saved_cppflags="${CPPFLAGS}"
  14274. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  14275. if test "xnewt.h" != "x" ; then
  14276. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  14277. if test "x$ac_cv_header_newt_h" = x""yes; then :
  14278. NEWT_HEADER_FOUND=1
  14279. else
  14280. NEWT_HEADER_FOUND=0
  14281. fi
  14282. fi
  14283. CPPFLAGS="${saved_cppflags}"
  14284. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  14285. if test -n "${NEWT_MANDATORY}" ;
  14286. then
  14287. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14288. $as_echo "$as_me: ***" >&6;}
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the newt development package installed." >&5
  14290. $as_echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
  14291. if test "x${NEWT_OPTION}" = "x" ; then
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${NEWT_DESCRIP} support" >&5
  14293. $as_echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support" >&6;}
  14294. else
  14295. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&5
  14296. $as_echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure" >&6;}
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
  14298. $as_echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
  14299. fi
  14300. exit 1
  14301. fi
  14302. NEWT_LIB=""
  14303. NEWT_INCLUDE=""
  14304. PBX_NEWT=0
  14305. else
  14306. PBX_NEWT=1
  14307. cat >>confdefs.h <<_ACEOF
  14308. #define HAVE_NEWT 1
  14309. _ACEOF
  14310. fi
  14311. elif test -n "${NEWT_MANDATORY}";
  14312. then
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14314. $as_echo "$as_me: ***" >&6;}
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
  14316. $as_echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
  14317. if test "x${NEWT_OPTION}" = "x" ; then
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  14319. $as_echo "$as_me: *** Please correct the installation" >&6;}
  14320. else
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14322. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14323. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
  14324. $as_echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
  14325. fi
  14326. exit 1
  14327. fi
  14328. fi
  14329. if test "${USE_UNIXODBC}" != "no"; then
  14330. pbxlibdir=""
  14331. if test "x${UNIXODBC_DIR}" != "x"; then
  14332. if test -d ${UNIXODBC_DIR}/lib; then
  14333. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  14334. else
  14335. pbxlibdir="-L${UNIXODBC_DIR}"
  14336. fi
  14337. fi
  14338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
  14339. $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
  14340. if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then :
  14341. $as_echo_n "(cached) " >&6
  14342. else
  14343. ac_check_lib_save_LIBS=$LIBS
  14344. LIBS="-lodbc ${pbxlibdir} $LIBS"
  14345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14346. /* end confdefs.h. */
  14347. /* Override any GCC internal prototype to avoid an error.
  14348. Use char because int might match the return type of a GCC
  14349. builtin and then its argument prototype would still apply. */
  14350. #ifdef __cplusplus
  14351. extern "C"
  14352. #endif
  14353. char SQLConnect ();
  14354. int
  14355. main ()
  14356. {
  14357. return SQLConnect ();
  14358. ;
  14359. return 0;
  14360. }
  14361. _ACEOF
  14362. if ac_fn_c_try_link "$LINENO"; then :
  14363. ac_cv_lib_odbc_SQLConnect=yes
  14364. else
  14365. ac_cv_lib_odbc_SQLConnect=no
  14366. fi
  14367. rm -f core conftest.err conftest.$ac_objext \
  14368. conftest$ac_exeext conftest.$ac_ext
  14369. LIBS=$ac_check_lib_save_LIBS
  14370. fi
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
  14372. $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
  14373. if test "x$ac_cv_lib_odbc_SQLConnect" = x""yes; then :
  14374. AST_UNIXODBC_FOUND=yes
  14375. else
  14376. AST_UNIXODBC_FOUND=no
  14377. fi
  14378. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  14379. UNIXODBC_LIB="-lodbc "
  14380. UNIXODBC_HEADER_FOUND="1"
  14381. if test "x${UNIXODBC_DIR}" != "x"; then
  14382. UNIXODBC_LIB="${pbxlibdir} ${UNIXODBC_LIB}"
  14383. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  14384. fi
  14385. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  14386. saved_cppflags="${CPPFLAGS}"
  14387. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  14388. if test "xsql.h" != "x" ; then
  14389. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  14390. if test "x$ac_cv_header_sql_h" = x""yes; then :
  14391. UNIXODBC_HEADER_FOUND=1
  14392. else
  14393. UNIXODBC_HEADER_FOUND=0
  14394. fi
  14395. fi
  14396. CPPFLAGS="${saved_cppflags}"
  14397. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  14398. if test -n "${UNIXODBC_MANDATORY}" ;
  14399. then
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14401. $as_echo "$as_me: ***" >&6;}
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the odbc development package installed." >&5
  14403. $as_echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
  14404. if test "x${UNIXODBC_OPTION}" = "x" ; then
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&5
  14406. $as_echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&6;}
  14407. else
  14408. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&5
  14409. $as_echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure" >&6;}
  14410. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
  14411. $as_echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
  14412. fi
  14413. exit 1
  14414. fi
  14415. UNIXODBC_LIB=""
  14416. UNIXODBC_INCLUDE=""
  14417. PBX_UNIXODBC=0
  14418. else
  14419. PBX_UNIXODBC=1
  14420. cat >>confdefs.h <<_ACEOF
  14421. #define HAVE_UNIXODBC 1
  14422. _ACEOF
  14423. fi
  14424. elif test -n "${UNIXODBC_MANDATORY}";
  14425. then
  14426. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14427. $as_echo "$as_me: ***" >&6;}
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
  14429. $as_echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
  14430. if test "x${UNIXODBC_OPTION}" = "x" ; then
  14431. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  14432. $as_echo "$as_me: *** Please correct the installation" >&6;}
  14433. else
  14434. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14435. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14436. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
  14437. $as_echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
  14438. fi
  14439. exit 1
  14440. fi
  14441. fi
  14442. if test "${USE_OGG}" != "no"; then
  14443. pbxlibdir=""
  14444. if test "x${OGG_DIR}" != "x"; then
  14445. if test -d ${OGG_DIR}/lib; then
  14446. pbxlibdir="-L${OGG_DIR}/lib"
  14447. else
  14448. pbxlibdir="-L${OGG_DIR}"
  14449. fi
  14450. fi
  14451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg_sync_init in -logg" >&5
  14452. $as_echo_n "checking for ogg_sync_init in -logg... " >&6; }
  14453. if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then :
  14454. $as_echo_n "(cached) " >&6
  14455. else
  14456. ac_check_lib_save_LIBS=$LIBS
  14457. LIBS="-logg ${pbxlibdir} $LIBS"
  14458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14459. /* end confdefs.h. */
  14460. /* Override any GCC internal prototype to avoid an error.
  14461. Use char because int might match the return type of a GCC
  14462. builtin and then its argument prototype would still apply. */
  14463. #ifdef __cplusplus
  14464. extern "C"
  14465. #endif
  14466. char ogg_sync_init ();
  14467. int
  14468. main ()
  14469. {
  14470. return ogg_sync_init ();
  14471. ;
  14472. return 0;
  14473. }
  14474. _ACEOF
  14475. if ac_fn_c_try_link "$LINENO"; then :
  14476. ac_cv_lib_ogg_ogg_sync_init=yes
  14477. else
  14478. ac_cv_lib_ogg_ogg_sync_init=no
  14479. fi
  14480. rm -f core conftest.err conftest.$ac_objext \
  14481. conftest$ac_exeext conftest.$ac_ext
  14482. LIBS=$ac_check_lib_save_LIBS
  14483. fi
  14484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
  14485. $as_echo "$ac_cv_lib_ogg_ogg_sync_init" >&6; }
  14486. if test "x$ac_cv_lib_ogg_ogg_sync_init" = x""yes; then :
  14487. AST_OGG_FOUND=yes
  14488. else
  14489. AST_OGG_FOUND=no
  14490. fi
  14491. if test "${AST_OGG_FOUND}" = "yes"; then
  14492. OGG_LIB="-logg "
  14493. OGG_HEADER_FOUND="1"
  14494. if test "x${OGG_DIR}" != "x"; then
  14495. OGG_LIB="${pbxlibdir} ${OGG_LIB}"
  14496. OGG_INCLUDE="-I${OGG_DIR}/include"
  14497. fi
  14498. OGG_INCLUDE="${OGG_INCLUDE} "
  14499. saved_cppflags="${CPPFLAGS}"
  14500. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  14501. if test "x" != "x" ; then
  14502. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  14503. if test "x$ac_cv_header_" = x""yes; then :
  14504. OGG_HEADER_FOUND=1
  14505. else
  14506. OGG_HEADER_FOUND=0
  14507. fi
  14508. fi
  14509. CPPFLAGS="${saved_cppflags}"
  14510. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  14511. if test -n "${OGG_MANDATORY}" ;
  14512. then
  14513. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14514. $as_echo "$as_me: ***" >&6;}
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the ogg development package installed." >&5
  14516. $as_echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
  14517. if test "x${OGG_OPTION}" = "x" ; then
  14518. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OGG_DESCRIP} support" >&5
  14519. $as_echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support" >&6;}
  14520. else
  14521. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&5
  14522. $as_echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support, or re-run configure" >&6;}
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OGG_OPTION}" >&5
  14524. $as_echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
  14525. fi
  14526. exit 1
  14527. fi
  14528. OGG_LIB=""
  14529. OGG_INCLUDE=""
  14530. PBX_OGG=0
  14531. else
  14532. PBX_OGG=1
  14533. cat >>confdefs.h <<_ACEOF
  14534. #define HAVE_OGG 1
  14535. _ACEOF
  14536. fi
  14537. elif test -n "${OGG_MANDATORY}";
  14538. then
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14540. $as_echo "$as_me: ***" >&6;}
  14541. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
  14542. $as_echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
  14543. if test "x${OGG_OPTION}" = "x" ; then
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  14545. $as_echo "$as_me: *** Please correct the installation" >&6;}
  14546. else
  14547. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14548. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OGG_OPTION}" >&5
  14550. $as_echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
  14551. fi
  14552. exit 1
  14553. fi
  14554. fi
  14555. if test "${USE_OSS}" != "no"; then
  14556. PBX_OSS=0
  14557. ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
  14558. if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
  14559. PBX_OSS=1
  14560. cat >>confdefs.h <<_ACEOF
  14561. #define HAVE_OSS 1
  14562. _ACEOF
  14563. fi
  14564. if test "$PBX_OSS" = "0"; then
  14565. ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
  14566. if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
  14567. PBX_OSS=1
  14568. cat >>confdefs.h <<_ACEOF
  14569. #define HAVE_OSS 1
  14570. _ACEOF
  14571. fi
  14572. fi
  14573. if test "$PBX_OSS" = "0"; then
  14574. if test "${USE_OSS}" != "no"; then
  14575. pbxlibdir=""
  14576. if test "x${OSS_DIR}" != "x"; then
  14577. if test -d ${OSS_DIR}/lib; then
  14578. pbxlibdir="-L${OSS_DIR}/lib"
  14579. else
  14580. pbxlibdir="-L${OSS_DIR}"
  14581. fi
  14582. fi
  14583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oss_ioctl_mixer in -lossaudio" >&5
  14584. $as_echo_n "checking for oss_ioctl_mixer in -lossaudio... " >&6; }
  14585. if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then :
  14586. $as_echo_n "(cached) " >&6
  14587. else
  14588. ac_check_lib_save_LIBS=$LIBS
  14589. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  14590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14591. /* end confdefs.h. */
  14592. /* Override any GCC internal prototype to avoid an error.
  14593. Use char because int might match the return type of a GCC
  14594. builtin and then its argument prototype would still apply. */
  14595. #ifdef __cplusplus
  14596. extern "C"
  14597. #endif
  14598. char oss_ioctl_mixer ();
  14599. int
  14600. main ()
  14601. {
  14602. return oss_ioctl_mixer ();
  14603. ;
  14604. return 0;
  14605. }
  14606. _ACEOF
  14607. if ac_fn_c_try_link "$LINENO"; then :
  14608. ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
  14609. else
  14610. ac_cv_lib_ossaudio_oss_ioctl_mixer=no
  14611. fi
  14612. rm -f core conftest.err conftest.$ac_objext \
  14613. conftest$ac_exeext conftest.$ac_ext
  14614. LIBS=$ac_check_lib_save_LIBS
  14615. fi
  14616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
  14617. $as_echo "$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
  14618. if test "x$ac_cv_lib_ossaudio_oss_ioctl_mixer" = x""yes; then :
  14619. AST_OSS_FOUND=yes
  14620. else
  14621. AST_OSS_FOUND=no
  14622. fi
  14623. if test "${AST_OSS_FOUND}" = "yes"; then
  14624. OSS_LIB="-lossaudio "
  14625. OSS_HEADER_FOUND="1"
  14626. if test "x${OSS_DIR}" != "x"; then
  14627. OSS_LIB="${pbxlibdir} ${OSS_LIB}"
  14628. OSS_INCLUDE="-I${OSS_DIR}/include"
  14629. fi
  14630. OSS_INCLUDE="${OSS_INCLUDE} "
  14631. saved_cppflags="${CPPFLAGS}"
  14632. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  14633. if test "xsoundcard.h" != "x" ; then
  14634. ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
  14635. if test "x$ac_cv_header_soundcard_h" = x""yes; then :
  14636. OSS_HEADER_FOUND=1
  14637. else
  14638. OSS_HEADER_FOUND=0
  14639. fi
  14640. fi
  14641. CPPFLAGS="${saved_cppflags}"
  14642. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  14643. if test -n "${OSS_MANDATORY}" ;
  14644. then
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14646. $as_echo "$as_me: ***" >&6;}
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the ossaudio development package installed." >&5
  14648. $as_echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
  14649. if test "x${OSS_OPTION}" = "x" ; then
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OSS_DESCRIP} support" >&5
  14651. $as_echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support" >&6;}
  14652. else
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&5
  14654. $as_echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support, or re-run configure" >&6;}
  14655. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OSS_OPTION}" >&5
  14656. $as_echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
  14657. fi
  14658. exit 1
  14659. fi
  14660. OSS_LIB=""
  14661. OSS_INCLUDE=""
  14662. PBX_OSS=0
  14663. else
  14664. PBX_OSS=1
  14665. cat >>confdefs.h <<_ACEOF
  14666. #define HAVE_OSS 1
  14667. _ACEOF
  14668. fi
  14669. elif test -n "${OSS_MANDATORY}";
  14670. then
  14671. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14672. $as_echo "$as_me: ***" >&6;}
  14673. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
  14674. $as_echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
  14675. if test "x${OSS_OPTION}" = "x" ; then
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  14677. $as_echo "$as_me: *** Please correct the installation" >&6;}
  14678. else
  14679. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14680. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OSS_OPTION}" >&5
  14682. $as_echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
  14683. fi
  14684. exit 1
  14685. fi
  14686. fi
  14687. fi
  14688. fi
  14689. PG_CONFIG=No
  14690. if test "${USE_PGSQL}" != "no"; then
  14691. if test "x${PGSQL_DIR}" != "x"; then
  14692. if test -n "$ac_tool_prefix"; then
  14693. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  14694. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14696. $as_echo_n "checking for $ac_word... " >&6; }
  14697. if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
  14698. $as_echo_n "(cached) " >&6
  14699. else
  14700. case $PG_CONFIG in
  14701. [\\/]* | ?:[\\/]*)
  14702. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  14703. ;;
  14704. *)
  14705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14706. for as_dir in ${PGSQL_DIR}/bin
  14707. do
  14708. IFS=$as_save_IFS
  14709. test -z "$as_dir" && as_dir=.
  14710. for ac_exec_ext in '' $ac_executable_extensions; do
  14711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14712. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14714. break 2
  14715. fi
  14716. done
  14717. done
  14718. IFS=$as_save_IFS
  14719. ;;
  14720. esac
  14721. fi
  14722. PG_CONFIG=$ac_cv_path_PG_CONFIG
  14723. if test -n "$PG_CONFIG"; then
  14724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  14725. $as_echo "$PG_CONFIG" >&6; }
  14726. else
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14728. $as_echo "no" >&6; }
  14729. fi
  14730. fi
  14731. if test -z "$ac_cv_path_PG_CONFIG"; then
  14732. ac_pt_PG_CONFIG=$PG_CONFIG
  14733. # Extract the first word of "pg_config", so it can be a program name with args.
  14734. set dummy pg_config; ac_word=$2
  14735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14736. $as_echo_n "checking for $ac_word... " >&6; }
  14737. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then :
  14738. $as_echo_n "(cached) " >&6
  14739. else
  14740. case $ac_pt_PG_CONFIG in
  14741. [\\/]* | ?:[\\/]*)
  14742. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  14743. ;;
  14744. *)
  14745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14746. for as_dir in ${PGSQL_DIR}/bin
  14747. do
  14748. IFS=$as_save_IFS
  14749. test -z "$as_dir" && as_dir=.
  14750. for ac_exec_ext in '' $ac_executable_extensions; do
  14751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14752. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14754. break 2
  14755. fi
  14756. done
  14757. done
  14758. IFS=$as_save_IFS
  14759. ;;
  14760. esac
  14761. fi
  14762. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  14763. if test -n "$ac_pt_PG_CONFIG"; then
  14764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  14765. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  14766. else
  14767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14768. $as_echo "no" >&6; }
  14769. fi
  14770. if test "x$ac_pt_PG_CONFIG" = x; then
  14771. PG_CONFIG="No"
  14772. else
  14773. case $cross_compiling:$ac_tool_warned in
  14774. yes:)
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14777. ac_tool_warned=yes ;;
  14778. esac
  14779. PG_CONFIG=$ac_pt_PG_CONFIG
  14780. fi
  14781. else
  14782. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  14783. fi
  14784. if test x"${PG_CONFIG}" = xNo; then
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14786. $as_echo "$as_me: ***" >&6;}
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
  14788. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
  14790. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  14791. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14792. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14793. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  14794. $as_echo "$as_me: *** including --without-postgres" >&6;}
  14795. exit 1
  14796. fi
  14797. else
  14798. if test -n "$ac_tool_prefix"; then
  14799. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  14800. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14802. $as_echo_n "checking for $ac_word... " >&6; }
  14803. if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
  14804. $as_echo_n "(cached) " >&6
  14805. else
  14806. case $PG_CONFIG in
  14807. [\\/]* | ?:[\\/]*)
  14808. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  14809. ;;
  14810. *)
  14811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14812. for as_dir in $PATH
  14813. do
  14814. IFS=$as_save_IFS
  14815. test -z "$as_dir" && as_dir=.
  14816. for ac_exec_ext in '' $ac_executable_extensions; do
  14817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14818. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14820. break 2
  14821. fi
  14822. done
  14823. done
  14824. IFS=$as_save_IFS
  14825. ;;
  14826. esac
  14827. fi
  14828. PG_CONFIG=$ac_cv_path_PG_CONFIG
  14829. if test -n "$PG_CONFIG"; then
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  14831. $as_echo "$PG_CONFIG" >&6; }
  14832. else
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14834. $as_echo "no" >&6; }
  14835. fi
  14836. fi
  14837. if test -z "$ac_cv_path_PG_CONFIG"; then
  14838. ac_pt_PG_CONFIG=$PG_CONFIG
  14839. # Extract the first word of "pg_config", so it can be a program name with args.
  14840. set dummy pg_config; ac_word=$2
  14841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14842. $as_echo_n "checking for $ac_word... " >&6; }
  14843. if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then :
  14844. $as_echo_n "(cached) " >&6
  14845. else
  14846. case $ac_pt_PG_CONFIG in
  14847. [\\/]* | ?:[\\/]*)
  14848. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  14849. ;;
  14850. *)
  14851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14852. for as_dir in $PATH
  14853. do
  14854. IFS=$as_save_IFS
  14855. test -z "$as_dir" && as_dir=.
  14856. for ac_exec_ext in '' $ac_executable_extensions; do
  14857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14858. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14860. break 2
  14861. fi
  14862. done
  14863. done
  14864. IFS=$as_save_IFS
  14865. ;;
  14866. esac
  14867. fi
  14868. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  14869. if test -n "$ac_pt_PG_CONFIG"; then
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  14871. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  14872. else
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14874. $as_echo "no" >&6; }
  14875. fi
  14876. if test "x$ac_pt_PG_CONFIG" = x; then
  14877. PG_CONFIG="No"
  14878. else
  14879. case $cross_compiling:$ac_tool_warned in
  14880. yes:)
  14881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14883. ac_tool_warned=yes ;;
  14884. esac
  14885. PG_CONFIG=$ac_pt_PG_CONFIG
  14886. fi
  14887. else
  14888. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  14889. fi
  14890. fi
  14891. fi
  14892. if test "${PG_CONFIG}" != No; then
  14893. PGSQL_libdir=`${PG_CONFIG} --libdir`
  14894. PGSQL_includedir=`${PG_CONFIG} --includedir`
  14895. if test "x$?" != "x0" ; then
  14896. if test -n "${PGSQL_MANDATORY}" ; then
  14897. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14898. $as_echo "$as_me: ***" >&6;}
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  14900. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14902. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14903. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  14904. $as_echo "$as_me: *** including --without-postgres" >&6;}
  14905. exit 1
  14906. fi
  14907. else
  14908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
  14909. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  14910. if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then :
  14911. $as_echo_n "(cached) " >&6
  14912. else
  14913. ac_check_lib_save_LIBS=$LIBS
  14914. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  14915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14916. /* end confdefs.h. */
  14917. /* Override any GCC internal prototype to avoid an error.
  14918. Use char because int might match the return type of a GCC
  14919. builtin and then its argument prototype would still apply. */
  14920. #ifdef __cplusplus
  14921. extern "C"
  14922. #endif
  14923. char PQescapeStringConn ();
  14924. int
  14925. main ()
  14926. {
  14927. return PQescapeStringConn ();
  14928. ;
  14929. return 0;
  14930. }
  14931. _ACEOF
  14932. if ac_fn_c_try_link "$LINENO"; then :
  14933. ac_cv_lib_pq_PQescapeStringConn=yes
  14934. else
  14935. ac_cv_lib_pq_PQescapeStringConn=no
  14936. fi
  14937. rm -f core conftest.err conftest.$ac_objext \
  14938. conftest$ac_exeext conftest.$ac_ext
  14939. LIBS=$ac_check_lib_save_LIBS
  14940. fi
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  14942. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  14943. if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then :
  14944. cat >>confdefs.h <<_ACEOF
  14945. #define HAVE_PGSQL 1
  14946. _ACEOF
  14947. fi
  14948. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  14949. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  14950. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  14951. PBX_PGSQL=1
  14952. elif test -n "${PGSQL_MANDATORY}";
  14953. then
  14954. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14955. $as_echo "$as_me: ***" >&6;}
  14956. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  14957. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14959. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  14961. $as_echo "$as_me: *** including --without-postgres" >&6;}
  14962. exit 1
  14963. fi
  14964. fi
  14965. elif test -n "${PGSQL_MANDATORY}";
  14966. then
  14967. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  14968. $as_echo "$as_me: ***" >&6;}
  14969. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  14970. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  14972. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  14974. $as_echo "$as_me: *** including --without-postgres" >&6;}
  14975. exit 1
  14976. fi
  14977. if test "${USE_POPT}" != "no"; then
  14978. pbxlibdir=""
  14979. if test "x${POPT_DIR}" != "x"; then
  14980. if test -d ${POPT_DIR}/lib; then
  14981. pbxlibdir="-L${POPT_DIR}/lib"
  14982. else
  14983. pbxlibdir="-L${POPT_DIR}"
  14984. fi
  14985. fi
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptStrerror in -lpopt" >&5
  14987. $as_echo_n "checking for poptStrerror in -lpopt... " >&6; }
  14988. if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then :
  14989. $as_echo_n "(cached) " >&6
  14990. else
  14991. ac_check_lib_save_LIBS=$LIBS
  14992. LIBS="-lpopt ${pbxlibdir} $LIBS"
  14993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14994. /* end confdefs.h. */
  14995. /* Override any GCC internal prototype to avoid an error.
  14996. Use char because int might match the return type of a GCC
  14997. builtin and then its argument prototype would still apply. */
  14998. #ifdef __cplusplus
  14999. extern "C"
  15000. #endif
  15001. char poptStrerror ();
  15002. int
  15003. main ()
  15004. {
  15005. return poptStrerror ();
  15006. ;
  15007. return 0;
  15008. }
  15009. _ACEOF
  15010. if ac_fn_c_try_link "$LINENO"; then :
  15011. ac_cv_lib_popt_poptStrerror=yes
  15012. else
  15013. ac_cv_lib_popt_poptStrerror=no
  15014. fi
  15015. rm -f core conftest.err conftest.$ac_objext \
  15016. conftest$ac_exeext conftest.$ac_ext
  15017. LIBS=$ac_check_lib_save_LIBS
  15018. fi
  15019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptStrerror" >&5
  15020. $as_echo "$ac_cv_lib_popt_poptStrerror" >&6; }
  15021. if test "x$ac_cv_lib_popt_poptStrerror" = x""yes; then :
  15022. AST_POPT_FOUND=yes
  15023. else
  15024. AST_POPT_FOUND=no
  15025. fi
  15026. if test "${AST_POPT_FOUND}" = "yes"; then
  15027. POPT_LIB="-lpopt "
  15028. POPT_HEADER_FOUND="1"
  15029. if test "x${POPT_DIR}" != "x"; then
  15030. POPT_LIB="${pbxlibdir} ${POPT_LIB}"
  15031. POPT_INCLUDE="-I${POPT_DIR}/include"
  15032. fi
  15033. POPT_INCLUDE="${POPT_INCLUDE} "
  15034. saved_cppflags="${CPPFLAGS}"
  15035. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  15036. if test "xpopt.h" != "x" ; then
  15037. ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
  15038. if test "x$ac_cv_header_popt_h" = x""yes; then :
  15039. POPT_HEADER_FOUND=1
  15040. else
  15041. POPT_HEADER_FOUND=0
  15042. fi
  15043. fi
  15044. CPPFLAGS="${saved_cppflags}"
  15045. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  15046. if test -n "${POPT_MANDATORY}" ;
  15047. then
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15049. $as_echo "$as_me: ***" >&6;}
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the popt development package installed." >&5
  15051. $as_echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
  15052. if test "x${POPT_OPTION}" = "x" ; then
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${POPT_DESCRIP} support" >&5
  15054. $as_echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support" >&6;}
  15055. else
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&5
  15057. $as_echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support, or re-run configure" >&6;}
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${POPT_OPTION}" >&5
  15059. $as_echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
  15060. fi
  15061. exit 1
  15062. fi
  15063. POPT_LIB=""
  15064. POPT_INCLUDE=""
  15065. PBX_POPT=0
  15066. else
  15067. PBX_POPT=1
  15068. cat >>confdefs.h <<_ACEOF
  15069. #define HAVE_POPT 1
  15070. _ACEOF
  15071. fi
  15072. elif test -n "${POPT_MANDATORY}";
  15073. then
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15075. $as_echo "$as_me: ***" >&6;}
  15076. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
  15077. $as_echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
  15078. if test "x${POPT_OPTION}" = "x" ; then
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  15080. $as_echo "$as_me: *** Please correct the installation" >&6;}
  15081. else
  15082. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  15083. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  15084. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${POPT_OPTION}" >&5
  15085. $as_echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
  15086. fi
  15087. exit 1
  15088. fi
  15089. fi
  15090. if test "${USE_PRI}" != "no"; then
  15091. pbxlibdir=""
  15092. if test "x${PRI_DIR}" != "x"; then
  15093. if test -d ${PRI_DIR}/lib; then
  15094. pbxlibdir="-L${PRI_DIR}/lib"
  15095. else
  15096. pbxlibdir="-L${PRI_DIR}"
  15097. fi
  15098. fi
  15099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pri_keypad_facility in -lpri" >&5
  15100. $as_echo_n "checking for pri_keypad_facility in -lpri... " >&6; }
  15101. if test "${ac_cv_lib_pri_pri_keypad_facility+set}" = set; then :
  15102. $as_echo_n "(cached) " >&6
  15103. else
  15104. ac_check_lib_save_LIBS=$LIBS
  15105. LIBS="-lpri ${pbxlibdir} $LIBS"
  15106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15107. /* end confdefs.h. */
  15108. /* Override any GCC internal prototype to avoid an error.
  15109. Use char because int might match the return type of a GCC
  15110. builtin and then its argument prototype would still apply. */
  15111. #ifdef __cplusplus
  15112. extern "C"
  15113. #endif
  15114. char pri_keypad_facility ();
  15115. int
  15116. main ()
  15117. {
  15118. return pri_keypad_facility ();
  15119. ;
  15120. return 0;
  15121. }
  15122. _ACEOF
  15123. if ac_fn_c_try_link "$LINENO"; then :
  15124. ac_cv_lib_pri_pri_keypad_facility=yes
  15125. else
  15126. ac_cv_lib_pri_pri_keypad_facility=no
  15127. fi
  15128. rm -f core conftest.err conftest.$ac_objext \
  15129. conftest$ac_exeext conftest.$ac_ext
  15130. LIBS=$ac_check_lib_save_LIBS
  15131. fi
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_keypad_facility" >&5
  15133. $as_echo "$ac_cv_lib_pri_pri_keypad_facility" >&6; }
  15134. if test "x$ac_cv_lib_pri_pri_keypad_facility" = x""yes; then :
  15135. AST_PRI_FOUND=yes
  15136. else
  15137. AST_PRI_FOUND=no
  15138. fi
  15139. if test "${AST_PRI_FOUND}" = "yes"; then
  15140. PRI_LIB="-lpri "
  15141. PRI_HEADER_FOUND="1"
  15142. if test "x${PRI_DIR}" != "x"; then
  15143. PRI_LIB="${pbxlibdir} ${PRI_LIB}"
  15144. PRI_INCLUDE="-I${PRI_DIR}/include"
  15145. fi
  15146. PRI_INCLUDE="${PRI_INCLUDE} "
  15147. saved_cppflags="${CPPFLAGS}"
  15148. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  15149. if test "xlibpri.h" != "x" ; then
  15150. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  15151. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  15152. PRI_HEADER_FOUND=1
  15153. else
  15154. PRI_HEADER_FOUND=0
  15155. fi
  15156. fi
  15157. CPPFLAGS="${saved_cppflags}"
  15158. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  15159. if test -n "${PRI_MANDATORY}" ;
  15160. then
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15162. $as_echo "$as_me: ***" >&6;}
  15163. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the pri development package installed." >&5
  15164. $as_echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
  15165. if test "x${PRI_OPTION}" = "x" ; then
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_DESCRIP} support" >&5
  15167. $as_echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support" >&6;}
  15168. else
  15169. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&5
  15170. $as_echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support, or re-run configure" >&6;}
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_OPTION}" >&5
  15172. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
  15173. fi
  15174. exit 1
  15175. fi
  15176. PRI_LIB=""
  15177. PRI_INCLUDE=""
  15178. PBX_PRI=0
  15179. else
  15180. PBX_PRI=1
  15181. cat >>confdefs.h <<_ACEOF
  15182. #define HAVE_PRI 1
  15183. _ACEOF
  15184. fi
  15185. elif test -n "${PRI_MANDATORY}";
  15186. then
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15188. $as_echo "$as_me: ***" >&6;}
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
  15190. $as_echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
  15191. if test "x${PRI_OPTION}" = "x" ; then
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  15193. $as_echo "$as_me: *** Please correct the installation" >&6;}
  15194. else
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  15196. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_OPTION}" >&5
  15198. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
  15199. fi
  15200. exit 1
  15201. fi
  15202. fi
  15203. if test "${USE_PRI_CALL_HOLD}" != "no"; then
  15204. pbxlibdir=""
  15205. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  15206. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  15207. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  15208. else
  15209. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  15210. fi
  15211. fi
  15212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pri_hold_enable in -lpri" >&5
  15213. $as_echo_n "checking for pri_hold_enable in -lpri... " >&6; }
  15214. if test "${ac_cv_lib_pri_pri_hold_enable+set}" = set; then :
  15215. $as_echo_n "(cached) " >&6
  15216. else
  15217. ac_check_lib_save_LIBS=$LIBS
  15218. LIBS="-lpri ${pbxlibdir} $LIBS"
  15219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15220. /* end confdefs.h. */
  15221. /* Override any GCC internal prototype to avoid an error.
  15222. Use char because int might match the return type of a GCC
  15223. builtin and then its argument prototype would still apply. */
  15224. #ifdef __cplusplus
  15225. extern "C"
  15226. #endif
  15227. char pri_hold_enable ();
  15228. int
  15229. main ()
  15230. {
  15231. return pri_hold_enable ();
  15232. ;
  15233. return 0;
  15234. }
  15235. _ACEOF
  15236. if ac_fn_c_try_link "$LINENO"; then :
  15237. ac_cv_lib_pri_pri_hold_enable=yes
  15238. else
  15239. ac_cv_lib_pri_pri_hold_enable=no
  15240. fi
  15241. rm -f core conftest.err conftest.$ac_objext \
  15242. conftest$ac_exeext conftest.$ac_ext
  15243. LIBS=$ac_check_lib_save_LIBS
  15244. fi
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_hold_enable" >&5
  15246. $as_echo "$ac_cv_lib_pri_pri_hold_enable" >&6; }
  15247. if test "x$ac_cv_lib_pri_pri_hold_enable" = x""yes; then :
  15248. AST_PRI_CALL_HOLD_FOUND=yes
  15249. else
  15250. AST_PRI_CALL_HOLD_FOUND=no
  15251. fi
  15252. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  15253. PRI_CALL_HOLD_LIB="-lpri "
  15254. PRI_CALL_HOLD_HEADER_FOUND="1"
  15255. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  15256. PRI_CALL_HOLD_LIB="${pbxlibdir} ${PRI_CALL_HOLD_LIB}"
  15257. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  15258. fi
  15259. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  15260. saved_cppflags="${CPPFLAGS}"
  15261. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  15262. if test "xlibpri.h" != "x" ; then
  15263. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  15264. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  15265. PRI_CALL_HOLD_HEADER_FOUND=1
  15266. else
  15267. PRI_CALL_HOLD_HEADER_FOUND=0
  15268. fi
  15269. fi
  15270. CPPFLAGS="${saved_cppflags}"
  15271. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  15272. if test -n "${PRI_CALL_HOLD_MANDATORY}" ;
  15273. then
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15275. $as_echo "$as_me: ***" >&6;}
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the pri development package installed." >&5
  15277. $as_echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
  15278. if test "x${PRI_CALL_HOLD_OPTION}" = "x" ; then
  15279. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_CALL_HOLD_DESCRIP} support" >&5
  15280. $as_echo "$as_me: *** Please install it to include ${PRI_CALL_HOLD_DESCRIP} support" >&6;}
  15281. else
  15282. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_CALL_HOLD_DESCRIP} support, or re-run configure" >&5
  15283. $as_echo "$as_me: *** Please install it to include ${PRI_CALL_HOLD_DESCRIP} support, or re-run configure" >&6;}
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_CALL_HOLD_OPTION}" >&5
  15285. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_CALL_HOLD_OPTION}" >&6;}
  15286. fi
  15287. exit 1
  15288. fi
  15289. PRI_CALL_HOLD_LIB=""
  15290. PRI_CALL_HOLD_INCLUDE=""
  15291. PBX_PRI_CALL_HOLD=0
  15292. else
  15293. PBX_PRI_CALL_HOLD=1
  15294. cat >>confdefs.h <<_ACEOF
  15295. #define HAVE_PRI_CALL_HOLD 1
  15296. _ACEOF
  15297. fi
  15298. elif test -n "${PRI_CALL_HOLD_MANDATORY}";
  15299. then
  15300. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15301. $as_echo "$as_me: ***" >&6;}
  15302. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${PRI_CALL_HOLD_DESCRIP} installation on this system appears to be broken." >&5
  15303. $as_echo "$as_me: *** The ${PRI_CALL_HOLD_DESCRIP} installation on this system appears to be broken." >&6;}
  15304. if test "x${PRI_CALL_HOLD_OPTION}" = "x" ; then
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  15306. $as_echo "$as_me: *** Please correct the installation" >&6;}
  15307. else
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  15309. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_CALL_HOLD_OPTION}" >&5
  15311. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_CALL_HOLD_OPTION}" >&6;}
  15312. fi
  15313. exit 1
  15314. fi
  15315. fi
  15316. if test "${USE_PRI_VERSION}" != "no"; then
  15317. pbxlibdir=""
  15318. if test "x${PRI_VERSION_DIR}" != "x"; then
  15319. if test -d ${PRI_VERSION_DIR}/lib; then
  15320. pbxlibdir="-L${PRI_VERSION_DIR}/lib"
  15321. else
  15322. pbxlibdir="-L${PRI_VERSION_DIR}"
  15323. fi
  15324. fi
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pri_get_version in -lpri" >&5
  15326. $as_echo_n "checking for pri_get_version in -lpri... " >&6; }
  15327. if test "${ac_cv_lib_pri_pri_get_version+set}" = set; then :
  15328. $as_echo_n "(cached) " >&6
  15329. else
  15330. ac_check_lib_save_LIBS=$LIBS
  15331. LIBS="-lpri ${pbxlibdir} $LIBS"
  15332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15333. /* end confdefs.h. */
  15334. /* Override any GCC internal prototype to avoid an error.
  15335. Use char because int might match the return type of a GCC
  15336. builtin and then its argument prototype would still apply. */
  15337. #ifdef __cplusplus
  15338. extern "C"
  15339. #endif
  15340. char pri_get_version ();
  15341. int
  15342. main ()
  15343. {
  15344. return pri_get_version ();
  15345. ;
  15346. return 0;
  15347. }
  15348. _ACEOF
  15349. if ac_fn_c_try_link "$LINENO"; then :
  15350. ac_cv_lib_pri_pri_get_version=yes
  15351. else
  15352. ac_cv_lib_pri_pri_get_version=no
  15353. fi
  15354. rm -f core conftest.err conftest.$ac_objext \
  15355. conftest$ac_exeext conftest.$ac_ext
  15356. LIBS=$ac_check_lib_save_LIBS
  15357. fi
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_get_version" >&5
  15359. $as_echo "$ac_cv_lib_pri_pri_get_version" >&6; }
  15360. if test "x$ac_cv_lib_pri_pri_get_version" = x""yes; then :
  15361. AST_PRI_VERSION_FOUND=yes
  15362. else
  15363. AST_PRI_VERSION_FOUND=no
  15364. fi
  15365. if test "${AST_PRI_VERSION_FOUND}" = "yes"; then
  15366. PRI_VERSION_LIB="-lpri "
  15367. PRI_VERSION_HEADER_FOUND="1"
  15368. if test "x${PRI_VERSION_DIR}" != "x"; then
  15369. PRI_VERSION_LIB="${pbxlibdir} ${PRI_VERSION_LIB}"
  15370. PRI_VERSION_INCLUDE="-I${PRI_VERSION_DIR}/include"
  15371. fi
  15372. PRI_VERSION_INCLUDE="${PRI_VERSION_INCLUDE} "
  15373. saved_cppflags="${CPPFLAGS}"
  15374. CPPFLAGS="${CPPFLAGS} ${PRI_VERSION_INCLUDE}"
  15375. if test "xlibpri.h" != "x" ; then
  15376. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  15377. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  15378. PRI_VERSION_HEADER_FOUND=1
  15379. else
  15380. PRI_VERSION_HEADER_FOUND=0
  15381. fi
  15382. fi
  15383. CPPFLAGS="${saved_cppflags}"
  15384. if test "x${PRI_VERSION_HEADER_FOUND}" = "x0" ; then
  15385. if test -n "${PRI_VERSION_MANDATORY}" ;
  15386. then
  15387. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15388. $as_echo "$as_me: ***" >&6;}
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the pri development package installed." >&5
  15390. $as_echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
  15391. if test "x${PRI_VERSION_OPTION}" = "x" ; then
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_VERSION_DESCRIP} support" >&5
  15393. $as_echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support" >&6;}
  15394. else
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&5
  15396. $as_echo "$as_me: *** Please install it to include ${PRI_VERSION_DESCRIP} support, or re-run configure" >&6;}
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
  15398. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
  15399. fi
  15400. exit 1
  15401. fi
  15402. PRI_VERSION_LIB=""
  15403. PRI_VERSION_INCLUDE=""
  15404. PBX_PRI_VERSION=0
  15405. else
  15406. PBX_PRI_VERSION=1
  15407. cat >>confdefs.h <<_ACEOF
  15408. #define HAVE_PRI_VERSION 1
  15409. _ACEOF
  15410. fi
  15411. elif test -n "${PRI_VERSION_MANDATORY}";
  15412. then
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15414. $as_echo "$as_me: ***" >&6;}
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&5
  15416. $as_echo "$as_me: *** The ${PRI_VERSION_DESCRIP} installation on this system appears to be broken." >&6;}
  15417. if test "x${PRI_VERSION_OPTION}" = "x" ; then
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  15419. $as_echo "$as_me: *** Please correct the installation" >&6;}
  15420. else
  15421. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  15422. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&5
  15424. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_VERSION_OPTION}" >&6;}
  15425. fi
  15426. exit 1
  15427. fi
  15428. fi
  15429. if test "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  15430. pbxlibdir=""
  15431. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  15432. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  15433. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  15434. else
  15435. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  15436. fi
  15437. fi
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pri_set_inbanddisconnect in -lpri" >&5
  15439. $as_echo_n "checking for pri_set_inbanddisconnect in -lpri... " >&6; }
  15440. if test "${ac_cv_lib_pri_pri_set_inbanddisconnect+set}" = set; then :
  15441. $as_echo_n "(cached) " >&6
  15442. else
  15443. ac_check_lib_save_LIBS=$LIBS
  15444. LIBS="-lpri ${pbxlibdir} $LIBS"
  15445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15446. /* end confdefs.h. */
  15447. /* Override any GCC internal prototype to avoid an error.
  15448. Use char because int might match the return type of a GCC
  15449. builtin and then its argument prototype would still apply. */
  15450. #ifdef __cplusplus
  15451. extern "C"
  15452. #endif
  15453. char pri_set_inbanddisconnect ();
  15454. int
  15455. main ()
  15456. {
  15457. return pri_set_inbanddisconnect ();
  15458. ;
  15459. return 0;
  15460. }
  15461. _ACEOF
  15462. if ac_fn_c_try_link "$LINENO"; then :
  15463. ac_cv_lib_pri_pri_set_inbanddisconnect=yes
  15464. else
  15465. ac_cv_lib_pri_pri_set_inbanddisconnect=no
  15466. fi
  15467. rm -f core conftest.err conftest.$ac_objext \
  15468. conftest$ac_exeext conftest.$ac_ext
  15469. LIBS=$ac_check_lib_save_LIBS
  15470. fi
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_set_inbanddisconnect" >&5
  15472. $as_echo "$ac_cv_lib_pri_pri_set_inbanddisconnect" >&6; }
  15473. if test "x$ac_cv_lib_pri_pri_set_inbanddisconnect" = x""yes; then :
  15474. AST_PRI_INBANDDISCONNECT_FOUND=yes
  15475. else
  15476. AST_PRI_INBANDDISCONNECT_FOUND=no
  15477. fi
  15478. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  15479. PRI_INBANDDISCONNECT_LIB="-lpri "
  15480. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  15481. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  15482. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} ${PRI_INBANDDISCONNECT_LIB}"
  15483. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  15484. fi
  15485. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  15486. saved_cppflags="${CPPFLAGS}"
  15487. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  15488. if test "xlibpri.h" != "x" ; then
  15489. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  15490. if test "x$ac_cv_header_libpri_h" = x""yes; then :
  15491. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  15492. else
  15493. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  15494. fi
  15495. fi
  15496. CPPFLAGS="${saved_cppflags}"
  15497. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  15498. if test -n "${PRI_INBANDDISCONNECT_MANDATORY}" ;
  15499. then
  15500. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15501. $as_echo "$as_me: ***" >&6;}
  15502. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the pri development package installed." >&5
  15503. $as_echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
  15504. if test "x${PRI_INBANDDISCONNECT_OPTION}" = "x" ; then
  15505. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support" >&5
  15506. $as_echo "$as_me: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support" >&6;}
  15507. else
  15508. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&5
  15509. $as_echo "$as_me: *** Please install it to include ${PRI_INBANDDISCONNECT_DESCRIP} support, or re-run configure" >&6;}
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
  15511. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
  15512. fi
  15513. exit 1
  15514. fi
  15515. PRI_INBANDDISCONNECT_LIB=""
  15516. PRI_INBANDDISCONNECT_INCLUDE=""
  15517. PBX_PRI_INBANDDISCONNECT=0
  15518. else
  15519. PBX_PRI_INBANDDISCONNECT=1
  15520. cat >>confdefs.h <<_ACEOF
  15521. #define HAVE_PRI_INBANDDISCONNECT 1
  15522. _ACEOF
  15523. fi
  15524. elif test -n "${PRI_INBANDDISCONNECT_MANDATORY}";
  15525. then
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15527. $as_echo "$as_me: ***" >&6;}
  15528. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&5
  15529. $as_echo "$as_me: *** The ${PRI_INBANDDISCONNECT_DESCRIP} installation on this system appears to be broken." >&6;}
  15530. if test "x${PRI_INBANDDISCONNECT_OPTION}" = "x" ; then
  15531. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  15532. $as_echo "$as_me: *** Please correct the installation" >&6;}
  15533. else
  15534. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  15535. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&5
  15537. $as_echo "$as_me: *** without explicitly specifying --with-${PRI_INBANDDISCONNECT_OPTION}" >&6;}
  15538. fi
  15539. exit 1
  15540. fi
  15541. fi
  15542. if test "${USE_PWLIB}" != "no"; then
  15543. if test -n "${PWLIB_DIR}"; then
  15544. PWLIBDIR="${PWLIB_DIR}"
  15545. fi
  15546. PWLIB_INCDIR=
  15547. PWLIB_LIBDIR=
  15548. ac_ext=cpp
  15549. ac_cpp='$CXXCPP $CPPFLAGS'
  15550. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15551. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15552. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15553. if test "${PWLIBDIR:-unset}" != "unset" ; then
  15554. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  15555. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  15556. eval as_val=\$$as_ac_Header
  15557. if test "x$as_val" = x""yes; then :
  15558. HAS_PWLIB=1
  15559. fi
  15560. fi
  15561. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  15562. if test "${OPENH323DIR:-unset}" != "unset"; then
  15563. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  15564. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/../pwlib/version.h" "$as_ac_Header" "$ac_includes_default"
  15565. eval as_val=\$$as_ac_Header
  15566. if test "x$as_val" = x""yes; then :
  15567. HAS_PWLIB=1
  15568. fi
  15569. fi
  15570. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  15571. PWLIBDIR="${OPENH323DIR}/../pwlib"
  15572. else
  15573. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  15574. ac_fn_cxx_check_header_mongrel "$LINENO" "${HOME}/pwlib/include/ptlib.h" "$as_ac_Header" "$ac_includes_default"
  15575. eval as_val=\$$as_ac_Header
  15576. if test "x$as_val" = x""yes; then :
  15577. HAS_PWLIB=1
  15578. fi
  15579. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  15580. PWLIBDIR="${HOME}/pwlib"
  15581. else
  15582. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/local/include/ptlib.h" "ac_cv_header__usr_local_include_ptlib_h" "$ac_includes_default"
  15583. if test "x$ac_cv_header__usr_local_include_ptlib_h" = x""yes; then :
  15584. HAS_PWLIB=1
  15585. fi
  15586. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  15587. # Extract the first word of "ptlib-config", so it can be a program name with args.
  15588. set dummy ptlib-config; ac_word=$2
  15589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15590. $as_echo_n "checking for $ac_word... " >&6; }
  15591. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then :
  15592. $as_echo_n "(cached) " >&6
  15593. else
  15594. case $PTLIB_CONFIG in
  15595. [\\/]* | ?:[\\/]*)
  15596. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  15597. ;;
  15598. *)
  15599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15600. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  15601. do
  15602. IFS=$as_save_IFS
  15603. test -z "$as_dir" && as_dir=.
  15604. for ac_exec_ext in '' $ac_executable_extensions; do
  15605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15606. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15608. break 2
  15609. fi
  15610. done
  15611. done
  15612. IFS=$as_save_IFS
  15613. ;;
  15614. esac
  15615. fi
  15616. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  15617. if test -n "$PTLIB_CONFIG"; then
  15618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  15619. $as_echo "$PTLIB_CONFIG" >&6; }
  15620. else
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15622. $as_echo "no" >&6; }
  15623. fi
  15624. PWLIB_INCDIR="/usr/local/include"
  15625. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  15626. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  15627. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  15628. fi
  15629. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  15630. if test "x$LIB64" != "x"; then
  15631. PWLIB_LIBDIR="/usr/local/lib64"
  15632. else
  15633. PWLIB_LIBDIR="/usr/local/lib"
  15634. fi
  15635. fi
  15636. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  15637. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  15638. else
  15639. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/include/ptlib.h" "ac_cv_header__usr_include_ptlib_h" "$ac_includes_default"
  15640. if test "x$ac_cv_header__usr_include_ptlib_h" = x""yes; then :
  15641. HAS_PWLIB=1
  15642. fi
  15643. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  15644. # Extract the first word of "ptlib-config", so it can be a program name with args.
  15645. set dummy ptlib-config; ac_word=$2
  15646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15647. $as_echo_n "checking for $ac_word... " >&6; }
  15648. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then :
  15649. $as_echo_n "(cached) " >&6
  15650. else
  15651. case $PTLIB_CONFIG in
  15652. [\\/]* | ?:[\\/]*)
  15653. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  15654. ;;
  15655. *)
  15656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15657. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  15658. do
  15659. IFS=$as_save_IFS
  15660. test -z "$as_dir" && as_dir=.
  15661. for ac_exec_ext in '' $ac_executable_extensions; do
  15662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15663. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15665. break 2
  15666. fi
  15667. done
  15668. done
  15669. IFS=$as_save_IFS
  15670. ;;
  15671. esac
  15672. fi
  15673. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  15674. if test -n "$PTLIB_CONFIG"; then
  15675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  15676. $as_echo "$PTLIB_CONFIG" >&6; }
  15677. else
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15679. $as_echo "no" >&6; }
  15680. fi
  15681. PWLIB_INCDIR="/usr/include"
  15682. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  15683. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  15684. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  15685. fi
  15686. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  15687. if test "x$LIB64" != "x"; then
  15688. PWLIB_LIBDIR="/usr/lib64"
  15689. else
  15690. PWLIB_LIBDIR="/usr/lib"
  15691. fi
  15692. fi
  15693. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  15694. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  15695. fi
  15696. fi
  15697. fi
  15698. fi
  15699. fi
  15700. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  15701. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  15702. # exit
  15703. #fi
  15704. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  15705. if test "${PWLIBDIR:-unset}" = "unset" ; then
  15706. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  15707. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  15708. else
  15709. echo "Cannot find ptlib-config - please install and try again"
  15710. exit
  15711. fi
  15712. fi
  15713. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  15714. PWLIBDIR="/usr/share/pwlib"
  15715. PWLIB_INCDIR="/usr/include"
  15716. if test "x$LIB64" != "x"; then
  15717. PWLIB_LIBDIR="/usr/lib64"
  15718. else
  15719. PWLIB_LIBDIR="/usr/lib"
  15720. fi
  15721. fi
  15722. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  15723. PWLIBDIR="/usr/local/share/pwlib"
  15724. PWLIB_INCDIR="/usr/local/include"
  15725. if test "x$LIB64" != "x"; then
  15726. PWLIB_LIBDIR="/usr/local/lib64"
  15727. else
  15728. PWLIB_LIBDIR="/usr/local/lib"
  15729. fi
  15730. fi
  15731. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  15732. PWLIB_INCDIR="${PWLIBDIR}/include"
  15733. fi
  15734. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  15735. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  15736. fi
  15737. fi
  15738. ac_ext=c
  15739. ac_cpp='$CPP $CPPFLAGS'
  15740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15743. if test "xP[WT]LIB_VERSION" != "x"; then
  15744. VNAME="P[WT]LIB_VERSION"
  15745. else
  15746. VNAME="PWLIB_VERSION"
  15747. fi
  15748. if test "${HAS_PWLIB:-unset}" != "unset"; then
  15749. PWLIB_VERSION=`grep "$VNAME" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  15750. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  15751. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  15752. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  15753. let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
  15754. let PWLIB_REQ=1*10000+9*100+2
  15755. if test "x" = "x"; then
  15756. let PWLIB_MAX=9999999
  15757. else
  15758. let PWLIB_MAX=*10000+*100+
  15759. fi
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  15761. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  15762. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15764. $as_echo "no" >&6; }
  15765. unset HAS_PWLIB
  15766. else
  15767. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15769. $as_echo "no" >&6; }
  15770. unset HAS_PWLIB
  15771. else
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15773. $as_echo "yes" >&6; }
  15774. fi
  15775. fi
  15776. fi
  15777. if test "${HAS_PWLIB:-unset}" != "unset"; then
  15778. PWLIB_OSTYPE=
  15779. case "$host_os" in
  15780. linux*) PWLIB_OSTYPE=linux ;
  15781. ;;
  15782. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  15783. ;;
  15784. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  15785. ENDLDLIBS="-lossaudio" ;
  15786. ;;
  15787. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  15788. ENDLDLIBS="-lossaudio" ;
  15789. ;;
  15790. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  15791. ;;
  15792. darwin* ) PWLIB_OSTYPE=Darwin ;
  15793. ;;
  15794. beos*) PWLIB_OSTYPE=beos ;
  15795. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  15796. ;;
  15797. cygwin*) PWLIB_OSTYPE=cygwin ;
  15798. ;;
  15799. mingw*) PWLIB_OSTYPE=mingw ;
  15800. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  15801. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  15802. ;;
  15803. * ) PWLIB_OSTYPE="$host_os" ;
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  15805. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  15806. ;;
  15807. esac
  15808. PWLIB_MACHTYPE=
  15809. case "$host_cpu" in
  15810. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  15811. ;;
  15812. x86_64) PWLIB_MACHTYPE=x86_64 ;
  15813. P_64BIT=1 ;
  15814. LIB64=1 ;
  15815. ;;
  15816. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  15817. P_64BIT=1 ;
  15818. ;;
  15819. sparc ) PWLIB_MACHTYPE=sparc ;
  15820. ;;
  15821. powerpc ) PWLIB_MACHTYPE=ppc ;
  15822. ;;
  15823. ppc ) PWLIB_MACHTYPE=ppc ;
  15824. ;;
  15825. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  15826. P_64BIT=1 ;
  15827. LIB64=1 ;
  15828. ;;
  15829. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  15830. P_64BIT=1 ;
  15831. LIB64=1 ;
  15832. ;;
  15833. ia64) PWLIB_MACHTYPE=ia64 ;
  15834. P_64BIT=1 ;
  15835. ;;
  15836. s390x) PWLIB_MACHTYPE=s390x ;
  15837. P_64BIT=1 ;
  15838. LIB64=1 ;
  15839. ;;
  15840. s390) PWLIB_MACHTYPE=s390 ;
  15841. ;;
  15842. * ) PWLIB_MACHTYPE="$host_cpu";
  15843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  15844. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  15845. esac
  15846. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  15847. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  15848. if test "${HAS_PWLIB:-unset}" != "unset"; then
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PWLib installation validity" >&5
  15850. $as_echo_n "checking PWLib installation validity... " >&6; }
  15851. saved_cppflags="${CPPFLAGS}"
  15852. saved_libs="${LIBS}"
  15853. if test "${PWLIB_LIB:-unset}" != "unset"; then
  15854. LIBS="${LIBS} ${PWLIB_LIB} "
  15855. else
  15856. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  15857. fi
  15858. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  15859. ac_ext=cpp
  15860. ac_cpp='$CXXCPP $CPPFLAGS'
  15861. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15862. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15863. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15865. /* end confdefs.h. */
  15866. #include "ptlib.h"
  15867. int
  15868. main ()
  15869. {
  15870. int q = (int) PTime::IsDaylightSavings();
  15871. ;
  15872. return 0;
  15873. }
  15874. _ACEOF
  15875. if ac_fn_cxx_try_link "$LINENO"; then :
  15876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15877. $as_echo "yes" >&6; }
  15878. ac_cv_lib_PWLIB="yes"
  15879. else
  15880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15881. $as_echo "no" >&6; }
  15882. ac_cv_lib_PWLIB="no"
  15883. fi
  15884. rm -f core conftest.err conftest.$ac_objext \
  15885. conftest$ac_exeext conftest.$ac_ext
  15886. ac_ext=c
  15887. ac_cpp='$CPP $CPPFLAGS'
  15888. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15889. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15890. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15891. LIBS="${saved_libs}"
  15892. CPPFLAGS="${saved_cppflags}"
  15893. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  15894. if test "${PWLIB_LIB:-undef}" = "undef"; then
  15895. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  15896. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  15897. else
  15898. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  15899. fi
  15900. fi
  15901. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  15902. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  15903. fi
  15904. PBX_PWLIB=1
  15905. $as_echo "#define HAVE_PWLIB 1" >>confdefs.h
  15906. fi
  15907. fi
  15908. fi
  15909. fi
  15910. if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a -n "${PWLIB_MANDATORY}"; then
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15912. $as_echo "$as_me: ***" >&6;}
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PWLIB installation on this system appears to be broken." >&5
  15914. $as_echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
  15915. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  15916. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  15917. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-pwlib" >&5
  15918. $as_echo "$as_me: *** including --without-pwlib" >&6;}
  15919. exit 1
  15920. fi
  15921. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  15922. if test -n "${OPENH323_DIR}"; then
  15923. OPENH323DIR="${OPENH323_DIR}"
  15924. fi
  15925. OPENH323_INCDIR=
  15926. OPENH323_LIBDIR=
  15927. ac_ext=cpp
  15928. ac_cpp='$CXXCPP $CPPFLAGS'
  15929. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15930. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15931. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15932. if test "${OPENH323DIR:-unset}" != "unset" ; then
  15933. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  15934. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  15935. eval as_val=\$$as_ac_Header
  15936. if test "x$as_val" = x""yes; then :
  15937. HAS_OPENH323=1
  15938. fi
  15939. fi
  15940. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  15941. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  15942. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/../openh323/version.h" "$as_ac_Header" "$ac_includes_default"
  15943. eval as_val=\$$as_ac_Header
  15944. if test "x$as_val" = x""yes; then :
  15945. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  15946. fi
  15947. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  15948. OPENH323DIR="${PWLIBDIR}/../openh323"
  15949. saved_cppflags="${CPPFLAGS}"
  15950. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  15951. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  15952. ac_fn_cxx_check_header_compile "$LINENO" "${OPENH323DIR}/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  15953. "
  15954. eval as_val=\$$as_ac_Header
  15955. if test "x$as_val" = x""yes; then :
  15956. else
  15957. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  15958. fi
  15959. CPPFLAGS="${saved_cppflags}"
  15960. else
  15961. saved_cppflags="${CPPFLAGS}"
  15962. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  15963. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  15964. ac_fn_cxx_check_header_compile "$LINENO" "${HOME}/openh323/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  15965. "
  15966. eval as_val=\$$as_ac_Header
  15967. if test "x$as_val" = x""yes; then :
  15968. HAS_OPENH323=1
  15969. fi
  15970. CPPFLAGS="${saved_cppflags}"
  15971. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  15972. OPENH323DIR="${HOME}/openh323"
  15973. else
  15974. saved_cppflags="${CPPFLAGS}"
  15975. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  15976. ac_fn_cxx_check_header_compile "$LINENO" "/usr/local/include/openh323/h323.h" "ac_cv_header__usr_local_include_openh323_h323_h" "#include <ptlib.h>
  15977. "
  15978. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = x""yes; then :
  15979. HAS_OPENH323=1
  15980. fi
  15981. CPPFLAGS="${saved_cppflags}"
  15982. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  15983. OPENH323DIR="/usr/local/share/openh323"
  15984. OPENH323_INCDIR="/usr/local/include/openh323"
  15985. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  15986. OPENH323_LIBDIR="/usr/local/lib64"
  15987. else
  15988. OPENH323_LIBDIR="/usr/local/lib"
  15989. fi
  15990. else
  15991. saved_cppflags="${CPPFLAGS}"
  15992. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  15993. ac_fn_cxx_check_header_compile "$LINENO" "/usr/include/openh323/h323.h" "ac_cv_header__usr_include_openh323_h323_h" "#include <ptlib.h>
  15994. "
  15995. if test "x$ac_cv_header__usr_include_openh323_h323_h" = x""yes; then :
  15996. HAS_OPENH323=1
  15997. fi
  15998. CPPFLAGS="${saved_cppflags}"
  15999. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  16000. OPENH323DIR="/usr/share/openh323"
  16001. OPENH323_INCDIR="/usr/include/openh323"
  16002. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  16003. OPENH323_LIBDIR="/usr/lib64"
  16004. else
  16005. OPENH323_LIBDIR="/usr/lib"
  16006. fi
  16007. fi
  16008. fi
  16009. fi
  16010. fi
  16011. fi
  16012. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  16013. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  16014. OPENH323_INCDIR="${OPENH323DIR}/include"
  16015. fi
  16016. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  16017. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  16018. fi
  16019. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  16020. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  16021. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  16022. fi
  16023. ac_ext=c
  16024. ac_cpp='$CPP $CPPFLAGS'
  16025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16028. if test "x" != "x"; then
  16029. VNAME=""
  16030. else
  16031. VNAME="OPENH323_VERSION"
  16032. fi
  16033. if test "${HAS_OPENH323:-unset}" != "unset"; then
  16034. OPENH323_VERSION=`grep "$VNAME" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  16035. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  16036. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  16037. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  16038. let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
  16039. let OPENH323_REQ=1*10000+17*100+3
  16040. if test "x0" = "x"; then
  16041. let OPENH323_MAX=9999999
  16042. else
  16043. let OPENH323_MAX=1*10000+19*100+0
  16044. fi
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  16046. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  16047. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  16048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16049. $as_echo "no" >&6; }
  16050. unset HAS_OPENH323
  16051. else
  16052. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16054. $as_echo "no" >&6; }
  16055. unset HAS_OPENH323
  16056. else
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16058. $as_echo "yes" >&6; }
  16059. fi
  16060. fi
  16061. fi
  16062. if test "${HAS_OPENH323:-unset}" != "unset"; then
  16063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 build option" >&5
  16064. $as_echo_n "checking OpenH323 build option... " >&6; }
  16065. OPENH323_SUFFIX=
  16066. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  16067. for pfx in $prefixes; do
  16068. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  16069. if test -z "$files"; then
  16070. # check the default location
  16071. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  16072. fi
  16073. libfile=
  16074. if test -n "$files"; then
  16075. for f in $files; do
  16076. if test -f $f -a ! -L $f; then
  16077. libfile=`basename $f`
  16078. break;
  16079. fi
  16080. done
  16081. fi
  16082. if test -n "$libfile"; then
  16083. OPENH323_PREFIX=$pfx
  16084. break;
  16085. fi
  16086. done
  16087. if test "${libfile:-unset}" != "unset"; then
  16088. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  16089. fi
  16090. case "${OPENH323_SUFFIX}" in
  16091. n)
  16092. OPENH323_BUILD="notrace";;
  16093. r)
  16094. OPENH323_BUILD="opt";;
  16095. d)
  16096. OPENH323_BUILD="debug";;
  16097. *)
  16098. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  16099. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  16100. if test "x$notrace" = "x"; then
  16101. notrace="0"
  16102. fi
  16103. if test "$notrace" -ne 0; then
  16104. OPENH323_BUILD="notrace"
  16105. else
  16106. OPENH323_BUILD="opt"
  16107. fi
  16108. OPENH323_LIB="-l${OPENH323_PREFIX}"
  16109. else
  16110. OPENH323_BUILD="notrace"
  16111. fi
  16112. ;;
  16113. esac
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENH323_BUILD}" >&5
  16115. $as_echo "${OPENH323_BUILD}" >&6; }
  16116. fi
  16117. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  16118. if test "${HAS_OPENH323:-unset}" != "unset"; then
  16119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 installation validity" >&5
  16120. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  16121. saved_cppflags="${CPPFLAGS}"
  16122. saved_libs="${LIBS}"
  16123. if test "${OPENH323_LIB:-unset}" != "unset"; then
  16124. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  16125. else
  16126. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  16127. fi
  16128. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  16129. ac_ext=cpp
  16130. ac_cpp='$CXXCPP $CPPFLAGS'
  16131. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16132. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16133. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16135. /* end confdefs.h. */
  16136. #include "ptlib.h"
  16137. #include "h323.h"
  16138. #include "h323ep.h"
  16139. int
  16140. main ()
  16141. {
  16142. H323EndPoint ep = H323EndPoint();
  16143. ;
  16144. return 0;
  16145. }
  16146. _ACEOF
  16147. if ac_fn_cxx_try_link "$LINENO"; then :
  16148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16149. $as_echo "yes" >&6; }
  16150. ac_cv_lib_OPENH323="yes"
  16151. else
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16153. $as_echo "no" >&6; }
  16154. ac_cv_lib_OPENH323="no"
  16155. fi
  16156. rm -f core conftest.err conftest.$ac_objext \
  16157. conftest$ac_exeext conftest.$ac_ext
  16158. ac_ext=c
  16159. ac_cpp='$CPP $CPPFLAGS'
  16160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16163. LIBS="${saved_libs}"
  16164. CPPFLAGS="${saved_cppflags}"
  16165. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  16166. if test "${OPENH323_LIB:-undef}" = "undef"; then
  16167. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  16168. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  16169. else
  16170. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  16171. fi
  16172. fi
  16173. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  16174. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  16175. fi
  16176. PBX_OPENH323=1
  16177. $as_echo "#define HAVE_OPENH323 1" >>confdefs.h
  16178. fi
  16179. fi
  16180. fi
  16181. if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a -n "${OPENH323_MANDATORY}"; then
  16182. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16183. $as_echo "$as_me: ***" >&6;}
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The OPENH323 installation on this system appears to be broken." >&5
  16185. $as_echo "$as_me: *** The OPENH323 installation on this system appears to be broken." >&6;}
  16186. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16187. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-h323" >&5
  16189. $as_echo "$as_me: *** including --without-h323" >&6;}
  16190. exit 1
  16191. fi
  16192. if test "${USE_RADIUS}" != "no"; then
  16193. pbxlibdir=""
  16194. if test "x${RADIUS_DIR}" != "x"; then
  16195. if test -d ${RADIUS_DIR}/lib; then
  16196. pbxlibdir="-L${RADIUS_DIR}/lib"
  16197. else
  16198. pbxlibdir="-L${RADIUS_DIR}"
  16199. fi
  16200. fi
  16201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient-ng" >&5
  16202. $as_echo_n "checking for rc_read_config in -lradiusclient-ng... " >&6; }
  16203. if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then :
  16204. $as_echo_n "(cached) " >&6
  16205. else
  16206. ac_check_lib_save_LIBS=$LIBS
  16207. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  16208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16209. /* end confdefs.h. */
  16210. /* Override any GCC internal prototype to avoid an error.
  16211. Use char because int might match the return type of a GCC
  16212. builtin and then its argument prototype would still apply. */
  16213. #ifdef __cplusplus
  16214. extern "C"
  16215. #endif
  16216. char rc_read_config ();
  16217. int
  16218. main ()
  16219. {
  16220. return rc_read_config ();
  16221. ;
  16222. return 0;
  16223. }
  16224. _ACEOF
  16225. if ac_fn_c_try_link "$LINENO"; then :
  16226. ac_cv_lib_radiusclient_ng_rc_read_config=yes
  16227. else
  16228. ac_cv_lib_radiusclient_ng_rc_read_config=no
  16229. fi
  16230. rm -f core conftest.err conftest.$ac_objext \
  16231. conftest$ac_exeext conftest.$ac_ext
  16232. LIBS=$ac_check_lib_save_LIBS
  16233. fi
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
  16235. $as_echo "$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
  16236. if test "x$ac_cv_lib_radiusclient_ng_rc_read_config" = x""yes; then :
  16237. AST_RADIUS_FOUND=yes
  16238. else
  16239. AST_RADIUS_FOUND=no
  16240. fi
  16241. if test "${AST_RADIUS_FOUND}" = "yes"; then
  16242. RADIUS_LIB="-lradiusclient-ng "
  16243. RADIUS_HEADER_FOUND="1"
  16244. if test "x${RADIUS_DIR}" != "x"; then
  16245. RADIUS_LIB="${pbxlibdir} ${RADIUS_LIB}"
  16246. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  16247. fi
  16248. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  16249. saved_cppflags="${CPPFLAGS}"
  16250. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  16251. if test "xradiusclient-ng.h" != "x" ; then
  16252. ac_fn_c_check_header_mongrel "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
  16253. if test "x$ac_cv_header_radiusclient_ng_h" = x""yes; then :
  16254. RADIUS_HEADER_FOUND=1
  16255. else
  16256. RADIUS_HEADER_FOUND=0
  16257. fi
  16258. fi
  16259. CPPFLAGS="${saved_cppflags}"
  16260. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  16261. if test -n "${RADIUS_MANDATORY}" ;
  16262. then
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16264. $as_echo "$as_me: ***" >&6;}
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the radiusclient-ng development package installed." >&5
  16266. $as_echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
  16267. if test "x${RADIUS_OPTION}" = "x" ; then
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${RADIUS_DESCRIP} support" >&5
  16269. $as_echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support" >&6;}
  16270. else
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&5
  16272. $as_echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure" >&6;}
  16273. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
  16274. $as_echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
  16275. fi
  16276. exit 1
  16277. fi
  16278. RADIUS_LIB=""
  16279. RADIUS_INCLUDE=""
  16280. PBX_RADIUS=0
  16281. else
  16282. PBX_RADIUS=1
  16283. cat >>confdefs.h <<_ACEOF
  16284. #define HAVE_RADIUS 1
  16285. _ACEOF
  16286. fi
  16287. elif test -n "${RADIUS_MANDATORY}";
  16288. then
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16290. $as_echo "$as_me: ***" >&6;}
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
  16292. $as_echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
  16293. if test "x${RADIUS_OPTION}" = "x" ; then
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  16295. $as_echo "$as_me: *** Please correct the installation" >&6;}
  16296. else
  16297. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16298. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
  16300. $as_echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
  16301. fi
  16302. exit 1
  16303. fi
  16304. fi
  16305. if test "${USE_SPEEX}" != "no"; then
  16306. pbxlibdir=""
  16307. if test "x${SPEEX_DIR}" != "x"; then
  16308. if test -d ${SPEEX_DIR}/lib; then
  16309. pbxlibdir="-L${SPEEX_DIR}/lib"
  16310. else
  16311. pbxlibdir="-L${SPEEX_DIR}"
  16312. fi
  16313. fi
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_encode in -lspeex" >&5
  16315. $as_echo_n "checking for speex_encode in -lspeex... " >&6; }
  16316. if test "${ac_cv_lib_speex_speex_encode+set}" = set; then :
  16317. $as_echo_n "(cached) " >&6
  16318. else
  16319. ac_check_lib_save_LIBS=$LIBS
  16320. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  16321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16322. /* end confdefs.h. */
  16323. /* Override any GCC internal prototype to avoid an error.
  16324. Use char because int might match the return type of a GCC
  16325. builtin and then its argument prototype would still apply. */
  16326. #ifdef __cplusplus
  16327. extern "C"
  16328. #endif
  16329. char speex_encode ();
  16330. int
  16331. main ()
  16332. {
  16333. return speex_encode ();
  16334. ;
  16335. return 0;
  16336. }
  16337. _ACEOF
  16338. if ac_fn_c_try_link "$LINENO"; then :
  16339. ac_cv_lib_speex_speex_encode=yes
  16340. else
  16341. ac_cv_lib_speex_speex_encode=no
  16342. fi
  16343. rm -f core conftest.err conftest.$ac_objext \
  16344. conftest$ac_exeext conftest.$ac_ext
  16345. LIBS=$ac_check_lib_save_LIBS
  16346. fi
  16347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_encode" >&5
  16348. $as_echo "$ac_cv_lib_speex_speex_encode" >&6; }
  16349. if test "x$ac_cv_lib_speex_speex_encode" = x""yes; then :
  16350. AST_SPEEX_FOUND=yes
  16351. else
  16352. AST_SPEEX_FOUND=no
  16353. fi
  16354. if test "${AST_SPEEX_FOUND}" = "yes"; then
  16355. SPEEX_LIB="-lspeex -lm"
  16356. SPEEX_HEADER_FOUND="1"
  16357. if test "x${SPEEX_DIR}" != "x"; then
  16358. SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
  16359. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  16360. fi
  16361. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  16362. saved_cppflags="${CPPFLAGS}"
  16363. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  16364. if test "xspeex/speex.h" != "x" ; then
  16365. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  16366. if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
  16367. SPEEX_HEADER_FOUND=1
  16368. else
  16369. SPEEX_HEADER_FOUND=0
  16370. fi
  16371. fi
  16372. CPPFLAGS="${saved_cppflags}"
  16373. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  16374. if test -n "${SPEEX_MANDATORY}" ;
  16375. then
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16377. $as_echo "$as_me: ***" >&6;}
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the speex development package installed." >&5
  16379. $as_echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
  16380. if test "x${SPEEX_OPTION}" = "x" ; then
  16381. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SPEEX_DESCRIP} support" >&5
  16382. $as_echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support" >&6;}
  16383. else
  16384. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&5
  16385. $as_echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure" >&6;}
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
  16387. $as_echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
  16388. fi
  16389. exit 1
  16390. fi
  16391. SPEEX_LIB=""
  16392. SPEEX_INCLUDE=""
  16393. PBX_SPEEX=0
  16394. else
  16395. PBX_SPEEX=1
  16396. cat >>confdefs.h <<_ACEOF
  16397. #define HAVE_SPEEX 1
  16398. _ACEOF
  16399. fi
  16400. elif test -n "${SPEEX_MANDATORY}";
  16401. then
  16402. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16403. $as_echo "$as_me: ***" >&6;}
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
  16405. $as_echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
  16406. if test "x${SPEEX_OPTION}" = "x" ; then
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  16408. $as_echo "$as_me: *** Please correct the installation" >&6;}
  16409. else
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16411. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16412. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
  16413. $as_echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
  16414. fi
  16415. exit 1
  16416. fi
  16417. fi
  16418. # See if the main speex library contains the preprocess functions
  16419. if test "${USE_SPEEX_PREPROCESS}" != "no"; then
  16420. pbxlibdir=""
  16421. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  16422. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  16423. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  16424. else
  16425. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  16426. fi
  16427. fi
  16428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_preprocess_ctl in -lspeex" >&5
  16429. $as_echo_n "checking for speex_preprocess_ctl in -lspeex... " >&6; }
  16430. if test "${ac_cv_lib_speex_speex_preprocess_ctl+set}" = set; then :
  16431. $as_echo_n "(cached) " >&6
  16432. else
  16433. ac_check_lib_save_LIBS=$LIBS
  16434. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  16435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16436. /* end confdefs.h. */
  16437. /* Override any GCC internal prototype to avoid an error.
  16438. Use char because int might match the return type of a GCC
  16439. builtin and then its argument prototype would still apply. */
  16440. #ifdef __cplusplus
  16441. extern "C"
  16442. #endif
  16443. char speex_preprocess_ctl ();
  16444. int
  16445. main ()
  16446. {
  16447. return speex_preprocess_ctl ();
  16448. ;
  16449. return 0;
  16450. }
  16451. _ACEOF
  16452. if ac_fn_c_try_link "$LINENO"; then :
  16453. ac_cv_lib_speex_speex_preprocess_ctl=yes
  16454. else
  16455. ac_cv_lib_speex_speex_preprocess_ctl=no
  16456. fi
  16457. rm -f core conftest.err conftest.$ac_objext \
  16458. conftest$ac_exeext conftest.$ac_ext
  16459. LIBS=$ac_check_lib_save_LIBS
  16460. fi
  16461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
  16462. $as_echo "$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
  16463. if test "x$ac_cv_lib_speex_speex_preprocess_ctl" = x""yes; then :
  16464. AST_SPEEX_PREPROCESS_FOUND=yes
  16465. else
  16466. AST_SPEEX_PREPROCESS_FOUND=no
  16467. fi
  16468. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  16469. SPEEX_PREPROCESS_LIB="-lspeex -lm"
  16470. SPEEX_PREPROCESS_HEADER_FOUND="1"
  16471. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  16472. SPEEX_PREPROCESS_LIB="${pbxlibdir} ${SPEEX_PREPROCESS_LIB}"
  16473. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  16474. fi
  16475. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  16476. saved_cppflags="${CPPFLAGS}"
  16477. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  16478. if test "xspeex/speex.h" != "x" ; then
  16479. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  16480. if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
  16481. SPEEX_PREPROCESS_HEADER_FOUND=1
  16482. else
  16483. SPEEX_PREPROCESS_HEADER_FOUND=0
  16484. fi
  16485. fi
  16486. CPPFLAGS="${saved_cppflags}"
  16487. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  16488. if test -n "${SPEEX_PREPROCESS_MANDATORY}" ;
  16489. then
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16491. $as_echo "$as_me: ***" >&6;}
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the speex development package installed." >&5
  16493. $as_echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
  16494. if test "x${SPEEX_PREPROCESS_OPTION}" = "x" ; then
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support" >&5
  16496. $as_echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support" >&6;}
  16497. else
  16498. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&5
  16499. $as_echo "$as_me: *** Please install it to include ${SPEEX_PREPROCESS_DESCRIP} support, or re-run configure" >&6;}
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
  16501. $as_echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
  16502. fi
  16503. exit 1
  16504. fi
  16505. SPEEX_PREPROCESS_LIB=""
  16506. SPEEX_PREPROCESS_INCLUDE=""
  16507. PBX_SPEEX_PREPROCESS=0
  16508. else
  16509. PBX_SPEEX_PREPROCESS=1
  16510. cat >>confdefs.h <<_ACEOF
  16511. #define HAVE_SPEEX_PREPROCESS 1
  16512. _ACEOF
  16513. fi
  16514. elif test -n "${SPEEX_PREPROCESS_MANDATORY}";
  16515. then
  16516. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16517. $as_echo "$as_me: ***" >&6;}
  16518. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&5
  16519. $as_echo "$as_me: *** The ${SPEEX_PREPROCESS_DESCRIP} installation on this system appears to be broken." >&6;}
  16520. if test "x${SPEEX_PREPROCESS_OPTION}" = "x" ; then
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  16522. $as_echo "$as_me: *** Please correct the installation" >&6;}
  16523. else
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16525. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16526. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&5
  16527. $as_echo "$as_me: *** without explicitly specifying --with-${SPEEX_PREPROCESS_OPTION}" >&6;}
  16528. fi
  16529. exit 1
  16530. fi
  16531. fi
  16532. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  16533. PBX_SPEEX_PREPROCESS=1
  16534. fi
  16535. if test "${USE_SPEEXDSP}" != "no"; then
  16536. pbxlibdir=""
  16537. if test "x${SPEEXDSP_DIR}" != "x"; then
  16538. if test -d ${SPEEXDSP_DIR}/lib; then
  16539. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  16540. else
  16541. pbxlibdir="-L${SPEEXDSP_DIR}"
  16542. fi
  16543. fi
  16544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_preprocess_ctl in -lspeexdsp" >&5
  16545. $as_echo_n "checking for speex_preprocess_ctl in -lspeexdsp... " >&6; }
  16546. if test "${ac_cv_lib_speexdsp_speex_preprocess_ctl+set}" = set; then :
  16547. $as_echo_n "(cached) " >&6
  16548. else
  16549. ac_check_lib_save_LIBS=$LIBS
  16550. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  16551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16552. /* end confdefs.h. */
  16553. /* Override any GCC internal prototype to avoid an error.
  16554. Use char because int might match the return type of a GCC
  16555. builtin and then its argument prototype would still apply. */
  16556. #ifdef __cplusplus
  16557. extern "C"
  16558. #endif
  16559. char speex_preprocess_ctl ();
  16560. int
  16561. main ()
  16562. {
  16563. return speex_preprocess_ctl ();
  16564. ;
  16565. return 0;
  16566. }
  16567. _ACEOF
  16568. if ac_fn_c_try_link "$LINENO"; then :
  16569. ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
  16570. else
  16571. ac_cv_lib_speexdsp_speex_preprocess_ctl=no
  16572. fi
  16573. rm -f core conftest.err conftest.$ac_objext \
  16574. conftest$ac_exeext conftest.$ac_ext
  16575. LIBS=$ac_check_lib_save_LIBS
  16576. fi
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
  16578. $as_echo "$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
  16579. if test "x$ac_cv_lib_speexdsp_speex_preprocess_ctl" = x""yes; then :
  16580. AST_SPEEXDSP_FOUND=yes
  16581. else
  16582. AST_SPEEXDSP_FOUND=no
  16583. fi
  16584. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  16585. SPEEXDSP_LIB="-lspeexdsp -lm"
  16586. SPEEXDSP_HEADER_FOUND="1"
  16587. if test "x${SPEEXDSP_DIR}" != "x"; then
  16588. SPEEXDSP_LIB="${pbxlibdir} ${SPEEXDSP_LIB}"
  16589. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  16590. fi
  16591. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  16592. saved_cppflags="${CPPFLAGS}"
  16593. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  16594. if test "xspeex/speex.h" != "x" ; then
  16595. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  16596. if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
  16597. SPEEXDSP_HEADER_FOUND=1
  16598. else
  16599. SPEEXDSP_HEADER_FOUND=0
  16600. fi
  16601. fi
  16602. CPPFLAGS="${saved_cppflags}"
  16603. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  16604. if test -n "${SPEEXDSP_MANDATORY}" ;
  16605. then
  16606. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16607. $as_echo "$as_me: ***" >&6;}
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the speexdsp development package installed." >&5
  16609. $as_echo "$as_me: *** It appears that you do not have the speexdsp development package installed." >&6;}
  16610. if test "x${SPEEXDSP_OPTION}" = "x" ; then
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SPEEXDSP_DESCRIP} support" >&5
  16612. $as_echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support" >&6;}
  16613. else
  16614. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&5
  16615. $as_echo "$as_me: *** Please install it to include ${SPEEXDSP_DESCRIP} support, or re-run configure" >&6;}
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
  16617. $as_echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
  16618. fi
  16619. exit 1
  16620. fi
  16621. SPEEXDSP_LIB=""
  16622. SPEEXDSP_INCLUDE=""
  16623. PBX_SPEEXDSP=0
  16624. else
  16625. PBX_SPEEXDSP=1
  16626. cat >>confdefs.h <<_ACEOF
  16627. #define HAVE_SPEEXDSP 1
  16628. _ACEOF
  16629. fi
  16630. elif test -n "${SPEEXDSP_MANDATORY}";
  16631. then
  16632. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16633. $as_echo "$as_me: ***" >&6;}
  16634. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&5
  16635. $as_echo "$as_me: *** The ${SPEEXDSP_DESCRIP} installation on this system appears to be broken." >&6;}
  16636. if test "x${SPEEXDSP_OPTION}" = "x" ; then
  16637. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  16638. $as_echo "$as_me: *** Please correct the installation" >&6;}
  16639. else
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16641. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16642. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&5
  16643. $as_echo "$as_me: *** without explicitly specifying --with-${SPEEXDSP_OPTION}" >&6;}
  16644. fi
  16645. exit 1
  16646. fi
  16647. fi
  16648. if test "${PBX_SPEEXDSP}" = 1; then
  16649. PBX_SPEEX_PREPROCESS=1
  16650. fi
  16651. if test "${USE_SQLITE}" != "no"; then
  16652. pbxlibdir=""
  16653. if test "x${SQLITE_DIR}" != "x"; then
  16654. if test -d ${SQLITE_DIR}/lib; then
  16655. pbxlibdir="-L${SQLITE_DIR}/lib"
  16656. else
  16657. pbxlibdir="-L${SQLITE_DIR}"
  16658. fi
  16659. fi
  16660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_exec in -lsqlite" >&5
  16661. $as_echo_n "checking for sqlite_exec in -lsqlite... " >&6; }
  16662. if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then :
  16663. $as_echo_n "(cached) " >&6
  16664. else
  16665. ac_check_lib_save_LIBS=$LIBS
  16666. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  16667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16668. /* end confdefs.h. */
  16669. /* Override any GCC internal prototype to avoid an error.
  16670. Use char because int might match the return type of a GCC
  16671. builtin and then its argument prototype would still apply. */
  16672. #ifdef __cplusplus
  16673. extern "C"
  16674. #endif
  16675. char sqlite_exec ();
  16676. int
  16677. main ()
  16678. {
  16679. return sqlite_exec ();
  16680. ;
  16681. return 0;
  16682. }
  16683. _ACEOF
  16684. if ac_fn_c_try_link "$LINENO"; then :
  16685. ac_cv_lib_sqlite_sqlite_exec=yes
  16686. else
  16687. ac_cv_lib_sqlite_sqlite_exec=no
  16688. fi
  16689. rm -f core conftest.err conftest.$ac_objext \
  16690. conftest$ac_exeext conftest.$ac_ext
  16691. LIBS=$ac_check_lib_save_LIBS
  16692. fi
  16693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
  16694. $as_echo "$ac_cv_lib_sqlite_sqlite_exec" >&6; }
  16695. if test "x$ac_cv_lib_sqlite_sqlite_exec" = x""yes; then :
  16696. AST_SQLITE_FOUND=yes
  16697. else
  16698. AST_SQLITE_FOUND=no
  16699. fi
  16700. if test "${AST_SQLITE_FOUND}" = "yes"; then
  16701. SQLITE_LIB="-lsqlite "
  16702. SQLITE_HEADER_FOUND="1"
  16703. if test "x${SQLITE_DIR}" != "x"; then
  16704. SQLITE_LIB="${pbxlibdir} ${SQLITE_LIB}"
  16705. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  16706. fi
  16707. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  16708. saved_cppflags="${CPPFLAGS}"
  16709. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  16710. if test "xsqlite.h" != "x" ; then
  16711. ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
  16712. if test "x$ac_cv_header_sqlite_h" = x""yes; then :
  16713. SQLITE_HEADER_FOUND=1
  16714. else
  16715. SQLITE_HEADER_FOUND=0
  16716. fi
  16717. fi
  16718. CPPFLAGS="${saved_cppflags}"
  16719. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  16720. if test -n "${SQLITE_MANDATORY}" ;
  16721. then
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16723. $as_echo "$as_me: ***" >&6;}
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the sqlite development package installed." >&5
  16725. $as_echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
  16726. if test "x${SQLITE_OPTION}" = "x" ; then
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SQLITE_DESCRIP} support" >&5
  16728. $as_echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support" >&6;}
  16729. else
  16730. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&5
  16731. $as_echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure" >&6;}
  16732. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
  16733. $as_echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
  16734. fi
  16735. exit 1
  16736. fi
  16737. SQLITE_LIB=""
  16738. SQLITE_INCLUDE=""
  16739. PBX_SQLITE=0
  16740. else
  16741. PBX_SQLITE=1
  16742. cat >>confdefs.h <<_ACEOF
  16743. #define HAVE_SQLITE 1
  16744. _ACEOF
  16745. fi
  16746. elif test -n "${SQLITE_MANDATORY}";
  16747. then
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16749. $as_echo "$as_me: ***" >&6;}
  16750. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
  16751. $as_echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
  16752. if test "x${SQLITE_OPTION}" = "x" ; then
  16753. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  16754. $as_echo "$as_me: *** Please correct the installation" >&6;}
  16755. else
  16756. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16757. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16758. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
  16759. $as_echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
  16760. fi
  16761. exit 1
  16762. fi
  16763. fi
  16764. if test "${USE_OPENSSL}" != "no"; then
  16765. pbxlibdir=""
  16766. if test "x${OPENSSL_DIR}" != "x"; then
  16767. if test -d ${OPENSSL_DIR}/lib; then
  16768. pbxlibdir="-L${OPENSSL_DIR}/lib"
  16769. else
  16770. pbxlibdir="-L${OPENSSL_DIR}"
  16771. fi
  16772. fi
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  16774. $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
  16775. if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then :
  16776. $as_echo_n "(cached) " >&6
  16777. else
  16778. ac_check_lib_save_LIBS=$LIBS
  16779. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  16780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16781. /* end confdefs.h. */
  16782. /* Override any GCC internal prototype to avoid an error.
  16783. Use char because int might match the return type of a GCC
  16784. builtin and then its argument prototype would still apply. */
  16785. #ifdef __cplusplus
  16786. extern "C"
  16787. #endif
  16788. char SSL_connect ();
  16789. int
  16790. main ()
  16791. {
  16792. return SSL_connect ();
  16793. ;
  16794. return 0;
  16795. }
  16796. _ACEOF
  16797. if ac_fn_c_try_link "$LINENO"; then :
  16798. ac_cv_lib_ssl_SSL_connect=yes
  16799. else
  16800. ac_cv_lib_ssl_SSL_connect=no
  16801. fi
  16802. rm -f core conftest.err conftest.$ac_objext \
  16803. conftest$ac_exeext conftest.$ac_ext
  16804. LIBS=$ac_check_lib_save_LIBS
  16805. fi
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  16807. $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
  16808. if test "x$ac_cv_lib_ssl_SSL_connect" = x""yes; then :
  16809. AST_OPENSSL_FOUND=yes
  16810. else
  16811. AST_OPENSSL_FOUND=no
  16812. fi
  16813. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  16814. OPENSSL_LIB="-lssl -lcrypto"
  16815. OPENSSL_HEADER_FOUND="1"
  16816. if test "x${OPENSSL_DIR}" != "x"; then
  16817. OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
  16818. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  16819. fi
  16820. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  16821. saved_cppflags="${CPPFLAGS}"
  16822. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  16823. if test "xopenssl/ssl.h" != "x" ; then
  16824. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  16825. if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
  16826. OPENSSL_HEADER_FOUND=1
  16827. else
  16828. OPENSSL_HEADER_FOUND=0
  16829. fi
  16830. fi
  16831. CPPFLAGS="${saved_cppflags}"
  16832. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  16833. if test -n "${OPENSSL_MANDATORY}" ;
  16834. then
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16836. $as_echo "$as_me: ***" >&6;}
  16837. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the ssl development package installed." >&5
  16838. $as_echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
  16839. if test "x${OPENSSL_OPTION}" = "x" ; then
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OPENSSL_DESCRIP} support" >&5
  16841. $as_echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support" >&6;}
  16842. else
  16843. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&5
  16844. $as_echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure" >&6;}
  16845. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
  16846. $as_echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
  16847. fi
  16848. exit 1
  16849. fi
  16850. OPENSSL_LIB=""
  16851. OPENSSL_INCLUDE=""
  16852. PBX_OPENSSL=0
  16853. else
  16854. PBX_OPENSSL=1
  16855. cat >>confdefs.h <<_ACEOF
  16856. #define HAVE_OPENSSL 1
  16857. _ACEOF
  16858. fi
  16859. elif test -n "${OPENSSL_MANDATORY}";
  16860. then
  16861. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16862. $as_echo "$as_me: ***" >&6;}
  16863. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
  16864. $as_echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
  16865. if test "x${OPENSSL_OPTION}" = "x" ; then
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  16867. $as_echo "$as_me: *** Please correct the installation" >&6;}
  16868. else
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16870. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
  16872. $as_echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
  16873. fi
  16874. exit 1
  16875. fi
  16876. fi
  16877. if test "$PBX_OPENSSL" = "1";
  16878. then
  16879. if test "${USE_OSPTK}" != "no"; then
  16880. pbxlibdir=""
  16881. if test "x${OSPTK_DIR}" != "x"; then
  16882. if test -d ${OSPTK_DIR}/lib; then
  16883. pbxlibdir="-L${OSPTK_DIR}/lib"
  16884. else
  16885. pbxlibdir="-L${OSPTK_DIR}"
  16886. fi
  16887. fi
  16888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSPPCryptoDecrypt in -losptk" >&5
  16889. $as_echo_n "checking for OSPPCryptoDecrypt in -losptk... " >&6; }
  16890. if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then :
  16891. $as_echo_n "(cached) " >&6
  16892. else
  16893. ac_check_lib_save_LIBS=$LIBS
  16894. LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
  16895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16896. /* end confdefs.h. */
  16897. /* Override any GCC internal prototype to avoid an error.
  16898. Use char because int might match the return type of a GCC
  16899. builtin and then its argument prototype would still apply. */
  16900. #ifdef __cplusplus
  16901. extern "C"
  16902. #endif
  16903. char OSPPCryptoDecrypt ();
  16904. int
  16905. main ()
  16906. {
  16907. return OSPPCryptoDecrypt ();
  16908. ;
  16909. return 0;
  16910. }
  16911. _ACEOF
  16912. if ac_fn_c_try_link "$LINENO"; then :
  16913. ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
  16914. else
  16915. ac_cv_lib_osptk_OSPPCryptoDecrypt=no
  16916. fi
  16917. rm -f core conftest.err conftest.$ac_objext \
  16918. conftest$ac_exeext conftest.$ac_ext
  16919. LIBS=$ac_check_lib_save_LIBS
  16920. fi
  16921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
  16922. $as_echo "$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
  16923. if test "x$ac_cv_lib_osptk_OSPPCryptoDecrypt" = x""yes; then :
  16924. AST_OSPTK_FOUND=yes
  16925. else
  16926. AST_OSPTK_FOUND=no
  16927. fi
  16928. if test "${AST_OSPTK_FOUND}" = "yes"; then
  16929. OSPTK_LIB="-losptk -lcrypto -lssl"
  16930. OSPTK_HEADER_FOUND="1"
  16931. if test "x${OSPTK_DIR}" != "x"; then
  16932. OSPTK_LIB="${pbxlibdir} ${OSPTK_LIB}"
  16933. OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
  16934. fi
  16935. OSPTK_INCLUDE="${OSPTK_INCLUDE} "
  16936. saved_cppflags="${CPPFLAGS}"
  16937. CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}"
  16938. if test "xosp/osp.h" != "x" ; then
  16939. ac_fn_c_check_header_mongrel "$LINENO" "osp/osp.h" "ac_cv_header_osp_osp_h" "$ac_includes_default"
  16940. if test "x$ac_cv_header_osp_osp_h" = x""yes; then :
  16941. OSPTK_HEADER_FOUND=1
  16942. else
  16943. OSPTK_HEADER_FOUND=0
  16944. fi
  16945. fi
  16946. CPPFLAGS="${saved_cppflags}"
  16947. if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
  16948. if test -n "${OSPTK_MANDATORY}" ;
  16949. then
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16951. $as_echo "$as_me: ***" >&6;}
  16952. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the osptk development package installed." >&5
  16953. $as_echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
  16954. if test "x${OSPTK_OPTION}" = "x" ; then
  16955. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OSPTK_DESCRIP} support" >&5
  16956. $as_echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support" >&6;}
  16957. else
  16958. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&5
  16959. $as_echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure" >&6;}
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
  16961. $as_echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
  16962. fi
  16963. exit 1
  16964. fi
  16965. OSPTK_LIB=""
  16966. OSPTK_INCLUDE=""
  16967. PBX_OSPTK=0
  16968. else
  16969. PBX_OSPTK=1
  16970. cat >>confdefs.h <<_ACEOF
  16971. #define HAVE_OSPTK 1
  16972. _ACEOF
  16973. fi
  16974. elif test -n "${OSPTK_MANDATORY}";
  16975. then
  16976. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16977. $as_echo "$as_me: ***" >&6;}
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
  16979. $as_echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
  16980. if test "x${OSPTK_OPTION}" = "x" ; then
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  16982. $as_echo "$as_me: *** Please correct the installation" >&6;}
  16983. else
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  16985. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  16986. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
  16987. $as_echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
  16988. fi
  16989. exit 1
  16990. fi
  16991. fi
  16992. fi
  16993. if test "${USE_FREETDS}" != "no"; then
  16994. pbxlibdir=""
  16995. if test "x${FREETDS_DIR}" != "x"; then
  16996. if test -d ${FREETDS_DIR}/lib; then
  16997. pbxlibdir="-L${FREETDS_DIR}/lib"
  16998. else
  16999. pbxlibdir="-L${FREETDS_DIR}"
  17000. fi
  17001. fi
  17002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tds_version in -ltds" >&5
  17003. $as_echo_n "checking for tds_version in -ltds... " >&6; }
  17004. if test "${ac_cv_lib_tds_tds_version+set}" = set; then :
  17005. $as_echo_n "(cached) " >&6
  17006. else
  17007. ac_check_lib_save_LIBS=$LIBS
  17008. LIBS="-ltds ${pbxlibdir} $LIBS"
  17009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17010. /* end confdefs.h. */
  17011. /* Override any GCC internal prototype to avoid an error.
  17012. Use char because int might match the return type of a GCC
  17013. builtin and then its argument prototype would still apply. */
  17014. #ifdef __cplusplus
  17015. extern "C"
  17016. #endif
  17017. char tds_version ();
  17018. int
  17019. main ()
  17020. {
  17021. return tds_version ();
  17022. ;
  17023. return 0;
  17024. }
  17025. _ACEOF
  17026. if ac_fn_c_try_link "$LINENO"; then :
  17027. ac_cv_lib_tds_tds_version=yes
  17028. else
  17029. ac_cv_lib_tds_tds_version=no
  17030. fi
  17031. rm -f core conftest.err conftest.$ac_objext \
  17032. conftest$ac_exeext conftest.$ac_ext
  17033. LIBS=$ac_check_lib_save_LIBS
  17034. fi
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tds_tds_version" >&5
  17036. $as_echo "$ac_cv_lib_tds_tds_version" >&6; }
  17037. if test "x$ac_cv_lib_tds_tds_version" = x""yes; then :
  17038. AST_FREETDS_FOUND=yes
  17039. else
  17040. AST_FREETDS_FOUND=no
  17041. fi
  17042. if test "${AST_FREETDS_FOUND}" = "yes"; then
  17043. FREETDS_LIB="-ltds "
  17044. FREETDS_HEADER_FOUND="1"
  17045. if test "x${FREETDS_DIR}" != "x"; then
  17046. FREETDS_LIB="${pbxlibdir} ${FREETDS_LIB}"
  17047. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  17048. fi
  17049. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  17050. saved_cppflags="${CPPFLAGS}"
  17051. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  17052. if test "xtds.h" != "x" ; then
  17053. ac_fn_c_check_header_mongrel "$LINENO" "tds.h" "ac_cv_header_tds_h" "$ac_includes_default"
  17054. if test "x$ac_cv_header_tds_h" = x""yes; then :
  17055. FREETDS_HEADER_FOUND=1
  17056. else
  17057. FREETDS_HEADER_FOUND=0
  17058. fi
  17059. fi
  17060. CPPFLAGS="${saved_cppflags}"
  17061. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  17062. if test -n "${FREETDS_MANDATORY}" ;
  17063. then
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17065. $as_echo "$as_me: ***" >&6;}
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the tds development package installed." >&5
  17067. $as_echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
  17068. if test "x${FREETDS_OPTION}" = "x" ; then
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${FREETDS_DESCRIP} support" >&5
  17070. $as_echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support" >&6;}
  17071. else
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&5
  17073. $as_echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure" >&6;}
  17074. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
  17075. $as_echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
  17076. fi
  17077. exit 1
  17078. fi
  17079. FREETDS_LIB=""
  17080. FREETDS_INCLUDE=""
  17081. PBX_FREETDS=0
  17082. else
  17083. PBX_FREETDS=1
  17084. cat >>confdefs.h <<_ACEOF
  17085. #define HAVE_FREETDS 1
  17086. _ACEOF
  17087. fi
  17088. elif test -n "${FREETDS_MANDATORY}";
  17089. then
  17090. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17091. $as_echo "$as_me: ***" >&6;}
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
  17093. $as_echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
  17094. if test "x${FREETDS_OPTION}" = "x" ; then
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  17096. $as_echo "$as_me: *** Please correct the installation" >&6;}
  17097. else
  17098. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17099. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17100. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
  17101. $as_echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
  17102. fi
  17103. exit 1
  17104. fi
  17105. fi
  17106. if test "${PBX_FREETDS}" != "0";
  17107. then
  17108. if test "${FREETDS_DIR}x" = "x";
  17109. then
  17110. for tds_dir in /usr /usr/local;
  17111. do
  17112. if test -f "${tds_dir}/include/tdsver.h";
  17113. then
  17114. FREETDS_DIR="${tds_dir}"
  17115. fi
  17116. done
  17117. fi
  17118. case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
  17119. *0.64*)
  17120. FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
  17121. ;;
  17122. *0.63*)
  17123. FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
  17124. ;;
  17125. *0.62*)
  17126. FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
  17127. ;;
  17128. *)
  17129. FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
  17130. ;;
  17131. esac
  17132. fi
  17133. if test "${USE_TERMCAP}" != "no"; then
  17134. pbxlibdir=""
  17135. if test "x${TERMCAP_DIR}" != "x"; then
  17136. if test -d ${TERMCAP_DIR}/lib; then
  17137. pbxlibdir="-L${TERMCAP_DIR}/lib"
  17138. else
  17139. pbxlibdir="-L${TERMCAP_DIR}"
  17140. fi
  17141. fi
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
  17143. $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
  17144. if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
  17145. $as_echo_n "(cached) " >&6
  17146. else
  17147. ac_check_lib_save_LIBS=$LIBS
  17148. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  17149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17150. /* end confdefs.h. */
  17151. /* Override any GCC internal prototype to avoid an error.
  17152. Use char because int might match the return type of a GCC
  17153. builtin and then its argument prototype would still apply. */
  17154. #ifdef __cplusplus
  17155. extern "C"
  17156. #endif
  17157. char tgetent ();
  17158. int
  17159. main ()
  17160. {
  17161. return tgetent ();
  17162. ;
  17163. return 0;
  17164. }
  17165. _ACEOF
  17166. if ac_fn_c_try_link "$LINENO"; then :
  17167. ac_cv_lib_termcap_tgetent=yes
  17168. else
  17169. ac_cv_lib_termcap_tgetent=no
  17170. fi
  17171. rm -f core conftest.err conftest.$ac_objext \
  17172. conftest$ac_exeext conftest.$ac_ext
  17173. LIBS=$ac_check_lib_save_LIBS
  17174. fi
  17175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
  17176. $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
  17177. if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
  17178. AST_TERMCAP_FOUND=yes
  17179. else
  17180. AST_TERMCAP_FOUND=no
  17181. fi
  17182. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  17183. TERMCAP_LIB="-ltermcap "
  17184. TERMCAP_HEADER_FOUND="1"
  17185. if test "x${TERMCAP_DIR}" != "x"; then
  17186. TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
  17187. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  17188. fi
  17189. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  17190. saved_cppflags="${CPPFLAGS}"
  17191. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  17192. if test "x" != "x" ; then
  17193. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  17194. if test "x$ac_cv_header_" = x""yes; then :
  17195. TERMCAP_HEADER_FOUND=1
  17196. else
  17197. TERMCAP_HEADER_FOUND=0
  17198. fi
  17199. fi
  17200. CPPFLAGS="${saved_cppflags}"
  17201. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  17202. if test -n "${TERMCAP_MANDATORY}" ;
  17203. then
  17204. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17205. $as_echo "$as_me: ***" >&6;}
  17206. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the termcap development package installed." >&5
  17207. $as_echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
  17208. if test "x${TERMCAP_OPTION}" = "x" ; then
  17209. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${TERMCAP_DESCRIP} support" >&5
  17210. $as_echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support" >&6;}
  17211. else
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&5
  17213. $as_echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure" >&6;}
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
  17215. $as_echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
  17216. fi
  17217. exit 1
  17218. fi
  17219. TERMCAP_LIB=""
  17220. TERMCAP_INCLUDE=""
  17221. PBX_TERMCAP=0
  17222. else
  17223. PBX_TERMCAP=1
  17224. cat >>confdefs.h <<_ACEOF
  17225. #define HAVE_TERMCAP 1
  17226. _ACEOF
  17227. fi
  17228. elif test -n "${TERMCAP_MANDATORY}";
  17229. then
  17230. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17231. $as_echo "$as_me: ***" >&6;}
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
  17233. $as_echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
  17234. if test "x${TERMCAP_OPTION}" = "x" ; then
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  17236. $as_echo "$as_me: *** Please correct the installation" >&6;}
  17237. else
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17239. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
  17241. $as_echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
  17242. fi
  17243. exit 1
  17244. fi
  17245. fi
  17246. if test "${USE_TINFO}" != "no"; then
  17247. pbxlibdir=""
  17248. if test "x${TINFO_DIR}" != "x"; then
  17249. if test -d ${TINFO_DIR}/lib; then
  17250. pbxlibdir="-L${TINFO_DIR}/lib"
  17251. else
  17252. pbxlibdir="-L${TINFO_DIR}"
  17253. fi
  17254. fi
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
  17256. $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
  17257. if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
  17258. $as_echo_n "(cached) " >&6
  17259. else
  17260. ac_check_lib_save_LIBS=$LIBS
  17261. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  17262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17263. /* end confdefs.h. */
  17264. /* Override any GCC internal prototype to avoid an error.
  17265. Use char because int might match the return type of a GCC
  17266. builtin and then its argument prototype would still apply. */
  17267. #ifdef __cplusplus
  17268. extern "C"
  17269. #endif
  17270. char tgetent ();
  17271. int
  17272. main ()
  17273. {
  17274. return tgetent ();
  17275. ;
  17276. return 0;
  17277. }
  17278. _ACEOF
  17279. if ac_fn_c_try_link "$LINENO"; then :
  17280. ac_cv_lib_tinfo_tgetent=yes
  17281. else
  17282. ac_cv_lib_tinfo_tgetent=no
  17283. fi
  17284. rm -f core conftest.err conftest.$ac_objext \
  17285. conftest$ac_exeext conftest.$ac_ext
  17286. LIBS=$ac_check_lib_save_LIBS
  17287. fi
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
  17289. $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
  17290. if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
  17291. AST_TINFO_FOUND=yes
  17292. else
  17293. AST_TINFO_FOUND=no
  17294. fi
  17295. if test "${AST_TINFO_FOUND}" = "yes"; then
  17296. TINFO_LIB="-ltinfo "
  17297. TINFO_HEADER_FOUND="1"
  17298. if test "x${TINFO_DIR}" != "x"; then
  17299. TINFO_LIB="${pbxlibdir} ${TINFO_LIB}"
  17300. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  17301. fi
  17302. TINFO_INCLUDE="${TINFO_INCLUDE} "
  17303. saved_cppflags="${CPPFLAGS}"
  17304. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  17305. if test "x" != "x" ; then
  17306. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  17307. if test "x$ac_cv_header_" = x""yes; then :
  17308. TINFO_HEADER_FOUND=1
  17309. else
  17310. TINFO_HEADER_FOUND=0
  17311. fi
  17312. fi
  17313. CPPFLAGS="${saved_cppflags}"
  17314. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  17315. if test -n "${TINFO_MANDATORY}" ;
  17316. then
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17318. $as_echo "$as_me: ***" >&6;}
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the tinfo development package installed." >&5
  17320. $as_echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
  17321. if test "x${TINFO_OPTION}" = "x" ; then
  17322. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${TINFO_DESCRIP} support" >&5
  17323. $as_echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support" >&6;}
  17324. else
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&5
  17326. $as_echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure" >&6;}
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
  17328. $as_echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
  17329. fi
  17330. exit 1
  17331. fi
  17332. TINFO_LIB=""
  17333. TINFO_INCLUDE=""
  17334. PBX_TINFO=0
  17335. else
  17336. PBX_TINFO=1
  17337. cat >>confdefs.h <<_ACEOF
  17338. #define HAVE_TINFO 1
  17339. _ACEOF
  17340. fi
  17341. elif test -n "${TINFO_MANDATORY}";
  17342. then
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17344. $as_echo "$as_me: ***" >&6;}
  17345. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
  17346. $as_echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
  17347. if test "x${TINFO_OPTION}" = "x" ; then
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  17349. $as_echo "$as_me: *** Please correct the installation" >&6;}
  17350. else
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17352. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
  17354. $as_echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
  17355. fi
  17356. exit 1
  17357. fi
  17358. fi
  17359. if test "${host_os}" != "linux-gnu" ; then
  17360. tonezone_extra_lib="-lm"
  17361. fi
  17362. if test "${PBX_DAHDI}" = "1" || test "${USE_ZAPTEL}" = "no"; then
  17363. tonezone_dir="dahdi"
  17364. if test "x${DAHDI_DIR}" != "x"; then
  17365. tonezone_extra_inc="${DAHDI_INCLUDE}"
  17366. fi
  17367. else
  17368. tonezone_dir="zaptel"
  17369. if test "x${ZAPTEL_DIR}" != "x"; then
  17370. tonezone_extra_inc="${ZAPTEL_INCLUDE}"
  17371. fi
  17372. fi
  17373. if test "${USE_TONEZONE}" != "no"; then
  17374. pbxlibdir=""
  17375. if test "x${TONEZONE_DIR}" != "x"; then
  17376. if test -d ${TONEZONE_DIR}/lib; then
  17377. pbxlibdir="-L${TONEZONE_DIR}/lib"
  17378. else
  17379. pbxlibdir="-L${TONEZONE_DIR}"
  17380. fi
  17381. fi
  17382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find in -ltonezone" >&5
  17383. $as_echo_n "checking for tone_zone_find in -ltonezone... " >&6; }
  17384. if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then :
  17385. $as_echo_n "(cached) " >&6
  17386. else
  17387. ac_check_lib_save_LIBS=$LIBS
  17388. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra_lib} $LIBS"
  17389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17390. /* end confdefs.h. */
  17391. /* Override any GCC internal prototype to avoid an error.
  17392. Use char because int might match the return type of a GCC
  17393. builtin and then its argument prototype would still apply. */
  17394. #ifdef __cplusplus
  17395. extern "C"
  17396. #endif
  17397. char tone_zone_find ();
  17398. int
  17399. main ()
  17400. {
  17401. return tone_zone_find ();
  17402. ;
  17403. return 0;
  17404. }
  17405. _ACEOF
  17406. if ac_fn_c_try_link "$LINENO"; then :
  17407. ac_cv_lib_tonezone_tone_zone_find=yes
  17408. else
  17409. ac_cv_lib_tonezone_tone_zone_find=no
  17410. fi
  17411. rm -f core conftest.err conftest.$ac_objext \
  17412. conftest$ac_exeext conftest.$ac_ext
  17413. LIBS=$ac_check_lib_save_LIBS
  17414. fi
  17415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
  17416. $as_echo "$ac_cv_lib_tonezone_tone_zone_find" >&6; }
  17417. if test "x$ac_cv_lib_tonezone_tone_zone_find" = x""yes; then :
  17418. AST_TONEZONE_FOUND=yes
  17419. else
  17420. AST_TONEZONE_FOUND=no
  17421. fi
  17422. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  17423. TONEZONE_LIB="-ltonezone ${tonezone_extra_lib}"
  17424. TONEZONE_HEADER_FOUND="1"
  17425. if test "x${TONEZONE_DIR}" != "x"; then
  17426. TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
  17427. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  17428. fi
  17429. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} ${tonezone_extra_inc}"
  17430. saved_cppflags="${CPPFLAGS}"
  17431. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  17432. if test "x${tonezone_dir}/tonezone.h" != "x" ; then
  17433. as_ac_Header=`$as_echo "ac_cv_header_${tonezone_dir}/tonezone.h" | $as_tr_sh`
  17434. ac_fn_c_check_header_mongrel "$LINENO" "${tonezone_dir}/tonezone.h" "$as_ac_Header" "$ac_includes_default"
  17435. eval as_val=\$$as_ac_Header
  17436. if test "x$as_val" = x""yes; then :
  17437. TONEZONE_HEADER_FOUND=1
  17438. else
  17439. TONEZONE_HEADER_FOUND=0
  17440. fi
  17441. fi
  17442. CPPFLAGS="${saved_cppflags}"
  17443. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  17444. if test -n "${TONEZONE_MANDATORY}" ;
  17445. then
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17447. $as_echo "$as_me: ***" >&6;}
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the tonezone development package installed." >&5
  17449. $as_echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
  17450. if test "x${TONEZONE_OPTION}" = "x" ; then
  17451. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${TONEZONE_DESCRIP} support" >&5
  17452. $as_echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support" >&6;}
  17453. else
  17454. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&5
  17455. $as_echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure" >&6;}
  17456. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
  17457. $as_echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
  17458. fi
  17459. exit 1
  17460. fi
  17461. TONEZONE_LIB=""
  17462. TONEZONE_INCLUDE=""
  17463. PBX_TONEZONE=0
  17464. else
  17465. PBX_TONEZONE=1
  17466. cat >>confdefs.h <<_ACEOF
  17467. #define HAVE_TONEZONE 1
  17468. _ACEOF
  17469. fi
  17470. elif test -n "${TONEZONE_MANDATORY}";
  17471. then
  17472. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17473. $as_echo "$as_me: ***" >&6;}
  17474. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
  17475. $as_echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
  17476. if test "x${TONEZONE_OPTION}" = "x" ; then
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  17478. $as_echo "$as_me: *** Please correct the installation" >&6;}
  17479. else
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17481. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17482. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
  17483. $as_echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
  17484. fi
  17485. exit 1
  17486. fi
  17487. fi
  17488. if test "${USE_USB}" != "no"; then
  17489. pbxlibdir=""
  17490. if test "x${USB_DIR}" != "x"; then
  17491. if test -d ${USB_DIR}/lib; then
  17492. pbxlibdir="-L${USB_DIR}/lib"
  17493. else
  17494. pbxlibdir="-L${USB_DIR}"
  17495. fi
  17496. fi
  17497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_init in -lusb" >&5
  17498. $as_echo_n "checking for usb_init in -lusb... " >&6; }
  17499. if test "${ac_cv_lib_usb_usb_init+set}" = set; then :
  17500. $as_echo_n "(cached) " >&6
  17501. else
  17502. ac_check_lib_save_LIBS=$LIBS
  17503. LIBS="-lusb ${pbxlibdir} $LIBS"
  17504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17505. /* end confdefs.h. */
  17506. /* Override any GCC internal prototype to avoid an error.
  17507. Use char because int might match the return type of a GCC
  17508. builtin and then its argument prototype would still apply. */
  17509. #ifdef __cplusplus
  17510. extern "C"
  17511. #endif
  17512. char usb_init ();
  17513. int
  17514. main ()
  17515. {
  17516. return usb_init ();
  17517. ;
  17518. return 0;
  17519. }
  17520. _ACEOF
  17521. if ac_fn_c_try_link "$LINENO"; then :
  17522. ac_cv_lib_usb_usb_init=yes
  17523. else
  17524. ac_cv_lib_usb_usb_init=no
  17525. fi
  17526. rm -f core conftest.err conftest.$ac_objext \
  17527. conftest$ac_exeext conftest.$ac_ext
  17528. LIBS=$ac_check_lib_save_LIBS
  17529. fi
  17530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_init" >&5
  17531. $as_echo "$ac_cv_lib_usb_usb_init" >&6; }
  17532. if test "x$ac_cv_lib_usb_usb_init" = x""yes; then :
  17533. AST_USB_FOUND=yes
  17534. else
  17535. AST_USB_FOUND=no
  17536. fi
  17537. if test "${AST_USB_FOUND}" = "yes"; then
  17538. USB_LIB="-lusb "
  17539. USB_HEADER_FOUND="1"
  17540. if test "x${USB_DIR}" != "x"; then
  17541. USB_LIB="${pbxlibdir} ${USB_LIB}"
  17542. USB_INCLUDE="-I${USB_DIR}/include"
  17543. fi
  17544. USB_INCLUDE="${USB_INCLUDE} "
  17545. saved_cppflags="${CPPFLAGS}"
  17546. CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}"
  17547. if test "xusb.h" != "x" ; then
  17548. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  17549. if test "x$ac_cv_header_usb_h" = x""yes; then :
  17550. USB_HEADER_FOUND=1
  17551. else
  17552. USB_HEADER_FOUND=0
  17553. fi
  17554. fi
  17555. CPPFLAGS="${saved_cppflags}"
  17556. if test "x${USB_HEADER_FOUND}" = "x0" ; then
  17557. if test -n "${USB_MANDATORY}" ;
  17558. then
  17559. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17560. $as_echo "$as_me: ***" >&6;}
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the usb development package installed." >&5
  17562. $as_echo "$as_me: *** It appears that you do not have the usb development package installed." >&6;}
  17563. if test "x${USB_OPTION}" = "x" ; then
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${USB_DESCRIP} support" >&5
  17565. $as_echo "$as_me: *** Please install it to include ${USB_DESCRIP} support" >&6;}
  17566. else
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&5
  17568. $as_echo "$as_me: *** Please install it to include ${USB_DESCRIP} support, or re-run configure" >&6;}
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${USB_OPTION}" >&5
  17570. $as_echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
  17571. fi
  17572. exit 1
  17573. fi
  17574. USB_LIB=""
  17575. USB_INCLUDE=""
  17576. PBX_USB=0
  17577. else
  17578. PBX_USB=1
  17579. cat >>confdefs.h <<_ACEOF
  17580. #define HAVE_USB 1
  17581. _ACEOF
  17582. fi
  17583. elif test -n "${USB_MANDATORY}";
  17584. then
  17585. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17586. $as_echo "$as_me: ***" >&6;}
  17587. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&5
  17588. $as_echo "$as_me: *** The ${USB_DESCRIP} installation on this system appears to be broken." >&6;}
  17589. if test "x${USB_OPTION}" = "x" ; then
  17590. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  17591. $as_echo "$as_me: *** Please correct the installation" >&6;}
  17592. else
  17593. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17594. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${USB_OPTION}" >&5
  17596. $as_echo "$as_me: *** without explicitly specifying --with-${USB_OPTION}" >&6;}
  17597. fi
  17598. exit 1
  17599. fi
  17600. fi
  17601. if test "${USE_VORBIS}" != "no"; then
  17602. pbxlibdir=""
  17603. if test "x${VORBIS_DIR}" != "x"; then
  17604. if test -d ${VORBIS_DIR}/lib; then
  17605. pbxlibdir="-L${VORBIS_DIR}/lib"
  17606. else
  17607. pbxlibdir="-L${VORBIS_DIR}"
  17608. fi
  17609. fi
  17610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_info_init in -lvorbis" >&5
  17611. $as_echo_n "checking for vorbis_info_init in -lvorbis... " >&6; }
  17612. if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then :
  17613. $as_echo_n "(cached) " >&6
  17614. else
  17615. ac_check_lib_save_LIBS=$LIBS
  17616. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
  17617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17618. /* end confdefs.h. */
  17619. /* Override any GCC internal prototype to avoid an error.
  17620. Use char because int might match the return type of a GCC
  17621. builtin and then its argument prototype would still apply. */
  17622. #ifdef __cplusplus
  17623. extern "C"
  17624. #endif
  17625. char vorbis_info_init ();
  17626. int
  17627. main ()
  17628. {
  17629. return vorbis_info_init ();
  17630. ;
  17631. return 0;
  17632. }
  17633. _ACEOF
  17634. if ac_fn_c_try_link "$LINENO"; then :
  17635. ac_cv_lib_vorbis_vorbis_info_init=yes
  17636. else
  17637. ac_cv_lib_vorbis_vorbis_info_init=no
  17638. fi
  17639. rm -f core conftest.err conftest.$ac_objext \
  17640. conftest$ac_exeext conftest.$ac_ext
  17641. LIBS=$ac_check_lib_save_LIBS
  17642. fi
  17643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
  17644. $as_echo "$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
  17645. if test "x$ac_cv_lib_vorbis_vorbis_info_init" = x""yes; then :
  17646. AST_VORBIS_FOUND=yes
  17647. else
  17648. AST_VORBIS_FOUND=no
  17649. fi
  17650. if test "${AST_VORBIS_FOUND}" = "yes"; then
  17651. VORBIS_LIB="-lvorbis -lm -lvorbisenc"
  17652. VORBIS_HEADER_FOUND="1"
  17653. if test "x${VORBIS_DIR}" != "x"; then
  17654. VORBIS_LIB="${pbxlibdir} ${VORBIS_LIB}"
  17655. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  17656. fi
  17657. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  17658. saved_cppflags="${CPPFLAGS}"
  17659. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  17660. if test "xvorbis/codec.h" != "x" ; then
  17661. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  17662. if test "x$ac_cv_header_vorbis_codec_h" = x""yes; then :
  17663. VORBIS_HEADER_FOUND=1
  17664. else
  17665. VORBIS_HEADER_FOUND=0
  17666. fi
  17667. fi
  17668. CPPFLAGS="${saved_cppflags}"
  17669. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  17670. if test -n "${VORBIS_MANDATORY}" ;
  17671. then
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17673. $as_echo "$as_me: ***" >&6;}
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the vorbis development package installed." >&5
  17675. $as_echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
  17676. if test "x${VORBIS_OPTION}" = "x" ; then
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${VORBIS_DESCRIP} support" >&5
  17678. $as_echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support" >&6;}
  17679. else
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&5
  17681. $as_echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure" >&6;}
  17682. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
  17683. $as_echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
  17684. fi
  17685. exit 1
  17686. fi
  17687. VORBIS_LIB=""
  17688. VORBIS_INCLUDE=""
  17689. PBX_VORBIS=0
  17690. else
  17691. PBX_VORBIS=1
  17692. cat >>confdefs.h <<_ACEOF
  17693. #define HAVE_VORBIS 1
  17694. _ACEOF
  17695. fi
  17696. elif test -n "${VORBIS_MANDATORY}";
  17697. then
  17698. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17699. $as_echo "$as_me: ***" >&6;}
  17700. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
  17701. $as_echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
  17702. if test "x${VORBIS_OPTION}" = "x" ; then
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  17704. $as_echo "$as_me: *** Please correct the installation" >&6;}
  17705. else
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17707. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17708. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
  17709. $as_echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
  17710. fi
  17711. exit 1
  17712. fi
  17713. fi
  17714. ac_ext=cpp
  17715. ac_cpp='$CXXCPP $CPPFLAGS'
  17716. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17717. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17718. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17719. if test "${USE_VPB}" != "no"; then
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpb_open in -lvpb" >&5
  17721. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  17722. saved_libs="${LIBS}"
  17723. saved_cppflags="${CPPFLAGS}"
  17724. if test "x${VPB_DIR}" != "x"; then
  17725. if test -d ${VPB_DIR}/lib; then
  17726. vpblibdir=${VPB_DIR}/lib
  17727. else
  17728. vpblibdir=${VPB_DIR}
  17729. fi
  17730. LIBS="${LIBS} -L${vpblibdir}"
  17731. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  17732. fi
  17733. LIBS="${LIBS} -lvpb -lpthread"
  17734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17735. /* end confdefs.h. */
  17736. #include <vpbapi.h>
  17737. int
  17738. main ()
  17739. {
  17740. int q = vpb_open(0,0);
  17741. ;
  17742. return 0;
  17743. }
  17744. _ACEOF
  17745. if ac_fn_cxx_try_link "$LINENO"; then :
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17747. $as_echo "yes" >&6; }
  17748. ac_cv_lib_vpb_vpb_open="yes"
  17749. else
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17751. $as_echo "no" >&6; }
  17752. ac_cv_lib_vpb_vpb_open="no"
  17753. fi
  17754. rm -f core conftest.err conftest.$ac_objext \
  17755. conftest$ac_exeext conftest.$ac_ext
  17756. LIBS="${saved_libs}"
  17757. CPPFLAGS="${saved_cppflags}"
  17758. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  17759. VPB_LIB="-lvpb"
  17760. if test "${VPB_DIR}" != ""; then
  17761. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  17762. VPB_INCLUDE="-I${VPB_DIR}/include"
  17763. fi
  17764. PBX_VPB=1
  17765. $as_echo "#define HAVE_VPB 1" >>confdefs.h
  17766. elif test -n "${VPB_MANDATORY}"; then
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17768. $as_echo "$as_me: ***" >&6;}
  17769. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
  17770. $as_echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
  17771. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17772. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17773. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-vpb." >&5
  17774. $as_echo "$as_me: *** including --without-vpb." >&6;}
  17775. exit 1
  17776. fi
  17777. fi
  17778. ac_ext=c
  17779. ac_cpp='$CPP $CPPFLAGS'
  17780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17783. if test "${USE_ZLIB}" != "no"; then
  17784. pbxlibdir=""
  17785. if test "x${ZLIB_DIR}" != "x"; then
  17786. if test -d ${ZLIB_DIR}/lib; then
  17787. pbxlibdir="-L${ZLIB_DIR}/lib"
  17788. else
  17789. pbxlibdir="-L${ZLIB_DIR}"
  17790. fi
  17791. fi
  17792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  17793. $as_echo_n "checking for compress in -lz... " >&6; }
  17794. if test "${ac_cv_lib_z_compress+set}" = set; then :
  17795. $as_echo_n "(cached) " >&6
  17796. else
  17797. ac_check_lib_save_LIBS=$LIBS
  17798. LIBS="-lz ${pbxlibdir} $LIBS"
  17799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17800. /* end confdefs.h. */
  17801. /* Override any GCC internal prototype to avoid an error.
  17802. Use char because int might match the return type of a GCC
  17803. builtin and then its argument prototype would still apply. */
  17804. #ifdef __cplusplus
  17805. extern "C"
  17806. #endif
  17807. char compress ();
  17808. int
  17809. main ()
  17810. {
  17811. return compress ();
  17812. ;
  17813. return 0;
  17814. }
  17815. _ACEOF
  17816. if ac_fn_c_try_link "$LINENO"; then :
  17817. ac_cv_lib_z_compress=yes
  17818. else
  17819. ac_cv_lib_z_compress=no
  17820. fi
  17821. rm -f core conftest.err conftest.$ac_objext \
  17822. conftest$ac_exeext conftest.$ac_ext
  17823. LIBS=$ac_check_lib_save_LIBS
  17824. fi
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  17826. $as_echo "$ac_cv_lib_z_compress" >&6; }
  17827. if test "x$ac_cv_lib_z_compress" = x""yes; then :
  17828. AST_ZLIB_FOUND=yes
  17829. else
  17830. AST_ZLIB_FOUND=no
  17831. fi
  17832. if test "${AST_ZLIB_FOUND}" = "yes"; then
  17833. ZLIB_LIB="-lz "
  17834. ZLIB_HEADER_FOUND="1"
  17835. if test "x${ZLIB_DIR}" != "x"; then
  17836. ZLIB_LIB="${pbxlibdir} ${ZLIB_LIB}"
  17837. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  17838. fi
  17839. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  17840. saved_cppflags="${CPPFLAGS}"
  17841. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  17842. if test "xzlib.h" != "x" ; then
  17843. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  17844. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  17845. ZLIB_HEADER_FOUND=1
  17846. else
  17847. ZLIB_HEADER_FOUND=0
  17848. fi
  17849. fi
  17850. CPPFLAGS="${saved_cppflags}"
  17851. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  17852. if test -n "${ZLIB_MANDATORY}" ;
  17853. then
  17854. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17855. $as_echo "$as_me: ***" >&6;}
  17856. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the z development package installed." >&5
  17857. $as_echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
  17858. if test "x${ZLIB_OPTION}" = "x" ; then
  17859. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${ZLIB_DESCRIP} support" >&5
  17860. $as_echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support" >&6;}
  17861. else
  17862. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&5
  17863. $as_echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure" >&6;}
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
  17865. $as_echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
  17866. fi
  17867. exit 1
  17868. fi
  17869. ZLIB_LIB=""
  17870. ZLIB_INCLUDE=""
  17871. PBX_ZLIB=0
  17872. else
  17873. PBX_ZLIB=1
  17874. cat >>confdefs.h <<_ACEOF
  17875. #define HAVE_ZLIB 1
  17876. _ACEOF
  17877. fi
  17878. elif test -n "${ZLIB_MANDATORY}";
  17879. then
  17880. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17881. $as_echo "$as_me: ***" >&6;}
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
  17883. $as_echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
  17884. if test "x${ZLIB_OPTION}" = "x" ; then
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please correct the installation" >&5
  17886. $as_echo "$as_me: *** Please correct the installation" >&6;}
  17887. else
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17889. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17890. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
  17891. $as_echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
  17892. fi
  17893. exit 1
  17894. fi
  17895. fi
  17896. if test "${USE_ZAPTEL}" != "no" && test "x${PBX_DAHDI}" != "x1"; then
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
  17898. $as_echo_n "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... " >&6; }
  17899. saved_cppflags="${CPPFLAGS}"
  17900. if test "x${ZAPTEL_DIR}" != "x"; then
  17901. CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
  17902. fi
  17903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17904. /* end confdefs.h. */
  17905. #include <zaptel/zaptel.h>
  17906. int
  17907. main ()
  17908. {
  17909. int foo = ZT_DIAL_OP_CANCEL;
  17910. ;
  17911. return 0;
  17912. }
  17913. _ACEOF
  17914. if ac_fn_c_try_compile "$LINENO"; then :
  17915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17916. $as_echo "yes" >&6; }
  17917. ac_cv_zaptel_h="yes"
  17918. else
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17920. $as_echo "no" >&6; }
  17921. ac_cv_zaptel_h="no"
  17922. fi
  17923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17924. CPPFLAGS="${saved_cppflags}"
  17925. if test "${ac_cv_zaptel_h}" = "yes"; then
  17926. if test "${ZAPTEL_DIR}" != ""; then
  17927. ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
  17928. fi
  17929. PBX_ZAPTEL=1
  17930. $as_echo "#define HAVE_ZAPTEL 1" >>confdefs.h
  17931. saved_cppflags="${CPPFLAGS}"
  17932. CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
  17933. ac_fn_c_check_member "$LINENO" "ZT_PARAMS" "chan_alarms" "ac_cv_member_ZT_PARAMS_chan_alarms" "#include <zaptel/zaptel.h>
  17934. "
  17935. if test "x$ac_cv_member_ZT_PARAMS_chan_alarms" = x""yes; then :
  17936. fi
  17937. CPPFLAGS="${saved_cppflags}"
  17938. if test "${ac_cv_member_ZT_PARAMS_chan_alarms}" = "yes"; then
  17939. $as_echo "#define HAVE_ZAPTEL_CHANALARMS 1" >>confdefs.h
  17940. fi
  17941. elif test -n "${ZAPTEL_MANDATORY}";
  17942. then
  17943. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  17944. $as_echo "$as_me: ***" >&6;}
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The Zaptel installation on this system appears to be broken." >&5
  17946. $as_echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  17948. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  17949. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-zaptel." >&5
  17950. $as_echo "$as_me: *** including --without-zaptel." >&6;}
  17951. exit 1
  17952. fi
  17953. fi
  17954. if test "${PBX_ZAPTEL}" = 1 && test "x${PBX_DAHDI}" != "x1"; then
  17955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
  17956. $as_echo_n "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... " >&6; }
  17957. saved_cppflags="${CPPFLAGS}"
  17958. if test "x${ZAPTEL_DIR}" != "x"; then
  17959. CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
  17960. fi
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. #include <zaptel/zaptel.h>
  17964. int
  17965. main ()
  17966. {
  17967. int foo = ZT_EVENT_REMOVED;
  17968. ;
  17969. return 0;
  17970. }
  17971. _ACEOF
  17972. if ac_fn_c_try_compile "$LINENO"; then :
  17973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17974. $as_echo "yes" >&6; }
  17975. ac_cv_zaptel_vldtmf="yes"
  17976. else
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17978. $as_echo "no" >&6; }
  17979. ac_cv_zaptel_vldtmf="no"
  17980. fi
  17981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17982. CPPFLAGS="${saved_cppflags}"
  17983. if test "${ac_cv_zaptel_vldtmf}" = "yes"; then
  17984. PBX_ZAPTEL_VLDTMF=1
  17985. fi
  17986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zt_transcoder_info in zaptel/zaptel.h" >&5
  17987. $as_echo_n "checking for zt_transcoder_info in zaptel/zaptel.h... " >&6; }
  17988. saved_cppflags="${CPPFLAGS}"
  17989. if test "x${ZAPTEL_DIR}" != "x"; then
  17990. CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
  17991. fi
  17992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. /* end confdefs.h. */
  17994. #include <zaptel/zaptel.h>
  17995. int
  17996. main ()
  17997. {
  17998. int foo = sizeof(struct zt_transcoder_info);
  17999. ;
  18000. return 0;
  18001. }
  18002. _ACEOF
  18003. if ac_fn_c_try_compile "$LINENO"; then :
  18004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18005. $as_echo "yes" >&6; }
  18006. ac_cv_zaptel_transcode="yes"
  18007. else
  18008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18009. $as_echo "no" >&6; }
  18010. ac_cv_zaptel_transcode="no"
  18011. fi
  18012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18013. CPPFLAGS="${saved_cppflags}"
  18014. if test "${ac_cv_zaptel_transcode}" = "yes"; then
  18015. PBX_DAHDI_TRANSCODE=1
  18016. fi
  18017. fi
  18018. if test "x${PBX_ZAPTEL}" = "x1" ; then
  18019. PBX_DAHDI=1
  18020. DAHDI_INCLUDE=${ZAPTEL_INCLUDE}
  18021. DAHDI_LIB=${ZAPTEL_LIB}
  18022. fi
  18023. EDITLINE_LIB=""
  18024. if test "x$TERMCAP_LIB" != "x" ; then
  18025. EDITLINE_LIB="$TERMCAP_LIB"
  18026. elif test "x$TINFO_LIB" != "x" ; then
  18027. EDITLINE_LIB="$TINFO_LIB"
  18028. elif test "x$CURSES_LIB" != "x" ; then
  18029. EDITLINE_LIB="$CURSES_LIB"
  18030. elif test "x$NCURSES_LIB" != "x" ; then
  18031. EDITLINE_LIB="$NCURSES_LIB"
  18032. else
  18033. as_fn_error "*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" "$LINENO" 5
  18034. fi
  18035. ac_fn_c_check_header_mongrel "$LINENO" "h323.h" "ac_cv_header_h323_h" "$ac_includes_default"
  18036. if test "x$ac_cv_header_h323_h" = x""yes; then :
  18037. PBX_H323=1
  18038. else
  18039. PBX_H323=0
  18040. fi
  18041. ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  18042. if test "x$ac_cv_header_linux_compiler_h" = x""yes; then :
  18043. cat >>confdefs.h <<_ACEOF
  18044. #define HAVE_LINUX_COMPILER_H 1
  18045. _ACEOF
  18046. fi
  18047. ac_fn_c_check_header_compile "$LINENO" "linux/ixjuser.h" "ac_cv_header_linux_ixjuser_h" "
  18048. #include <linux/version.h>
  18049. #ifdef HAVE_LINUX_COMPILER_H
  18050. #include <linux/compiler.h>
  18051. #endif
  18052. "
  18053. if test "x$ac_cv_header_linux_ixjuser_h" = x""yes; then :
  18054. PBX_IXJUSER=1
  18055. else
  18056. PBX_IXJUSER=0
  18057. fi
  18058. if test "${cross_compiling}" = "no";
  18059. then
  18060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
  18061. $as_echo_n "checking for /sbin/launchd... " >&6; }
  18062. if test "${ac_cv_file__sbin_launchd+set}" = set; then :
  18063. $as_echo_n "(cached) " >&6
  18064. else
  18065. test "$cross_compiling" = yes &&
  18066. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  18067. if test -r "/sbin/launchd"; then
  18068. ac_cv_file__sbin_launchd=yes
  18069. else
  18070. ac_cv_file__sbin_launchd=no
  18071. fi
  18072. fi
  18073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
  18074. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  18075. if test "x$ac_cv_file__sbin_launchd" = x""yes; then :
  18076. $as_echo "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
  18077. fi
  18078. fi
  18079. PBX_GTK=0
  18080. if test -n "$ac_tool_prefix"; then
  18081. # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
  18082. set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18084. $as_echo_n "checking for $ac_word... " >&6; }
  18085. if test "${ac_cv_prog_GTKCONFIG+set}" = set; then :
  18086. $as_echo_n "(cached) " >&6
  18087. else
  18088. if test -n "$GTKCONFIG"; then
  18089. ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test.
  18090. else
  18091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18092. for as_dir in $PATH
  18093. do
  18094. IFS=$as_save_IFS
  18095. test -z "$as_dir" && as_dir=.
  18096. for ac_exec_ext in '' $ac_executable_extensions; do
  18097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18098. ac_cv_prog_GTKCONFIG="${ac_tool_prefix}gtk-config"
  18099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18100. break 2
  18101. fi
  18102. done
  18103. done
  18104. IFS=$as_save_IFS
  18105. fi
  18106. fi
  18107. GTKCONFIG=$ac_cv_prog_GTKCONFIG
  18108. if test -n "$GTKCONFIG"; then
  18109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKCONFIG" >&5
  18110. $as_echo "$GTKCONFIG" >&6; }
  18111. else
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18113. $as_echo "no" >&6; }
  18114. fi
  18115. fi
  18116. if test -z "$ac_cv_prog_GTKCONFIG"; then
  18117. ac_ct_GTKCONFIG=$GTKCONFIG
  18118. # Extract the first word of "gtk-config", so it can be a program name with args.
  18119. set dummy gtk-config; ac_word=$2
  18120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18121. $as_echo_n "checking for $ac_word... " >&6; }
  18122. if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then :
  18123. $as_echo_n "(cached) " >&6
  18124. else
  18125. if test -n "$ac_ct_GTKCONFIG"; then
  18126. ac_cv_prog_ac_ct_GTKCONFIG="$ac_ct_GTKCONFIG" # Let the user override the test.
  18127. else
  18128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18129. for as_dir in $PATH
  18130. do
  18131. IFS=$as_save_IFS
  18132. test -z "$as_dir" && as_dir=.
  18133. for ac_exec_ext in '' $ac_executable_extensions; do
  18134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18135. ac_cv_prog_ac_ct_GTKCONFIG="gtk-config"
  18136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18137. break 2
  18138. fi
  18139. done
  18140. done
  18141. IFS=$as_save_IFS
  18142. fi
  18143. fi
  18144. ac_ct_GTKCONFIG=$ac_cv_prog_ac_ct_GTKCONFIG
  18145. if test -n "$ac_ct_GTKCONFIG"; then
  18146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GTKCONFIG" >&5
  18147. $as_echo "$ac_ct_GTKCONFIG" >&6; }
  18148. else
  18149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18150. $as_echo "no" >&6; }
  18151. fi
  18152. if test "x$ac_ct_GTKCONFIG" = x; then
  18153. GTKCONFIG="No"
  18154. else
  18155. case $cross_compiling:$ac_tool_warned in
  18156. yes:)
  18157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18159. ac_tool_warned=yes ;;
  18160. esac
  18161. GTKCONFIG=$ac_ct_GTKCONFIG
  18162. fi
  18163. else
  18164. GTKCONFIG="$ac_cv_prog_GTKCONFIG"
  18165. fi
  18166. if test ! "x${GTKCONFIG}" = xNo; then
  18167. GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
  18168. GTK_LIB=$(${GTKCONFIG} --libs gthread)
  18169. PBX_GTK=1
  18170. $as_echo "#define HAVE_GTK 1" >>confdefs.h
  18171. fi
  18172. PBX_GTK2=0
  18173. if test -n "$ac_tool_prefix"; then
  18174. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18175. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18177. $as_echo_n "checking for $ac_word... " >&6; }
  18178. if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
  18179. $as_echo_n "(cached) " >&6
  18180. else
  18181. if test -n "$PKGCONFIG"; then
  18182. ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
  18183. else
  18184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18185. for as_dir in $PATH
  18186. do
  18187. IFS=$as_save_IFS
  18188. test -z "$as_dir" && as_dir=.
  18189. for ac_exec_ext in '' $ac_executable_extensions; do
  18190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18191. ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
  18192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18193. break 2
  18194. fi
  18195. done
  18196. done
  18197. IFS=$as_save_IFS
  18198. fi
  18199. fi
  18200. PKGCONFIG=$ac_cv_prog_PKGCONFIG
  18201. if test -n "$PKGCONFIG"; then
  18202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  18203. $as_echo "$PKGCONFIG" >&6; }
  18204. else
  18205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18206. $as_echo "no" >&6; }
  18207. fi
  18208. fi
  18209. if test -z "$ac_cv_prog_PKGCONFIG"; then
  18210. ac_ct_PKGCONFIG=$PKGCONFIG
  18211. # Extract the first word of "pkg-config", so it can be a program name with args.
  18212. set dummy pkg-config; ac_word=$2
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18214. $as_echo_n "checking for $ac_word... " >&6; }
  18215. if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then :
  18216. $as_echo_n "(cached) " >&6
  18217. else
  18218. if test -n "$ac_ct_PKGCONFIG"; then
  18219. ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
  18220. else
  18221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18222. for as_dir in $PATH
  18223. do
  18224. IFS=$as_save_IFS
  18225. test -z "$as_dir" && as_dir=.
  18226. for ac_exec_ext in '' $ac_executable_extensions; do
  18227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18228. ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
  18229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18230. break 2
  18231. fi
  18232. done
  18233. done
  18234. IFS=$as_save_IFS
  18235. fi
  18236. fi
  18237. ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
  18238. if test -n "$ac_ct_PKGCONFIG"; then
  18239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKGCONFIG" >&5
  18240. $as_echo "$ac_ct_PKGCONFIG" >&6; }
  18241. else
  18242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18243. $as_echo "no" >&6; }
  18244. fi
  18245. if test "x$ac_ct_PKGCONFIG" = x; then
  18246. PKGCONFIG="No"
  18247. else
  18248. case $cross_compiling:$ac_tool_warned in
  18249. yes:)
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18252. ac_tool_warned=yes ;;
  18253. esac
  18254. PKGCONFIG=$ac_ct_PKGCONFIG
  18255. fi
  18256. else
  18257. PKGCONFIG="$ac_cv_prog_PKGCONFIG"
  18258. fi
  18259. if test ! "x${PKGCONFIG}" = xNo; then
  18260. GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
  18261. GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
  18262. PBX_GTK2=1
  18263. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  18264. fi
  18265. if test -f makeopts; then
  18266. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  18267. else
  18268. touch makeopts.acbak
  18269. fi
  18270. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
  18271. cat >confcache <<\_ACEOF
  18272. # This file is a shell script that caches the results of configure
  18273. # tests run on this system so they can be shared between configure
  18274. # scripts and configure runs, see configure's option --config-cache.
  18275. # It is not useful on other systems. If it contains results you don't
  18276. # want to keep, you may remove or edit it.
  18277. #
  18278. # config.status only pays attention to the cache file if you give it
  18279. # the --recheck option to rerun configure.
  18280. #
  18281. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18282. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18283. # following values.
  18284. _ACEOF
  18285. # The following way of writing the cache mishandles newlines in values,
  18286. # but we know of no workaround that is simple, portable, and efficient.
  18287. # So, we kill variables containing newlines.
  18288. # Ultrix sh set writes to stderr and can't be redirected directly,
  18289. # and sets the high bit in the cache file unless we assign to the vars.
  18290. (
  18291. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18292. eval ac_val=\$$ac_var
  18293. case $ac_val in #(
  18294. *${as_nl}*)
  18295. case $ac_var in #(
  18296. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18297. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18298. esac
  18299. case $ac_var in #(
  18300. _ | IFS | as_nl) ;; #(
  18301. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18302. *) { eval $ac_var=; unset $ac_var;} ;;
  18303. esac ;;
  18304. esac
  18305. done
  18306. (set) 2>&1 |
  18307. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18308. *${as_nl}ac_space=\ *)
  18309. # `set' does not quote correctly, so add quotes: double-quote
  18310. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18311. sed -n \
  18312. "s/'/'\\\\''/g;
  18313. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18314. ;; #(
  18315. *)
  18316. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18317. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18318. ;;
  18319. esac |
  18320. sort
  18321. ) |
  18322. sed '
  18323. /^ac_cv_env_/b end
  18324. t clear
  18325. :clear
  18326. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18327. t end
  18328. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18329. :end' >>confcache
  18330. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18331. if test -w "$cache_file"; then
  18332. test "x$cache_file" != "x/dev/null" &&
  18333. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18334. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18335. cat confcache >$cache_file
  18336. else
  18337. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18338. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18339. fi
  18340. fi
  18341. rm -f confcache
  18342. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18343. # Let make expand exec_prefix.
  18344. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18345. DEFS=-DHAVE_CONFIG_H
  18346. ac_libobjs=
  18347. ac_ltlibobjs=
  18348. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18349. # 1. Remove the extension, and $U if already installed.
  18350. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18351. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18352. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18353. # will be set to the directory where LIBOBJS objects are built.
  18354. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18355. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18356. done
  18357. LIBOBJS=$ac_libobjs
  18358. LTLIBOBJS=$ac_ltlibobjs
  18359. : ${CONFIG_STATUS=./config.status}
  18360. ac_write_fail=0
  18361. ac_clean_files_save=$ac_clean_files
  18362. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18363. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18364. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18365. as_write_fail=0
  18366. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18367. #! $SHELL
  18368. # Generated by $as_me.
  18369. # Run this file to recreate the current configuration.
  18370. # Compiler output produced by configure, useful for debugging
  18371. # configure, is in config.log if it exists.
  18372. debug=false
  18373. ac_cs_recheck=false
  18374. ac_cs_silent=false
  18375. SHELL=\${CONFIG_SHELL-$SHELL}
  18376. export SHELL
  18377. _ASEOF
  18378. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18379. ## -------------------- ##
  18380. ## M4sh Initialization. ##
  18381. ## -------------------- ##
  18382. # Be more Bourne compatible
  18383. DUALCASE=1; export DUALCASE # for MKS sh
  18384. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18385. emulate sh
  18386. NULLCMD=:
  18387. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18388. # is contrary to our usage. Disable this feature.
  18389. alias -g '${1+"$@"}'='"$@"'
  18390. setopt NO_GLOB_SUBST
  18391. else
  18392. case `(set -o) 2>/dev/null` in #(
  18393. *posix*) :
  18394. set -o posix ;; #(
  18395. *) :
  18396. ;;
  18397. esac
  18398. fi
  18399. as_nl='
  18400. '
  18401. export as_nl
  18402. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18403. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18404. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18405. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18406. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18407. # but without wasting forks for bash or zsh.
  18408. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18409. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18410. as_echo='print -r --'
  18411. as_echo_n='print -rn --'
  18412. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18413. as_echo='printf %s\n'
  18414. as_echo_n='printf %s'
  18415. else
  18416. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18417. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18418. as_echo_n='/usr/ucb/echo -n'
  18419. else
  18420. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18421. as_echo_n_body='eval
  18422. arg=$1;
  18423. case $arg in #(
  18424. *"$as_nl"*)
  18425. expr "X$arg" : "X\\(.*\\)$as_nl";
  18426. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18427. esac;
  18428. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18429. '
  18430. export as_echo_n_body
  18431. as_echo_n='sh -c $as_echo_n_body as_echo'
  18432. fi
  18433. export as_echo_body
  18434. as_echo='sh -c $as_echo_body as_echo'
  18435. fi
  18436. # The user is always right.
  18437. if test "${PATH_SEPARATOR+set}" != set; then
  18438. PATH_SEPARATOR=:
  18439. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18440. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18441. PATH_SEPARATOR=';'
  18442. }
  18443. fi
  18444. # IFS
  18445. # We need space, tab and new line, in precisely that order. Quoting is
  18446. # there to prevent editors from complaining about space-tab.
  18447. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18448. # splitting by setting IFS to empty value.)
  18449. IFS=" "" $as_nl"
  18450. # Find who we are. Look in the path if we contain no directory separator.
  18451. case $0 in #((
  18452. *[\\/]* ) as_myself=$0 ;;
  18453. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18454. for as_dir in $PATH
  18455. do
  18456. IFS=$as_save_IFS
  18457. test -z "$as_dir" && as_dir=.
  18458. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18459. done
  18460. IFS=$as_save_IFS
  18461. ;;
  18462. esac
  18463. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18464. # in which case we are not to be found in the path.
  18465. if test "x$as_myself" = x; then
  18466. as_myself=$0
  18467. fi
  18468. if test ! -f "$as_myself"; then
  18469. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18470. exit 1
  18471. fi
  18472. # Unset variables that we do not need and which cause bugs (e.g. in
  18473. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18474. # suppresses any "Segmentation fault" message there. '((' could
  18475. # trigger a bug in pdksh 5.2.14.
  18476. for as_var in BASH_ENV ENV MAIL MAILPATH
  18477. do eval test x\${$as_var+set} = xset \
  18478. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18479. done
  18480. PS1='$ '
  18481. PS2='> '
  18482. PS4='+ '
  18483. # NLS nuisances.
  18484. LC_ALL=C
  18485. export LC_ALL
  18486. LANGUAGE=C
  18487. export LANGUAGE
  18488. # CDPATH.
  18489. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18490. # as_fn_error ERROR [LINENO LOG_FD]
  18491. # ---------------------------------
  18492. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18493. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18494. # script with status $?, using 1 if that was 0.
  18495. as_fn_error ()
  18496. {
  18497. as_status=$?; test $as_status -eq 0 && as_status=1
  18498. if test "$3"; then
  18499. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18500. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  18501. fi
  18502. $as_echo "$as_me: error: $1" >&2
  18503. as_fn_exit $as_status
  18504. } # as_fn_error
  18505. # as_fn_set_status STATUS
  18506. # -----------------------
  18507. # Set $? to STATUS, without forking.
  18508. as_fn_set_status ()
  18509. {
  18510. return $1
  18511. } # as_fn_set_status
  18512. # as_fn_exit STATUS
  18513. # -----------------
  18514. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18515. as_fn_exit ()
  18516. {
  18517. set +e
  18518. as_fn_set_status $1
  18519. exit $1
  18520. } # as_fn_exit
  18521. # as_fn_unset VAR
  18522. # ---------------
  18523. # Portably unset VAR.
  18524. as_fn_unset ()
  18525. {
  18526. { eval $1=; unset $1;}
  18527. }
  18528. as_unset=as_fn_unset
  18529. # as_fn_append VAR VALUE
  18530. # ----------------------
  18531. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18532. # advantage of any shell optimizations that allow amortized linear growth over
  18533. # repeated appends, instead of the typical quadratic growth present in naive
  18534. # implementations.
  18535. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18536. eval 'as_fn_append ()
  18537. {
  18538. eval $1+=\$2
  18539. }'
  18540. else
  18541. as_fn_append ()
  18542. {
  18543. eval $1=\$$1\$2
  18544. }
  18545. fi # as_fn_append
  18546. # as_fn_arith ARG...
  18547. # ------------------
  18548. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18549. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18550. # must be portable across $(()) and expr.
  18551. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18552. eval 'as_fn_arith ()
  18553. {
  18554. as_val=$(( $* ))
  18555. }'
  18556. else
  18557. as_fn_arith ()
  18558. {
  18559. as_val=`expr "$@" || test $? -eq 1`
  18560. }
  18561. fi # as_fn_arith
  18562. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18563. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18564. as_expr=expr
  18565. else
  18566. as_expr=false
  18567. fi
  18568. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18569. as_basename=basename
  18570. else
  18571. as_basename=false
  18572. fi
  18573. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18574. as_dirname=dirname
  18575. else
  18576. as_dirname=false
  18577. fi
  18578. as_me=`$as_basename -- "$0" ||
  18579. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18580. X"$0" : 'X\(//\)$' \| \
  18581. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18582. $as_echo X/"$0" |
  18583. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18584. s//\1/
  18585. q
  18586. }
  18587. /^X\/\(\/\/\)$/{
  18588. s//\1/
  18589. q
  18590. }
  18591. /^X\/\(\/\).*/{
  18592. s//\1/
  18593. q
  18594. }
  18595. s/.*/./; q'`
  18596. # Avoid depending upon Character Ranges.
  18597. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18598. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18599. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18600. as_cr_digits='0123456789'
  18601. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18602. ECHO_C= ECHO_N= ECHO_T=
  18603. case `echo -n x` in #(((((
  18604. -n*)
  18605. case `echo 'xy\c'` in
  18606. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18607. xy) ECHO_C='\c';;
  18608. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18609. ECHO_T=' ';;
  18610. esac;;
  18611. *)
  18612. ECHO_N='-n';;
  18613. esac
  18614. rm -f conf$$ conf$$.exe conf$$.file
  18615. if test -d conf$$.dir; then
  18616. rm -f conf$$.dir/conf$$.file
  18617. else
  18618. rm -f conf$$.dir
  18619. mkdir conf$$.dir 2>/dev/null
  18620. fi
  18621. if (echo >conf$$.file) 2>/dev/null; then
  18622. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18623. as_ln_s='ln -s'
  18624. # ... but there are two gotchas:
  18625. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18626. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18627. # In both cases, we have to default to `cp -p'.
  18628. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18629. as_ln_s='cp -p'
  18630. elif ln conf$$.file conf$$ 2>/dev/null; then
  18631. as_ln_s=ln
  18632. else
  18633. as_ln_s='cp -p'
  18634. fi
  18635. else
  18636. as_ln_s='cp -p'
  18637. fi
  18638. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18639. rmdir conf$$.dir 2>/dev/null
  18640. # as_fn_mkdir_p
  18641. # -------------
  18642. # Create "$as_dir" as a directory, including parents if necessary.
  18643. as_fn_mkdir_p ()
  18644. {
  18645. case $as_dir in #(
  18646. -*) as_dir=./$as_dir;;
  18647. esac
  18648. test -d "$as_dir" || eval $as_mkdir_p || {
  18649. as_dirs=
  18650. while :; do
  18651. case $as_dir in #(
  18652. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18653. *) as_qdir=$as_dir;;
  18654. esac
  18655. as_dirs="'$as_qdir' $as_dirs"
  18656. as_dir=`$as_dirname -- "$as_dir" ||
  18657. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18658. X"$as_dir" : 'X\(//\)[^/]' \| \
  18659. X"$as_dir" : 'X\(//\)$' \| \
  18660. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18661. $as_echo X"$as_dir" |
  18662. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18663. s//\1/
  18664. q
  18665. }
  18666. /^X\(\/\/\)[^/].*/{
  18667. s//\1/
  18668. q
  18669. }
  18670. /^X\(\/\/\)$/{
  18671. s//\1/
  18672. q
  18673. }
  18674. /^X\(\/\).*/{
  18675. s//\1/
  18676. q
  18677. }
  18678. s/.*/./; q'`
  18679. test -d "$as_dir" && break
  18680. done
  18681. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18682. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  18683. } # as_fn_mkdir_p
  18684. if mkdir -p . 2>/dev/null; then
  18685. as_mkdir_p='mkdir -p "$as_dir"'
  18686. else
  18687. test -d ./-p && rmdir ./-p
  18688. as_mkdir_p=false
  18689. fi
  18690. if test -x / >/dev/null 2>&1; then
  18691. as_test_x='test -x'
  18692. else
  18693. if ls -dL / >/dev/null 2>&1; then
  18694. as_ls_L_option=L
  18695. else
  18696. as_ls_L_option=
  18697. fi
  18698. as_test_x='
  18699. eval sh -c '\''
  18700. if test -d "$1"; then
  18701. test -d "$1/.";
  18702. else
  18703. case $1 in #(
  18704. -*)set "./$1";;
  18705. esac;
  18706. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  18707. ???[sx]*):;;*)false;;esac;fi
  18708. '\'' sh
  18709. '
  18710. fi
  18711. as_executable_p=$as_test_x
  18712. # Sed expression to map a string onto a valid CPP name.
  18713. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18714. # Sed expression to map a string onto a valid variable name.
  18715. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18716. exec 6>&1
  18717. ## ----------------------------------- ##
  18718. ## Main body of $CONFIG_STATUS script. ##
  18719. ## ----------------------------------- ##
  18720. _ASEOF
  18721. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18723. # Save the log message, to keep $0 and so on meaningful, and to
  18724. # report actual input values of CONFIG_FILES etc. instead of their
  18725. # values after options handling.
  18726. ac_log="
  18727. This file was extended by asterisk $as_me 1.4, which was
  18728. generated by GNU Autoconf 2.65. Invocation command line was
  18729. CONFIG_FILES = $CONFIG_FILES
  18730. CONFIG_HEADERS = $CONFIG_HEADERS
  18731. CONFIG_LINKS = $CONFIG_LINKS
  18732. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18733. $ $0 $@
  18734. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18735. "
  18736. _ACEOF
  18737. case $ac_config_files in *"
  18738. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18739. esac
  18740. case $ac_config_headers in *"
  18741. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18742. esac
  18743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18744. # Files that config.status was made for.
  18745. config_files="$ac_config_files"
  18746. config_headers="$ac_config_headers"
  18747. _ACEOF
  18748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18749. ac_cs_usage="\
  18750. \`$as_me' instantiates files and other configuration actions
  18751. from templates according to the current configuration. Unless the files
  18752. and actions are specified as TAGs, all are instantiated by default.
  18753. Usage: $0 [OPTION]... [TAG]...
  18754. -h, --help print this help, then exit
  18755. -V, --version print version number and configuration settings, then exit
  18756. --config print configuration, then exit
  18757. -q, --quiet, --silent
  18758. do not print progress messages
  18759. -d, --debug don't remove temporary files
  18760. --recheck update $as_me by reconfiguring in the same conditions
  18761. --file=FILE[:TEMPLATE]
  18762. instantiate the configuration file FILE
  18763. --header=FILE[:TEMPLATE]
  18764. instantiate the configuration header FILE
  18765. Configuration files:
  18766. $config_files
  18767. Configuration headers:
  18768. $config_headers
  18769. Report bugs to <https://issues.asterisk.org>."
  18770. _ACEOF
  18771. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18772. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18773. ac_cs_version="\\
  18774. asterisk config.status 1.4
  18775. configured by $0, generated by GNU Autoconf 2.65,
  18776. with options \\"\$ac_cs_config\\"
  18777. Copyright (C) 2009 Free Software Foundation, Inc.
  18778. This config.status script is free software; the Free Software Foundation
  18779. gives unlimited permission to copy, distribute and modify it."
  18780. ac_pwd='$ac_pwd'
  18781. srcdir='$srcdir'
  18782. INSTALL='$INSTALL'
  18783. AWK='$AWK'
  18784. test -n "\$AWK" || AWK=awk
  18785. _ACEOF
  18786. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18787. # The default lists apply if the user does not specify any file.
  18788. ac_need_defaults=:
  18789. while test $# != 0
  18790. do
  18791. case $1 in
  18792. --*=*)
  18793. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18794. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18795. ac_shift=:
  18796. ;;
  18797. *)
  18798. ac_option=$1
  18799. ac_optarg=$2
  18800. ac_shift=shift
  18801. ;;
  18802. esac
  18803. case $ac_option in
  18804. # Handling of the options.
  18805. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18806. ac_cs_recheck=: ;;
  18807. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18808. $as_echo "$ac_cs_version"; exit ;;
  18809. --config | --confi | --conf | --con | --co | --c )
  18810. $as_echo "$ac_cs_config"; exit ;;
  18811. --debug | --debu | --deb | --de | --d | -d )
  18812. debug=: ;;
  18813. --file | --fil | --fi | --f )
  18814. $ac_shift
  18815. case $ac_optarg in
  18816. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18817. esac
  18818. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18819. ac_need_defaults=false;;
  18820. --header | --heade | --head | --hea )
  18821. $ac_shift
  18822. case $ac_optarg in
  18823. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18824. esac
  18825. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18826. ac_need_defaults=false;;
  18827. --he | --h)
  18828. # Conflict between --help and --header
  18829. as_fn_error "ambiguous option: \`$1'
  18830. Try \`$0 --help' for more information.";;
  18831. --help | --hel | -h )
  18832. $as_echo "$ac_cs_usage"; exit ;;
  18833. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18834. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18835. ac_cs_silent=: ;;
  18836. # This is an error.
  18837. -*) as_fn_error "unrecognized option: \`$1'
  18838. Try \`$0 --help' for more information." ;;
  18839. *) as_fn_append ac_config_targets " $1"
  18840. ac_need_defaults=false ;;
  18841. esac
  18842. shift
  18843. done
  18844. ac_configure_extra_args=
  18845. if $ac_cs_silent; then
  18846. exec 6>/dev/null
  18847. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18848. fi
  18849. _ACEOF
  18850. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18851. if \$ac_cs_recheck; then
  18852. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18853. shift
  18854. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18855. CONFIG_SHELL='$SHELL'
  18856. export CONFIG_SHELL
  18857. exec "\$@"
  18858. fi
  18859. _ACEOF
  18860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18861. exec 5>>config.log
  18862. {
  18863. echo
  18864. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18865. ## Running $as_me. ##
  18866. _ASBOX
  18867. $as_echo "$ac_log"
  18868. } >&5
  18869. _ACEOF
  18870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18871. _ACEOF
  18872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18873. # Handling of arguments.
  18874. for ac_config_target in $ac_config_targets
  18875. do
  18876. case $ac_config_target in
  18877. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  18878. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  18879. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  18880. "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
  18881. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18882. esac
  18883. done
  18884. # If the user did not use the arguments to specify the items to instantiate,
  18885. # then the envvar interface is used. Set only those that are not.
  18886. # We use the long form for the default assignment because of an extremely
  18887. # bizarre bug on SunOS 4.1.3.
  18888. if $ac_need_defaults; then
  18889. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18890. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18891. fi
  18892. # Have a temporary directory for convenience. Make it in the build tree
  18893. # simply because there is no reason against having it here, and in addition,
  18894. # creating and moving files from /tmp can sometimes cause problems.
  18895. # Hook for its removal unless debugging.
  18896. # Note that there is a small window in which the directory will not be cleaned:
  18897. # after its creation but before its name has been assigned to `$tmp'.
  18898. $debug ||
  18899. {
  18900. tmp=
  18901. trap 'exit_status=$?
  18902. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  18903. ' 0
  18904. trap 'as_fn_exit 1' 1 2 13 15
  18905. }
  18906. # Create a (secure) tmp directory for tmp files.
  18907. {
  18908. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18909. test -n "$tmp" && test -d "$tmp"
  18910. } ||
  18911. {
  18912. tmp=./conf$$-$RANDOM
  18913. (umask 077 && mkdir "$tmp")
  18914. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  18915. # Set up the scripts for CONFIG_FILES section.
  18916. # No need to generate them if there are no CONFIG_FILES.
  18917. # This happens for instance with `./config.status config.h'.
  18918. if test -n "$CONFIG_FILES"; then
  18919. ac_cr=`echo X | tr X '\015'`
  18920. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18921. # But we know of no other shell where ac_cr would be empty at this
  18922. # point, so we can use a bashism as a fallback.
  18923. if test "x$ac_cr" = x; then
  18924. eval ac_cr=\$\'\\r\'
  18925. fi
  18926. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18927. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18928. ac_cs_awk_cr='\r'
  18929. else
  18930. ac_cs_awk_cr=$ac_cr
  18931. fi
  18932. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  18933. _ACEOF
  18934. {
  18935. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18936. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18937. echo "_ACEOF"
  18938. } >conf$$subs.sh ||
  18939. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18940. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  18941. ac_delim='%!_!# '
  18942. for ac_last_try in false false false false false :; do
  18943. . ./conf$$subs.sh ||
  18944. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18945. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18946. if test $ac_delim_n = $ac_delim_num; then
  18947. break
  18948. elif $ac_last_try; then
  18949. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18950. else
  18951. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18952. fi
  18953. done
  18954. rm -f conf$$subs.sh
  18955. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18956. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  18957. _ACEOF
  18958. sed -n '
  18959. h
  18960. s/^/S["/; s/!.*/"]=/
  18961. p
  18962. g
  18963. s/^[^!]*!//
  18964. :repl
  18965. t repl
  18966. s/'"$ac_delim"'$//
  18967. t delim
  18968. :nl
  18969. h
  18970. s/\(.\{148\}\)..*/\1/
  18971. t more1
  18972. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18973. p
  18974. n
  18975. b repl
  18976. :more1
  18977. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18978. p
  18979. g
  18980. s/.\{148\}//
  18981. t nl
  18982. :delim
  18983. h
  18984. s/\(.\{148\}\)..*/\1/
  18985. t more2
  18986. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18987. p
  18988. b
  18989. :more2
  18990. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18991. p
  18992. g
  18993. s/.\{148\}//
  18994. t delim
  18995. ' <conf$$subs.awk | sed '
  18996. /^[^""]/{
  18997. N
  18998. s/\n//
  18999. }
  19000. ' >>$CONFIG_STATUS || ac_write_fail=1
  19001. rm -f conf$$subs.awk
  19002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19003. _ACAWK
  19004. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  19005. for (key in S) S_is_set[key] = 1
  19006. FS = ""
  19007. }
  19008. {
  19009. line = $ 0
  19010. nfields = split(line, field, "@")
  19011. substed = 0
  19012. len = length(field[1])
  19013. for (i = 2; i < nfields; i++) {
  19014. key = field[i]
  19015. keylen = length(key)
  19016. if (S_is_set[key]) {
  19017. value = S[key]
  19018. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19019. len += length(value) + length(field[++i])
  19020. substed = 1
  19021. } else
  19022. len += 1 + keylen
  19023. }
  19024. print line
  19025. }
  19026. _ACAWK
  19027. _ACEOF
  19028. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19029. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19030. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19031. else
  19032. cat
  19033. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  19034. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  19035. _ACEOF
  19036. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19037. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19038. # trailing colons and then remove the whole line if VPATH becomes empty
  19039. # (actually we leave an empty line to preserve line numbers).
  19040. if test "x$srcdir" = x.; then
  19041. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19042. s/:*\$(srcdir):*/:/
  19043. s/:*\${srcdir}:*/:/
  19044. s/:*@srcdir@:*/:/
  19045. s/^\([^=]*=[ ]*\):*/\1/
  19046. s/:*$//
  19047. s/^[^=]*=[ ]*$//
  19048. }'
  19049. fi
  19050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19051. fi # test -n "$CONFIG_FILES"
  19052. # Set up the scripts for CONFIG_HEADERS section.
  19053. # No need to generate them if there are no CONFIG_HEADERS.
  19054. # This happens for instance with `./config.status Makefile'.
  19055. if test -n "$CONFIG_HEADERS"; then
  19056. cat >"$tmp/defines.awk" <<\_ACAWK ||
  19057. BEGIN {
  19058. _ACEOF
  19059. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19060. # here-document in config.status, that substitutes the proper values into
  19061. # config.h.in to produce config.h.
  19062. # Create a delimiter string that does not exist in confdefs.h, to ease
  19063. # handling of long lines.
  19064. ac_delim='%!_!# '
  19065. for ac_last_try in false false :; do
  19066. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  19067. if test -z "$ac_t"; then
  19068. break
  19069. elif $ac_last_try; then
  19070. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  19071. else
  19072. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19073. fi
  19074. done
  19075. # For the awk script, D is an array of macro values keyed by name,
  19076. # likewise P contains macro parameters if any. Preserve backslash
  19077. # newline sequences.
  19078. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19079. sed -n '
  19080. s/.\{148\}/&'"$ac_delim"'/g
  19081. t rset
  19082. :rset
  19083. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19084. t def
  19085. d
  19086. :def
  19087. s/\\$//
  19088. t bsnl
  19089. s/["\\]/\\&/g
  19090. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19091. D["\1"]=" \3"/p
  19092. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19093. d
  19094. :bsnl
  19095. s/["\\]/\\&/g
  19096. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19097. D["\1"]=" \3\\\\\\n"\\/p
  19098. t cont
  19099. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19100. t cont
  19101. d
  19102. :cont
  19103. n
  19104. s/.\{148\}/&'"$ac_delim"'/g
  19105. t clear
  19106. :clear
  19107. s/\\$//
  19108. t bsnlc
  19109. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19110. d
  19111. :bsnlc
  19112. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19113. b cont
  19114. ' <confdefs.h | sed '
  19115. s/'"$ac_delim"'/"\\\
  19116. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19117. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19118. for (key in D) D_is_set[key] = 1
  19119. FS = ""
  19120. }
  19121. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19122. line = \$ 0
  19123. split(line, arg, " ")
  19124. if (arg[1] == "#") {
  19125. defundef = arg[2]
  19126. mac1 = arg[3]
  19127. } else {
  19128. defundef = substr(arg[1], 2)
  19129. mac1 = arg[2]
  19130. }
  19131. split(mac1, mac2, "(") #)
  19132. macro = mac2[1]
  19133. prefix = substr(line, 1, index(line, defundef) - 1)
  19134. if (D_is_set[macro]) {
  19135. # Preserve the white space surrounding the "#".
  19136. print prefix "define", macro P[macro] D[macro]
  19137. next
  19138. } else {
  19139. # Replace #undef with comments. This is necessary, for example,
  19140. # in the case of _POSIX_SOURCE, which is predefined and required
  19141. # on some systems where configure will not decide to define it.
  19142. if (defundef == "undef") {
  19143. print "/*", prefix defundef, macro, "*/"
  19144. next
  19145. }
  19146. }
  19147. }
  19148. { print }
  19149. _ACAWK
  19150. _ACEOF
  19151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19152. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  19153. fi # test -n "$CONFIG_HEADERS"
  19154. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  19155. shift
  19156. for ac_tag
  19157. do
  19158. case $ac_tag in
  19159. :[FHLC]) ac_mode=$ac_tag; continue;;
  19160. esac
  19161. case $ac_mode$ac_tag in
  19162. :[FHL]*:*);;
  19163. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19164. :[FH]-) ac_tag=-:-;;
  19165. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19166. esac
  19167. ac_save_IFS=$IFS
  19168. IFS=:
  19169. set x $ac_tag
  19170. IFS=$ac_save_IFS
  19171. shift
  19172. ac_file=$1
  19173. shift
  19174. case $ac_mode in
  19175. :L) ac_source=$1;;
  19176. :[FH])
  19177. ac_file_inputs=
  19178. for ac_f
  19179. do
  19180. case $ac_f in
  19181. -) ac_f="$tmp/stdin";;
  19182. *) # Look for the file first in the build tree, then in the source tree
  19183. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19184. # because $ac_f cannot contain `:'.
  19185. test -f "$ac_f" ||
  19186. case $ac_f in
  19187. [\\/$]*) false;;
  19188. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19189. esac ||
  19190. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19191. esac
  19192. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19193. as_fn_append ac_file_inputs " '$ac_f'"
  19194. done
  19195. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19196. # use $as_me), people would be surprised to read:
  19197. # /* config.h. Generated by config.status. */
  19198. configure_input='Generated from '`
  19199. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19200. `' by configure.'
  19201. if test x"$ac_file" != x-; then
  19202. configure_input="$ac_file. $configure_input"
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19204. $as_echo "$as_me: creating $ac_file" >&6;}
  19205. fi
  19206. # Neutralize special characters interpreted by sed in replacement strings.
  19207. case $configure_input in #(
  19208. *\&* | *\|* | *\\* )
  19209. ac_sed_conf_input=`$as_echo "$configure_input" |
  19210. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19211. *) ac_sed_conf_input=$configure_input;;
  19212. esac
  19213. case $ac_tag in
  19214. *:-:* | *:-) cat >"$tmp/stdin" \
  19215. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  19216. esac
  19217. ;;
  19218. esac
  19219. ac_dir=`$as_dirname -- "$ac_file" ||
  19220. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19221. X"$ac_file" : 'X\(//\)[^/]' \| \
  19222. X"$ac_file" : 'X\(//\)$' \| \
  19223. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19224. $as_echo X"$ac_file" |
  19225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19226. s//\1/
  19227. q
  19228. }
  19229. /^X\(\/\/\)[^/].*/{
  19230. s//\1/
  19231. q
  19232. }
  19233. /^X\(\/\/\)$/{
  19234. s//\1/
  19235. q
  19236. }
  19237. /^X\(\/\).*/{
  19238. s//\1/
  19239. q
  19240. }
  19241. s/.*/./; q'`
  19242. as_dir="$ac_dir"; as_fn_mkdir_p
  19243. ac_builddir=.
  19244. case "$ac_dir" in
  19245. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19246. *)
  19247. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19248. # A ".." for each directory in $ac_dir_suffix.
  19249. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19250. case $ac_top_builddir_sub in
  19251. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19252. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19253. esac ;;
  19254. esac
  19255. ac_abs_top_builddir=$ac_pwd
  19256. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19257. # for backward compatibility:
  19258. ac_top_builddir=$ac_top_build_prefix
  19259. case $srcdir in
  19260. .) # We are building in place.
  19261. ac_srcdir=.
  19262. ac_top_srcdir=$ac_top_builddir_sub
  19263. ac_abs_top_srcdir=$ac_pwd ;;
  19264. [\\/]* | ?:[\\/]* ) # Absolute name.
  19265. ac_srcdir=$srcdir$ac_dir_suffix;
  19266. ac_top_srcdir=$srcdir
  19267. ac_abs_top_srcdir=$srcdir ;;
  19268. *) # Relative name.
  19269. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19270. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19271. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19272. esac
  19273. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19274. case $ac_mode in
  19275. :F)
  19276. #
  19277. # CONFIG_FILE
  19278. #
  19279. case $INSTALL in
  19280. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19281. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19282. esac
  19283. _ACEOF
  19284. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19285. # If the template does not know about datarootdir, expand it.
  19286. # FIXME: This hack should be removed a few years after 2.60.
  19287. ac_datarootdir_hack=; ac_datarootdir_seen=
  19288. ac_sed_dataroot='
  19289. /datarootdir/ {
  19290. p
  19291. q
  19292. }
  19293. /@datadir@/p
  19294. /@docdir@/p
  19295. /@infodir@/p
  19296. /@localedir@/p
  19297. /@mandir@/p'
  19298. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19299. *datarootdir*) ac_datarootdir_seen=yes;;
  19300. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19302. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19303. _ACEOF
  19304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19305. ac_datarootdir_hack='
  19306. s&@datadir@&$datadir&g
  19307. s&@docdir@&$docdir&g
  19308. s&@infodir@&$infodir&g
  19309. s&@localedir@&$localedir&g
  19310. s&@mandir@&$mandir&g
  19311. s&\\\${datarootdir}&$datarootdir&g' ;;
  19312. esac
  19313. _ACEOF
  19314. # Neutralize VPATH when `$srcdir' = `.'.
  19315. # Shell code in configure.ac might set extrasub.
  19316. # FIXME: do we really want to maintain this feature?
  19317. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19318. ac_sed_extra="$ac_vpsub
  19319. $extrasub
  19320. _ACEOF
  19321. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19322. :t
  19323. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19324. s|@configure_input@|$ac_sed_conf_input|;t t
  19325. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19326. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19327. s&@srcdir@&$ac_srcdir&;t t
  19328. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19329. s&@top_srcdir@&$ac_top_srcdir&;t t
  19330. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19331. s&@builddir@&$ac_builddir&;t t
  19332. s&@abs_builddir@&$ac_abs_builddir&;t t
  19333. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19334. s&@INSTALL@&$ac_INSTALL&;t t
  19335. $ac_datarootdir_hack
  19336. "
  19337. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  19338. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19339. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19340. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  19341. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  19342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19343. which seems to be undefined. Please make sure it is defined." >&5
  19344. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19345. which seems to be undefined. Please make sure it is defined." >&2;}
  19346. rm -f "$tmp/stdin"
  19347. case $ac_file in
  19348. -) cat "$tmp/out" && rm -f "$tmp/out";;
  19349. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  19350. esac \
  19351. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19352. ;;
  19353. :H)
  19354. #
  19355. # CONFIG_HEADER
  19356. #
  19357. if test x"$ac_file" != x-; then
  19358. {
  19359. $as_echo "/* $configure_input */" \
  19360. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  19361. } >"$tmp/config.h" \
  19362. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19363. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19365. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19366. else
  19367. rm -f "$ac_file"
  19368. mv "$tmp/config.h" "$ac_file" \
  19369. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19370. fi
  19371. else
  19372. $as_echo "/* $configure_input */" \
  19373. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  19374. || as_fn_error "could not create -" "$LINENO" 5
  19375. fi
  19376. ;;
  19377. esac
  19378. done # for ac_tag
  19379. as_fn_exit 0
  19380. _ACEOF
  19381. ac_clean_files=$ac_clean_files_save
  19382. test $ac_write_fail = 0 ||
  19383. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19384. # configure is writing to config.log, and then calls config.status.
  19385. # config.status does its own redirection, appending to config.log.
  19386. # Unfortunately, on DOS this fails, as config.log is still kept open
  19387. # by configure, so config.status won't be able to write to it; its
  19388. # output is simply discarded. So we exec the FD to /dev/null,
  19389. # effectively closing config.log, so it can be properly (re)opened and
  19390. # appended to by config.status. When coming back to configure, we
  19391. # need to make the FD available again.
  19392. if test "$no_create" != yes; then
  19393. ac_cs_success=:
  19394. ac_config_status_args=
  19395. test "$silent" = yes &&
  19396. ac_config_status_args="$ac_config_status_args --quiet"
  19397. exec 5>/dev/null
  19398. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19399. exec 5>>config.log
  19400. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19401. # would make configure fail if this is the last instruction.
  19402. $ac_cs_success || as_fn_exit $?
  19403. fi
  19404. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19406. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19407. fi
  19408. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  19409. if test "x${ac_cv_path_CMP}" = "x:"; then
  19410. ( cd `pwd`/menuselect && ./configure )
  19411. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  19412. ( cd `pwd`/menuselect && ./configure )
  19413. fi ; fi
  19414. rm makeopts.acbak makeopts.acbak2
  19415. if test "x${silent}" != "xyes" ; then
  19416. echo
  19417. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  19418. echo " .\$7\$7.. .7\$\$7:. "
  19419. echo " .\$\$:. ,\$7.7 "
  19420. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  19421. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  19422. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  19423. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  19424. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  19425. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  19426. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  19427. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  19428. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  19429. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  19430. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  19431. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  19432. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  19433. echo " \$\$\$\$\$ \$\$\$ "
  19434. echo " \$\$\$\$7. \$\$ (TM) "
  19435. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  19436. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  19437. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  19438. echo
  19439. fi
  19440. { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
  19441. $as_echo "$as_me: Package configured for: " >&6;}
  19442. { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
  19443. $as_echo "$as_me: OS type : $host_os" >&6;}
  19444. { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
  19445. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  19446. if test "${cross_compiling}" = "yes"; then
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
  19448. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  19449. fi