aconfigure 335 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for pjproject 2.x.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  167. if (eval "$as_required") 2>/dev/null
  168. then :
  169. as_have_required=yes
  170. else $as_nop
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  174. then :
  175. else $as_nop
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. case $as_dir in #(((
  182. '') as_dir=./ ;;
  183. */) ;;
  184. *) as_dir=$as_dir/ ;;
  185. esac
  186. as_found=:
  187. case $as_dir in #(
  188. /*)
  189. for as_base in sh bash ksh sh5; do
  190. # Try only shells that exist, to save several forks.
  191. as_shell=$as_dir$as_base
  192. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  193. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  194. then :
  195. CONFIG_SHELL=$as_shell as_have_required=yes
  196. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  197. then :
  198. break 2
  199. fi
  200. fi
  201. done;;
  202. esac
  203. as_found=false
  204. done
  205. IFS=$as_save_IFS
  206. if $as_found
  207. then :
  208. else $as_nop
  209. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  210. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  211. then :
  212. CONFIG_SHELL=$SHELL as_have_required=yes
  213. fi
  214. fi
  215. if test "x$CONFIG_SHELL" != x
  216. then :
  217. export CONFIG_SHELL
  218. # We cannot yet assume a decent shell, so we have to provide a
  219. # neutralization value for shells without unset; and this also
  220. # works around shells that cannot unset nonexistent variables.
  221. # Preserve -v and -x to the replacement shell.
  222. BASH_ENV=/dev/null
  223. ENV=/dev/null
  224. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  225. case $- in # ((((
  226. *v*x* | *x*v* ) as_opts=-vx ;;
  227. *v* ) as_opts=-v ;;
  228. *x* ) as_opts=-x ;;
  229. * ) as_opts= ;;
  230. esac
  231. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  232. # Admittedly, this is quite paranoid, since all the known shells bail
  233. # out after a failed `exec'.
  234. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  235. exit 255
  236. fi
  237. if test x$as_have_required = xno
  238. then :
  239. printf "%s\n" "$0: This script requires a shell more modern than all"
  240. printf "%s\n" "$0: the shells that I found on your system."
  241. if test ${ZSH_VERSION+y} ; then
  242. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  243. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  244. else
  245. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  246. $0: including any error possibly output before this
  247. $0: message. Then install a modern shell, or manually run
  248. $0: the script under such a shell if you do have one."
  249. fi
  250. exit 1
  251. fi
  252. fi
  253. fi
  254. SHELL=${CONFIG_SHELL-/bin/sh}
  255. export SHELL
  256. # Unset more variables known to interfere with behavior of common tools.
  257. CLICOLOR_FORCE= GREP_OPTIONS=
  258. unset CLICOLOR_FORCE GREP_OPTIONS
  259. ## --------------------- ##
  260. ## M4sh Shell Functions. ##
  261. ## --------------------- ##
  262. # as_fn_unset VAR
  263. # ---------------
  264. # Portably unset VAR.
  265. as_fn_unset ()
  266. {
  267. { eval $1=; unset $1;}
  268. }
  269. as_unset=as_fn_unset
  270. # as_fn_set_status STATUS
  271. # -----------------------
  272. # Set $? to STATUS, without forking.
  273. as_fn_set_status ()
  274. {
  275. return $1
  276. } # as_fn_set_status
  277. # as_fn_exit STATUS
  278. # -----------------
  279. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  280. as_fn_exit ()
  281. {
  282. set +e
  283. as_fn_set_status $1
  284. exit $1
  285. } # as_fn_exit
  286. # as_fn_nop
  287. # ---------
  288. # Do nothing but, unlike ":", preserve the value of $?.
  289. as_fn_nop ()
  290. {
  291. return $?
  292. }
  293. as_nop=as_fn_nop
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. printf "%s\n" X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  352. then :
  353. eval 'as_fn_append ()
  354. {
  355. eval $1+=\$2
  356. }'
  357. else $as_nop
  358. as_fn_append ()
  359. {
  360. eval $1=\$$1\$2
  361. }
  362. fi # as_fn_append
  363. # as_fn_arith ARG...
  364. # ------------------
  365. # Perform arithmetic evaluation on the ARGs, and store the result in the
  366. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  367. # must be portable across $(()) and expr.
  368. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  369. then :
  370. eval 'as_fn_arith ()
  371. {
  372. as_val=$(( $* ))
  373. }'
  374. else $as_nop
  375. as_fn_arith ()
  376. {
  377. as_val=`expr "$@" || test $? -eq 1`
  378. }
  379. fi # as_fn_arith
  380. # as_fn_nop
  381. # ---------
  382. # Do nothing but, unlike ":", preserve the value of $?.
  383. as_fn_nop ()
  384. {
  385. return $?
  386. }
  387. as_nop=as_fn_nop
  388. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  389. # ----------------------------------------
  390. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  391. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  392. # script with STATUS, using 1 if that was 0.
  393. as_fn_error ()
  394. {
  395. as_status=$1; test $as_status -eq 0 && as_status=1
  396. if test "$4"; then
  397. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  398. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  399. fi
  400. printf "%s\n" "$as_me: error: $2" >&2
  401. as_fn_exit $as_status
  402. } # as_fn_error
  403. if expr a : '\(a\)' >/dev/null 2>&1 &&
  404. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  405. as_expr=expr
  406. else
  407. as_expr=false
  408. fi
  409. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  410. as_basename=basename
  411. else
  412. as_basename=false
  413. fi
  414. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  415. as_dirname=dirname
  416. else
  417. as_dirname=false
  418. fi
  419. as_me=`$as_basename -- "$0" ||
  420. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  421. X"$0" : 'X\(//\)$' \| \
  422. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  423. printf "%s\n" X/"$0" |
  424. sed '/^.*\/\([^/][^/]*\)\/*$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\/\)$/{
  429. s//\1/
  430. q
  431. }
  432. /^X\/\(\/\).*/{
  433. s//\1/
  434. q
  435. }
  436. s/.*/./; q'`
  437. # Avoid depending upon Character Ranges.
  438. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  439. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  440. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  441. as_cr_digits='0123456789'
  442. as_cr_alnum=$as_cr_Letters$as_cr_digits
  443. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  444. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  445. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  446. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  447. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  448. sed -n '
  449. p
  450. /[$]LINENO/=
  451. ' <$as_myself |
  452. sed '
  453. s/[$]LINENO.*/&-/
  454. t lineno
  455. b
  456. :lineno
  457. N
  458. :loop
  459. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  460. t loop
  461. s/-\n.*//
  462. ' >$as_me.lineno &&
  463. chmod +x "$as_me.lineno" ||
  464. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  465. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  466. # already done that, so ensure we don't try to do so again and fall
  467. # in an infinite loop. This has already happened in practice.
  468. _as_can_reexec=no; export _as_can_reexec
  469. # Don't try to exec as it changes $[0], causing all sort of problems
  470. # (the dirname of $[0] is not the place where we might find the
  471. # original and so on. Autoconf is especially sensitive to this).
  472. . "./$as_me.lineno"
  473. # Exit status is that of the last command.
  474. exit
  475. }
  476. # Determine whether it's possible to make 'echo' print without a newline.
  477. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  478. # for compatibility with existing Makefiles.
  479. ECHO_C= ECHO_N= ECHO_T=
  480. case `echo -n x` in #(((((
  481. -n*)
  482. case `echo 'xy\c'` in
  483. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  484. xy) ECHO_C='\c';;
  485. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  486. ECHO_T=' ';;
  487. esac;;
  488. *)
  489. ECHO_N='-n';;
  490. esac
  491. # For backward compatibility with old third-party macros, we provide
  492. # the shell variables $as_echo and $as_echo_n. New code should use
  493. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  494. as_echo='printf %s\n'
  495. as_echo_n='printf %s'
  496. rm -f conf$$ conf$$.exe conf$$.file
  497. if test -d conf$$.dir; then
  498. rm -f conf$$.dir/conf$$.file
  499. else
  500. rm -f conf$$.dir
  501. mkdir conf$$.dir 2>/dev/null
  502. fi
  503. if (echo >conf$$.file) 2>/dev/null; then
  504. if ln -s conf$$.file conf$$ 2>/dev/null; then
  505. as_ln_s='ln -s'
  506. # ... but there are two gotchas:
  507. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  508. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  509. # In both cases, we have to default to `cp -pR'.
  510. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  511. as_ln_s='cp -pR'
  512. elif ln conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s=ln
  514. else
  515. as_ln_s='cp -pR'
  516. fi
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  521. rmdir conf$$.dir 2>/dev/null
  522. if mkdir -p . 2>/dev/null; then
  523. as_mkdir_p='mkdir -p "$as_dir"'
  524. else
  525. test -d ./-p && rmdir ./-p
  526. as_mkdir_p=false
  527. fi
  528. as_test_x='test -x'
  529. as_executable_p=as_fn_executable_p
  530. # Sed expression to map a string onto a valid CPP name.
  531. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  532. # Sed expression to map a string onto a valid variable name.
  533. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  534. test -n "$DJDIR" || exec 7<&0 </dev/null
  535. exec 6>&1
  536. # Name of the host.
  537. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  538. # so uname gets run too.
  539. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  540. #
  541. # Initializations.
  542. #
  543. ac_default_prefix=/usr/local
  544. ac_clean_files=
  545. ac_config_libobj_dir=.
  546. LIBOBJS=
  547. cross_compiling=no
  548. subdirs=
  549. MFLAGS=
  550. MAKEFLAGS=
  551. # Identity of this package.
  552. PACKAGE_NAME='pjproject'
  553. PACKAGE_TARNAME='pjproject'
  554. PACKAGE_VERSION='2.x'
  555. PACKAGE_STRING='pjproject 2.x'
  556. PACKAGE_BUGREPORT=''
  557. PACKAGE_URL=''
  558. # Factoring default headers for most tests.
  559. ac_includes_default="\
  560. #include <stddef.h>
  561. #ifdef HAVE_STDIO_H
  562. # include <stdio.h>
  563. #endif
  564. #ifdef HAVE_STDLIB_H
  565. # include <stdlib.h>
  566. #endif
  567. #ifdef HAVE_STRING_H
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_STRINGS_H
  577. # include <strings.h>
  578. #endif
  579. #ifdef HAVE_SYS_TYPES_H
  580. # include <sys/types.h>
  581. #endif
  582. #ifdef HAVE_SYS_STAT_H
  583. # include <sys/stat.h>
  584. #endif
  585. #ifdef HAVE_UNISTD_H
  586. # include <unistd.h>
  587. #endif"
  588. ac_header_c_list=
  589. ac_subst_vars='LTLIBOBJS
  590. LIBOBJS
  591. ac_main_obj
  592. ac_host
  593. ac_webrtc_aec3_ldflags
  594. ac_webrtc_aec3_cflags
  595. ac_webrtc_aec3_instset
  596. ac_no_webrtc_aec3
  597. ac_webrtc_ldflags
  598. ac_webrtc_cflags
  599. ac_webrtc_instset
  600. ac_no_webrtc
  601. ac_no_yuv
  602. ac_no_srtp
  603. ac_lyra_model_path
  604. ac_no_lyra_codec
  605. ac_no_bcg729
  606. opus_present
  607. opus_h_present
  608. ac_no_opus
  609. silk_present
  610. silk_h_present
  611. ac_no_silk
  612. opencore_amrwb_dec_present
  613. opencore_amrwb_dec_h_present
  614. opencore_amrwb_enc_present
  615. opencore_amrwb_enc_h_present
  616. opencore_amrnb_present
  617. opencore_amrnb_h_present
  618. ac_no_opencore_amrwb
  619. ac_no_opencore_amrnb
  620. libgnutls_present
  621. gnutls_h_present
  622. libcrypto_present
  623. libssl_present
  624. openssl_h_present
  625. ac_ssl_backend
  626. ac_ssl_has_aes_gcm
  627. ac_no_ssl
  628. ac_no_mediacodec
  629. ac_vpx_ldflags
  630. ac_vpx_cflags
  631. ac_openh264_ldflags
  632. ac_openh264_cflags
  633. ac_v4l2_ldflags
  634. ac_v4l2_cflags
  635. PKG_CONFIG
  636. SAVED_PKG_CONFIG_PATH
  637. ac_ffmpeg_ldflags
  638. ac_ffmpeg_cflags
  639. ac_has_ffmpeg
  640. ac_sdl_ldflags
  641. ac_sdl_cflags
  642. SDL_CONFIG
  643. ac_resample_dll
  644. ac_no_ilbc_codec
  645. ac_no_speex_codec
  646. ac_no_g7221_codec
  647. ac_no_g722_codec
  648. ac_no_gsm_codec
  649. ac_no_l16_codec
  650. ac_no_g711_codec
  651. ac_no_speex_aec
  652. ac_no_large_filter
  653. ac_no_small_filter
  654. ac_qt_cflags
  655. ac_pjmedia_video_has_qt
  656. ac_darwin_cflags
  657. ac_pjmedia_video_has_ios_opengl
  658. ac_pjmedia_video_has_vtoolbox
  659. ac_pjmedia_video_has_metal
  660. ac_pjmedia_video_has_darwin
  661. ac_dshow_ldflags
  662. ac_dshow_cflags
  663. ac_pjmedia_video_dev_has_dshow
  664. ac_android_cflags
  665. ac_pjmedia_video_has_android
  666. ac_pjmedia_video
  667. ac_pjmedia_audiodev_objs
  668. ac_oboe_ldflags
  669. ac_oboe_cflags
  670. ac_pa_cflags
  671. ac_external_pa
  672. ac_pjmedia_snd
  673. ac_pjmedia_resample
  674. ac_external_webrtc_aec3
  675. ac_external_webrtc
  676. ac_external_yuv
  677. ac_srtp_shutdown_present
  678. ac_srtp_deinit_present
  679. ac_external_srtp_lib
  680. ac_external_srtp
  681. ac_external_gsm
  682. ac_external_speex
  683. ac_no_pjsua2
  684. ac_shared_libraries
  685. ac_linux_poll
  686. ac_os_objs
  687. ac_std_cpp_lib
  688. ac_target_arch
  689. ac_cross_compile
  690. ac_shlib_suffix
  691. ac_cflags
  692. ac_build_mak_vars
  693. ac_pjdir
  694. CC_CFLAGS
  695. CC_OPTIMIZE
  696. CC_DEF
  697. CC_INC
  698. CC_OUT
  699. LIBEXT2
  700. LIBEXT
  701. LDOUT
  702. LD
  703. AR_FLAGS
  704. ac_ct_AR
  705. AR
  706. RANLIB
  707. ac_ct_CXX
  708. CXXFLAGS
  709. CXX
  710. OBJEXT
  711. EXEEXT
  712. ac_ct_CC
  713. CPPFLAGS
  714. LDFLAGS
  715. CFLAGS
  716. CC
  717. target_os
  718. target_vendor
  719. target_cpu
  720. target
  721. host_os
  722. host_vendor
  723. host_cpu
  724. host
  725. build_os
  726. build_vendor
  727. build_cpu
  728. build
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. runstatedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. enable_libuuid
  772. enable_floating_point
  773. enable_kqueue
  774. enable_epoll
  775. enable_shared
  776. enable_pjsua2
  777. with_upnp
  778. enable_upnp
  779. with_external_speex
  780. with_external_gsm
  781. with_external_srtp
  782. with_external_yuv
  783. with_external_webrtc
  784. with_external_webrtc_aec3
  785. enable_resample
  786. enable_sound
  787. with_external_pa
  788. with_oboe
  789. enable_video
  790. enable_ext_sound
  791. enable_small_filter
  792. enable_large_filter
  793. enable_speex_aec
  794. enable_g711_codec
  795. enable_l16_codec
  796. enable_gsm_codec
  797. enable_g722_codec
  798. enable_g7221_codec
  799. enable_speex_codec
  800. enable_ilbc_codec
  801. enable_libsamplerate
  802. enable_resample_dll
  803. enable_speex_resample
  804. with_sdl
  805. enable_sdl
  806. with_ffmpeg
  807. enable_ffmpeg
  808. enable_v4l2
  809. with_openh264
  810. enable_openh264
  811. with_vpx
  812. enable_vpx
  813. enable_ipp
  814. with_ipp
  815. with_ipp_samples
  816. with_ipp_arch
  817. enable_android_mediacodec
  818. with_ssl
  819. with_gnutls
  820. enable_darwin_ssl
  821. enable_ssl
  822. with_opencore_amrnb
  823. with_opencore_amr
  824. with_opencore_amrwbenc
  825. enable_opencore_amr
  826. with_silk
  827. enable_silk
  828. with_opus
  829. enable_opus
  830. with_bcg729
  831. enable_bcg729
  832. with_lyra
  833. enable_lyra
  834. enable_libsrtp
  835. enable_libyuv
  836. enable_libwebrtc
  837. enable_libwebrtc_aec3
  838. '
  839. ac_precious_vars='build_alias
  840. host_alias
  841. target_alias
  842. CC
  843. CFLAGS
  844. LDFLAGS
  845. LIBS
  846. CPPFLAGS
  847. CXX
  848. CXXFLAGS
  849. CCC'
  850. # Initialize some variables set by options.
  851. ac_init_help=
  852. ac_init_version=false
  853. ac_unrecognized_opts=
  854. ac_unrecognized_sep=
  855. # The variables have the same names as the options, with
  856. # dashes changed to underlines.
  857. cache_file=/dev/null
  858. exec_prefix=NONE
  859. no_create=
  860. no_recursion=
  861. prefix=NONE
  862. program_prefix=NONE
  863. program_suffix=NONE
  864. program_transform_name=s,x,x,
  865. silent=
  866. site=
  867. srcdir=
  868. verbose=
  869. x_includes=NONE
  870. x_libraries=NONE
  871. # Installation directory options.
  872. # These are left unexpanded so users can "make install exec_prefix=/foo"
  873. # and all the variables that are supposed to be based on exec_prefix
  874. # by default will actually change.
  875. # Use braces instead of parens because sh, perl, etc. also accept them.
  876. # (The list follows the same order as the GNU Coding Standards.)
  877. bindir='${exec_prefix}/bin'
  878. sbindir='${exec_prefix}/sbin'
  879. libexecdir='${exec_prefix}/libexec'
  880. datarootdir='${prefix}/share'
  881. datadir='${datarootdir}'
  882. sysconfdir='${prefix}/etc'
  883. sharedstatedir='${prefix}/com'
  884. localstatedir='${prefix}/var'
  885. runstatedir='${localstatedir}/run'
  886. includedir='${prefix}/include'
  887. oldincludedir='/usr/include'
  888. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  889. infodir='${datarootdir}/info'
  890. htmldir='${docdir}'
  891. dvidir='${docdir}'
  892. pdfdir='${docdir}'
  893. psdir='${docdir}'
  894. libdir='${exec_prefix}/lib'
  895. localedir='${datarootdir}/locale'
  896. mandir='${datarootdir}/man'
  897. ac_prev=
  898. ac_dashdash=
  899. for ac_option
  900. do
  901. # If the previous option needs an argument, assign it.
  902. if test -n "$ac_prev"; then
  903. eval $ac_prev=\$ac_option
  904. ac_prev=
  905. continue
  906. fi
  907. case $ac_option in
  908. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  909. *=) ac_optarg= ;;
  910. *) ac_optarg=yes ;;
  911. esac
  912. case $ac_dashdash$ac_option in
  913. --)
  914. ac_dashdash=yes ;;
  915. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  916. ac_prev=bindir ;;
  917. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  918. bindir=$ac_optarg ;;
  919. -build | --build | --buil | --bui | --bu)
  920. ac_prev=build_alias ;;
  921. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  922. build_alias=$ac_optarg ;;
  923. -cache-file | --cache-file | --cache-fil | --cache-fi \
  924. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  925. ac_prev=cache_file ;;
  926. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  927. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  928. cache_file=$ac_optarg ;;
  929. --config-cache | -C)
  930. cache_file=config.cache ;;
  931. -datadir | --datadir | --datadi | --datad)
  932. ac_prev=datadir ;;
  933. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  934. datadir=$ac_optarg ;;
  935. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  936. | --dataroo | --dataro | --datar)
  937. ac_prev=datarootdir ;;
  938. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  939. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  940. datarootdir=$ac_optarg ;;
  941. -disable-* | --disable-*)
  942. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  943. # Reject names that are not valid shell variable names.
  944. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  946. ac_useropt_orig=$ac_useropt
  947. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  948. case $ac_user_opts in
  949. *"
  950. "enable_$ac_useropt"
  951. "*) ;;
  952. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  953. ac_unrecognized_sep=', ';;
  954. esac
  955. eval enable_$ac_useropt=no ;;
  956. -docdir | --docdir | --docdi | --doc | --do)
  957. ac_prev=docdir ;;
  958. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  959. docdir=$ac_optarg ;;
  960. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  961. ac_prev=dvidir ;;
  962. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  963. dvidir=$ac_optarg ;;
  964. -enable-* | --enable-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  969. ac_useropt_orig=$ac_useropt
  970. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  971. case $ac_user_opts in
  972. *"
  973. "enable_$ac_useropt"
  974. "*) ;;
  975. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  976. ac_unrecognized_sep=', ';;
  977. esac
  978. eval enable_$ac_useropt=\$ac_optarg ;;
  979. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  980. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  981. | --exec | --exe | --ex)
  982. ac_prev=exec_prefix ;;
  983. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  984. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  985. | --exec=* | --exe=* | --ex=*)
  986. exec_prefix=$ac_optarg ;;
  987. -gas | --gas | --ga | --g)
  988. # Obsolete; use --with-gas.
  989. with_gas=yes ;;
  990. -help | --help | --hel | --he | -h)
  991. ac_init_help=long ;;
  992. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  993. ac_init_help=recursive ;;
  994. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  995. ac_init_help=short ;;
  996. -host | --host | --hos | --ho)
  997. ac_prev=host_alias ;;
  998. -host=* | --host=* | --hos=* | --ho=*)
  999. host_alias=$ac_optarg ;;
  1000. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1001. ac_prev=htmldir ;;
  1002. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1003. | --ht=*)
  1004. htmldir=$ac_optarg ;;
  1005. -includedir | --includedir | --includedi | --included | --include \
  1006. | --includ | --inclu | --incl | --inc)
  1007. ac_prev=includedir ;;
  1008. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1009. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1010. includedir=$ac_optarg ;;
  1011. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1012. ac_prev=infodir ;;
  1013. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1014. infodir=$ac_optarg ;;
  1015. -libdir | --libdir | --libdi | --libd)
  1016. ac_prev=libdir ;;
  1017. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1018. libdir=$ac_optarg ;;
  1019. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1020. | --libexe | --libex | --libe)
  1021. ac_prev=libexecdir ;;
  1022. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1023. | --libexe=* | --libex=* | --libe=*)
  1024. libexecdir=$ac_optarg ;;
  1025. -localedir | --localedir | --localedi | --localed | --locale)
  1026. ac_prev=localedir ;;
  1027. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1028. localedir=$ac_optarg ;;
  1029. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1030. | --localstate | --localstat | --localsta | --localst | --locals)
  1031. ac_prev=localstatedir ;;
  1032. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1033. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1034. localstatedir=$ac_optarg ;;
  1035. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1036. ac_prev=mandir ;;
  1037. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1038. mandir=$ac_optarg ;;
  1039. -nfp | --nfp | --nf)
  1040. # Obsolete; use --without-fp.
  1041. with_fp=no ;;
  1042. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1043. | --no-cr | --no-c | -n)
  1044. no_create=yes ;;
  1045. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1046. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1047. no_recursion=yes ;;
  1048. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1049. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1050. | --oldin | --oldi | --old | --ol | --o)
  1051. ac_prev=oldincludedir ;;
  1052. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1053. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1054. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1055. oldincludedir=$ac_optarg ;;
  1056. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1057. ac_prev=prefix ;;
  1058. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1059. prefix=$ac_optarg ;;
  1060. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1061. | --program-pre | --program-pr | --program-p)
  1062. ac_prev=program_prefix ;;
  1063. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1064. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1065. program_prefix=$ac_optarg ;;
  1066. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1067. | --program-suf | --program-su | --program-s)
  1068. ac_prev=program_suffix ;;
  1069. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1070. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1071. program_suffix=$ac_optarg ;;
  1072. -program-transform-name | --program-transform-name \
  1073. | --program-transform-nam | --program-transform-na \
  1074. | --program-transform-n | --program-transform- \
  1075. | --program-transform | --program-transfor \
  1076. | --program-transfo | --program-transf \
  1077. | --program-trans | --program-tran \
  1078. | --progr-tra | --program-tr | --program-t)
  1079. ac_prev=program_transform_name ;;
  1080. -program-transform-name=* | --program-transform-name=* \
  1081. | --program-transform-nam=* | --program-transform-na=* \
  1082. | --program-transform-n=* | --program-transform-=* \
  1083. | --program-transform=* | --program-transfor=* \
  1084. | --program-transfo=* | --program-transf=* \
  1085. | --program-trans=* | --program-tran=* \
  1086. | --progr-tra=* | --program-tr=* | --program-t=*)
  1087. program_transform_name=$ac_optarg ;;
  1088. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1089. ac_prev=pdfdir ;;
  1090. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1091. pdfdir=$ac_optarg ;;
  1092. -psdir | --psdir | --psdi | --psd | --ps)
  1093. ac_prev=psdir ;;
  1094. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1095. psdir=$ac_optarg ;;
  1096. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1097. | -silent | --silent | --silen | --sile | --sil)
  1098. silent=yes ;;
  1099. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1100. | --runstate | --runstat | --runsta | --runst | --runs \
  1101. | --run | --ru | --r)
  1102. ac_prev=runstatedir ;;
  1103. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1104. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1105. | --run=* | --ru=* | --r=*)
  1106. runstatedir=$ac_optarg ;;
  1107. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1108. ac_prev=sbindir ;;
  1109. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1110. | --sbi=* | --sb=*)
  1111. sbindir=$ac_optarg ;;
  1112. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1113. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1114. | --sharedst | --shareds | --shared | --share | --shar \
  1115. | --sha | --sh)
  1116. ac_prev=sharedstatedir ;;
  1117. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1118. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1119. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1120. | --sha=* | --sh=*)
  1121. sharedstatedir=$ac_optarg ;;
  1122. -site | --site | --sit)
  1123. ac_prev=site ;;
  1124. -site=* | --site=* | --sit=*)
  1125. site=$ac_optarg ;;
  1126. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1127. ac_prev=srcdir ;;
  1128. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1129. srcdir=$ac_optarg ;;
  1130. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1131. | --syscon | --sysco | --sysc | --sys | --sy)
  1132. ac_prev=sysconfdir ;;
  1133. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1134. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1135. sysconfdir=$ac_optarg ;;
  1136. -target | --target | --targe | --targ | --tar | --ta | --t)
  1137. ac_prev=target_alias ;;
  1138. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1139. target_alias=$ac_optarg ;;
  1140. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1141. verbose=yes ;;
  1142. -version | --version | --versio | --versi | --vers | -V)
  1143. ac_init_version=: ;;
  1144. -with-* | --with-*)
  1145. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1146. # Reject names that are not valid shell variable names.
  1147. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1148. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1149. ac_useropt_orig=$ac_useropt
  1150. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1151. case $ac_user_opts in
  1152. *"
  1153. "with_$ac_useropt"
  1154. "*) ;;
  1155. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1156. ac_unrecognized_sep=', ';;
  1157. esac
  1158. eval with_$ac_useropt=\$ac_optarg ;;
  1159. -without-* | --without-*)
  1160. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1161. # Reject names that are not valid shell variable names.
  1162. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1163. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1164. ac_useropt_orig=$ac_useropt
  1165. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1166. case $ac_user_opts in
  1167. *"
  1168. "with_$ac_useropt"
  1169. "*) ;;
  1170. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1171. ac_unrecognized_sep=', ';;
  1172. esac
  1173. eval with_$ac_useropt=no ;;
  1174. --x)
  1175. # Obsolete; use --with-x.
  1176. with_x=yes ;;
  1177. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1178. | --x-incl | --x-inc | --x-in | --x-i)
  1179. ac_prev=x_includes ;;
  1180. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1181. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1182. x_includes=$ac_optarg ;;
  1183. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1184. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1185. ac_prev=x_libraries ;;
  1186. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1187. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1188. x_libraries=$ac_optarg ;;
  1189. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1190. Try \`$0 --help' for more information"
  1191. ;;
  1192. *=*)
  1193. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1194. # Reject names that are not valid shell variable names.
  1195. case $ac_envvar in #(
  1196. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1197. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1198. esac
  1199. eval $ac_envvar=\$ac_optarg
  1200. export $ac_envvar ;;
  1201. *)
  1202. # FIXME: should be removed in autoconf 3.0.
  1203. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1204. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1205. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1206. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1207. ;;
  1208. esac
  1209. done
  1210. if test -n "$ac_prev"; then
  1211. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1212. as_fn_error $? "missing argument to $ac_option"
  1213. fi
  1214. if test -n "$ac_unrecognized_opts"; then
  1215. case $enable_option_checking in
  1216. no) ;;
  1217. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1218. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1219. esac
  1220. fi
  1221. # Check all directory arguments for consistency.
  1222. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1223. datadir sysconfdir sharedstatedir localstatedir includedir \
  1224. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1225. libdir localedir mandir runstatedir
  1226. do
  1227. eval ac_val=\$$ac_var
  1228. # Remove trailing slashes.
  1229. case $ac_val in
  1230. */ )
  1231. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1232. eval $ac_var=\$ac_val;;
  1233. esac
  1234. # Be sure to have absolute directory names.
  1235. case $ac_val in
  1236. [\\/$]* | ?:[\\/]* ) continue;;
  1237. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1238. esac
  1239. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1240. done
  1241. # There might be people who depend on the old broken behavior: `$host'
  1242. # used to hold the argument of --host etc.
  1243. # FIXME: To remove some day.
  1244. build=$build_alias
  1245. host=$host_alias
  1246. target=$target_alias
  1247. # FIXME: To remove some day.
  1248. if test "x$host_alias" != x; then
  1249. if test "x$build_alias" = x; then
  1250. cross_compiling=maybe
  1251. elif test "x$build_alias" != "x$host_alias"; then
  1252. cross_compiling=yes
  1253. fi
  1254. fi
  1255. ac_tool_prefix=
  1256. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1257. test "$silent" = yes && exec 6>/dev/null
  1258. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1259. ac_ls_di=`ls -di .` &&
  1260. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1261. as_fn_error $? "working directory cannot be determined"
  1262. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1263. as_fn_error $? "pwd does not report name of working directory"
  1264. # Find the source files, if location was not specified.
  1265. if test -z "$srcdir"; then
  1266. ac_srcdir_defaulted=yes
  1267. # Try the directory containing this script, then the parent directory.
  1268. ac_confdir=`$as_dirname -- "$as_myself" ||
  1269. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1270. X"$as_myself" : 'X\(//\)[^/]' \| \
  1271. X"$as_myself" : 'X\(//\)$' \| \
  1272. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1273. printf "%s\n" X"$as_myself" |
  1274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\/\)[^/].*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. /^X\(\/\/\)$/{
  1283. s//\1/
  1284. q
  1285. }
  1286. /^X\(\/\).*/{
  1287. s//\1/
  1288. q
  1289. }
  1290. s/.*/./; q'`
  1291. srcdir=$ac_confdir
  1292. if test ! -r "$srcdir/$ac_unique_file"; then
  1293. srcdir=..
  1294. fi
  1295. else
  1296. ac_srcdir_defaulted=no
  1297. fi
  1298. if test ! -r "$srcdir/$ac_unique_file"; then
  1299. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1300. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1301. fi
  1302. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1303. ac_abs_confdir=`(
  1304. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1305. pwd)`
  1306. # When building in place, set srcdir=.
  1307. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1308. srcdir=.
  1309. fi
  1310. # Remove unnecessary trailing slashes from srcdir.
  1311. # Double slashes in file names in object file debugging info
  1312. # mess up M-x gdb in Emacs.
  1313. case $srcdir in
  1314. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1315. esac
  1316. for ac_var in $ac_precious_vars; do
  1317. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1318. eval ac_env_${ac_var}_value=\$${ac_var}
  1319. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1320. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1321. done
  1322. #
  1323. # Report the --help message.
  1324. #
  1325. if test "$ac_init_help" = "long"; then
  1326. # Omit some internal or obsolete options to make the list less imposing.
  1327. # This message is too long to be a string in the A/UX 3.1 sh.
  1328. cat <<_ACEOF
  1329. \`configure' configures pjproject 2.x to adapt to many kinds of systems.
  1330. Usage: $0 [OPTION]... [VAR=VALUE]...
  1331. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1332. VAR=VALUE. See below for descriptions of some of the useful variables.
  1333. Defaults for the options are specified in brackets.
  1334. Configuration:
  1335. -h, --help display this help and exit
  1336. --help=short display options specific to this package
  1337. --help=recursive display the short help of all the included packages
  1338. -V, --version display version information and exit
  1339. -q, --quiet, --silent do not print \`checking ...' messages
  1340. --cache-file=FILE cache test results in FILE [disabled]
  1341. -C, --config-cache alias for \`--cache-file=config.cache'
  1342. -n, --no-create do not create output files
  1343. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1344. Installation directories:
  1345. --prefix=PREFIX install architecture-independent files in PREFIX
  1346. [$ac_default_prefix]
  1347. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1348. [PREFIX]
  1349. By default, \`make install' will install all the files in
  1350. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1351. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1352. for instance \`--prefix=\$HOME'.
  1353. For better control, use the options below.
  1354. Fine tuning of the installation directories:
  1355. --bindir=DIR user executables [EPREFIX/bin]
  1356. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1357. --libexecdir=DIR program executables [EPREFIX/libexec]
  1358. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1359. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1360. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1361. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1362. --libdir=DIR object code libraries [EPREFIX/lib]
  1363. --includedir=DIR C header files [PREFIX/include]
  1364. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1365. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1366. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1367. --infodir=DIR info documentation [DATAROOTDIR/info]
  1368. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1369. --mandir=DIR man documentation [DATAROOTDIR/man]
  1370. --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
  1371. --htmldir=DIR html documentation [DOCDIR]
  1372. --dvidir=DIR dvi documentation [DOCDIR]
  1373. --pdfdir=DIR pdf documentation [DOCDIR]
  1374. --psdir=DIR ps documentation [DOCDIR]
  1375. _ACEOF
  1376. cat <<\_ACEOF
  1377. System types:
  1378. --build=BUILD configure for building on BUILD [guessed]
  1379. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1380. --target=TARGET configure for building compilers for TARGET [HOST]
  1381. _ACEOF
  1382. fi
  1383. if test -n "$ac_init_help"; then
  1384. case $ac_init_help in
  1385. short | recursive ) echo "Configuration of pjproject 2.x:";;
  1386. esac
  1387. cat <<\_ACEOF
  1388. Optional Features:
  1389. --disable-option-checking ignore unrecognized --enable/--with options
  1390. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1391. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1392. --disable-libuuid Exclude libuuid(default: autodetect)
  1393. --disable-floating-point
  1394. Disable floating point where possible
  1395. --enable-kqueue Use kqueue ioqueue on macos/BSD (experimental)
  1396. --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
  1397. --enable-shared Build shared libraries
  1398. --disable-pjsua2 Exclude pjsua2 library and application from the
  1399. build
  1400. --disable-upnp Disable UPnP (default: not disabled)
  1401. --disable-resample Disable resampling implementations
  1402. --disable-sound Exclude sound (i.e. use null sound)
  1403. --disable-video Disable video feature
  1404. --enable-ext-sound PJMEDIA will not provide any sound device backend
  1405. --disable-small-filter Exclude small filter in resampling
  1406. --disable-large-filter Exclude large filter in resampling
  1407. --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
  1408. --disable-g711-codec Exclude G.711 codecs from the build
  1409. --disable-l16-codec Exclude Linear/L16 codec family from the build
  1410. --disable-gsm-codec Exclude GSM codec in the build
  1411. --disable-g722-codec Exclude G.722 codec in the build
  1412. --disable-g7221-codec Exclude G.7221 codec in the build
  1413. --disable-speex-codec Exclude Speex codecs in the build
  1414. --disable-ilbc-codec Exclude iLBC codec in the build
  1415. --enable-libsamplerate Link with libsamplerate when available.
  1416. --enable-resample-dll Build libresample as shared library
  1417. --enable-speex-resample Enable Speex resample
  1418. --disable-sdl Disable SDL (default: not disabled)
  1419. --disable-ffmpeg Disable ffmpeg (default: not disabled)
  1420. --disable-v4l2 Disable Video4Linux2 (default: not disabled)
  1421. --disable-openh264 Disable OpenH264 (default: not disabled)
  1422. --disable-vpx Disable VPX (default: not disabled)
  1423. --enable-ipp Enable Intel IPP support. Specify the Intel IPP
  1424. package and samples location using IPPROOT and
  1425. IPPSAMPLES env var or with --with-ipp and
  1426. --with-ipp-samples options
  1427. --disable-android-mediacodec
  1428. Exclude Android MediaCodec (default: autodetect)
  1429. --disable-darwin-ssl Exclude Darwin SSL (default: autodetect)
  1430. --disable-ssl Exclude SSL support the build (default: autodetect)
  1431. --disable-opencore-amr Exclude OpenCORE AMR support from the build
  1432. (default: autodetect)
  1433. --disable-silk Exclude SILK support from the build (default:
  1434. autodetect)
  1435. --disable-opus Exclude OPUS support from the build (default:
  1436. autodetect)
  1437. --disable-bcg729 Disable bcg729 (default: not disabled)
  1438. --disable-lyra Disable lyra (default: not disabled)
  1439. --disable-libsrtp Exclude libsrtp in the build
  1440. --disable-libyuv Exclude libyuv in the build
  1441. --disable-libwebrtc Exclude libwebrtc in the build
  1442. --enable-libwebrtc-aec3 Build libwebrtc-aec3 that's included in PJSIP
  1443. Optional Packages:
  1444. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1445. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1446. --with-upnp=DIR Specify alternate libupnp prefix
  1447. --with-external-speex Use external Speex development files, not the one in
  1448. "third_party" directory. When this option is set,
  1449. make sure that Speex is accessible to use (hint: use
  1450. CFLAGS and LDFLAGS env var to set the include/lib
  1451. paths)
  1452. --with-external-gsm Use external GSM codec library, not the one in
  1453. "third_party" directory. When this option is set,
  1454. make sure that the GSM include/lib files are
  1455. accessible to use (hint: use CFLAGS and LDFLAGS env
  1456. var to set the include/lib paths)
  1457. --with-external-srtp Use external SRTP development files, not the one in
  1458. "third_party" directory. When this option is set,
  1459. make sure that SRTP is accessible to use (hint: use
  1460. CFLAGS and LDFLAGS env var to set the include/lib
  1461. paths)
  1462. --with-external-yuv Use external libyuv development files, not the one
  1463. in "third_party" directory. When this option is set,
  1464. make sure that libyuv is accessible to use (hint:
  1465. use CFLAGS and LDFLAGS env var to set the
  1466. include/lib paths)
  1467. --with-external-webrtc Use external webrtc development files, not the one
  1468. in "third_party" directory. When this option is set,
  1469. make sure that webrtc is accessible to use (hint:
  1470. use CFLAGS and LDFLAGS env var to set the
  1471. include/lib paths)
  1472. --with-external-webrtc-aec3
  1473. Use external webrtc AEC3 development files, not the
  1474. one in "third_party" directory. When this option is
  1475. set, make sure that webrtc is accessible to use
  1476. (hint: use CFLAGS and LDFLAGS env var to set the
  1477. include/lib paths)
  1478. --with-external-pa Use external PortAudio development files. When this
  1479. option is set, make sure that PortAudio is
  1480. accessible to use (hint: use CFLAGS and LDFLAGS env
  1481. var to set the include/lib paths)
  1482. --with-oboe Enable Android Oboe audio device backend.
  1483. --with-sdl=DIR Specify alternate libSDL prefix
  1484. --with-ffmpeg=DIR Specify alternate FFMPEG prefix
  1485. --with-openh264=DIR Specify alternate OpenH264 prefix
  1486. --with-vpx=DIR Specify alternate VPX prefix
  1487. --with-ipp=DIR Specify the Intel IPP location
  1488. --with-ipp-samples=DIR Specify the Intel IPP samples location
  1489. --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
  1490. "em64t. Default is blank for IA32"
  1491. --with-ssl=DIR Specify alternate SSL library prefix. This option
  1492. will try to find OpenSSL first, then if not found,
  1493. GnuTLS. To skip OpenSSL finding, use --with-gnutls
  1494. option instead.
  1495. --with-gnutls=DIR Specify alternate GnuTLS prefix
  1496. --with-opencore-amrnb=DIR
  1497. This option is obsolete and replaced by
  1498. --with-opencore-amr=DIR
  1499. --with-opencore-amr=DIR Specify alternate libopencore-amr prefix
  1500. --with-opencore-amrwbenc=DIR
  1501. Specify alternate libvo-amrwbenc prefix
  1502. --with-silk=DIR Specify alternate SILK prefix
  1503. --with-opus=DIR Specify alternate OPUS prefix
  1504. --with-bcg729=DIR Specify alternate bcg729 prefix
  1505. --with-lyra=DIR Specify alternate lyra prefix
  1506. Some influential environment variables:
  1507. CC C compiler command
  1508. CFLAGS C compiler flags
  1509. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1510. nonstandard directory <lib dir>
  1511. LIBS libraries to pass to the linker, e.g. -l<library>
  1512. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1513. you have headers in a nonstandard directory <include dir>
  1514. CXX C++ compiler command
  1515. CXXFLAGS C++ compiler flags
  1516. Use these variables to override the choices made by `configure' or to help
  1517. it to find libraries and programs with nonstandard names/locations.
  1518. Report bugs to the package provider.
  1519. _ACEOF
  1520. ac_status=$?
  1521. fi
  1522. if test "$ac_init_help" = "recursive"; then
  1523. # If there are subdirs, report their specific --help.
  1524. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1525. test -d "$ac_dir" ||
  1526. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1527. continue
  1528. ac_builddir=.
  1529. case "$ac_dir" in
  1530. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1531. *)
  1532. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1533. # A ".." for each directory in $ac_dir_suffix.
  1534. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1535. case $ac_top_builddir_sub in
  1536. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1537. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1538. esac ;;
  1539. esac
  1540. ac_abs_top_builddir=$ac_pwd
  1541. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1542. # for backward compatibility:
  1543. ac_top_builddir=$ac_top_build_prefix
  1544. case $srcdir in
  1545. .) # We are building in place.
  1546. ac_srcdir=.
  1547. ac_top_srcdir=$ac_top_builddir_sub
  1548. ac_abs_top_srcdir=$ac_pwd ;;
  1549. [\\/]* | ?:[\\/]* ) # Absolute name.
  1550. ac_srcdir=$srcdir$ac_dir_suffix;
  1551. ac_top_srcdir=$srcdir
  1552. ac_abs_top_srcdir=$srcdir ;;
  1553. *) # Relative name.
  1554. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1555. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1556. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1557. esac
  1558. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1559. cd "$ac_dir" || { ac_status=$?; continue; }
  1560. # Check for configure.gnu first; this name is used for a wrapper for
  1561. # Metaconfig's "Configure" on case-insensitive file systems.
  1562. if test -f "$ac_srcdir/configure.gnu"; then
  1563. echo &&
  1564. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1565. elif test -f "$ac_srcdir/configure"; then
  1566. echo &&
  1567. $SHELL "$ac_srcdir/configure" --help=recursive
  1568. else
  1569. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1570. fi || ac_status=$?
  1571. cd "$ac_pwd" || { ac_status=$?; break; }
  1572. done
  1573. fi
  1574. test -n "$ac_init_help" && exit $ac_status
  1575. if $ac_init_version; then
  1576. cat <<\_ACEOF
  1577. pjproject configure 2.x
  1578. generated by GNU Autoconf 2.71
  1579. Copyright (C) 2021 Free Software Foundation, Inc.
  1580. This configure script is free software; the Free Software Foundation
  1581. gives unlimited permission to copy, distribute and modify it.
  1582. _ACEOF
  1583. exit
  1584. fi
  1585. ## ------------------------ ##
  1586. ## Autoconf initialization. ##
  1587. ## ------------------------ ##
  1588. # ac_fn_c_try_compile LINENO
  1589. # --------------------------
  1590. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1591. ac_fn_c_try_compile ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. rm -f conftest.$ac_objext conftest.beam
  1595. if { { ac_try="$ac_compile"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. printf "%s\n" "$ac_try_echo"; } >&5
  1602. (eval "$ac_compile") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } && {
  1611. test -z "$ac_c_werror_flag" ||
  1612. test ! -s conftest.err
  1613. } && test -s conftest.$ac_objext
  1614. then :
  1615. ac_retval=0
  1616. else $as_nop
  1617. printf "%s\n" "$as_me: failed program was:" >&5
  1618. sed 's/^/| /' conftest.$ac_ext >&5
  1619. ac_retval=1
  1620. fi
  1621. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. as_fn_set_status $ac_retval
  1623. } # ac_fn_c_try_compile
  1624. # ac_fn_cxx_try_compile LINENO
  1625. # ----------------------------
  1626. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1627. ac_fn_cxx_try_compile ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. rm -f conftest.$ac_objext conftest.beam
  1631. if { { ac_try="$ac_compile"
  1632. case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. printf "%s\n" "$ac_try_echo"; } >&5
  1638. (eval "$ac_compile") 2>conftest.err
  1639. ac_status=$?
  1640. if test -s conftest.err; then
  1641. grep -v '^ *+' conftest.err >conftest.er1
  1642. cat conftest.er1 >&5
  1643. mv -f conftest.er1 conftest.err
  1644. fi
  1645. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1646. test $ac_status = 0; } && {
  1647. test -z "$ac_cxx_werror_flag" ||
  1648. test ! -s conftest.err
  1649. } && test -s conftest.$ac_objext
  1650. then :
  1651. ac_retval=0
  1652. else $as_nop
  1653. printf "%s\n" "$as_me: failed program was:" >&5
  1654. sed 's/^/| /' conftest.$ac_ext >&5
  1655. ac_retval=1
  1656. fi
  1657. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1658. as_fn_set_status $ac_retval
  1659. } # ac_fn_cxx_try_compile
  1660. # ac_fn_cxx_try_link LINENO
  1661. # -------------------------
  1662. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1663. ac_fn_cxx_try_link ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1667. if { { ac_try="$ac_link"
  1668. case "(($ac_try" in
  1669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1670. *) ac_try_echo=$ac_try;;
  1671. esac
  1672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1673. printf "%s\n" "$ac_try_echo"; } >&5
  1674. (eval "$ac_link") 2>conftest.err
  1675. ac_status=$?
  1676. if test -s conftest.err; then
  1677. grep -v '^ *+' conftest.err >conftest.er1
  1678. cat conftest.er1 >&5
  1679. mv -f conftest.er1 conftest.err
  1680. fi
  1681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682. test $ac_status = 0; } && {
  1683. test -z "$ac_cxx_werror_flag" ||
  1684. test ! -s conftest.err
  1685. } && test -s conftest$ac_exeext && {
  1686. test "$cross_compiling" = yes ||
  1687. test -x conftest$ac_exeext
  1688. }
  1689. then :
  1690. ac_retval=0
  1691. else $as_nop
  1692. printf "%s\n" "$as_me: failed program was:" >&5
  1693. sed 's/^/| /' conftest.$ac_ext >&5
  1694. ac_retval=1
  1695. fi
  1696. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1697. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1698. # interfere with the next link command; also delete a directory that is
  1699. # left behind by Apple's compiler. We do this before executing the actions.
  1700. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1701. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702. as_fn_set_status $ac_retval
  1703. } # ac_fn_cxx_try_link
  1704. # ac_fn_c_try_link LINENO
  1705. # -----------------------
  1706. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1707. ac_fn_c_try_link ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1711. if { { ac_try="$ac_link"
  1712. case "(($ac_try" in
  1713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1714. *) ac_try_echo=$ac_try;;
  1715. esac
  1716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1717. printf "%s\n" "$ac_try_echo"; } >&5
  1718. (eval "$ac_link") 2>conftest.err
  1719. ac_status=$?
  1720. if test -s conftest.err; then
  1721. grep -v '^ *+' conftest.err >conftest.er1
  1722. cat conftest.er1 >&5
  1723. mv -f conftest.er1 conftest.err
  1724. fi
  1725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1726. test $ac_status = 0; } && {
  1727. test -z "$ac_c_werror_flag" ||
  1728. test ! -s conftest.err
  1729. } && test -s conftest$ac_exeext && {
  1730. test "$cross_compiling" = yes ||
  1731. test -x conftest$ac_exeext
  1732. }
  1733. then :
  1734. ac_retval=0
  1735. else $as_nop
  1736. printf "%s\n" "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=1
  1739. fi
  1740. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1741. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1742. # interfere with the next link command; also delete a directory that is
  1743. # left behind by Apple's compiler. We do this before executing the actions.
  1744. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1745. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1746. as_fn_set_status $ac_retval
  1747. } # ac_fn_c_try_link
  1748. # ac_fn_c_try_run LINENO
  1749. # ----------------------
  1750. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1751. # executables *can* be run.
  1752. ac_fn_c_try_run ()
  1753. {
  1754. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1755. if { { ac_try="$ac_link"
  1756. case "(($ac_try" in
  1757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1758. *) ac_try_echo=$ac_try;;
  1759. esac
  1760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1761. printf "%s\n" "$ac_try_echo"; } >&5
  1762. (eval "$ac_link") 2>&5
  1763. ac_status=$?
  1764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1766. { { case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1771. printf "%s\n" "$ac_try_echo"; } >&5
  1772. (eval "$ac_try") 2>&5
  1773. ac_status=$?
  1774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1775. test $ac_status = 0; }; }
  1776. then :
  1777. ac_retval=0
  1778. else $as_nop
  1779. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1780. printf "%s\n" "$as_me: failed program was:" >&5
  1781. sed 's/^/| /' conftest.$ac_ext >&5
  1782. ac_retval=$ac_status
  1783. fi
  1784. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1785. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1786. as_fn_set_status $ac_retval
  1787. } # ac_fn_c_try_run
  1788. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1789. # -------------------------------------------------------
  1790. # Tests whether HEADER exists and can be compiled using the include files in
  1791. # INCLUDES, setting the cache variable VAR accordingly.
  1792. ac_fn_c_check_header_compile ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1796. printf %s "checking for $2... " >&6; }
  1797. if eval test \${$3+y}
  1798. then :
  1799. printf %s "(cached) " >&6
  1800. else $as_nop
  1801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1802. /* end confdefs.h. */
  1803. $4
  1804. #include <$2>
  1805. _ACEOF
  1806. if ac_fn_c_try_compile "$LINENO"
  1807. then :
  1808. eval "$3=yes"
  1809. else $as_nop
  1810. eval "$3=no"
  1811. fi
  1812. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1813. fi
  1814. eval ac_res=\$$3
  1815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1816. printf "%s\n" "$ac_res" >&6; }
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. } # ac_fn_c_check_header_compile
  1819. # ac_fn_c_check_func LINENO FUNC VAR
  1820. # ----------------------------------
  1821. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1822. ac_fn_c_check_func ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1826. printf %s "checking for $2... " >&6; }
  1827. if eval test \${$3+y}
  1828. then :
  1829. printf %s "(cached) " >&6
  1830. else $as_nop
  1831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h. */
  1833. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1834. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1835. #define $2 innocuous_$2
  1836. /* System header to define __stub macros and hopefully few prototypes,
  1837. which can conflict with char $2 (); below. */
  1838. #include <limits.h>
  1839. #undef $2
  1840. /* Override any GCC internal prototype to avoid an error.
  1841. Use char because int might match the return type of a GCC
  1842. builtin and then its argument prototype would still apply. */
  1843. #ifdef __cplusplus
  1844. extern "C"
  1845. #endif
  1846. char $2 ();
  1847. /* The GNU C library defines this for functions which it implements
  1848. to always fail with ENOSYS. Some functions are actually named
  1849. something starting with __ and the normal name is an alias. */
  1850. #if defined __stub_$2 || defined __stub___$2
  1851. choke me
  1852. #endif
  1853. int
  1854. main (void)
  1855. {
  1856. return $2 ();
  1857. ;
  1858. return 0;
  1859. }
  1860. _ACEOF
  1861. if ac_fn_c_try_link "$LINENO"
  1862. then :
  1863. eval "$3=yes"
  1864. else $as_nop
  1865. eval "$3=no"
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1868. conftest$ac_exeext conftest.$ac_ext
  1869. fi
  1870. eval ac_res=\$$3
  1871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1872. printf "%s\n" "$ac_res" >&6; }
  1873. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1874. } # ac_fn_c_check_func
  1875. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1876. # -------------------------------------------
  1877. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1878. # variable VAR accordingly.
  1879. ac_fn_c_check_type ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1883. printf %s "checking for $2... " >&6; }
  1884. if eval test \${$3+y}
  1885. then :
  1886. printf %s "(cached) " >&6
  1887. else $as_nop
  1888. eval "$3=no"
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. $4
  1892. int
  1893. main (void)
  1894. {
  1895. if (sizeof ($2))
  1896. return 0;
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_c_try_compile "$LINENO"
  1902. then :
  1903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1904. /* end confdefs.h. */
  1905. $4
  1906. int
  1907. main (void)
  1908. {
  1909. if (sizeof (($2)))
  1910. return 0;
  1911. ;
  1912. return 0;
  1913. }
  1914. _ACEOF
  1915. if ac_fn_c_try_compile "$LINENO"
  1916. then :
  1917. else $as_nop
  1918. eval "$3=yes"
  1919. fi
  1920. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1923. fi
  1924. eval ac_res=\$$3
  1925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1926. printf "%s\n" "$ac_res" >&6; }
  1927. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1928. } # ac_fn_c_check_type
  1929. ac_configure_args_raw=
  1930. for ac_arg
  1931. do
  1932. case $ac_arg in
  1933. *\'*)
  1934. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1935. esac
  1936. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1937. done
  1938. case $ac_configure_args_raw in
  1939. *$as_nl*)
  1940. ac_safe_unquote= ;;
  1941. *)
  1942. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1943. ac_unsafe_a="$ac_unsafe_z#~"
  1944. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1945. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1946. esac
  1947. cat >config.log <<_ACEOF
  1948. This file contains any messages produced by compilers while
  1949. running configure, to aid debugging if configure makes a mistake.
  1950. It was created by pjproject $as_me 2.x, which was
  1951. generated by GNU Autoconf 2.71. Invocation command line was
  1952. $ $0$ac_configure_args_raw
  1953. _ACEOF
  1954. exec 5>>config.log
  1955. {
  1956. cat <<_ASUNAME
  1957. ## --------- ##
  1958. ## Platform. ##
  1959. ## --------- ##
  1960. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1961. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1962. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1963. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1964. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1965. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1966. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1967. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1968. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1969. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1970. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1971. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1972. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1973. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1974. _ASUNAME
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. for as_dir in $PATH
  1977. do
  1978. IFS=$as_save_IFS
  1979. case $as_dir in #(((
  1980. '') as_dir=./ ;;
  1981. */) ;;
  1982. *) as_dir=$as_dir/ ;;
  1983. esac
  1984. printf "%s\n" "PATH: $as_dir"
  1985. done
  1986. IFS=$as_save_IFS
  1987. } >&5
  1988. cat >&5 <<_ACEOF
  1989. ## ----------- ##
  1990. ## Core tests. ##
  1991. ## ----------- ##
  1992. _ACEOF
  1993. # Keep a trace of the command line.
  1994. # Strip out --no-create and --no-recursion so they do not pile up.
  1995. # Strip out --silent because we don't want to record it for future runs.
  1996. # Also quote any args containing shell meta-characters.
  1997. # Make two passes to allow for proper duplicate-argument suppression.
  1998. ac_configure_args=
  1999. ac_configure_args0=
  2000. ac_configure_args1=
  2001. ac_must_keep_next=false
  2002. for ac_pass in 1 2
  2003. do
  2004. for ac_arg
  2005. do
  2006. case $ac_arg in
  2007. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2008. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2009. | -silent | --silent | --silen | --sile | --sil)
  2010. continue ;;
  2011. *\'*)
  2012. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2013. esac
  2014. case $ac_pass in
  2015. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2016. 2)
  2017. as_fn_append ac_configure_args1 " '$ac_arg'"
  2018. if test $ac_must_keep_next = true; then
  2019. ac_must_keep_next=false # Got value, back to normal.
  2020. else
  2021. case $ac_arg in
  2022. *=* | --config-cache | -C | -disable-* | --disable-* \
  2023. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2024. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2025. | -with-* | --with-* | -without-* | --without-* | --x)
  2026. case "$ac_configure_args0 " in
  2027. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2028. esac
  2029. ;;
  2030. -* ) ac_must_keep_next=true ;;
  2031. esac
  2032. fi
  2033. as_fn_append ac_configure_args " '$ac_arg'"
  2034. ;;
  2035. esac
  2036. done
  2037. done
  2038. { ac_configure_args0=; unset ac_configure_args0;}
  2039. { ac_configure_args1=; unset ac_configure_args1;}
  2040. # When interrupted or exit'd, cleanup temporary files, and complete
  2041. # config.log. We remove comments because anyway the quotes in there
  2042. # would cause problems or look ugly.
  2043. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2044. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2045. trap 'exit_status=$?
  2046. # Sanitize IFS.
  2047. IFS=" "" $as_nl"
  2048. # Save into config.log some information that might help in debugging.
  2049. {
  2050. echo
  2051. printf "%s\n" "## ---------------- ##
  2052. ## Cache variables. ##
  2053. ## ---------------- ##"
  2054. echo
  2055. # The following way of writing the cache mishandles newlines in values,
  2056. (
  2057. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2058. eval ac_val=\$$ac_var
  2059. case $ac_val in #(
  2060. *${as_nl}*)
  2061. case $ac_var in #(
  2062. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2063. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2064. esac
  2065. case $ac_var in #(
  2066. _ | IFS | as_nl) ;; #(
  2067. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2068. *) { eval $ac_var=; unset $ac_var;} ;;
  2069. esac ;;
  2070. esac
  2071. done
  2072. (set) 2>&1 |
  2073. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2074. *${as_nl}ac_space=\ *)
  2075. sed -n \
  2076. "s/'\''/'\''\\\\'\'''\''/g;
  2077. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2078. ;; #(
  2079. *)
  2080. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2081. ;;
  2082. esac |
  2083. sort
  2084. )
  2085. echo
  2086. printf "%s\n" "## ----------------- ##
  2087. ## Output variables. ##
  2088. ## ----------------- ##"
  2089. echo
  2090. for ac_var in $ac_subst_vars
  2091. do
  2092. eval ac_val=\$$ac_var
  2093. case $ac_val in
  2094. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2095. esac
  2096. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2097. done | sort
  2098. echo
  2099. if test -n "$ac_subst_files"; then
  2100. printf "%s\n" "## ------------------- ##
  2101. ## File substitutions. ##
  2102. ## ------------------- ##"
  2103. echo
  2104. for ac_var in $ac_subst_files
  2105. do
  2106. eval ac_val=\$$ac_var
  2107. case $ac_val in
  2108. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2109. esac
  2110. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2111. done | sort
  2112. echo
  2113. fi
  2114. if test -s confdefs.h; then
  2115. printf "%s\n" "## ----------- ##
  2116. ## confdefs.h. ##
  2117. ## ----------- ##"
  2118. echo
  2119. cat confdefs.h
  2120. echo
  2121. fi
  2122. test "$ac_signal" != 0 &&
  2123. printf "%s\n" "$as_me: caught signal $ac_signal"
  2124. printf "%s\n" "$as_me: exit $exit_status"
  2125. } >&5
  2126. rm -f core *.core core.conftest.* &&
  2127. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2128. exit $exit_status
  2129. ' 0
  2130. for ac_signal in 1 2 13 15; do
  2131. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2132. done
  2133. ac_signal=0
  2134. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2135. rm -f -r conftest* confdefs.h
  2136. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2137. # Predefined preprocessor variables.
  2138. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2139. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2140. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2141. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2142. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2143. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2144. # Let the site file select an alternate cache file if it wants to.
  2145. # Prefer an explicitly selected file to automatically selected ones.
  2146. if test -n "$CONFIG_SITE"; then
  2147. ac_site_files="$CONFIG_SITE"
  2148. elif test "x$prefix" != xNONE; then
  2149. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2150. else
  2151. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2152. fi
  2153. for ac_site_file in $ac_site_files
  2154. do
  2155. case $ac_site_file in #(
  2156. */*) :
  2157. ;; #(
  2158. *) :
  2159. ac_site_file=./$ac_site_file ;;
  2160. esac
  2161. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2163. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2164. sed 's/^/| /' "$ac_site_file" >&5
  2165. . "$ac_site_file" \
  2166. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2167. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2168. as_fn_error $? "failed to load site script $ac_site_file
  2169. See \`config.log' for more details" "$LINENO" 5; }
  2170. fi
  2171. done
  2172. if test -r "$cache_file"; then
  2173. # Some versions of bash will fail to source /dev/null (special files
  2174. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2175. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2177. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2178. case $cache_file in
  2179. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2180. *) . "./$cache_file";;
  2181. esac
  2182. fi
  2183. else
  2184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2185. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2186. >$cache_file
  2187. fi
  2188. # Test code for whether the C compiler supports C89 (global declarations)
  2189. ac_c_conftest_c89_globals='
  2190. /* Does the compiler advertise C89 conformance?
  2191. Do not test the value of __STDC__, because some compilers set it to 0
  2192. while being otherwise adequately conformant. */
  2193. #if !defined __STDC__
  2194. # error "Compiler does not advertise C89 conformance"
  2195. #endif
  2196. #include <stddef.h>
  2197. #include <stdarg.h>
  2198. struct stat;
  2199. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2200. struct buf { int x; };
  2201. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2202. static char *e (p, i)
  2203. char **p;
  2204. int i;
  2205. {
  2206. return p[i];
  2207. }
  2208. static char *f (char * (*g) (char **, int), char **p, ...)
  2209. {
  2210. char *s;
  2211. va_list v;
  2212. va_start (v,p);
  2213. s = g (p, va_arg (v,int));
  2214. va_end (v);
  2215. return s;
  2216. }
  2217. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2218. function prototypes and stuff, but not \xHH hex character constants.
  2219. These do not provoke an error unfortunately, instead are silently treated
  2220. as an "x". The following induces an error, until -std is added to get
  2221. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2222. array size at least. It is necessary to write \x00 == 0 to get something
  2223. that is true only with -std. */
  2224. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2225. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2226. inside strings and character constants. */
  2227. #define FOO(x) '\''x'\''
  2228. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2229. int test (int i, double x);
  2230. struct s1 {int (*f) (int a);};
  2231. struct s2 {int (*f) (double a);};
  2232. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2233. int, int);'
  2234. # Test code for whether the C compiler supports C89 (body of main).
  2235. ac_c_conftest_c89_main='
  2236. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2237. '
  2238. # Test code for whether the C compiler supports C99 (global declarations)
  2239. ac_c_conftest_c99_globals='
  2240. // Does the compiler advertise C99 conformance?
  2241. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2242. # error "Compiler does not advertise C99 conformance"
  2243. #endif
  2244. #include <stdbool.h>
  2245. extern int puts (const char *);
  2246. extern int printf (const char *, ...);
  2247. extern int dprintf (int, const char *, ...);
  2248. extern void *malloc (size_t);
  2249. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2250. // dprintf is used instead of fprintf to avoid needing to declare
  2251. // FILE and stderr.
  2252. #define debug(...) dprintf (2, __VA_ARGS__)
  2253. #define showlist(...) puts (#__VA_ARGS__)
  2254. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2255. static void
  2256. test_varargs_macros (void)
  2257. {
  2258. int x = 1234;
  2259. int y = 5678;
  2260. debug ("Flag");
  2261. debug ("X = %d\n", x);
  2262. showlist (The first, second, and third items.);
  2263. report (x>y, "x is %d but y is %d", x, y);
  2264. }
  2265. // Check long long types.
  2266. #define BIG64 18446744073709551615ull
  2267. #define BIG32 4294967295ul
  2268. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2269. #if !BIG_OK
  2270. #error "your preprocessor is broken"
  2271. #endif
  2272. #if BIG_OK
  2273. #else
  2274. #error "your preprocessor is broken"
  2275. #endif
  2276. static long long int bignum = -9223372036854775807LL;
  2277. static unsigned long long int ubignum = BIG64;
  2278. struct incomplete_array
  2279. {
  2280. int datasize;
  2281. double data[];
  2282. };
  2283. struct named_init {
  2284. int number;
  2285. const wchar_t *name;
  2286. double average;
  2287. };
  2288. typedef const char *ccp;
  2289. static inline int
  2290. test_restrict (ccp restrict text)
  2291. {
  2292. // See if C++-style comments work.
  2293. // Iterate through items via the restricted pointer.
  2294. // Also check for declarations in for loops.
  2295. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2296. continue;
  2297. return 0;
  2298. }
  2299. // Check varargs and va_copy.
  2300. static bool
  2301. test_varargs (const char *format, ...)
  2302. {
  2303. va_list args;
  2304. va_start (args, format);
  2305. va_list args_copy;
  2306. va_copy (args_copy, args);
  2307. const char *str = "";
  2308. int number = 0;
  2309. float fnumber = 0;
  2310. while (*format)
  2311. {
  2312. switch (*format++)
  2313. {
  2314. case '\''s'\'': // string
  2315. str = va_arg (args_copy, const char *);
  2316. break;
  2317. case '\''d'\'': // int
  2318. number = va_arg (args_copy, int);
  2319. break;
  2320. case '\''f'\'': // float
  2321. fnumber = va_arg (args_copy, double);
  2322. break;
  2323. default:
  2324. break;
  2325. }
  2326. }
  2327. va_end (args_copy);
  2328. va_end (args);
  2329. return *str && number && fnumber;
  2330. }
  2331. '
  2332. # Test code for whether the C compiler supports C99 (body of main).
  2333. ac_c_conftest_c99_main='
  2334. // Check bool.
  2335. _Bool success = false;
  2336. success |= (argc != 0);
  2337. // Check restrict.
  2338. if (test_restrict ("String literal") == 0)
  2339. success = true;
  2340. char *restrict newvar = "Another string";
  2341. // Check varargs.
  2342. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2343. test_varargs_macros ();
  2344. // Check flexible array members.
  2345. struct incomplete_array *ia =
  2346. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2347. ia->datasize = 10;
  2348. for (int i = 0; i < ia->datasize; ++i)
  2349. ia->data[i] = i * 1.234;
  2350. // Check named initializers.
  2351. struct named_init ni = {
  2352. .number = 34,
  2353. .name = L"Test wide string",
  2354. .average = 543.34343,
  2355. };
  2356. ni.number = 58;
  2357. int dynamic_array[ni.number];
  2358. dynamic_array[0] = argv[0][0];
  2359. dynamic_array[ni.number - 1] = 543;
  2360. // work around unused variable warnings
  2361. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2362. || dynamic_array[ni.number - 1] != 543);
  2363. '
  2364. # Test code for whether the C compiler supports C11 (global declarations)
  2365. ac_c_conftest_c11_globals='
  2366. // Does the compiler advertise C11 conformance?
  2367. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2368. # error "Compiler does not advertise C11 conformance"
  2369. #endif
  2370. // Check _Alignas.
  2371. char _Alignas (double) aligned_as_double;
  2372. char _Alignas (0) no_special_alignment;
  2373. extern char aligned_as_int;
  2374. char _Alignas (0) _Alignas (int) aligned_as_int;
  2375. // Check _Alignof.
  2376. enum
  2377. {
  2378. int_alignment = _Alignof (int),
  2379. int_array_alignment = _Alignof (int[100]),
  2380. char_alignment = _Alignof (char)
  2381. };
  2382. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2383. // Check _Noreturn.
  2384. int _Noreturn does_not_return (void) { for (;;) continue; }
  2385. // Check _Static_assert.
  2386. struct test_static_assert
  2387. {
  2388. int x;
  2389. _Static_assert (sizeof (int) <= sizeof (long int),
  2390. "_Static_assert does not work in struct");
  2391. long int y;
  2392. };
  2393. // Check UTF-8 literals.
  2394. #define u8 syntax error!
  2395. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2396. // Check duplicate typedefs.
  2397. typedef long *long_ptr;
  2398. typedef long int *long_ptr;
  2399. typedef long_ptr long_ptr;
  2400. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2401. struct anonymous
  2402. {
  2403. union {
  2404. struct { int i; int j; };
  2405. struct { int k; long int l; } w;
  2406. };
  2407. int m;
  2408. } v1;
  2409. '
  2410. # Test code for whether the C compiler supports C11 (body of main).
  2411. ac_c_conftest_c11_main='
  2412. _Static_assert ((offsetof (struct anonymous, i)
  2413. == offsetof (struct anonymous, w.k)),
  2414. "Anonymous union alignment botch");
  2415. v1.i = 2;
  2416. v1.w.k = 5;
  2417. ok |= v1.i != 5;
  2418. '
  2419. # Test code for whether the C compiler supports C11 (complete).
  2420. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2421. ${ac_c_conftest_c99_globals}
  2422. ${ac_c_conftest_c11_globals}
  2423. int
  2424. main (int argc, char **argv)
  2425. {
  2426. int ok = 0;
  2427. ${ac_c_conftest_c89_main}
  2428. ${ac_c_conftest_c99_main}
  2429. ${ac_c_conftest_c11_main}
  2430. return ok;
  2431. }
  2432. "
  2433. # Test code for whether the C compiler supports C99 (complete).
  2434. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2435. ${ac_c_conftest_c99_globals}
  2436. int
  2437. main (int argc, char **argv)
  2438. {
  2439. int ok = 0;
  2440. ${ac_c_conftest_c89_main}
  2441. ${ac_c_conftest_c99_main}
  2442. return ok;
  2443. }
  2444. "
  2445. # Test code for whether the C compiler supports C89 (complete).
  2446. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2447. int
  2448. main (int argc, char **argv)
  2449. {
  2450. int ok = 0;
  2451. ${ac_c_conftest_c89_main}
  2452. return ok;
  2453. }
  2454. "
  2455. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2456. ac_cxx_conftest_cxx98_globals='
  2457. // Does the compiler advertise C++98 conformance?
  2458. #if !defined __cplusplus || __cplusplus < 199711L
  2459. # error "Compiler does not advertise C++98 conformance"
  2460. #endif
  2461. // These inclusions are to reject old compilers that
  2462. // lack the unsuffixed header files.
  2463. #include <cstdlib>
  2464. #include <exception>
  2465. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2466. extern void assert (int);
  2467. namespace std {
  2468. extern int strcmp (const char *, const char *);
  2469. }
  2470. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2471. using std::exception;
  2472. using std::strcmp;
  2473. namespace {
  2474. void test_exception_syntax()
  2475. {
  2476. try {
  2477. throw "test";
  2478. } catch (const char *s) {
  2479. // Extra parentheses suppress a warning when building autoconf itself,
  2480. // due to lint rules shared with more typical C programs.
  2481. assert (!(strcmp) (s, "test"));
  2482. }
  2483. }
  2484. template <typename T> struct test_template
  2485. {
  2486. T const val;
  2487. explicit test_template(T t) : val(t) {}
  2488. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2489. };
  2490. } // anonymous namespace
  2491. '
  2492. # Test code for whether the C++ compiler supports C++98 (body of main)
  2493. ac_cxx_conftest_cxx98_main='
  2494. assert (argc);
  2495. assert (! argv[0]);
  2496. {
  2497. test_exception_syntax ();
  2498. test_template<double> tt (2.0);
  2499. assert (tt.add (4) == 6.0);
  2500. assert (true && !false);
  2501. }
  2502. '
  2503. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2504. ac_cxx_conftest_cxx11_globals='
  2505. // Does the compiler advertise C++ 2011 conformance?
  2506. #if !defined __cplusplus || __cplusplus < 201103L
  2507. # error "Compiler does not advertise C++11 conformance"
  2508. #endif
  2509. namespace cxx11test
  2510. {
  2511. constexpr int get_val() { return 20; }
  2512. struct testinit
  2513. {
  2514. int i;
  2515. double d;
  2516. };
  2517. class delegate
  2518. {
  2519. public:
  2520. delegate(int n) : n(n) {}
  2521. delegate(): delegate(2354) {}
  2522. virtual int getval() { return this->n; };
  2523. protected:
  2524. int n;
  2525. };
  2526. class overridden : public delegate
  2527. {
  2528. public:
  2529. overridden(int n): delegate(n) {}
  2530. virtual int getval() override final { return this->n * 2; }
  2531. };
  2532. class nocopy
  2533. {
  2534. public:
  2535. nocopy(int i): i(i) {}
  2536. nocopy() = default;
  2537. nocopy(const nocopy&) = delete;
  2538. nocopy & operator=(const nocopy&) = delete;
  2539. private:
  2540. int i;
  2541. };
  2542. // for testing lambda expressions
  2543. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2544. {
  2545. return f(v);
  2546. }
  2547. // for testing variadic templates and trailing return types
  2548. template <typename V> auto sum(V first) -> V
  2549. {
  2550. return first;
  2551. }
  2552. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2553. {
  2554. return first + sum(rest...);
  2555. }
  2556. }
  2557. '
  2558. # Test code for whether the C++ compiler supports C++11 (body of main)
  2559. ac_cxx_conftest_cxx11_main='
  2560. {
  2561. // Test auto and decltype
  2562. auto a1 = 6538;
  2563. auto a2 = 48573953.4;
  2564. auto a3 = "String literal";
  2565. int total = 0;
  2566. for (auto i = a3; *i; ++i) { total += *i; }
  2567. decltype(a2) a4 = 34895.034;
  2568. }
  2569. {
  2570. // Test constexpr
  2571. short sa[cxx11test::get_val()] = { 0 };
  2572. }
  2573. {
  2574. // Test initializer lists
  2575. cxx11test::testinit il = { 4323, 435234.23544 };
  2576. }
  2577. {
  2578. // Test range-based for
  2579. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2580. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2581. for (auto &x : array) { x += 23; }
  2582. }
  2583. {
  2584. // Test lambda expressions
  2585. using cxx11test::eval;
  2586. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2587. double d = 2.0;
  2588. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2589. assert (d == 5.0);
  2590. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2591. assert (d == 5.0);
  2592. }
  2593. {
  2594. // Test use of variadic templates
  2595. using cxx11test::sum;
  2596. auto a = sum(1);
  2597. auto b = sum(1, 2);
  2598. auto c = sum(1.0, 2.0, 3.0);
  2599. }
  2600. {
  2601. // Test constructor delegation
  2602. cxx11test::delegate d1;
  2603. cxx11test::delegate d2();
  2604. cxx11test::delegate d3(45);
  2605. }
  2606. {
  2607. // Test override and final
  2608. cxx11test::overridden o1(55464);
  2609. }
  2610. {
  2611. // Test nullptr
  2612. char *c = nullptr;
  2613. }
  2614. {
  2615. // Test template brackets
  2616. test_template<::test_template<int>> v(test_template<int>(12));
  2617. }
  2618. {
  2619. // Unicode literals
  2620. char const *utf8 = u8"UTF-8 string \u2500";
  2621. char16_t const *utf16 = u"UTF-8 string \u2500";
  2622. char32_t const *utf32 = U"UTF-32 string \u2500";
  2623. }
  2624. '
  2625. # Test code for whether the C compiler supports C++11 (complete).
  2626. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2627. ${ac_cxx_conftest_cxx11_globals}
  2628. int
  2629. main (int argc, char **argv)
  2630. {
  2631. int ok = 0;
  2632. ${ac_cxx_conftest_cxx98_main}
  2633. ${ac_cxx_conftest_cxx11_main}
  2634. return ok;
  2635. }
  2636. "
  2637. # Test code for whether the C compiler supports C++98 (complete).
  2638. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2639. int
  2640. main (int argc, char **argv)
  2641. {
  2642. int ok = 0;
  2643. ${ac_cxx_conftest_cxx98_main}
  2644. return ok;
  2645. }
  2646. "
  2647. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2648. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2649. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2650. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2651. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2652. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2653. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2654. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2655. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2656. # Auxiliary files required by this configure script.
  2657. ac_aux_files="config.guess config.sub"
  2658. # Locations in which to look for auxiliary files.
  2659. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2660. # Search for a directory containing all of the required auxiliary files,
  2661. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2662. # If we don't find one directory that contains all the files we need,
  2663. # we report the set of missing files from the *first* directory in
  2664. # $ac_aux_dir_candidates and give up.
  2665. ac_missing_aux_files=""
  2666. ac_first_candidate=:
  2667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2669. as_found=false
  2670. for as_dir in $ac_aux_dir_candidates
  2671. do
  2672. IFS=$as_save_IFS
  2673. case $as_dir in #(((
  2674. '') as_dir=./ ;;
  2675. */) ;;
  2676. *) as_dir=$as_dir/ ;;
  2677. esac
  2678. as_found=:
  2679. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2680. ac_aux_dir_found=yes
  2681. ac_install_sh=
  2682. for ac_aux in $ac_aux_files
  2683. do
  2684. # As a special case, if "install-sh" is required, that requirement
  2685. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2686. # and $ac_install_sh is set appropriately for whichever one is found.
  2687. if test x"$ac_aux" = x"install-sh"
  2688. then
  2689. if test -f "${as_dir}install-sh"; then
  2690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2691. ac_install_sh="${as_dir}install-sh -c"
  2692. elif test -f "${as_dir}install.sh"; then
  2693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2694. ac_install_sh="${as_dir}install.sh -c"
  2695. elif test -f "${as_dir}shtool"; then
  2696. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2697. ac_install_sh="${as_dir}shtool install -c"
  2698. else
  2699. ac_aux_dir_found=no
  2700. if $ac_first_candidate; then
  2701. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2702. else
  2703. break
  2704. fi
  2705. fi
  2706. else
  2707. if test -f "${as_dir}${ac_aux}"; then
  2708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2709. else
  2710. ac_aux_dir_found=no
  2711. if $ac_first_candidate; then
  2712. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2713. else
  2714. break
  2715. fi
  2716. fi
  2717. fi
  2718. done
  2719. if test "$ac_aux_dir_found" = yes; then
  2720. ac_aux_dir="$as_dir"
  2721. break
  2722. fi
  2723. ac_first_candidate=false
  2724. as_found=false
  2725. done
  2726. IFS=$as_save_IFS
  2727. if $as_found
  2728. then :
  2729. else $as_nop
  2730. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2731. fi
  2732. # These three variables are undocumented and unsupported,
  2733. # and are intended to be withdrawn in a future Autoconf release.
  2734. # They can cause serious problems if a builder's source tree is in a directory
  2735. # whose full name contains unusual characters.
  2736. if test -f "${ac_aux_dir}config.guess"; then
  2737. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2738. fi
  2739. if test -f "${ac_aux_dir}config.sub"; then
  2740. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2741. fi
  2742. if test -f "$ac_aux_dir/configure"; then
  2743. ac_configure="$SHELL ${ac_aux_dir}configure"
  2744. fi
  2745. # Check that the precious variables saved in the cache have kept the same
  2746. # value.
  2747. ac_cache_corrupted=false
  2748. for ac_var in $ac_precious_vars; do
  2749. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2750. eval ac_new_set=\$ac_env_${ac_var}_set
  2751. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2752. eval ac_new_val=\$ac_env_${ac_var}_value
  2753. case $ac_old_set,$ac_new_set in
  2754. set,)
  2755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2756. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2757. ac_cache_corrupted=: ;;
  2758. ,set)
  2759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2760. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2761. ac_cache_corrupted=: ;;
  2762. ,);;
  2763. *)
  2764. if test "x$ac_old_val" != "x$ac_new_val"; then
  2765. # differences in whitespace do not lead to failure.
  2766. ac_old_val_w=`echo x $ac_old_val`
  2767. ac_new_val_w=`echo x $ac_new_val`
  2768. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2770. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2771. ac_cache_corrupted=:
  2772. else
  2773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2774. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2775. eval $ac_var=\$ac_old_val
  2776. fi
  2777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2778. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2780. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2781. fi;;
  2782. esac
  2783. # Pass precious variables to config.status.
  2784. if test "$ac_new_set" = set; then
  2785. case $ac_new_val in
  2786. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2787. *) ac_arg=$ac_var=$ac_new_val ;;
  2788. esac
  2789. case " $ac_configure_args " in
  2790. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2791. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2792. esac
  2793. fi
  2794. done
  2795. if $ac_cache_corrupted; then
  2796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2797. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2799. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2800. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2801. and start over" "$LINENO" 5
  2802. fi
  2803. ## -------------------- ##
  2804. ## Main body of script. ##
  2805. ## -------------------- ##
  2806. ac_ext=c
  2807. ac_cpp='$CPP $CPPFLAGS'
  2808. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2809. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2810. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2811. host_orig="$host"
  2812. # Make sure we can run config.sub.
  2813. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2814. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2816. printf %s "checking build system type... " >&6; }
  2817. if test ${ac_cv_build+y}
  2818. then :
  2819. printf %s "(cached) " >&6
  2820. else $as_nop
  2821. ac_build_alias=$build_alias
  2822. test "x$ac_build_alias" = x &&
  2823. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2824. test "x$ac_build_alias" = x &&
  2825. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2826. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2827. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2828. fi
  2829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2830. printf "%s\n" "$ac_cv_build" >&6; }
  2831. case $ac_cv_build in
  2832. *-*-*) ;;
  2833. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2834. esac
  2835. build=$ac_cv_build
  2836. ac_save_IFS=$IFS; IFS='-'
  2837. set x $ac_cv_build
  2838. shift
  2839. build_cpu=$1
  2840. build_vendor=$2
  2841. shift; shift
  2842. # Remember, the first character of IFS is used to create $*,
  2843. # except with old shells:
  2844. build_os=$*
  2845. IFS=$ac_save_IFS
  2846. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2848. printf %s "checking host system type... " >&6; }
  2849. if test ${ac_cv_host+y}
  2850. then :
  2851. printf %s "(cached) " >&6
  2852. else $as_nop
  2853. if test "x$host_alias" = x; then
  2854. ac_cv_host=$ac_cv_build
  2855. else
  2856. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2857. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2858. fi
  2859. fi
  2860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2861. printf "%s\n" "$ac_cv_host" >&6; }
  2862. case $ac_cv_host in
  2863. *-*-*) ;;
  2864. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2865. esac
  2866. host=$ac_cv_host
  2867. ac_save_IFS=$IFS; IFS='-'
  2868. set x $ac_cv_host
  2869. shift
  2870. host_cpu=$1
  2871. host_vendor=$2
  2872. shift; shift
  2873. # Remember, the first character of IFS is used to create $*,
  2874. # except with old shells:
  2875. host_os=$*
  2876. IFS=$ac_save_IFS
  2877. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2879. printf %s "checking target system type... " >&6; }
  2880. if test ${ac_cv_target+y}
  2881. then :
  2882. printf %s "(cached) " >&6
  2883. else $as_nop
  2884. if test "x$target_alias" = x; then
  2885. ac_cv_target=$ac_cv_host
  2886. else
  2887. ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
  2888. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
  2889. fi
  2890. fi
  2891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2892. printf "%s\n" "$ac_cv_target" >&6; }
  2893. case $ac_cv_target in
  2894. *-*-*) ;;
  2895. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2896. esac
  2897. target=$ac_cv_target
  2898. ac_save_IFS=$IFS; IFS='-'
  2899. set x $ac_cv_target
  2900. shift
  2901. target_cpu=$1
  2902. target_vendor=$2
  2903. shift; shift
  2904. # Remember, the first character of IFS is used to create $*,
  2905. # except with old shells:
  2906. target_os=$*
  2907. IFS=$ac_save_IFS
  2908. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2909. # The aliases save the names the user supplied, while $host etc.
  2910. # will get canonicalized.
  2911. test -n "$target_alias" &&
  2912. test "$program_prefix$program_suffix$program_transform_name" = \
  2913. NONENONEs,x,x, &&
  2914. program_prefix=${target_alias}-
  2915. ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
  2916. ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak"
  2917. if test "$CFLAGS" = ""; then
  2918. CFLAGS="-O2"
  2919. fi
  2920. ac_ext=c
  2921. ac_cpp='$CPP $CPPFLAGS'
  2922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2925. if test -n "$ac_tool_prefix"; then
  2926. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2927. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2929. printf %s "checking for $ac_word... " >&6; }
  2930. if test ${ac_cv_prog_CC+y}
  2931. then :
  2932. printf %s "(cached) " >&6
  2933. else $as_nop
  2934. if test -n "$CC"; then
  2935. ac_cv_prog_CC="$CC" # Let the user override the test.
  2936. else
  2937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2938. for as_dir in $PATH
  2939. do
  2940. IFS=$as_save_IFS
  2941. case $as_dir in #(((
  2942. '') as_dir=./ ;;
  2943. */) ;;
  2944. *) as_dir=$as_dir/ ;;
  2945. esac
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2948. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. IFS=$as_save_IFS
  2955. fi
  2956. fi
  2957. CC=$ac_cv_prog_CC
  2958. if test -n "$CC"; then
  2959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2960. printf "%s\n" "$CC" >&6; }
  2961. else
  2962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. printf "%s\n" "no" >&6; }
  2964. fi
  2965. fi
  2966. if test -z "$ac_cv_prog_CC"; then
  2967. ac_ct_CC=$CC
  2968. # Extract the first word of "gcc", so it can be a program name with args.
  2969. set dummy gcc; ac_word=$2
  2970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2971. printf %s "checking for $ac_word... " >&6; }
  2972. if test ${ac_cv_prog_ac_ct_CC+y}
  2973. then :
  2974. printf %s "(cached) " >&6
  2975. else $as_nop
  2976. if test -n "$ac_ct_CC"; then
  2977. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2978. else
  2979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2980. for as_dir in $PATH
  2981. do
  2982. IFS=$as_save_IFS
  2983. case $as_dir in #(((
  2984. '') as_dir=./ ;;
  2985. */) ;;
  2986. *) as_dir=$as_dir/ ;;
  2987. esac
  2988. for ac_exec_ext in '' $ac_executable_extensions; do
  2989. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2990. ac_cv_prog_ac_ct_CC="gcc"
  2991. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2992. break 2
  2993. fi
  2994. done
  2995. done
  2996. IFS=$as_save_IFS
  2997. fi
  2998. fi
  2999. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3000. if test -n "$ac_ct_CC"; then
  3001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3002. printf "%s\n" "$ac_ct_CC" >&6; }
  3003. else
  3004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3005. printf "%s\n" "no" >&6; }
  3006. fi
  3007. if test "x$ac_ct_CC" = x; then
  3008. CC=""
  3009. else
  3010. case $cross_compiling:$ac_tool_warned in
  3011. yes:)
  3012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3013. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3014. ac_tool_warned=yes ;;
  3015. esac
  3016. CC=$ac_ct_CC
  3017. fi
  3018. else
  3019. CC="$ac_cv_prog_CC"
  3020. fi
  3021. if test -z "$CC"; then
  3022. if test -n "$ac_tool_prefix"; then
  3023. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3024. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3026. printf %s "checking for $ac_word... " >&6; }
  3027. if test ${ac_cv_prog_CC+y}
  3028. then :
  3029. printf %s "(cached) " >&6
  3030. else $as_nop
  3031. if test -n "$CC"; then
  3032. ac_cv_prog_CC="$CC" # Let the user override the test.
  3033. else
  3034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3035. for as_dir in $PATH
  3036. do
  3037. IFS=$as_save_IFS
  3038. case $as_dir in #(((
  3039. '') as_dir=./ ;;
  3040. */) ;;
  3041. *) as_dir=$as_dir/ ;;
  3042. esac
  3043. for ac_exec_ext in '' $ac_executable_extensions; do
  3044. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3045. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3046. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3047. break 2
  3048. fi
  3049. done
  3050. done
  3051. IFS=$as_save_IFS
  3052. fi
  3053. fi
  3054. CC=$ac_cv_prog_CC
  3055. if test -n "$CC"; then
  3056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3057. printf "%s\n" "$CC" >&6; }
  3058. else
  3059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3060. printf "%s\n" "no" >&6; }
  3061. fi
  3062. fi
  3063. fi
  3064. if test -z "$CC"; then
  3065. # Extract the first word of "cc", so it can be a program name with args.
  3066. set dummy cc; ac_word=$2
  3067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3068. printf %s "checking for $ac_word... " >&6; }
  3069. if test ${ac_cv_prog_CC+y}
  3070. then :
  3071. printf %s "(cached) " >&6
  3072. else $as_nop
  3073. if test -n "$CC"; then
  3074. ac_cv_prog_CC="$CC" # Let the user override the test.
  3075. else
  3076. ac_prog_rejected=no
  3077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3078. for as_dir in $PATH
  3079. do
  3080. IFS=$as_save_IFS
  3081. case $as_dir in #(((
  3082. '') as_dir=./ ;;
  3083. */) ;;
  3084. *) as_dir=$as_dir/ ;;
  3085. esac
  3086. for ac_exec_ext in '' $ac_executable_extensions; do
  3087. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3088. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3089. ac_prog_rejected=yes
  3090. continue
  3091. fi
  3092. ac_cv_prog_CC="cc"
  3093. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3094. break 2
  3095. fi
  3096. done
  3097. done
  3098. IFS=$as_save_IFS
  3099. if test $ac_prog_rejected = yes; then
  3100. # We found a bogon in the path, so make sure we never use it.
  3101. set dummy $ac_cv_prog_CC
  3102. shift
  3103. if test $# != 0; then
  3104. # We chose a different compiler from the bogus one.
  3105. # However, it has the same basename, so the bogon will be chosen
  3106. # first if we set CC to just the basename; use the full file name.
  3107. shift
  3108. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3109. fi
  3110. fi
  3111. fi
  3112. fi
  3113. CC=$ac_cv_prog_CC
  3114. if test -n "$CC"; then
  3115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3116. printf "%s\n" "$CC" >&6; }
  3117. else
  3118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3119. printf "%s\n" "no" >&6; }
  3120. fi
  3121. fi
  3122. if test -z "$CC"; then
  3123. if test -n "$ac_tool_prefix"; then
  3124. for ac_prog in cl.exe
  3125. do
  3126. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3127. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3129. printf %s "checking for $ac_word... " >&6; }
  3130. if test ${ac_cv_prog_CC+y}
  3131. then :
  3132. printf %s "(cached) " >&6
  3133. else $as_nop
  3134. if test -n "$CC"; then
  3135. ac_cv_prog_CC="$CC" # Let the user override the test.
  3136. else
  3137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3138. for as_dir in $PATH
  3139. do
  3140. IFS=$as_save_IFS
  3141. case $as_dir in #(((
  3142. '') as_dir=./ ;;
  3143. */) ;;
  3144. *) as_dir=$as_dir/ ;;
  3145. esac
  3146. for ac_exec_ext in '' $ac_executable_extensions; do
  3147. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3148. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3149. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3150. break 2
  3151. fi
  3152. done
  3153. done
  3154. IFS=$as_save_IFS
  3155. fi
  3156. fi
  3157. CC=$ac_cv_prog_CC
  3158. if test -n "$CC"; then
  3159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3160. printf "%s\n" "$CC" >&6; }
  3161. else
  3162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3163. printf "%s\n" "no" >&6; }
  3164. fi
  3165. test -n "$CC" && break
  3166. done
  3167. fi
  3168. if test -z "$CC"; then
  3169. ac_ct_CC=$CC
  3170. for ac_prog in cl.exe
  3171. do
  3172. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3173. set dummy $ac_prog; ac_word=$2
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3175. printf %s "checking for $ac_word... " >&6; }
  3176. if test ${ac_cv_prog_ac_ct_CC+y}
  3177. then :
  3178. printf %s "(cached) " >&6
  3179. else $as_nop
  3180. if test -n "$ac_ct_CC"; then
  3181. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3182. else
  3183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3184. for as_dir in $PATH
  3185. do
  3186. IFS=$as_save_IFS
  3187. case $as_dir in #(((
  3188. '') as_dir=./ ;;
  3189. */) ;;
  3190. *) as_dir=$as_dir/ ;;
  3191. esac
  3192. for ac_exec_ext in '' $ac_executable_extensions; do
  3193. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3194. ac_cv_prog_ac_ct_CC="$ac_prog"
  3195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3196. break 2
  3197. fi
  3198. done
  3199. done
  3200. IFS=$as_save_IFS
  3201. fi
  3202. fi
  3203. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3204. if test -n "$ac_ct_CC"; then
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3206. printf "%s\n" "$ac_ct_CC" >&6; }
  3207. else
  3208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3209. printf "%s\n" "no" >&6; }
  3210. fi
  3211. test -n "$ac_ct_CC" && break
  3212. done
  3213. if test "x$ac_ct_CC" = x; then
  3214. CC=""
  3215. else
  3216. case $cross_compiling:$ac_tool_warned in
  3217. yes:)
  3218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3219. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3220. ac_tool_warned=yes ;;
  3221. esac
  3222. CC=$ac_ct_CC
  3223. fi
  3224. fi
  3225. fi
  3226. if test -z "$CC"; then
  3227. if test -n "$ac_tool_prefix"; then
  3228. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3229. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3231. printf %s "checking for $ac_word... " >&6; }
  3232. if test ${ac_cv_prog_CC+y}
  3233. then :
  3234. printf %s "(cached) " >&6
  3235. else $as_nop
  3236. if test -n "$CC"; then
  3237. ac_cv_prog_CC="$CC" # Let the user override the test.
  3238. else
  3239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3240. for as_dir in $PATH
  3241. do
  3242. IFS=$as_save_IFS
  3243. case $as_dir in #(((
  3244. '') as_dir=./ ;;
  3245. */) ;;
  3246. *) as_dir=$as_dir/ ;;
  3247. esac
  3248. for ac_exec_ext in '' $ac_executable_extensions; do
  3249. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3250. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3251. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3252. break 2
  3253. fi
  3254. done
  3255. done
  3256. IFS=$as_save_IFS
  3257. fi
  3258. fi
  3259. CC=$ac_cv_prog_CC
  3260. if test -n "$CC"; then
  3261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3262. printf "%s\n" "$CC" >&6; }
  3263. else
  3264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3265. printf "%s\n" "no" >&6; }
  3266. fi
  3267. fi
  3268. if test -z "$ac_cv_prog_CC"; then
  3269. ac_ct_CC=$CC
  3270. # Extract the first word of "clang", so it can be a program name with args.
  3271. set dummy clang; ac_word=$2
  3272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3273. printf %s "checking for $ac_word... " >&6; }
  3274. if test ${ac_cv_prog_ac_ct_CC+y}
  3275. then :
  3276. printf %s "(cached) " >&6
  3277. else $as_nop
  3278. if test -n "$ac_ct_CC"; then
  3279. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3280. else
  3281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3282. for as_dir in $PATH
  3283. do
  3284. IFS=$as_save_IFS
  3285. case $as_dir in #(((
  3286. '') as_dir=./ ;;
  3287. */) ;;
  3288. *) as_dir=$as_dir/ ;;
  3289. esac
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3292. ac_cv_prog_ac_ct_CC="clang"
  3293. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. fi
  3300. fi
  3301. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3302. if test -n "$ac_ct_CC"; then
  3303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3304. printf "%s\n" "$ac_ct_CC" >&6; }
  3305. else
  3306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3307. printf "%s\n" "no" >&6; }
  3308. fi
  3309. if test "x$ac_ct_CC" = x; then
  3310. CC=""
  3311. else
  3312. case $cross_compiling:$ac_tool_warned in
  3313. yes:)
  3314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3315. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3316. ac_tool_warned=yes ;;
  3317. esac
  3318. CC=$ac_ct_CC
  3319. fi
  3320. else
  3321. CC="$ac_cv_prog_CC"
  3322. fi
  3323. fi
  3324. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3325. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3326. as_fn_error $? "no acceptable C compiler found in \$PATH
  3327. See \`config.log' for more details" "$LINENO" 5; }
  3328. # Provide some information about the compiler.
  3329. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3330. set X $ac_compile
  3331. ac_compiler=$2
  3332. for ac_option in --version -v -V -qversion -version; do
  3333. { { ac_try="$ac_compiler $ac_option >&5"
  3334. case "(($ac_try" in
  3335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3336. *) ac_try_echo=$ac_try;;
  3337. esac
  3338. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3339. printf "%s\n" "$ac_try_echo"; } >&5
  3340. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3341. ac_status=$?
  3342. if test -s conftest.err; then
  3343. sed '10a\
  3344. ... rest of stderr output deleted ...
  3345. 10q' conftest.err >conftest.er1
  3346. cat conftest.er1 >&5
  3347. fi
  3348. rm -f conftest.er1 conftest.err
  3349. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3350. test $ac_status = 0; }
  3351. done
  3352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3353. /* end confdefs.h. */
  3354. int
  3355. main (void)
  3356. {
  3357. ;
  3358. return 0;
  3359. }
  3360. _ACEOF
  3361. ac_clean_files_save=$ac_clean_files
  3362. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3363. # Try to create an executable without -o first, disregard a.out.
  3364. # It will help us diagnose broken compilers, and finding out an intuition
  3365. # of exeext.
  3366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3367. printf %s "checking whether the C compiler works... " >&6; }
  3368. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3369. # The possible output files:
  3370. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3371. ac_rmfiles=
  3372. for ac_file in $ac_files
  3373. do
  3374. case $ac_file in
  3375. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3376. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3377. esac
  3378. done
  3379. rm -f $ac_rmfiles
  3380. if { { ac_try="$ac_link_default"
  3381. case "(($ac_try" in
  3382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3383. *) ac_try_echo=$ac_try;;
  3384. esac
  3385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3386. printf "%s\n" "$ac_try_echo"; } >&5
  3387. (eval "$ac_link_default") 2>&5
  3388. ac_status=$?
  3389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3390. test $ac_status = 0; }
  3391. then :
  3392. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3393. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3394. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3395. # so that the user can short-circuit this test for compilers unknown to
  3396. # Autoconf.
  3397. for ac_file in $ac_files ''
  3398. do
  3399. test -f "$ac_file" || continue
  3400. case $ac_file in
  3401. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3402. ;;
  3403. [ab].out )
  3404. # We found the default executable, but exeext='' is most
  3405. # certainly right.
  3406. break;;
  3407. *.* )
  3408. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3409. then :; else
  3410. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3411. fi
  3412. # We set ac_cv_exeext here because the later test for it is not
  3413. # safe: cross compilers may not add the suffix if given an `-o'
  3414. # argument, so we may need to know it at that point already.
  3415. # Even if this section looks crufty: it has the advantage of
  3416. # actually working.
  3417. break;;
  3418. * )
  3419. break;;
  3420. esac
  3421. done
  3422. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3423. else $as_nop
  3424. ac_file=''
  3425. fi
  3426. if test -z "$ac_file"
  3427. then :
  3428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3429. printf "%s\n" "no" >&6; }
  3430. printf "%s\n" "$as_me: failed program was:" >&5
  3431. sed 's/^/| /' conftest.$ac_ext >&5
  3432. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3433. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3434. as_fn_error 77 "C compiler cannot create executables
  3435. See \`config.log' for more details" "$LINENO" 5; }
  3436. else $as_nop
  3437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3438. printf "%s\n" "yes" >&6; }
  3439. fi
  3440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3441. printf %s "checking for C compiler default output file name... " >&6; }
  3442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3443. printf "%s\n" "$ac_file" >&6; }
  3444. ac_exeext=$ac_cv_exeext
  3445. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3446. ac_clean_files=$ac_clean_files_save
  3447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3448. printf %s "checking for suffix of executables... " >&6; }
  3449. if { { ac_try="$ac_link"
  3450. case "(($ac_try" in
  3451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3452. *) ac_try_echo=$ac_try;;
  3453. esac
  3454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3455. printf "%s\n" "$ac_try_echo"; } >&5
  3456. (eval "$ac_link") 2>&5
  3457. ac_status=$?
  3458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3459. test $ac_status = 0; }
  3460. then :
  3461. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3462. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3463. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3464. # `rm'.
  3465. for ac_file in conftest.exe conftest conftest.*; do
  3466. test -f "$ac_file" || continue
  3467. case $ac_file in
  3468. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3469. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3470. break;;
  3471. * ) break;;
  3472. esac
  3473. done
  3474. else $as_nop
  3475. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3476. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3477. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3478. See \`config.log' for more details" "$LINENO" 5; }
  3479. fi
  3480. rm -f conftest conftest$ac_cv_exeext
  3481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3482. printf "%s\n" "$ac_cv_exeext" >&6; }
  3483. rm -f conftest.$ac_ext
  3484. EXEEXT=$ac_cv_exeext
  3485. ac_exeext=$EXEEXT
  3486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3487. /* end confdefs.h. */
  3488. #include <stdio.h>
  3489. int
  3490. main (void)
  3491. {
  3492. FILE *f = fopen ("conftest.out", "w");
  3493. return ferror (f) || fclose (f) != 0;
  3494. ;
  3495. return 0;
  3496. }
  3497. _ACEOF
  3498. ac_clean_files="$ac_clean_files conftest.out"
  3499. # Check that the compiler produces executables we can run. If not, either
  3500. # the compiler is broken, or we cross compile.
  3501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3502. printf %s "checking whether we are cross compiling... " >&6; }
  3503. if test "$cross_compiling" != yes; then
  3504. { { ac_try="$ac_link"
  3505. case "(($ac_try" in
  3506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507. *) ac_try_echo=$ac_try;;
  3508. esac
  3509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3510. printf "%s\n" "$ac_try_echo"; } >&5
  3511. (eval "$ac_link") 2>&5
  3512. ac_status=$?
  3513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3514. test $ac_status = 0; }
  3515. if { ac_try='./conftest$ac_cv_exeext'
  3516. { { case "(($ac_try" in
  3517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3518. *) ac_try_echo=$ac_try;;
  3519. esac
  3520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3521. printf "%s\n" "$ac_try_echo"; } >&5
  3522. (eval "$ac_try") 2>&5
  3523. ac_status=$?
  3524. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3525. test $ac_status = 0; }; }; then
  3526. cross_compiling=no
  3527. else
  3528. if test "$cross_compiling" = maybe; then
  3529. cross_compiling=yes
  3530. else
  3531. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3532. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3533. as_fn_error 77 "cannot run C compiled programs.
  3534. If you meant to cross compile, use \`--host'.
  3535. See \`config.log' for more details" "$LINENO" 5; }
  3536. fi
  3537. fi
  3538. fi
  3539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3540. printf "%s\n" "$cross_compiling" >&6; }
  3541. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3542. ac_clean_files=$ac_clean_files_save
  3543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3544. printf %s "checking for suffix of object files... " >&6; }
  3545. if test ${ac_cv_objext+y}
  3546. then :
  3547. printf %s "(cached) " >&6
  3548. else $as_nop
  3549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3550. /* end confdefs.h. */
  3551. int
  3552. main (void)
  3553. {
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. rm -f conftest.o conftest.obj
  3559. if { { ac_try="$ac_compile"
  3560. case "(($ac_try" in
  3561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3562. *) ac_try_echo=$ac_try;;
  3563. esac
  3564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3565. printf "%s\n" "$ac_try_echo"; } >&5
  3566. (eval "$ac_compile") 2>&5
  3567. ac_status=$?
  3568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3569. test $ac_status = 0; }
  3570. then :
  3571. for ac_file in conftest.o conftest.obj conftest.*; do
  3572. test -f "$ac_file" || continue;
  3573. case $ac_file in
  3574. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3575. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3576. break;;
  3577. esac
  3578. done
  3579. else $as_nop
  3580. printf "%s\n" "$as_me: failed program was:" >&5
  3581. sed 's/^/| /' conftest.$ac_ext >&5
  3582. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3583. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3584. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3585. See \`config.log' for more details" "$LINENO" 5; }
  3586. fi
  3587. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3588. fi
  3589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3590. printf "%s\n" "$ac_cv_objext" >&6; }
  3591. OBJEXT=$ac_cv_objext
  3592. ac_objext=$OBJEXT
  3593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3594. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3595. if test ${ac_cv_c_compiler_gnu+y}
  3596. then :
  3597. printf %s "(cached) " >&6
  3598. else $as_nop
  3599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3600. /* end confdefs.h. */
  3601. int
  3602. main (void)
  3603. {
  3604. #ifndef __GNUC__
  3605. choke me
  3606. #endif
  3607. ;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. if ac_fn_c_try_compile "$LINENO"
  3612. then :
  3613. ac_compiler_gnu=yes
  3614. else $as_nop
  3615. ac_compiler_gnu=no
  3616. fi
  3617. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3618. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3619. fi
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3621. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3623. if test $ac_compiler_gnu = yes; then
  3624. GCC=yes
  3625. else
  3626. GCC=
  3627. fi
  3628. ac_test_CFLAGS=${CFLAGS+y}
  3629. ac_save_CFLAGS=$CFLAGS
  3630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3631. printf %s "checking whether $CC accepts -g... " >&6; }
  3632. if test ${ac_cv_prog_cc_g+y}
  3633. then :
  3634. printf %s "(cached) " >&6
  3635. else $as_nop
  3636. ac_save_c_werror_flag=$ac_c_werror_flag
  3637. ac_c_werror_flag=yes
  3638. ac_cv_prog_cc_g=no
  3639. CFLAGS="-g"
  3640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3641. /* end confdefs.h. */
  3642. int
  3643. main (void)
  3644. {
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. if ac_fn_c_try_compile "$LINENO"
  3650. then :
  3651. ac_cv_prog_cc_g=yes
  3652. else $as_nop
  3653. CFLAGS=""
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. int
  3657. main (void)
  3658. {
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. if ac_fn_c_try_compile "$LINENO"
  3664. then :
  3665. else $as_nop
  3666. ac_c_werror_flag=$ac_save_c_werror_flag
  3667. CFLAGS="-g"
  3668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3669. /* end confdefs.h. */
  3670. int
  3671. main (void)
  3672. {
  3673. ;
  3674. return 0;
  3675. }
  3676. _ACEOF
  3677. if ac_fn_c_try_compile "$LINENO"
  3678. then :
  3679. ac_cv_prog_cc_g=yes
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3682. fi
  3683. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3684. fi
  3685. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3686. ac_c_werror_flag=$ac_save_c_werror_flag
  3687. fi
  3688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3689. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3690. if test $ac_test_CFLAGS; then
  3691. CFLAGS=$ac_save_CFLAGS
  3692. elif test $ac_cv_prog_cc_g = yes; then
  3693. if test "$GCC" = yes; then
  3694. CFLAGS="-g -O2"
  3695. else
  3696. CFLAGS="-g"
  3697. fi
  3698. else
  3699. if test "$GCC" = yes; then
  3700. CFLAGS="-O2"
  3701. else
  3702. CFLAGS=
  3703. fi
  3704. fi
  3705. ac_prog_cc_stdc=no
  3706. if test x$ac_prog_cc_stdc = xno
  3707. then :
  3708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3709. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3710. if test ${ac_cv_prog_cc_c11+y}
  3711. then :
  3712. printf %s "(cached) " >&6
  3713. else $as_nop
  3714. ac_cv_prog_cc_c11=no
  3715. ac_save_CC=$CC
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. $ac_c_conftest_c11_program
  3719. _ACEOF
  3720. for ac_arg in '' -std=gnu11
  3721. do
  3722. CC="$ac_save_CC $ac_arg"
  3723. if ac_fn_c_try_compile "$LINENO"
  3724. then :
  3725. ac_cv_prog_cc_c11=$ac_arg
  3726. fi
  3727. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3728. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3729. done
  3730. rm -f conftest.$ac_ext
  3731. CC=$ac_save_CC
  3732. fi
  3733. if test "x$ac_cv_prog_cc_c11" = xno
  3734. then :
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3736. printf "%s\n" "unsupported" >&6; }
  3737. else $as_nop
  3738. if test "x$ac_cv_prog_cc_c11" = x
  3739. then :
  3740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3741. printf "%s\n" "none needed" >&6; }
  3742. else $as_nop
  3743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3744. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3745. CC="$CC $ac_cv_prog_cc_c11"
  3746. fi
  3747. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3748. ac_prog_cc_stdc=c11
  3749. fi
  3750. fi
  3751. if test x$ac_prog_cc_stdc = xno
  3752. then :
  3753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3754. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3755. if test ${ac_cv_prog_cc_c99+y}
  3756. then :
  3757. printf %s "(cached) " >&6
  3758. else $as_nop
  3759. ac_cv_prog_cc_c99=no
  3760. ac_save_CC=$CC
  3761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3762. /* end confdefs.h. */
  3763. $ac_c_conftest_c99_program
  3764. _ACEOF
  3765. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3766. do
  3767. CC="$ac_save_CC $ac_arg"
  3768. if ac_fn_c_try_compile "$LINENO"
  3769. then :
  3770. ac_cv_prog_cc_c99=$ac_arg
  3771. fi
  3772. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3773. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3774. done
  3775. rm -f conftest.$ac_ext
  3776. CC=$ac_save_CC
  3777. fi
  3778. if test "x$ac_cv_prog_cc_c99" = xno
  3779. then :
  3780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3781. printf "%s\n" "unsupported" >&6; }
  3782. else $as_nop
  3783. if test "x$ac_cv_prog_cc_c99" = x
  3784. then :
  3785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3786. printf "%s\n" "none needed" >&6; }
  3787. else $as_nop
  3788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3789. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3790. CC="$CC $ac_cv_prog_cc_c99"
  3791. fi
  3792. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3793. ac_prog_cc_stdc=c99
  3794. fi
  3795. fi
  3796. if test x$ac_prog_cc_stdc = xno
  3797. then :
  3798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3799. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3800. if test ${ac_cv_prog_cc_c89+y}
  3801. then :
  3802. printf %s "(cached) " >&6
  3803. else $as_nop
  3804. ac_cv_prog_cc_c89=no
  3805. ac_save_CC=$CC
  3806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3807. /* end confdefs.h. */
  3808. $ac_c_conftest_c89_program
  3809. _ACEOF
  3810. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3811. do
  3812. CC="$ac_save_CC $ac_arg"
  3813. if ac_fn_c_try_compile "$LINENO"
  3814. then :
  3815. ac_cv_prog_cc_c89=$ac_arg
  3816. fi
  3817. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3818. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3819. done
  3820. rm -f conftest.$ac_ext
  3821. CC=$ac_save_CC
  3822. fi
  3823. if test "x$ac_cv_prog_cc_c89" = xno
  3824. then :
  3825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3826. printf "%s\n" "unsupported" >&6; }
  3827. else $as_nop
  3828. if test "x$ac_cv_prog_cc_c89" = x
  3829. then :
  3830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3831. printf "%s\n" "none needed" >&6; }
  3832. else $as_nop
  3833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3834. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3835. CC="$CC $ac_cv_prog_cc_c89"
  3836. fi
  3837. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3838. ac_prog_cc_stdc=c89
  3839. fi
  3840. fi
  3841. ac_ext=c
  3842. ac_cpp='$CPP $CPPFLAGS'
  3843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3846. ac_ext=cpp
  3847. ac_cpp='$CXXCPP $CPPFLAGS'
  3848. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3849. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3850. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3851. if test -z "$CXX"; then
  3852. if test -n "$CCC"; then
  3853. CXX=$CCC
  3854. else
  3855. if test -n "$ac_tool_prefix"; then
  3856. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3857. do
  3858. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3859. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3861. printf %s "checking for $ac_word... " >&6; }
  3862. if test ${ac_cv_prog_CXX+y}
  3863. then :
  3864. printf %s "(cached) " >&6
  3865. else $as_nop
  3866. if test -n "$CXX"; then
  3867. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3868. else
  3869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3870. for as_dir in $PATH
  3871. do
  3872. IFS=$as_save_IFS
  3873. case $as_dir in #(((
  3874. '') as_dir=./ ;;
  3875. */) ;;
  3876. *) as_dir=$as_dir/ ;;
  3877. esac
  3878. for ac_exec_ext in '' $ac_executable_extensions; do
  3879. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3880. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3881. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3882. break 2
  3883. fi
  3884. done
  3885. done
  3886. IFS=$as_save_IFS
  3887. fi
  3888. fi
  3889. CXX=$ac_cv_prog_CXX
  3890. if test -n "$CXX"; then
  3891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3892. printf "%s\n" "$CXX" >&6; }
  3893. else
  3894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3895. printf "%s\n" "no" >&6; }
  3896. fi
  3897. test -n "$CXX" && break
  3898. done
  3899. fi
  3900. if test -z "$CXX"; then
  3901. ac_ct_CXX=$CXX
  3902. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3903. do
  3904. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3905. set dummy $ac_prog; ac_word=$2
  3906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3907. printf %s "checking for $ac_word... " >&6; }
  3908. if test ${ac_cv_prog_ac_ct_CXX+y}
  3909. then :
  3910. printf %s "(cached) " >&6
  3911. else $as_nop
  3912. if test -n "$ac_ct_CXX"; then
  3913. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3914. else
  3915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3916. for as_dir in $PATH
  3917. do
  3918. IFS=$as_save_IFS
  3919. case $as_dir in #(((
  3920. '') as_dir=./ ;;
  3921. */) ;;
  3922. *) as_dir=$as_dir/ ;;
  3923. esac
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3926. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3927. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. IFS=$as_save_IFS
  3933. fi
  3934. fi
  3935. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3936. if test -n "$ac_ct_CXX"; then
  3937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3938. printf "%s\n" "$ac_ct_CXX" >&6; }
  3939. else
  3940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3941. printf "%s\n" "no" >&6; }
  3942. fi
  3943. test -n "$ac_ct_CXX" && break
  3944. done
  3945. if test "x$ac_ct_CXX" = x; then
  3946. CXX="g++"
  3947. else
  3948. case $cross_compiling:$ac_tool_warned in
  3949. yes:)
  3950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3951. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3952. ac_tool_warned=yes ;;
  3953. esac
  3954. CXX=$ac_ct_CXX
  3955. fi
  3956. fi
  3957. fi
  3958. fi
  3959. # Provide some information about the compiler.
  3960. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3961. set X $ac_compile
  3962. ac_compiler=$2
  3963. for ac_option in --version -v -V -qversion; do
  3964. { { ac_try="$ac_compiler $ac_option >&5"
  3965. case "(($ac_try" in
  3966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3967. *) ac_try_echo=$ac_try;;
  3968. esac
  3969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3970. printf "%s\n" "$ac_try_echo"; } >&5
  3971. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3972. ac_status=$?
  3973. if test -s conftest.err; then
  3974. sed '10a\
  3975. ... rest of stderr output deleted ...
  3976. 10q' conftest.err >conftest.er1
  3977. cat conftest.er1 >&5
  3978. fi
  3979. rm -f conftest.er1 conftest.err
  3980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3981. test $ac_status = 0; }
  3982. done
  3983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  3984. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  3985. if test ${ac_cv_cxx_compiler_gnu+y}
  3986. then :
  3987. printf %s "(cached) " >&6
  3988. else $as_nop
  3989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3990. /* end confdefs.h. */
  3991. int
  3992. main (void)
  3993. {
  3994. #ifndef __GNUC__
  3995. choke me
  3996. #endif
  3997. ;
  3998. return 0;
  3999. }
  4000. _ACEOF
  4001. if ac_fn_cxx_try_compile "$LINENO"
  4002. then :
  4003. ac_compiler_gnu=yes
  4004. else $as_nop
  4005. ac_compiler_gnu=no
  4006. fi
  4007. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4008. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4009. fi
  4010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4011. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  4012. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4013. if test $ac_compiler_gnu = yes; then
  4014. GXX=yes
  4015. else
  4016. GXX=
  4017. fi
  4018. ac_test_CXXFLAGS=${CXXFLAGS+y}
  4019. ac_save_CXXFLAGS=$CXXFLAGS
  4020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4021. printf %s "checking whether $CXX accepts -g... " >&6; }
  4022. if test ${ac_cv_prog_cxx_g+y}
  4023. then :
  4024. printf %s "(cached) " >&6
  4025. else $as_nop
  4026. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4027. ac_cxx_werror_flag=yes
  4028. ac_cv_prog_cxx_g=no
  4029. CXXFLAGS="-g"
  4030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4031. /* end confdefs.h. */
  4032. int
  4033. main (void)
  4034. {
  4035. ;
  4036. return 0;
  4037. }
  4038. _ACEOF
  4039. if ac_fn_cxx_try_compile "$LINENO"
  4040. then :
  4041. ac_cv_prog_cxx_g=yes
  4042. else $as_nop
  4043. CXXFLAGS=""
  4044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4045. /* end confdefs.h. */
  4046. int
  4047. main (void)
  4048. {
  4049. ;
  4050. return 0;
  4051. }
  4052. _ACEOF
  4053. if ac_fn_cxx_try_compile "$LINENO"
  4054. then :
  4055. else $as_nop
  4056. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4057. CXXFLAGS="-g"
  4058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4059. /* end confdefs.h. */
  4060. int
  4061. main (void)
  4062. {
  4063. ;
  4064. return 0;
  4065. }
  4066. _ACEOF
  4067. if ac_fn_cxx_try_compile "$LINENO"
  4068. then :
  4069. ac_cv_prog_cxx_g=yes
  4070. fi
  4071. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4072. fi
  4073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4074. fi
  4075. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4076. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4077. fi
  4078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4079. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  4080. if test $ac_test_CXXFLAGS; then
  4081. CXXFLAGS=$ac_save_CXXFLAGS
  4082. elif test $ac_cv_prog_cxx_g = yes; then
  4083. if test "$GXX" = yes; then
  4084. CXXFLAGS="-g -O2"
  4085. else
  4086. CXXFLAGS="-g"
  4087. fi
  4088. else
  4089. if test "$GXX" = yes; then
  4090. CXXFLAGS="-O2"
  4091. else
  4092. CXXFLAGS=
  4093. fi
  4094. fi
  4095. ac_prog_cxx_stdcxx=no
  4096. if test x$ac_prog_cxx_stdcxx = xno
  4097. then :
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  4099. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  4100. if test ${ac_cv_prog_cxx_11+y}
  4101. then :
  4102. printf %s "(cached) " >&6
  4103. else $as_nop
  4104. ac_cv_prog_cxx_11=no
  4105. ac_save_CXX=$CXX
  4106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4107. /* end confdefs.h. */
  4108. $ac_cxx_conftest_cxx11_program
  4109. _ACEOF
  4110. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  4111. do
  4112. CXX="$ac_save_CXX $ac_arg"
  4113. if ac_fn_cxx_try_compile "$LINENO"
  4114. then :
  4115. ac_cv_prog_cxx_cxx11=$ac_arg
  4116. fi
  4117. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4118. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  4119. done
  4120. rm -f conftest.$ac_ext
  4121. CXX=$ac_save_CXX
  4122. fi
  4123. if test "x$ac_cv_prog_cxx_cxx11" = xno
  4124. then :
  4125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4126. printf "%s\n" "unsupported" >&6; }
  4127. else $as_nop
  4128. if test "x$ac_cv_prog_cxx_cxx11" = x
  4129. then :
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4131. printf "%s\n" "none needed" >&6; }
  4132. else $as_nop
  4133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  4134. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  4135. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  4136. fi
  4137. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  4138. ac_prog_cxx_stdcxx=cxx11
  4139. fi
  4140. fi
  4141. if test x$ac_prog_cxx_stdcxx = xno
  4142. then :
  4143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  4144. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  4145. if test ${ac_cv_prog_cxx_98+y}
  4146. then :
  4147. printf %s "(cached) " >&6
  4148. else $as_nop
  4149. ac_cv_prog_cxx_98=no
  4150. ac_save_CXX=$CXX
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. $ac_cxx_conftest_cxx98_program
  4154. _ACEOF
  4155. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  4156. do
  4157. CXX="$ac_save_CXX $ac_arg"
  4158. if ac_fn_cxx_try_compile "$LINENO"
  4159. then :
  4160. ac_cv_prog_cxx_cxx98=$ac_arg
  4161. fi
  4162. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4163. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  4164. done
  4165. rm -f conftest.$ac_ext
  4166. CXX=$ac_save_CXX
  4167. fi
  4168. if test "x$ac_cv_prog_cxx_cxx98" = xno
  4169. then :
  4170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4171. printf "%s\n" "unsupported" >&6; }
  4172. else $as_nop
  4173. if test "x$ac_cv_prog_cxx_cxx98" = x
  4174. then :
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4176. printf "%s\n" "none needed" >&6; }
  4177. else $as_nop
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  4179. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  4180. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  4181. fi
  4182. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  4183. ac_prog_cxx_stdcxx=cxx98
  4184. fi
  4185. fi
  4186. ac_ext=c
  4187. ac_cpp='$CPP $CPPFLAGS'
  4188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4191. ac_ext=c
  4192. ac_cpp='$CPP $CPPFLAGS'
  4193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4196. ac_ext=cpp
  4197. ac_cpp='$CXXCPP $CPPFLAGS'
  4198. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4199. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4200. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4202. /* end confdefs.h. */
  4203. int
  4204. main (void)
  4205. {
  4206. ;
  4207. return 0;
  4208. }
  4209. _ACEOF
  4210. if ac_fn_cxx_try_link "$LINENO"
  4211. then :
  4212. else $as_nop
  4213. as_fn_error $? "C++ compiler does not work" "$LINENO" 5
  4214. fi
  4215. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4216. conftest$ac_exeext conftest.$ac_ext
  4217. ac_ext=c
  4218. ac_cpp='$CPP $CPPFLAGS'
  4219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4222. if test -n "$ac_tool_prefix"; then
  4223. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4224. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4226. printf %s "checking for $ac_word... " >&6; }
  4227. if test ${ac_cv_prog_RANLIB+y}
  4228. then :
  4229. printf %s "(cached) " >&6
  4230. else $as_nop
  4231. if test -n "$RANLIB"; then
  4232. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4233. else
  4234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4235. for as_dir in $PATH
  4236. do
  4237. IFS=$as_save_IFS
  4238. case $as_dir in #(((
  4239. '') as_dir=./ ;;
  4240. */) ;;
  4241. *) as_dir=$as_dir/ ;;
  4242. esac
  4243. for ac_exec_ext in '' $ac_executable_extensions; do
  4244. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4245. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4246. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4247. break 2
  4248. fi
  4249. done
  4250. done
  4251. IFS=$as_save_IFS
  4252. fi
  4253. fi
  4254. RANLIB=$ac_cv_prog_RANLIB
  4255. if test -n "$RANLIB"; then
  4256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4257. printf "%s\n" "$RANLIB" >&6; }
  4258. else
  4259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4260. printf "%s\n" "no" >&6; }
  4261. fi
  4262. fi
  4263. if test -z "$ac_cv_prog_RANLIB"; then
  4264. ac_ct_RANLIB=$RANLIB
  4265. # Extract the first word of "ranlib", so it can be a program name with args.
  4266. set dummy ranlib; ac_word=$2
  4267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4268. printf %s "checking for $ac_word... " >&6; }
  4269. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  4270. then :
  4271. printf %s "(cached) " >&6
  4272. else $as_nop
  4273. if test -n "$ac_ct_RANLIB"; then
  4274. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4275. else
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. case $as_dir in #(((
  4281. '') as_dir=./ ;;
  4282. */) ;;
  4283. *) as_dir=$as_dir/ ;;
  4284. esac
  4285. for ac_exec_ext in '' $ac_executable_extensions; do
  4286. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4287. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4288. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4289. break 2
  4290. fi
  4291. done
  4292. done
  4293. IFS=$as_save_IFS
  4294. fi
  4295. fi
  4296. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4297. if test -n "$ac_ct_RANLIB"; then
  4298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4299. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  4300. else
  4301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4302. printf "%s\n" "no" >&6; }
  4303. fi
  4304. if test "x$ac_ct_RANLIB" = x; then
  4305. RANLIB=":"
  4306. else
  4307. case $cross_compiling:$ac_tool_warned in
  4308. yes:)
  4309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4310. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4311. ac_tool_warned=yes ;;
  4312. esac
  4313. RANLIB=$ac_ct_RANLIB
  4314. fi
  4315. else
  4316. RANLIB="$ac_cv_prog_RANLIB"
  4317. fi
  4318. if test -n "$ac_tool_prefix"; then
  4319. for ac_prog in ar gar
  4320. do
  4321. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4322. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4324. printf %s "checking for $ac_word... " >&6; }
  4325. if test ${ac_cv_prog_AR+y}
  4326. then :
  4327. printf %s "(cached) " >&6
  4328. else $as_nop
  4329. if test -n "$AR"; then
  4330. ac_cv_prog_AR="$AR" # Let the user override the test.
  4331. else
  4332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4333. for as_dir in $PATH
  4334. do
  4335. IFS=$as_save_IFS
  4336. case $as_dir in #(((
  4337. '') as_dir=./ ;;
  4338. */) ;;
  4339. *) as_dir=$as_dir/ ;;
  4340. esac
  4341. for ac_exec_ext in '' $ac_executable_extensions; do
  4342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4343. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4345. break 2
  4346. fi
  4347. done
  4348. done
  4349. IFS=$as_save_IFS
  4350. fi
  4351. fi
  4352. AR=$ac_cv_prog_AR
  4353. if test -n "$AR"; then
  4354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4355. printf "%s\n" "$AR" >&6; }
  4356. else
  4357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4358. printf "%s\n" "no" >&6; }
  4359. fi
  4360. test -n "$AR" && break
  4361. done
  4362. fi
  4363. if test -z "$AR"; then
  4364. ac_ct_AR=$AR
  4365. for ac_prog in ar gar
  4366. do
  4367. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4368. set dummy $ac_prog; ac_word=$2
  4369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4370. printf %s "checking for $ac_word... " >&6; }
  4371. if test ${ac_cv_prog_ac_ct_AR+y}
  4372. then :
  4373. printf %s "(cached) " >&6
  4374. else $as_nop
  4375. if test -n "$ac_ct_AR"; then
  4376. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4377. else
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH
  4380. do
  4381. IFS=$as_save_IFS
  4382. case $as_dir in #(((
  4383. '') as_dir=./ ;;
  4384. */) ;;
  4385. *) as_dir=$as_dir/ ;;
  4386. esac
  4387. for ac_exec_ext in '' $ac_executable_extensions; do
  4388. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4389. ac_cv_prog_ac_ct_AR="$ac_prog"
  4390. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4391. break 2
  4392. fi
  4393. done
  4394. done
  4395. IFS=$as_save_IFS
  4396. fi
  4397. fi
  4398. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4399. if test -n "$ac_ct_AR"; then
  4400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4401. printf "%s\n" "$ac_ct_AR" >&6; }
  4402. else
  4403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4404. printf "%s\n" "no" >&6; }
  4405. fi
  4406. test -n "$ac_ct_AR" && break
  4407. done
  4408. if test "x$ac_ct_AR" = x; then
  4409. AR=":"
  4410. else
  4411. case $cross_compiling:$ac_tool_warned in
  4412. yes:)
  4413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4414. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4415. ac_tool_warned=yes ;;
  4416. esac
  4417. AR=$ac_ct_AR
  4418. fi
  4419. fi
  4420. if test "$AR_FLAGS" = ""; then AR_FLAGS="rv"; fi
  4421. if test "$LD" = ""; then LD="$CXX"; fi
  4422. if test "$LDOUT" = ""; then LDOUT="-o "; fi
  4423. if test "$OBJEXT" = ""; then OBJEXT='o'; fi
  4424. if test "$LIBEXT" = ""; then LIBEXT='a'; fi
  4425. if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
  4426. if test "$CC_OUT" = ""; then CC_OUT="-c -o "; fi
  4427. if test "$CC_INC" = ""; then CC_INC="-I"; fi
  4428. if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
  4429. if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
  4430. if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
  4431. case $host in
  4432. *mingw* | *cygw* | *win32* | *w32* )
  4433. if pwd -W 2&> /dev/null; then
  4434. ac_pjdir=`pwd -W`
  4435. else
  4436. # We're probably cross-compiling mingw on Linux
  4437. ac_pjdir=`pwd`
  4438. fi
  4439. ;;
  4440. *)
  4441. ac_pjdir=`pwd`
  4442. ;;
  4443. esac
  4444. case $target in
  4445. *mingw* | *cygw* | *win32* | *w32* )
  4446. ac_shlib_suffix=dll
  4447. ;;
  4448. *darwin*)
  4449. ac_shlib_suffix=dylib
  4450. ;;
  4451. *)
  4452. ac_shlib_suffix=so
  4453. ;;
  4454. esac
  4455. if test "$build" = "$host"; then
  4456. ac_cross_compile=
  4457. else
  4458. ac_cross_compile=${host_orig}-
  4459. fi
  4460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  4461. printf %s "checking for pthread_create in -lpthread... " >&6; }
  4462. if test ${ac_cv_lib_pthread_pthread_create+y}
  4463. then :
  4464. printf %s "(cached) " >&6
  4465. else $as_nop
  4466. ac_check_lib_save_LIBS=$LIBS
  4467. LIBS="-lpthread $LIBS"
  4468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4469. /* end confdefs.h. */
  4470. /* Override any GCC internal prototype to avoid an error.
  4471. Use char because int might match the return type of a GCC
  4472. builtin and then its argument prototype would still apply. */
  4473. char pthread_create ();
  4474. int
  4475. main (void)
  4476. {
  4477. return pthread_create ();
  4478. ;
  4479. return 0;
  4480. }
  4481. _ACEOF
  4482. if ac_fn_c_try_link "$LINENO"
  4483. then :
  4484. ac_cv_lib_pthread_pthread_create=yes
  4485. else $as_nop
  4486. ac_cv_lib_pthread_pthread_create=no
  4487. fi
  4488. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4489. conftest$ac_exeext conftest.$ac_ext
  4490. LIBS=$ac_check_lib_save_LIBS
  4491. fi
  4492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  4493. printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
  4494. if test "x$ac_cv_lib_pthread_pthread_create" = xyes
  4495. then :
  4496. printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
  4497. LIBS="-lpthread $LIBS"
  4498. fi
  4499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
  4500. printf %s "checking for puts in -lwsock32... " >&6; }
  4501. if test ${ac_cv_lib_wsock32_puts+y}
  4502. then :
  4503. printf %s "(cached) " >&6
  4504. else $as_nop
  4505. ac_check_lib_save_LIBS=$LIBS
  4506. LIBS="-lwsock32 $LIBS"
  4507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4508. /* end confdefs.h. */
  4509. /* Override any GCC internal prototype to avoid an error.
  4510. Use char because int might match the return type of a GCC
  4511. builtin and then its argument prototype would still apply. */
  4512. char puts ();
  4513. int
  4514. main (void)
  4515. {
  4516. return puts ();
  4517. ;
  4518. return 0;
  4519. }
  4520. _ACEOF
  4521. if ac_fn_c_try_link "$LINENO"
  4522. then :
  4523. ac_cv_lib_wsock32_puts=yes
  4524. else $as_nop
  4525. ac_cv_lib_wsock32_puts=no
  4526. fi
  4527. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4528. conftest$ac_exeext conftest.$ac_ext
  4529. LIBS=$ac_check_lib_save_LIBS
  4530. fi
  4531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
  4532. printf "%s\n" "$ac_cv_lib_wsock32_puts" >&6; }
  4533. if test "x$ac_cv_lib_wsock32_puts" = xyes
  4534. then :
  4535. printf "%s\n" "#define HAVE_LIBWSOCK32 1" >>confdefs.h
  4536. LIBS="-lwsock32 $LIBS"
  4537. fi
  4538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
  4539. printf %s "checking for puts in -lws2_32... " >&6; }
  4540. if test ${ac_cv_lib_ws2_32_puts+y}
  4541. then :
  4542. printf %s "(cached) " >&6
  4543. else $as_nop
  4544. ac_check_lib_save_LIBS=$LIBS
  4545. LIBS="-lws2_32 $LIBS"
  4546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4547. /* end confdefs.h. */
  4548. /* Override any GCC internal prototype to avoid an error.
  4549. Use char because int might match the return type of a GCC
  4550. builtin and then its argument prototype would still apply. */
  4551. char puts ();
  4552. int
  4553. main (void)
  4554. {
  4555. return puts ();
  4556. ;
  4557. return 0;
  4558. }
  4559. _ACEOF
  4560. if ac_fn_c_try_link "$LINENO"
  4561. then :
  4562. ac_cv_lib_ws2_32_puts=yes
  4563. else $as_nop
  4564. ac_cv_lib_ws2_32_puts=no
  4565. fi
  4566. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4567. conftest$ac_exeext conftest.$ac_ext
  4568. LIBS=$ac_check_lib_save_LIBS
  4569. fi
  4570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
  4571. printf "%s\n" "$ac_cv_lib_ws2_32_puts" >&6; }
  4572. if test "x$ac_cv_lib_ws2_32_puts" = xyes
  4573. then :
  4574. printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
  4575. LIBS="-lws2_32 $LIBS"
  4576. fi
  4577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
  4578. printf %s "checking for puts in -lole32... " >&6; }
  4579. if test ${ac_cv_lib_ole32_puts+y}
  4580. then :
  4581. printf %s "(cached) " >&6
  4582. else $as_nop
  4583. ac_check_lib_save_LIBS=$LIBS
  4584. LIBS="-lole32 $LIBS"
  4585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4586. /* end confdefs.h. */
  4587. /* Override any GCC internal prototype to avoid an error.
  4588. Use char because int might match the return type of a GCC
  4589. builtin and then its argument prototype would still apply. */
  4590. char puts ();
  4591. int
  4592. main (void)
  4593. {
  4594. return puts ();
  4595. ;
  4596. return 0;
  4597. }
  4598. _ACEOF
  4599. if ac_fn_c_try_link "$LINENO"
  4600. then :
  4601. ac_cv_lib_ole32_puts=yes
  4602. else $as_nop
  4603. ac_cv_lib_ole32_puts=no
  4604. fi
  4605. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4606. conftest$ac_exeext conftest.$ac_ext
  4607. LIBS=$ac_check_lib_save_LIBS
  4608. fi
  4609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
  4610. printf "%s\n" "$ac_cv_lib_ole32_puts" >&6; }
  4611. if test "x$ac_cv_lib_ole32_puts" = xyes
  4612. then :
  4613. printf "%s\n" "#define HAVE_LIBOLE32 1" >>confdefs.h
  4614. LIBS="-lole32 $LIBS"
  4615. fi
  4616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
  4617. printf %s "checking for puts in -lwinmm... " >&6; }
  4618. if test ${ac_cv_lib_winmm_puts+y}
  4619. then :
  4620. printf %s "(cached) " >&6
  4621. else $as_nop
  4622. ac_check_lib_save_LIBS=$LIBS
  4623. LIBS="-lwinmm $LIBS"
  4624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4625. /* end confdefs.h. */
  4626. /* Override any GCC internal prototype to avoid an error.
  4627. Use char because int might match the return type of a GCC
  4628. builtin and then its argument prototype would still apply. */
  4629. char puts ();
  4630. int
  4631. main (void)
  4632. {
  4633. return puts ();
  4634. ;
  4635. return 0;
  4636. }
  4637. _ACEOF
  4638. if ac_fn_c_try_link "$LINENO"
  4639. then :
  4640. ac_cv_lib_winmm_puts=yes
  4641. else $as_nop
  4642. ac_cv_lib_winmm_puts=no
  4643. fi
  4644. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4645. conftest$ac_exeext conftest.$ac_ext
  4646. LIBS=$ac_check_lib_save_LIBS
  4647. fi
  4648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
  4649. printf "%s\n" "$ac_cv_lib_winmm_puts" >&6; }
  4650. if test "x$ac_cv_lib_winmm_puts" = xyes
  4651. then :
  4652. printf "%s\n" "#define HAVE_LIBWINMM 1" >>confdefs.h
  4653. LIBS="-lwinmm $LIBS"
  4654. fi
  4655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
  4656. printf %s "checking for puts in -lsocket... " >&6; }
  4657. if test ${ac_cv_lib_socket_puts+y}
  4658. then :
  4659. printf %s "(cached) " >&6
  4660. else $as_nop
  4661. ac_check_lib_save_LIBS=$LIBS
  4662. LIBS="-lsocket $LIBS"
  4663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4664. /* end confdefs.h. */
  4665. /* Override any GCC internal prototype to avoid an error.
  4666. Use char because int might match the return type of a GCC
  4667. builtin and then its argument prototype would still apply. */
  4668. char puts ();
  4669. int
  4670. main (void)
  4671. {
  4672. return puts ();
  4673. ;
  4674. return 0;
  4675. }
  4676. _ACEOF
  4677. if ac_fn_c_try_link "$LINENO"
  4678. then :
  4679. ac_cv_lib_socket_puts=yes
  4680. else $as_nop
  4681. ac_cv_lib_socket_puts=no
  4682. fi
  4683. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4684. conftest$ac_exeext conftest.$ac_ext
  4685. LIBS=$ac_check_lib_save_LIBS
  4686. fi
  4687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
  4688. printf "%s\n" "$ac_cv_lib_socket_puts" >&6; }
  4689. if test "x$ac_cv_lib_socket_puts" = xyes
  4690. then :
  4691. printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
  4692. LIBS="-lsocket $LIBS"
  4693. fi
  4694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
  4695. printf %s "checking for puts in -lrt... " >&6; }
  4696. if test ${ac_cv_lib_rt_puts+y}
  4697. then :
  4698. printf %s "(cached) " >&6
  4699. else $as_nop
  4700. ac_check_lib_save_LIBS=$LIBS
  4701. LIBS="-lrt $LIBS"
  4702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4703. /* end confdefs.h. */
  4704. /* Override any GCC internal prototype to avoid an error.
  4705. Use char because int might match the return type of a GCC
  4706. builtin and then its argument prototype would still apply. */
  4707. char puts ();
  4708. int
  4709. main (void)
  4710. {
  4711. return puts ();
  4712. ;
  4713. return 0;
  4714. }
  4715. _ACEOF
  4716. if ac_fn_c_try_link "$LINENO"
  4717. then :
  4718. ac_cv_lib_rt_puts=yes
  4719. else $as_nop
  4720. ac_cv_lib_rt_puts=no
  4721. fi
  4722. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4723. conftest$ac_exeext conftest.$ac_ext
  4724. LIBS=$ac_check_lib_save_LIBS
  4725. fi
  4726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
  4727. printf "%s\n" "$ac_cv_lib_rt_puts" >&6; }
  4728. if test "x$ac_cv_lib_rt_puts" = xyes
  4729. then :
  4730. printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
  4731. LIBS="-lrt $LIBS"
  4732. fi
  4733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  4734. printf %s "checking for sin in -lm... " >&6; }
  4735. if test ${ac_cv_lib_m_sin+y}
  4736. then :
  4737. printf %s "(cached) " >&6
  4738. else $as_nop
  4739. ac_check_lib_save_LIBS=$LIBS
  4740. LIBS="-lm $LIBS"
  4741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4742. /* end confdefs.h. */
  4743. /* Override any GCC internal prototype to avoid an error.
  4744. Use char because int might match the return type of a GCC
  4745. builtin and then its argument prototype would still apply. */
  4746. char sin ();
  4747. int
  4748. main (void)
  4749. {
  4750. return sin ();
  4751. ;
  4752. return 0;
  4753. }
  4754. _ACEOF
  4755. if ac_fn_c_try_link "$LINENO"
  4756. then :
  4757. ac_cv_lib_m_sin=yes
  4758. else $as_nop
  4759. ac_cv_lib_m_sin=no
  4760. fi
  4761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4762. conftest$ac_exeext conftest.$ac_ext
  4763. LIBS=$ac_check_lib_save_LIBS
  4764. fi
  4765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  4766. printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
  4767. if test "x$ac_cv_lib_m_sin" = xyes
  4768. then :
  4769. printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
  4770. LIBS="-lm $LIBS"
  4771. fi
  4772. # Check whether --enable-libuuid was given.
  4773. if test ${enable_libuuid+y}
  4774. then :
  4775. enableval=$enable_libuuid; if test "$enable_libuuid" = "no"; then
  4776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libuuid disabled... yes" >&5
  4777. printf "%s\n" "Checking if libuuid disabled... yes" >&6; }
  4778. ac_has_uuid_lib=0
  4779. fi
  4780. else $as_nop
  4781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
  4782. printf %s "checking for uuid_generate in -luuid... " >&6; }
  4783. if test ${ac_cv_lib_uuid_uuid_generate+y}
  4784. then :
  4785. printf %s "(cached) " >&6
  4786. else $as_nop
  4787. ac_check_lib_save_LIBS=$LIBS
  4788. LIBS="-luuid $LIBS"
  4789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4790. /* end confdefs.h. */
  4791. /* Override any GCC internal prototype to avoid an error.
  4792. Use char because int might match the return type of a GCC
  4793. builtin and then its argument prototype would still apply. */
  4794. char uuid_generate ();
  4795. int
  4796. main (void)
  4797. {
  4798. return uuid_generate ();
  4799. ;
  4800. return 0;
  4801. }
  4802. _ACEOF
  4803. if ac_fn_c_try_link "$LINENO"
  4804. then :
  4805. ac_cv_lib_uuid_uuid_generate=yes
  4806. else $as_nop
  4807. ac_cv_lib_uuid_uuid_generate=no
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4810. conftest$ac_exeext conftest.$ac_ext
  4811. LIBS=$ac_check_lib_save_LIBS
  4812. fi
  4813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
  4814. printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
  4815. if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
  4816. then :
  4817. printf "%s\n" "#define HAVE_LIBUUID 1" >>confdefs.h
  4818. LIBS="-luuid $LIBS"
  4819. fi
  4820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
  4821. printf %s "checking for uuid_generate in -luuid... " >&6; }
  4822. if test ${ac_cv_lib_uuid_uuid_generate+y}
  4823. then :
  4824. printf %s "(cached) " >&6
  4825. else $as_nop
  4826. ac_check_lib_save_LIBS=$LIBS
  4827. LIBS="-luuid $LIBS"
  4828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4829. /* end confdefs.h. */
  4830. /* Override any GCC internal prototype to avoid an error.
  4831. Use char because int might match the return type of a GCC
  4832. builtin and then its argument prototype would still apply. */
  4833. char uuid_generate ();
  4834. int
  4835. main (void)
  4836. {
  4837. return uuid_generate ();
  4838. ;
  4839. return 0;
  4840. }
  4841. _ACEOF
  4842. if ac_fn_c_try_link "$LINENO"
  4843. then :
  4844. ac_cv_lib_uuid_uuid_generate=yes
  4845. else $as_nop
  4846. ac_cv_lib_uuid_uuid_generate=no
  4847. fi
  4848. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4849. conftest$ac_exeext conftest.$ac_ext
  4850. LIBS=$ac_check_lib_save_LIBS
  4851. fi
  4852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
  4853. printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
  4854. if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
  4855. then :
  4856. ac_has_uuid_lib=1
  4857. fi
  4858. fi
  4859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  4860. printf %s "checking for library containing gethostbyname... " >&6; }
  4861. if test ${ac_cv_search_gethostbyname+y}
  4862. then :
  4863. printf %s "(cached) " >&6
  4864. else $as_nop
  4865. ac_func_search_save_LIBS=$LIBS
  4866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4867. /* end confdefs.h. */
  4868. /* Override any GCC internal prototype to avoid an error.
  4869. Use char because int might match the return type of a GCC
  4870. builtin and then its argument prototype would still apply. */
  4871. char gethostbyname ();
  4872. int
  4873. main (void)
  4874. {
  4875. return gethostbyname ();
  4876. ;
  4877. return 0;
  4878. }
  4879. _ACEOF
  4880. for ac_lib in '' nsl
  4881. do
  4882. if test -z "$ac_lib"; then
  4883. ac_res="none required"
  4884. else
  4885. ac_res=-l$ac_lib
  4886. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4887. fi
  4888. if ac_fn_c_try_link "$LINENO"
  4889. then :
  4890. ac_cv_search_gethostbyname=$ac_res
  4891. fi
  4892. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4893. conftest$ac_exeext
  4894. if test ${ac_cv_search_gethostbyname+y}
  4895. then :
  4896. break
  4897. fi
  4898. done
  4899. if test ${ac_cv_search_gethostbyname+y}
  4900. then :
  4901. else $as_nop
  4902. ac_cv_search_gethostbyname=no
  4903. fi
  4904. rm conftest.$ac_ext
  4905. LIBS=$ac_func_search_save_LIBS
  4906. fi
  4907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  4908. printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
  4909. ac_res=$ac_cv_search_gethostbyname
  4910. if test "$ac_res" != no
  4911. then :
  4912. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4913. fi
  4914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
  4915. printf "%s\n" "Setting PJ_M_NAME to $target_cpu" >&6; }
  4916. printf "%s\n" "#define PJ_M_NAME \"$target_cpu\"" >>confdefs.h
  4917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
  4918. printf %s "checking memory alignment... " >&6; }
  4919. case $target in
  4920. sparc64-* | ia64-* | x86_64-* | arm64-* | aarch64-* | mips64* )
  4921. printf "%s\n" "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
  4922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
  4923. printf "%s\n" "8 bytes" >&6; }
  4924. ;;
  4925. * )
  4926. printf "%s\n" "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
  4927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
  4928. printf "%s\n" "4 bytes (default)" >&6; }
  4929. ;;
  4930. esac
  4931. ac_header= ac_cache=
  4932. for ac_item in $ac_header_c_list
  4933. do
  4934. if test $ac_cache; then
  4935. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4936. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4937. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4938. fi
  4939. ac_header= ac_cache=
  4940. elif test $ac_header; then
  4941. ac_cache=$ac_item
  4942. else
  4943. ac_header=$ac_item
  4944. fi
  4945. done
  4946. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4947. then :
  4948. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4949. fi
  4950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4951. printf %s "checking whether byte ordering is bigendian... " >&6; }
  4952. if test ${ac_cv_c_bigendian+y}
  4953. then :
  4954. printf %s "(cached) " >&6
  4955. else $as_nop
  4956. ac_cv_c_bigendian=unknown
  4957. # See if we're dealing with a universal compiler.
  4958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4959. /* end confdefs.h. */
  4960. #ifndef __APPLE_CC__
  4961. not a universal capable compiler
  4962. #endif
  4963. typedef int dummy;
  4964. _ACEOF
  4965. if ac_fn_c_try_compile "$LINENO"
  4966. then :
  4967. # Check for potential -arch flags. It is not universal unless
  4968. # there are at least two -arch flags with different values.
  4969. ac_arch=
  4970. ac_prev=
  4971. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4972. if test -n "$ac_prev"; then
  4973. case $ac_word in
  4974. i?86 | x86_64 | ppc | ppc64)
  4975. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4976. ac_arch=$ac_word
  4977. else
  4978. ac_cv_c_bigendian=universal
  4979. break
  4980. fi
  4981. ;;
  4982. esac
  4983. ac_prev=
  4984. elif test "x$ac_word" = "x-arch"; then
  4985. ac_prev=arch
  4986. fi
  4987. done
  4988. fi
  4989. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4990. if test $ac_cv_c_bigendian = unknown; then
  4991. # See if sys/param.h defines the BYTE_ORDER macro.
  4992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4993. /* end confdefs.h. */
  4994. #include <sys/types.h>
  4995. #include <sys/param.h>
  4996. int
  4997. main (void)
  4998. {
  4999. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5000. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5001. && LITTLE_ENDIAN)
  5002. bogus endian macros
  5003. #endif
  5004. ;
  5005. return 0;
  5006. }
  5007. _ACEOF
  5008. if ac_fn_c_try_compile "$LINENO"
  5009. then :
  5010. # It does; now see whether it defined to BIG_ENDIAN or not.
  5011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5012. /* end confdefs.h. */
  5013. #include <sys/types.h>
  5014. #include <sys/param.h>
  5015. int
  5016. main (void)
  5017. {
  5018. #if BYTE_ORDER != BIG_ENDIAN
  5019. not big endian
  5020. #endif
  5021. ;
  5022. return 0;
  5023. }
  5024. _ACEOF
  5025. if ac_fn_c_try_compile "$LINENO"
  5026. then :
  5027. ac_cv_c_bigendian=yes
  5028. else $as_nop
  5029. ac_cv_c_bigendian=no
  5030. fi
  5031. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5032. fi
  5033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5034. fi
  5035. if test $ac_cv_c_bigendian = unknown; then
  5036. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5038. /* end confdefs.h. */
  5039. #include <limits.h>
  5040. int
  5041. main (void)
  5042. {
  5043. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5044. bogus endian macros
  5045. #endif
  5046. ;
  5047. return 0;
  5048. }
  5049. _ACEOF
  5050. if ac_fn_c_try_compile "$LINENO"
  5051. then :
  5052. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5054. /* end confdefs.h. */
  5055. #include <limits.h>
  5056. int
  5057. main (void)
  5058. {
  5059. #ifndef _BIG_ENDIAN
  5060. not big endian
  5061. #endif
  5062. ;
  5063. return 0;
  5064. }
  5065. _ACEOF
  5066. if ac_fn_c_try_compile "$LINENO"
  5067. then :
  5068. ac_cv_c_bigendian=yes
  5069. else $as_nop
  5070. ac_cv_c_bigendian=no
  5071. fi
  5072. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5073. fi
  5074. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5075. fi
  5076. if test $ac_cv_c_bigendian = unknown; then
  5077. # Compile a test program.
  5078. if test "$cross_compiling" = yes
  5079. then :
  5080. # Try to guess by grepping values from an object file.
  5081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5082. /* end confdefs.h. */
  5083. unsigned short int ascii_mm[] =
  5084. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5085. unsigned short int ascii_ii[] =
  5086. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5087. int use_ascii (int i) {
  5088. return ascii_mm[i] + ascii_ii[i];
  5089. }
  5090. unsigned short int ebcdic_ii[] =
  5091. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5092. unsigned short int ebcdic_mm[] =
  5093. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5094. int use_ebcdic (int i) {
  5095. return ebcdic_mm[i] + ebcdic_ii[i];
  5096. }
  5097. extern int foo;
  5098. int
  5099. main (void)
  5100. {
  5101. return use_ascii (foo) == use_ebcdic (foo);
  5102. ;
  5103. return 0;
  5104. }
  5105. _ACEOF
  5106. if ac_fn_c_try_compile "$LINENO"
  5107. then :
  5108. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5109. ac_cv_c_bigendian=yes
  5110. fi
  5111. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5112. if test "$ac_cv_c_bigendian" = unknown; then
  5113. ac_cv_c_bigendian=no
  5114. else
  5115. # finding both strings is unlikely to happen, but who knows?
  5116. ac_cv_c_bigendian=unknown
  5117. fi
  5118. fi
  5119. fi
  5120. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5121. else $as_nop
  5122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5123. /* end confdefs.h. */
  5124. $ac_includes_default
  5125. int
  5126. main (void)
  5127. {
  5128. /* Are we little or big endian? From Harbison&Steele. */
  5129. union
  5130. {
  5131. long int l;
  5132. char c[sizeof (long int)];
  5133. } u;
  5134. u.l = 1;
  5135. return u.c[sizeof (long int) - 1] == 1;
  5136. ;
  5137. return 0;
  5138. }
  5139. _ACEOF
  5140. if ac_fn_c_try_run "$LINENO"
  5141. then :
  5142. ac_cv_c_bigendian=no
  5143. else $as_nop
  5144. ac_cv_c_bigendian=yes
  5145. fi
  5146. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5147. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5148. fi
  5149. fi
  5150. fi
  5151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5152. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  5153. case $ac_cv_c_bigendian in #(
  5154. yes)
  5155. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  5156. ;; #(
  5157. no)
  5158. ;; #(
  5159. universal)
  5160. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5161. ;; #(
  5162. *)
  5163. as_fn_error $? "unknown endianness
  5164. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5165. esac
  5166. if test "x$ac_cv_c_bigendian" = "xyes"; then
  5167. CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
  5168. ac_cflags="$ac_cflags -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
  5169. else
  5170. CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
  5171. ac_cflags="$ac_cflags -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
  5172. fi
  5173. case $target in
  5174. *android*)
  5175. printf "%s\n" "#define PJ_ANDROID 1" >>confdefs.h
  5176. ac_target_arch=$TARGET_ABI
  5177. ac_std_cpp_lib=$STD_CPP_LIB
  5178. ;;
  5179. *mingw* | *cygw* | *win32* | *w32* )
  5180. printf "%s\n" "#define PJ_WIN32 1" >>confdefs.h
  5181. printf "%s\n" "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
  5182. printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
  5183. case $target in
  5184. *_64-w64-mingw* )
  5185. printf "%s\n" "#define PJ_WIN64 1" >>confdefs.h
  5186. ;;
  5187. esac
  5188. ;;
  5189. *darwin*)
  5190. printf "%s\n" "#define PJ_DARWINOS 1" >>confdefs.h
  5191. ac_target_arch=$ARCH_VAL
  5192. ;;
  5193. *linux*)
  5194. printf "%s\n" "#define PJ_LINUX 1" >>confdefs.h
  5195. ;;
  5196. *bsd*)
  5197. printf "%s\n" "#define PJ_BSD 1" >>confdefs.h
  5198. ;;
  5199. *rtems*)
  5200. printf "%s\n" "#define PJ_RTEMS 1" >>confdefs.h
  5201. ;;
  5202. *sunos* | *solaris* )
  5203. printf "%s\n" "#define PJ_SUNOS 1" >>confdefs.h
  5204. ;;
  5205. *)
  5206. ;;
  5207. esac
  5208. # Check whether --enable-floating-point was given.
  5209. if test ${enable_floating_point+y}
  5210. then :
  5211. enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
  5212. printf "%s\n" "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
  5213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
  5214. printf "%s\n" "Checking if floating point is disabled... yes" >&6; }
  5215. fi
  5216. else $as_nop
  5217. printf "%s\n" "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
  5218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
  5219. printf "%s\n" "Checking if floating point is disabled... no" >&6; }
  5220. fi
  5221. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  5222. if test "x$ac_cv_header_arpa_inet_h" = xyes
  5223. then :
  5224. printf "%s\n" "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
  5225. fi
  5226. ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
  5227. if test "x$ac_cv_header_assert_h" = xyes
  5228. then :
  5229. printf "%s\n" "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
  5230. fi
  5231. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  5232. if test "x$ac_cv_header_ctype_h" = xyes
  5233. then :
  5234. printf "%s\n" "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
  5235. fi
  5236. case $target in
  5237. *mingw* | *cygw* | *win32* | *w32* )
  5238. printf "%s\n" "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
  5239. ;;
  5240. *)
  5241. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  5242. if test "x$ac_cv_header_errno_h" = xyes
  5243. then :
  5244. printf "%s\n" "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
  5245. fi
  5246. ;;
  5247. esac
  5248. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  5249. if test "x$ac_cv_header_fcntl_h" = xyes
  5250. then :
  5251. printf "%s\n" "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
  5252. fi
  5253. ac_fn_c_check_header_compile "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
  5254. if test "x$ac_cv_header_linux_socket_h" = xyes
  5255. then :
  5256. printf "%s\n" "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
  5257. fi
  5258. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  5259. if test "x$ac_cv_header_limits_h" = xyes
  5260. then :
  5261. printf "%s\n" "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
  5262. fi
  5263. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  5264. if test "x$ac_cv_header_malloc_h" = xyes
  5265. then :
  5266. printf "%s\n" "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
  5267. fi
  5268. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  5269. if test "x$ac_cv_header_netdb_h" = xyes
  5270. then :
  5271. printf "%s\n" "#define PJ_HAS_NETDB_H 1" >>confdefs.h
  5272. fi
  5273. ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
  5274. if test "x$ac_cv_header_netinet_in_systm_h" = xyes
  5275. then :
  5276. printf "%s\n" "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
  5277. fi
  5278. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  5279. if test "x$ac_cv_header_netinet_in_h" = xyes
  5280. then :
  5281. printf "%s\n" "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
  5282. fi
  5283. ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H
  5284. # include <sys/types.h>
  5285. #endif
  5286. #if PJ_HAS_NETINET_IN_SYSTM_H
  5287. # include <netinet/in_systm.h>
  5288. #endif
  5289. #if PJ_HAS_NETINET_IN_H
  5290. # include <netinet/in.h>
  5291. #endif
  5292. "
  5293. if test "x$ac_cv_header_netinet_ip_h" = xyes
  5294. then :
  5295. printf "%s\n" "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
  5296. fi
  5297. ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
  5298. if test "x$ac_cv_header_netinet_tcp_h" = xyes
  5299. then :
  5300. printf "%s\n" "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
  5301. fi
  5302. ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
  5303. if test "x$ac_cv_header_ifaddrs_h" = xyes
  5304. then :
  5305. ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
  5306. if test "x$ac_cv_func_getifaddrs" = xyes
  5307. then :
  5308. printf "%s\n" "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
  5309. fi
  5310. fi
  5311. ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
  5312. if test "x$ac_cv_header_semaphore_h" = xyes
  5313. then :
  5314. printf "%s\n" "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
  5315. fi
  5316. ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
  5317. if test "x$ac_cv_header_setjmp_h" = xyes
  5318. then :
  5319. printf "%s\n" "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
  5320. fi
  5321. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  5322. if test "x$ac_cv_header_stdarg_h" = xyes
  5323. then :
  5324. printf "%s\n" "#define PJ_HAS_STDARG_H 1" >>confdefs.h
  5325. fi
  5326. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  5327. if test "x$ac_cv_header_stddef_h" = xyes
  5328. then :
  5329. printf "%s\n" "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
  5330. fi
  5331. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  5332. if test "x$ac_cv_header_stdio_h" = xyes
  5333. then :
  5334. printf "%s\n" "#define PJ_HAS_STDIO_H 1" >>confdefs.h
  5335. fi
  5336. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  5337. if test "x$ac_cv_header_stdint_h" = xyes
  5338. then :
  5339. printf "%s\n" "#define PJ_HAS_STDINT_H 1" >>confdefs.h
  5340. fi
  5341. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  5342. if test "x$ac_cv_header_stdlib_h" = xyes
  5343. then :
  5344. printf "%s\n" "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
  5345. fi
  5346. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  5347. if test "x$ac_cv_header_string_h" = xyes
  5348. then :
  5349. printf "%s\n" "#define PJ_HAS_STRING_H 1" >>confdefs.h
  5350. fi
  5351. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  5352. if test "x$ac_cv_header_inttypes_h" = xyes
  5353. then :
  5354. printf "%s\n" "#define PJ_HAS_INTTYPES_H 1" >>confdefs.h
  5355. fi
  5356. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  5357. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  5358. then :
  5359. printf "%s\n" "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
  5360. fi
  5361. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  5362. if test "x$ac_cv_header_sys_select_h" = xyes
  5363. then :
  5364. printf "%s\n" "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
  5365. fi
  5366. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  5367. if test "x$ac_cv_header_sys_socket_h" = xyes
  5368. then :
  5369. printf "%s\n" "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
  5370. fi
  5371. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  5372. if test "x$ac_cv_header_sys_time_h" = xyes
  5373. then :
  5374. printf "%s\n" "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
  5375. fi
  5376. ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
  5377. if test "x$ac_cv_header_sys_timeb_h" = xyes
  5378. then :
  5379. printf "%s\n" "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
  5380. fi
  5381. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  5382. if test "x$ac_cv_header_sys_types_h" = xyes
  5383. then :
  5384. printf "%s\n" "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
  5385. fi
  5386. ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
  5387. if test "x$ac_cv_header_sys_filio_h" = xyes
  5388. then :
  5389. printf "%s\n" "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
  5390. fi
  5391. ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
  5392. if test "x$ac_cv_header_sys_sockio_h" = xyes
  5393. then :
  5394. printf "%s\n" "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
  5395. fi
  5396. ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
  5397. if test "x$ac_cv_header_sys_utsname_h" = xyes
  5398. then :
  5399. printf "%s\n" "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
  5400. fi
  5401. ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
  5402. if test "x$ac_cv_header_time_h" = xyes
  5403. then :
  5404. printf "%s\n" "#define PJ_HAS_TIME_H 1" >>confdefs.h
  5405. fi
  5406. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  5407. if test "x$ac_cv_header_unistd_h" = xyes
  5408. then :
  5409. printf "%s\n" "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
  5410. fi
  5411. ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  5412. if test "x$ac_cv_header_execinfo_h" = xyes
  5413. then :
  5414. printf "%s\n" "#define PJ_HAS_EXECINFO_H 1" >>confdefs.h
  5415. fi
  5416. ac_fn_c_check_header_compile "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
  5417. if test "x$ac_cv_header_winsock_h" = xyes
  5418. then :
  5419. printf "%s\n" "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
  5420. fi
  5421. ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  5422. if test "x$ac_cv_header_winsock2_h" = xyes
  5423. then :
  5424. printf "%s\n" "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
  5425. fi
  5426. ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H
  5427. # include <winsock2.h>
  5428. #elif PJ_HAS_WINSOCK_H
  5429. # include <winsock.h>
  5430. #endif
  5431. "
  5432. if test "x$ac_cv_header_mswsock_h" = xyes
  5433. then :
  5434. printf "%s\n" "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
  5435. fi
  5436. ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  5437. if test "x$ac_cv_header_ws2tcpip_h" = xyes
  5438. then :
  5439. printf "%s\n" "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
  5440. fi
  5441. ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  5442. if test "x$ac_cv_header_uuid_uuid_h" = xyes
  5443. then :
  5444. ac_has_uuid_h=1
  5445. fi
  5446. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H
  5447. # include <sys/types.h>
  5448. #endif
  5449. #if PJ_HAS_SYS_SOCKET_H
  5450. # include <sys/socket.h>
  5451. #endif
  5452. "
  5453. if test "x$ac_cv_header_net_if_h" = xyes
  5454. then :
  5455. printf "%s\n" "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
  5456. fi
  5457. case $target in
  5458. *android*)
  5459. ac_fn_c_check_header_compile "$LINENO" "linux/android_alarm.h" "ac_cv_header_linux_android_alarm_h" "$ac_includes_default"
  5460. if test "x$ac_cv_header_linux_android_alarm_h" = xyes
  5461. then :
  5462. printf "%s\n" "#define PJ_HAS_ANDROID_ALARM_H 1" >>confdefs.h
  5463. fi
  5464. ;;
  5465. esac
  5466. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  5467. if test "x$ac_cv_func_localtime_r" = xyes
  5468. then :
  5469. printf "%s\n" "#define PJ_HAS_LOCALTIME_R 1" >>confdefs.h
  5470. fi
  5471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
  5472. printf "%s\n" "Setting PJ_OS_NAME to $target" >&6; }
  5473. printf "%s\n" "#define PJ_OS_NAME \"$target\"" >>confdefs.h
  5474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
  5475. printf "%s\n" "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
  5476. printf "%s\n" "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
  5477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
  5478. printf "%s\n" "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
  5479. printf "%s\n" "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
  5480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
  5481. printf "%s\n" "Setting PJ_HAS_MALLOC to 1" >&6; }
  5482. printf "%s\n" "#define PJ_HAS_MALLOC 1" >>confdefs.h
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
  5484. printf "%s\n" "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
  5485. printf "%s\n" "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
  5486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
  5487. printf "%s\n" "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
  5488. printf "%s\n" "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
  5489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
  5490. printf %s "checking if inet_aton() is available... " >&6; }
  5491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5492. /* end confdefs.h. */
  5493. #include <sys/types.h>
  5494. #include <sys/socket.h>
  5495. #include <arpa/inet.h>
  5496. int
  5497. main (void)
  5498. {
  5499. inet_aton(0, 0);
  5500. ;
  5501. return 0;
  5502. }
  5503. _ACEOF
  5504. if ac_fn_c_try_compile "$LINENO"
  5505. then :
  5506. printf "%s\n" "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
  5507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5508. printf "%s\n" "yes" >&6; }
  5509. else $as_nop
  5510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511. printf "%s\n" "no" >&6; }
  5512. fi
  5513. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
  5515. printf %s "checking if inet_pton() is available... " >&6; }
  5516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5517. /* end confdefs.h. */
  5518. #include <sys/types.h>
  5519. #include <sys/socket.h>
  5520. #include <arpa/inet.h>
  5521. int
  5522. main (void)
  5523. {
  5524. inet_pton(0, 0, 0);
  5525. ;
  5526. return 0;
  5527. }
  5528. _ACEOF
  5529. if ac_fn_c_try_compile "$LINENO"
  5530. then :
  5531. printf "%s\n" "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
  5532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5533. printf "%s\n" "yes" >&6; }
  5534. else $as_nop
  5535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5536. printf "%s\n" "no" >&6; }
  5537. fi
  5538. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
  5540. printf %s "checking if inet_ntop() is available... " >&6; }
  5541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5542. /* end confdefs.h. */
  5543. #include <sys/types.h>
  5544. #include <sys/socket.h>
  5545. #include <arpa/inet.h>
  5546. int
  5547. main (void)
  5548. {
  5549. inet_ntop(0, 0, 0, 0);
  5550. ;
  5551. return 0;
  5552. }
  5553. _ACEOF
  5554. if ac_fn_c_try_compile "$LINENO"
  5555. then :
  5556. printf "%s\n" "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
  5557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5558. printf "%s\n" "yes" >&6; }
  5559. else $as_nop
  5560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5561. printf "%s\n" "no" >&6; }
  5562. fi
  5563. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
  5565. printf %s "checking if getaddrinfo() is available... " >&6; }
  5566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5567. /* end confdefs.h. */
  5568. #include <sys/types.h>
  5569. #include <sys/socket.h>
  5570. #include <netdb.h>
  5571. int
  5572. main (void)
  5573. {
  5574. getaddrinfo(0, 0, 0, 0);
  5575. ;
  5576. return 0;
  5577. }
  5578. _ACEOF
  5579. if ac_fn_c_try_compile "$LINENO"
  5580. then :
  5581. printf "%s\n" "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
  5582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5583. printf "%s\n" "yes" >&6; }
  5584. else $as_nop
  5585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5586. printf "%s\n" "no" >&6; }
  5587. fi
  5588. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair() is available" >&5
  5590. printf %s "checking if socketpair() is available... " >&6; }
  5591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5592. /* end confdefs.h. */
  5593. #include <sys/types.h>
  5594. #include <sys/socket.h>
  5595. int
  5596. main (void)
  5597. {
  5598. socketpair(0, 0, 0, 0);
  5599. ;
  5600. return 0;
  5601. }
  5602. _ACEOF
  5603. if ac_fn_c_try_compile "$LINENO"
  5604. then :
  5605. printf "%s\n" "#define PJ_SOCK_HAS_SOCKETPAIR 1" >>confdefs.h
  5606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5607. printf "%s\n" "yes" >&6; }
  5608. else $as_nop
  5609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. printf "%s\n" "no" >&6; }
  5611. fi
  5612. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
  5614. printf %s "checking if sockaddr_in has sin_len member... " >&6; }
  5615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5616. /* end confdefs.h. */
  5617. #include <sys/types.h>
  5618. #include <sys/socket.h>
  5619. #include <netinet/in.h>
  5620. #include <arpa/inet.h>
  5621. int
  5622. main (void)
  5623. {
  5624. struct sockaddr_in a; a.sin_len=0;
  5625. ;
  5626. return 0;
  5627. }
  5628. _ACEOF
  5629. if ac_fn_c_try_compile "$LINENO"
  5630. then :
  5631. printf "%s\n" "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
  5632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5633. printf "%s\n" "yes" >&6; }
  5634. else $as_nop
  5635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5636. printf "%s\n" "no" >&6; }
  5637. fi
  5638. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
  5640. printf %s "checking if socklen_t is available... " >&6; }
  5641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5642. /* end confdefs.h. */
  5643. #include <sys/types.h>
  5644. #include <sys/socket.h>
  5645. int
  5646. main (void)
  5647. {
  5648. socklen_t xxx = 0;
  5649. ;
  5650. return 0;
  5651. }
  5652. _ACEOF
  5653. if ac_fn_c_try_compile "$LINENO"
  5654. then :
  5655. printf "%s\n" "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
  5656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5657. printf "%s\n" "yes" >&6; }
  5658. else $as_nop
  5659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5660. printf "%s\n" "no" >&6; }
  5661. fi
  5662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPV6_V6ONLY is available" >&5
  5664. printf %s "checking if IPV6_V6ONLY is available... " >&6; }
  5665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5666. /* end confdefs.h. */
  5667. #include <sys/socket.h>
  5668. #include <netinet/in.h>
  5669. int
  5670. main (void)
  5671. {
  5672. int opt = IPV6_V6ONLY;
  5673. ;
  5674. return 0;
  5675. }
  5676. _ACEOF
  5677. if ac_fn_c_try_compile "$LINENO"
  5678. then :
  5679. printf "%s\n" "#define PJ_SOCK_HAS_IPV6_V6ONLY 1" >>confdefs.h
  5680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5681. printf "%s\n" "yes" >&6; }
  5682. else $as_nop
  5683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5684. printf "%s\n" "no" >&6; }
  5685. fi
  5686. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
  5688. printf %s "checking if SO_ERROR is available... " >&6; }
  5689. case $target in
  5690. *mingw* | *cygw* | *win32* | *w32* )
  5691. printf "%s\n" "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
  5692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5693. printf "%s\n" "yes" >&6; }
  5694. ;;
  5695. *)
  5696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5697. /* end confdefs.h. */
  5698. #include <sys/types.h>
  5699. #include <sys/socket.h>
  5700. #include <netinet/in.h>
  5701. #include <arpa/inet.h>
  5702. int
  5703. main (void)
  5704. {
  5705. int i=SO_ERROR;
  5706. ;
  5707. return 0;
  5708. }
  5709. _ACEOF
  5710. if ac_fn_c_try_compile "$LINENO"
  5711. then :
  5712. printf "%s\n" "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
  5713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5714. printf "%s\n" "yes" >&6; }
  5715. else $as_nop
  5716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5717. printf "%s\n" "no" >&6; }
  5718. fi
  5719. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5720. ;;
  5721. esac
  5722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
  5723. printf %s "checking if pthread_rwlock_t is available... " >&6; }
  5724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5725. /* end confdefs.h. */
  5726. #include <pthread.h>
  5727. int
  5728. main (void)
  5729. {
  5730. pthread_rwlock_t *x;
  5731. ;
  5732. return 0;
  5733. }
  5734. _ACEOF
  5735. if ac_fn_c_try_compile "$LINENO"
  5736. then :
  5737. printf "%s\n" "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
  5738. ac_rwmutex="yes"
  5739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5740. printf "%s\n" "yes" >&6; }
  5741. else $as_nop
  5742. printf "%s\n" "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
  5743. ac_rwmutex="no"
  5744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. printf "%s\n" "no" >&6; }
  5746. fi
  5747. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5748. if test "$ac_rwmutex" = "no"; then
  5749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
  5750. printf %s "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
  5751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5752. /* end confdefs.h. */
  5753. #define _POSIX_READER_WRITER_LOCKS
  5754. #include <pthread.h>
  5755. int
  5756. main (void)
  5757. {
  5758. pthread_rwlock_t *x;
  5759. ;
  5760. return 0;
  5761. }
  5762. _ACEOF
  5763. if ac_fn_c_try_compile "$LINENO"
  5764. then :
  5765. printf "%s\n" "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
  5766. CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
  5767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5768. printf "%s\n" "yes" >&6; }
  5769. else $as_nop
  5770. printf "%s\n" "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
  5771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5772. printf "%s\n" "no" >&6; }
  5773. fi
  5774. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5775. fi
  5776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
  5777. printf %s "checking if pthread_mutexattr_settype() is available... " >&6; }
  5778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5779. /* end confdefs.h. */
  5780. #include <pthread.h>
  5781. int
  5782. main (void)
  5783. {
  5784. pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
  5785. ;
  5786. return 0;
  5787. }
  5788. _ACEOF
  5789. if ac_fn_c_try_compile "$LINENO"
  5790. then :
  5791. printf "%s\n" "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
  5792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5793. printf "%s\n" "yes" >&6; }
  5794. else $as_nop
  5795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5796. printf "%s\n" "no" >&6; }
  5797. fi
  5798. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
  5800. printf %s "checking if pthread_mutexattr_t has recursive member... " >&6; }
  5801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5802. /* end confdefs.h. */
  5803. #include <pthread.h>
  5804. int
  5805. main (void)
  5806. {
  5807. pthread_mutexattr_t attr;
  5808. attr.recursive=1;
  5809. ;
  5810. return 0;
  5811. }
  5812. _ACEOF
  5813. if ac_fn_c_try_compile "$LINENO"
  5814. then :
  5815. printf "%s\n" "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5817. printf "%s\n" "yes" >&6; }
  5818. else $as_nop
  5819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5820. printf "%s\n" "no" >&6; }
  5821. fi
  5822. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
  5824. printf %s "checking ioqueue backend... " >&6; }
  5825. ac_os_objs=ioqueue_select.o
  5826. ac_linux_poll=select
  5827. case $target in
  5828. *darwin* | *bsd*)
  5829. # Check whether --enable-kqueue was given.
  5830. if test ${enable_kqueue+y}
  5831. then :
  5832. enableval=$enable_kqueue;
  5833. if test "$enable_kqueue" = "yes"; then
  5834. ac_os_objs=ioqueue_kqueue.o
  5835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: kqueue()" >&5
  5836. printf "%s\n" "kqueue()" >&6; }
  5837. else
  5838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
  5839. printf "%s\n" "select()" >&6; }
  5840. fi
  5841. else $as_nop
  5842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
  5843. printf "%s\n" "select()" >&6; }
  5844. fi
  5845. ;;
  5846. *)
  5847. # Check whether --enable-epoll was given.
  5848. if test ${enable_epoll+y}
  5849. then :
  5850. enableval=$enable_epoll;
  5851. if test "$enable_epoll" = "yes"; then
  5852. ac_os_objs=ioqueue_epoll.o
  5853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
  5854. printf "%s\n" "/dev/epoll" >&6; }
  5855. printf "%s\n" "#define PJ_HAS_LINUX_EPOLL 1" >>confdefs.h
  5856. ac_linux_poll=epoll
  5857. else
  5858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
  5859. printf "%s\n" "select()" >&6; }
  5860. fi
  5861. else $as_nop
  5862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: select()" >&5
  5863. printf "%s\n" "select()" >&6; }
  5864. fi
  5865. ;;
  5866. esac
  5867. # Check whether --enable-shared was given.
  5868. if test ${enable_shared+y}
  5869. then :
  5870. enableval=$enable_shared; if test "$enable_shared" = "yes"; then
  5871. ac_shared_libraries=1
  5872. CFLAGS="$CFLAGS -fPIC"
  5873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building shared libraries... yes" >&5
  5874. printf "%s\n" "Building shared libraries... yes" >&6; }
  5875. fi
  5876. else $as_nop
  5877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building shared libraries... no" >&5
  5878. printf "%s\n" "Building shared libraries... no" >&6; }
  5879. fi
  5880. # Check whether --enable-pjsua2 was given.
  5881. if test ${enable_pjsua2+y}
  5882. then :
  5883. enableval=$enable_pjsua2; if test "$enable_pjsua2" = "no"; then
  5884. ac_no_pjsua2=1
  5885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building pjsua2 library and application... no" >&5
  5886. printf "%s\n" "Building pjsua2 library and application... no" >&6; }
  5887. fi
  5888. else $as_nop
  5889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building pjsua2 library and application... yes" >&5
  5890. printf "%s\n" "Building pjsua2 library and application... yes" >&6; }
  5891. fi
  5892. case $target in
  5893. *mingw* | *cygw* | *win32* | *w32* )
  5894. ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o sock_qos_bsd.o unicode_win32.o"
  5895. ;;
  5896. *)
  5897. ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
  5898. case $target in
  5899. *-apple-darwin_ios*)
  5900. ac_os_objs="$ac_os_objs os_info_iphone.o os_core_darwin.o"
  5901. ;;
  5902. *darwin*)
  5903. ac_os_objs="$ac_os_objs os_core_darwin.o"
  5904. ;;
  5905. esac
  5906. # QoS
  5907. case $target in
  5908. *darwin*)
  5909. ac_os_objs="$ac_os_objs sock_qos_darwin.o sock_qos_bsd.o"
  5910. ;;
  5911. *)
  5912. ac_os_objs="$ac_os_objs sock_qos_bsd.o"
  5913. ;;
  5914. esac
  5915. # SSL
  5916. case $target in
  5917. *darwin*)
  5918. ac_os_objs="$ac_os_objs ssl_sock_apple.o"
  5919. ;;
  5920. esac
  5921. # UUID
  5922. case $target in
  5923. *android*)
  5924. ac_os_objs="$ac_os_objs guid_android.o"
  5925. ;;
  5926. *darwin*)
  5927. ac_os_objs="$ac_os_objs guid_darwin.o"
  5928. ;;
  5929. *bsd*)
  5930. ac_os_objs="$ac_os_objs guid_bsd.o"
  5931. ;;
  5932. *)
  5933. if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
  5934. ac_os_objs="$ac_os_objs guid_uuid.o"
  5935. else
  5936. ac_os_objs="$ac_os_objs guid_simple.o"
  5937. fi
  5938. ;;
  5939. esac
  5940. ;;
  5941. esac
  5942. # Check whether --with-upnp was given.
  5943. if test ${with_upnp+y}
  5944. then :
  5945. withval=$with_upnp;
  5946. else $as_nop
  5947. with_upnp=no
  5948. fi
  5949. if test "x$ac_cross_compile" != "x" -a "x$with_upnp" = "xno"; then
  5950. enable_upnp=no
  5951. fi
  5952. # Check whether --enable-upnp was given.
  5953. if test ${enable_upnp+y}
  5954. then :
  5955. enableval=$enable_upnp;
  5956. if test "$enable_upnp" = "no"; then
  5957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if UPnP is disabled... yes" >&5
  5958. printf "%s\n" "Checking if UPnP is disabled... yes" >&6; }
  5959. fi
  5960. else $as_nop
  5961. if test "x$with_upnp" != "xno" -a "x$with_upnp" != "x"; then
  5962. UPNP_PREFIX=$with_upnp
  5963. UPNP_CFLAGS="-I$UPNP_PREFIX/upnp/inc -I$UPNP_PREFIX/ixml/inc"
  5964. UPNP_LDFLAGS="-L$UPNP_PREFIX/upnp/.libs -L$UPNP_PREFIX/imxl/.libs"
  5965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using UPnP prefix... $with_upnp" >&5
  5966. printf "%s\n" "Using UPnP prefix... $with_upnp" >&6; }
  5967. else
  5968. UPNP_CFLAGS=""
  5969. UPNP_LDFLAGS=""
  5970. fi
  5971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking UPnP usability" >&5
  5972. printf %s "checking UPnP usability... " >&6; }
  5973. UPNP_LIBS="-lupnp -lixml"
  5974. SAVED_LIBS="$LIBS"
  5975. SAVED_LDFLAGS="$LDFLAGS"
  5976. SAVED_CFLAGS="$CFLAGS"
  5977. LIBS="$UPNP_LIBS $LIBS"
  5978. LDFLAGS="$UPNP_LDFLAGS $LDFLAGS"
  5979. CFLAGS="$UPNP_CFLAGS $CFLAGS"
  5980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5981. /* end confdefs.h. */
  5982. #include <upnp/upnp.h>
  5983. int
  5984. main (void)
  5985. {
  5986. UpnpInit2(NULL, 0);
  5987. ;
  5988. return 0;
  5989. }
  5990. _ACEOF
  5991. if ac_fn_c_try_link "$LINENO"
  5992. then :
  5993. CFLAGS="$CFLAGS -DPJNATH_HAS_UPNP=1 $UPNP_CFLAGS"
  5994. LDFLAGS="$LDFLAGS $UPNP_LDFLAGS $UPNP_LIBS"
  5995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5996. printf "%s\n" "yes" >&6; }
  5997. else $as_nop
  5998. LIBS="$SAVED_LIBS"
  5999. LDFLAGS="$SAVED_LDFLAGS"
  6000. CFLAGS="$SAVED_CFLAGS"
  6001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6002. printf "%s\n" "no" >&6; }
  6003. fi
  6004. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6005. conftest$ac_exeext conftest.$ac_ext
  6006. fi
  6007. ac_external_speex=0
  6008. # Check whether --with-external-speex was given.
  6009. if test ${with_external_speex+y}
  6010. then :
  6011. withval=$with_external_speex;
  6012. if test "x$with_external_speex" != "xno"; then
  6013. # Test Speex installation
  6014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
  6015. printf %s "checking if external Speex devkit is installed... " >&6; }
  6016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6017. /* end confdefs.h. */
  6018. #include <speex/speex.h>
  6019. #include <speex/speex_echo.h>
  6020. int
  6021. main (void)
  6022. {
  6023. speex_echo_state_init(0, 0); speex_encoder_init(0);
  6024. ;
  6025. return 0;
  6026. }
  6027. _ACEOF
  6028. if ac_fn_c_try_compile "$LINENO"
  6029. then :
  6030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
  6031. printf "%s\n" "yes!!" >&6; }
  6032. printf "%s\n" "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
  6033. ac_external_speex="1"
  6034. else $as_nop
  6035. as_fn_error $? "Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
  6036. fi
  6037. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6038. fi
  6039. fi
  6040. ac_external_gsm=0
  6041. # Check whether --with-external-gsm was given.
  6042. if test ${with_external_gsm+y}
  6043. then :
  6044. withval=$with_external_gsm;
  6045. if test "x$with_external_gsm" != "xno"; then
  6046. # Test GSM library installation
  6047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
  6048. printf %s "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
  6049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6050. /* end confdefs.h. */
  6051. #include <gsm/gsm.h>
  6052. int
  6053. main (void)
  6054. {
  6055. gsm_create();
  6056. ;
  6057. return 0;
  6058. }
  6059. _ACEOF
  6060. if ac_fn_c_try_compile "$LINENO"
  6061. then :
  6062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
  6063. printf "%s\n" "yes!!" >&6; }
  6064. printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
  6065. printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
  6066. ac_external_gsm="1"
  6067. else $as_nop
  6068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6069. printf "%s\n" "no" >&6; }
  6070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
  6071. printf %s "checking if external GSM devkit is installed as gsm.h... " >&6; }
  6072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6073. /* end confdefs.h. */
  6074. #include <gsm.h>
  6075. int
  6076. main (void)
  6077. {
  6078. gsm_create();
  6079. ;
  6080. return 0;
  6081. }
  6082. _ACEOF
  6083. if ac_fn_c_try_compile "$LINENO"
  6084. then :
  6085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
  6086. printf "%s\n" "yes!!" >&6; }
  6087. printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
  6088. printf "%s\n" "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
  6089. ac_external_gsm="1"
  6090. else $as_nop
  6091. as_fn_error $? "Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
  6092. fi
  6093. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6094. fi
  6095. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6096. fi
  6097. fi
  6098. ac_external_srtp=0
  6099. # Check whether --with-external-srtp was given.
  6100. if test ${with_external_srtp+y}
  6101. then :
  6102. withval=$with_external_srtp;
  6103. if test "x$with_external_srtp" != "xno"; then
  6104. # Test SRTP installation
  6105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external SRTP devkit is installed" >&5
  6106. printf %s "checking if external SRTP devkit is installed... " >&6; }
  6107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6108. /* end confdefs.h. */
  6109. #include <srtp2/srtp.h>
  6110. int
  6111. main (void)
  6112. {
  6113. srtp_init();
  6114. ;
  6115. return 0;
  6116. }
  6117. _ACEOF
  6118. if ac_fn_c_try_compile "$LINENO"
  6119. then :
  6120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes: version 2.x" >&5
  6121. printf "%s\n" "yes: version 2.x" >&6; }
  6122. ac_external_srtp="2"
  6123. ac_external_srtp_lib="srtp2"
  6124. else $as_nop
  6125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6126. /* end confdefs.h. */
  6127. #include <srtp/srtp.h>
  6128. int
  6129. main (void)
  6130. {
  6131. srtp_init();
  6132. ;
  6133. return 0;
  6134. }
  6135. _ACEOF
  6136. if ac_fn_c_try_compile "$LINENO"
  6137. then :
  6138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes: version 1.x" >&5
  6139. printf "%s\n" "yes: version 1.x" >&6; }
  6140. ac_external_srtp="1"
  6141. ac_external_srtp_lib="srtp"
  6142. else $as_nop
  6143. as_fn_error $? "Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
  6144. fi
  6145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6146. fi
  6147. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6148. fi
  6149. fi
  6150. if test "x$ac_external_srtp" != "x0"; then
  6151. ac_srtp_deinit_present=0
  6152. ac_srtp_shutdown_present=0
  6153. as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ac_external_srtp_lib""_srtp_deinit" | $as_tr_sh`
  6154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_deinit in -l$ac_external_srtp_lib" >&5
  6155. printf %s "checking for srtp_deinit in -l$ac_external_srtp_lib... " >&6; }
  6156. if eval test \${$as_ac_Lib+y}
  6157. then :
  6158. printf %s "(cached) " >&6
  6159. else $as_nop
  6160. ac_check_lib_save_LIBS=$LIBS
  6161. LIBS="-l$ac_external_srtp_lib $LIBS"
  6162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6163. /* end confdefs.h. */
  6164. /* Override any GCC internal prototype to avoid an error.
  6165. Use char because int might match the return type of a GCC
  6166. builtin and then its argument prototype would still apply. */
  6167. char srtp_deinit ();
  6168. int
  6169. main (void)
  6170. {
  6171. return srtp_deinit ();
  6172. ;
  6173. return 0;
  6174. }
  6175. _ACEOF
  6176. if ac_fn_c_try_link "$LINENO"
  6177. then :
  6178. eval "$as_ac_Lib=yes"
  6179. else $as_nop
  6180. eval "$as_ac_Lib=no"
  6181. fi
  6182. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6183. conftest$ac_exeext conftest.$ac_ext
  6184. LIBS=$ac_check_lib_save_LIBS
  6185. fi
  6186. eval ac_res=\$$as_ac_Lib
  6187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6188. printf "%s\n" "$ac_res" >&6; }
  6189. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  6190. then :
  6191. ac_srtp_deinit_present=1
  6192. fi
  6193. if test "x$ac_srtp_deinit_present" != "x1"; then
  6194. as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ac_external_srtp_lib""_srtp_shutdown" | $as_tr_sh`
  6195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_shutdown in -l$ac_external_srtp_lib" >&5
  6196. printf %s "checking for srtp_shutdown in -l$ac_external_srtp_lib... " >&6; }
  6197. if eval test \${$as_ac_Lib+y}
  6198. then :
  6199. printf %s "(cached) " >&6
  6200. else $as_nop
  6201. ac_check_lib_save_LIBS=$LIBS
  6202. LIBS="-l$ac_external_srtp_lib $LIBS"
  6203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6204. /* end confdefs.h. */
  6205. /* Override any GCC internal prototype to avoid an error.
  6206. Use char because int might match the return type of a GCC
  6207. builtin and then its argument prototype would still apply. */
  6208. char srtp_shutdown ();
  6209. int
  6210. main (void)
  6211. {
  6212. return srtp_shutdown ();
  6213. ;
  6214. return 0;
  6215. }
  6216. _ACEOF
  6217. if ac_fn_c_try_link "$LINENO"
  6218. then :
  6219. eval "$as_ac_Lib=yes"
  6220. else $as_nop
  6221. eval "$as_ac_Lib=no"
  6222. fi
  6223. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6224. conftest$ac_exeext conftest.$ac_ext
  6225. LIBS=$ac_check_lib_save_LIBS
  6226. fi
  6227. eval ac_res=\$$as_ac_Lib
  6228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6229. printf "%s\n" "$ac_res" >&6; }
  6230. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  6231. then :
  6232. ac_srtp_shutdown_present=1
  6233. fi
  6234. fi
  6235. fi
  6236. ac_external_yuv=0
  6237. # Check whether --with-external-yuv was given.
  6238. if test ${with_external_yuv+y}
  6239. then :
  6240. withval=$with_external_yuv;
  6241. if test "x$with_external_yuv" != "xno"; then
  6242. # Test libyuv installation
  6243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external libyuv devkit is installed" >&5
  6244. printf %s "checking if external libyuv devkit is installed... " >&6; }
  6245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6246. /* end confdefs.h. */
  6247. #include <libyuv.h>
  6248. int
  6249. main (void)
  6250. {
  6251. RGB24ToI420(0,0,0,0,0,0,0,0,0,0);
  6252. ;
  6253. return 0;
  6254. }
  6255. _ACEOF
  6256. if ac_fn_c_try_compile "$LINENO"
  6257. then :
  6258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
  6259. printf "%s\n" "yes!!" >&6; }
  6260. ac_external_yuv="1"
  6261. else $as_nop
  6262. as_fn_error $? "Unable to use external libyuv. If libyuv development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
  6263. fi
  6264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6265. fi
  6266. fi
  6267. ac_external_webrtc=0
  6268. # Check whether --with-external-webrtc was given.
  6269. if test ${with_external_webrtc+y}
  6270. then :
  6271. withval=$with_external_webrtc;
  6272. if test "x$with_external_webrtc" != "xno"; then
  6273. # Test webrtc installation
  6274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external webrtc devkit is installed" >&5
  6275. printf %s "checking if external webrtc devkit is installed... " >&6; }
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <webrtc/modules/audio_processing/aec/aec_core.h>
  6279. #include <webrtc/modules/audio_processing/aec/include/echo_cancellation.h>
  6280. int
  6281. main (void)
  6282. {
  6283. WebRtcAec_Create();
  6284. ;
  6285. return 0;
  6286. }
  6287. _ACEOF
  6288. if ac_fn_c_try_compile "$LINENO"
  6289. then :
  6290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
  6291. printf "%s\n" "yes!!" >&6; }
  6292. ac_external_webrtc="1"
  6293. else $as_nop
  6294. as_fn_error $? "Unable to use external webrtc. If webrtc development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
  6295. fi
  6296. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6297. fi
  6298. fi
  6299. ac_external_webrtc_aec3=0
  6300. # Check whether --with-external-webrtc-aec3 was given.
  6301. if test ${with_external_webrtc_aec3+y}
  6302. then :
  6303. withval=$with_external_webrtc_aec3;
  6304. if test "x$with_external_webrtc_aec3" != "xno"; then
  6305. # Test webrtc AEC3 installation
  6306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external webrtc AEC3 is installed" >&5
  6307. printf %s "checking if external webrtc AEC3 is installed... " >&6; }
  6308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6309. /* end confdefs.h. */
  6310. #include "modules/audio_processing/aec3/echo_canceller3.h"
  6311. int
  6312. main (void)
  6313. {
  6314. EchoCanceller3 ec(EchoCanceller3Config(), 16000, 1, 1);
  6315. ;
  6316. return 0;
  6317. }
  6318. _ACEOF
  6319. if ac_fn_c_try_compile "$LINENO"
  6320. then :
  6321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
  6322. printf "%s\n" "yes!!" >&6; }
  6323. ac_external_webrtc_aec3="1"
  6324. else $as_nop
  6325. as_fn_error $? "Unable to use external webrtc AEC3. If webrtc development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
  6326. fi
  6327. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6328. fi
  6329. fi
  6330. ac_pjmedia_resample=libresample
  6331. # Check whether --enable-resample was given.
  6332. if test ${enable_resample+y}
  6333. then :
  6334. enableval=$enable_resample; if test "$enable_resample" = "no"; then
  6335. ac_pjmedia_resample=none
  6336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if resampling is disabled...yes" >&5
  6337. printf "%s\n" "Checking if resampling is disabled...yes" >&6; }
  6338. fi
  6339. fi
  6340. # Check whether --enable-sound was given.
  6341. if test ${enable_sound+y}
  6342. then :
  6343. enableval=$enable_sound; if test "$enable_sound" = "no"; then
  6344. ac_pjmedia_snd=null
  6345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
  6346. printf "%s\n" "Checking if sound is disabled... yes" >&6; }
  6347. fi
  6348. fi
  6349. ac_external_pa=0
  6350. # Check whether --with-external-pa was given.
  6351. if test ${with_external_pa+y}
  6352. then :
  6353. withval=$with_external_pa;
  6354. if test "x$with_external_pa" != "xno"; then
  6355. # Test PortAudio installation
  6356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
  6357. printf %s "checking if external PortAudio devkit is installed... " >&6; }
  6358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6359. /* end confdefs.h. */
  6360. #include <portaudio.h>
  6361. int
  6362. main (void)
  6363. {
  6364. Pa_Initialize();
  6365. ;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_c_try_compile "$LINENO"
  6370. then :
  6371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
  6372. printf "%s\n" "yes!!" >&6; }
  6373. ac_external_pa="1"
  6374. else $as_nop
  6375. as_fn_error $? "Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
  6376. fi
  6377. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6378. fi
  6379. fi
  6380. ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
  6381. if test "x$ac_cv_header_sys_soundcard_h" = xyes
  6382. then :
  6383. ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
  6384. fi
  6385. ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
  6386. if test "x$ac_cv_header_linux_soundcard_h" = xyes
  6387. then :
  6388. ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
  6389. fi
  6390. ac_fn_c_check_header_compile "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
  6391. if test "x$ac_cv_header_machine_soundcard_h" = xyes
  6392. then :
  6393. ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
  6394. fi
  6395. if test "x$ac_cv_c_bigendian" = "xyes"; then
  6396. ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
  6397. else
  6398. ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
  6399. fi
  6400. # Check whether --with-oboe was given.
  6401. if test ${with_oboe+y}
  6402. then :
  6403. withval=$with_oboe;
  6404. if test "x$with_oboe" != "xno" -a "x$with_oboe" != "x"; then
  6405. OBOE_PREFIX=$with_oboe
  6406. OBOE_CFLAGS="-I$OBOE_PREFIX/prefab/modules/oboe/include"
  6407. OBOE_LDFLAGS="-L$OBOE_PREFIX/prefab/modules/oboe/libs/android.$TARGET_ABI"
  6408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Oboe prefix... $with_oboe" >&5
  6409. printf "%s\n" "Using Oboe prefix... $with_oboe" >&6; }
  6410. else
  6411. OBOE_CFLAGS=""
  6412. OBOE_LDFLAGS=""
  6413. fi
  6414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oboe usability" >&5
  6415. printf %s "checking Oboe usability... " >&6; }
  6416. OBOE_LIBS="-loboe -lOpenSLES -llog"
  6417. SAVED_LIBS="$LIBS"
  6418. SAVED_LDFLAGS="$LDFLAGS"
  6419. SAVED_CXXFLAGS="$CXXFLAGS"
  6420. LIBS="$OBOE_LIBS $LIBS"
  6421. LDFLAGS="$OBOE_LDFLAGS $LDFLAGS"
  6422. CXXFLAGS="$OBOE_CFLAGS $CXXFLAGS"
  6423. ac_ext=cpp
  6424. ac_cpp='$CXXCPP $CPPFLAGS'
  6425. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6426. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6427. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6429. /* end confdefs.h. */
  6430. #include <oboe/Oboe.h>
  6431. int
  6432. main (void)
  6433. {
  6434. oboe::AudioStreamBuilder sb; sb.setDeviceId(0);
  6435. ;
  6436. return 0;
  6437. }
  6438. _ACEOF
  6439. if ac_fn_cxx_try_link "$LINENO"
  6440. then :
  6441. ac_oboe_cflags="-DPJMEDIA_AUDIO_DEV_HAS_OBOE=1 $OBOE_CFLAGS"
  6442. ac_oboe_ldflags="$OBOE_LDFLAGS $OBOE_LIBS"
  6443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6444. printf "%s\n" "yes" >&6; }
  6445. else $as_nop
  6446. LIBS="$SAVED_LIBS"
  6447. LDFLAGS="$SAVED_LDFLAGS"
  6448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. printf "%s\n" "no" >&6; }
  6450. fi
  6451. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6452. conftest$ac_exeext conftest.$ac_ext
  6453. ac_ext=c
  6454. ac_cpp='$CPP $CPPFLAGS'
  6455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6458. # Put back original CXXFLAGS as app won't needed it.
  6459. CXXFLAGS="$SAVED_CFLAGS"
  6460. fi
  6461. if test "$enable_sound" = "no"; then
  6462. true;
  6463. else
  6464. case $target in
  6465. *android*)
  6466. if test "x$ac_oboe_cflags" != "x"; then
  6467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... Oboe" >&5
  6468. printf "%s\n" "Checking sound device backend... Oboe" >&6; }
  6469. else
  6470. LIBS="$LIBS -lOpenSLES"
  6471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... Android" >&5
  6472. printf "%s\n" "Checking sound device backend... Android" >&6; }
  6473. fi
  6474. ;;
  6475. *-apple-darwin_ios*)
  6476. LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit -framework AVFoundation"
  6477. ac_pjmedia_audiodev_objs="coreaudio_dev.o"
  6478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
  6479. printf "%s\n" "Checking sound device backend... AudioUnit" >&6; }
  6480. ;;
  6481. *darwin*)
  6482. LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
  6483. ac_pjmedia_audiodev_objs="coreaudio_dev.o"
  6484. if test "`uname -r`" = "6.8"; then
  6485. #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
  6486. #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
  6487. #ac_pjmedia_snd=pa_old_darwinos
  6488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
  6489. printf "%s\n" "Checking sound device backend... old coreaudio" >&6; }
  6490. else
  6491. ac_pjmedia_snd=coreaudio
  6492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
  6493. printf "%s\n" "Checking sound device backend... coreaudio" >&6; }
  6494. fi
  6495. ;;
  6496. *cygwin* | *mingw*)
  6497. ac_pjmedia_snd=win32
  6498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
  6499. printf "%s\n" "Checking sound device backend... win32 sound" >&6; }
  6500. ;;
  6501. *rtems*)
  6502. ac_pjmedia_snd=null
  6503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
  6504. printf "%s\n" "Checking sound device backend... null sound" >&6; }
  6505. ;;
  6506. *)
  6507. if test "x$ac_external_pa" != "x1"; then
  6508. ac_fn_c_check_header_compile "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
  6509. if test "x$ac_cv_header_alsa_version_h" = xyes
  6510. then :
  6511. LIBS="$LIBS -lasound"
  6512. ac_pjmedia_snd=alsa
  6513. fi
  6514. if test "x$ac_pjmedia_snd" = "xalsa"; then
  6515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... alsa" >&5
  6516. printf "%s\n" "Checking sound device backend... alsa" >&6; }
  6517. else
  6518. ac_pjmedia_snd=null
  6519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
  6520. printf "%s\n" "Checking sound device backend... null sound" >&6; }
  6521. fi
  6522. fi
  6523. ;;
  6524. esac
  6525. fi
  6526. # Disable video on mingw by default (but respect --enable-video=yes)
  6527. case $target in
  6528. *mingw*)
  6529. if test ! "$enable_video" = "yes"; then
  6530. enable_video="no"
  6531. fi
  6532. ;;
  6533. esac
  6534. # Check whether --enable-video was given.
  6535. if test ${enable_video+y}
  6536. then :
  6537. enableval=$enable_video; if test "$enable_video" = "no"; then
  6538. #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
  6539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
  6540. printf "%s\n" "Video is disabled" >&6; }
  6541. enable_sdl="no"
  6542. enable_ffmpeg="no"
  6543. enable_v4l2="no"
  6544. enable_openh264="no"
  6545. enable_libyuv="no"
  6546. enable_vpx="no"
  6547. fi
  6548. fi
  6549. case $target in
  6550. *android*)
  6551. LIBS="$LIBS -llog"
  6552. ;;
  6553. *-apple-darwin_ios*)
  6554. LIBS="$LIBS -framework UIKit"
  6555. ;;
  6556. *darwin*)
  6557. LIBS="$LIBS -framework Foundation -framework AppKit"
  6558. ;;
  6559. esac
  6560. if test "$enable_video" = "no"; then
  6561. true;
  6562. else
  6563. case $target in
  6564. *android*)
  6565. ac_pjmedia_video=android_os
  6566. SAVED_LIBS="$LIBS"
  6567. LIBS="-lGLESv2 -lEGL -landroid -lc"
  6568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6569. /* end confdefs.h. */
  6570. int
  6571. main (void)
  6572. {
  6573. ;
  6574. return 0;
  6575. }
  6576. _ACEOF
  6577. if ac_fn_c_try_link "$LINENO"
  6578. then :
  6579. ac_pjmedia_video_has_android=yes
  6580. else $as_nop
  6581. ac_pjmedia_video_has_android=no
  6582. fi
  6583. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6584. conftest$ac_exeext conftest.$ac_ext
  6585. LIBS="$SAVED_LIBS"
  6586. if test "$ac_pjmedia_video_has_android" = "yes"; then
  6587. ac_android_cflags="-DPJMEDIA_VIDEO_DEV_HAS_ANDROID_OPENGL=1"
  6588. LIBS="$LIBS -lGLESv2 -lEGL -landroid"
  6589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGL ES 2 is available... yes" >&5
  6590. printf "%s\n" "Checking if OpenGL ES 2 is available... yes" >&6; }
  6591. else
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGL ES 2 is available... no" >&5
  6593. printf "%s\n" "Checking if OpenGL ES 2 is available... no" >&6; }
  6594. fi
  6595. ac_android_cflags="$ac_android_cflags -DPJMEDIA_VIDEO_DEV_HAS_ANDROID=1"
  6596. ;;
  6597. *mingw*)
  6598. if test "$enable_video" = "yes"; then
  6599. ac_pjmedia_video=windows_os
  6600. ac_pjmedia_video_dev_has_dshow=yes
  6601. ac_dshow_cflags="-DPJMEDIA_HAS_VIDEO=1 -DPJMEDIA_VIDEO_DEV_HAS_DSHOW=1"
  6602. ac_dshow_ldflags=" -lstdc++ -lquartz -lole32 -loleaut32 -lrpcrt4 -lwinmm -luuid -lmingwex -lstrmiids "
  6603. LIBS="$LIBS -lstdc++ -lquartz -lole32 -loleaut32 -lrpcrt4 -lwinmm -luuid -lmingwex -lstrmiids "
  6604. fi
  6605. ;;
  6606. *darwin*)
  6607. ac_pjmedia_video=darwin_os
  6608. SAVED_LIBS="$LIBS"
  6609. LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
  6610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6611. /* end confdefs.h. */
  6612. int
  6613. main (void)
  6614. {
  6615. ;
  6616. return 0;
  6617. }
  6618. _ACEOF
  6619. if ac_fn_c_try_link "$LINENO"
  6620. then :
  6621. ac_pjmedia_video_has_darwin=yes
  6622. else $as_nop
  6623. ac_pjmedia_video_has_darwin=no
  6624. fi
  6625. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6626. conftest$ac_exeext conftest.$ac_ext
  6627. LIBS="-framework VideoToolbox"
  6628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6629. /* end confdefs.h. */
  6630. int
  6631. main (void)
  6632. {
  6633. ;
  6634. return 0;
  6635. }
  6636. _ACEOF
  6637. if ac_fn_c_try_link "$LINENO"
  6638. then :
  6639. ac_pjmedia_video_has_vtoolbox=yes
  6640. else $as_nop
  6641. ac_pjmedia_video_has_vtoolbox=no
  6642. fi
  6643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6644. conftest$ac_exeext conftest.$ac_ext
  6645. LIBS="-framework Metal"
  6646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6647. /* end confdefs.h. */
  6648. int
  6649. main (void)
  6650. {
  6651. ;
  6652. return 0;
  6653. }
  6654. _ACEOF
  6655. if ac_fn_c_try_link "$LINENO"
  6656. then :
  6657. ac_pjmedia_video_has_metal=yes
  6658. else $as_nop
  6659. ac_pjmedia_video_has_metal=no
  6660. fi
  6661. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6662. conftest$ac_exeext conftest.$ac_ext
  6663. LIBS="-framework OpenGLES"
  6664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6665. /* end confdefs.h. */
  6666. int
  6667. main (void)
  6668. {
  6669. ;
  6670. return 0;
  6671. }
  6672. _ACEOF
  6673. if ac_fn_c_try_link "$LINENO"
  6674. then :
  6675. ac_pjmedia_video_has_ios_opengl=yes
  6676. else $as_nop
  6677. ac_pjmedia_video_has_ios_opengl=no
  6678. fi
  6679. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6680. conftest$ac_exeext conftest.$ac_ext
  6681. LIBS="$SAVED_LIBS"
  6682. if test "$ac_pjmedia_video_has_darwin" = "yes"; then
  6683. ac_darwin_cflags="-DPJMEDIA_VIDEO_DEV_HAS_DARWIN=1"
  6684. LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
  6685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
  6686. printf "%s\n" "Checking if AVFoundation framework is available... yes" >&6; }
  6687. else
  6688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
  6689. printf "%s\n" "Checking if AVFoundation framework is available... no" >&6; }
  6690. fi
  6691. if test "$ac_pjmedia_video_has_metal" = "yes"; then
  6692. ac_darwin_cflags+=" -DPJMEDIA_VIDEO_DEV_HAS_METAL=1"
  6693. LIBS="$LIBS -framework Metal -framework MetalKit"
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Metal framework is available... yes" >&5
  6695. printf "%s\n" "Checking if Metal framework is available... yes" >&6; }
  6696. else
  6697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Metal framework is available... no" >&5
  6698. printf "%s\n" "Checking if Metal framework is available... no" >&6; }
  6699. fi
  6700. if test "$ac_pjmedia_video_has_vtoolbox" = "yes"; then
  6701. #ac_darwin_cflags+=" -DPJMEDIA_HAS_VID_TOOLBOX_CODEC=1"
  6702. LIBS="$LIBS -framework VideoToolbox"
  6703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if VideoToolbox framework is available... yes" >&5
  6704. printf "%s\n" "Checking if VideoToolbox framework is available... yes" >&6; }
  6705. else
  6706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if VideoToolbox framework is available... no" >&5
  6707. printf "%s\n" "Checking if VideoToolbox framework is available... no" >&6; }
  6708. fi
  6709. if test "$ac_pjmedia_video_has_ios_opengl" = "yes"; then
  6710. ac_darwin_cflags+=" -DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1"
  6711. LIBS="$LIBS -framework OpenGLES"
  6712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGLES framework is available... yes" >&5
  6713. printf "%s\n" "Checking if OpenGLES framework is available... yes" >&6; }
  6714. else
  6715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGLES framework is available... no" >&5
  6716. printf "%s\n" "Checking if OpenGLES framework is available... no" >&6; }
  6717. fi
  6718. if false; then
  6719. # QTKit is deprecated, see ticket #1931.
  6720. ac_pjmedia_video=mac_os
  6721. SAVED_LIBS="$LIBS"
  6722. LIBS="-framework QTKit"
  6723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6724. /* end confdefs.h. */
  6725. int
  6726. main (void)
  6727. {
  6728. ;
  6729. return 0;
  6730. }
  6731. _ACEOF
  6732. if ac_fn_c_try_link "$LINENO"
  6733. then :
  6734. ac_pjmedia_video_has_qt=yes
  6735. else $as_nop
  6736. ac_pjmedia_video_has_qt=no
  6737. fi
  6738. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6739. conftest$ac_exeext conftest.$ac_ext
  6740. LIBS="$SAVED_LIBS"
  6741. if test "$ac_pjmedia_video_has_qt" = "yes"; then
  6742. ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
  6743. LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
  6744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
  6745. printf "%s\n" "Checking if QTKit framework is available... yes" >&6; }
  6746. else
  6747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
  6748. printf "%s\n" "Checking if QTKit framework is available... no" >&6; }
  6749. fi
  6750. fi
  6751. ;;
  6752. esac
  6753. fi
  6754. # Check whether --enable-ext_sound was given.
  6755. if test ${enable_ext_sound+y}
  6756. then :
  6757. enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
  6758. ac_pjmedia_snd=external
  6759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
  6760. printf "%s\n" "Checking if external sound is set... yes" >&6; }
  6761. fi
  6762. fi
  6763. # Check whether --enable-small-filter was given.
  6764. if test ${enable_small_filter+y}
  6765. then :
  6766. enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
  6767. ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
  6768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
  6769. printf "%s\n" "Checking if small filter is disabled... yes" >&6; }
  6770. fi
  6771. else $as_nop
  6772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
  6773. printf "%s\n" "Checking if small filter is disabled... no" >&6; }
  6774. fi
  6775. # Check whether --enable-large-filter was given.
  6776. if test ${enable_large_filter+y}
  6777. then :
  6778. enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
  6779. ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
  6780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
  6781. printf "%s\n" "Checking if large filter is disabled... yes" >&6; }
  6782. fi
  6783. else $as_nop
  6784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
  6785. printf "%s\n" "Checking if large filter is disabled... no" >&6; }
  6786. fi
  6787. # Check whether --enable-speex-aec was given.
  6788. if test ${enable_speex_aec+y}
  6789. then :
  6790. enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
  6791. ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
  6792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
  6793. printf "%s\n" "Checking if Speex AEC is disabled...yes" >&6; }
  6794. fi
  6795. else $as_nop
  6796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
  6797. printf "%s\n" "Checking if Speex AEC is disabled...no" >&6; }
  6798. fi
  6799. # Check whether --enable-g711-codec was given.
  6800. if test ${enable_g711_codec+y}
  6801. then :
  6802. enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
  6803. ac_no_g711_codec=1
  6804. printf "%s\n" "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
  6805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
  6806. printf "%s\n" "Checking if G.711 codec is disabled...yes" >&6; }
  6807. fi
  6808. else $as_nop
  6809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
  6810. printf "%s\n" "Checking if G.711 codec is disabled...no" >&6; }
  6811. fi
  6812. # Check whether --enable-l16-codec was given.
  6813. if test ${enable_l16_codec+y}
  6814. then :
  6815. enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
  6816. ac_no_l16_codec=1
  6817. printf "%s\n" "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
  6818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
  6819. printf "%s\n" "Checking if L16 codecs are disabled...yes" >&6; }
  6820. fi
  6821. else $as_nop
  6822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
  6823. printf "%s\n" "Checking if L16 codec is disabled...no" >&6; }
  6824. fi
  6825. # Check whether --enable-gsm-codec was given.
  6826. if test ${enable_gsm_codec+y}
  6827. then :
  6828. enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
  6829. ac_no_gsm_codec=1
  6830. printf "%s\n" "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
  6831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
  6832. printf "%s\n" "Checking if GSM codec is disabled...yes" >&6; }
  6833. fi
  6834. else $as_nop
  6835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
  6836. printf "%s\n" "Checking if GSM codec is disabled...no" >&6; }
  6837. fi
  6838. # Check whether --enable-g722-codec was given.
  6839. if test ${enable_g722_codec+y}
  6840. then :
  6841. enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
  6842. ac_no_g722_codec=1
  6843. printf "%s\n" "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
  6844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
  6845. printf "%s\n" "Checking if G.722 codec is disabled...yes" >&6; }
  6846. fi
  6847. else $as_nop
  6848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
  6849. printf "%s\n" "Checking if G.722 codec is disabled...no" >&6; }
  6850. fi
  6851. # Check whether --enable-g7221-codec was given.
  6852. if test ${enable_g7221_codec+y}
  6853. then :
  6854. enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
  6855. ac_no_g7221_codec=1
  6856. printf "%s\n" "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
  6857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
  6858. printf "%s\n" "Checking if G.722.1 codec is disabled...yes" >&6; }
  6859. fi
  6860. else $as_nop
  6861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
  6862. printf "%s\n" "Checking if G.722.1 codec is disabled...no" >&6; }
  6863. fi
  6864. # Check whether --enable-speex-codec was given.
  6865. if test ${enable_speex_codec+y}
  6866. then :
  6867. enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
  6868. ac_no_speex_codec=1
  6869. printf "%s\n" "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
  6870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
  6871. printf "%s\n" "Checking if Speex codec is disabled...yes" >&6; }
  6872. fi
  6873. else $as_nop
  6874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
  6875. printf "%s\n" "Checking if Speex codec is disabled...no" >&6; }
  6876. fi
  6877. # Check whether --enable-ilbc-codec was given.
  6878. if test ${enable_ilbc_codec+y}
  6879. then :
  6880. enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
  6881. ac_no_ilbc_codec=1
  6882. printf "%s\n" "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
  6883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
  6884. printf "%s\n" "Checking if iLBC codec is disabled...yes" >&6; }
  6885. fi
  6886. else $as_nop
  6887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
  6888. printf "%s\n" "Checking if iLBC codec is disabled...no" >&6; }
  6889. fi
  6890. # Check whether --enable-libsamplerate was given.
  6891. if test ${enable_libsamplerate+y}
  6892. then :
  6893. enableval=$enable_libsamplerate;
  6894. if test "$enable_libsamplerate" = "yes"; then
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsamplerate is enabled...yes" >&5
  6896. printf "%s\n" "Checking if libsamplerate is enabled...yes" >&6; }
  6897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
  6898. printf %s "checking for src_new in -lsamplerate... " >&6; }
  6899. if test ${ac_cv_lib_samplerate_src_new+y}
  6900. then :
  6901. printf %s "(cached) " >&6
  6902. else $as_nop
  6903. ac_check_lib_save_LIBS=$LIBS
  6904. LIBS="-lsamplerate $LIBS"
  6905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6906. /* end confdefs.h. */
  6907. /* Override any GCC internal prototype to avoid an error.
  6908. Use char because int might match the return type of a GCC
  6909. builtin and then its argument prototype would still apply. */
  6910. char src_new ();
  6911. int
  6912. main (void)
  6913. {
  6914. return src_new ();
  6915. ;
  6916. return 0;
  6917. }
  6918. _ACEOF
  6919. if ac_fn_c_try_link "$LINENO"
  6920. then :
  6921. ac_cv_lib_samplerate_src_new=yes
  6922. else $as_nop
  6923. ac_cv_lib_samplerate_src_new=no
  6924. fi
  6925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6926. conftest$ac_exeext conftest.$ac_ext
  6927. LIBS=$ac_check_lib_save_LIBS
  6928. fi
  6929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
  6930. printf "%s\n" "$ac_cv_lib_samplerate_src_new" >&6; }
  6931. if test "x$ac_cv_lib_samplerate_src_new" = xyes
  6932. then :
  6933. printf "%s\n" "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
  6934. LIBS="-lsamplerate $LIBS"
  6935. fi
  6936. ac_pjmedia_resample=libsamplerate
  6937. else
  6938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsamplerate is enabled...no" >&5
  6939. printf "%s\n" "Checking if libsamplerate is enabled...no" >&6; }
  6940. fi
  6941. else $as_nop
  6942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsamplerate is enabled...no" >&5
  6943. printf "%s\n" "Checking if libsamplerate is enabled...no" >&6; }
  6944. fi
  6945. # Check whether --enable-resample_dll was given.
  6946. if test ${enable_resample_dll+y}
  6947. then :
  6948. enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
  6949. ac_resample_dll=1
  6950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
  6951. printf "%s\n" "Building libresample as shared library... yes" >&6; }
  6952. fi
  6953. else $as_nop
  6954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
  6955. printf "%s\n" "Building libresample as shared library... no" >&6; }
  6956. fi
  6957. # Check whether --enable-speex-resample was given.
  6958. if test ${enable_speex_resample+y}
  6959. then :
  6960. enableval=$enable_speex_resample;
  6961. if test "$enable_speex_resample" = "yes"; then
  6962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex resample is enabled... yes" >&5
  6963. printf "%s\n" "Checking if Speex resample is enabled... yes" >&6; }
  6964. ac_pjmedia_resample=speex
  6965. else
  6966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex resample is enabled... no" >&5
  6967. printf "%s\n" "Checking if Speex resample is enabled... no" >&6; }
  6968. fi
  6969. else $as_nop
  6970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Speex resample is enabled... no" >&5
  6971. printf "%s\n" "Checking if Speex resample is enabled... no" >&6; }
  6972. fi
  6973. # Check whether --with-sdl was given.
  6974. if test ${with_sdl+y}
  6975. then :
  6976. withval=$with_sdl;
  6977. else $as_nop
  6978. with_sdl=no
  6979. fi
  6980. if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
  6981. enable_sdl=no
  6982. fi
  6983. # Check whether --enable-sdl was given.
  6984. if test ${enable_sdl+y}
  6985. then :
  6986. enableval=$enable_sdl;
  6987. if test "$enable_sdl" = "no"; then
  6988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
  6989. printf "%s\n" "Checking if SDL is disabled... yes" >&6; }
  6990. fi
  6991. else $as_nop
  6992. if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
  6993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
  6994. printf "%s\n" "Using SDL prefix... $with_sdl" >&6; }
  6995. for ac_prog in sdl2-config sdl-config
  6996. do
  6997. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6998. set dummy $ac_prog; ac_word=$2
  6999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7000. printf %s "checking for $ac_word... " >&6; }
  7001. if test ${ac_cv_path_SDL_CONFIG+y}
  7002. then :
  7003. printf %s "(cached) " >&6
  7004. else $as_nop
  7005. case $SDL_CONFIG in
  7006. [\\/]* | ?:[\\/]*)
  7007. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  7008. ;;
  7009. *)
  7010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7011. for as_dir in $with_sdl/bin
  7012. do
  7013. IFS=$as_save_IFS
  7014. case $as_dir in #(((
  7015. '') as_dir=./ ;;
  7016. */) ;;
  7017. *) as_dir=$as_dir/ ;;
  7018. esac
  7019. for ac_exec_ext in '' $ac_executable_extensions; do
  7020. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7021. ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7022. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7023. break 2
  7024. fi
  7025. done
  7026. done
  7027. IFS=$as_save_IFS
  7028. ;;
  7029. esac
  7030. fi
  7031. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  7032. if test -n "$SDL_CONFIG"; then
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  7034. printf "%s\n" "$SDL_CONFIG" >&6; }
  7035. else
  7036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. printf "%s\n" "no" >&6; }
  7038. fi
  7039. test -n "$SDL_CONFIG" && break
  7040. done
  7041. else
  7042. for ac_prog in sdl2-config sdl-config
  7043. do
  7044. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7045. set dummy $ac_prog; ac_word=$2
  7046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7047. printf %s "checking for $ac_word... " >&6; }
  7048. if test ${ac_cv_path_SDL_CONFIG+y}
  7049. then :
  7050. printf %s "(cached) " >&6
  7051. else $as_nop
  7052. case $SDL_CONFIG in
  7053. [\\/]* | ?:[\\/]*)
  7054. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  7055. ;;
  7056. *)
  7057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7058. for as_dir in $PATH
  7059. do
  7060. IFS=$as_save_IFS
  7061. case $as_dir in #(((
  7062. '') as_dir=./ ;;
  7063. */) ;;
  7064. *) as_dir=$as_dir/ ;;
  7065. esac
  7066. for ac_exec_ext in '' $ac_executable_extensions; do
  7067. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7068. ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
  7069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7070. break 2
  7071. fi
  7072. done
  7073. done
  7074. IFS=$as_save_IFS
  7075. ;;
  7076. esac
  7077. fi
  7078. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  7079. if test -n "$SDL_CONFIG"; then
  7080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  7081. printf "%s\n" "$SDL_CONFIG" >&6; }
  7082. else
  7083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7084. printf "%s\n" "no" >&6; }
  7085. fi
  7086. test -n "$SDL_CONFIG" && break
  7087. done
  7088. fi
  7089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5
  7090. printf %s "checking SDL availability... " >&6; }
  7091. if test "x$SDL_CONFIG" = "x"; then
  7092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  7093. printf "%s\n" "not found" >&6; }
  7094. elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then
  7095. ac_sdl_cflags=`$SDL_CONFIG --cflags`
  7096. ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
  7097. ac_sdl_ldflags=`$SDL_CONFIG --libs`
  7098. ac_sdl_ldflags=`echo "${ac_sdl_ldflags}" | sed -e 's/-mwindows//g'`
  7099. LIBS="$LIBS $ac_sdl_ldflags"
  7100. else
  7101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
  7102. printf "%s\n" "Unsupported SDL version" >&6; }
  7103. fi
  7104. fi
  7105. # Check whether --with-ffmpeg was given.
  7106. if test ${with_ffmpeg+y}
  7107. then :
  7108. withval=$with_ffmpeg;
  7109. else $as_nop
  7110. with_ffmpeg=no
  7111. fi
  7112. if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
  7113. enable_ffmpeg=no
  7114. fi
  7115. # Check whether --enable-ffmpeg was given.
  7116. if test ${enable_ffmpeg+y}
  7117. then :
  7118. enableval=$enable_ffmpeg;
  7119. ac_has_ffmpeg=0
  7120. if test "$enable_ffmpeg" = "no"; then
  7121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
  7122. printf "%s\n" "Checking if ffmpeg is disabled... yes" >&6; }
  7123. fi
  7124. else $as_nop
  7125. FFMPEG_PREFIX=""
  7126. SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
  7127. if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
  7128. FFMPEG_PREFIX=$with_ffmpeg
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
  7130. printf "%s\n" "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
  7131. export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
  7132. fi
  7133. for ac_prog in pkg-config "python pkgconfig.py"
  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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7138. printf %s "checking for $ac_word... " >&6; }
  7139. if test ${ac_cv_prog_PKG_CONFIG+y}
  7140. then :
  7141. printf %s "(cached) " >&6
  7142. else $as_nop
  7143. if test -n "$PKG_CONFIG"; then
  7144. ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
  7145. else
  7146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7147. for as_dir in $PATH
  7148. do
  7149. IFS=$as_save_IFS
  7150. case $as_dir in #(((
  7151. '') as_dir=./ ;;
  7152. */) ;;
  7153. *) as_dir=$as_dir/ ;;
  7154. esac
  7155. for ac_exec_ext in '' $ac_executable_extensions; do
  7156. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7157. ac_cv_prog_PKG_CONFIG="$ac_prog"
  7158. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7159. break 2
  7160. fi
  7161. done
  7162. done
  7163. IFS=$as_save_IFS
  7164. fi
  7165. fi
  7166. PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
  7167. if test -n "$PKG_CONFIG"; then
  7168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7169. printf "%s\n" "$PKG_CONFIG" >&6; }
  7170. else
  7171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7172. printf "%s\n" "no" >&6; }
  7173. fi
  7174. test -n "$PKG_CONFIG" && break
  7175. done
  7176. test -n "$PKG_CONFIG" || PKG_CONFIG="none"
  7177. if test "$PKG_CONFIG" != "none"; then
  7178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
  7179. printf %s "checking ffmpeg packages... " >&6; }
  7180. av_pkg=""
  7181. if $PKG_CONFIG --exists libavdevice; then
  7182. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
  7183. av_pkg="$av_pkg libavdevice"
  7184. fi
  7185. if $PKG_CONFIG --exists libavformat; then
  7186. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
  7187. av_pkg="$av_pkg libavformat"
  7188. fi
  7189. if $PKG_CONFIG --exists libavcodec; then
  7190. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
  7191. av_pkg="$av_pkg libavcodec"
  7192. fi
  7193. if $PKG_CONFIG --exists libswscale; then
  7194. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
  7195. av_pkg="$av_pkg libswscale"
  7196. fi
  7197. if $PKG_CONFIG --exists libavutil; then
  7198. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
  7199. av_pkg="$av_pkg libavutil"
  7200. fi
  7201. if test "x$av_pkg" = "x"; then
  7202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
  7203. printf "%s\n" "none detected (check the prefix)! **" >&6; }
  7204. else
  7205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
  7206. printf "%s\n" "$av_pkg" >&6; }
  7207. fi
  7208. ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
  7209. ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
  7210. else
  7211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&5
  7212. printf "%s\n" "*** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&6; }
  7213. LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
  7214. LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
  7215. CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
  7216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
  7217. printf %s "checking for avdevice_version in -lavdevice... " >&6; }
  7218. if test ${ac_cv_lib_avdevice_avdevice_version+y}
  7219. then :
  7220. printf %s "(cached) " >&6
  7221. else $as_nop
  7222. ac_check_lib_save_LIBS=$LIBS
  7223. LIBS="-lavdevice $LIBS"
  7224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7225. /* end confdefs.h. */
  7226. /* Override any GCC internal prototype to avoid an error.
  7227. Use char because int might match the return type of a GCC
  7228. builtin and then its argument prototype would still apply. */
  7229. char avdevice_version ();
  7230. int
  7231. main (void)
  7232. {
  7233. return avdevice_version ();
  7234. ;
  7235. return 0;
  7236. }
  7237. _ACEOF
  7238. if ac_fn_c_try_link "$LINENO"
  7239. then :
  7240. ac_cv_lib_avdevice_avdevice_version=yes
  7241. else $as_nop
  7242. ac_cv_lib_avdevice_avdevice_version=no
  7243. fi
  7244. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7245. conftest$ac_exeext conftest.$ac_ext
  7246. LIBS=$ac_check_lib_save_LIBS
  7247. fi
  7248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
  7249. printf "%s\n" "$ac_cv_lib_avdevice_avdevice_version" >&6; }
  7250. if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes
  7251. then :
  7252. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
  7253. ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
  7254. fi
  7255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
  7256. printf %s "checking for av_malloc in -lavutil... " >&6; }
  7257. if test ${ac_cv_lib_avutil_av_malloc+y}
  7258. then :
  7259. printf %s "(cached) " >&6
  7260. else $as_nop
  7261. ac_check_lib_save_LIBS=$LIBS
  7262. LIBS="-lavutil $LIBS"
  7263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7264. /* end confdefs.h. */
  7265. /* Override any GCC internal prototype to avoid an error.
  7266. Use char because int might match the return type of a GCC
  7267. builtin and then its argument prototype would still apply. */
  7268. char av_malloc ();
  7269. int
  7270. main (void)
  7271. {
  7272. return av_malloc ();
  7273. ;
  7274. return 0;
  7275. }
  7276. _ACEOF
  7277. if ac_fn_c_try_link "$LINENO"
  7278. then :
  7279. ac_cv_lib_avutil_av_malloc=yes
  7280. else $as_nop
  7281. ac_cv_lib_avutil_av_malloc=no
  7282. fi
  7283. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7284. conftest$ac_exeext conftest.$ac_ext
  7285. LIBS=$ac_check_lib_save_LIBS
  7286. fi
  7287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
  7288. printf "%s\n" "$ac_cv_lib_avutil_av_malloc" >&6; }
  7289. if test "x$ac_cv_lib_avutil_av_malloc" = xyes
  7290. then :
  7291. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
  7292. ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
  7293. fi
  7294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
  7295. printf %s "checking for avcodec_init in -lavcodec... " >&6; }
  7296. if test ${ac_cv_lib_avcodec_avcodec_init+y}
  7297. then :
  7298. printf %s "(cached) " >&6
  7299. else $as_nop
  7300. ac_check_lib_save_LIBS=$LIBS
  7301. LIBS="-lavcodec -lavutil
  7302. $LIBS"
  7303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7304. /* end confdefs.h. */
  7305. /* Override any GCC internal prototype to avoid an error.
  7306. Use char because int might match the return type of a GCC
  7307. builtin and then its argument prototype would still apply. */
  7308. char avcodec_init ();
  7309. int
  7310. main (void)
  7311. {
  7312. return avcodec_init ();
  7313. ;
  7314. return 0;
  7315. }
  7316. _ACEOF
  7317. if ac_fn_c_try_link "$LINENO"
  7318. then :
  7319. ac_cv_lib_avcodec_avcodec_init=yes
  7320. else $as_nop
  7321. ac_cv_lib_avcodec_avcodec_init=no
  7322. fi
  7323. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7324. conftest$ac_exeext conftest.$ac_ext
  7325. LIBS=$ac_check_lib_save_LIBS
  7326. fi
  7327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
  7328. printf "%s\n" "$ac_cv_lib_avcodec_avcodec_init" >&6; }
  7329. if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes
  7330. then :
  7331. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
  7332. ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
  7333. fi
  7334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
  7335. printf %s "checking for av_register_all in -lavformat... " >&6; }
  7336. if test ${ac_cv_lib_avformat_av_register_all+y}
  7337. then :
  7338. printf %s "(cached) " >&6
  7339. else $as_nop
  7340. ac_check_lib_save_LIBS=$LIBS
  7341. LIBS="-lavformat -lavcodec -lavutil
  7342. $LIBS"
  7343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7344. /* end confdefs.h. */
  7345. /* Override any GCC internal prototype to avoid an error.
  7346. Use char because int might match the return type of a GCC
  7347. builtin and then its argument prototype would still apply. */
  7348. char av_register_all ();
  7349. int
  7350. main (void)
  7351. {
  7352. return av_register_all ();
  7353. ;
  7354. return 0;
  7355. }
  7356. _ACEOF
  7357. if ac_fn_c_try_link "$LINENO"
  7358. then :
  7359. ac_cv_lib_avformat_av_register_all=yes
  7360. else $as_nop
  7361. ac_cv_lib_avformat_av_register_all=no
  7362. fi
  7363. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7364. conftest$ac_exeext conftest.$ac_ext
  7365. LIBS=$ac_check_lib_save_LIBS
  7366. fi
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
  7368. printf "%s\n" "$ac_cv_lib_avformat_av_register_all" >&6; }
  7369. if test "x$ac_cv_lib_avformat_av_register_all" = xyes
  7370. then :
  7371. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
  7372. ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
  7373. fi
  7374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
  7375. printf %s "checking for sws_scale in -lswscale... " >&6; }
  7376. if test ${ac_cv_lib_swscale_sws_scale+y}
  7377. then :
  7378. printf %s "(cached) " >&6
  7379. else $as_nop
  7380. ac_check_lib_save_LIBS=$LIBS
  7381. LIBS="-lswscale -lavutil
  7382. $LIBS"
  7383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7384. /* end confdefs.h. */
  7385. /* Override any GCC internal prototype to avoid an error.
  7386. Use char because int might match the return type of a GCC
  7387. builtin and then its argument prototype would still apply. */
  7388. char sws_scale ();
  7389. int
  7390. main (void)
  7391. {
  7392. return sws_scale ();
  7393. ;
  7394. return 0;
  7395. }
  7396. _ACEOF
  7397. if ac_fn_c_try_link "$LINENO"
  7398. then :
  7399. ac_cv_lib_swscale_sws_scale=yes
  7400. else $as_nop
  7401. ac_cv_lib_swscale_sws_scale=no
  7402. fi
  7403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7404. conftest$ac_exeext conftest.$ac_ext
  7405. LIBS=$ac_check_lib_save_LIBS
  7406. fi
  7407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
  7408. printf "%s\n" "$ac_cv_lib_swscale_sws_scale" >&6; }
  7409. if test "x$ac_cv_lib_swscale_sws_scale" = xyes
  7410. then :
  7411. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
  7412. ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
  7413. fi
  7414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
  7415. printf %s "checking for avcore_version in -lavcore... " >&6; }
  7416. if test ${ac_cv_lib_avcore_avcore_version+y}
  7417. then :
  7418. printf %s "(cached) " >&6
  7419. else $as_nop
  7420. ac_check_lib_save_LIBS=$LIBS
  7421. LIBS="-lavcore $LIBS"
  7422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7423. /* end confdefs.h. */
  7424. /* Override any GCC internal prototype to avoid an error.
  7425. Use char because int might match the return type of a GCC
  7426. builtin and then its argument prototype would still apply. */
  7427. char avcore_version ();
  7428. int
  7429. main (void)
  7430. {
  7431. return avcore_version ();
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. if ac_fn_c_try_link "$LINENO"
  7437. then :
  7438. ac_cv_lib_avcore_avcore_version=yes
  7439. else $as_nop
  7440. ac_cv_lib_avcore_avcore_version=no
  7441. fi
  7442. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7443. conftest$ac_exeext conftest.$ac_ext
  7444. LIBS=$ac_check_lib_save_LIBS
  7445. fi
  7446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
  7447. printf "%s\n" "$ac_cv_lib_avcore_avcore_version" >&6; }
  7448. if test "x$ac_cv_lib_avcore_avcore_version" = xyes
  7449. then :
  7450. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
  7451. ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
  7452. fi
  7453. fi
  7454. ac_fn_c_check_type "$LINENO" "enum AVPixelFormat" "ac_cv_type_enum_AVPixelFormat" "#include <libavformat/avformat.h>
  7455. "
  7456. if test "x$ac_cv_type_enum_AVPixelFormat" = xyes
  7457. then :
  7458. printf "%s\n" "#define HAVE_ENUM_AVPIXELFORMAT 1" >>confdefs.h
  7459. else $as_nop
  7460. ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_USE_OLD_FFMPEG=1"
  7461. fi
  7462. LIBS="$LIBS $ac_ffmpeg_ldflags"
  7463. export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
  7464. fi
  7465. # Check whether --enable-v4l2 was given.
  7466. if test ${enable_v4l2+y}
  7467. then :
  7468. enableval=$enable_v4l2;
  7469. if test "$enable_v4l2" = "no"; then
  7470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
  7471. printf "%s\n" "Checking if V4L2 is disabled... yes" >&6; }
  7472. fi
  7473. else $as_nop
  7474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
  7475. printf %s "checking for v4l2_open in -lv4l2... " >&6; }
  7476. if test ${ac_cv_lib_v4l2_v4l2_open+y}
  7477. then :
  7478. printf %s "(cached) " >&6
  7479. else $as_nop
  7480. ac_check_lib_save_LIBS=$LIBS
  7481. LIBS="-lv4l2 $LIBS"
  7482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7483. /* end confdefs.h. */
  7484. /* Override any GCC internal prototype to avoid an error.
  7485. Use char because int might match the return type of a GCC
  7486. builtin and then its argument prototype would still apply. */
  7487. char v4l2_open ();
  7488. int
  7489. main (void)
  7490. {
  7491. return v4l2_open ();
  7492. ;
  7493. return 0;
  7494. }
  7495. _ACEOF
  7496. if ac_fn_c_try_link "$LINENO"
  7497. then :
  7498. ac_cv_lib_v4l2_v4l2_open=yes
  7499. else $as_nop
  7500. ac_cv_lib_v4l2_v4l2_open=no
  7501. fi
  7502. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7503. conftest$ac_exeext conftest.$ac_ext
  7504. LIBS=$ac_check_lib_save_LIBS
  7505. fi
  7506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
  7507. printf "%s\n" "$ac_cv_lib_v4l2_v4l2_open" >&6; }
  7508. if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes
  7509. then :
  7510. ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
  7511. ac_v4l2_ldflags="-lv4l2"
  7512. LIBS="$LIBS -lv4l2"
  7513. fi
  7514. fi
  7515. # Check whether --with-openh264 was given.
  7516. if test ${with_openh264+y}
  7517. then :
  7518. withval=$with_openh264;
  7519. else $as_nop
  7520. with_openh264=no
  7521. fi
  7522. if test "x$ac_cross_compile" != "x" -a "x$with_openh264" = "xno"; then
  7523. enable_openh264=no
  7524. fi
  7525. # Check whether --enable-openh264 was given.
  7526. if test ${enable_openh264+y}
  7527. then :
  7528. enableval=$enable_openh264;
  7529. if test "$enable_openh264" = "no"; then
  7530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenH264 is disabled... yes" >&5
  7531. printf "%s\n" "Checking if OpenH264 is disabled... yes" >&6; }
  7532. fi
  7533. else $as_nop
  7534. if test "x$with_openh264" != "xno" -a "x$with_openh264" != "x"; then
  7535. OPENH264_PREFIX=$with_openh264
  7536. OPENH264_CFLAGS="-I$OPENH264_PREFIX/include"
  7537. OPENH264_LDFLAGS="-L$OPENH264_PREFIX/lib"
  7538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OpenH264 prefix... $with_openh264" >&5
  7539. printf "%s\n" "Using OpenH264 prefix... $with_openh264" >&6; }
  7540. else
  7541. OPENH264_CFLAGS=""
  7542. OPENH264_LDFLAGS=""
  7543. fi
  7544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenH264 usability" >&5
  7545. printf %s "checking OpenH264 usability... " >&6; }
  7546. OPENH264_LIBS="-lopenh264 -lstdc++"
  7547. SAVED_LIBS="$LIBS"
  7548. SAVED_LDFLAGS="$LDFLAGS"
  7549. SAVED_CFLAGS="$CFLAGS"
  7550. LIBS="$OPENH264_LIBS $LIBS"
  7551. LDFLAGS="$OPENH264_LDFLAGS $LDFLAGS"
  7552. CFLAGS="$OPENH264_CFLAGS $CFLAGS"
  7553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7554. /* end confdefs.h. */
  7555. #include <wels/codec_api.h>
  7556. #include <wels/codec_app_def.h>
  7557. int
  7558. main (void)
  7559. {
  7560. WelsCreateSVCEncoder(0);
  7561. ;
  7562. return 0;
  7563. }
  7564. _ACEOF
  7565. if ac_fn_c_try_link "$LINENO"
  7566. then :
  7567. ac_openh264_cflags="-DPJMEDIA_HAS_OPENH264_CODEC=1 $OPENH264_CFLAGS"
  7568. ac_openh264_ldflags="$OPENH264_LDFLAGS $OPENH264_LIBS"
  7569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7570. printf "%s\n" "yes" >&6; }
  7571. else $as_nop
  7572. LIBS="$SAVED_LIBS"
  7573. LDFLAGS="$SAVED_LDFLAGS"
  7574. CFLAGS="$SAVED_CFLAGS"
  7575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7576. printf "%s\n" "no" >&6; }
  7577. fi
  7578. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7579. conftest$ac_exeext conftest.$ac_ext
  7580. fi
  7581. # Check whether --with-vpx was given.
  7582. if test ${with_vpx+y}
  7583. then :
  7584. withval=$with_vpx;
  7585. else $as_nop
  7586. with_vpx=no
  7587. fi
  7588. if test "x$ac_cross_compile" != "x" -a "x$with_vpx" = "xno"; then
  7589. enable_vpx=no
  7590. fi
  7591. # Check whether --enable-vpx was given.
  7592. if test ${enable_vpx+y}
  7593. then :
  7594. enableval=$enable_vpx;
  7595. if test "$enable_vpx" = "no"; then
  7596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if VPX is disabled... yes" >&5
  7597. printf "%s\n" "Checking if VPX is disabled... yes" >&6; }
  7598. fi
  7599. else $as_nop
  7600. if test "x$with_vpx" != "xno" -a "x$with_vpx" != "x"; then
  7601. VPX_PREFIX=$with_vpx
  7602. VPX_CFLAGS="-I$VPX_PREFIX/include"
  7603. VPX_LDFLAGS="-L$VPX_PREFIX/lib"
  7604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using VPX prefix... $with_vpx" >&5
  7605. printf "%s\n" "Using VPX prefix... $with_vpx" >&6; }
  7606. else
  7607. VPX_CFLAGS=""
  7608. VPX_LDFLAGS=""
  7609. fi
  7610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking VPX usability" >&5
  7611. printf %s "checking VPX usability... " >&6; }
  7612. VPX_LIBS="-lvpx"
  7613. SAVED_LIBS="$LIBS"
  7614. SAVED_LDFLAGS="$LDFLAGS"
  7615. SAVED_CFLAGS="$CFLAGS"
  7616. LIBS="$VPX_LIBS $LIBS"
  7617. LDFLAGS="$VPX_LDFLAGS $LDFLAGS"
  7618. CFLAGS="$VPX_CFLAGS $CFLAGS"
  7619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7620. /* end confdefs.h. */
  7621. #include <vpx/vpx_encoder.h>
  7622. #include <vpx/vp8cx.h>
  7623. int
  7624. main (void)
  7625. {
  7626. vpx_codec_iface_t *(*enc_if)() = &vpx_codec_vp8_cx;
  7627. ;
  7628. return 0;
  7629. }
  7630. _ACEOF
  7631. if ac_fn_c_try_link "$LINENO"
  7632. then :
  7633. ac_vpx_cflags="-DPJMEDIA_HAS_VPX_CODEC=1 $VPX_CFLAGS"
  7634. ac_vpx_ldflags="$VPX_LDFLAGS $VPX_LIBS"
  7635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7636. printf "%s\n" "yes" >&6; }
  7637. else $as_nop
  7638. LIBS="$SAVED_LIBS"
  7639. LDFLAGS="$SAVED_LDFLAGS"
  7640. CFLAGS="$SAVED_CFLAGS"
  7641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7642. printf "%s\n" "no" >&6; }
  7643. fi
  7644. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7645. conftest$ac_exeext conftest.$ac_ext
  7646. fi
  7647. # Check whether --enable-ipp was given.
  7648. if test ${enable_ipp+y}
  7649. then :
  7650. enableval=$enable_ipp;
  7651. else $as_nop
  7652. enable_ipp=no
  7653. fi
  7654. # Check whether --with-ipp was given.
  7655. if test ${with_ipp+y}
  7656. then :
  7657. withval=$with_ipp;
  7658. else $as_nop
  7659. with_ipp=no
  7660. fi
  7661. # Check whether --with-ipp-samples was given.
  7662. if test ${with_ipp_samples+y}
  7663. then :
  7664. withval=$with_ipp_samples;
  7665. else $as_nop
  7666. with_ipp_samples=no
  7667. fi
  7668. # Check whether --with-ipp-arch was given.
  7669. if test ${with_ipp_arch+y}
  7670. then :
  7671. withval=$with_ipp_arch;
  7672. else $as_nop
  7673. with_ipp_arch=no
  7674. fi
  7675. if test "x$enable_ipp" != "xno"; then
  7676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
  7677. printf %s "checking Intel IPP location... " >&6; }
  7678. if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
  7679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
  7680. printf "%s\n" "$with_ipp" >&6; }
  7681. IPPROOT=$with_ipp
  7682. elif test "x$IPPROOT" = "x"; then
  7683. if test -d /opt/intel/ipp; then
  7684. IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
  7685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
  7686. printf "%s\n" "autodetected in $IPPROOT" >&6; }
  7687. fi
  7688. else
  7689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
  7690. printf "%s\n" "$IPPROOT" >&6; }
  7691. fi
  7692. if test "x$with_ipp_arch" != "xno"; then
  7693. IPP_SUFFIX=$with_ipp_arch
  7694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
  7695. printf "%s\n" "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
  7696. else
  7697. IPP_SUFFIX=""
  7698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
  7699. printf "%s\n" "IPP arch suffix is set to empty" >&6; }
  7700. fi
  7701. if test x$IPPROOT = x; then
  7702. as_fn_error $? "the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" "$LINENO" 5
  7703. elif test ! -d $IPPROOT; then
  7704. as_fn_error $? "not found" "$LINENO" 5
  7705. elif test ! -d $IPPROOT/include; then
  7706. as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
  7707. else
  7708. # IPP directory looks okay.
  7709. # Remove trailing backslash
  7710. IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
  7711. SAVED_CFLAGS="$CFLAGS"
  7712. SAVED_LDFLAGS="$LDFLAGS"
  7713. SAVED_LIBS="$LIBS"
  7714. IPP_CFLAGS="-I$IPPROOT/include"
  7715. IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
  7716. #
  7717. # Some differences between Mac OS X and Linux
  7718. case $target in
  7719. *darwin* )
  7720. IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
  7721. ;;
  7722. *)
  7723. # Find out where the libraries live.
  7724. IPP7_ARCH=""
  7725. if test -d $IPPROOT/lib/intel64; then
  7726. IPP7_ARCH="intel64"
  7727. elif test -d $IPPROOT/lib/ia32; then
  7728. IPP7_ARCH="ia32"
  7729. elif test -d $IPPROOT/lib/mic; then
  7730. IPP7_ARCH="mic"
  7731. fi
  7732. if test -z "$IPP7_ARCH"; then
  7733. # IPP6 (and possibly below)
  7734. IPP_LDFLAGS="-L$IPPROOT/sharedlib"
  7735. IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
  7736. else
  7737. # IPP7
  7738. if ! test -d $IPPROOT/../compiler; then
  7739. as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
  7740. fi
  7741. IPP_CFLAGS="$IPP_CFLAGS"
  7742. IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
  7743. IPP_LIBS="$IPP_LIBS -liomp5"
  7744. fi
  7745. ;;
  7746. esac
  7747. #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
  7748. #Static:
  7749. #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
  7750. CFLAGS="$CFLAGS $IPP_CFLAGS"
  7751. LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
  7752. LIBS="$IPP_LIBS $LIBS"
  7753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
  7754. printf %s "checking Intel IPP usability... " >&6; }
  7755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7756. /* end confdefs.h. */
  7757. #include <ippcore.h>
  7758. int
  7759. main (void)
  7760. {
  7761. ippStaticInit();
  7762. ;
  7763. return 0;
  7764. }
  7765. _ACEOF
  7766. if ac_fn_c_try_link "$LINENO"
  7767. then :
  7768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7769. printf "%s\n" "yes" >&6; }
  7770. else $as_nop
  7771. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7772. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7773. as_fn_error $? "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info
  7774. See \`config.log' for more details" "$LINENO" 5; }
  7775. fi
  7776. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7777. conftest$ac_exeext conftest.$ac_ext
  7778. CFLAGS="$SAVED_CFLAGS"
  7779. LDFLAGS="$SAVED_LDFLAGS"
  7780. LIBS="$SAVED_LIBS"
  7781. fi
  7782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
  7783. printf %s "checking Intel IPP samples location... " >&6; }
  7784. if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
  7785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
  7786. printf "%s\n" "$with_ipp_samples" >&6; }
  7787. IPPSAMPLES=$with_ipp_samples
  7788. elif test "x$IPPSAMPLES" = "x"; then
  7789. if test -d /opt/intel/ipp-samples; then
  7790. IPPSAMPLES=/opt/intel/ipp-samples
  7791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
  7792. printf "%s\n" "autodetected in $IPPSAMPLES" >&6; }
  7793. fi
  7794. else
  7795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
  7796. printf "%s\n" "$IPPSAMPLES" >&6; }
  7797. fi
  7798. if test x$IPPSAMPLES = x; then
  7799. as_fn_error $? "the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" "$LINENO" 5
  7800. elif test ! -d $IPPSAMPLES; then
  7801. as_fn_error $? "not found" "$LINENO" 5
  7802. elif test ! -d $IPPSAMPLES/speech-codecs; then
  7803. as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
  7804. else
  7805. # Remove trailing backslash
  7806. IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
  7807. # Guess the libusc.a/libspeech.a build location
  7808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
  7809. printf %s "checking Intel IPP USC build location... " >&6; }
  7810. if test -d $IPPSAMPLES/speech-codecs/bin; then
  7811. IPPVER=5
  7812. IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
  7813. elif test -d $IPPSAMPLES/speech-codecs/_bin; then
  7814. IPPVER=6
  7815. if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
  7816. # gcc compiler
  7817. IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
  7818. elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
  7819. # icc compiler
  7820. IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
  7821. else
  7822. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7823. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7824. as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
  7825. See \`config.log' for more details" "$LINENO" 5; }
  7826. fi
  7827. else
  7828. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7829. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7830. as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
  7831. See \`config.log' for more details" "$LINENO" 5; }
  7832. fi
  7833. # Test the directory
  7834. if test ! -d $IPPSAMP_DIR; then
  7835. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7836. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7837. as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
  7838. See \`config.log' for more details" "$LINENO" 5; }
  7839. exit 1;
  7840. fi
  7841. if test "x$IPPVER" = "x5"; then
  7842. IPPSAMP_LIBS="libusc.a"
  7843. IPPSAMP_LDLIBS="-lusc"
  7844. elif test "x$IPPVER" = "x6"; then
  7845. IPPSAMP_LIBS="libspeech.a"
  7846. IPPSAMP_LDLIBS="-lspeech"
  7847. else
  7848. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7849. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7850. as_fn_error $? "bug in this script: unsupported IPP version
  7851. See \`config.log' for more details" "$LINENO" 5; }
  7852. fi
  7853. if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
  7854. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7855. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7856. as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
  7857. See \`config.log' for more details" "$LINENO" 5; }
  7858. fi
  7859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
  7860. printf "%s\n" "$IPPSAMP_DIR" >&6; }
  7861. SAVED_CFLAGS="$CFLAGS"
  7862. SAVED_LDFLAGS="$LDFLAGS"
  7863. SAVED_LIBS="$LIBS"
  7864. IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
  7865. CFLAGS="$CFLAGS $IPPSAMP_INC"
  7866. LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
  7867. LIBS="$IPPSAMP_LDLIBS $LIBS"
  7868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
  7869. printf %s "checking Intel IPP USC usability... " >&6; }
  7870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7871. /* end confdefs.h. */
  7872. #include <usc.h>
  7873. int
  7874. main (void)
  7875. {
  7876. extern USC_Fxns USC_G729AFP_Fxns;
  7877. ;
  7878. return 0;
  7879. }
  7880. _ACEOF
  7881. if ac_fn_c_try_link "$LINENO"
  7882. then :
  7883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7884. printf "%s\n" "yes" >&6; }
  7885. else $as_nop
  7886. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7887. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7888. as_fn_error $? "no
  7889. See \`config.log' for more details" "$LINENO" 5; }
  7890. fi
  7891. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7892. conftest$ac_exeext conftest.$ac_ext
  7893. CFLAGS="$SAVED_CFLAGS"
  7894. LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
  7895. LIBS="$IPP_LIBS $SAVED_LIBS"
  7896. IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
  7897. IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
  7898. IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
  7899. fi
  7900. CFLAGS="$CFLAGS $IPP_CFLAGS"
  7901. LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
  7902. LIBS="$LIBS $IPP_LIBS"
  7903. ac_build_mak_vars="$ac_build_mak_vars\n\
  7904. export IPP_CFLAGS=$IPP_CFLAGS\n\
  7905. export IPP_LDFLAGS=$IPP_LDFLAGS\n\
  7906. export IPP_LIBS=$IPP_LIBS"
  7907. else
  7908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
  7909. printf "%s\n" "Skipping Intel IPP settings (not wanted)" >&6; }
  7910. fi
  7911. # Check whether --enable-android-mediacodec was given.
  7912. if test ${enable_android_mediacodec+y}
  7913. then :
  7914. enableval=$enable_android_mediacodec; if test "$enable_android_mediacodec" = "no"; then
  7915. ac_no_mediacodec=1
  7916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Android MediaCodec support is disabled... yes" >&5
  7917. printf "%s\n" "Checking if Android MediaCodec support is disabled... yes" >&6; }
  7918. fi
  7919. else $as_nop
  7920. case $target in
  7921. *android*)
  7922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AMediaCodec_createDecoderByType in -lmediandk" >&5
  7923. printf %s "checking for AMediaCodec_createDecoderByType in -lmediandk... " >&6; }
  7924. if test ${ac_cv_lib_mediandk_AMediaCodec_createDecoderByType+y}
  7925. then :
  7926. printf %s "(cached) " >&6
  7927. else $as_nop
  7928. ac_check_lib_save_LIBS=$LIBS
  7929. LIBS="-lmediandk $LIBS"
  7930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7931. /* end confdefs.h. */
  7932. /* Override any GCC internal prototype to avoid an error.
  7933. Use char because int might match the return type of a GCC
  7934. builtin and then its argument prototype would still apply. */
  7935. char AMediaCodec_createDecoderByType ();
  7936. int
  7937. main (void)
  7938. {
  7939. return AMediaCodec_createDecoderByType ();
  7940. ;
  7941. return 0;
  7942. }
  7943. _ACEOF
  7944. if ac_fn_c_try_link "$LINENO"
  7945. then :
  7946. ac_cv_lib_mediandk_AMediaCodec_createDecoderByType=yes
  7947. else $as_nop
  7948. ac_cv_lib_mediandk_AMediaCodec_createDecoderByType=no
  7949. fi
  7950. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7951. conftest$ac_exeext conftest.$ac_ext
  7952. LIBS=$ac_check_lib_save_LIBS
  7953. fi
  7954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mediandk_AMediaCodec_createDecoderByType" >&5
  7955. printf "%s\n" "$ac_cv_lib_mediandk_AMediaCodec_createDecoderByType" >&6; }
  7956. if test "x$ac_cv_lib_mediandk_AMediaCodec_createDecoderByType" = xyes
  7957. then :
  7958. ac_pjmedia_has_amediacodec=1 && LIBS="-lmediandk $LIBS"
  7959. fi
  7960. if test "x$ac_pjmedia_has_amediacodec" = "x1"; then
  7961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Android AMediaCodec library is available... yes" >&5
  7962. printf "%s\n" "Checking if Android AMediaCodec library is available... yes" >&6; }
  7963. printf "%s\n" "#define PJMEDIA_HAS_ANDROID_MEDIACODEC 1" >>confdefs.h
  7964. else
  7965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Android AMediaCodec library is available... no" >&5
  7966. printf "%s\n" "Checking if Android AMediaCodec library is available... no" >&6; }
  7967. fi
  7968. ;;
  7969. esac
  7970. fi
  7971. # Check whether --with-ssl was given.
  7972. if test ${with_ssl+y}
  7973. then :
  7974. withval=$with_ssl;
  7975. else $as_nop
  7976. with_ssl=no
  7977. fi
  7978. # Check whether --with-gnutls was given.
  7979. if test ${with_gnutls+y}
  7980. then :
  7981. withval=$with_gnutls;
  7982. else $as_nop
  7983. with_gnutls=no
  7984. fi
  7985. if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno" -a "x$with_gnutls" = "xno"; then
  7986. enable_ssl=no
  7987. fi
  7988. ac_ssl_has_aes_gcm=0
  7989. # Check whether --enable-darwin-ssl was given.
  7990. if test ${enable_darwin_ssl+y}
  7991. then :
  7992. enableval=$enable_darwin_ssl; if test "$enable_darwin_ssl" = "no"; then
  7993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL support is disabled... yes" >&5
  7994. printf "%s\n" "Checking if Darwin SSL support is disabled... yes" >&6; }
  7995. fi
  7996. else $as_nop
  7997. case $target in
  7998. *darwin*)
  7999. SAVED_CFLAGS="$CFLAGS"
  8000. CFLAGS="-Werror"
  8001. SAVED_LIBS="$LIBS"
  8002. LIBS="-framework Security"
  8003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8004. /* end confdefs.h. */
  8005. #include <Security/SecureTransport.h>
  8006. int
  8007. main (void)
  8008. {
  8009. if (__builtin_available(macOS 10.12, iOS 10.0, *)) {
  8010. SSLContextRef ssl_ctx;
  8011. SSLReHandshake(ssl_ctx);
  8012. }
  8013. ;
  8014. return 0;
  8015. }
  8016. _ACEOF
  8017. if ac_fn_c_try_compile "$LINENO"
  8018. then :
  8019. ac_ssl_backend=darwin
  8020. fi
  8021. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8022. CFLAGS="$SAVED_CFLAGS"
  8023. LIBS="$SAVED_LIBS"
  8024. if test "x$ac_ssl_backend" = "xdarwin"; then
  8025. printf "%s\n" "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
  8026. printf "%s\n" "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_DARWIN" >>confdefs.h
  8027. LIBS="$LIBS -framework Security"
  8028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL is available... yes" >&5
  8029. printf "%s\n" "Checking if Darwin SSL is available... yes" >&6; }
  8030. else
  8031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if Darwin SSL is available... no" >&5
  8032. printf "%s\n" "Checking if Darwin SSL is available... no" >&6; }
  8033. fi
  8034. ;;
  8035. esac
  8036. fi
  8037. # Check whether --enable-ssl was given.
  8038. if test ${enable_ssl+y}
  8039. then :
  8040. enableval=$enable_ssl;
  8041. if test "$enable_ssl" = "no"; then
  8042. ac_no_ssl=1
  8043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
  8044. printf "%s\n" "Checking if SSL support is disabled... yes" >&6; }
  8045. fi
  8046. else $as_nop
  8047. if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
  8048. CFLAGS="$CFLAGS -I$with_ssl/include"
  8049. CPPFLAGS="$CPPFLAGS -I$with_ssl/include"
  8050. LDFLAGS="$LDFLAGS -L$with_ssl/lib"
  8051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
  8052. printf "%s\n" "Using SSL prefix... $with_ssl" >&6; }
  8053. fi
  8054. if test "x$with_gnutls" = "xno"; then
  8055. # We still need to check for OpenSSL installations even if
  8056. # we find Darwin SSL above since DTLS requires OpenSSL.
  8057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
  8058. printf "%s\n" "checking for OpenSSL installations.." >&6; }
  8059. ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  8060. if test "x$ac_cv_header_openssl_ssl_h" = xyes
  8061. then :
  8062. openssl_h_present=1
  8063. fi
  8064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
  8065. printf %s "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
  8066. if test ${ac_cv_lib_crypto_ERR_load_BIO_strings+y}
  8067. then :
  8068. printf %s "(cached) " >&6
  8069. else $as_nop
  8070. ac_check_lib_save_LIBS=$LIBS
  8071. LIBS="-lcrypto $LIBS"
  8072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8073. /* end confdefs.h. */
  8074. /* Override any GCC internal prototype to avoid an error.
  8075. Use char because int might match the return type of a GCC
  8076. builtin and then its argument prototype would still apply. */
  8077. char ERR_load_BIO_strings ();
  8078. int
  8079. main (void)
  8080. {
  8081. return ERR_load_BIO_strings ();
  8082. ;
  8083. return 0;
  8084. }
  8085. _ACEOF
  8086. if ac_fn_c_try_link "$LINENO"
  8087. then :
  8088. ac_cv_lib_crypto_ERR_load_BIO_strings=yes
  8089. else $as_nop
  8090. ac_cv_lib_crypto_ERR_load_BIO_strings=no
  8091. fi
  8092. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8093. conftest$ac_exeext conftest.$ac_ext
  8094. LIBS=$ac_check_lib_save_LIBS
  8095. fi
  8096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
  8097. printf "%s\n" "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
  8098. if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes
  8099. then :
  8100. libcrypto_present=1 && LIBS="-lcrypto $LIBS"
  8101. else $as_nop
  8102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ERR_get_error in -lcrypto" >&5
  8103. printf %s "checking for ERR_get_error in -lcrypto... " >&6; }
  8104. if test ${ac_cv_lib_crypto_ERR_get_error+y}
  8105. then :
  8106. printf %s "(cached) " >&6
  8107. else $as_nop
  8108. ac_check_lib_save_LIBS=$LIBS
  8109. LIBS="-lcrypto $LIBS"
  8110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8111. /* end confdefs.h. */
  8112. /* Override any GCC internal prototype to avoid an error.
  8113. Use char because int might match the return type of a GCC
  8114. builtin and then its argument prototype would still apply. */
  8115. char ERR_get_error ();
  8116. int
  8117. main (void)
  8118. {
  8119. return ERR_get_error ();
  8120. ;
  8121. return 0;
  8122. }
  8123. _ACEOF
  8124. if ac_fn_c_try_link "$LINENO"
  8125. then :
  8126. ac_cv_lib_crypto_ERR_get_error=yes
  8127. else $as_nop
  8128. ac_cv_lib_crypto_ERR_get_error=no
  8129. fi
  8130. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8131. conftest$ac_exeext conftest.$ac_ext
  8132. LIBS=$ac_check_lib_save_LIBS
  8133. fi
  8134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_get_error" >&5
  8135. printf "%s\n" "$ac_cv_lib_crypto_ERR_get_error" >&6; }
  8136. if test "x$ac_cv_lib_crypto_ERR_get_error" = xyes
  8137. then :
  8138. libcrypto_present=1 && LIBS="-lcrypto $LIBS"
  8139. fi
  8140. fi
  8141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
  8142. printf %s "checking for SSL_CTX_new in -lssl... " >&6; }
  8143. if test ${ac_cv_lib_ssl_SSL_CTX_new+y}
  8144. then :
  8145. printf %s "(cached) " >&6
  8146. else $as_nop
  8147. ac_check_lib_save_LIBS=$LIBS
  8148. LIBS="-lssl $LIBS"
  8149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8150. /* end confdefs.h. */
  8151. /* Override any GCC internal prototype to avoid an error.
  8152. Use char because int might match the return type of a GCC
  8153. builtin and then its argument prototype would still apply. */
  8154. char SSL_CTX_new ();
  8155. int
  8156. main (void)
  8157. {
  8158. return SSL_CTX_new ();
  8159. ;
  8160. return 0;
  8161. }
  8162. _ACEOF
  8163. if ac_fn_c_try_link "$LINENO"
  8164. then :
  8165. ac_cv_lib_ssl_SSL_CTX_new=yes
  8166. else $as_nop
  8167. ac_cv_lib_ssl_SSL_CTX_new=no
  8168. fi
  8169. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8170. conftest$ac_exeext conftest.$ac_ext
  8171. LIBS=$ac_check_lib_save_LIBS
  8172. fi
  8173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
  8174. printf "%s\n" "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
  8175. if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
  8176. then :
  8177. libssl_present=1 && LIBS="-lssl $LIBS"
  8178. fi
  8179. if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
  8180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
  8181. printf "%s\n" "OpenSSL library found, SSL support enabled" >&6; }
  8182. # Check if SRTP should be compiled with OpenSSL
  8183. # support, to enable cryptos such as AES GCM.
  8184. # EVP_CIPHER_CTX is now opaque in OpenSSL 1.1.0, libsrtp 1.5.4 uses it as a transparent type.
  8185. # Update 2.7: our bundled libsrtp has been upgraded to 2.1.0,
  8186. # so we can omit EVP_CIPHER_CTX definition check now.
  8187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8188. /* end confdefs.h. */
  8189. #include <openssl/evp.h>
  8190. int
  8191. main (void)
  8192. {
  8193. EVP_CIPHER_CTX *ctx;EVP_aes_128_gcm();
  8194. ;
  8195. return 0;
  8196. }
  8197. _ACEOF
  8198. if ac_fn_c_try_compile "$LINENO"
  8199. then :
  8200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
  8201. printf %s "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
  8202. if test ${ac_cv_lib_crypto_EVP_aes_128_gcm+y}
  8203. then :
  8204. printf %s "(cached) " >&6
  8205. else $as_nop
  8206. ac_check_lib_save_LIBS=$LIBS
  8207. LIBS="-lcrypto $LIBS"
  8208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8209. /* end confdefs.h. */
  8210. /* Override any GCC internal prototype to avoid an error.
  8211. Use char because int might match the return type of a GCC
  8212. builtin and then its argument prototype would still apply. */
  8213. char EVP_aes_128_gcm ();
  8214. int
  8215. main (void)
  8216. {
  8217. return EVP_aes_128_gcm ();
  8218. ;
  8219. return 0;
  8220. }
  8221. _ACEOF
  8222. if ac_fn_c_try_link "$LINENO"
  8223. then :
  8224. ac_cv_lib_crypto_EVP_aes_128_gcm=yes
  8225. else $as_nop
  8226. ac_cv_lib_crypto_EVP_aes_128_gcm=no
  8227. fi
  8228. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8229. conftest$ac_exeext conftest.$ac_ext
  8230. LIBS=$ac_check_lib_save_LIBS
  8231. fi
  8232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
  8233. printf "%s\n" "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
  8234. if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes
  8235. then :
  8236. ac_ssl_has_aes_gcm=1
  8237. fi
  8238. fi
  8239. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8240. if test "x$ac_ssl_has_aes_gcm" = "x1"; then
  8241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL has AES GCM support, SRTP will use OpenSSL" >&5
  8242. printf "%s\n" "OpenSSL has AES GCM support, SRTP will use OpenSSL" >&6; }
  8243. else
  8244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL AES GCM support not found, SRTP will only support AES CM cryptos" >&5
  8245. printf "%s\n" "OpenSSL AES GCM support not found, SRTP will only support AES CM cryptos" >&6; }
  8246. fi
  8247. if test "x$ac_ssl_backend" = "x"; then
  8248. # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
  8249. #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
  8250. printf "%s\n" "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
  8251. printf "%s\n" "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_OPENSSL" >>confdefs.h
  8252. ac_ssl_backend="openssl"
  8253. fi
  8254. else
  8255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found **" >&5
  8256. printf "%s\n" "** OpenSSL libraries not found **" >&6; }
  8257. fi
  8258. fi
  8259. if test "x$ac_ssl_backend" = "x"; then
  8260. if test "x$with_gnutls" != "xno" -a "x$with_gnutls" != "x"; then
  8261. CFLAGS="$CFLAGS -I$with_gnutls/include"
  8262. LDFLAGS="$LDFLAGS -L$with_gnutls/lib"
  8263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using GnuTLS prefix... $with_gnutls" >&5
  8264. printf "%s\n" "Using GnuTLS prefix... $with_gnutls" >&6; }
  8265. fi
  8266. for ac_prog in $host-pkg-config pkg-config "python pkgconfig.py"
  8267. do
  8268. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8269. set dummy $ac_prog; ac_word=$2
  8270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8271. printf %s "checking for $ac_word... " >&6; }
  8272. if test ${ac_cv_prog_PKG_CONFIG+y}
  8273. then :
  8274. printf %s "(cached) " >&6
  8275. else $as_nop
  8276. if test -n "$PKG_CONFIG"; then
  8277. ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
  8278. else
  8279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8280. for as_dir in $PATH
  8281. do
  8282. IFS=$as_save_IFS
  8283. case $as_dir in #(((
  8284. '') as_dir=./ ;;
  8285. */) ;;
  8286. *) as_dir=$as_dir/ ;;
  8287. esac
  8288. for ac_exec_ext in '' $ac_executable_extensions; do
  8289. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8290. ac_cv_prog_PKG_CONFIG="$ac_prog"
  8291. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8292. break 2
  8293. fi
  8294. done
  8295. done
  8296. IFS=$as_save_IFS
  8297. fi
  8298. fi
  8299. PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
  8300. if test -n "$PKG_CONFIG"; then
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  8302. printf "%s\n" "$PKG_CONFIG" >&6; }
  8303. else
  8304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8305. printf "%s\n" "no" >&6; }
  8306. fi
  8307. test -n "$PKG_CONFIG" && break
  8308. done
  8309. test -n "$PKG_CONFIG" || PKG_CONFIG="none"
  8310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for GnuTLS installations.." >&5
  8311. printf "%s\n" "checking for GnuTLS installations.." >&6; }
  8312. ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
  8313. if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
  8314. then :
  8315. gnutls_h_present=1
  8316. fi
  8317. if test "$PKG_CONFIG" != "none"; then
  8318. if $PKG_CONFIG --exists gnutls; then
  8319. LIBS="$LIBS `$PKG_CONFIG --libs gnutls`"
  8320. libgnutls_present=1
  8321. else
  8322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_certificate_set_x509_system_trust in -lgnutls" >&5
  8323. printf %s "checking for gnutls_certificate_set_x509_system_trust in -lgnutls... " >&6; }
  8324. if test ${ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust+y}
  8325. then :
  8326. printf %s "(cached) " >&6
  8327. else $as_nop
  8328. ac_check_lib_save_LIBS=$LIBS
  8329. LIBS="-lgnutls $LIBS"
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. /* Override any GCC internal prototype to avoid an error.
  8333. Use char because int might match the return type of a GCC
  8334. builtin and then its argument prototype would still apply. */
  8335. char gnutls_certificate_set_x509_system_trust ();
  8336. int
  8337. main (void)
  8338. {
  8339. return gnutls_certificate_set_x509_system_trust ();
  8340. ;
  8341. return 0;
  8342. }
  8343. _ACEOF
  8344. if ac_fn_c_try_link "$LINENO"
  8345. then :
  8346. ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=yes
  8347. else $as_nop
  8348. ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=no
  8349. fi
  8350. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8351. conftest$ac_exeext conftest.$ac_ext
  8352. LIBS=$ac_check_lib_save_LIBS
  8353. fi
  8354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&5
  8355. printf "%s\n" "$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&6; }
  8356. if test "x$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" = xyes
  8357. then :
  8358. libgnutls_present=1 &&
  8359. LIBS="$LIBS -lgnutls"
  8360. fi
  8361. fi
  8362. else
  8363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, disabling gnutls. ***" >&5
  8364. printf "%s\n" "*** Warning: neither pkg-config nor python is available, disabling gnutls. ***" >&6; }
  8365. fi
  8366. if test "x$gnutls_h_present" = "x1" -a "x$libgnutls_present" = "x1"; then
  8367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GnuTLS library found, SSL support enabled" >&5
  8368. printf "%s\n" "GnuTLS library found, SSL support enabled" >&6; }
  8369. printf "%s\n" "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
  8370. printf "%s\n" "#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_GNUTLS" >>confdefs.h
  8371. ac_ssl_backend="gnutls"
  8372. else
  8373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** No GnuTLS libraries found, disabling SSL support **" >&5
  8374. printf "%s\n" "** No GnuTLS libraries found, disabling SSL support **" >&6; }
  8375. fi
  8376. fi
  8377. fi
  8378. # Check whether --with-opencore-amrnb was given.
  8379. if test ${with_opencore_amrnb+y}
  8380. then :
  8381. withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5
  8382. else $as_nop
  8383. true;
  8384. fi
  8385. # Check whether --with-opencore-amr was given.
  8386. if test ${with_opencore_amr+y}
  8387. then :
  8388. withval=$with_opencore_amr;
  8389. else $as_nop
  8390. with_opencore_amr=no
  8391. fi
  8392. if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then
  8393. enable_opencore_amr=no
  8394. fi
  8395. # Check whether --with-opencore-amrwbenc was given.
  8396. if test ${with_opencore_amrwbenc+y}
  8397. then :
  8398. withval=$with_opencore_amrwbenc;
  8399. else $as_nop
  8400. with_opencore_amrwbenc=no
  8401. fi
  8402. if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then
  8403. enable_opencore_amrwbenc=no
  8404. fi
  8405. # Check whether --enable-opencore_amr was given.
  8406. if test ${enable_opencore_amr+y}
  8407. then :
  8408. enableval=$enable_opencore_amr;
  8409. if test "$enable_opencore_amr" = "no"; then
  8410. ac_no_opencore_amrnb=1
  8411. ac_no_opencore_amrwb=1
  8412. printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
  8413. printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
  8414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR support is disabled... yes" >&5
  8415. printf "%s\n" "Checking if OpenCORE AMR support is disabled... yes" >&6; }
  8416. fi
  8417. else $as_nop
  8418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR installations.." >&5
  8419. printf "%s\n" "checking for OpenCORE AMR installations.." >&6; }
  8420. if test "x$with_opencore_amr" != "xno" -a "x$with_opencore_amr" != "x"; then
  8421. CFLAGS="$CFLAGS -I$with_opencore_amr/include"
  8422. CPPFLAGS="$CPPFLAGS -I$with_opencore_amr/include"
  8423. LDFLAGS="$LDFLAGS -L$with_opencore_amr/lib"
  8424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR prefix... $with_opencore_amr" >&5
  8425. printf "%s\n" "Using OpenCORE AMR prefix... $with_opencore_amr" >&6; }
  8426. fi
  8427. if test "x$with_opencore_amrwbenc" != "xno" -a "x$with_opencore_amrwbenc" != "x"; then
  8428. CFLAGS="$CFLAGS -I$with_opencore_amrwbenc/include"
  8429. CPPFLAGS="$CPPFLAGS -I$with_opencore_amrwbenc/include"
  8430. LDFLAGS="$LDFLAGS -L$with_opencore_amrwbenc/lib"
  8431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&5
  8432. printf "%s\n" "Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&6; }
  8433. fi
  8434. ac_fn_c_check_header_compile "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
  8435. if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes
  8436. then :
  8437. opencore_amrnb_h_present=1
  8438. fi
  8439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
  8440. printf %s "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
  8441. if test ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+y}
  8442. then :
  8443. printf %s "(cached) " >&6
  8444. else $as_nop
  8445. ac_check_lib_save_LIBS=$LIBS
  8446. LIBS="-lopencore-amrnb $LIBS"
  8447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8448. /* end confdefs.h. */
  8449. /* Override any GCC internal prototype to avoid an error.
  8450. Use char because int might match the return type of a GCC
  8451. builtin and then its argument prototype would still apply. */
  8452. char Encoder_Interface_init ();
  8453. int
  8454. main (void)
  8455. {
  8456. return Encoder_Interface_init ();
  8457. ;
  8458. return 0;
  8459. }
  8460. _ACEOF
  8461. if ac_fn_c_try_link "$LINENO"
  8462. then :
  8463. ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
  8464. else $as_nop
  8465. ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
  8466. fi
  8467. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8468. conftest$ac_exeext conftest.$ac_ext
  8469. LIBS=$ac_check_lib_save_LIBS
  8470. fi
  8471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
  8472. printf "%s\n" "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
  8473. if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes
  8474. then :
  8475. opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
  8476. fi
  8477. if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
  8478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
  8479. printf "%s\n" "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
  8480. printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
  8481. else
  8482. ac_no_opencore_amrnb=1
  8483. printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
  8484. fi
  8485. ac_fn_c_check_header_compile "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default"
  8486. if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes
  8487. then :
  8488. opencore_amrwb_enc_h_present=1
  8489. fi
  8490. ac_fn_c_check_header_compile "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default"
  8491. if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes
  8492. then :
  8493. opencore_amrwb_dec_h_present=1
  8494. fi
  8495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5
  8496. printf %s "checking for D_IF_init in -lopencore-amrwb... " >&6; }
  8497. if test ${ac_cv_lib_opencore_amrwb_D_IF_init+y}
  8498. then :
  8499. printf %s "(cached) " >&6
  8500. else $as_nop
  8501. ac_check_lib_save_LIBS=$LIBS
  8502. LIBS="-lopencore-amrwb $LIBS"
  8503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8504. /* end confdefs.h. */
  8505. /* Override any GCC internal prototype to avoid an error.
  8506. Use char because int might match the return type of a GCC
  8507. builtin and then its argument prototype would still apply. */
  8508. char D_IF_init ();
  8509. int
  8510. main (void)
  8511. {
  8512. return D_IF_init ();
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. if ac_fn_c_try_link "$LINENO"
  8518. then :
  8519. ac_cv_lib_opencore_amrwb_D_IF_init=yes
  8520. else $as_nop
  8521. ac_cv_lib_opencore_amrwb_D_IF_init=no
  8522. fi
  8523. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8524. conftest$ac_exeext conftest.$ac_ext
  8525. LIBS=$ac_check_lib_save_LIBS
  8526. fi
  8527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5
  8528. printf "%s\n" "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; }
  8529. if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes
  8530. then :
  8531. opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb"
  8532. fi
  8533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for E_IF_init in -lvo-amrwbenc" >&5
  8534. printf %s "checking for E_IF_init in -lvo-amrwbenc... " >&6; }
  8535. if test ${ac_cv_lib_vo_amrwbenc_E_IF_init+y}
  8536. then :
  8537. printf %s "(cached) " >&6
  8538. else $as_nop
  8539. ac_check_lib_save_LIBS=$LIBS
  8540. LIBS="-lvo-amrwbenc $LIBS"
  8541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8542. /* end confdefs.h. */
  8543. /* Override any GCC internal prototype to avoid an error.
  8544. Use char because int might match the return type of a GCC
  8545. builtin and then its argument prototype would still apply. */
  8546. char E_IF_init ();
  8547. int
  8548. main (void)
  8549. {
  8550. return E_IF_init ();
  8551. ;
  8552. return 0;
  8553. }
  8554. _ACEOF
  8555. if ac_fn_c_try_link "$LINENO"
  8556. then :
  8557. ac_cv_lib_vo_amrwbenc_E_IF_init=yes
  8558. else $as_nop
  8559. ac_cv_lib_vo_amrwbenc_E_IF_init=no
  8560. fi
  8561. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8562. conftest$ac_exeext conftest.$ac_ext
  8563. LIBS=$ac_check_lib_save_LIBS
  8564. fi
  8565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vo_amrwbenc_E_IF_init" >&5
  8566. printf "%s\n" "$ac_cv_lib_vo_amrwbenc_E_IF_init" >&6; }
  8567. if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes
  8568. then :
  8569. opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc"
  8570. fi
  8571. if test "x$opencore_amrwb_enc_h_present" = "x1" -a "x$opencore_amrwb_dec_h_present" = "x1" -a "x$opencore_amrwb_enc_present" = "x1" -a "x$opencore_amrwb_dec_present" = "x1"; then
  8572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-WB library found, AMR-WB support enabled" >&5
  8573. printf "%s\n" "OpenCORE AMR-WB library found, AMR-WB support enabled" >&6; }
  8574. printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 1" >>confdefs.h
  8575. else
  8576. ac_no_opencore_amrwb=1
  8577. printf "%s\n" "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
  8578. fi
  8579. fi
  8580. # Check whether --with-silk was given.
  8581. if test ${with_silk+y}
  8582. then :
  8583. withval=$with_silk;
  8584. else $as_nop
  8585. with_silk=no
  8586. fi
  8587. if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then
  8588. enable_silk=no
  8589. fi
  8590. # Check whether --enable-silk was given.
  8591. if test ${enable_silk+y}
  8592. then :
  8593. enableval=$enable_silk;
  8594. if test "$enable_silk" = "no"; then
  8595. ac_no_silk=1
  8596. printf "%s\n" "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
  8597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5
  8598. printf "%s\n" "Checking if SILK support is disabled... yes" >&6; }
  8599. fi
  8600. else $as_nop
  8601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5
  8602. printf "%s\n" "checking for SILK installations.." >&6; }
  8603. if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then
  8604. CFLAGS="$CFLAGS -I$with_silk/interface"
  8605. CPPFLAGS="$CPPFLAGS -I$with_silk/interface"
  8606. LDFLAGS="$LDFLAGS -L$with_silk"
  8607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5
  8608. printf "%s\n" "Using SILK prefix... $with_silk" >&6; }
  8609. fi
  8610. ac_fn_c_check_header_compile "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default"
  8611. if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes
  8612. then :
  8613. silk_h_present=1
  8614. fi
  8615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5
  8616. printf %s "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; }
  8617. if test ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+y}
  8618. then :
  8619. printf %s "(cached) " >&6
  8620. else $as_nop
  8621. ac_check_lib_save_LIBS=$LIBS
  8622. LIBS="-lSKP_SILK_SDK $LIBS"
  8623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8624. /* end confdefs.h. */
  8625. /* Override any GCC internal prototype to avoid an error.
  8626. Use char because int might match the return type of a GCC
  8627. builtin and then its argument prototype would still apply. */
  8628. char SKP_Silk_SDK_get_version ();
  8629. int
  8630. main (void)
  8631. {
  8632. return SKP_Silk_SDK_get_version ();
  8633. ;
  8634. return 0;
  8635. }
  8636. _ACEOF
  8637. if ac_fn_c_try_link "$LINENO"
  8638. then :
  8639. ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes
  8640. else $as_nop
  8641. ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no
  8642. fi
  8643. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8644. conftest$ac_exeext conftest.$ac_ext
  8645. LIBS=$ac_check_lib_save_LIBS
  8646. fi
  8647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5
  8648. printf "%s\n" "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; }
  8649. if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes
  8650. then :
  8651. silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"
  8652. fi
  8653. if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then
  8654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5
  8655. printf "%s\n" "SILK library found, SILK support enabled" >&6; }
  8656. printf "%s\n" "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h
  8657. else
  8658. ac_no_silk=1
  8659. printf "%s\n" "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
  8660. fi
  8661. fi
  8662. if test "x$ac_cross_compile" != "x" -a "x$with_opus" = "xno"; then
  8663. enable_opus=no
  8664. fi
  8665. # Check whether --with-opus was given.
  8666. if test ${with_opus+y}
  8667. then :
  8668. withval=$with_opus;
  8669. else $as_nop
  8670. with_opus=no
  8671. fi
  8672. # Check whether --enable-opus was given.
  8673. if test ${enable_opus+y}
  8674. then :
  8675. enableval=$enable_opus;
  8676. if test "$enable_opus" = "no"; then
  8677. ac_no_opus=1
  8678. printf "%s\n" "#define PJMEDIA_HAS_OPUS_CODEC 0" >>confdefs.h
  8679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if OPUS support is disabled... yes" >&5
  8680. printf "%s\n" "Checking if OPUS support is disabled... yes" >&6; }
  8681. fi
  8682. else $as_nop
  8683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: checking for OPUS installations.." >&5
  8684. printf "%s\n" "checking for OPUS installations.." >&6; }
  8685. if test "x$with_opus" != "xno" -a "x$with_opus" != "x"; then
  8686. CFLAGS="$CFLAGS -I$with_opus/include"
  8687. CPPFLAGS="$CPPFLAGS -I$with_opus/include"
  8688. LDFLAGS="$LDFLAGS -L$with_opus/lib"
  8689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OPUS prefix... $with_opus" >&5
  8690. printf "%s\n" "Using OPUS prefix... $with_opus" >&6; }
  8691. fi
  8692. ac_fn_c_check_header_compile "$LINENO" "opus/opus.h" "ac_cv_header_opus_opus_h" "$ac_includes_default"
  8693. if test "x$ac_cv_header_opus_opus_h" = xyes
  8694. then :
  8695. opus_h_present=1
  8696. fi
  8697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opus_repacketizer_get_size in -lopus" >&5
  8698. printf %s "checking for opus_repacketizer_get_size in -lopus... " >&6; }
  8699. if test ${ac_cv_lib_opus_opus_repacketizer_get_size+y}
  8700. then :
  8701. printf %s "(cached) " >&6
  8702. else $as_nop
  8703. ac_check_lib_save_LIBS=$LIBS
  8704. LIBS="-lopus $LIBS"
  8705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8706. /* end confdefs.h. */
  8707. /* Override any GCC internal prototype to avoid an error.
  8708. Use char because int might match the return type of a GCC
  8709. builtin and then its argument prototype would still apply. */
  8710. char opus_repacketizer_get_size ();
  8711. int
  8712. main (void)
  8713. {
  8714. return opus_repacketizer_get_size ();
  8715. ;
  8716. return 0;
  8717. }
  8718. _ACEOF
  8719. if ac_fn_c_try_link "$LINENO"
  8720. then :
  8721. ac_cv_lib_opus_opus_repacketizer_get_size=yes
  8722. else $as_nop
  8723. ac_cv_lib_opus_opus_repacketizer_get_size=no
  8724. fi
  8725. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8726. conftest$ac_exeext conftest.$ac_ext
  8727. LIBS=$ac_check_lib_save_LIBS
  8728. fi
  8729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opus_opus_repacketizer_get_size" >&5
  8730. printf "%s\n" "$ac_cv_lib_opus_opus_repacketizer_get_size" >&6; }
  8731. if test "x$ac_cv_lib_opus_opus_repacketizer_get_size" = xyes
  8732. then :
  8733. opus_present=1 && LIBS="-lopus $LIBS"
  8734. fi
  8735. if test "x$opus_h_present" = "x1" -a "x$opus_present" = "x1"; then
  8736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OPUS library found, OPUS support enabled" >&5
  8737. printf "%s\n" "OPUS library found, OPUS support enabled" >&6; }
  8738. printf "%s\n" "#define PJMEDIA_HAS_OPUS_CODEC 1" >>confdefs.h
  8739. else
  8740. ac_no_opus=1
  8741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OPUS library not found, OPUS support disabled" >&5
  8742. printf "%s\n" "OPUS library not found, OPUS support disabled" >&6; }
  8743. printf "%s\n" "#define PJMEDIA_HAS_OPUS_CODEC 0" >>confdefs.h
  8744. fi
  8745. fi
  8746. # Check whether --with-bcg729 was given.
  8747. if test ${with_bcg729+y}
  8748. then :
  8749. withval=$with_bcg729;
  8750. else $as_nop
  8751. with_bcg729=no
  8752. fi
  8753. if test "x$ac_cross_compile" != "x" -a "x$with_bcg729" = "xno"; then
  8754. enable_bcg729=no
  8755. fi
  8756. # Check whether --enable-bcg729 was given.
  8757. if test ${enable_bcg729+y}
  8758. then :
  8759. enableval=$enable_bcg729;
  8760. if test "$enable_bcg729" = "no"; then
  8761. ac_no_bcg729=1
  8762. printf "%s\n" "#define PJMEDIA_HAS_BCG729 0" >>confdefs.h
  8763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if bcg729 is disabled... yes" >&5
  8764. printf "%s\n" "Checking if bcg729 is disabled... yes" >&6; }
  8765. fi
  8766. else $as_nop
  8767. if test "x$with_bcg729" != "xno" -a "x$with_bcg729" != "x"; then
  8768. BCG729_PREFIX=$with_bcg729
  8769. BCG729_CFLAGS="-I$BCG729_PREFIX/include"
  8770. BCG729_LDFLAGS="-L$BCG729_PREFIX/lib"
  8771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using bcg729 prefix... $with_bcg729" >&5
  8772. printf "%s\n" "Using bcg729 prefix... $with_bcg729" >&6; }
  8773. else
  8774. BCG729_CFLAGS=""
  8775. BCG729_LDFLAGS=""
  8776. fi
  8777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bcg729 usability" >&5
  8778. printf %s "checking bcg729 usability... " >&6; }
  8779. BCG729_LIBS="-lbcg729"
  8780. SAVED_LIBS="$LIBS"
  8781. SAVED_LDFLAGS="$LDFLAGS"
  8782. SAVED_CFLAGS="$CFLAGS"
  8783. LIBS="$BCG729_LIBS $LIBS"
  8784. LDFLAGS="$BCG729_LDFLAGS $LDFLAGS"
  8785. CFLAGS="$BCG729_CFLAGS $CFLAGS"
  8786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8787. /* end confdefs.h. */
  8788. #include <bcg729/encoder.h>
  8789. #include <bcg729/decoder.h>
  8790. int
  8791. main (void)
  8792. {
  8793. initBcg729EncoderChannel(0);
  8794. ;
  8795. return 0;
  8796. }
  8797. _ACEOF
  8798. if ac_fn_c_try_link "$LINENO"
  8799. then :
  8800. printf "%s\n" "#define PJMEDIA_HAS_BCG729 1" >>confdefs.h
  8801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8802. printf "%s\n" "yes" >&6; }
  8803. else $as_nop
  8804. ac_no_bcg729=1
  8805. printf "%s\n" "#define PJMEDIA_HAS_BCG729 0" >>confdefs.h
  8806. LIBS="$SAVED_LIBS"
  8807. LDFLAGS="$SAVED_LDFLAGS"
  8808. CFLAGS="$SAVED_CFLAGS"
  8809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8810. printf "%s\n" "no" >&6; }
  8811. fi
  8812. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8813. conftest$ac_exeext conftest.$ac_ext
  8814. fi
  8815. # Check whether --with-lyra was given.
  8816. if test ${with_lyra+y}
  8817. then :
  8818. withval=$with_lyra;
  8819. else $as_nop
  8820. with_lyra=no
  8821. fi
  8822. if test "x$ac_cross_compile" != "x" -a "x$with_lyra" = "xno"; then
  8823. enable_lyra=no
  8824. fi
  8825. # Check whether --enable-lyra was given.
  8826. if test ${enable_lyra+y}
  8827. then :
  8828. enableval=$enable_lyra;
  8829. if test "$enable_lyra" = "no"; then
  8830. ac_no_lyra_codec=1
  8831. printf "%s\n" "#define PJMEDIA_HAS_LYRA_CODEC 0" >>confdefs.h
  8832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if lyra is disabled... yes" >&5
  8833. printf "%s\n" "Checking if lyra is disabled... yes" >&6; }
  8834. fi
  8835. else $as_nop
  8836. if test "x$with_lyra" != "xno" -a "x$with_lyra" != "x"; then
  8837. LYRA_PREFIX=$with_lyra
  8838. LYRA_CPPFLAGS="-DGLOG_DEPRECATED=__attribute__((deprecated)) -DGLOG_EXPORT=__attribute__((visibility(\"default\"))) -DGLOG_NO_EXPORT=__attribute__((visibility(\"default\")))"
  8839. LYRA_CXXFLAGS="-std=c++17 -Wno-deprecated-builtins -I$LYRA_PREFIX/include/com_google_absl -I$LYRA_PREFIX/include/gulrak_filesystem -I$LYRA_PREFIX/include/com_google_glog/src -I$LYRA_PREFIX"
  8840. LYRA_LDFLAGS="-L$LYRA_PREFIX/lib"
  8841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using lyra prefix... $with_lyra" >&5
  8842. printf "%s\n" "Using lyra prefix... $with_lyra" >&6; }
  8843. else
  8844. LYRA_CXXFLAGS=""
  8845. LYRA_LDFLAGS=""
  8846. fi
  8847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lyra usability" >&5
  8848. printf %s "checking lyra usability... " >&6; }
  8849. LYRA_LIBS="-llyra"
  8850. SAVED_LIBS="$LIBS"
  8851. SAVED_LDFLAGS="$LDFLAGS"
  8852. SAVED_CXXFLAGS="$CXXFLAGS"
  8853. SAVED_CPPFLAGS="$CPPFLAGS"
  8854. LIBS="$LYRA_LIBS $LIBS"
  8855. LDFLAGS="$LYRA_LDFLAGS $LDFLAGS"
  8856. CXXFLAGS="$LYRA_CXXFLAGS $CXXFLAGS"
  8857. CPPFLAGS="$LYRA_CPPFLAGS $CPPFLAGS"
  8858. ac_ext=cpp
  8859. ac_cpp='$CXXCPP $CPPFLAGS'
  8860. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8861. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8862. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8864. /* end confdefs.h. */
  8865. #include "lyra_decoder.h"
  8866. int
  8867. main (void)
  8868. {
  8869. std::unique_ptr<chromemedia::codec::LyraDecoder> dec = chromemedia::codec::LyraDecoder::Create(8000,1,"");
  8870. ;
  8871. return 0;
  8872. }
  8873. _ACEOF
  8874. if ac_fn_cxx_try_link "$LINENO"
  8875. then :
  8876. ac_lyra_model_path="$LYRA_PREFIX/model_coeffs"
  8877. printf "%s\n" "#define PJMEDIA_HAS_LYRA_CODEC 1" >>confdefs.h
  8878. LYRA_CPPFLAGS="'-DGLOG_DEPRECATED=__attribute__((deprecated))' '-DGLOG_EXPORT=__attribute__((visibility(\"default\")))' '-DGLOG_NO_EXPORT=__attribute__((visibility(\"default\")))'"
  8879. CXXFLAGS="$LYRA_CPPFLAGS $CXXFLAGS"
  8880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8881. printf "%s\n" "yes" >&6; }
  8882. else $as_nop
  8883. ac_no_lyra_codec=1
  8884. LIBS="$SAVED_LIBS"
  8885. LDFLAGS="$SAVED_LDFLAGS"
  8886. CXXFLAGS="$SAVED_CXXFLAGS"
  8887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8888. printf "%s\n" "no" >&6; }
  8889. fi
  8890. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8891. conftest$ac_exeext conftest.$ac_ext
  8892. ac_ext=c
  8893. ac_cpp='$CPP $CPPFLAGS'
  8894. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8895. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8896. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8897. CPPFLAGS="$SAVED_CPPFLAGS"
  8898. fi
  8899. # Check whether --enable-libsrtp was given.
  8900. if test ${enable_libsrtp+y}
  8901. then :
  8902. enableval=$enable_libsrtp; if test "$enable_libsrtp" = "no"; then
  8903. ac_no_srtp=1
  8904. CFLAGS="$CFLAGS -DPJMEDIA_HAS_SRTP=0"
  8905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsrtp is disabled...yes" >&5
  8906. printf "%s\n" "Checking if libsrtp is disabled...yes" >&6; }
  8907. fi
  8908. else $as_nop
  8909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libsrtp is disabled...no" >&5
  8910. printf "%s\n" "Checking if libsrtp is disabled...no" >&6; }
  8911. fi
  8912. # Check whether --enable-libyuv was given.
  8913. if test ${enable_libyuv+y}
  8914. then :
  8915. enableval=$enable_libyuv; if test "$enable_libyuv" = "no"; then
  8916. ac_no_yuv=1
  8917. printf "%s\n" "#define PJMEDIA_HAS_LIBYUV 0" >>confdefs.h
  8918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...yes" >&5
  8919. printf "%s\n" "Checking if libyuv is disabled...yes" >&6; }
  8920. fi
  8921. else $as_nop
  8922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...no" >&5
  8923. printf "%s\n" "Checking if libyuv is disabled...no" >&6; }
  8924. fi
  8925. # Check whether --enable-libwebrtc was given.
  8926. if test ${enable_libwebrtc+y}
  8927. then :
  8928. enableval=$enable_libwebrtc; if test "$enable_libwebrtc" = "no"; then
  8929. ac_no_webrtc=1
  8930. printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC 0" >>confdefs.h
  8931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc is disabled...yes" >&5
  8932. printf "%s\n" "Checking if libwebrtc is disabled...yes" >&6; }
  8933. fi
  8934. else $as_nop
  8935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc is disabled...no" >&5
  8936. printf "%s\n" "Checking if libwebrtc is disabled...no" >&6; }
  8937. case $target in
  8938. *-apple-darwin_ios*)
  8939. case $target in
  8940. arm64*)
  8941. ac_webrtc_instset=neon
  8942. ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
  8943. ;;
  8944. *arm*)
  8945. ac_webrtc_instset=neon
  8946. ;;
  8947. *)
  8948. ac_webrtc_instset=sse2
  8949. ;;
  8950. esac
  8951. ;;
  8952. *android*)
  8953. case $TARGET_ABI in
  8954. armeabi-v7a)
  8955. ac_webrtc_instset=neon
  8956. ac_webrtc_cflags="-mfloat-abi=softfp -mfpu=neon"
  8957. ;;
  8958. armeabi)
  8959. ac_webrtc_instset=neon
  8960. ac_webrtc_cflags="-mthumb -mfloat-abi=softfp -mfpu=neon -march=armv7"
  8961. ;;
  8962. arm64*)
  8963. ac_webrtc_instset=neon
  8964. ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
  8965. ;;
  8966. mips64*)
  8967. ac_webrtc_instset=generic
  8968. ;;
  8969. mips*)
  8970. ac_webrtc_instset=mips
  8971. ;;
  8972. x86*)
  8973. ac_webrtc_instset=sse2
  8974. ;;
  8975. *)
  8976. ac_webrtc_instset=generic
  8977. ;;
  8978. esac
  8979. ;;
  8980. *mingw* | *cygw*)
  8981. ac_webrtc_instset=sse2
  8982. ac_webrtc_cflags="-msse2"
  8983. ;;
  8984. *win32* | *w32* | *darwin* | *linux*)
  8985. case $target in
  8986. armv7l*gnueabihf)
  8987. ac_webrtc_instset=neon
  8988. ac_webrtc_cflags="-DWEBRTC_ARCH_ARM_V7 -mfloat-abi=hard -mfpu=neon"
  8989. ;;
  8990. arm-apple-darwin* | aarch64*)
  8991. ac_webrtc_instset=neon
  8992. ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
  8993. ;;
  8994. *)
  8995. ac_webrtc_instset=sse2
  8996. ;;
  8997. esac
  8998. ;;
  8999. *)
  9000. ;;
  9001. esac
  9002. fi
  9003. # Check whether --enable-libwebrtc_aec3 was given.
  9004. if test ${enable_libwebrtc_aec3+y}
  9005. then :
  9006. enableval=$enable_libwebrtc_aec3;
  9007. if test "$enable_libwebrtc_aec3" = "yes"; then
  9008. # Test if we can build WebRtc AEC3
  9009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if WebRtc AEC3 can be compiled with C++17" >&5
  9010. printf %s "checking if WebRtc AEC3 can be compiled with C++17... " >&6; }
  9011. SAVED_CXXFLAGS="$CXXFLAGS"
  9012. CXXFLAGS="$CXXFLAGS -std=c++17"
  9013. ac_ext=cpp
  9014. ac_cpp='$CXXCPP $CPPFLAGS'
  9015. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9016. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9017. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9019. /* end confdefs.h. */
  9020. int
  9021. main (void)
  9022. {
  9023. ;
  9024. return 0;
  9025. }
  9026. _ACEOF
  9027. if ac_fn_cxx_try_link "$LINENO"
  9028. then :
  9029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9030. printf "%s\n" "yes" >&6; }
  9031. LD="$CXX"
  9032. else $as_nop
  9033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9034. printf "%s\n" "no" >&6; }
  9035. CXXFLAGS="$SAVED_CXXFLAGS"
  9036. ac_no_webrtc_aec3=1
  9037. printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC_AEC3 0" >>confdefs.h
  9038. fi
  9039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9040. conftest$ac_exeext conftest.$ac_ext
  9041. ac_ext=c
  9042. ac_cpp='$CPP $CPPFLAGS'
  9043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9046. case $target in
  9047. *-apple-darwin_ios*)
  9048. case $target in
  9049. arm64*)
  9050. ac_webrtc_aec3_instset=neon
  9051. ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM64"
  9052. ;;
  9053. *arm*)
  9054. ac_webrtc_aec3_instset=neon
  9055. ;;
  9056. *)
  9057. ac_webrtc_aec3_instset=sse2
  9058. ;;
  9059. esac
  9060. ac_webrtc_aec3_cflags+=" -DWEBRTC_IOS=1"
  9061. ;;
  9062. *android*)
  9063. case $TARGET_ABI in
  9064. armeabi-v7a)
  9065. ac_webrtc_aec3_instset=neon
  9066. ac_webrtc_aec3_cflags="-mfloat-abi=softfp -mfpu=neon"
  9067. ;;
  9068. armeabi)
  9069. ac_webrtc_aec3_instset=neon
  9070. ac_webrtc_aec3_cflags="-mthumb -mfloat-abi=softfp -mfpu=neon -march=armv7"
  9071. ;;
  9072. arm64*)
  9073. ac_webrtc_aec3_instset=neon
  9074. ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM64"
  9075. ;;
  9076. x86*)
  9077. ac_webrtc_aec3_instset=sse2
  9078. ;;
  9079. esac
  9080. ac_webrtc_aec3_cflags+=" -DWEBRTC_ANDROID=1"
  9081. ;;
  9082. *mingw* | *cygw*)
  9083. ac_webrtc_aec3_instset=sse2
  9084. ac_webrtc_aec3_cflags="-msse2"
  9085. ;;
  9086. *win32* | *w32* | *darwin* | *linux*)
  9087. case $target in
  9088. armv7l*gnueabihf)
  9089. ac_webrtc_aec3_instset=neon
  9090. ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM_V7 -mfloat-abi=hard -mfpu=neon"
  9091. ;;
  9092. arm-apple-darwin* | aarch64*)
  9093. ac_webrtc_aec3_instset=neon
  9094. ac_webrtc_aec3_cflags="-DWEBRTC_ARCH_ARM64"
  9095. ;;
  9096. *)
  9097. ac_webrtc_aec3_instset=sse2
  9098. ;;
  9099. esac
  9100. case $target in
  9101. *darwin*)
  9102. ac_webrtc_aec3_cflags+=" -DWEBRTC_MAC=1"
  9103. ;;
  9104. *linux*)
  9105. ac_webrtc_aec3_cflags+=" -DWEBRTC_LINUX=1"
  9106. ;;
  9107. esac
  9108. ;;
  9109. *)
  9110. ;;
  9111. esac
  9112. ac_webrtc_aec3_cflags+=" -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_POSIX=1"
  9113. else
  9114. ac_no_webrtc_aec3=1
  9115. printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC_AEC3 0" >>confdefs.h
  9116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc-aec3 is enabled...no" >&5
  9117. printf "%s\n" "Checking if libwebrtc-aec3 is enabled...no" >&6; }
  9118. fi
  9119. else $as_nop
  9120. ac_no_webrtc_aec3=1
  9121. printf "%s\n" "#define PJMEDIA_HAS_LIBWEBRTC_AEC3 0" >>confdefs.h
  9122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc-aec3 is enabled...no" >&5
  9123. printf "%s\n" "Checking if libwebrtc-aec3 is enabled...no" >&6; }
  9124. fi
  9125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
  9126. printf %s "checking if select() needs correct nfds... " >&6; }
  9127. case $target in
  9128. *rtems*) printf "%s\n" "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
  9129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9130. printf "%s\n" "yes" >&6; }
  9131. ;;
  9132. *) printf "%s\n" "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
  9133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
  9134. printf "%s\n" "no (default)" >&6; }
  9135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
  9136. printf "%s\n" "** Decided that select() doesn't need correct nfds (please check)" >&6; }
  9137. ;;
  9138. esac
  9139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
  9140. printf %s "checking if pj_thread_create() should enforce stack size... " >&6; }
  9141. case $target in
  9142. *rtems*) printf "%s\n" "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
  9143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9144. printf "%s\n" "yes" >&6; }
  9145. ;;
  9146. *) printf "%s\n" "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
  9147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
  9148. printf "%s\n" "no (default)" >&6; }
  9149. ;;
  9150. esac
  9151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
  9152. printf %s "checking if pj_thread_create() should allocate stack... " >&6; }
  9153. case $target in
  9154. *rtems*) printf "%s\n" "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
  9155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9156. printf "%s\n" "yes" >&6; }
  9157. ;;
  9158. *) printf "%s\n" "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
  9159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
  9160. printf "%s\n" "no (default)" >&6; }
  9161. ;;
  9162. esac
  9163. case $target in
  9164. *mingw* | *cygw* | *win32* | *w32* )
  9165. printf "%s\n" "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
  9166. ;;
  9167. *) printf "%s\n" "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
  9168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
  9169. printf "%s\n" "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
  9170. ;;
  9171. esac
  9172. case $target in
  9173. *mingw* | *cygw* | *win32* | *w32* )
  9174. printf "%s\n" "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
  9175. ;;
  9176. *) printf "%s\n" "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
  9177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
  9178. printf "%s\n" "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
  9179. ;;
  9180. esac
  9181. case $target in
  9182. *linux* | *darwin* | *bsd*)
  9183. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
  9184. if test "x$ac_cv_header_pthread_np_h" = xyes
  9185. then :
  9186. printf "%s\n" "#define PJ_HAS_PTHREAD_NP_H 1" >>confdefs.h
  9187. fi
  9188. ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
  9189. if test "x$ac_cv_func_pthread_setname_np" = xyes
  9190. then :
  9191. printf "%s\n" "#define PJ_HAS_PTHREAD_SETNAME_NP 1" >>confdefs.h
  9192. fi
  9193. ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
  9194. if test "x$ac_cv_func_pthread_set_name_np" = xyes
  9195. then :
  9196. printf "%s\n" "#define PJ_HAS_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  9197. fi
  9198. ;;
  9199. esac
  9200. ac_host=unix
  9201. case $target in
  9202. *rtems*)
  9203. ac_main_obj=main_rtems.o
  9204. ;;
  9205. *)
  9206. ac_main_obj=main.o
  9207. ;;
  9208. esac
  9209. ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
  9210. cat >confcache <<\_ACEOF
  9211. # This file is a shell script that caches the results of configure
  9212. # tests run on this system so they can be shared between configure
  9213. # scripts and configure runs, see configure's option --config-cache.
  9214. # It is not useful on other systems. If it contains results you don't
  9215. # want to keep, you may remove or edit it.
  9216. #
  9217. # config.status only pays attention to the cache file if you give it
  9218. # the --recheck option to rerun configure.
  9219. #
  9220. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9221. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9222. # following values.
  9223. _ACEOF
  9224. # The following way of writing the cache mishandles newlines in values,
  9225. # but we know of no workaround that is simple, portable, and efficient.
  9226. # So, we kill variables containing newlines.
  9227. # Ultrix sh set writes to stderr and can't be redirected directly,
  9228. # and sets the high bit in the cache file unless we assign to the vars.
  9229. (
  9230. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9231. eval ac_val=\$$ac_var
  9232. case $ac_val in #(
  9233. *${as_nl}*)
  9234. case $ac_var in #(
  9235. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9236. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9237. esac
  9238. case $ac_var in #(
  9239. _ | IFS | as_nl) ;; #(
  9240. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9241. *) { eval $ac_var=; unset $ac_var;} ;;
  9242. esac ;;
  9243. esac
  9244. done
  9245. (set) 2>&1 |
  9246. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9247. *${as_nl}ac_space=\ *)
  9248. # `set' does not quote correctly, so add quotes: double-quote
  9249. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9250. sed -n \
  9251. "s/'/'\\\\''/g;
  9252. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9253. ;; #(
  9254. *)
  9255. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9256. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9257. ;;
  9258. esac |
  9259. sort
  9260. ) |
  9261. sed '
  9262. /^ac_cv_env_/b end
  9263. t clear
  9264. :clear
  9265. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  9266. t end
  9267. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9268. :end' >>confcache
  9269. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9270. if test -w "$cache_file"; then
  9271. if test "x$cache_file" != "x/dev/null"; then
  9272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9273. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  9274. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9275. cat confcache >"$cache_file"
  9276. else
  9277. case $cache_file in #(
  9278. */* | ?:*)
  9279. mv -f confcache "$cache_file"$$ &&
  9280. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9281. *)
  9282. mv -f confcache "$cache_file" ;;
  9283. esac
  9284. fi
  9285. fi
  9286. else
  9287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9288. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  9289. fi
  9290. fi
  9291. rm -f confcache
  9292. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9293. # Let make expand exec_prefix.
  9294. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9295. DEFS=-DHAVE_CONFIG_H
  9296. ac_libobjs=
  9297. ac_ltlibobjs=
  9298. U=
  9299. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9300. # 1. Remove the extension, and $U if already installed.
  9301. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9302. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  9303. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9304. # will be set to the directory where LIBOBJS objects are built.
  9305. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9306. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9307. done
  9308. LIBOBJS=$ac_libobjs
  9309. LTLIBOBJS=$ac_ltlibobjs
  9310. : "${CONFIG_STATUS=./config.status}"
  9311. ac_write_fail=0
  9312. ac_clean_files_save=$ac_clean_files
  9313. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9315. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  9316. as_write_fail=0
  9317. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9318. #! $SHELL
  9319. # Generated by $as_me.
  9320. # Run this file to recreate the current configuration.
  9321. # Compiler output produced by configure, useful for debugging
  9322. # configure, is in config.log if it exists.
  9323. debug=false
  9324. ac_cs_recheck=false
  9325. ac_cs_silent=false
  9326. SHELL=\${CONFIG_SHELL-$SHELL}
  9327. export SHELL
  9328. _ASEOF
  9329. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9330. ## -------------------- ##
  9331. ## M4sh Initialization. ##
  9332. ## -------------------- ##
  9333. # Be more Bourne compatible
  9334. DUALCASE=1; export DUALCASE # for MKS sh
  9335. as_nop=:
  9336. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  9337. then :
  9338. emulate sh
  9339. NULLCMD=:
  9340. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9341. # is contrary to our usage. Disable this feature.
  9342. alias -g '${1+"$@"}'='"$@"'
  9343. setopt NO_GLOB_SUBST
  9344. else $as_nop
  9345. case `(set -o) 2>/dev/null` in #(
  9346. *posix*) :
  9347. set -o posix ;; #(
  9348. *) :
  9349. ;;
  9350. esac
  9351. fi
  9352. # Reset variables that may have inherited troublesome values from
  9353. # the environment.
  9354. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  9355. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  9356. # side effect of setting IFS to empty, thus disabling word splitting.)
  9357. # Quoting is to prevent editors from complaining about space-tab.
  9358. as_nl='
  9359. '
  9360. export as_nl
  9361. IFS=" "" $as_nl"
  9362. PS1='$ '
  9363. PS2='> '
  9364. PS4='+ '
  9365. # Ensure predictable behavior from utilities with locale-dependent output.
  9366. LC_ALL=C
  9367. export LC_ALL
  9368. LANGUAGE=C
  9369. export LANGUAGE
  9370. # We cannot yet rely on "unset" to work, but we need these variables
  9371. # to be unset--not just set to an empty or harmless value--now, to
  9372. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  9373. # also avoids known problems related to "unset" and subshell syntax
  9374. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  9375. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  9376. do eval test \${$as_var+y} \
  9377. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9378. done
  9379. # Ensure that fds 0, 1, and 2 are open.
  9380. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  9381. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  9382. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  9383. # The user is always right.
  9384. if ${PATH_SEPARATOR+false} :; then
  9385. PATH_SEPARATOR=:
  9386. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9387. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9388. PATH_SEPARATOR=';'
  9389. }
  9390. fi
  9391. # Find who we are. Look in the path if we contain no directory separator.
  9392. as_myself=
  9393. case $0 in #((
  9394. *[\\/]* ) as_myself=$0 ;;
  9395. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9396. for as_dir in $PATH
  9397. do
  9398. IFS=$as_save_IFS
  9399. case $as_dir in #(((
  9400. '') as_dir=./ ;;
  9401. */) ;;
  9402. *) as_dir=$as_dir/ ;;
  9403. esac
  9404. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  9405. done
  9406. IFS=$as_save_IFS
  9407. ;;
  9408. esac
  9409. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9410. # in which case we are not to be found in the path.
  9411. if test "x$as_myself" = x; then
  9412. as_myself=$0
  9413. fi
  9414. if test ! -f "$as_myself"; then
  9415. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9416. exit 1
  9417. fi
  9418. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9419. # ----------------------------------------
  9420. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9421. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9422. # script with STATUS, using 1 if that was 0.
  9423. as_fn_error ()
  9424. {
  9425. as_status=$1; test $as_status -eq 0 && as_status=1
  9426. if test "$4"; then
  9427. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9428. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9429. fi
  9430. printf "%s\n" "$as_me: error: $2" >&2
  9431. as_fn_exit $as_status
  9432. } # as_fn_error
  9433. # as_fn_set_status STATUS
  9434. # -----------------------
  9435. # Set $? to STATUS, without forking.
  9436. as_fn_set_status ()
  9437. {
  9438. return $1
  9439. } # as_fn_set_status
  9440. # as_fn_exit STATUS
  9441. # -----------------
  9442. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9443. as_fn_exit ()
  9444. {
  9445. set +e
  9446. as_fn_set_status $1
  9447. exit $1
  9448. } # as_fn_exit
  9449. # as_fn_unset VAR
  9450. # ---------------
  9451. # Portably unset VAR.
  9452. as_fn_unset ()
  9453. {
  9454. { eval $1=; unset $1;}
  9455. }
  9456. as_unset=as_fn_unset
  9457. # as_fn_append VAR VALUE
  9458. # ----------------------
  9459. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9460. # advantage of any shell optimizations that allow amortized linear growth over
  9461. # repeated appends, instead of the typical quadratic growth present in naive
  9462. # implementations.
  9463. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  9464. then :
  9465. eval 'as_fn_append ()
  9466. {
  9467. eval $1+=\$2
  9468. }'
  9469. else $as_nop
  9470. as_fn_append ()
  9471. {
  9472. eval $1=\$$1\$2
  9473. }
  9474. fi # as_fn_append
  9475. # as_fn_arith ARG...
  9476. # ------------------
  9477. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9478. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9479. # must be portable across $(()) and expr.
  9480. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  9481. then :
  9482. eval 'as_fn_arith ()
  9483. {
  9484. as_val=$(( $* ))
  9485. }'
  9486. else $as_nop
  9487. as_fn_arith ()
  9488. {
  9489. as_val=`expr "$@" || test $? -eq 1`
  9490. }
  9491. fi # as_fn_arith
  9492. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9493. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9494. as_expr=expr
  9495. else
  9496. as_expr=false
  9497. fi
  9498. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9499. as_basename=basename
  9500. else
  9501. as_basename=false
  9502. fi
  9503. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9504. as_dirname=dirname
  9505. else
  9506. as_dirname=false
  9507. fi
  9508. as_me=`$as_basename -- "$0" ||
  9509. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9510. X"$0" : 'X\(//\)$' \| \
  9511. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9512. printf "%s\n" X/"$0" |
  9513. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9514. s//\1/
  9515. q
  9516. }
  9517. /^X\/\(\/\/\)$/{
  9518. s//\1/
  9519. q
  9520. }
  9521. /^X\/\(\/\).*/{
  9522. s//\1/
  9523. q
  9524. }
  9525. s/.*/./; q'`
  9526. # Avoid depending upon Character Ranges.
  9527. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9528. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9529. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9530. as_cr_digits='0123456789'
  9531. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9532. # Determine whether it's possible to make 'echo' print without a newline.
  9533. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  9534. # for compatibility with existing Makefiles.
  9535. ECHO_C= ECHO_N= ECHO_T=
  9536. case `echo -n x` in #(((((
  9537. -n*)
  9538. case `echo 'xy\c'` in
  9539. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9540. xy) ECHO_C='\c';;
  9541. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9542. ECHO_T=' ';;
  9543. esac;;
  9544. *)
  9545. ECHO_N='-n';;
  9546. esac
  9547. # For backward compatibility with old third-party macros, we provide
  9548. # the shell variables $as_echo and $as_echo_n. New code should use
  9549. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  9550. as_echo='printf %s\n'
  9551. as_echo_n='printf %s'
  9552. rm -f conf$$ conf$$.exe conf$$.file
  9553. if test -d conf$$.dir; then
  9554. rm -f conf$$.dir/conf$$.file
  9555. else
  9556. rm -f conf$$.dir
  9557. mkdir conf$$.dir 2>/dev/null
  9558. fi
  9559. if (echo >conf$$.file) 2>/dev/null; then
  9560. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9561. as_ln_s='ln -s'
  9562. # ... but there are two gotchas:
  9563. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9564. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9565. # In both cases, we have to default to `cp -pR'.
  9566. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9567. as_ln_s='cp -pR'
  9568. elif ln conf$$.file conf$$ 2>/dev/null; then
  9569. as_ln_s=ln
  9570. else
  9571. as_ln_s='cp -pR'
  9572. fi
  9573. else
  9574. as_ln_s='cp -pR'
  9575. fi
  9576. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9577. rmdir conf$$.dir 2>/dev/null
  9578. # as_fn_mkdir_p
  9579. # -------------
  9580. # Create "$as_dir" as a directory, including parents if necessary.
  9581. as_fn_mkdir_p ()
  9582. {
  9583. case $as_dir in #(
  9584. -*) as_dir=./$as_dir;;
  9585. esac
  9586. test -d "$as_dir" || eval $as_mkdir_p || {
  9587. as_dirs=
  9588. while :; do
  9589. case $as_dir in #(
  9590. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9591. *) as_qdir=$as_dir;;
  9592. esac
  9593. as_dirs="'$as_qdir' $as_dirs"
  9594. as_dir=`$as_dirname -- "$as_dir" ||
  9595. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9596. X"$as_dir" : 'X\(//\)[^/]' \| \
  9597. X"$as_dir" : 'X\(//\)$' \| \
  9598. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9599. printf "%s\n" X"$as_dir" |
  9600. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9601. s//\1/
  9602. q
  9603. }
  9604. /^X\(\/\/\)[^/].*/{
  9605. s//\1/
  9606. q
  9607. }
  9608. /^X\(\/\/\)$/{
  9609. s//\1/
  9610. q
  9611. }
  9612. /^X\(\/\).*/{
  9613. s//\1/
  9614. q
  9615. }
  9616. s/.*/./; q'`
  9617. test -d "$as_dir" && break
  9618. done
  9619. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9620. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9621. } # as_fn_mkdir_p
  9622. if mkdir -p . 2>/dev/null; then
  9623. as_mkdir_p='mkdir -p "$as_dir"'
  9624. else
  9625. test -d ./-p && rmdir ./-p
  9626. as_mkdir_p=false
  9627. fi
  9628. # as_fn_executable_p FILE
  9629. # -----------------------
  9630. # Test if FILE is an executable regular file.
  9631. as_fn_executable_p ()
  9632. {
  9633. test -f "$1" && test -x "$1"
  9634. } # as_fn_executable_p
  9635. as_test_x='test -x'
  9636. as_executable_p=as_fn_executable_p
  9637. # Sed expression to map a string onto a valid CPP name.
  9638. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9639. # Sed expression to map a string onto a valid variable name.
  9640. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9641. exec 6>&1
  9642. ## ----------------------------------- ##
  9643. ## Main body of $CONFIG_STATUS script. ##
  9644. ## ----------------------------------- ##
  9645. _ASEOF
  9646. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9647. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9648. # Save the log message, to keep $0 and so on meaningful, and to
  9649. # report actual input values of CONFIG_FILES etc. instead of their
  9650. # values after options handling.
  9651. ac_log="
  9652. This file was extended by pjproject $as_me 2.x, which was
  9653. generated by GNU Autoconf 2.71. Invocation command line was
  9654. CONFIG_FILES = $CONFIG_FILES
  9655. CONFIG_HEADERS = $CONFIG_HEADERS
  9656. CONFIG_LINKS = $CONFIG_LINKS
  9657. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9658. $ $0 $@
  9659. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9660. "
  9661. _ACEOF
  9662. case $ac_config_files in *"
  9663. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9664. esac
  9665. case $ac_config_headers in *"
  9666. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9667. esac
  9668. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9669. # Files that config.status was made for.
  9670. config_files="$ac_config_files"
  9671. config_headers="$ac_config_headers"
  9672. _ACEOF
  9673. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9674. ac_cs_usage="\
  9675. \`$as_me' instantiates files and other configuration actions
  9676. from templates according to the current configuration. Unless the files
  9677. and actions are specified as TAGs, all are instantiated by default.
  9678. Usage: $0 [OPTION]... [TAG]...
  9679. -h, --help print this help, then exit
  9680. -V, --version print version number and configuration settings, then exit
  9681. --config print configuration, then exit
  9682. -q, --quiet, --silent
  9683. do not print progress messages
  9684. -d, --debug don't remove temporary files
  9685. --recheck update $as_me by reconfiguring in the same conditions
  9686. --file=FILE[:TEMPLATE]
  9687. instantiate the configuration file FILE
  9688. --header=FILE[:TEMPLATE]
  9689. instantiate the configuration header FILE
  9690. Configuration files:
  9691. $config_files
  9692. Configuration headers:
  9693. $config_headers
  9694. Report bugs to the package provider."
  9695. _ACEOF
  9696. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  9697. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  9698. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9699. ac_cs_config='$ac_cs_config_escaped'
  9700. ac_cs_version="\\
  9701. pjproject config.status 2.x
  9702. configured by $0, generated by GNU Autoconf 2.71,
  9703. with options \\"\$ac_cs_config\\"
  9704. Copyright (C) 2021 Free Software Foundation, Inc.
  9705. This config.status script is free software; the Free Software Foundation
  9706. gives unlimited permission to copy, distribute and modify it."
  9707. ac_pwd='$ac_pwd'
  9708. srcdir='$srcdir'
  9709. test -n "\$AWK" || AWK=awk
  9710. _ACEOF
  9711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9712. # The default lists apply if the user does not specify any file.
  9713. ac_need_defaults=:
  9714. while test $# != 0
  9715. do
  9716. case $1 in
  9717. --*=?*)
  9718. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9719. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9720. ac_shift=:
  9721. ;;
  9722. --*=)
  9723. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9724. ac_optarg=
  9725. ac_shift=:
  9726. ;;
  9727. *)
  9728. ac_option=$1
  9729. ac_optarg=$2
  9730. ac_shift=shift
  9731. ;;
  9732. esac
  9733. case $ac_option in
  9734. # Handling of the options.
  9735. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9736. ac_cs_recheck=: ;;
  9737. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9738. printf "%s\n" "$ac_cs_version"; exit ;;
  9739. --config | --confi | --conf | --con | --co | --c )
  9740. printf "%s\n" "$ac_cs_config"; exit ;;
  9741. --debug | --debu | --deb | --de | --d | -d )
  9742. debug=: ;;
  9743. --file | --fil | --fi | --f )
  9744. $ac_shift
  9745. case $ac_optarg in
  9746. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9747. '') as_fn_error $? "missing file argument" ;;
  9748. esac
  9749. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9750. ac_need_defaults=false;;
  9751. --header | --heade | --head | --hea )
  9752. $ac_shift
  9753. case $ac_optarg in
  9754. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9755. esac
  9756. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9757. ac_need_defaults=false;;
  9758. --he | --h)
  9759. # Conflict between --help and --header
  9760. as_fn_error $? "ambiguous option: \`$1'
  9761. Try \`$0 --help' for more information.";;
  9762. --help | --hel | -h )
  9763. printf "%s\n" "$ac_cs_usage"; exit ;;
  9764. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9765. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9766. ac_cs_silent=: ;;
  9767. # This is an error.
  9768. -*) as_fn_error $? "unrecognized option: \`$1'
  9769. Try \`$0 --help' for more information." ;;
  9770. *) as_fn_append ac_config_targets " $1"
  9771. ac_need_defaults=false ;;
  9772. esac
  9773. shift
  9774. done
  9775. ac_configure_extra_args=
  9776. if $ac_cs_silent; then
  9777. exec 6>/dev/null
  9778. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9779. fi
  9780. _ACEOF
  9781. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9782. if \$ac_cs_recheck; then
  9783. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9784. shift
  9785. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  9786. CONFIG_SHELL='$SHELL'
  9787. export CONFIG_SHELL
  9788. exec "\$@"
  9789. fi
  9790. _ACEOF
  9791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9792. exec 5>>config.log
  9793. {
  9794. echo
  9795. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9796. ## Running $as_me. ##
  9797. _ASBOX
  9798. printf "%s\n" "$ac_log"
  9799. } >&5
  9800. _ACEOF
  9801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9802. _ACEOF
  9803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9804. # Handling of arguments.
  9805. for ac_config_target in $ac_config_targets
  9806. do
  9807. case $ac_config_target in
  9808. "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
  9809. "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
  9810. "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
  9811. "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
  9812. "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
  9813. "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
  9814. "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
  9815. "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
  9816. "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
  9817. "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
  9818. "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
  9819. "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
  9820. "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
  9821. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9822. esac
  9823. done
  9824. # If the user did not use the arguments to specify the items to instantiate,
  9825. # then the envvar interface is used. Set only those that are not.
  9826. # We use the long form for the default assignment because of an extremely
  9827. # bizarre bug on SunOS 4.1.3.
  9828. if $ac_need_defaults; then
  9829. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  9830. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  9831. fi
  9832. # Have a temporary directory for convenience. Make it in the build tree
  9833. # simply because there is no reason against having it here, and in addition,
  9834. # creating and moving files from /tmp can sometimes cause problems.
  9835. # Hook for its removal unless debugging.
  9836. # Note that there is a small window in which the directory will not be cleaned:
  9837. # after its creation but before its name has been assigned to `$tmp'.
  9838. $debug ||
  9839. {
  9840. tmp= ac_tmp=
  9841. trap 'exit_status=$?
  9842. : "${ac_tmp:=$tmp}"
  9843. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9844. ' 0
  9845. trap 'as_fn_exit 1' 1 2 13 15
  9846. }
  9847. # Create a (secure) tmp directory for tmp files.
  9848. {
  9849. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9850. test -d "$tmp"
  9851. } ||
  9852. {
  9853. tmp=./conf$$-$RANDOM
  9854. (umask 077 && mkdir "$tmp")
  9855. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9856. ac_tmp=$tmp
  9857. # Set up the scripts for CONFIG_FILES section.
  9858. # No need to generate them if there are no CONFIG_FILES.
  9859. # This happens for instance with `./config.status config.h'.
  9860. if test -n "$CONFIG_FILES"; then
  9861. ac_cr=`echo X | tr X '\015'`
  9862. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9863. # But we know of no other shell where ac_cr would be empty at this
  9864. # point, so we can use a bashism as a fallback.
  9865. if test "x$ac_cr" = x; then
  9866. eval ac_cr=\$\'\\r\'
  9867. fi
  9868. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9869. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9870. ac_cs_awk_cr='\\r'
  9871. else
  9872. ac_cs_awk_cr=$ac_cr
  9873. fi
  9874. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9875. _ACEOF
  9876. {
  9877. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9878. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9879. echo "_ACEOF"
  9880. } >conf$$subs.sh ||
  9881. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9882. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9883. ac_delim='%!_!# '
  9884. for ac_last_try in false false false false false :; do
  9885. . ./conf$$subs.sh ||
  9886. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9887. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9888. if test $ac_delim_n = $ac_delim_num; then
  9889. break
  9890. elif $ac_last_try; then
  9891. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9892. else
  9893. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9894. fi
  9895. done
  9896. rm -f conf$$subs.sh
  9897. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9898. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9899. _ACEOF
  9900. sed -n '
  9901. h
  9902. s/^/S["/; s/!.*/"]=/
  9903. p
  9904. g
  9905. s/^[^!]*!//
  9906. :repl
  9907. t repl
  9908. s/'"$ac_delim"'$//
  9909. t delim
  9910. :nl
  9911. h
  9912. s/\(.\{148\}\)..*/\1/
  9913. t more1
  9914. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9915. p
  9916. n
  9917. b repl
  9918. :more1
  9919. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9920. p
  9921. g
  9922. s/.\{148\}//
  9923. t nl
  9924. :delim
  9925. h
  9926. s/\(.\{148\}\)..*/\1/
  9927. t more2
  9928. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9929. p
  9930. b
  9931. :more2
  9932. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9933. p
  9934. g
  9935. s/.\{148\}//
  9936. t delim
  9937. ' <conf$$subs.awk | sed '
  9938. /^[^""]/{
  9939. N
  9940. s/\n//
  9941. }
  9942. ' >>$CONFIG_STATUS || ac_write_fail=1
  9943. rm -f conf$$subs.awk
  9944. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9945. _ACAWK
  9946. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9947. for (key in S) S_is_set[key] = 1
  9948. FS = ""
  9949. }
  9950. {
  9951. line = $ 0
  9952. nfields = split(line, field, "@")
  9953. substed = 0
  9954. len = length(field[1])
  9955. for (i = 2; i < nfields; i++) {
  9956. key = field[i]
  9957. keylen = length(key)
  9958. if (S_is_set[key]) {
  9959. value = S[key]
  9960. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9961. len += length(value) + length(field[++i])
  9962. substed = 1
  9963. } else
  9964. len += 1 + keylen
  9965. }
  9966. print line
  9967. }
  9968. _ACAWK
  9969. _ACEOF
  9970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9971. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9972. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9973. else
  9974. cat
  9975. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9976. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9977. _ACEOF
  9978. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9979. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9980. # trailing colons and then remove the whole line if VPATH becomes empty
  9981. # (actually we leave an empty line to preserve line numbers).
  9982. if test "x$srcdir" = x.; then
  9983. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9984. h
  9985. s///
  9986. s/^/:/
  9987. s/[ ]*$/:/
  9988. s/:\$(srcdir):/:/g
  9989. s/:\${srcdir}:/:/g
  9990. s/:@srcdir@:/:/g
  9991. s/^:*//
  9992. s/:*$//
  9993. x
  9994. s/\(=[ ]*\).*/\1/
  9995. G
  9996. s/\n//
  9997. s/^[^=]*=[ ]*$//
  9998. }'
  9999. fi
  10000. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10001. fi # test -n "$CONFIG_FILES"
  10002. # Set up the scripts for CONFIG_HEADERS section.
  10003. # No need to generate them if there are no CONFIG_HEADERS.
  10004. # This happens for instance with `./config.status Makefile'.
  10005. if test -n "$CONFIG_HEADERS"; then
  10006. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10007. BEGIN {
  10008. _ACEOF
  10009. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10010. # here-document in config.status, that substitutes the proper values into
  10011. # config.h.in to produce config.h.
  10012. # Create a delimiter string that does not exist in confdefs.h, to ease
  10013. # handling of long lines.
  10014. ac_delim='%!_!# '
  10015. for ac_last_try in false false :; do
  10016. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10017. if test -z "$ac_tt"; then
  10018. break
  10019. elif $ac_last_try; then
  10020. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10021. else
  10022. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10023. fi
  10024. done
  10025. # For the awk script, D is an array of macro values keyed by name,
  10026. # likewise P contains macro parameters if any. Preserve backslash
  10027. # newline sequences.
  10028. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10029. sed -n '
  10030. s/.\{148\}/&'"$ac_delim"'/g
  10031. t rset
  10032. :rset
  10033. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10034. t def
  10035. d
  10036. :def
  10037. s/\\$//
  10038. t bsnl
  10039. s/["\\]/\\&/g
  10040. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10041. D["\1"]=" \3"/p
  10042. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10043. d
  10044. :bsnl
  10045. s/["\\]/\\&/g
  10046. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10047. D["\1"]=" \3\\\\\\n"\\/p
  10048. t cont
  10049. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10050. t cont
  10051. d
  10052. :cont
  10053. n
  10054. s/.\{148\}/&'"$ac_delim"'/g
  10055. t clear
  10056. :clear
  10057. s/\\$//
  10058. t bsnlc
  10059. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10060. d
  10061. :bsnlc
  10062. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10063. b cont
  10064. ' <confdefs.h | sed '
  10065. s/'"$ac_delim"'/"\\\
  10066. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10067. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10068. for (key in D) D_is_set[key] = 1
  10069. FS = ""
  10070. }
  10071. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10072. line = \$ 0
  10073. split(line, arg, " ")
  10074. if (arg[1] == "#") {
  10075. defundef = arg[2]
  10076. mac1 = arg[3]
  10077. } else {
  10078. defundef = substr(arg[1], 2)
  10079. mac1 = arg[2]
  10080. }
  10081. split(mac1, mac2, "(") #)
  10082. macro = mac2[1]
  10083. prefix = substr(line, 1, index(line, defundef) - 1)
  10084. if (D_is_set[macro]) {
  10085. # Preserve the white space surrounding the "#".
  10086. print prefix "define", macro P[macro] D[macro]
  10087. next
  10088. } else {
  10089. # Replace #undef with comments. This is necessary, for example,
  10090. # in the case of _POSIX_SOURCE, which is predefined and required
  10091. # on some systems where configure will not decide to define it.
  10092. if (defundef == "undef") {
  10093. print "/*", prefix defundef, macro, "*/"
  10094. next
  10095. }
  10096. }
  10097. }
  10098. { print }
  10099. _ACAWK
  10100. _ACEOF
  10101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10102. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10103. fi # test -n "$CONFIG_HEADERS"
  10104. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  10105. shift
  10106. for ac_tag
  10107. do
  10108. case $ac_tag in
  10109. :[FHLC]) ac_mode=$ac_tag; continue;;
  10110. esac
  10111. case $ac_mode$ac_tag in
  10112. :[FHL]*:*);;
  10113. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10114. :[FH]-) ac_tag=-:-;;
  10115. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10116. esac
  10117. ac_save_IFS=$IFS
  10118. IFS=:
  10119. set x $ac_tag
  10120. IFS=$ac_save_IFS
  10121. shift
  10122. ac_file=$1
  10123. shift
  10124. case $ac_mode in
  10125. :L) ac_source=$1;;
  10126. :[FH])
  10127. ac_file_inputs=
  10128. for ac_f
  10129. do
  10130. case $ac_f in
  10131. -) ac_f="$ac_tmp/stdin";;
  10132. *) # Look for the file first in the build tree, then in the source tree
  10133. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10134. # because $ac_f cannot contain `:'.
  10135. test -f "$ac_f" ||
  10136. case $ac_f in
  10137. [\\/$]*) false;;
  10138. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10139. esac ||
  10140. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10141. esac
  10142. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10143. as_fn_append ac_file_inputs " '$ac_f'"
  10144. done
  10145. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10146. # use $as_me), people would be surprised to read:
  10147. # /* config.h. Generated by config.status. */
  10148. configure_input='Generated from '`
  10149. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10150. `' by configure.'
  10151. if test x"$ac_file" != x-; then
  10152. configure_input="$ac_file. $configure_input"
  10153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10154. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  10155. fi
  10156. # Neutralize special characters interpreted by sed in replacement strings.
  10157. case $configure_input in #(
  10158. *\&* | *\|* | *\\* )
  10159. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  10160. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10161. *) ac_sed_conf_input=$configure_input;;
  10162. esac
  10163. case $ac_tag in
  10164. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10165. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10166. esac
  10167. ;;
  10168. esac
  10169. ac_dir=`$as_dirname -- "$ac_file" ||
  10170. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10171. X"$ac_file" : 'X\(//\)[^/]' \| \
  10172. X"$ac_file" : 'X\(//\)$' \| \
  10173. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10174. printf "%s\n" X"$ac_file" |
  10175. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10176. s//\1/
  10177. q
  10178. }
  10179. /^X\(\/\/\)[^/].*/{
  10180. s//\1/
  10181. q
  10182. }
  10183. /^X\(\/\/\)$/{
  10184. s//\1/
  10185. q
  10186. }
  10187. /^X\(\/\).*/{
  10188. s//\1/
  10189. q
  10190. }
  10191. s/.*/./; q'`
  10192. as_dir="$ac_dir"; as_fn_mkdir_p
  10193. ac_builddir=.
  10194. case "$ac_dir" in
  10195. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10196. *)
  10197. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  10198. # A ".." for each directory in $ac_dir_suffix.
  10199. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10200. case $ac_top_builddir_sub in
  10201. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10202. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10203. esac ;;
  10204. esac
  10205. ac_abs_top_builddir=$ac_pwd
  10206. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10207. # for backward compatibility:
  10208. ac_top_builddir=$ac_top_build_prefix
  10209. case $srcdir in
  10210. .) # We are building in place.
  10211. ac_srcdir=.
  10212. ac_top_srcdir=$ac_top_builddir_sub
  10213. ac_abs_top_srcdir=$ac_pwd ;;
  10214. [\\/]* | ?:[\\/]* ) # Absolute name.
  10215. ac_srcdir=$srcdir$ac_dir_suffix;
  10216. ac_top_srcdir=$srcdir
  10217. ac_abs_top_srcdir=$srcdir ;;
  10218. *) # Relative name.
  10219. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10220. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10221. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10222. esac
  10223. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10224. case $ac_mode in
  10225. :F)
  10226. #
  10227. # CONFIG_FILE
  10228. #
  10229. _ACEOF
  10230. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10231. # If the template does not know about datarootdir, expand it.
  10232. # FIXME: This hack should be removed a few years after 2.60.
  10233. ac_datarootdir_hack=; ac_datarootdir_seen=
  10234. ac_sed_dataroot='
  10235. /datarootdir/ {
  10236. p
  10237. q
  10238. }
  10239. /@datadir@/p
  10240. /@docdir@/p
  10241. /@infodir@/p
  10242. /@localedir@/p
  10243. /@mandir@/p'
  10244. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10245. *datarootdir*) ac_datarootdir_seen=yes;;
  10246. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10248. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10249. _ACEOF
  10250. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10251. ac_datarootdir_hack='
  10252. s&@datadir@&$datadir&g
  10253. s&@docdir@&$docdir&g
  10254. s&@infodir@&$infodir&g
  10255. s&@localedir@&$localedir&g
  10256. s&@mandir@&$mandir&g
  10257. s&\\\${datarootdir}&$datarootdir&g' ;;
  10258. esac
  10259. _ACEOF
  10260. # Neutralize VPATH when `$srcdir' = `.'.
  10261. # Shell code in configure.ac might set extrasub.
  10262. # FIXME: do we really want to maintain this feature?
  10263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10264. ac_sed_extra="$ac_vpsub
  10265. $extrasub
  10266. _ACEOF
  10267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10268. :t
  10269. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10270. s|@configure_input@|$ac_sed_conf_input|;t t
  10271. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10272. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10273. s&@srcdir@&$ac_srcdir&;t t
  10274. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10275. s&@top_srcdir@&$ac_top_srcdir&;t t
  10276. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10277. s&@builddir@&$ac_builddir&;t t
  10278. s&@abs_builddir@&$ac_abs_builddir&;t t
  10279. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10280. $ac_datarootdir_hack
  10281. "
  10282. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10283. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10284. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10285. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10286. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10287. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10289. which seems to be undefined. Please make sure it is defined" >&5
  10290. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10291. which seems to be undefined. Please make sure it is defined" >&2;}
  10292. rm -f "$ac_tmp/stdin"
  10293. case $ac_file in
  10294. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10295. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10296. esac \
  10297. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10298. ;;
  10299. :H)
  10300. #
  10301. # CONFIG_HEADER
  10302. #
  10303. if test x"$ac_file" != x-; then
  10304. {
  10305. printf "%s\n" "/* $configure_input */" >&1 \
  10306. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10307. } >"$ac_tmp/config.h" \
  10308. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10309. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10311. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  10312. else
  10313. rm -f "$ac_file"
  10314. mv "$ac_tmp/config.h" "$ac_file" \
  10315. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10316. fi
  10317. else
  10318. printf "%s\n" "/* $configure_input */" >&1 \
  10319. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10320. || as_fn_error $? "could not create -" "$LINENO" 5
  10321. fi
  10322. ;;
  10323. esac
  10324. done # for ac_tag
  10325. as_fn_exit 0
  10326. _ACEOF
  10327. ac_clean_files=$ac_clean_files_save
  10328. test $ac_write_fail = 0 ||
  10329. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10330. # configure is writing to config.log, and then calls config.status.
  10331. # config.status does its own redirection, appending to config.log.
  10332. # Unfortunately, on DOS this fails, as config.log is still kept open
  10333. # by configure, so config.status won't be able to write to it; its
  10334. # output is simply discarded. So we exec the FD to /dev/null,
  10335. # effectively closing config.log, so it can be properly (re)opened and
  10336. # appended to by config.status. When coming back to configure, we
  10337. # need to make the FD available again.
  10338. if test "$no_create" != yes; then
  10339. ac_cs_success=:
  10340. ac_config_status_args=
  10341. test "$silent" = yes &&
  10342. ac_config_status_args="$ac_config_status_args --quiet"
  10343. exec 5>/dev/null
  10344. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10345. exec 5>>config.log
  10346. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10347. # would make configure fail if this is the last instruction.
  10348. $ac_cs_success || as_fn_exit 1
  10349. fi
  10350. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10352. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10353. fi
  10354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
  10355. Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
  10356. Further customizations can be put in:
  10357. - 'user.mak'
  10358. - 'pjlib/include/pj/config_site.h'
  10359. The next step now is to run 'make dep' and 'make'.
  10360. " >&5
  10361. printf "%s\n" "
  10362. Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
  10363. Further customizations can be put in:
  10364. - 'user.mak'
  10365. - 'pjlib/include/pj/config_site.h'
  10366. The next step now is to run 'make dep' and 'make'.
  10367. " >&6; }